Skip to content

Commit

Permalink
Merge pull request #3695 from mozilla/bp-qa-test
Browse files Browse the repository at this point in the history
 Change Jenkins script to remove QA promotion step
  • Loading branch information
brianpeiris authored Feb 23, 2021
2 parents fef69c1 + b9270ad commit eae8470
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ pipeline {
def jobName = env.JOB_NAME
def gitCommit = env.GIT_COMMIT
def disableDeploy = env.DISABLE_DEPLOY
def promoteToChannel = env.PROMOTE_TO_CHANNEL
def showQAPromoteCommand = env.SHOW_QA_PROMOTE_COMMAND
def qaBuildsSlackChannel = env.QA_BUILDS_SLACK_CHANNEL

def habCommand = (
"/bin/bash scripts/hab-build-and-push.sh "
Expand Down Expand Up @@ -66,16 +67,15 @@ pipeline {
def gitMessage = sh(returnStdout: true, script: "git log -n 1 --pretty=format:'[%an] %s'").trim()
def gitSha = sh(returnStdout: true, script: "git log -n 1 --pretty=format:'%h'").trim()
if (promoteToChannel != null && promoteToChannel != "") {
runCommand("sudo /usr/bin/hab-ret-pkg-promote ${packageIdent} ${promoteToChannel}")
if (showQAPromoteCommand == "true") {
def text = (
"*<http://localhost:8080/job/${jobName}/${buildNumber}|#${buildNumber}>* *${jobName}* " +
"<https://bldr.reticulum.io/#/pkgs/${packageIdent}|${packageIdent}>\n" +
"<https://github.com/mozilla/hubs/commit/$gitSha|$gitSha> " +
"Promoted ${hubsVersion} to ${promoteToChannel}: ```${gitSha} ${gitMessage}```\n"
"<https://github.com/mozilla/hubs/commit/$gitSha|$gitSha> ${hubsVersion} " +
"Hubs: ```${gitSha} ${gitMessage}```\n" +
"${packageIdent} built and uploaded - to promote:\n" +
"`/mr promote-hubs-qa ${packageIdent}`"
)
sendSlackMessage(text, "#mr-builds", ":gift:", slackURL)
sendSlackMessage(text, qaBuildsSlackChannel, ":gift:", slackURL)
} else {
def text = (
"*<http://localhost:8080/job/${jobName}/${buildNumber}|#${buildNumber}>* *${jobName}* " +
Expand Down

0 comments on commit eae8470

Please sign in to comment.