Skip to content

Commit 1a9580f

Browse files
committed
try again
1 parent f3928b9 commit 1a9580f

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

Jenkinsfile

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,22 @@ pipeline {
4545
usernamePassword(credentialsId: 'jenkins-central', usernameVariable: 'CENTRAL_USER', passwordVariable: 'CENTRAL_PASS'),
4646
string(credentialsId: 'jenkins-gpg', variable: 'GPG_PASS')]) {
4747
sh '''
48-
# First create a Docker context with current environment settings
48+
echo "=== Docker Environment Debug ==="
49+
echo "DOCKER_HOST=$DOCKER_HOST"
50+
echo "DOCKER_TLS_VERIFY=$DOCKER_TLS_VERIFY"
51+
echo "DOCKER_CERT_PATH=$DOCKER_CERT_PATH"
52+
53+
echo "=== Creating Docker Context ==="
4954
docker context create multiarch-context --docker "host=$DOCKER_HOST,ca=/certs/client/ca.pem,cert=/certs/client/cert.pem,key=/certs/client/key.pem" || echo "Context may already exist"
50-
# Create buildx builder using the custom context
55+
56+
echo "=== Listing Docker Contexts ==="
57+
docker context ls
58+
59+
echo "=== Creating Buildx Builder ==="
5160
docker buildx create --name multiarch --driver docker-container --use multiarch-context || docker buildx use multiarch
61+
62+
echo "=== Listing Buildx Builders ==="
63+
docker buildx ls
5264
'''
5365
withMaven {
5466
sh """

0 commit comments

Comments
 (0)