Skip to content

Commit

Permalink
Keep trying to get Cobertura working
Browse files Browse the repository at this point in the history
  • Loading branch information
webbnh committed Jul 7, 2022
1 parent db11d8a commit 27e0d0b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions jenkins/Pipeline.gy
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,6 @@ pipeline {
stages {
stage('Linting & Unit Tests') {
steps {
// This symlink papers over the difference in location of the
// pbench sources inside and outside the container, which allows
// the Cobertura plug-in to find the sources referenced in the
// coverage report. However, the link may already exist from a
// previous run of this pipeline, in which case log the result.
sh 'ln -sTf lib/pbench pbench'

// If we don't have a sequence number file left over from a
// previous run, then create one.
sh 'if [[ ! -e agent/rpm/seqno ]] ; then echo "0" > agent/rpm/seqno ; fi'
Expand All @@ -41,6 +34,13 @@ pipeline {
}
post {
success {
// This symlink papers over the difference in location of the
// pbench sources inside and outside the container, which allows
// the Cobertura plug-in to find the sources referenced in the
// coverage report. However, the link may already exist from a
// previous run of this pipeline, in which case log the result.
sh 'ln -sTf lib/pbench pbench'

// Note that jenkins/run-pytests is executed inside the container
// while the Cobertura plug-in is executed natively, so this poses
// a challenge in terms of finding the coverage report file; we
Expand All @@ -57,7 +57,7 @@ pipeline {
onlyStable: false,
sourceEncoding: 'ASCII',
zoomCoverageChart: false])
sh 'rm cov/report.xml'
sh 'rm cov/report.xml pbench'
}
}
}

0 comments on commit 27e0d0b

Please sign in to comment.