Skip to content
Snippets Groups Projects
Commit b4d33800 authored by Greg Fodor's avatar Greg Fodor
Browse files

Add build version to build scripts

parent 4815c3cc
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,7 @@ pipeline {
def smokeURL = env.SMOKE_URL
def slackURL = env.SLACK_URL
def habCommand = "sudo /usr/bin/hab-docker-studio -k mozillareality run /bin/bash scripts/hab-build-and-push.sh ${baseAssetsPath} ${assetBundleServer} ${targetS3Url}"
def habCommand = "sudo /usr/bin/hab-docker-studio -k mozillareality run /bin/bash scripts/hab-build-and-push.sh ${baseAssetsPath} ${assetBundleServer} ${targetS3Url} ${env.BUILD_NUMBER}"
sh "/usr/bin/script --return -c ${shellString(habCommand)} /dev/null"
def gitMessage = sh(returnStdout: true, script: "git log -n 1 --pretty=format:'[%an] %s'").trim()
......@@ -46,7 +46,7 @@ pipeline {
"*<http://localhost:8080/job/${env.JOB_NAME}/${env.BUILD_NUMBER}|#${env.BUILD_NUMBER}>* *${env.JOB_NAME}* " +
"<https://github.com/mozilla/hubs/commit/$gitSha|$gitSha> " +
"Hubs: ```${gitSha} ${gitMessage}```\n" +
"<${smokeURL}?pollForSha=${gitSha}|Smoke Test> - to push:\n" +
"<${smokeURL}?require_version=${env.BUILD_NUMBER}|Smoke Test> - to push:\n" +
"`/mr hubs deploy ${targetS3Url}`"
)
def payload = 'payload=' + JsonOutput.toJson([
......
......@@ -3,6 +3,7 @@
export BASE_ASSETS_PATH=$1
export ASSET_BUNDLE_SERVER=$2
export TARGET_S3_URL=$3
export BUILD_VERSION=$4
# To build + push to S3 run:
# hab studio run "bash scripts/hab-build-and-push.sh"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment