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 4a5e04b nbpackage attemp (no nightpublish to test) new 2a83af7 Merge pull request #79 from ebarboni/nightliesphase3 4a5e04b is described below commit 4a5e04b8590f7b682582797d87667404c2a89210 Author: Eric Barboni <sk...@apache.org> AuthorDate: Wed Jan 25 17:23:13 2023 +0100 nbpackage attemp (no nightpublish to test) --- vars/asfMainNetBeansBuild.groovy | 319 ++++++++++++++++++++------------------- 1 file changed, 163 insertions(+), 156 deletions(-) diff --git a/vars/asfMainNetBeansBuild.groovy b/vars/asfMainNetBeansBuild.groovy index be8f4d3..bbf50dc 100644 --- a/vars/asfMainNetBeansBuild.groovy +++ b/vars/asfMainNetBeansBuild.groovy @@ -48,6 +48,8 @@ def tooling=[:] @groovy.transform.Field def repopluginversion="14.0-SNAPSHOT" @groovy.transform.Field +def nbpackageversion="1.0-beta3-SNAPSHOT" +@groovy.transform.Field def branch="" @groovy.transform.Field def heavyrelease=true @@ -153,9 +155,9 @@ def call(Map params = [:]) { sh "ant build-nbms" sh "ant build-source-zips" sh "ant build-javadoc -Djavadoc.web.zip=${env.WORKSPACE}/WEBZIP.zip" - + junit 'nbbuild/build/javadoc/checklinks-errors.xml' - + publishToNightlies("/netbeans/apidocs/${env.BRANCH_NAME}","**/WEBZIP.zip") } } @@ -175,7 +177,7 @@ def call(Map params = [:]) { sh "rm -rf ${env.WORKSPACE}/.repository" withMaven(maven:tooling.myMaven,jdk:tooling.jdktool,publisherStrategy: 'EXPLICIT',mavenLocalRepo: localRepo) { - sh "mvn org.apache.maven.plugins:maven-dependency-plugin:3.1.1:get -Dartifact=org.apache.netbeans.utilities:nb-repository-plugin:${repopluginversion} -DremoteRepositories=apache.snapshots.https::::https://repository.apache.org/snapshots" + sh "mvn org.apache.maven.plugins:maven-dependency-plugin:3.5.0:get -Dartifact=org.apache.netbeans.utilities:nb-repository-plugin:${repopluginversion} -DremoteRepositories=apache.snapshots.https::::https://repository.apache.org/snapshots" //sh "mvn org.apache.netbeans.utilities:nb-repository-plugin:1.5:download -DnexusIndexDirectory=${env.WORKSPACE}/repoindex -DrepositoryUrl=https://repo.maven.apache.org/maven2" sh "mvn org.apache.netbeans.utilities:nb-repository-plugin:${repopluginversion}:populate ${commonparam} -DnetbeansNbmDirectory=${netbeansbase}/nbms -DnetbeansInstallDirectory=${netbeansbase}/netbeans -DnetbeansSourcesDirectory=${netbeansbase}/build/source-zips -DnetbeansJavadocDirectory=${netbeansbase}/build/javadoc -DparentGAV=org.apache.netbeans:netbeans-parent:3 -DforcedVersion=${mavenVersion} -DskipInstall=true -DdeployId=apache.snapshots.https [...] @@ -196,7 +198,7 @@ def call(Map params = [:]) { when { allOf { //expression { BRANCH_NAME ==~ /release[0-9]+/ } - branch pattern : "release\\d+",comparator:"REGEXP" + branch pattern : "release\\d+",comparator:"REGEXP" //wait for modern 1.4.1 expression { month !='Invalid'} } @@ -224,7 +226,7 @@ def call(Map params = [:]) { when { allOf { //expression { BRANCH_NAME ==~ /release[0-9]+/ || BRANCH_NAME ==~ /vsnetbeans_preview_[0-9]+/ } - branch pattern : "release\\d+|vsnetbeans_preview_\\d+",comparator:"REGEXP" + branch pattern : "release\\d+|vsnetbeans_preview_\\d+",comparator:"REGEXP" //wait for modern 1.4.1 expression { month =='Invalid' } } @@ -238,30 +240,12 @@ def call(Map params = [:]) { } } } - /*steps { - withAnt(installation: tooling.myAnt) { - script { - //sh 'ant' - if (env.BRANCH_NAME=="master") { - // on master we build apidoc + populating snapshot repository - // should be on line for each otherwise cluster are wrong - //sh "rm -rf ${env.WORKSPACE}/repoindex/" - } else if (month !='Invalid') { - // we have a valid month, this package is already released. Build only javadoc - } else { - // we want to setup for release - // apidoc + repomaven + dist bundle - - } - } - } - }*/ } post { cleanup { - cleanWs() // deleteDirs: true, notFailBuild: true, patterns: [[pattern: '**/.repository/**', type: 'INCLUDE']] + cleanWs() } success { slackSend (channel:'#netbeans-builds', message:"SUCCESS: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]' (${env.BUILD_URL}) ",color:'#00FF00') @@ -278,20 +262,20 @@ def publishToNightlies(remotedirectory , source, prefix="") { sshPublisher(publishers: [ sshPublisherDesc(configName: 'Nightlies', transfers: [ sshTransfer(cleanRemote: true, - excludes: '', - execCommand: '', - execTimeout: 0, - flatten: false, - makeEmptyDirs: false, - noDefaultExcludes: false, - patternSeparator: '[, ]+', + excludes: '', + execCommand: '', + execTimeout: 0, + flatten: false, + makeEmptyDirs: false, + noDefaultExcludes: false, + patternSeparator: '[, ]+', remoteDirectory: remotedirectory, - remoteDirectorySDF: false, - removePrefix: prefix, + remoteDirectorySDF: false, + removePrefix: prefix, sourceFiles: source)], usePromotionTimestamp: false, - useWorkspaceInPromotion: false, - verbose: false)]) + useWorkspaceInPromotion: false, + verbose: false)]) } // in fact not parallel otherwise workspace not cleaned def doParallelClusters(cconfigs) { @@ -300,139 +284,162 @@ def doParallelClusters(cconfigs) { def path = cluster[1] stage("prepare ${clustername}") { sh "rm -rf nbbuild/build" + withAnt(installation: tooling.myAnt) { + sh "ant build-source-config -Dcluster.config=${clustername} -Dbuildnum=666 -Dmetabuild.branch=${branch}" + script { + def targets = ['verify-libs-and-licenses','rat','build'] + for (String target in targets) { + stage("${target} for ${clustername}") { - sh "ant build-source-config -Dcluster.config=${clustername} -Dbuildnum=666 -Dmetabuild.branch=${branch}" - script { - def targets = ['verify-libs-and-licenses','rat','build'] - for (String target in targets) { - stage("${target} for ${clustername}") { - // prepare a clean subfolder target - clustername prefixed - sh "rm -rf ${target}-${clustername}-temp && mkdir ${target}-${clustername}-temp && unzip -q nbbuild/build/${clustername}*.zip -d ${target}-${clustername}-temp && cp .gitignore ${env.WORKSPACE}/${target}-${clustername}-temp" - def add = ""; - // - if (target=="build" && env.BRANCH_NAME!="release90") { - add=" -Ddo.build.windows.launchers=true" - } - - // build the target on the cluster defined common to all - sh "ant -f ${target}-${clustername}-temp/build.xml ${target} -Dcluster.config=${clustername} ${add} -Dmetabuild.branch=${branch}" + def localRepo = ".repository" + // prepare a clean subfolder target - clustername prefixed + sh "rm -rf ${target}-${clustername}-temp && mkdir ${target}-${clustername}-temp && unzip -q nbbuild/build/${clustername}*.zip -d ${target}-${clustername}-temp && cp .gitignore ${env.WORKSPACE}/${target}-${clustername}-temp" + def add = ""; - // for verify-libs-and-licenses we only want the reports - if (target=='verify-libs-and-licenses') { - junit "verify-libs-and-licenses-${clustername}-temp/nbbuild/build/verifylibsandlicenses.xml" - } + // + if (target=="build" && env.BRANCH_NAME!="release90") { + add=" -Ddo.build.windows.launchers=true" + } - // for rat we only want the reports (junit fail at the moment empty test) - if (target=='rat') { - // save report and test for rat and verify.. - archiveArtifacts "rat-${clustername}-temp/nbbuild/build/rat-report.txt" - junit testResults: "rat-${clustername}-temp/nbbuild/build/rat/*.xml" , allowEmptyResults:true - } + // build the target on the cluster defined common to all + sh "ant -f ${target}-${clustername}-temp/build.xml ${target} -Dcluster.config=${clustername} ${add} -Dmetabuild.branch=${branch}" - // build target is more complex, - if (target=='build') { - // prepare versionned path - def versionnedpath = "/${path}/${versionpath}" - - sh "mkdir -p dist${versionnedpath}" - // source - sh "cp nbbuild/build/*${clustername}*.zip dist${versionnedpath}${path}-${rmversion}-source.zip" - // binaries - sh "cp build-${clustername}-temp/nbbuild/*${clustername}*.zip dist${versionnedpath}${path}-${rmversion}-bin.zip" - - // special case for release prepare bits, maven, javadoc installer - if (clustername == "release") { - - // installer we prepare a folder so that release manager can build mac os on his own - sh "mkdir -p dist${versionnedpath}nbms" - sh "mkdir -p dist/installers" - sh "mkdir -p distpreparation${versionnedpath}installer" - sh "mkdir -p dist/vsix" - if (heavyrelease) { // skip install for vscode - def installer = libraryResource 'org/apache/netbeans/installer.sh' - writeFile file: "distpreparation${versionnedpath}installer/installer.sh", text: installer - - def installermac = libraryResource 'org/apache/netbeans/installermac.sh' - writeFile file: "distpreparation${versionnedpath}installer/installermac.sh", text: installermac - - sh "chmod +x distpreparation${versionnedpath}installer/installer.sh" - - sh "mkdir -p distpreparation${versionnedpath}installer/nbbuild/newbuild && cp build-${clustername}-temp/nbbuild/newbuild/* distpreparation${versionnedpath}installer/nbbuild/newbuild " - sh "mkdir -p distpreparation${versionnedpath}installer/nbbuild/installer && cp -r build-${clustername}-temp/nbbuild/installer distpreparation${versionnedpath}installer/nbbuild " - sh "mkdir -p distpreparation${versionnedpath}installer/nbi && cp -r build-${clustername}-temp/nbi distpreparation${versionnedpath}installer " - sh "cp build-${clustername}-temp/nbbuild/binaries-default-properties.xml distpreparation${versionnedpath}installer/nbbuild/binaries-default-properties.xml " - sh "mkdir -p distpreparation${versionnedpath}installer/nbbuild/build/ && cp -r build-${clustername}-temp/nbbuild/build/antclasses distpreparation${versionnedpath}installer/nbbuild/build/antclasses " - - sh "mkdir -p distpreparation${versionnedpath}installer/nb/ide.launcher && cp -r build-${clustername}-temp/nb/ide.launcher/macosx distpreparation${versionnedpath}installer/nb/ide.launcher " - - - sh "cp build-${clustername}-temp/nbbuild/*${clustername}*.zip dist${versionnedpath}${path}-${rmversion}-bin.zip" - def binaryfile = "${env.WORKSPACE}/dist${versionnedpath}${path}-${rmversion}-bin.zip" - def timestamp = sh(returnStdout: true, script: 'date +%y%m%d').trim() - - sh "cd distpreparation${versionnedpath}installer && ./installer.sh ${binaryfile} ${version} ${timestamp}" - sh "cp distpreparation${versionnedpath}installer/dist/bundles/* dist/installers/ " - publishToNightlies("/netbeans/candidate/installers","distpreparation${versionnedpath}installer/dist/bundles/*","distpreparation${versionnedpath}installer/dist/bundles/") - - sh "rm -rf distpreparation${versionnedpath}installer/dist" - // XXX take too long 18012023 publishToNightlies("/netbeans/candidate/installerspreparation","distpreparation/**/**","distpreparation") - - archiveArtifacts 'distpreparation/**' - - } - - - // the installer phase is ok we should have installer for linux / windows + scripts and a bit of source to build macos later - - - // additionnal target to have maven ready - // javadoc build - sh "ant -f build-${clustername}-temp/build.xml build-nbms build-source-zips generate-uc-catalog -Dcluster.config=release -Ddo.build.windows.launchers=true -Dmetabuild.branch=${branch}" - sh "ant -f build-${clustername}-temp/build.xml build-javadoc -Djavadoc.web.root='${apidocurl}' -Dmodules-javadoc-date='${date}' -Datom-date='${atomdate}' -Djavadoc.web.zip=${env.WORKSPACE}/WEBZIP.zip -Dmetabuild.branch=${branch}" - sh "cp -r build-${clustername}-temp/nbbuild/nbms/** dist${versionnedpath}nbms/" - - // apidoc - publishToNightlies("/netbeans/apidocs/${env.BRANCH_NAME}","**/WEBZIP.zip") - - junit testResults: "build-${clustername}-temp/nbbuild/build/javadoc/checklinks-errors.xml", allowEmptyResults:true - def localRepo = ".repository" - def netbeansbase = "build-${clustername}-temp/nbbuild" - sh "ant -f build-${clustername}-temp/build.xml getallmavencoordinates -Dmetabuild.branch=${branch}" - withMaven(maven:tooling.myMaven,jdk:tooling.jdktool,publisherStrategy: 'EXPLICIT',mavenLocalRepo: localRepo,options:[artifactsPublisher(disabled: true)]) - { - sh "mvn org.apache.maven.plugins:maven-dependency-plugin:3.1.1:get -Dartifact=org.apache.netbeans.utilities:nb-repository-plugin:${repopluginversion} -Dmaven.repo.local=${env.WORKSPACE}/.repository -DremoteRepositories=apache.snapshots.https::::https://repository.apache.org/snapshots" - def commonparam = "-Dexternallist=${netbeansbase}/build/external.info" - //sh "mvn org.apache.netbeans.utilities:nb-repository-plugin:1.5:download ${commonparam} -DrepositoryUrl=https://repo.maven.apache.org/maven2" - if (heavyrelease) { // skip mavenrepo for vscode - sh "mvn org.apache.netbeans.utilities:nb-repository-plugin:${repopluginversion}:populate ${commonparam} -DnetbeansNbmDirectory=${netbeansbase}/nbms -DnetbeansInstallDirectory=${netbeansbase}/netbeans -DnetbeansSourcesDirectory=${netbeansbase}/build/source-zips -DnetbeansJavadocDirectory=${netbeansbase}/build/javadoc -DparentGAV=org.apache.netbeans:netbeans-parent:3 -DforcedVersion=${mavenVersion} -DskipInstall=true -DdeployUrl=file://${env.WORKSPAC [...] - zip zipFile:'mavenrepo.zip',dir:'mavenrepository',archive:'true' - //archiveArtifacts 'mavenrepository/**' useless to have each file - //publishToNightlies("/netbeans/candidate/mavenrepository","mavenrepo.zip") - } - // make vsix available to dist to pickup (only for main release) need a maven setup - sh "ant -f build-${clustername}-temp/java/java.lsp.server build-vscode-ext -Dvsix.version=${vsixversion} -Dmetabuild.branch=${branch}" - sh "cp -r build-${clustername}-temp/java/java.lsp.server/build/*.vsix dist/vsix/" - publishToNightlies("/netbeans/candidate/vsix","build-${clustername}-temp/java/java.lsp.server/build/*.vsix","build-${clustername}-temp/java/java.lsp.server/build") - } - - - + // for verify-libs-and-licenses we only want the reports + if (target=='verify-libs-and-licenses') { + junit "verify-libs-and-licenses-${clustername}-temp/nbbuild/build/verifylibsandlicenses.xml" } - // do checksum - def extensions = ['*.zip','*.nbm','*.gz','*.jar','*.xml','*.license'] - for (String extension in extensions) { - sh "cd dist"+' && for z in $(find . -name "'+"${extension}"+'") ; do cd $(dirname $z) ; sha512sum ./$(basename $z) > $(basename $z).sha512; cd - >/dev/null; done ' + // for rat we only want the reports (junit fail at the moment empty test) + if (target=='rat') { + // save report and test for rat and verify.. + archiveArtifacts "rat-${clustername}-temp/nbbuild/build/rat-report.txt" + junit testResults: "rat-${clustername}-temp/nbbuild/build/rat/*.xml" , allowEmptyResults:true } - archiveArtifacts 'dist/**' - // - publishToNightlies("/netbeans/candidate/${versionnedpath}","dist${versionnedpath}/*","dist${versionnedpath}") + // build target is more complex, + if (target=='build') { + // prepare versionned path + def versionnedpath = "/${path}/${versionpath}" + + sh "mkdir -p dist${versionnedpath}" + // source + sh "cp nbbuild/build/*${clustername}*.zip dist${versionnedpath}${path}-${rmversion}-source.zip" + // binaries + sh "cp build-${clustername}-temp/nbbuild/*${clustername}*.zip dist${versionnedpath}${path}-${rmversion}-bin.zip" + + // special case for release prepare bits, maven, javadoc installer + if (clustername == "release") { + + // installer we prepare a folder so that release manager can build mac os on his own + sh "mkdir -p dist${versionnedpath}nbms" + sh "mkdir -p dist/installers" + sh "mkdir -p distpreparation${versionnedpath}installer" + sh "mkdir -p dist/vsix" + if (heavyrelease) { // skip install for vscode + def installer = libraryResource 'org/apache/netbeans/installer.sh' + writeFile file: "distpreparation${versionnedpath}installer/installer.sh", text: installer + + def installermac = libraryResource 'org/apache/netbeans/installermac.sh' + writeFile file: "distpreparation${versionnedpath}installer/installermac.sh", text: installermac + + sh "chmod +x distpreparation${versionnedpath}installer/installer.sh" + + sh "mkdir -p distpreparation${versionnedpath}installer/nbbuild/newbuild && cp build-${clustername}-temp/nbbuild/newbuild/* distpreparation${versionnedpath}installer/nbbuild/newbuild " + sh "mkdir -p distpreparation${versionnedpath}installer/nbbuild/installer && cp -r build-${clustername}-temp/nbbuild/installer distpreparation${versionnedpath}installer/nbbuild " + sh "mkdir -p distpreparation${versionnedpath}installer/nbi && cp -r build-${clustername}-temp/nbi distpreparation${versionnedpath}installer " + sh "cp build-${clustername}-temp/nbbuild/binaries-default-properties.xml distpreparation${versionnedpath}installer/nbbuild/binaries-default-properties.xml " + sh "mkdir -p distpreparation${versionnedpath}installer/nbbuild/build/ && cp -r build-${clustername}-temp/nbbuild/build/antclasses distpreparation${versionnedpath}installer/nbbuild/build/antclasses " + + sh "mkdir -p distpreparation${versionnedpath}installer/nb/ide.launcher && cp -r build-${clustername}-temp/nb/ide.launcher/macosx distpreparation${versionnedpath}installer/nb/ide.launcher " + + + sh "cp build-${clustername}-temp/nbbuild/*${clustername}*.zip dist${versionnedpath}${path}-${rmversion}-bin.zip" + def binaryfile = "../../../dist${versionnedpath}${path}-${rmversion}-bin.zip" + def timestamp = sh(returnStdout: true, script: 'date +%y%m%d').trim() + + sh "cd distpreparation${versionnedpath}installer && ./installer.sh ${binaryfile} ${version} ${timestamp}" + // we archive put to nightlies only exe for window, nbpackage is intended to do the installler + sh "cp distpreparation${versionnedpath}installer/dist/bundles/*.exe dist/installers/ " + // XXX UNCOMMENT FOR RC3 publishToNightlies("/netbeans/candidate/installers","distpreparation${versionnedpath}installer/dist/bundles/*.exe","distpreparation${versionnedpath}installer/dist/bundles/") + + sh "rm -rf distpreparation${versionnedpath}installer/dist" + // XXX take too long 18012023 publishToNightlies("/netbeans/candidate/installerspreparation","distpreparation/**/**","distpreparation") + + archiveArtifacts 'distpreparation/**' + + sh "mkdir -p nbpackage${versionnedpath}installer" + withMaven(maven:tooling.myMaven,jdk:tooling.jdktool,publisherStrategy: 'EXPLICIT',mavenLocalRepo: localRepo,options:[artifactsPublisher(disabled: true)]) + { + // unpack nbpackage snapshot can later + sh "mvn org.apache.maven.plugins:maven-dependency-plugin:3.5.0:get -Dartifact=org.apache.netbeans:nbpackage:${nbpackageversion}:bin:zip -Dmaven.repo.local=${env.WORKSPACE}/.repository -DremoteRepositories=apache.snapshots.https::::https://repository.apache.org/snapshots" + sh "mvn org.apache.maven.plugins:maven-dependency-plugin:3.5.0:unpack -DoutputDirectory=nbpackage${versionnedpath}installer -Dartifact=org.apache.netbeans:nbpackage:${nbpackageversion}:bin:zip -Dmaven.repo.local=${env.WORKSPACE}/.repository -DremoteRepositories=apache.snapshots.https::::https://repository.apache.org/snapshots" + + // build installer only deb for testing. + sh """ +nbpackage${versionnedpath}installer/nbpackage-${nbpackageversion}/bin/nbpackage + --type linux-deb + -Pname="Apache NetBeans" + -Pversion=$version + -Purl="https://netbeans.apache.org" + -Pdeb.maintainer="NetBeans Mailing List <us...@netbeans.apache.org>" + -Pdeb.desktop-filename="apache-netbeans-ide-$rmversion" + -Pdeb.wmclass="Apache NetBeans IDE $rmversion" + --input dist$versionnedpath$path-$rmversion-bin.zip +""" + // debug output + archiveArtifacts 'nbpackage${versionnedpath}installer/**' + } + + } + + + // the installer phase is ok we should have installer for linux / windows + scripts and a bit of source to build macos later + + + // additionnal target to have maven ready + // javadoc build + sh "ant -f build-${clustername}-temp/build.xml build-nbms build-source-zips generate-uc-catalog -Dcluster.config=release -Ddo.build.windows.launchers=true -Dmetabuild.branch=${branch}" + sh "ant -f build-${clustername}-temp/build.xml build-javadoc -Djavadoc.web.root='${apidocurl}' -Dmodules-javadoc-date='${date}' -Datom-date='${atomdate}' -Djavadoc.web.zip=${env.WORKSPACE}/WEBZIP.zip -Dmetabuild.branch=${branch}" + sh "cp -r build-${clustername}-temp/nbbuild/nbms/** dist${versionnedpath}nbms/" + + // apidoc + publishToNightlies("/netbeans/apidocs/${env.BRANCH_NAME}","**/WEBZIP.zip") + + junit testResults: "build-${clustername}-temp/nbbuild/build/javadoc/checklinks-errors.xml", allowEmptyResults:true + def netbeansbase = "build-${clustername}-temp/nbbuild" + sh "ant -f build-${clustername}-temp/build.xml getallmavencoordinates -Dmetabuild.branch=${branch}" + withMaven(maven:tooling.myMaven,jdk:tooling.jdktool,publisherStrategy: 'EXPLICIT',mavenLocalRepo: localRepo,options:[artifactsPublisher(disabled: true)]) + { + sh "mvn org.apache.maven.plugins:maven-dependency-plugin:3.5.0:get -Dartifact=org.apache.netbeans.utilities:nb-repository-plugin:${repopluginversion} -Dmaven.repo.local=${env.WORKSPACE}/.repository -DremoteRepositories=apache.snapshots.https::::https://repository.apache.org/snapshots" + def commonparam = "-Dexternallist=${netbeansbase}/build/external.info" + //sh "mvn org.apache.netbeans.utilities:nb-repository-plugin:1.5:download ${commonparam} -DrepositoryUrl=https://repo.maven.apache.org/maven2" + if (heavyrelease) { // skip mavenrepo for vscode + sh "mvn org.apache.netbeans.utilities:nb-repository-plugin:${repopluginversion}:populate ${commonparam} -DnetbeansNbmDirectory=${netbeansbase}/nbms -DnetbeansInstallDirectory=${netbeansbase}/netbeans -DnetbeansSourcesDirectory=${netbeansbase}/build/source-zips -DnetbeansJavadocDirectory=${netbeansbase}/build/javadoc -DparentGAV=org.apache.netbeans:netbeans-parent:3 -DforcedVersion=${mavenVersion} -DskipInstall=true -DdeployUrl=file://${env.WORK [...] + zip zipFile:'mavenrepo.zip',dir:'mavenrepository',archive:'true' + } + // make vsix available to dist to pickup (only for main release) need a maven setup + sh "ant -f build-${clustername}-temp/java/java.lsp.server build-vscode-ext -Dvsix.version=${vsixversion} -Dmetabuild.branch=${branch}" + sh "cp -r build-${clustername}-temp/java/java.lsp.server/build/*.vsix dist/vsix/" + // XXX UNCOMMENT FOR RC3 publishToNightlies("/netbeans/candidate/vsix","build-${clustername}-temp/java/java.lsp.server/build/*.vsix","build-${clustername}-temp/java/java.lsp.server/build") + } + + + + } + + // do checksum + def extensions = ['*.zip','*.nbm','*.gz','*.jar','*.xml','*.license'] + for (String extension in extensions) { + sh "cd dist"+' && for z in $(find . -name "'+"${extension}"+'") ; do cd $(dirname $z) ; sha512sum ./$(basename $z) > $(basename $z).sha512; cd - >/dev/null; done ' + } + + archiveArtifacts 'dist/**' + // XXX UNCOMMENT FOR RC3 publishToNightlies("/netbeans/candidate/${versionnedpath}","dist${versionnedpath}/*","dist${versionnedpath}") + } } } } } } } - } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists