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/10/17 12:14:44 UTC
[netbeans-jenkins-lib] branch master updated: Update
asfStandardBuild.groovy
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 d57b680 Update asfStandardBuild.groovy
d57b680 is described below
commit d57b680bd6b2322a8f0bb4c69b89bd327ba55164
Author: Eric Barboni <sk...@apache.org>
AuthorDate: Thu Oct 17 14:14:39 2019 +0200
Update asfStandardBuild.groovy
add a wrap option
---
vars/asfStandardBuild.groovy | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/vars/asfStandardBuild.groovy b/vars/asfStandardBuild.groovy
index e0f20b6..378d17a 100644
--- a/vars/asfStandardBuild.groovy
+++ b/vars/asfStandardBuild.groovy
@@ -33,7 +33,7 @@ def call(Map params = [:]) {
// use the cmdLine parameter otherwise default depending on current branch
def cmdline = params.containsKey('cmdline') ? params.cmdline : (env.BRANCH_NAME == 'master'?"clean deploy site:jar":"clean install")
def mvnName = params.containsKey('mvnName') ? params.mvnName : 'Maven 3.5.4'
-
+ def xvfb = params.containsKey('xvfb') ? true : false
def defaultPublishers = [artifactsPublisher(disabled: false), junitPublisher(ignoreAttachments: false, disabled: false),
findbugsPublisher(disabled: true), openTasksPublisher(disabled: true),
@@ -53,7 +53,13 @@ def call(Map params = [:]) {
agent { node { label 'ubuntu' } }
options { timeout(time: 120, unit: 'MINUTES') }
steps{
- mavenBuild( jdk, cmdline, mvnName, publishers)
+ if (xvbf) {
+ wrap([$class: 'Xvfb', additionalOptions: '', assignedLabels: '', displayNameOffset: 0, installationName: 'Xvfb', parallelBuild: true, screen: '']) {
+ mavenBuild( jdk, cmdline, mvnName, publishers)
+ }
+ } else {
+ mavenBuild( jdk, cmdline, mvnName, publishers)
+ }
}
}
}
---------------------------------------------------------------------
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