Skip to content

Commit d41579b

Browse files
committed
normalize Jenkinsfile
1 parent e9008c5 commit d41579b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Jenkinsfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ pipeline {
55
activeDeadlineSeconds 3600
66
}
77
}
8+
options {
9+
ansiColor('xterm')
10+
}
811
stages {
912
stage('Init') {
1013
steps {
@@ -16,6 +19,7 @@ pipeline {
1619
repo = m.group(5)
1720
}
1821
}
22+
discoverReferenceBuild()
1923
}
2024
}
2125
stage('Setup build') {
@@ -41,7 +45,7 @@ pipeline {
4145
usernamePassword(credentialsId: 'jenkins-ossrh', usernameVariable: 'OSSRH_USER', passwordVariable: 'OSSRH_PASS'),
4246
string(credentialsId: 'jenkins-gpg', variable: 'GPG_PASS')]) {
4347
withMaven {
44-
sh "./jdk-wrapper.sh ./mvnw $target -P rpm -U -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -Ddocker.verbose=true"
48+
sh "./jdk-wrapper.sh ./mvnw $target -P rpm -U -B -Dstyle.color=always -Dstyle.color=always -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -Ddocker.verbose=true"
4549
}
4650
}
4751
}
@@ -60,6 +64,7 @@ pipeline {
6064
}
6165
post('Analysis') {
6266
always {
67+
recordCoverage(tools: [[parser: 'JACOCO']])
6368
recordIssues(
6469
enabledForFailure: true, aggregatingResults: true,
6570
tools: [java(), checkStyle(reportEncoding: 'UTF-8'), spotBugs()])

0 commit comments

Comments
 (0)