@@ -32,7 +32,8 @@ pipeline {
32
32
def jobName = env. JOB_NAME
33
33
def gitCommit = env. GIT_COMMIT
34
34
def disableDeploy = env. DISABLE_DEPLOY
35
- def promoteToChannel = env. PROMOTE_TO_CHANNEL
35
+ def showQAPromoteCommand = env. SHOW_QA_PROMOTE_COMMAND
36
+ def qaBuildsSlackChannel = env. QA_BUILDS_SLACK_CHANNEL
36
37
37
38
def habCommand = (
38
39
" /bin/bash scripts/hab-build-and-push.sh "
@@ -66,16 +67,15 @@ pipeline {
66
67
def gitMessage = sh(returnStdout: true, script: "git log -n 1 --pretty=format:' [% an] % s' ").trim()
67
68
def gitSha = sh(returnStdout: true, script: "git log -n 1 --pretty=format:' % h' ").trim()
68
69
69
- if (promoteToChannel != null && promoteToChannel != "") {
70
- runCommand("sudo /usr/bin/hab-ret-pkg-promote ${packageIdent} ${promoteToChannel}")
71
-
70
+ if (showQAPromoteCommand == "true") {
72
71
def text = (
73
72
"*<http://localhost:8080/job/${jobName}/${buildNumber}|#${buildNumber}>* *${jobName}* " +
74
- "<https://bldr.reticulum.io/#/pkgs/${packageIdent}|${packageIdent}>\n " +
75
- "<https://github.com/mozilla/hubs/commit/$gitSha|$gitSha> " +
76
- "Promoted ${hubsVersion} to ${promoteToChannel}: ```${gitSha} ${gitMessage}```\n "
73
+ "<https://github.com/mozilla/hubs/commit/$gitSha|$gitSha> ${hubsVersion} " +
74
+ "Hubs: ```${gitSha} ${gitMessage}```\n " +
75
+ "${packageIdent} built and uploaded - to promote:\n " +
76
+ "`/mr promote-hubs-qa ${packageIdent}`"
77
77
)
78
- sendSlackMessage(text, "#mr-builds" , ":gift:", slackURL)
78
+ sendSlackMessage(text, qaBuildsSlackChannel , ":gift:", slackURL)
79
79
} else {
80
80
def text = (
81
81
"*<http://localhost:8080/job/${jobName}/${buildNumber}|#${buildNumber}>* *${jobName}* " +
0 commit comments