ci(magicleaps): switch magicleaps alpha ci to develop branch
Signed-off-by: zhenyus <zhenyus@mathmast.com>
This commit is contained in:
parent
358d8c5109
commit
bd785eb2c2
@ -13,8 +13,15 @@ class ArgoApplicationVersionUpdater {
|
|||||||
|
|
||||||
def update(environmentSlug, component) {
|
def update(environmentSlug, component) {
|
||||||
steps.log.info("ArgoApplicationVersionUpdater", "[${environmentSlug}] Update Argo application image version to ${steps.env.BUILD_IMAGE_VERSION} for ${component.name}...")
|
steps.log.info("ArgoApplicationVersionUpdater", "[${environmentSlug}] Update Argo application image version to ${steps.env.BUILD_IMAGE_VERSION} for ${component.name}...")
|
||||||
steps.sh "ls -al ${workspace}"
|
steps.log.info("ArgoApplicationVersionUpdater", "[${environmentSlug}] Pull freeleaps-ops repository to workspace...")
|
||||||
def valuesFile = "${workspace}/${configurations.serviceName}/helm-pkg/${configurations.serviceName}/values-${environmentSlug}.yaml"
|
|
||||||
|
steps.dir("${workspace}") {
|
||||||
|
steps.git branch: 'master', credentialsId: 'freeleaps-ops-credentials', url: 'https://freeleaps@dev.azure.com/freeleaps/freeleaps-ops/_git/freeleaps-ops'
|
||||||
|
this.workspace = "${workspace}/freeleaps-ops"
|
||||||
|
}
|
||||||
|
|
||||||
|
steps.dir("${workspace}") {
|
||||||
|
def valuesFile = "./${configurations.serviceName}/helm-pkg/${configurations.serviceName}/values-${environmentSlug}.yaml"
|
||||||
def data = steps.readYaml (file: valuesFile)
|
def data = steps.readYaml (file: valuesFile)
|
||||||
data.${component.name}.image.registry = steps.env.BUILD_IMAGE_REGISTRY
|
data.${component.name}.image.registry = steps.env.BUILD_IMAGE_REGISTRY
|
||||||
data.${component.name}.image.repository = steps.env.BUILD_IMAGE_REPOSITORY
|
data.${component.name}.image.repository = steps.env.BUILD_IMAGE_REPOSITORY
|
||||||
@ -35,3 +42,4 @@ class ArgoApplicationVersionUpdater {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user