trivial reformat of Jenkinsfile
refs: GRADE-1967 test plan: - jenkins passes Change-Id: I6be0ab6bf547e027fbcc2611c0eb170513ba585e Reviewed-on: https://gerrit.instructure.com/182169 Tested-by: Jenkins Reviewed-by: Robert Lamb <rlamb@instructure.com> QA-Review: Robert Lamb <rlamb@instructure.com> Product-Review: Robert Lamb <rlamb@instructure.com>
This commit is contained in:
parent
4a998ecf12
commit
9cb7de7fda
|
@ -1,35 +1,35 @@
|
|||
#!/usr/bin/env groovy
|
||||
|
||||
pipeline {
|
||||
agent { label 'docker' }
|
||||
agent { label 'docker' }
|
||||
|
||||
options {
|
||||
ansiColor('xterm')
|
||||
}
|
||||
options {
|
||||
ansiColor('xterm')
|
||||
}
|
||||
|
||||
environment {
|
||||
NAME = "${env.GERRIT_REFSPEC}".minus('refs/changes/').replaceAll('/','.')
|
||||
IMAGE_TAG = "$DOCKER_REGISTRY_FQDN/canvas-lms:$NAME"
|
||||
}
|
||||
environment {
|
||||
NAME = "${env.GERRIT_REFSPEC}".minus('refs/changes/').replaceAll('/','.')
|
||||
IMAGE_TAG = "$DOCKER_REGISTRY_FQDN/canvas-lms:$NAME"
|
||||
}
|
||||
|
||||
stages {
|
||||
stage("Build Image") {
|
||||
steps {
|
||||
timeout(time: 20, unit: 'MINUTES') {
|
||||
sh """docker build -t $IMAGE_TAG ."""
|
||||
}
|
||||
}
|
||||
stages {
|
||||
stage("Build Image") {
|
||||
steps {
|
||||
timeout(time: 20, unit: 'MINUTES') {
|
||||
sh """docker build -t $IMAGE_TAG ."""
|
||||
}
|
||||
|
||||
/*
|
||||
stage("Publish Image") {
|
||||
when { environment name: "GERRIT_EVENT_TYPE", value: "change-merged" }
|
||||
steps {
|
||||
timeout(time: 5, unit: 'MINUTES') {
|
||||
sh """docker push $IMAGE_TAG"""
|
||||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
stage("Publish Image") {
|
||||
when { environment name: "GERRIT_EVENT_TYPE", value: "change-merged" }
|
||||
steps {
|
||||
timeout(time: 5, unit: 'MINUTES') {
|
||||
sh """docker push $IMAGE_TAG"""
|
||||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue