ci: enable keycard mock lib for nightly builds

This commit is contained in:
Anastasiya Semenkevich 2024-07-19 11:21:05 +03:00 committed by Anastasiya
parent 05287c873a
commit c3761ebd61
2 changed files with 4 additions and 2 deletions

View File

@ -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
)
}

View File

@ -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
)
}