Skip to content

Commit 2bb4cde

Browse files
committed
fix(Jenkinsfile): un-parallelize lint and test tasks
Running these tasks serially works around an apparent race condition bug whereby upload to codecov.io was tried twice, and failed.
1 parent d6dadfe commit 2bb4cde

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

Jenkinsfile

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,10 @@ node(linux) {
9999

100100

101101
stage 'Lint and test container'
102-
parallel(
103-
lint: {
102+
// TODO: re-parallelize these tasks when race condition is fixed.
104103
node(linux) {
105104
sh "docker run --rm ${test_image} lint"
106105
}
107-
},
108-
test: {
109106
node(linux) {
110107
withCredentials([[$class: 'StringBinding',
111108
credentialsId: '995d99a7-466b-4beb-bf75-f3ba91cbbc18',
@@ -122,8 +119,6 @@ parallel(
122119
sh "docker run -e CODECOV_TOKEN=\${CODECOV_TOKEN} --rm ${test_image} sh -c 'test-cover.sh && ${codecov}'"
123120
}
124121
}
125-
}
126-
)
127122

128123
stage 'Build and Upload Artifacts'
129124

0 commit comments

Comments
 (0)