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:
Jakub Sokołowski 2022-02-09 11:59:41 +01:00 committed by Jakub
parent 0d04deb2ad
commit 2689a08ebb
3 changed files with 18 additions and 3 deletions

View File

@ -16,6 +16,11 @@ pipeline {
description: 'Decides whether binaries are built with debug symbols.',
defaultValue: params.RELEASE ?: false
)
choice(
name: 'VERBOSE',
description: 'Level of verbosity based on nimbus-build-system setup.',
choices: ['0', '1', '2']
)
}
options {
@ -33,7 +38,7 @@ pipeline {
environment {
TARGET = 'linux'
/* Improve make performance */
MAKEFLAGS = '-j4'
MAKEFLAGS = "-j4 V=${params.VERBOSE}"
/* Disable colors in Nim compiler logs */
NIMFLAGS = '--colors:off'
/* Makefile assumes the compiler folder is included */

View File

@ -11,6 +11,11 @@ pipeline {
description: 'Decides whether binaries are built with debug symbols.',
defaultValue: params.RELEASE ?: false
)
choice(
name: 'VERBOSE',
description: 'Level of verbosity based on nimbus-build-system setup.',
choices: ['0', '1', '2']
)
}
options {
@ -28,7 +33,7 @@ pipeline {
environment {
TARGET = 'macos'
/* Improve make performance */
MAKEFLAGS = '-j4'
MAKEFLAGS = "-j4 V=${params.VERBOSE}"
/* Disable colors in Nim compiler logs */
NIMFLAGS = '--colors:off'
/* Qt location is pre-defined */

View File

@ -9,6 +9,11 @@ pipeline {
description: 'Decides whether binaries are built with debug symbols.',
defaultValue: params.RELEASE ?: false
)
choice(
name: 'VERBOSE',
description: 'Level of verbosity based on nimbus-build-system setup.',
choices: ['0', '1', '2']
)
}
options {
@ -26,7 +31,7 @@ pipeline {
environment {
TARGET = 'windows'
/* Improve make performance */
MAKEFLAGS = '-j4'
MAKEFLAGS = "-j4 V=${params.VERBOSE}"
/* Disable colors in Nim compiler logs */
NIMFLAGS = '--colors:off'
/* Control output the filename */