This is an automated email from the ASF dual-hosted git repository.

toulmean pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-tuweni.git


The following commit(s) were added to refs/heads/master by this push:
     new 0b63262  Fix Jenkinsfile step to capture dist build (#90)
0b63262 is described below

commit 0b63262a98d13aae9b47550432f7c478b0ef0e3d
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

Reply via email to