This is an automated email from the ASF dual-hosted git repository. toulmean pushed a commit to branch 1.1 in repository https://gitbox.apache.org/repos/asf/incubator-tuweni.git
The following commit(s) were added to refs/heads/1.1 by this push: new 359eed1 Fix Jenkinsfile step to capture dist build (#90) 359eed1 is described below commit 359eed1f0fb22d8e56e508d7ee54893571381bf3 Author: Antoine Toulme <atou...@users.noreply.github.com> AuthorDate: Sun Jun 21 23:54:35 2020 -0700 Fix Jenkinsfile step to capture dist build (#90) * Fix Jenkinsfile step to capture dist build. * build the source zip * correct task name * correct task name * Only publish if branch is master --- Jenkinsfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index c5f14aa..36b4866 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -33,21 +33,22 @@ 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') { @@ -55,6 +56,7 @@ pipeline { } } } + } } post { always { --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@tuweni.apache.org For additional commands, e-mail: commits-h...@tuweni.apache.org