Skip to content

Commit e8e5662

Browse files
authored
Merge pull request #7 from tls-attacker/jenkinsfile_unification
updated jenkinsfile
2 parents 3ae20da + 308719c commit e8e5662

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Jenkinsfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,11 @@ pipeline {
5454
}
5555
}
5656
options {
57-
timeout(activity: true, time: 120, unit: 'SECONDS')
57+
timeout(activity: true, time: 240, unit: 'SECONDS')
5858
}
5959
steps {
6060
withMaven(jdk: env.JDK_TOOL_NAME, maven: env.MAVEN_TOOL_NAME) {
61+
// `package` goal is required here to load modules in reactor and avoid dependency resolve conflicts
6162
sh 'mvn -DskipTests=true package pmd:pmd pmd:cpd spotbugs:spotbugs'
6263
}
6364
}
@@ -76,7 +77,7 @@ pipeline {
7677
}
7778
}
7879
options {
79-
timeout(activity: true, time: 120, unit: 'SECONDS')
80+
timeout(activity: true, time: 180, unit: 'SECONDS')
8081
}
8182
steps {
8283
withMaven(jdk: env.JDK_TOOL_NAME, maven: env.MAVEN_TOOL_NAME) {
@@ -85,7 +86,7 @@ pipeline {
8586
}
8687
post {
8788
always {
88-
junit testResults: '**/target/surefire-reports/TEST-*.xml', allowEmptyResults: true
89+
junit testResults: '**/target/surefire-reports/TEST-*.xml'
8990
}
9091
}
9192
}
@@ -117,7 +118,7 @@ pipeline {
117118
}
118119
}
119120
}
120-
stage('Deploy Jar to Internal Nexus Repository') {
121+
stage('Deploy to Internal Nexus Repository') {
121122
when {
122123
anyOf {
123124
branch 'main'

0 commit comments

Comments
 (0)