You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by sk...@apache.org on 2019/06/26 14:09:55 UTC

[netbeans-jenkins-lib] branch master updated: clean build dir

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

skygo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans-jenkins-lib.git


The following commit(s) were added to refs/heads/master by this push:
     new a05735b  clean build dir
a05735b is described below

commit a05735b91ebecb3f49f800937aed5b22c6b150f3
Author: Eric Barboni <sk...@apache.org>
AuthorDate: Wed Jun 26 16:09:49 2019 +0200

    clean build dir
---
 vars/asfMainNetBeansBuild.groovy | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/vars/asfMainNetBeansBuild.groovy b/vars/asfMainNetBeansBuild.groovy
index ad123a8..2396c4c 100644
--- a/vars/asfMainNetBeansBuild.groovy
+++ b/vars/asfMainNetBeansBuild.groovy
@@ -98,13 +98,15 @@ def call(Map params = [:]) {
                                 
                                 def clusterconfigs = ['platform','release']
                                 def targets = ['verify-libs-and-licenses','rat','build']
+                                sh "rm -rf ${env.WORKSPACE}/nbbuild/build"
+                                
                                 for (String clusterconfig in clusterconfigs) {
                                     sh "ant build-source-config -Dcluster.config=${clusterconfig} -Dbuildnum=${env.BRANCH_NAME}_${env.BUILD_NUMBER}"
                                     for (String target in targets){
                                         sh "rm -rf ${env.WORKSPACE}/${target}-${clusterconfig}-temp"
                                         sh "mkdir  ${env.WORKSPACE}/${target}-${clusterconfig}-temp"
                                         sh "cd ${env.WORKSPACE}/${target}-${clusterconfig}-temp"
-                                        sh "unzip ${env.WORKSPACE}/nbbuild/build/*${clusterconfig}*.zip"
+                                        sh "unzip ${env.WORKSPACE}/nbbuild/build/${clusterconfig}*.zip -d ${env.WORKSPACE}/${target}-${clusterconfig}-temp "
                                         sh "cp ${env.WORKSPACE}/.gitignore ."
                                         def add = "";
                                         if (target=="build") {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists