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
+
3
10
pipeline {
4
11
agent {
5
12
label ' linux && x86_64'
@@ -17,15 +24,22 @@ pipeline {
17
24
stage(' Build' ) {
18
25
parallel {
19
26
stage(" Validate" ) {
27
+ environment {
28
+ FOSSA_API_KEY = credentials(' cb07b147-32a4-4400-aaac-21c3f8c9e62e' )
29
+ }
20
30
agent {
21
31
label ' ubuntu-1604-aufs-edge'
22
32
}
23
33
steps {
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'
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
+ }
29
43
}
30
44
}
31
45
}
@@ -35,23 +49,6 @@ pipeline {
35
49
}
36
50
}
37
51
}
38
- stage(" License Scan" ) {
39
- environment {
40
- FOSSA_API_KEY = credentials(' cb07b147-32a4-4400-aaac-21c3f8c9e62e' )
41
- }
42
- agent {
43
- label ' ubuntu-1604-aufs-edge'
44
- }
45
- steps {
46
- dir(' src/github.com/docker/app' ) {
47
- checkout scm
48
- ansiColor(xterm) {
49
- sh " BRANCH_NAME='${ BRANCH_NAME} ' make fossa-analyze"
50
- sh ' make fossa-test'
51
- }
52
- }
53
- }
54
- }
55
52
stage(" Binaries" ){
56
53
agent {
57
54
label ' ubuntu-1604-aufs-edge'
0 commit comments