@@ -65,16 +65,6 @@ pipeline {
65
65
}
66
66
}
67
67
}
68
- stage(' Package' ) {
69
- options {
70
- timeout(time : 5 , unit : ' MINUTES' )
71
- }
72
- steps {
73
- withMaven(jdk : ' 1.8' , maven : ' M3' ) {
74
- sh ' mvn package -Dmaven.test.skip=true'
75
- }
76
- }
77
- }
78
68
stage(' Static Code Analysis' ) {
79
69
parallel {
80
70
stage(' Checkstyle' ) {
@@ -110,14 +100,6 @@ pipeline {
110
100
}
111
101
}
112
102
}
113
- stage(' Archive Artifacts' ) {
114
- options {
115
- timeout(time : 5 , unit : ' MINUTES' )
116
- }
117
- steps {
118
- archiveArtifacts allowEmptyArchive : true , artifacts : ' **/*.jar'
119
- }
120
- }
121
103
stage(' Artifactory Deploy' ) {
122
104
options {
123
105
timeout(time : 5 , unit : ' MINUTES' )
@@ -126,6 +108,8 @@ pipeline {
126
108
anyOf {
127
109
branch " master"
128
110
branch " develop"
111
+ branch " 7.0"
112
+ branch " 7.0-master"
129
113
}
130
114
}
131
115
steps {
@@ -134,11 +118,19 @@ pipeline {
134
118
def rtMaven = Artifactory . newMavenBuild()
135
119
rtMaven. deployer server : server, releaseRepo : ' releases' , snapshotRepo : ' snapshot'
136
120
rtMaven. tool = ' M3'
137
- def buildInfo = rtMaven. run pom : ' pom.xml' , goals : ' package'
121
+ def buildInfo = rtMaven. run pom : ' pom.xml' , goals : ' package -Dmaven.test.skip=true '
138
122
server. publishBuildInfo buildInfo
139
123
}
140
124
}
141
125
}
126
+ stage(' Archive Artifacts' ) {
127
+ options {
128
+ timeout(time : 5 , unit : ' MINUTES' )
129
+ }
130
+ steps {
131
+ archiveArtifacts allowEmptyArchive : true , artifacts : ' **/*.jar'
132
+ }
133
+ }
142
134
}
143
135
144
136
post {
0 commit comments