pipeline { agent none stages { stage('Linux Build & Test') { environment { JAVA_HOME = '/usr/lib/jvm/java-11-openjdk-amd64' } agent { label 'p4java' } stages { stage('Compile') { steps { sh 'mvn compiler:compile spotbugs:check' } } stage('Build and Test') { steps { sh 'mvn clean package -P enable-jacoco' } } } post { always { sh 'mvn surefire-report:report-only' publishHTML target: [ allowMissing: false, alwaysLinkToLastBuild: true, keepAll: true, reportDir: 'target/site/', reportFiles: 'surefire-report.html', reportName: 'LinuxTestReport' ] publishCoverage adapters: [ jacocoAdapter('target/site/jacoco/jacoco.xml') ], sourceFileResolver: sourceFiles('STORE_LAST_BUILD') } success { archiveArtifacts artifacts: 'target/p4.hpi', fingerprint: true } } } stage('Windows Build & Test') { environment { JAVA_HOME = "C:\\Program Files\\Java\\jdk-11.0.16.1" } agent { label 'p4java-win' } stages { stage('Compile') { steps { bat 'mvn compiler:compile spotbugs:check' } } stage('Build and Test') { steps { bat 'mvn clean package' } } } post { always { bat 'mvn surefire-report:report-only' publishHTML target: [ allowMissing: false, alwaysLinkToLastBuild: true, keepAll: true, reportDir: 'target/site/', reportFiles: 'surefire-report.html', reportName: 'WindowsTestReport' ] } } } stage('Launch system tests') { steps { build job: 'jenkins-system-tests/main', wait: false } } } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#23 | 30142 | Sandeep Kumar |
Merge pull request #[202] from [master/RevertChanges] Revert Gradle Changes |
||
#22 | 30083 | Sandeep Kumar |
Merge pull request #[199] from [jenkinsci/BuildUsingGradle] Chnage build tool from maven to gradle |
||
#21 | 30004 | Paul Allen |
Jenkins version 2.361.4 Plugin 4.52 Java 11 |
||
#20 | 29672 | Sandeep Kumar |
Merge pull request #180 from skumar7322/UpdateP4JavaVersion Update p4Java version to: 2022.2.2444480 |
||
#19 | 29216 | Paul Allen | Update branch name for system tests. | ||
#18 | 28465 | Paul Allen | Path fix | ||
#17 | 26327 | matthew_smeeth | Attempting to force building of system tests section to build main branch | ||
#16 | 26326 | matthew_smeeth | Removing empty success section from windows section | ||
#15 | 26325 | matthew_smeeth | refactoring Jenkinsfile-integ in attaempt to get working | ||
#14 | 26324 | matthew_smeeth | Trying again to get correct syntax for triggering jenkins-system-tests in Jenkinsfile-integ | ||
#13 | 26322 | matthew_smeeth | Trying again to get correct syntax for triggering jenkins-system-tests in Jenkinsfile-integ | ||
#12 | 26321 | matthew_smeeth | Trying again to get correct syntax for triggering jenkins-system-tests in Jenkinsfile-integ | ||
#11 | 26320 | matthew_smeeth | Trying to get correct syntax for triggering jenkins-system-tests in Jenkinsfile-integ | ||
#10 | 26319 | matthew_smeeth | Adding trigger to launch jenkins-system-tetss to Jenkinsfile-integ | ||
#9 | 26318 | matthew_smeeth | Changing sh to bat when running on Windows machine in Jenkinsfile-integ | ||
#8 | 26317 | matthew_smeeth | Adding missing agent line in Jenkinsfile-integ | ||
#7 | 26316 | matthew_smeeth | Fixing compile error in Jenkinsfile-integ | ||
#6 | 26315 | matthew_smeeth | Adding Windows build steps to Jenkinsfile-integ | ||
#5 | 26311 | matthew_smeeth | Adding artifacts hpi file to Jenkinsfile-integ | ||
#4 | 25649 | matthew_smeeth | Added test report and compile stages to Jenkinsfile | ||
#3 | 25647 | matthew_smeeth | Added keep source files option to jenkinsfile | ||
#2 | 25643 | Paul Allen | Enable jacoco | ||
#1 | 25635 | Paul Allen | Basic Jenkinsfile for internal builds. |