Remove a "}" from the groovy script
Change-Id: Ibf06643f6afe6194a74c76a81b7c4e2639babed4
diff --git a/jjb/pipeline/docker-publish.groovy b/jjb/pipeline/docker-publish.groovy
index 8b38bd4..4e9c10b 100644
--- a/jjb/pipeline/docker-publish.groovy
+++ b/jjb/pipeline/docker-publish.groovy
@@ -44,38 +44,37 @@
steps {
script {
sshagent(credentials: ['github-onf-bot-ssh-key', 'github-omec-project-ssh-key']) {
- withDockerRegistry([credentialsId: 'docker-artifact-push-credentials']) {
- sh( script: """
- #!/usr/bin/env bash
- set -eu -o pipefail
+ withDockerRegistry([credentialsId: 'docker-artifact-push-credentials']) {
+ sh( script: """
+ #!/usr/bin/env bash
+ set -eu -o pipefail
- # checked out in a subdir so the log can be in WORKSPACE
- cd "$projectName"
+ # checked out in a subdir so the log can be in WORKSPACE
+ cd "$projectName"
- # set registry/repository variables
- export DOCKER_REGISTRY="$dockerRegistry/"
- export DOCKER_REPOSITORY="$dockerRepo/"
+ # set registry/repository variables
+ export DOCKER_REGISTRY="$dockerRegistry/"
+ export DOCKER_REPOSITORY="$dockerRepo/"
- # Build w/branch
- echo "Building image with branch"
- $extraEnvironmentVars DOCKER_TAG="$branchName" make docker-build 2>&1 | tee "$WORKSPACE/docker-build.log"
+ # Build w/branch
+ echo "Building image with branch"
+ $extraEnvironmentVars DOCKER_TAG="$branchName" make docker-build 2>&1 | tee "$WORKSPACE/docker-build.log"
- # Build w/tags if they exist
- if [ -n "$git_tags" ]
- echo "Tags found in git, building:"
- echo "$git_tags"
+ # Build w/tags if they exist
+ if [ -n "$git_tags" ]
+ echo "Tags found in git, building:"
+ echo "$git_tags"
- then
- for tag in $git_tags
- do
- # remove leading 'v' on funky golang tags
- clean_tag=\$(echo \$tag | sed 's/^v//g')
- echo "Building image with tag: \$clean_tag (should reuse cached layers)"
- $extraEnvironmentVars DOCKER_TAG="\$clean_tag" make docker-build
- done
- fi
- """)
- }
+ then
+ for tag in $git_tags
+ do
+ # remove leading 'v' on funky golang tags
+ clean_tag=\$(echo \$tag | sed 's/^v//g')
+ echo "Building image with tag: \$clean_tag (should reuse cached layers)"
+ $extraEnvironmentVars DOCKER_TAG="\$clean_tag" make docker-build
+ done
+ fi
+ """)
}
}
}