The variables for module, moduleName, etc are not being created in local
scope, causing the final docker push to re-use the last set value for
the modules.
Change-Id: I635955e5edcc2d94a50cec7749ac87813b5ac6c7
Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
stage('Publish to Dockerhub') {
parallelSteps = [:]
for (buildStep in containerList) {
- module = buildStep
- moduleName = buildStep.toLowerCase()
- dockerTag = params.DOCKER_TAG
- moduleTag = containerName
+ def module = buildStep
+ def moduleName = buildStep.toLowerCase()
+ def dockerTag = params.DOCKER_TAG
+ def moduleTag = containerName
parallelSteps[module] = {
dir("$module") {