ci: add VERBOSE parameter to change build verbosity
This depends on the `V` paramerter in `nimbus-build-system`: https://github.com/status-im/nimbus-build-system/blob/25a4c270/README.md#L54-L61 Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
0d04deb2ad
commit
2689a08ebb
|
@ -16,6 +16,11 @@ pipeline {
|
||||||
description: 'Decides whether binaries are built with debug symbols.',
|
description: 'Decides whether binaries are built with debug symbols.',
|
||||||
defaultValue: params.RELEASE ?: false
|
defaultValue: params.RELEASE ?: false
|
||||||
)
|
)
|
||||||
|
choice(
|
||||||
|
name: 'VERBOSE',
|
||||||
|
description: 'Level of verbosity based on nimbus-build-system setup.',
|
||||||
|
choices: ['0', '1', '2']
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
options {
|
options {
|
||||||
|
@ -33,7 +38,7 @@ pipeline {
|
||||||
environment {
|
environment {
|
||||||
TARGET = 'linux'
|
TARGET = 'linux'
|
||||||
/* Improve make performance */
|
/* Improve make performance */
|
||||||
MAKEFLAGS = '-j4'
|
MAKEFLAGS = "-j4 V=${params.VERBOSE}"
|
||||||
/* Disable colors in Nim compiler logs */
|
/* Disable colors in Nim compiler logs */
|
||||||
NIMFLAGS = '--colors:off'
|
NIMFLAGS = '--colors:off'
|
||||||
/* Makefile assumes the compiler folder is included */
|
/* Makefile assumes the compiler folder is included */
|
||||||
|
|
|
@ -11,6 +11,11 @@ pipeline {
|
||||||
description: 'Decides whether binaries are built with debug symbols.',
|
description: 'Decides whether binaries are built with debug symbols.',
|
||||||
defaultValue: params.RELEASE ?: false
|
defaultValue: params.RELEASE ?: false
|
||||||
)
|
)
|
||||||
|
choice(
|
||||||
|
name: 'VERBOSE',
|
||||||
|
description: 'Level of verbosity based on nimbus-build-system setup.',
|
||||||
|
choices: ['0', '1', '2']
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
options {
|
options {
|
||||||
|
@ -28,7 +33,7 @@ pipeline {
|
||||||
environment {
|
environment {
|
||||||
TARGET = 'macos'
|
TARGET = 'macos'
|
||||||
/* Improve make performance */
|
/* Improve make performance */
|
||||||
MAKEFLAGS = '-j4'
|
MAKEFLAGS = "-j4 V=${params.VERBOSE}"
|
||||||
/* Disable colors in Nim compiler logs */
|
/* Disable colors in Nim compiler logs */
|
||||||
NIMFLAGS = '--colors:off'
|
NIMFLAGS = '--colors:off'
|
||||||
/* Qt location is pre-defined */
|
/* Qt location is pre-defined */
|
||||||
|
|
|
@ -9,6 +9,11 @@ pipeline {
|
||||||
description: 'Decides whether binaries are built with debug symbols.',
|
description: 'Decides whether binaries are built with debug symbols.',
|
||||||
defaultValue: params.RELEASE ?: false
|
defaultValue: params.RELEASE ?: false
|
||||||
)
|
)
|
||||||
|
choice(
|
||||||
|
name: 'VERBOSE',
|
||||||
|
description: 'Level of verbosity based on nimbus-build-system setup.',
|
||||||
|
choices: ['0', '1', '2']
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
options {
|
options {
|
||||||
|
@ -26,7 +31,7 @@ pipeline {
|
||||||
environment {
|
environment {
|
||||||
TARGET = 'windows'
|
TARGET = 'windows'
|
||||||
/* Improve make performance */
|
/* Improve make performance */
|
||||||
MAKEFLAGS = '-j4'
|
MAKEFLAGS = "-j4 V=${params.VERBOSE}"
|
||||||
/* Disable colors in Nim compiler logs */
|
/* Disable colors in Nim compiler logs */
|
||||||
NIMFLAGS = '--colors:off'
|
NIMFLAGS = '--colors:off'
|
||||||
/* Control output the filename */
|
/* Control output the filename */
|
||||||
|
|
Loading…
Reference in New Issue