ci: enable keycard mock lib for nightly builds
This commit is contained in:
parent
05287c873a
commit
c3761ebd61
|
@ -3,6 +3,7 @@ library 'status-jenkins-lib@v1.8.18'
|
||||||
|
|
||||||
/* Options section can't access functions in objects. */
|
/* Options section can't access functions in objects. */
|
||||||
def isPRBuild = utils.isPRBuild()
|
def isPRBuild = utils.isPRBuild()
|
||||||
|
def isNightlyBuild = utils.isNightlyBuild()
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
agent {
|
agent {
|
||||||
|
@ -39,7 +40,7 @@ pipeline {
|
||||||
booleanParam(
|
booleanParam(
|
||||||
name: 'USE_MOCKED_KEYCARD_LIB',
|
name: 'USE_MOCKED_KEYCARD_LIB',
|
||||||
description: 'Decides whether the mocked status-keycard-go library is built.',
|
description: 'Decides whether the mocked status-keycard-go library is built.',
|
||||||
defaultValue: false
|
defaultValue: isNightlyBuild
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@ library 'status-jenkins-lib@v1.8.18'
|
||||||
|
|
||||||
/* Options section can't access functions in objects. */
|
/* Options section can't access functions in objects. */
|
||||||
def isPRBuild = utils.isPRBuild()
|
def isPRBuild = utils.isPRBuild()
|
||||||
|
def isNightlyBuild = utils.isNightlyBuild()
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
agent { label 'linux && x86_64 && nix-2.14' }
|
agent { label 'linux && x86_64 && nix-2.14' }
|
||||||
|
@ -31,7 +32,7 @@ pipeline {
|
||||||
booleanParam(
|
booleanParam(
|
||||||
name: 'USE_MOCKED_KEYCARD_LIB',
|
name: 'USE_MOCKED_KEYCARD_LIB',
|
||||||
description: 'Decides whether the mocked status-keycard-go library is built.',
|
description: 'Decides whether the mocked status-keycard-go library is built.',
|
||||||
defaultValue: false
|
defaultValue: isNightlyBuild
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue