Skip to content

Commit 542b9a0

Browse files
committed
Add upload to cmake_coverity job
1 parent 3cc651c commit 542b9a0

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

pipelines/master/cmake_coverity.groovy

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ node('atlas2') {
6565

6666
recordIssues(tools: tools)
6767

68+
stage('Upload') {
69+
withCredentials([string(credentialsId: 'coverity-token', variable: 'COVERITY_TOKEN'), string(credentialsId: 'coverity-email', variable: 'COVERITY_EMAIL')]) {
70+
sh "curl --form token=$COVERITY_TOKEN --form email=$COVERITY_EMAIL --form file=@build/lammps.tgz --form version=\"${commit.GIT_COMMIT}\" --form description=\"LAMMPS automated build\" https://scan.coverity.com/builds?project=LAMMPS"
71+
}
72+
}
6873
} catch (caughtErr) {
6974
err = caughtErr
7075
currentBuild.result = 'FAILURE'

0 commit comments

Comments
 (0)