From 2689a08ebb2a1b80e9e298d67c322a065c104e17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Wed, 9 Feb 2022 11:59:41 +0100 Subject: [PATCH] ci: add VERBOSE parameter to change build verbosity MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- ci/Jenkinsfile.linux | 7 ++++++- ci/Jenkinsfile.macos | 7 ++++++- ci/Jenkinsfile.windows | 7 ++++++- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/ci/Jenkinsfile.linux b/ci/Jenkinsfile.linux index 5e4d7d2528..6cf5ec51d9 100644 --- a/ci/Jenkinsfile.linux +++ b/ci/Jenkinsfile.linux @@ -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 */ diff --git a/ci/Jenkinsfile.macos b/ci/Jenkinsfile.macos index 4841ada80a..33a82bc06b 100644 --- a/ci/Jenkinsfile.macos +++ b/ci/Jenkinsfile.macos @@ -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 */ diff --git a/ci/Jenkinsfile.windows b/ci/Jenkinsfile.windows index 4a78b1f9b2..4965e020de 100644 --- a/ci/Jenkinsfile.windows +++ b/ci/Jenkinsfile.windows @@ -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 */