ADDED hub credentials for downloading fossa-image
properties([buildDiscarder(logRotator(numToKeepStr: '20'))])
+hubCred = [
+ $class: 'UsernamePasswordMultiBinding',
+ usernameVariable: 'REGISTRY_USERNAME',
+ passwordVariable: 'REGISTRY_PASSWORD',
+ credentialsId: 'orcaeng-hub.docker.com',
+]
+
pipeline {
agent {
label 'ubuntu-1804'
@@ -64,15 +71,18 @@ pipeline {
label 'ubuntu-1604-aufs-edge'
}
steps {
+ withCredentials([hubCred]) {
dir('src/github.com/docker/app') {
checkout scm
ansiColor('xterm') {
+ sh "docker login -u $REGISTRY_USERNAME -p $REGISTRY_PASSWORD"
sh "BRANCH_NAME='${BRANCH_NAME}' make fossa-analyze"
sh 'make fossa-test'
}
}
}
}
+ }
stage('Invocation image'){
agent {
label 'ubuntu-1804'
