ci(magicleaps): switch magicleaps alpha ci to develop branch

Signed-off-by: zhenyus <zhenyus@mathmast.com>
This commit is contained in:
zhenyus 2025-02-17 19:51:49 +08:00
parent 93248e7be1
commit 9ecf8a706e

View File

@ -432,7 +432,7 @@ def generateComponentStages(component, configurations) {
log.info("Pipeline", "Retrieve version of image from pervious stage...") log.info("Pipeline", "Retrieve version of image from pervious stage...")
if (env.LATEST_VERSION == null || env.LATEST_VERSION.isEmpty()) { if (env.LATEST_VERSION == null || env.LATEST_VERSION.isEmpty()) {
log.warn("Pipeline", "LATEST_VERSION environment value not set, using 'snapshot-<BUILD_COMMIT_HASH>' as default version") log.warn("Pipeline", "LATEST_VERSION environment value not set, using 'snapshot-<BUILD_COMMIT_HASH>' as default version")
sh "git config --global --add safe.directory ${env.workroot}"
def commitHash = sh(script: 'git rev-parse HEAD', returnStdout: true).trim() def commitHash = sh(script: 'git rev-parse HEAD', returnStdout: true).trim()
def shortCommitHash = commitHash.take(7) def shortCommitHash = commitHash.take(7)
env.LATEST_VERSION = "snapshot-${shortCommitHash}" env.LATEST_VERSION = "snapshot-${shortCommitHash}"