Skip to content

Commit f7907ae

Browse files
committed
Only package for branches master, develop, 7.0, 7.0-master
QA-1115
1 parent 3c6e1ba commit f7907ae

File tree

1 file changed

+11
-19
lines changed

1 file changed

+11
-19
lines changed

Jenkinsfile

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,6 @@ pipeline {
6565
}
6666
}
6767
}
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-
}
7868
stage('Static Code Analysis') {
7969
parallel {
8070
stage('Checkstyle') {
@@ -110,14 +100,6 @@ pipeline {
110100
}
111101
}
112102
}
113-
stage('Archive Artifacts') {
114-
options {
115-
timeout(time: 5, unit: 'MINUTES')
116-
}
117-
steps {
118-
archiveArtifacts allowEmptyArchive: true, artifacts: '**/*.jar'
119-
}
120-
}
121103
stage('Artifactory Deploy') {
122104
options {
123105
timeout(time: 5, unit: 'MINUTES')
@@ -126,6 +108,8 @@ pipeline {
126108
anyOf {
127109
branch "master"
128110
branch "develop"
111+
branch "7.0"
112+
branch "7.0-master"
129113
}
130114
}
131115
steps {
@@ -134,11 +118,19 @@ pipeline {
134118
def rtMaven = Artifactory.newMavenBuild()
135119
rtMaven.deployer server: server, releaseRepo: 'releases', snapshotRepo: 'snapshot'
136120
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'
138122
server.publishBuildInfo buildInfo
139123
}
140124
}
141125
}
126+
stage('Archive Artifacts') {
127+
options {
128+
timeout(time: 5, unit: 'MINUTES')
129+
}
130+
steps {
131+
archiveArtifacts allowEmptyArchive: true, artifacts: '**/*.jar'
132+
}
133+
}
142134
}
143135

144136
post {

0 commit comments

Comments
 (0)