Skip to content

Commit 1afa722

Browse files
committed
updated jenkinsfile
1 parent ba89535 commit 1afa722

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Jenkinsfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ pipeline {
22
agent any
33

44
environment {
5-
JDK_TOOL_NAME = 'JDK 11'
6-
MAVEN_TOOL_NAME = 'Maven 3.8.6'
5+
JDK_TOOL_NAME = 'JDK 21'
6+
MAVEN_TOOL_NAME = 'Maven 3.9.9'
77
}
88

99
options {
@@ -48,7 +48,7 @@ pipeline {
4848
stage('Code Analysis') {
4949
when {
5050
anyOf {
51-
branch 'master'
51+
branch 'main'
5252
tag 'v*'
5353
changeRequest()
5454
}
@@ -58,7 +58,7 @@ pipeline {
5858
}
5959
steps {
6060
withMaven(jdk: env.JDK_TOOL_NAME, maven: env.MAVEN_TOOL_NAME) {
61-
sh 'mvn pmd:pmd pmd:cpd spotbugs:spotbugs'
61+
sh 'mvn -DskipTests=true package pmd:pmd pmd:cpd spotbugs:spotbugs'
6262
}
6363
}
6464
post {
@@ -70,7 +70,7 @@ pipeline {
7070
stage('Unit Tests') {
7171
when {
7272
anyOf {
73-
branch 'master'
73+
branch 'main'
7474
tag 'v*'
7575
changeRequest()
7676
}
@@ -92,7 +92,7 @@ pipeline {
9292
stage('Integration Tests') {
9393
when {
9494
anyOf {
95-
branch 'master'
95+
branch 'main'
9696
tag 'v*'
9797
changeRequest()
9898
}
@@ -117,7 +117,7 @@ pipeline {
117117
stage('Deploy Jar to Internal Nexus Repository') {
118118
when {
119119
anyOf {
120-
branch 'master'
120+
branch 'main'
121121
tag 'v*'
122122
}
123123
}

0 commit comments

Comments
 (0)