Skip to content

Commit 410bba7

Browse files
committed
create a context this time
1 parent a70fb9a commit 410bba7

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Jenkinsfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ pipeline {
4444
withCredentials([usernamePassword(credentialsId: 'jenkins-dockerhub', usernameVariable: 'DOCKER_USERNAME', passwordVariable: 'DOCKER_PASSWORD'),
4545
usernamePassword(credentialsId: 'jenkins-central', usernameVariable: 'CENTRAL_USER', passwordVariable: 'CENTRAL_PASS'),
4646
string(credentialsId: 'jenkins-gpg', variable: 'GPG_PASS')]) {
47+
sh 'docker buildx create --name multiarch --use dind-context || docker buildx use multiarch'
4748
withMaven {
4849
sh "./jdk-wrapper.sh ./mvnw $target -P rpm -U -B -Dstyle.color=always -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -Ddocker.verbose=true"
4950
}

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@
416416
<autoCreateCustomNetworks>true</autoCreateCustomNetworks>
417417
<showLogs>true</showLogs>
418418
<buildx>
419-
<builderName>default</builderName>
419+
<builderName>multiarch</builderName>
420420
<platforms>
421421
<platform>linux/amd64</platform>
422422
<platform>linux/arm64</platform>
@@ -436,7 +436,7 @@
436436
<image>docker.arpnetworking.com/arpnetworking/mad/kafka:cache-base</image>
437437
</cacheFrom>
438438
<buildx>
439-
<builderName>default</builderName>
439+
<builderName>multiarch</builderName>
440440
<platforms>
441441
<platform>linux/amd64</platform>
442442
<platform>linux/arm64</platform>
@@ -473,7 +473,7 @@
473473
<image>docker.arpnetworking.com/arpnetworking/mad:cache-base</image>
474474
</cacheFrom>
475475
<buildx>
476-
<builderName>default</builderName>
476+
<builderName>multiarch</builderName>
477477
<platforms>
478478
<platform>linux/amd64</platform>
479479
<platform>linux/arm64</platform>

0 commit comments

Comments
 (0)