mirror of
https://github.com/apache/archiva.git
synced 2025-02-23 11:04:56 +00:00
Adding parameter for build threads
This commit is contained in:
parent
ba2b4ffaf7
commit
0ad8ad66a1
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@ -52,6 +52,7 @@ pipeline {
|
||||
}
|
||||
parameters {
|
||||
booleanParam(name: 'PRECLEANUP', defaultValue: false, description: 'Clears the local maven repository before build.')
|
||||
string(name: 'THREADS', defaultValue: '3', description: 'Number of threads for the mvn build (-T option). Must be a integer value>0.')
|
||||
}
|
||||
environment {
|
||||
LOCAL_REPOSITORY = "../.maven_repositories/${env.EXECUTOR_NUMBER}"
|
||||
@ -98,7 +99,7 @@ pipeline {
|
||||
// -Dmaven.compiler.fork=true: Do compile in a separate forked process
|
||||
// -Dmaven.test.failure.ignore=true: Do not stop, if some tests fail
|
||||
// -Pci-build: Profile for CI-Server
|
||||
sh "mvn clean deploy -B -U -e -fae -Dmaven.compiler.fork=true -Pci-build -T3"
|
||||
sh "mvn clean deploy -B -U -e -fae -Dmaven.compiler.fork=true -Pci-build -T${THREADS}"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -139,7 +140,7 @@ pipeline {
|
||||
options: publishers
|
||||
)
|
||||
{
|
||||
sh "mvn clean install -U -B -e -fae -Dmaven.compiler.fork=true -Pci-build -T3"
|
||||
sh "mvn clean install -U -B -e -fae -Dmaven.compiler.fork=true -Pci-build -T${THREADS}"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user