Skip to content

Commit 3819dff

Browse files
authored
ci: build develop branch with mvn deploy (#5770)
1 parent 9b98d92 commit 3819dff

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

Jenkinsfile

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ def boolean onlyDocumentationFilesChangedIn(String workDirectory) {
1212
}
1313

1414
node {
15+
1516
properties([
1617
disableConcurrentBuilds(abortPrevious: true),
1718
buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '2', daysToKeepStr: '', numToKeepStr: '5')),
@@ -36,11 +37,16 @@ node {
3637
return
3738
}
3839

40+
def buildType = 'install'
41+
if ("${env.BRANCH_NAME}".equals('develop')) {
42+
buildType = 'deploy'
43+
}
44+
3945
stage('Build target-platform') {
4046
timeout(time: 1, unit: 'HOURS') {
4147
dir("kura") {
4248
withMaven(jdk: 'temurin-jdk17-latest', maven: 'apache-maven-3.9.6') {
43-
sh "mvn -f target-platform/pom.xml clean install -Pno-mirror -Pcheck-exists-plugin"
49+
sh "mvn -f target-platform/pom.xml clean ${buildType} -Pno-mirror -Pcheck-exists-plugin"
4450
}
4551
}
4652
}
@@ -50,7 +56,7 @@ node {
5056
timeout(time: 2, unit: 'HOURS') {
5157
dir("kura") {
5258
withMaven(jdk: 'temurin-jdk17-latest', maven: 'apache-maven-3.9.6') {
53-
sh "mvn -f kura/pom.xml -Dsurefire.rerunFailingTestsCount=3 clean install -Pcheck-exists-plugin"
59+
sh "mvn -f kura/pom.xml -Dsurefire.rerunFailingTestsCount=3 clean ${buildType} -Pcheck-exists-plugin"
5460
}
5561
}
5662
}
@@ -70,7 +76,7 @@ node {
7076
timeout(time: 1, unit: 'HOURS') {
7177
dir("kura") {
7278
withMaven(jdk: 'temurin-jdk17-latest', maven: 'apache-maven-3.9.6') {
73-
sh "mvn -f kura/examples/pom.xml clean install -Pcheck-exists-plugin"
79+
sh "mvn -f kura/examples/pom.xml clean ${buildType} -Pcheck-exists-plugin"
7480
}
7581
}
7682
}

0 commit comments

Comments
 (0)