ci: add api proxy stage build parameter
This commit is contained in:
parent
1a1d575db0
commit
9ec68b8e97
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env groovy
|
#!/usr/bin/env groovy
|
||||||
library 'status-jenkins-lib@v1.9.5'
|
library 'status-jenkins-lib@v1.9.6'
|
||||||
|
|
||||||
/* Object to store public URLs for description. */
|
/* Object to store public URLs for description. */
|
||||||
urls = [:]
|
urls = [:]
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env groovy
|
#!/usr/bin/env groovy
|
||||||
library 'status-jenkins-lib@v1.9.5'
|
library 'status-jenkins-lib@v1.9.6'
|
||||||
|
|
||||||
/* Options section can't access functions in objects. */
|
/* Options section can't access functions in objects. */
|
||||||
def isPRBuild = utils.isPRBuild()
|
def isPRBuild = utils.isPRBuild()
|
||||||
|
@ -42,6 +42,11 @@ pipeline {
|
||||||
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: false
|
||||||
)
|
)
|
||||||
|
string(
|
||||||
|
name: 'STATUS_BUILD_PROXY_STAGE_NAME',
|
||||||
|
description: 'Defines the stage used to choose the correct Proxy API URL',
|
||||||
|
defaultValue: utils.isReleaseBuild() ? 'prod' : 'test'
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
options {
|
options {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env groovy
|
#!/usr/bin/env groovy
|
||||||
library 'status-jenkins-lib@v1.9.5'
|
library 'status-jenkins-lib@v1.9.6'
|
||||||
|
|
||||||
/* Options section can't access functions in objects. */
|
/* Options section can't access functions in objects. */
|
||||||
def isPRBuild = utils.isPRBuild()
|
def isPRBuild = utils.isPRBuild()
|
||||||
|
@ -34,6 +34,11 @@ pipeline {
|
||||||
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: false
|
||||||
)
|
)
|
||||||
|
string(
|
||||||
|
name: 'STATUS_BUILD_PROXY_STAGE_NAME',
|
||||||
|
description: 'Defines the stage used to choose the correct Proxy API URL',
|
||||||
|
defaultValue: utils.isReleaseBuild() ? 'prod' : 'test'
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
options {
|
options {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env groovy
|
#!/usr/bin/env groovy
|
||||||
library 'status-jenkins-lib@v1.9.5'
|
library 'status-jenkins-lib@v1.9.6'
|
||||||
|
|
||||||
/* Options section can't access functions in objects. */
|
/* Options section can't access functions in objects. */
|
||||||
def isPRBuild = utils.isPRBuild()
|
def isPRBuild = utils.isPRBuild()
|
||||||
|
@ -41,6 +41,11 @@ pipeline {
|
||||||
description: 'Select app entitlements. Squish requires extra entitlements.',
|
description: 'Select app entitlements. Squish requires extra entitlements.',
|
||||||
choices: ['resources/Entitlements.plist', 'resources/Entitlements_squish.plist']
|
choices: ['resources/Entitlements.plist', 'resources/Entitlements_squish.plist']
|
||||||
)
|
)
|
||||||
|
string(
|
||||||
|
name: 'STATUS_BUILD_PROXY_STAGE_NAME',
|
||||||
|
description: 'Defines the stage used to choose the correct Proxy API URL',
|
||||||
|
defaultValue: utils.isReleaseBuild() ? 'prod' : 'test'
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
options {
|
options {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env groovy
|
#!/usr/bin/env groovy
|
||||||
library 'status-jenkins-lib@v1.9.5'
|
library 'status-jenkins-lib@v1.9.6'
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env groovy
|
#!/usr/bin/env groovy
|
||||||
library 'status-jenkins-lib@v1.9.5'
|
library 'status-jenkins-lib@v1.9.6'
|
||||||
|
|
||||||
/* Options section can't access functions in objects. */
|
/* Options section can't access functions in objects. */
|
||||||
def isPRBuild = utils.isPRBuild()
|
def isPRBuild = utils.isPRBuild()
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env groovy
|
#!/usr/bin/env groovy
|
||||||
library 'status-jenkins-lib@v1.9.5'
|
library 'status-jenkins-lib@v1.9.6'
|
||||||
|
|
||||||
/* Options section can't access functions in objects. */
|
/* Options section can't access functions in objects. */
|
||||||
def isPRBuild = utils.isPRBuild()
|
def isPRBuild = utils.isPRBuild()
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env groovy
|
#!/usr/bin/env groovy
|
||||||
library 'status-jenkins-lib@v1.9.5'
|
library 'status-jenkins-lib@v1.9.6'
|
||||||
|
|
||||||
/* Options section can't access functions in objects. */
|
/* Options section can't access functions in objects. */
|
||||||
def isPRBuild = utils.isPRBuild()
|
def isPRBuild = utils.isPRBuild()
|
||||||
|
@ -33,6 +33,11 @@ pipeline {
|
||||||
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: false
|
||||||
)
|
)
|
||||||
|
string(
|
||||||
|
name: 'STATUS_BUILD_PROXY_STAGE_NAME',
|
||||||
|
description: 'Defines the stage used to choose the correct Proxy API URL',
|
||||||
|
defaultValue: utils.isReleaseBuild() ? 'prod' : 'test'
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
options {
|
options {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env groovy
|
#!/usr/bin/env groovy
|
||||||
library 'status-jenkins-lib@v1.9.5'
|
library 'status-jenkins-lib@v1.9.6'
|
||||||
|
|
||||||
/* Options section can't access functions in objects. */
|
/* Options section can't access functions in objects. */
|
||||||
def isPRBuild = utils.isPRBuild()
|
def isPRBuild = utils.isPRBuild()
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env groovy
|
#!/usr/bin/env groovy
|
||||||
library 'status-jenkins-lib@v1.9.5'
|
library 'status-jenkins-lib@v1.9.6'
|
||||||
|
|
||||||
/* Options section can't access functions in objects. */
|
/* Options section can't access functions in objects. */
|
||||||
def isPRBuild = utils.isPRBuild()
|
def isPRBuild = utils.isPRBuild()
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env groovy
|
#!/usr/bin/env groovy
|
||||||
library 'status-jenkins-lib@v1.9.5'
|
library 'status-jenkins-lib@v1.9.6'
|
||||||
|
|
||||||
/* Options section can't access functions in objects. */
|
/* Options section can't access functions in objects. */
|
||||||
def isPRBuild = utils.isPRBuild()
|
def isPRBuild = utils.isPRBuild()
|
||||||
|
|
Loading…
Reference in New Issue