Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit e7a4b57

Browse files
committed
Use codecov token from Jenkins credentials
Signed-off-by: Joffrey F <[email protected]>
1 parent be08a48 commit e7a4b57

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Jenkinsfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,20 @@ pipeline {
4343
stage('Test') {
4444
parallel {
4545
stage("Coverage report") {
46+
environment {
47+
CODECOV_TOKEN = credentials('jenkins-codecov-token')
48+
}
49+
4650
agent {
4751
label 'gcp-linux-worker-0'
4852
}
4953
steps {
5054
dir('src/github.com/docker/lunchbox') {
5155
checkout scm
52-
sh 'ls -la'
5356
sh 'make ci-coverage'
5457
archiveArtifacts 'cov/all.out'
5558
archiveArtifacts 'cov/coverage.html'
56-
sh 'curl -s https://codecov.io/bash | bash -s - -t 0b5323a7-aa90-4855-95ad-c859a917d611 -f cov/all.out -K'
59+
sh 'curl -s https://codecov.io/bash | bash -s - -f cov/all.out -K'
5760
}
5861
}
5962
}
@@ -65,7 +68,6 @@ pipeline {
6568
dir('src/github.com/docker/lunchbox') {
6669
deleteDir()
6770
unstash 'e2e'
68-
sh 'ls -la'
6971
sh './docker-app-e2e-linux'
7072
}
7173
}
@@ -78,7 +80,6 @@ pipeline {
7880
dir('src/github.com/docker/lunchbox') {
7981
deleteDir()
8082
unstash 'e2e'
81-
sh 'ls -la'
8283
sh './docker-app-e2e-darwin'
8384
}
8485
}

0 commit comments

Comments
 (0)