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

Commit abdac4c

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

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Jenkinsfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,20 @@ pipeline {
4949
stage('Test') {
5050
parallel {
5151
stage("Coverage report") {
52+
environment {
53+
CODECOV_TOKEN = credentials('jenkins-codecov-token')
54+
}
55+
5256
agent {
5357
label 'gcp-linux-worker-0'
5458
}
5559
steps {
5660
dir('src/github.com/docker/lunchbox') {
5761
checkout scm
58-
sh 'ls -la'
5962
sh 'make ci-coverage'
6063
archiveArtifacts 'cov/all.out'
6164
archiveArtifacts 'cov/coverage.html'
62-
sh 'curl -s https://codecov.io/bash | bash -s - -t 0b5323a7-aa90-4855-95ad-c859a917d611 -f cov/all.out -K'
65+
sh 'curl -s https://codecov.io/bash | bash -s - -f cov/all.out -K'
6366
}
6467
}
6568
}

0 commit comments

Comments
 (0)