ci: add VERBOSITY parameter to Jenkinsfile (#4676)
It will default to `V=0` since it's the first choice in the list. Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
144130e80e
commit
60394ba114
|
@ -8,6 +8,11 @@ pipeline {
|
||||||
description: 'Label for targetted CI slave host: linux/macos',
|
description: 'Label for targetted CI slave host: linux/macos',
|
||||||
defaultValue: params.AGENT_LABEL ?: getAgentLabel(),
|
defaultValue: params.AGENT_LABEL ?: getAgentLabel(),
|
||||||
)
|
)
|
||||||
|
choice(
|
||||||
|
name: 'VERBOSITY',
|
||||||
|
description: 'Value for the V make flag to increase log verbosity',
|
||||||
|
choices: [0, 1, 2]
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
options {
|
options {
|
||||||
|
@ -37,7 +42,7 @@ pipeline {
|
||||||
|
|
||||||
environment {
|
environment {
|
||||||
NPROC = Runtime.getRuntime().availableProcessors()
|
NPROC = Runtime.getRuntime().availableProcessors()
|
||||||
MAKEFLAGS = "-j${env.NPROC}"
|
MAKEFLAGS = "V=${params.VERBOSITY} -j${env.NPROC}"
|
||||||
}
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
|
|
Loading…
Reference in New Issue