This repository was archived by the owner on Jul 18, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +22
-19
lines changed Expand file tree Collapse file tree 2 files changed +22
-19
lines changed Original file line number Diff line number Diff line change 1
1
properties([buildDiscarder(logRotator(numToKeepStr : ' 20' ))])
2
2
3
- hubCred = [
4
- $class : ' UsernamePasswordMultiBinding' ,
5
- usernameVariable : ' REGISTRY_USERNAME' ,
6
- passwordVariable : ' REGISTRY_PASSWORD' ,
7
- credentialsId : ' orcaeng-hub.docker.com' ,
8
- ]
9
-
10
3
pipeline {
11
4
agent {
12
5
label ' linux && x86_64'
@@ -24,22 +17,15 @@ pipeline {
24
17
stage(' Build' ) {
25
18
parallel {
26
19
stage(" Validate" ) {
27
- environment {
28
- FOSSA_API_KEY = credentials(' cb07b147-32a4-4400-aaac-21c3f8c9e62e' )
29
- }
30
20
agent {
31
21
label ' ubuntu-1604-aufs-edge'
32
22
}
33
23
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'
43
29
}
44
30
}
45
31
}
Original file line number Diff line number Diff line change @@ -56,6 +56,23 @@ pipeline {
56
56
}
57
57
}
58
58
}
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
+ }
59
76
stage('Invocation image'){
60
77
agent {
61
78
label 'ubuntu-1804'
You can’t perform that action at this time.
0 commit comments