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

Commit 814df63

Browse files
committed
ADDED hub credentials for downloading fossa-image
Signed-off-by: Zuhayr Elahi <[email protected]>
1 parent f1a8f73 commit 814df63

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

Jenkinsfile.baguette

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
properties([buildDiscarder(logRotator(numToKeepStr: '20'))])
22

3+
hubCred = [
4+
$class: 'UsernamePasswordMultiBinding',
5+
usernameVariable: 'REGISTRY_USERNAME',
6+
passwordVariable: 'REGISTRY_PASSWORD',
7+
credentialsId: 'orcaeng-hub.docker.com',
8+
]
9+
310
pipeline {
411
agent {
512
label 'ubuntu-1804'
@@ -64,11 +71,14 @@ pipeline {
6471
label 'ubuntu-1604-aufs-edge'
6572
}
6673
steps {
67-
dir('src/github.com/docker/app') {
68-
checkout scm
69-
ansiColor('xterm') {
70-
sh "BRANCH_NAME='${BRANCH_NAME}' make fossa-analyze"
71-
sh 'make fossa-test'
74+
withCredentials([hubCred]) {
75+
dir('src/github.com/docker/app') {
76+
checkout scm
77+
ansiColor('xterm') {
78+
sh "docker login -u $REGISTRY_USERNAME -p $REGISTRY_PASSWORD"
79+
sh "BRANCH_NAME='${BRANCH_NAME}' make fossa-analyze"
80+
sh 'make fossa-test'
81+
}
7282
}
7383
}
7484
}

0 commit comments

Comments
 (0)