Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Commit

Permalink
Fix Jenkinsfile step to capture dist build (#90)
Browse files Browse the repository at this point in the history
* Fix Jenkinsfile step to capture dist build.

* build the source zip

* correct task name

* correct task name

* Only publish if branch is master
  • Loading branch information
atoulme committed Jun 22, 2020
1 parent a5729cf commit 359eed1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,28 +33,30 @@ pipeline {
}
}
}
stage('Build') {
stage('Integration tests') {
steps {
timeout(time: 60, unit: 'MINUTES') {
sh "./gradlew clean allDependencies checkLicenses spotlessCheck assemble test integrationTest"
sh "./gradlew clean integrationTest sourcesDistZip distZip"
}
}
}
stage('Check source build') {
steps {
timeout(time: 60, unit: 'MINUTES') {
sh "unzip build/distributions/tuweni-src-*.zip -d distsrc"
sh "cd distsrc && ./build.sh"
sh "unzip dist/build/distributions/tuweni-src-*.zip -d distsrc"
sh "cd distsrc/$(ls distsrc) && ./build.sh"
}
}
}
if(env.BRANCH_NAME == 'master'){
stage('Publish') {
steps {
timeout(time: 30, unit: 'MINUTES') {
sh "./gradlew publish"
}
}
}
}
}
post {
always {
Expand Down

0 comments on commit 359eed1

Please sign in to comment.