This is an automated email from the ASF dual-hosted git repository.
martin_s pushed a commit to branch redback-2.6.x
in repository https://gitbox.apache.org/repos/asf/archiva-redback-core.git
The following commit(s) were added to refs/heads/redback-2.6.x by this push:
new 1e7c843 Adding parameter for threads to jenkins file
1e7c843 is described below
commit 1e7c84322bb3a7cd358727ad4629784db0ae6017
Author: Martin Stockhammer <[email protected]>
AuthorDate: Mon Feb 10 09:48:07 2020 +0100
Adding parameter for threads to jenkins file
---
Jenkinsfile | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 428c61d..966c7b6 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -43,7 +43,9 @@ pipeline {
triggers {
upstream(upstreamProjects:
'Archiva-TLP-Gitbox/archiva-parent/archiva-2.x', threshold:
hudson.model.Result.SUCCESS)
}
-
+ parameters {
+ string(name: 'THREADS', defaultValue: '1', description: 'Number of
threads for the mvn build (-T option). Must be a integer value>0.')
+ }
options {
disableConcurrentBuilds()
durabilityHint('PERFORMANCE_OPTIMIZED')
@@ -57,10 +59,10 @@ pipeline {
script{
if (env.NONAPACHEORG_RUN != 'y' && ( env.BRANCH_NAME ==
'master' || env.BRANCH_NAME == 'redback-2.6.x' ) )
{
- asfStandardBuild.mavenBuild( buildJdk, "clean deploy
-U -fae -T3", mavenVersion,
+ asfStandardBuild.mavenBuild( buildJdk, "clean deploy
-U -fae -T${THREADS}", mavenVersion,
defaultPublishers )
} else {
- asfStandardBuild.mavenBuild( buildJdk, "clean install
-U -fae -T3", mavenVersion,
+ asfStandardBuild.mavenBuild( buildJdk, "clean install
-U -fae -T${THREADS}", mavenVersion,
defaultPublishers )
}
}