ci: add api proxy stage build parameter

This commit is contained in:
Anton Iakimov 2024-08-15 16:02:46 +02:00
parent 1a1d575db0
commit 9ec68b8e97
No known key found for this signature in database
11 changed files with 31 additions and 11 deletions

View File

@ -1,5 +1,5 @@
#!/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. */
urls = [:]

View File

@ -1,5 +1,5 @@
#!/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. */
def isPRBuild = utils.isPRBuild()
@ -42,6 +42,11 @@ pipeline {
description: 'Decides whether the mocked status-keycard-go library is built.',
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 {

View File

@ -1,5 +1,5 @@
#!/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. */
def isPRBuild = utils.isPRBuild()
@ -34,6 +34,11 @@ pipeline {
description: 'Decides whether the mocked status-keycard-go library is built.',
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 {

View File

@ -1,5 +1,5 @@
#!/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. */
def isPRBuild = utils.isPRBuild()
@ -41,6 +41,11 @@ pipeline {
description: 'Select app entitlements. Squish requires extra entitlements.',
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 {

View File

@ -1,5 +1,5 @@
#!/usr/bin/env groovy
library 'status-jenkins-lib@v1.9.5'
library 'status-jenkins-lib@v1.9.6'
pipeline {

View File

@ -1,5 +1,5 @@
#!/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. */
def isPRBuild = utils.isPRBuild()

View File

@ -1,5 +1,5 @@
#!/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. */
def isPRBuild = utils.isPRBuild()

View File

@ -1,5 +1,5 @@
#!/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. */
def isPRBuild = utils.isPRBuild()
@ -33,6 +33,11 @@ pipeline {
description: 'Decides whether the mocked status-keycard-go library is built.',
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 {

View File

@ -1,5 +1,5 @@
#!/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. */
def isPRBuild = utils.isPRBuild()

View File

@ -1,5 +1,5 @@
#!/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. */
def isPRBuild = utils.isPRBuild()

View File

@ -1,5 +1,5 @@
#!/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. */
def isPRBuild = utils.isPRBuild()