@@ -29,105 +29,78 @@ pipeline {
29
29
}
30
30
}
31
31
32
- stage (' Build With Hadoop Profile against hdp2.5 ' ) {
32
+ stage (' Build With MongoDB storage-engine ' ) {
33
33
options {
34
34
timeout(time : 30 , unit : ' MINUTES' )
35
35
}
36
36
steps {
37
- sh ' mvn clean install -DskipTests -Phdp2.5 -Dcheckstyle.skip'
37
+ sh ' mvn clean install -DskipTests -Dopencga.war.name=opencga -Dcheckstyle.skip'
38
38
}
39
39
}
40
40
41
- stage (' Build With Hadoop Profile against hdp3.1 ' ) {
41
+ stage (' Build and publish OpenCGA Docker Images ' ) {
42
42
options {
43
43
timeout(time : 30 , unit : ' MINUTES' )
44
44
}
45
45
steps {
46
- sh ' mvn clean install -DskipTests -Phdp3.1 -Dcheckstyle.skip'
46
+ withDockerRegistry([ credentialsId : " wasim-docker-hub" , url : " " ]) {
47
+ sh " build/cloud/docker/docker-build.py --org opencb push"
48
+ }
47
49
}
48
50
}
49
- stage (' Build With Hadoop Profile against hdp2.6' ) {
51
+
52
+ stage (' Build With Hadoop storage-engine against hdp2.5' ) {
50
53
options {
51
54
timeout(time : 30 , unit : ' MINUTES' )
52
55
}
53
56
steps {
54
- sh ' mvn clean install -DskipTests -Dstorage-mongodb -Dstorage- hadoop -Phdp2.6 -DOPENCGA.STORAGE.DEFAULT_ENGINE=hadoop -Dopencga.war.name=opencga -Dcheckstyle.skip '
57
+ sh ' mvn clean install -DskipTests -P storage- hadoop -Phdp2.5 -Dcheckstyle.skip -Dopencga.war.name=opencga'
55
58
}
56
59
}
57
-
58
- stage (' Validate' ) {
60
+ stage (' Build With Hadoop storage-engine against hdp3.1' ) {
59
61
options {
60
- timeout(time : 5 , unit : ' MINUTES' )
62
+ timeout(time : 30 , unit : ' MINUTES' )
61
63
}
62
64
steps {
63
- sh ' mvn validate '
65
+ sh ' mvn clean install -DskipTests -P storage-hadoop -Phdp3.1 -Dcheckstyle.skip -Dopencga.war.name=opencga '
64
66
}
65
67
}
66
-
67
- stage (' Build OpenCGA-Hadoop Docker Images' ) {
68
+ stage (' Build and publish OpenCGA Docker Images hdp3.1' ) {
68
69
options {
69
- timeout(time : 25 , unit : ' MINUTES' )
70
+ timeout(time : 30 , unit : ' MINUTES' )
70
71
}
71
72
steps {
72
- sh ' make -f opencga-app/app/cloud/docker/Makefile DOCKER_ORG="opencb"'
73
- }
74
- }
75
-
76
- stage (' Publish OpenCGA-Hadoop Docker Images' ) {
77
- options {
78
- timeout(time : 25 , unit : ' MINUTES' )
79
- }
80
- steps {
81
- script {
82
- def images = [" opencga" , " opencga-app" , " opencga-daemon" , " opencga-init" , " opencga-batch" ]
83
- def tag = sh(returnStdout : true , script : " git log -1 --pretty=%h" ). trim()
84
- withDockerRegistry([ credentialsId : " wasim-docker-hub" , url : " " ]) {
85
- for (int i = 0 ; i < images. size(); i++ ){
86
- sh " docker tag '${ images[i]} ' opencb/'${ images[i]} ':${ tag} "
87
- sh " docker push opencb/'${ images[i]} ':${ tag} "
88
- }
89
- }
73
+ withDockerRegistry([ credentialsId : " wasim-docker-hub" , url : " " ]) {
74
+ sh " build/cloud/docker/docker-build.py --org opencb --images base,init push"
90
75
}
91
- }
76
+ }
92
77
}
93
-
94
- stage (' Build With Mongo Profile' ) {
78
+ stage (' Build With Hadoop storage-engine against hdp2.6' ) {
95
79
options {
96
80
timeout(time : 30 , unit : ' MINUTES' )
97
81
}
98
82
steps {
99
- sh ' mvn clean install -DskipTests -Dopencga.war.name=opencga -Dcheckstyle.skip'
83
+ sh ' mvn clean install -DskipTests -Dstorage-mongodb -Dstorage-hadoop -Phdp2.6 -DOPENCGA.STORAGE.DEFAULT_ENGINE=hadoop - Dopencga.war.name=opencga -Dcheckstyle.skip'
100
84
}
101
85
}
102
-
103
- stage (' Build OpenCGA-Mongo Docker Images' ) {
86
+ stage (' Build and publish OpenCGA Docker Images hdp2.6' ) {
104
87
options {
105
- timeout(time : 25 , unit : ' MINUTES' )
88
+ timeout(time : 30 , unit : ' MINUTES' )
106
89
}
107
90
steps {
108
- sh ' docker build -t opencga-next -f opencga-app/app/cloud/docker/opencga-next/Dockerfile .'
109
- sh ' docker build -t opencga-demo -f opencga-app/app/cloud/docker/opencga-demo/Dockerfile .'
91
+ withDockerRegistry([ credentialsId : " wasim-docker-hub" , url : " " ]) {
92
+ sh " build/cloud/docker/docker-build.py --org opencb --images base,init push"
93
+ }
110
94
}
111
95
}
112
-
113
- stage (' Publish OpenCGA-Mongo Docker Images' ) {
114
- options {
115
- timeout(time : 25 , unit : ' MINUTES' )
116
- }
117
- steps {
118
- script {
119
- def images = [" opencga-next" , " opencga-demo" ]
120
- def tag = sh(returnStdout : true , script : " git tag --sort version:refname | tail -1" ). trim(). substring(1 )
121
- withDockerRegistry([ credentialsId : " wasim-docker-hub" , url : " " ]) {
122
- for (int i = 0 ; i < images. size(); i++ ){
123
- sh " docker tag '${ images[i]} ' opencb/'${ images[i]} ':${ tag} "
124
- sh " docker push opencb/'${ images[i]} ':${ tag} "
125
- }
126
- }
127
- }
128
- }
96
+ stage (' Validate' ) {
97
+ options {
98
+ timeout(time : 5 , unit : ' MINUTES' )
99
+ }
100
+ steps {
101
+ sh ' mvn validate'
102
+ }
129
103
}
130
-
131
104
stage (' Clean Docker Images' ) {
132
105
options {
133
106
timeout(time : 10 , unit : ' MINUTES' )
0 commit comments