Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
smerle33 committed Aug 7, 2023
1 parent 4163b20 commit 4a3ba95
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions vars/buildDockerAndPublishImage.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import java.util.Date
import java.text.DateFormat

def call(String imageShortName, Map userConfig=[:]) {
def parallelStages = [failFast:false]
def defaultConfig = [
agentLabels: 'docker || linux-amd64-docker', // String expression for the labels the agent must match
automaticSemanticVersioning: false, // Do not automagically increase semantic version by default
Expand Down Expand Up @@ -49,7 +50,7 @@ def call(String imageShortName, Map userConfig=[:]) {
final String registryNamespace = finalConfig.registryNamespace ?: defaultRegistryNamespace
final String defaultImageName = registryNamespace + '/' + imageShortName
final String mygetTime = now.getTime().toString()
def ParrallelStages = [failFast:false]


finalConfig.platforms.each {oneplatform ->

Expand All @@ -76,7 +77,7 @@ def call(String imageShortName, Map userConfig=[:]) {
}

echo "INFO: Resolved Container Image Name: ${imageName}"
ParallelStages["${imageName}"] = {
parallelStages["${imageName}"] = {
node(finalConfig.agentLabels) {
withEnv([
"BUILD_DATE=${buildDate}",
Expand Down Expand Up @@ -303,12 +304,12 @@ def call(String imageShortName, Map userConfig=[:]) {
} // if
} // withEnv
} // node
} //ParallelStages
} //parallelStages
} // each platform

parallel(ParallelStages) // parallel
parallel(parallelStages) // parallel

//After ParallelStages
//After parallelStages
if (flagmultiplatforms) {
stage("Multiplatform Semantic Release of ${defaultImageName}") {
//checkout scm // should not be necessary on main node
Expand Down

0 comments on commit 4a3ba95

Please sign in to comment.