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 2022/10/14 15:36:07 UTC

[netbeans-jenkins-lib] branch master updated: give a try to a function

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 ab6f5e6  give a try to a function
ab6f5e6 is described below

commit ab6f5e60df3eb4f0167fade74ffd9d5d5e3cb785
Author: Eric Barboni <sk...@apache.org>
AuthorDate: Fri Oct 14 17:36:02 2022 +0200

    give a try to a function
---
 vars/asfMainNetBeansBuild.groovy | 57 ++++++++++++++++++++++------------------
 1 file changed, 31 insertions(+), 26 deletions(-)

diff --git a/vars/asfMainNetBeansBuild.groovy b/vars/asfMainNetBeansBuild.groovy
index 3da7750..51b0a7d 100644
--- a/vars/asfMainNetBeansBuild.groovy
+++ b/vars/asfMainNetBeansBuild.groovy
@@ -153,8 +153,11 @@ def call(Map params = [:]) {
                                 sh "ant build-nbms"
                                 sh "ant build-source-zips"
                                 sh "ant build-javadoc -Djavadoc.web.zip=${env.WORKSPACE}/WEBZIP.zip"
+                                
                                 archiveArtifacts 'WEBZIP.zip'
                                 junit 'nbbuild/build/javadoc/checklinks-errors.xml'
+                                
+                                publishToNightlies("/netbeans/apidocs/${env.BRANCH_NAME}","**/WEBZIP.zip")
                             }
                         }
                     }
@@ -205,32 +208,12 @@ def call(Map params = [:]) {
                         steps {
 
                             withAnt(installation: tooling.myAnt) {
-                                sh "echo 'testing copy' > ${env.WORKSPACE}/WEBZIP.zip"
-                                //sh "ant"
-                                //sh "ant build-javadoc -Djavadoc.web.zip=${env.WORKSPACE}/WEBZIP.zip"
+                                sh "ant"
+                                sh "ant build-javadoc -Djavadoc.web.zip=${env.WORKSPACE}/WEBZIP.zip"
                             }
                             archiveArtifacts 'WEBZIP.zip'
-                            //junit 'nbbuild/build/javadoc/checklinks-errors.xml'
-                            sshPublisher(publishers: [
-                                sshPublisherDesc(configName: 'Nightlies', transfers: [
-                                    sshTransfer(cleanRemote: true,
-                                                excludes: '', 
-                                                execCommand: '', 
-                                                execTimeout: 120000, 
-                                                flatten: false, 
-                                                makeEmptyDirs: false, 
-                                                noDefaultExcludes: false, 
-                                                patternSeparator: '[, ]+', 
-                                                remoteDirectory: "/netbeans/apidocs/${env.BRANCH_NAME}",
-                                                remoteDirectorySDF: false, 
-                                                removePrefix: "", 
-                                                sourceFiles: "**/WEBZIP.zip")],
-                                                usePromotionTimestamp: false,
-                                                useWorkspaceInPromotion: false, 
-                                                verbose: false)])
-                            
-                            
-
+                            junit 'nbbuild/build/javadoc/checklinks-errors.xml'
+                            publishToNightlies("/netbeans/apidocs/${env.BRANCH_NAME}","**/WEBZIP.zip")
                         }
                     }
                 }
@@ -292,6 +275,26 @@ def call(Map params = [:]) {
         }
     }
 }
+
+def publishToNightlies(remotedirectory , source) {
+    sshPublisher(publishers: [
+            sshPublisherDesc(configName: 'Nightlies', transfers: [
+                    sshTransfer(cleanRemote: true,
+                        excludes: '', 
+                        execCommand: '', 
+                        execTimeout: 120000, 
+                        flatten: false, 
+                        makeEmptyDirs: false, 
+                        noDefaultExcludes: false, 
+                        patternSeparator: '[, ]+', 
+                        remoteDirectory: remotedirectory,
+                        remoteDirectorySDF: false, 
+                        removePrefix: "", 
+                        sourceFiles: source)],
+                usePromotionTimestamp: false,
+                useWorkspaceInPromotion: false, 
+                verbose: false)])   
+}
 // in fact not parallel otherwise workspace not cleaned
 def doParallelClusters(cconfigs) {
     for (cluster in cconfigs) {
@@ -416,8 +419,10 @@ def doParallelClusters(cconfigs) {
                             }
 
                             archiveArtifacts 'dist/**'
-
-
+                            // apidoc
+                            publishToNightlies("/netbeans/apidocs/${env.BRANCH_NAME}","**/WEBZIP.zip")
+                            
+                            publishToNightlies("/netbeans/releasereparation/","dist/**/*.*")
                         }
                     }
                 }


---------------------------------------------------------------------
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