This is an automated email from the ASF dual-hosted git repository. neilcsmith 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 8fded0e Add parameter to control VSIX build. new f5aab2c Merge pull request #94 from neilcsmith-net/nb190 8fded0e is described below commit 8fded0e57c00dd91af6c8e07d81561987047027a Author: Neil C Smith <neilcsm...@apache.org> AuthorDate: Tue Jul 18 18:36:18 2023 +0100 Add parameter to control VSIX build. --- vars/asfMainNetBeansBuild.groovy | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/vars/asfMainNetBeansBuild.groovy b/vars/asfMainNetBeansBuild.groovy index ca1c9d3..1790829 100644 --- a/vars/asfMainNetBeansBuild.groovy +++ b/vars/asfMainNetBeansBuild.groovy @@ -71,6 +71,7 @@ def call(Map params = [:]) { parameters { booleanParam(name: 'INSTALLERS', defaultValue: false, description: 'Build installers?') + booleanParam(name: 'VSIX', defaultValue: false, description: 'Build VSCode plugin?') booleanParam(name: 'NIGHTLIES', defaultValue: false, description: 'Publish to nightlies.apache.org?') } @@ -428,9 +429,14 @@ def doParallelClusters(cconfigs) { 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:4 -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/" + if (params.VSIX) { + // make vsix available to dist to pickup (only for main release) need a maven setup + println "BUILDING VSCODE PLUGIN" + 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/" + } else { + println "SKIPPING VSCODE PLUGIN" + } } } --------------------------------------------------------------------- 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