Skip to content

Commit 181701a

Browse files
committed
Add pipeline to download coverity tools
The coverity tools are large (1+ GiB) and change infrequently. Create a pipeline intended to run weekly to move the tools from Coverity into S3, so that we don't pay ingress charges every time we run a job. Unfortunately, I can't find a way to authenticate to the download server to just call HEAD and get the download time (which would be the smarter option), so this will have to do. Signed-off-by: Brian Barrett <bbarrett@amazon.com>
1 parent 1566fb5 commit 181701a

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// -*- groovy -*-
2+
//
3+
// Download the latest Coverity scan-build toolset from Coverity and put in S3
4+
//
5+
6+
node('headnode') {
7+
stage('Download From Coverity') {
8+
withCredentials([usernamePassword(credentialsId: 'b47cf375-6e78-4f1f-b215-18a7903a4763',
9+
passwordVariable: 'token',
10+
usernameVariable: 'project')]) {
11+
sh(label: 'Download via curl', script: '''
12+
curl --fail -d "token=$token&project=$project" https://scan.coverity.com/download/cxx/linux64 --output linux64.tar.gz''')
13+
}
14+
}
15+
stage('Upload to S3') {
16+
s3Upload acl: 'Private', bucket: 'ompi-jenkins-config', file: 'linux64.tar.gz', path: 'coverity/coverity_tools.tgz'
17+
}
18+
}

0 commit comments

Comments
 (0)