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

Commit f1a8f73

Browse files
committed
Migrated fossa scans to private Jenkins
Signed-off-by: Zuhayr Elahi <[email protected]>
1 parent 770325b commit f1a8f73

File tree

2 files changed

+22
-19
lines changed

2 files changed

+22
-19
lines changed

Jenkinsfile

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
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-
103
pipeline {
114
agent {
125
label 'linux && x86_64'
@@ -24,22 +17,15 @@ pipeline {
2417
stage('Build') {
2518
parallel {
2619
stage("Validate") {
27-
environment {
28-
FOSSA_API_KEY=credentials('cb07b147-32a4-4400-aaac-21c3f8c9e62e')
29-
}
3020
agent {
3121
label 'ubuntu-1604-aufs-edge'
3222
}
3323
steps {
34-
withCredentials([hubCred]) {
35-
dir('src/github.com/docker/app') {
36-
checkout scm
37-
ansiColor('xterm') {
38-
sh 'make -f docker.Makefile lint'
39-
sh 'make -f docker.Makefile check-vendor'
40-
sh "BRANCH_NAME='${BRANCH_NAME}' make fossa-analyze"
41-
sh 'make fossa-test'
42-
}
24+
dir('src/github.com/docker/app') {
25+
checkout scm
26+
ansiColor('xterm') {
27+
sh 'make -f docker.Makefile lint'
28+
sh 'make -f docker.Makefile check-vendor'
4329
}
4430
}
4531
}

Jenkinsfile.baguette

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,23 @@ pipeline {
5656
}
5757
}
5858
}
59+
stage("License Scan") {
60+
environment {
61+
FOSSA_API_KEY=credentials('cb07b147-32a4-4400-aaac-21c3f8c9e62e')
62+
}
63+
agent {
64+
label 'ubuntu-1604-aufs-edge'
65+
}
66+
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'
72+
}
73+
}
74+
}
75+
}
5976
stage('Invocation image'){
6077
agent {
6178
label 'ubuntu-1804'

0 commit comments

Comments
 (0)