Skip to content

Commit a5a921c

Browse files
authored
Update Jfile to support release (#1359)
1 parent 05bc521 commit a5a921c

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

Jenkinsfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,12 @@ pipeline {
4444
script {
4545
def jsonObj = readJSON text: env.IMG_BUILD_HOOKS
4646
if (env.GIT_URL in jsonObj) {
47-
img_build_hook = jsonObj[env.GIT_URL]
47+
echo "Build docker image"
48+
if (env.BRANCH_NAME in jsonObj[env.GIT_URL]) {
49+
img_build_hook = jsonObj[env.GIT_URL][env.BRANCH_NAME]
50+
} else {
51+
img_build_hook = jsonObj[env.GIT_URL]['default']
52+
}
4853
}
4954
}
5055
}

0 commit comments

Comments
 (0)