Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
joker234 committed Aug 27, 2024
1 parent 8207aab commit 415772e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ pipeline {
script {
// run pytest
sh 'VCR_RECORD_MODE=none ${POETRY_RUN} pytest --cov=ohsome_quality_api --cov-report=xml tests'
// replace absolute dir in the coverage file with actually used dir for sonar-scanner
sh "sed -i \"s#${WORK_DIR}#${WORKSPACE}/${MODULE_DIR}#g\" ${WORK_DIR}/coverage.xml"
// run static analysis with sonar-scanner
def scannerHome = tool 'SonarScanner 4'
withSonarQubeEnv('sonarcloud GIScience/ohsome') {
Expand Down Expand Up @@ -108,10 +106,8 @@ pipeline {
}
steps {
script {
DOCKER_API.inside {
update_notify = sh(returnStdout: true, script: 'cd ${WORK_DIR} && ${POETRY} update ${POETRY_OPTIONS} --dry-run | tail -n +4 | grep -v ": Skipped " | sort -u').trim()
echo update_notify
}
update_notify = sh(returnStdout: true, script: '${POETRY} update ${POETRY_OPTIONS} --dry-run | tail -n +4 | grep -v ": Skipped " | sort -u').trim()
echo update_notify
}
rocket_basicsend("Check your dependencies in *${REPO_NAME}*. You might have updates: ${update_notify}")
}
Expand Down

0 comments on commit 415772e

Please sign in to comment.