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

Commit 5dbe6f4

Browse files
authored
Merge pull request #673 from docker/revert-670-fossa
Revert "Run fossa analysis in a distinct pipeline"
2 parents 6338683 + aa563c0 commit 5dbe6f4

2 files changed

Lines changed: 26 additions & 45 deletions

File tree

Jenkinsfile.baguette

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,32 @@ pipeline {
5656
}
5757
}
5858
}
59+
stage("License Scan") {
60+
when {
61+
anyOf {
62+
changeset "Gopkg.lock"
63+
branch "master"
64+
}
65+
}
66+
agent {
67+
label 'ubuntu-1604-aufs-edge'
68+
}
69+
steps {
70+
withCredentials([
71+
usernamePassword(credentialsId: 'dockerbuildbot-hub.docker.com', usernameVariable: 'REGISTRY_USERNAME', passwordVariable: 'REGISTRY_PASSWORD'),
72+
string(credentialsId: 'fossa-api-key', variable: 'FOSSA_API_KEY')
73+
]) {
74+
dir('src/github.com/docker/app') {
75+
checkout scm
76+
ansiColor('xterm') {
77+
sh 'echo "${REGISTRY_PASSWORD}" | docker login -u "${REGISTRY_USERNAME}" --password-stdin'
78+
sh "FOSSA_API_KEY=$FOSSA_API_KEY BRANCH_NAME='${BRANCH_NAME}' make fossa-analyze"
79+
sh "FOSSA_API_KEY=$FOSSA_API_KEY make fossa-test"
80+
}
81+
}
82+
}
83+
}
84+
}
5985
stage('Invocation image'){
6086
agent {
6187
label 'ubuntu-1804'

Jenkinsfile.fossa

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)