From c3761ebd61e77de2ac949049e5ce558720e9941f Mon Sep 17 00:00:00 2001 From: Anastasiya Semenkevich Date: Fri, 19 Jul 2024 11:21:05 +0300 Subject: [PATCH] ci: enable keycard mock lib for nightly builds --- ci/Jenkinsfile.linux | 3 ++- ci/Jenkinsfile.linux-nix | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ci/Jenkinsfile.linux b/ci/Jenkinsfile.linux index 872402d65f..c8e3add02d 100644 --- a/ci/Jenkinsfile.linux +++ b/ci/Jenkinsfile.linux @@ -3,6 +3,7 @@ library 'status-jenkins-lib@v1.8.18' /* Options section can't access functions in objects. */ def isPRBuild = utils.isPRBuild() +def isNightlyBuild = utils.isNightlyBuild() pipeline { agent { @@ -39,7 +40,7 @@ pipeline { booleanParam( name: 'USE_MOCKED_KEYCARD_LIB', description: 'Decides whether the mocked status-keycard-go library is built.', - defaultValue: false + defaultValue: isNightlyBuild ) } diff --git a/ci/Jenkinsfile.linux-nix b/ci/Jenkinsfile.linux-nix index 9dd6b5edb7..871e268f38 100644 --- a/ci/Jenkinsfile.linux-nix +++ b/ci/Jenkinsfile.linux-nix @@ -3,6 +3,7 @@ library 'status-jenkins-lib@v1.8.18' /* Options section can't access functions in objects. */ def isPRBuild = utils.isPRBuild() +def isNightlyBuild = utils.isNightlyBuild() pipeline { agent { label 'linux && x86_64 && nix-2.14' } @@ -31,7 +32,7 @@ pipeline { booleanParam( name: 'USE_MOCKED_KEYCARD_LIB', description: 'Decides whether the mocked status-keycard-go library is built.', - defaultValue: false + defaultValue: isNightlyBuild ) }