Started by timer Querying the current revision of branch main... Current revision of branch main is f5e503ecf3c0bd1cb4e4b27c7c4e540855d5b8f0 Obtained test/containerBuild/Jenkinsfile.containerBuildStageTestSuite from f5e503ecf3c0bd1cb4e4b27c7c4e540855d5b8f0 Loading library releng-pipeline@main Attempting to resolve main from remote references... > git --version # timeout=10 > git --version # 'git version 2.43.2' > git ls-remote -- https://gitlab.eclipse.org/eclipsefdn/it/releng/jenkins-pipeline-service/jenkins-pipeline-library.git # timeout=10 Found match: refs/heads/main revision 990d2255b2210260fb746d557366e6a7e025dd42 The recommended git tool is: NONE No credentials specified > git rev-parse --resolve-git-dir /var/jenkins/workspace/jpl-containerBuildTestSuite_main@libs/4355fc0889d6bce1359578d0eed196c62b68f858e457d99b09b4a866d782b91d/.git # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url https://gitlab.eclipse.org/eclipsefdn/it/releng/jenkins-pipeline-service/jenkins-pipeline-library.git # timeout=10 Fetching without tags Fetching upstream changes from https://gitlab.eclipse.org/eclipsefdn/it/releng/jenkins-pipeline-service/jenkins-pipeline-library.git > git --version # timeout=10 > git --version # 'git version 2.43.2' > git fetch --no-tags --force --progress -- https://gitlab.eclipse.org/eclipsefdn/it/releng/jenkins-pipeline-service/jenkins-pipeline-library.git +refs/heads/main:refs/remotes/origin/main # timeout=10 Checking out Revision 990d2255b2210260fb746d557366e6a7e025dd42 (main) > git config core.sparsecheckout # timeout=10 > git checkout -f 990d2255b2210260fb746d557366e6a7e025dd42 # timeout=10 Commit message: "feat: login with name optionnal" > git rev-list --no-walk 990d2255b2210260fb746d557366e6a7e025dd42 # timeout=10 [GitLab Pipeline Status] Notifying branch build status: RUNNING jpl-containerBuildTestSuite/main #51: Build started... [GitLab Pipeline Status] Notified [Pipeline] Start of Pipeline [Pipeline] libraryResource [Pipeline] echo Final resourceContent: apiVersion: v1 kind: Pod spec: containers: - name: containertools image: eclipsefdn/containertools:alpine-latest imagePullPolicy: Always command: [ "sleep" ] args: [ "infinity" ] resources: limits: cpu: 500m memory: 256Mi [Pipeline] podTemplate [Pipeline] { [Pipeline] node Created Pod: kubernetes cbi/jpl-containerbuildtestsuite-main-51-hbrzk-84rqh-0v627 Still waiting to schedule task ‘jpl-containerbuildtestsuite-main-51-hbrzk-84rqh-0v627’ is offline Agent jpl-containerbuildtestsuite-main-51-hbrzk-84rqh-0v627 is provisioned from template jpl-containerBuildTestSuite_main_51-hbrzk-84rqh --- apiVersion: "v1" kind: "Pod" metadata: annotations: kubernetes.jenkins.io/last-refresh: "1719354188267" buildUrl: "http://jenkins-ui.cbi.svc.cluster.local/cbi/job/jpl-containerBuildTestSuite/job/main/51/" runUrl: "job/jpl-containerBuildTestSuite/job/main/51/" labels: jenkins: "slave" jenkins/label-digest: "41f252575d6d2c8c4df9dd9f0068f09ea871581e" jenkins/label: "jpl-containerBuildTestSuite_main_51-hbrzk" kubernetes.jenkins.io/controller: "http___jenkins-ui_cbi_svc_cluster_local_cbix" name: "jpl-containerbuildtestsuite-main-51-hbrzk-84rqh-0v627" namespace: "cbi" spec: containers: - args: - "infinity" command: - "sleep" image: "eclipsefdn/containertools:alpine-latest" imagePullPolicy: "Always" name: "containertools" resources: limits: cpu: "500m" memory: "256Mi" volumeMounts: - mountPath: "/home/jenkins/agent" name: "workspace-volume" readOnly: false - env: - name: "JENKINS_SECRET" value: "********" - name: "JENKINS_TUNNEL" value: "jenkins-discovery.cbi.svc.cluster.local:50000" - name: "JENKINS_AGENT_NAME" value: "jpl-containerbuildtestsuite-main-51-hbrzk-84rqh-0v627" - name: "REMOTING_OPTS" value: "-noReconnectAfter 1d" - name: "JENKINS_NAME" value: "jpl-containerbuildtestsuite-main-51-hbrzk-84rqh-0v627" - name: "JENKINS_AGENT_WORKDIR" value: "/home/jenkins/agent" - name: "JENKINS_URL" value: "http://jenkins-ui.cbi.svc.cluster.local/cbi/" image: "docker.io/eclipsecbi/jiro-agent-basic-ubuntu:remoting-3206.vb_15dcf73f6a_9" name: "jnlp" resources: requests: memory: "256Mi" cpu: "100m" volumeMounts: - mountPath: "/home/jenkins/agent" name: "workspace-volume" readOnly: false nodeSelector: kubernetes.io/os: "linux" restartPolicy: "Never" volumes: - emptyDir: medium: "" name: "workspace-volume" Running on jpl-containerbuildtestsuite-main-51-hbrzk-84rqh-0v627 in /home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main [Pipeline] { [Pipeline] stage [Pipeline] { (Declarative: Checkout SCM) [Pipeline] checkout The recommended git tool is: NONE No credentials specified Cloning the remote Git repository Cloning with configured refspecs honoured and without tags Cloning repository https://gitlab.eclipse.org/eclipsefdn/it/releng/jenkins-pipeline-service/jenkins-pipeline-library-sample.git > git init /home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main # timeout=10 Fetching upstream changes from https://gitlab.eclipse.org/eclipsefdn/it/releng/jenkins-pipeline-service/jenkins-pipeline-library-sample.git > git --version # timeout=10 > git --version # 'git version 2.43.0' > git fetch --no-tags --force --progress -- https://gitlab.eclipse.org/eclipsefdn/it/releng/jenkins-pipeline-service/jenkins-pipeline-library-sample.git +refs/heads/main:refs/remotes/origin/main # timeout=10 > git config remote.origin.url https://gitlab.eclipse.org/eclipsefdn/it/releng/jenkins-pipeline-service/jenkins-pipeline-library-sample.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/main:refs/remotes/origin/main # timeout=10 Avoid second fetch Checking out Revision f5e503ecf3c0bd1cb4e4b27c7c4e540855d5b8f0 (main) > git config core.sparsecheckout # timeout=10 > git checkout -f f5e503ecf3c0bd1cb4e4b27c7c4e540855d5b8f0 # timeout=10 Commit message: "feat: add pipeline option and default trigger" > git rev-list --no-walk f5e503ecf3c0bd1cb4e4b27c7c4e540855d5b8f0 # timeout=10 [GitLab Pipeline Status] Notifying branch build status: RUNNING jpl-containerBuildTestSuite/main #51: Build started... [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] timeout Timeout set to expire in 1 hr 30 min [Pipeline] { [Pipeline] stage [Pipeline] { (Container Build classic with debug) [Pipeline] echo ##################### Container Build classic with debug ##################### [Pipeline] container [Pipeline] { [Pipeline] withCredentials Masking supported pattern matches of $DOCKER_REGISTRY_USERNAME or $DOCKER_REGISTRY_PASSWORD [Pipeline] { [Pipeline] sh + echo 'Access registry docker.io for docker.io/heurtemattes/jenkins-build-docker with user: ****' Access registry docker.io for docker.io/heurtemattes/jenkins-build-docker with user: **** + crane auth login docker.io --password-stdin --username **** 2024/06/25 22:23:52 logged in via /home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main/.docker/config.json [Pipeline] } [Pipeline] // withCredentials [Pipeline] sh + IMAGE_ANNOTATIONS= + [[ true == \t\r\u\e ]] ++ date -u +%Y-%m-%dT%H:%M:%SZ + BUILD_DATE=2024-06-25T22:23:52Z + IMAGE_ANNOTATIONS+=, + IMAGE_ANNOTATIONS+=annotation.org.opencontainers.image.created=2024-06-25T22:23:52Z, + [[ -n '' ]] + [[ -n '' ]] + [[ -n '' ]] + [[ -n '' ]] + IMAGE_ANNOTATIONS+=annotation.org.opencontainers.image.ref.name=docker.io/heurtemattes/jenkins-build-docker:latest, + IMAGE_ANNOTATIONS+=annotation.org.opencontainers.image.revision=, + IMAGE_ANNOTATIONS+=annotation.org.opencontainers.image.source=https://gitlab.eclipse.org/eclipsefdn/it/releng/jenkins-pipeline-service/jenkins-pipeline-library-sample.git, + [[ -n '' ]] + IMAGE_ANNOTATIONS+=annotation.org.opencontainers.image.url=https://gitlab.eclipse.org/eclipsefdn/it/releng/jenkins-pipeline-service/jenkins-pipeline-library-sample.git, + [[ -n '' ]] + IMAGE_ANNOTATIONS+=annotation.org.opencontainers.image.version=latest + BUILD_IMAGE_NAME=docker.io/heurtemattes/jenkins-build-docker:latest + [[ -n '' ]] + ALIASES= + [[ -n '' ]] + [[ latest != \l\a\t\e\s\t ]] + echo 'Building and shipping image to docker.io/heurtemattes/jenkins-build-docker:latest' Building and shipping image to docker.io/heurtemattes/jenkins-build-docker:latest + echo 'Annotation: ,annotation.org.opencontainers.image.created=2024-06-25T22:23:52Z,annotation.org.opencontainers.image.ref.name=docker.io/heurtemattes/jenkins-build-docker:latest,annotation.org.opencontainers.image.revision=,annotation.org.opencontainers.image.source=https://gitlab.eclipse.org/eclipsefdn/it/releng/jenkins-pipeline-service/jenkins-pipeline-library-sample.git,annotation.org.opencontainers.image.url=https://gitlab.eclipse.org/eclipsefdn/it/releng/jenkins-pipeline-service/jenkins-pipeline-library-sample.git,annotation.org.opencontainers.image.version=latest' Annotation: ,annotation.org.opencontainers.image.created=2024-06-25T22:23:52Z,annotation.org.opencontainers.image.ref.name=docker.io/heurtemattes/jenkins-build-docker:latest,annotation.org.opencontainers.image.revision=,annotation.org.opencontainers.image.source=https://gitlab.eclipse.org/eclipsefdn/it/releng/jenkins-pipeline-service/jenkins-pipeline-library-sample.git,annotation.org.opencontainers.image.url=https://gitlab.eclipse.org/eclipsefdn/it/releng/jenkins-pipeline-service/jenkins-pipeline-library-sample.git,annotation.org.opencontainers.image.version=latest + echo 'Context: .' Context: . + echo 'Dockerfile: Dockerfile' Dockerfile: Dockerfile +++ readlink -f Dockerfile ++ dirname /home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main/Dockerfile + echo 'Dockerfile path: /home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main' Dockerfile path: /home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main ++ basename Dockerfile + echo 'filename: Dockerfile' filename: Dockerfile + echo 'buildArgs: null' buildArgs: null + echo 'push: false' push: false + echo 'latest: false' latest: false + BUILD_ARGS=null + [[ null == \n\u\l\l ]] + BUILD_ARGS= + [[ ! -f Dockerfile ]] +++ readlink -f Dockerfile ++ dirname /home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main/Dockerfile ++ basename Dockerfile + buildctl --addr=tcp://buildkitd.foundation-internal-infra-buildkitd:1234 build --progress=plain --frontend=dockerfile.v0 --local context=. --local dockerfile=/home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main --output 'type=image,"name=docker.io/heurtemattes/jenkins-build-docker:latest",push=false,annotation.org.opencontainers.image.created=2024-06-25T22:23:52Z,annotation.org.opencontainers.image.ref.name=docker.io/heurtemattes/jenkins-build-docker:latest,annotation.org.opencontainers.image.revision=,annotation.org.opencontainers.image.source=https://gitlab.eclipse.org/eclipsefdn/it/releng/jenkins-pipeline-service/jenkins-pipeline-library-sample.git,annotation.org.opencontainers.image.url=https://gitlab.eclipse.org/eclipsefdn/it/releng/jenkins-pipeline-service/jenkins-pipeline-library-sample.git,annotation.org.opencontainers.image.version=latest' --opt filename=Dockerfile #1 [internal] load build definition from Dockerfile #1 transferring dockerfile: 565B done #1 DONE 0.0s #2 [internal] load metadata for docker.io/library/ubuntu:latest #2 DONE 0.4s #3 [internal] load .dockerignore #3 transferring context: 2B done #3 DONE 0.0s #4 [1/2] FROM docker.io/library/ubuntu:latest@sha256:2e863c44b718727c860746568e1d54afd13b2fa71b160f5cd9058fc436217b30 #4 resolve docker.io/library/ubuntu:latest@sha256:2e863c44b718727c860746568e1d54afd13b2fa71b160f5cd9058fc436217b30 done #4 DONE 0.0s #5 [2/2] RUN apt-get update && apt-get install -y --no-install-recommends eatmydata && eatmydata apt-get install -y --no-install-recommends git && eatmydata apt-get clean && rm -rf /var/lib/apt/lists/* #5 CACHED #6 exporting to image #6 exporting layers done #6 exporting manifest sha256:9731d0aeaaf05d9d856043ba3e5e24d407c5a30b7b4d5155e67571602b14d8c6 done #6 exporting config sha256:862ed4f4300b8b130e235d67f963c27b5f565fbebaff4c4f50d6f549143e525d done #6 DONE 0.0s [Pipeline] } [Pipeline] // container [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Container Build with a specific version) [Pipeline] echo ##################### Container Build with a specific version ##################### [Pipeline] container [Pipeline] { [Pipeline] withCredentials Masking supported pattern matches of $DOCKER_REGISTRY_USERNAME or $DOCKER_REGISTRY_PASSWORD [Pipeline] { [Pipeline] sh + echo 'Access registry docker.io for docker.io/heurtemattes/jenkins-build-docker with user: ****' Access registry docker.io for docker.io/heurtemattes/jenkins-build-docker with user: **** + crane auth login docker.io --password-stdin --username **** 2024/06/25 22:23:54 logged in via /home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main/.docker/config.json [Pipeline] } [Pipeline] // withCredentials [Pipeline] sh + IMAGE_ANNOTATIONS= + [[ true == \t\r\u\e ]] ++ date -u +%Y-%m-%dT%H:%M:%SZ + BUILD_DATE=2024-06-25T22:23:54Z + IMAGE_ANNOTATIONS+=, + IMAGE_ANNOTATIONS+=annotation.org.opencontainers.image.created=2024-06-25T22:23:54Z, + [[ -n '' ]] + [[ -n '' ]] + [[ -n '' ]] + [[ -n '' ]] + IMAGE_ANNOTATIONS+=annotation.org.opencontainers.image.ref.name=docker.io/heurtemattes/jenkins-build-docker:v1.0.0, + IMAGE_ANNOTATIONS+=annotation.org.opencontainers.image.revision=, + IMAGE_ANNOTATIONS+=annotation.org.opencontainers.image.source=https://gitlab.eclipse.org/eclipsefdn/it/releng/jenkins-pipeline-service/jenkins-pipeline-library-sample.git, + [[ -n '' ]] + IMAGE_ANNOTATIONS+=annotation.org.opencontainers.image.url=https://gitlab.eclipse.org/eclipsefdn/it/releng/jenkins-pipeline-service/jenkins-pipeline-library-sample.git, + [[ -n '' ]] + IMAGE_ANNOTATIONS+=annotation.org.opencontainers.image.version=v1.0.0 + BUILD_IMAGE_NAME=docker.io/heurtemattes/jenkins-build-docker:v1.0.0 + [[ -n '' ]] + ALIASES= + [[ -n '' ]] + [[ v1.0.0 != \l\a\t\e\s\t ]] + [[ false == \t\r\u\e ]] + echo 'Building and shipping image to docker.io/heurtemattes/jenkins-build-docker:v1.0.0' Building and shipping image to docker.io/heurtemattes/jenkins-build-docker:v1.0.0 + echo 'Annotation: ,annotation.org.opencontainers.image.created=2024-06-25T22:23:54Z,annotation.org.opencontainers.image.ref.name=docker.io/heurtemattes/jenkins-build-docker:v1.0.0,annotation.org.opencontainers.image.revision=,annotation.org.opencontainers.image.source=https://gitlab.eclipse.org/eclipsefdn/it/releng/jenkins-pipeline-service/jenkins-pipeline-library-sample.git,annotation.org.opencontainers.image.url=https://gitlab.eclipse.org/eclipsefdn/it/releng/jenkins-pipeline-service/jenkins-pipeline-library-sample.git,annotation.org.opencontainers.image.version=v1.0.0' Annotation: ,annotation.org.opencontainers.image.created=2024-06-25T22:23:54Z,annotation.org.opencontainers.image.ref.name=docker.io/heurtemattes/jenkins-build-docker:v1.0.0,annotation.org.opencontainers.image.revision=,annotation.org.opencontainers.image.source=https://gitlab.eclipse.org/eclipsefdn/it/releng/jenkins-pipeline-service/jenkins-pipeline-library-sample.git,annotation.org.opencontainers.image.url=https://gitlab.eclipse.org/eclipsefdn/it/releng/jenkins-pipeline-service/jenkins-pipeline-library-sample.git,annotation.org.opencontainers.image.version=v1.0.0 + echo 'Context: .' Context: . + echo 'Dockerfile: Dockerfile' Dockerfile: Dockerfile +++ readlink -f Dockerfile ++ dirname /home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main/Dockerfile + echo 'Dockerfile path: /home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main' Dockerfile path: /home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main ++ basename Dockerfile + echo 'filename: Dockerfile' filename: Dockerfile + echo 'buildArgs: null' buildArgs: null + echo 'push: false' push: false + echo 'latest: false' latest: false + BUILD_ARGS=null + [[ null == \n\u\l\l ]] + BUILD_ARGS= + [[ ! -f Dockerfile ]] +++ readlink -f Dockerfile ++ dirname /home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main/Dockerfile ++ basename Dockerfile + buildctl --addr=tcp://buildkitd.foundation-internal-infra-buildkitd:1234 build --progress=plain --frontend=dockerfile.v0 --local context=. --local dockerfile=/home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main --output 'type=image,"name=docker.io/heurtemattes/jenkins-build-docker:v1.0.0",push=false,annotation.org.opencontainers.image.created=2024-06-25T22:23:54Z,annotation.org.opencontainers.image.ref.name=docker.io/heurtemattes/jenkins-build-docker:v1.0.0,annotation.org.opencontainers.image.revision=,annotation.org.opencontainers.image.source=https://gitlab.eclipse.org/eclipsefdn/it/releng/jenkins-pipeline-service/jenkins-pipeline-library-sample.git,annotation.org.opencontainers.image.url=https://gitlab.eclipse.org/eclipsefdn/it/releng/jenkins-pipeline-service/jenkins-pipeline-library-sample.git,annotation.org.opencontainers.image.version=v1.0.0' --opt filename=Dockerfile #1 [internal] load build definition from Dockerfile #1 transferring dockerfile: 565B done #1 DONE 0.0s #2 [internal] load metadata for docker.io/library/ubuntu:latest #2 DONE 0.0s #3 [internal] load .dockerignore #3 transferring context: 2B done #3 DONE 0.0s #4 [1/2] FROM docker.io/library/ubuntu:latest@sha256:2e863c44b718727c860746568e1d54afd13b2fa71b160f5cd9058fc436217b30 #4 resolve docker.io/library/ubuntu:latest@sha256:2e863c44b718727c860746568e1d54afd13b2fa71b160f5cd9058fc436217b30 0.0s done #4 DONE 0.0s #5 [2/2] RUN apt-get update && apt-get install -y --no-install-recommends eatmydata && eatmydata apt-get install -y --no-install-recommends git && eatmydata apt-get clean && rm -rf /var/lib/apt/lists/* #5 CACHED #6 exporting to image #6 exporting layers done #6 exporting manifest sha256:63ac1e75bff34a340df4c6936f06b6d44537fc4416b2b621d4529bbd4b362fb4 0.0s done #6 exporting config sha256:63c1a64e5b8528415ab13afd82b9a4f6743ff8ac2f40fe9d54a6715c43ecec74 done #6 DONE 0.0s [Pipeline] } [Pipeline] // container [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Container Build with a specific version and extras versions) [Pipeline] echo ##################### Container Build with a specific version and extras versions ##################### [Pipeline] container [Pipeline] { [Pipeline] withCredentials Masking supported pattern matches of $DOCKER_REGISTRY_USERNAME or $DOCKER_REGISTRY_PASSWORD [Pipeline] { [Pipeline] sh + echo 'Access registry docker.io for docker.io/heurtemattes/jenkins-build-docker with user: ****' Access registry docker.io for docker.io/heurtemattes/jenkins-build-docker with user: **** + crane auth login docker.io --password-stdin --username **** 2024/06/25 22:23:55 logged in via /home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main/.docker/config.json [Pipeline] } [Pipeline] // withCredentials [Pipeline] sh + IMAGE_ANNOTATIONS= + [[ true == \t\r\u\e ]] ++ date -u +%Y-%m-%dT%H:%M:%SZ + BUILD_DATE=2024-06-25T22:23:56Z + IMAGE_ANNOTATIONS+=, + IMAGE_ANNOTATIONS+=annotation.org.opencontainers.image.created=2024-06-25T22:23:56Z, + [[ -n '' ]] + [[ -n '' ]] + [[ -n '' ]] + [[ -n '' ]] + IMAGE_ANNOTATIONS+=annotation.org.opencontainers.image.ref.name=docker.io/heurtemattes/jenkins-build-docker:v1.0.0, + IMAGE_ANNOTATIONS+=annotation.org.opencontainers.image.revision=, + IMAGE_ANNOTATIONS+=annotation.org.opencontainers.image.source=https://gitlab.eclipse.org/eclipsefdn/it/releng/jenkins-pipeline-service/jenkins-pipeline-library-sample.git, + [[ -n '' ]] + IMAGE_ANNOTATIONS+=annotation.org.opencontainers.image.url=https://gitlab.eclipse.org/eclipsefdn/it/releng/jenkins-pipeline-service/jenkins-pipeline-library-sample.git, + [[ -n '' ]] + IMAGE_ANNOTATIONS+=annotation.org.opencontainers.image.version=v1.0.0 + BUILD_IMAGE_NAME=docker.io/heurtemattes/jenkins-build-docker:v1.0.0 + [[ -n docker.io/heurtemattes/jenkins-build-docker:v1.0.0-latest,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-rc1 ]] + BUILD_IMAGE_NAME+=,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-latest,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-rc1 + ALIASES= + [[ -n '' ]] + [[ v1.0.0 != \l\a\t\e\s\t ]] + [[ false == \t\r\u\e ]] + echo 'Building and shipping image to docker.io/heurtemattes/jenkins-build-docker:v1.0.0,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-latest,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-rc1' Building and shipping image to docker.io/heurtemattes/jenkins-build-docker:v1.0.0,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-latest,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-rc1 + echo 'Annotation: ,annotation.org.opencontainers.image.created=2024-06-25T22:23:56Z,annotation.org.opencontainers.image.ref.name=docker.io/heurtemattes/jenkins-build-docker:v1.0.0,annotation.org.opencontainers.image.revision=,annotation.org.opencontainers.image.source=https://gitlab.eclipse.org/eclipsefdn/it/releng/jenkins-pipeline-service/jenkins-pipeline-library-sample.git,annotation.org.opencontainers.image.url=https://gitlab.eclipse.org/eclipsefdn/it/releng/jenkins-pipeline-service/jenkins-pipeline-library-sample.git,annotation.org.opencontainers.image.version=v1.0.0' Annotation: ,annotation.org.opencontainers.image.created=2024-06-25T22:23:56Z,annotation.org.opencontainers.image.ref.name=docker.io/heurtemattes/jenkins-build-docker:v1.0.0,annotation.org.opencontainers.image.revision=,annotation.org.opencontainers.image.source=https://gitlab.eclipse.org/eclipsefdn/it/releng/jenkins-pipeline-service/jenkins-pipeline-library-sample.git,annotation.org.opencontainers.image.url=https://gitlab.eclipse.org/eclipsefdn/it/releng/jenkins-pipeline-service/jenkins-pipeline-library-sample.git,annotation.org.opencontainers.image.version=v1.0.0 + echo 'Context: .' Context: . + echo 'Dockerfile: Dockerfile' Dockerfile: Dockerfile +++ readlink -f Dockerfile ++ dirname /home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main/Dockerfile + echo 'Dockerfile path: /home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main' Dockerfile path: /home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main ++ basename Dockerfile + echo 'filename: Dockerfile' filename: Dockerfile + echo 'buildArgs: null' buildArgs: null + echo 'push: false' push: false + echo 'latest: false' latest: false + BUILD_ARGS=null + [[ null == \n\u\l\l ]] + BUILD_ARGS= + [[ ! -f Dockerfile ]] +++ readlink -f Dockerfile ++ dirname /home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main/Dockerfile ++ basename Dockerfile + buildctl --addr=tcp://buildkitd.foundation-internal-infra-buildkitd:1234 build --progress=plain --frontend=dockerfile.v0 --local context=. --local dockerfile=/home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main --output 'type=image,"name=docker.io/heurtemattes/jenkins-build-docker:v1.0.0,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-latest,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-rc1",push=false,annotation.org.opencontainers.image.created=2024-06-25T22:23:56Z,annotation.org.opencontainers.image.ref.name=docker.io/heurtemattes/jenkins-build-docker:v1.0.0,annotation.org.opencontainers.image.revision=,annotation.org.opencontainers.image.source=https://gitlab.eclipse.org/eclipsefdn/it/releng/jenkins-pipeline-service/jenkins-pipeline-library-sample.git,annotation.org.opencontainers.image.url=https://gitlab.eclipse.org/eclipsefdn/it/releng/jenkins-pipeline-service/jenkins-pipeline-library-sample.git,annotation.org.opencontainers.image.version=v1.0.0' --opt filename=Dockerfile #1 [internal] load build definition from Dockerfile #1 transferring dockerfile: 565B done #1 DONE 0.0s #2 [internal] load metadata for docker.io/library/ubuntu:latest #2 DONE 0.0s #3 [internal] load .dockerignore #3 transferring context: 2B done #3 DONE 0.0s #4 [1/2] FROM docker.io/library/ubuntu:latest@sha256:2e863c44b718727c860746568e1d54afd13b2fa71b160f5cd9058fc436217b30 #4 resolve docker.io/library/ubuntu:latest@sha256:2e863c44b718727c860746568e1d54afd13b2fa71b160f5cd9058fc436217b30 0.0s done #4 DONE 0.0s #5 [2/2] RUN apt-get update && apt-get install -y --no-install-recommends eatmydata && eatmydata apt-get install -y --no-install-recommends git && eatmydata apt-get clean && rm -rf /var/lib/apt/lists/* #5 CACHED #6 exporting to image #6 exporting layers done #6 exporting manifest sha256:42ce90d49deeb269fec132ecc9fd3c27910ad6a5f099b2ddde55f56df2ce8327 0.0s done #6 exporting config sha256:63c1a64e5b8528415ab13afd82b9a4f6743ff8ac2f40fe9d54a6715c43ecec74 #6 exporting config sha256:63c1a64e5b8528415ab13afd82b9a4f6743ff8ac2f40fe9d54a6715c43ecec74 done #6 DONE 0.0s [Pipeline] } [Pipeline] // container [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Container Build with a specific version and a latest) [Pipeline] echo ##################### Container Build with a specific version and a latest ##################### [Pipeline] container [Pipeline] { [Pipeline] withCredentials Masking supported pattern matches of $DOCKER_REGISTRY_USERNAME or $DOCKER_REGISTRY_PASSWORD [Pipeline] { [Pipeline] sh + echo 'Access registry docker.io for docker.io/heurtemattes/jenkins-build-docker with user: ****' Access registry docker.io for docker.io/heurtemattes/jenkins-build-docker with user: **** + crane auth login docker.io --password-stdin --username **** 2024/06/25 22:23:56 logged in via /home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main/.docker/config.json [Pipeline] } [Pipeline] // withCredentials [Pipeline] sh + IMAGE_ANNOTATIONS= + [[ true == \t\r\u\e ]] ++ date -u +%Y-%m-%dT%H:%M:%SZ + BUILD_DATE=2024-06-25T22:23:57Z + IMAGE_ANNOTATIONS+=, + IMAGE_ANNOTATIONS+=annotation.org.opencontainers.image.created=2024-06-25T22:23:57Z, + [[ -n '' ]] + [[ -n '' ]] + [[ -n '' ]] + [[ -n '' ]] + IMAGE_ANNOTATIONS+=annotation.org.opencontainers.image.ref.name=docker.io/heurtemattes/jenkins-build-docker:v1.0.0, + IMAGE_ANNOTATIONS+=annotation.org.opencontainers.image.revision=, + IMAGE_ANNOTATIONS+=annotation.org.opencontainers.image.source=https://gitlab.eclipse.org/eclipsefdn/it/releng/jenkins-pipeline-service/jenkins-pipeline-library-sample.git, + [[ -n '' ]] + IMAGE_ANNOTATIONS+=annotation.org.opencontainers.image.url=https://gitlab.eclipse.org/eclipsefdn/it/releng/jenkins-pipeline-service/jenkins-pipeline-library-sample.git, + [[ -n '' ]] + IMAGE_ANNOTATIONS+=annotation.org.opencontainers.image.version=v1.0.0 + BUILD_IMAGE_NAME=docker.io/heurtemattes/jenkins-build-docker:v1.0.0 + [[ -n docker.io/heurtemattes/jenkins-build-docker:v1.0.0-latest,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-rc1 ]] + BUILD_IMAGE_NAME+=,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-latest,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-rc1 + ALIASES= + [[ -n '' ]] + [[ v1.0.0 != \l\a\t\e\s\t ]] + [[ true == \t\r\u\e ]] + BUILD_IMAGE_NAME+=,docker.io/heurtemattes/jenkins-build-docker:latest + echo 'Building and shipping image to docker.io/heurtemattes/jenkins-build-docker:v1.0.0,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-latest,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-rc1,docker.io/heurtemattes/jenkins-build-docker:latest' Building and shipping image to docker.io/heurtemattes/jenkins-build-docker:v1.0.0,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-latest,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-rc1,docker.io/heurtemattes/jenkins-build-docker:latest + echo 'Annotation: ,annotation.org.opencontainers.image.created=2024-06-25T22:23:57Z,annotation.org.opencontainers.image.ref.name=docker.io/heurtemattes/jenkins-build-docker:v1.0.0,annotation.org.opencontainers.image.revision=,annotation.org.opencontainers.image.source=https://gitlab.eclipse.org/eclipsefdn/it/releng/jenkins-pipeline-service/jenkins-pipeline-library-sample.git,annotation.org.opencontainers.image.url=https://gitlab.eclipse.org/eclipsefdn/it/releng/jenkins-pipeline-service/jenkins-pipeline-library-sample.git,annotation.org.opencontainers.image.version=v1.0.0' Annotation: ,annotation.org.opencontainers.image.created=2024-06-25T22:23:57Z,annotation.org.opencontainers.image.ref.name=docker.io/heurtemattes/jenkins-build-docker:v1.0.0,annotation.org.opencontainers.image.revision=,annotation.org.opencontainers.image.source=https://gitlab.eclipse.org/eclipsefdn/it/releng/jenkins-pipeline-service/jenkins-pipeline-library-sample.git,annotation.org.opencontainers.image.url=https://gitlab.eclipse.org/eclipsefdn/it/releng/jenkins-pipeline-service/jenkins-pipeline-library-sample.git,annotation.org.opencontainers.image.version=v1.0.0 + echo 'Context: .' Context: . + echo 'Dockerfile: Dockerfile' Dockerfile: Dockerfile +++ readlink -f Dockerfile ++ dirname /home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main/Dockerfile + echo 'Dockerfile path: /home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main' Dockerfile path: /home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main ++ basename Dockerfile + echo 'filename: Dockerfile' filename: Dockerfile + echo 'buildArgs: null' buildArgs: null + echo 'push: false' push: false + echo 'latest: true' latest: true + BUILD_ARGS=null + [[ null == \n\u\l\l ]] + BUILD_ARGS= + [[ ! -f Dockerfile ]] +++ readlink -f Dockerfile ++ dirname /home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main/Dockerfile ++ basename Dockerfile + buildctl --addr=tcp://buildkitd.foundation-internal-infra-buildkitd:1234 build --progress=plain --frontend=dockerfile.v0 --local context=. --local dockerfile=/home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main --output 'type=image,"name=docker.io/heurtemattes/jenkins-build-docker:v1.0.0,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-latest,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-rc1,docker.io/heurtemattes/jenkins-build-docker:latest",push=false,annotation.org.opencontainers.image.created=2024-06-25T22:23:57Z,annotation.org.opencontainers.image.ref.name=docker.io/heurtemattes/jenkins-build-docker:v1.0.0,annotation.org.opencontainers.image.revision=,annotation.org.opencontainers.image.source=https://gitlab.eclipse.org/eclipsefdn/it/releng/jenkins-pipeline-service/jenkins-pipeline-library-sample.git,annotation.org.opencontainers.image.url=https://gitlab.eclipse.org/eclipsefdn/it/releng/jenkins-pipeline-service/jenkins-pipeline-library-sample.git,annotation.org.opencontainers.image.version=v1.0.0' --opt filename=Dockerfile #1 [internal] load build definition from Dockerfile #1 transferring dockerfile: 565B done #1 DONE 0.0s #2 [internal] load metadata for docker.io/library/ubuntu:latest #2 DONE 0.0s #3 [internal] load .dockerignore #3 transferring context: 2B done #3 DONE 0.0s #4 [1/2] FROM docker.io/library/ubuntu:latest@sha256:2e863c44b718727c860746568e1d54afd13b2fa71b160f5cd9058fc436217b30 #4 resolve docker.io/library/ubuntu:latest@sha256:2e863c44b718727c860746568e1d54afd13b2fa71b160f5cd9058fc436217b30 done #4 DONE 0.0s #5 [2/2] RUN apt-get update && apt-get install -y --no-install-recommends eatmydata && eatmydata apt-get install -y --no-install-recommends git && eatmydata apt-get clean && rm -rf /var/lib/apt/lists/* #5 CACHED #6 exporting to image #6 exporting layers done #6 exporting manifest sha256:9e4683e4d6205773f5168f1dcefcaa9ac9043a26100f711aa82f528f8e67b294 done #6 exporting config sha256:2f655d913ddcf6c0eba915179d87d7acba80803b3cfbd16fff82a5e44052c6df done #6 DONE 0.0s [Pipeline] } [Pipeline] // container [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Container Build with a specific version and aliases) [Pipeline] echo ##################### Container Build with a specific version and a latest ##################### [Pipeline] container [Pipeline] { [Pipeline] withCredentials Masking supported pattern matches of $DOCKER_REGISTRY_USERNAME or $DOCKER_REGISTRY_PASSWORD [Pipeline] { [Pipeline] sh + echo 'Access registry docker.io for docker.io/heurtemattes/jenkins-build-docker with user: ****' Access registry docker.io for docker.io/heurtemattes/jenkins-build-docker with user: **** + crane auth login docker.io --password-stdin --username **** 2024/06/25 22:23:58 logged in via /home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main/.docker/config.json [Pipeline] } [Pipeline] // withCredentials [Pipeline] sh + IMAGE_ANNOTATIONS= + [[ true == \t\r\u\e ]] ++ date -u +%Y-%m-%dT%H:%M:%SZ + BUILD_DATE=2024-06-25T22:23:59Z + IMAGE_ANNOTATIONS+=, + IMAGE_ANNOTATIONS+=annotation.org.opencontainers.image.created=2024-06-25T22:23:59Z, + [[ -n '' ]] + [[ -n '' ]] + [[ -n '' ]] + [[ -n '' ]] + IMAGE_ANNOTATIONS+=annotation.org.opencontainers.image.ref.name=docker.io/heurtemattes/jenkins-build-docker:v1.0.0, + IMAGE_ANNOTATIONS+=annotation.org.opencontainers.image.revision=, + IMAGE_ANNOTATIONS+=annotation.org.opencontainers.image.source=https://gitlab.eclipse.org/eclipsefdn/it/releng/jenkins-pipeline-service/jenkins-pipeline-library-sample.git, + [[ -n '' ]] + IMAGE_ANNOTATIONS+=annotation.org.opencontainers.image.url=https://gitlab.eclipse.org/eclipsefdn/it/releng/jenkins-pipeline-service/jenkins-pipeline-library-sample.git, + [[ -n '' ]] + IMAGE_ANNOTATIONS+=annotation.org.opencontainers.image.version=v1.0.0 + BUILD_IMAGE_NAME=docker.io/heurtemattes/jenkins-build-docker:v1.0.0 + [[ -n docker.io/heurtemattes/jenkins-build-docker:v1.0.0-latest,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-rc1 ]] + BUILD_IMAGE_NAME+=,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-latest,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-rc1 + ALIASES=docker.io/heurtemattes/jenkins-build-docker:v1.0.0-1 + [[ -n docker.io/heurtemattes/jenkins-build-docker:v1.0.0-1 ]] + [[ docker.io/heurtemattes/jenkins-build-docker:v1.0.0-1 != \n\u\l\l ]] + BUILD_IMAGE_NAME+=,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-1 + [[ v1.0.0 != \l\a\t\e\s\t ]] + [[ true == \t\r\u\e ]] + BUILD_IMAGE_NAME+=,docker.io/heurtemattes/jenkins-build-docker:latest + echo 'Building and shipping image to docker.io/heurtemattes/jenkins-build-docker:v1.0.0,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-latest,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-rc1,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-1,docker.io/heurtemattes/jenkins-build-docker:latest' Building and shipping image to docker.io/heurtemattes/jenkins-build-docker:v1.0.0,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-latest,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-rc1,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-1,docker.io/heurtemattes/jenkins-build-docker:latest + echo 'Annotation: ,annotation.org.opencontainers.image.created=2024-06-25T22:23:59Z,annotation.org.opencontainers.image.ref.name=docker.io/heurtemattes/jenkins-build-docker:v1.0.0,annotation.org.opencontainers.image.revision=,annotation.org.opencontainers.image.source=https://gitlab.eclipse.org/eclipsefdn/it/releng/jenkins-pipeline-service/jenkins-pipeline-library-sample.git,annotation.org.opencontainers.image.url=https://gitlab.eclipse.org/eclipsefdn/it/releng/jenkins-pipeline-service/jenkins-pipeline-library-sample.git,annotation.org.opencontainers.image.version=v1.0.0' Annotation: ,annotation.org.opencontainers.image.created=2024-06-25T22:23:59Z,annotation.org.opencontainers.image.ref.name=docker.io/heurtemattes/jenkins-build-docker:v1.0.0,annotation.org.opencontainers.image.revision=,annotation.org.opencontainers.image.source=https://gitlab.eclipse.org/eclipsefdn/it/releng/jenkins-pipeline-service/jenkins-pipeline-library-sample.git,annotation.org.opencontainers.image.url=https://gitlab.eclipse.org/eclipsefdn/it/releng/jenkins-pipeline-service/jenkins-pipeline-library-sample.git,annotation.org.opencontainers.image.version=v1.0.0 + echo 'Context: .' Context: . + echo 'Dockerfile: Dockerfile' Dockerfile: Dockerfile +++ readlink -f Dockerfile ++ dirname /home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main/Dockerfile + echo 'Dockerfile path: /home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main' Dockerfile path: /home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main ++ basename Dockerfile + echo 'filename: Dockerfile' filename: Dockerfile + echo 'buildArgs: null' buildArgs: null + echo 'push: false' push: false + echo 'latest: true' latest: true + BUILD_ARGS=null + [[ null == \n\u\l\l ]] + BUILD_ARGS= + [[ ! -f Dockerfile ]] +++ readlink -f Dockerfile ++ dirname /home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main/Dockerfile ++ basename Dockerfile + buildctl --addr=tcp://buildkitd.foundation-internal-infra-buildkitd:1234 build --progress=plain --frontend=dockerfile.v0 --local context=. --local dockerfile=/home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main --output 'type=image,"name=docker.io/heurtemattes/jenkins-build-docker:v1.0.0,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-latest,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-rc1,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-1,docker.io/heurtemattes/jenkins-build-docker:latest",push=false,annotation.org.opencontainers.image.created=2024-06-25T22:23:59Z,annotation.org.opencontainers.image.ref.name=docker.io/heurtemattes/jenkins-build-docker:v1.0.0,annotation.org.opencontainers.image.revision=,annotation.org.opencontainers.image.source=https://gitlab.eclipse.org/eclipsefdn/it/releng/jenkins-pipeline-service/jenkins-pipeline-library-sample.git,annotation.org.opencontainers.image.url=https://gitlab.eclipse.org/eclipsefdn/it/releng/jenkins-pipeline-service/jenkins-pipeline-library-sample.git,annotation.org.opencontainers.image.version=v1.0.0' --opt filename=Dockerfile #1 [internal] load build definition from Dockerfile #1 transferring dockerfile: 565B done #1 DONE 0.0s #2 [internal] load metadata for docker.io/library/ubuntu:latest #2 DONE 0.0s #3 [internal] load .dockerignore #3 transferring context: 2B done #3 DONE 0.0s #4 [1/2] FROM docker.io/library/ubuntu:latest@sha256:2e863c44b718727c860746568e1d54afd13b2fa71b160f5cd9058fc436217b30 #4 resolve docker.io/library/ubuntu:latest@sha256:2e863c44b718727c860746568e1d54afd13b2fa71b160f5cd9058fc436217b30 done #4 DONE 0.0s #5 [2/2] RUN apt-get update && apt-get install -y --no-install-recommends eatmydata && eatmydata apt-get install -y --no-install-recommends git && eatmydata apt-get clean && rm -rf /var/lib/apt/lists/* #5 CACHED #6 exporting to image #6 exporting layers done #6 exporting manifest sha256:97f8736a64e72a780b407c45df3f989b6d7bb337c87190bab7fef5a769a64de3 done #6 exporting config sha256:eb402d04aec6ae0bedfdcd8a07d732a0b1a42a40edbe94e14700e6df58f32911 done #6 DONE 0.0s [Pipeline] } [Pipeline] // container [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Container Build without annotations) [Pipeline] echo ##################### Container Build without annotations ##################### [Pipeline] container [Pipeline] { [Pipeline] withCredentials Masking supported pattern matches of $DOCKER_REGISTRY_USERNAME or $DOCKER_REGISTRY_PASSWORD [Pipeline] { [Pipeline] sh + echo 'Access registry docker.io for docker.io/heurtemattes/jenkins-build-docker with user: ****' Access registry docker.io for docker.io/heurtemattes/jenkins-build-docker with user: **** + crane auth login docker.io --password-stdin --username **** 2024/06/25 22:24:00 logged in via /home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main/.docker/config.json [Pipeline] } [Pipeline] // withCredentials [Pipeline] sh + IMAGE_ANNOTATIONS= + [[ false == \t\r\u\e ]] + BUILD_IMAGE_NAME=docker.io/heurtemattes/jenkins-build-docker:v1.0.0 + [[ -n docker.io/heurtemattes/jenkins-build-docker:v1.0.0-latest,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-rc1 ]] + BUILD_IMAGE_NAME+=,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-latest,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-rc1 + ALIASES=docker.io/heurtemattes/jenkins-build-docker:v1.0.0-1 + [[ -n docker.io/heurtemattes/jenkins-build-docker:v1.0.0-1 ]] + [[ docker.io/heurtemattes/jenkins-build-docker:v1.0.0-1 != \n\u\l\l ]] + BUILD_IMAGE_NAME+=,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-1 + [[ v1.0.0 != \l\a\t\e\s\t ]] + [[ true == \t\r\u\e ]] + BUILD_IMAGE_NAME+=,docker.io/heurtemattes/jenkins-build-docker:latest + echo 'Building and shipping image to docker.io/heurtemattes/jenkins-build-docker:v1.0.0,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-latest,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-rc1,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-1,docker.io/heurtemattes/jenkins-build-docker:latest' Building and shipping image to docker.io/heurtemattes/jenkins-build-docker:v1.0.0,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-latest,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-rc1,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-1,docker.io/heurtemattes/jenkins-build-docker:latest + echo 'Annotation: ' Annotation: + echo 'Context: .' Context: . + echo 'Dockerfile: Dockerfile' Dockerfile: Dockerfile +++ readlink -f Dockerfile ++ dirname /home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main/Dockerfile + echo 'Dockerfile path: /home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main' Dockerfile path: /home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main ++ basename Dockerfile + echo 'filename: Dockerfile' filename: Dockerfile + echo 'buildArgs: null' buildArgs: null + echo 'push: false' push: false + echo 'latest: true' latest: true + BUILD_ARGS=null + [[ null == \n\u\l\l ]] + BUILD_ARGS= + [[ ! -f Dockerfile ]] +++ readlink -f Dockerfile ++ dirname /home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main/Dockerfile ++ basename Dockerfile + buildctl --addr=tcp://buildkitd.foundation-internal-infra-buildkitd:1234 build --progress=plain --frontend=dockerfile.v0 --local context=. --local dockerfile=/home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main --output 'type=image,"name=docker.io/heurtemattes/jenkins-build-docker:v1.0.0,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-latest,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-rc1,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-1,docker.io/heurtemattes/jenkins-build-docker:latest",push=false' --opt filename=Dockerfile #1 [internal] load build definition from Dockerfile #1 transferring dockerfile: 565B done #1 DONE 0.0s #2 [internal] load metadata for docker.io/library/ubuntu:latest #2 DONE 0.0s #3 [internal] load .dockerignore #3 transferring context: 2B done #3 DONE 0.0s #4 [1/2] FROM docker.io/library/ubuntu:latest@sha256:2e863c44b718727c860746568e1d54afd13b2fa71b160f5cd9058fc436217b30 #4 resolve docker.io/library/ubuntu:latest@sha256:2e863c44b718727c860746568e1d54afd13b2fa71b160f5cd9058fc436217b30 done #4 DONE 0.0s #5 [2/2] RUN apt-get update && apt-get install -y --no-install-recommends eatmydata && eatmydata apt-get install -y --no-install-recommends git && eatmydata apt-get clean && rm -rf /var/lib/apt/lists/* #5 CACHED #6 exporting to image #6 exporting layers done #6 exporting manifest sha256:9b7ecbf765efe115bcbb88e418a9aa78ecce972b3f530605c26caec4dd8f2dcb done #6 exporting config sha256:862ed4f4300b8b130e235d67f963c27b5f565fbebaff4c4f50d6f549143e525d done #6 DONE 0.0s [Pipeline] } [Pipeline] // container [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Container Build with a specific dockerfile and context directory) [Pipeline] echo ##################### Container Build with a specific dockerfile and context directory ##################### [Pipeline] container [Pipeline] { [Pipeline] withCredentials Masking supported pattern matches of $DOCKER_REGISTRY_USERNAME or $DOCKER_REGISTRY_PASSWORD [Pipeline] { [Pipeline] sh + echo 'Access registry docker.io for docker.io/heurtemattes/jenkins-build-docker with user: ****' Access registry docker.io for docker.io/heurtemattes/jenkins-build-docker with user: **** + crane auth login docker.io --password-stdin --username **** 2024/06/25 22:24:02 logged in via /home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main/.docker/config.json [Pipeline] } [Pipeline] // withCredentials [Pipeline] sh + IMAGE_ANNOTATIONS= + [[ false == \t\r\u\e ]] + BUILD_IMAGE_NAME=docker.io/heurtemattes/jenkins-build-docker:v1.0.0 + [[ -n docker.io/heurtemattes/jenkins-build-docker:v1.0.0-latest,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-rc1 ]] + BUILD_IMAGE_NAME+=,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-latest,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-rc1 + ALIASES=docker.io/heurtemattes/jenkins-build-docker:v1.0.0-1 + [[ -n docker.io/heurtemattes/jenkins-build-docker:v1.0.0-1 ]] + [[ docker.io/heurtemattes/jenkins-build-docker:v1.0.0-1 != \n\u\l\l ]] + BUILD_IMAGE_NAME+=,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-1 + [[ v1.0.0 != \l\a\t\e\s\t ]] + [[ true == \t\r\u\e ]] + BUILD_IMAGE_NAME+=,docker.io/heurtemattes/jenkins-build-docker:latest + echo 'Building and shipping image to docker.io/heurtemattes/jenkins-build-docker:v1.0.0,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-latest,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-rc1,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-1,docker.io/heurtemattes/jenkins-build-docker:latest' Building and shipping image to docker.io/heurtemattes/jenkins-build-docker:v1.0.0,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-latest,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-rc1,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-1,docker.io/heurtemattes/jenkins-build-docker:latest + echo 'Annotation: ' Annotation: + echo 'Context: ./test/containerBuild/docker' Context: ./test/containerBuild/docker + echo 'Dockerfile: ./test/containerBuild/docker/Dockerfile' Dockerfile: ./test/containerBuild/docker/Dockerfile +++ readlink -f ./test/containerBuild/docker/Dockerfile ++ dirname /home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main/test/containerBuild/docker/Dockerfile + echo 'Dockerfile path: /home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main/test/containerBuild/docker' Dockerfile path: /home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main/test/containerBuild/docker ++ basename ./test/containerBuild/docker/Dockerfile + echo 'filename: Dockerfile' filename: Dockerfile + echo 'buildArgs: null' buildArgs: null + echo 'push: false' push: false + echo 'latest: true' latest: true + BUILD_ARGS=null + [[ null == \n\u\l\l ]] + BUILD_ARGS= + [[ ! -f ./test/containerBuild/docker/Dockerfile ]] +++ readlink -f ./test/containerBuild/docker/Dockerfile ++ dirname /home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main/test/containerBuild/docker/Dockerfile ++ basename ./test/containerBuild/docker/Dockerfile + buildctl --addr=tcp://buildkitd.foundation-internal-infra-buildkitd:1234 build --progress=plain --frontend=dockerfile.v0 --local context=./test/containerBuild/docker --local dockerfile=/home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main/test/containerBuild/docker --output 'type=image,"name=docker.io/heurtemattes/jenkins-build-docker:v1.0.0,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-latest,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-rc1,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-1,docker.io/heurtemattes/jenkins-build-docker:latest",push=false' --opt filename=Dockerfile #1 [internal] load build definition from Dockerfile #1 transferring dockerfile: 565B 0.0s done #1 DONE 0.1s #2 [internal] load metadata for docker.io/library/ubuntu:latest #2 DONE 0.0s #3 [internal] load .dockerignore #3 transferring context: 2B done #3 DONE 0.0s #4 [1/2] FROM docker.io/library/ubuntu:latest@sha256:2e863c44b718727c860746568e1d54afd13b2fa71b160f5cd9058fc436217b30 #4 resolve docker.io/library/ubuntu:latest@sha256:2e863c44b718727c860746568e1d54afd13b2fa71b160f5cd9058fc436217b30 done #4 DONE 0.0s #5 [2/2] RUN apt-get update && apt-get install -y --no-install-recommends eatmydata && eatmydata apt-get install -y --no-install-recommends git && eatmydata apt-get clean && rm -rf /var/lib/apt/lists/* #5 CACHED #6 exporting to image #6 exporting layers done #6 exporting manifest sha256:ce364330591f839c7acbffc3ea9fe89513b240b3ea60641b74167a8e6d2ac28a done #6 exporting config sha256:eb402d04aec6ae0bedfdcd8a07d732a0b1a42a40edbe94e14700e6df58f32911 done #6 DONE 0.0s [Pipeline] } [Pipeline] // container [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Container Build with a specific dockerfile name and context directory) [Pipeline] echo ##################### Container Build with a specific dockerfile name and context directory ##################### [Pipeline] container [Pipeline] { [Pipeline] withCredentials Masking supported pattern matches of $DOCKER_REGISTRY_USERNAME or $DOCKER_REGISTRY_PASSWORD [Pipeline] { [Pipeline] sh + echo 'Access registry docker.io for docker.io/heurtemattes/jenkins-build-docker with user: ****' Access registry docker.io for docker.io/heurtemattes/jenkins-build-docker with user: **** + crane auth login docker.io --password-stdin --username **** 2024/06/25 22:24:04 logged in via /home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main/.docker/config.json [Pipeline] } [Pipeline] // withCredentials [Pipeline] sh + IMAGE_ANNOTATIONS= + [[ false == \t\r\u\e ]] + BUILD_IMAGE_NAME=docker.io/heurtemattes/jenkins-build-docker:v1.0.0 + [[ -n docker.io/heurtemattes/jenkins-build-docker:v1.0.0-latest,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-rc1 ]] + BUILD_IMAGE_NAME+=,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-latest,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-rc1 + ALIASES=docker.io/heurtemattes/jenkins-build-docker:v1.0.0-1 + [[ -n docker.io/heurtemattes/jenkins-build-docker:v1.0.0-1 ]] + [[ docker.io/heurtemattes/jenkins-build-docker:v1.0.0-1 != \n\u\l\l ]] + BUILD_IMAGE_NAME+=,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-1 + [[ v1.0.0 != \l\a\t\e\s\t ]] + [[ true == \t\r\u\e ]] + BUILD_IMAGE_NAME+=,docker.io/heurtemattes/jenkins-build-docker:latest + echo 'Building and shipping image to docker.io/heurtemattes/jenkins-build-docker:v1.0.0,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-latest,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-rc1,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-1,docker.io/heurtemattes/jenkins-build-docker:latest' Building and shipping image to docker.io/heurtemattes/jenkins-build-docker:v1.0.0,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-latest,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-rc1,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-1,docker.io/heurtemattes/jenkins-build-docker:latest + echo 'Annotation: ' Annotation: + echo 'Context: ./test/containerBuild/docker' Context: ./test/containerBuild/docker + echo 'Dockerfile: ./test/containerBuild/docker/debian.Dockerfile' Dockerfile: ./test/containerBuild/docker/debian.Dockerfile +++ readlink -f ./test/containerBuild/docker/debian.Dockerfile ++ dirname /home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main/test/containerBuild/docker/debian.Dockerfile + echo 'Dockerfile path: /home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main/test/containerBuild/docker' Dockerfile path: /home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main/test/containerBuild/docker ++ basename ./test/containerBuild/docker/debian.Dockerfile + echo 'filename: debian.Dockerfile' filename: debian.Dockerfile + echo 'buildArgs: null' buildArgs: null + echo 'push: false' push: false + echo 'latest: true' latest: true + BUILD_ARGS=null + [[ null == \n\u\l\l ]] + BUILD_ARGS= + [[ ! -f ./test/containerBuild/docker/debian.Dockerfile ]] +++ readlink -f ./test/containerBuild/docker/debian.Dockerfile ++ dirname /home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main/test/containerBuild/docker/debian.Dockerfile ++ basename ./test/containerBuild/docker/debian.Dockerfile + buildctl --addr=tcp://buildkitd.foundation-internal-infra-buildkitd:1234 build --progress=plain --frontend=dockerfile.v0 --local context=./test/containerBuild/docker --local dockerfile=/home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main/test/containerBuild/docker --output 'type=image,"name=docker.io/heurtemattes/jenkins-build-docker:v1.0.0,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-latest,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-rc1,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-1,docker.io/heurtemattes/jenkins-build-docker:latest",push=false' --opt filename=debian.Dockerfile #1 [internal] load build definition from debian.Dockerfile #1 transferring dockerfile: 572B done #1 DONE 0.0s #2 [internal] load metadata for docker.io/library/debian:latest #2 DONE 0.4s #3 [internal] load .dockerignore #3 transferring context: 2B done #3 DONE 0.0s #4 [1/2] FROM docker.io/library/debian:latest@sha256:a92ed51e0996d8e9de041ca05ce623d2c491444df6a535a566dabd5cb8336946 #4 resolve docker.io/library/debian:latest@sha256:a92ed51e0996d8e9de041ca05ce623d2c491444df6a535a566dabd5cb8336946 done #4 DONE 0.0s #5 [2/2] RUN apt-get update && apt-get install -y --no-install-recommends eatmydata && eatmydata apt-get install -y --no-install-recommends git && eatmydata apt-get clean && rm -rf /var/lib/apt/lists/* #5 CACHED #6 exporting to image #6 exporting layers done #6 exporting manifest sha256:82bce1b345b91fb80730965e265c4fd1b1984c97b2115c9780fc852ab93fea37 done #6 exporting config sha256:7c2121aad78ccde55ac5ac3a4adea997e5fd185f49a3ffed9f398079bfb7cb79 done #6 DONE 0.0s [Pipeline] } [Pipeline] // container [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Container Build with specific build args) [Pipeline] echo ##################### Container Build with specific build args ##################### [Pipeline] container [Pipeline] { [Pipeline] withCredentials Masking supported pattern matches of $DOCKER_REGISTRY_USERNAME or $DOCKER_REGISTRY_PASSWORD [Pipeline] { [Pipeline] sh + echo 'Access registry docker.io for docker.io/heurtemattes/jenkins-build-docker with user: ****' Access registry docker.io for docker.io/heurtemattes/jenkins-build-docker with user: **** + crane auth login docker.io --password-stdin --username **** 2024/06/25 22:24:07 logged in via /home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main/.docker/config.json [Pipeline] } [Pipeline] // withCredentials [Pipeline] sh + IMAGE_ANNOTATIONS= + [[ false == \t\r\u\e ]] + BUILD_IMAGE_NAME=docker.io/heurtemattes/jenkins-build-docker:v1.0.0 + [[ -n docker.io/heurtemattes/jenkins-build-docker:v1.0.0-latest,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-rc1 ]] + BUILD_IMAGE_NAME+=,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-latest,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-rc1 + ALIASES=docker.io/heurtemattes/jenkins-build-docker:v1.0.0-1 + [[ -n docker.io/heurtemattes/jenkins-build-docker:v1.0.0-1 ]] + [[ docker.io/heurtemattes/jenkins-build-docker:v1.0.0-1 != \n\u\l\l ]] + BUILD_IMAGE_NAME+=,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-1 + [[ v1.0.0 != \l\a\t\e\s\t ]] + [[ true == \t\r\u\e ]] + BUILD_IMAGE_NAME+=,docker.io/heurtemattes/jenkins-build-docker:latest + echo 'Building and shipping image to docker.io/heurtemattes/jenkins-build-docker:v1.0.0,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-latest,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-rc1,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-1,docker.io/heurtemattes/jenkins-build-docker:latest' Building and shipping image to docker.io/heurtemattes/jenkins-build-docker:v1.0.0,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-latest,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-rc1,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-1,docker.io/heurtemattes/jenkins-build-docker:latest + echo 'Annotation: ' Annotation: + echo 'Context: ./test/containerBuild/docker' Context: ./test/containerBuild/docker + echo 'Dockerfile: ./test/containerBuild/docker/Dockerfile' Dockerfile: ./test/containerBuild/docker/Dockerfile +++ readlink -f ./test/containerBuild/docker/Dockerfile ++ dirname /home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main/test/containerBuild/docker/Dockerfile + echo 'Dockerfile path: /home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main/test/containerBuild/docker' Dockerfile path: /home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main/test/containerBuild/docker ++ basename ./test/containerBuild/docker/Dockerfile + echo 'filename: Dockerfile' filename: Dockerfile + echo 'buildArgs: --opt build-arg:BASE_IMAGE=debian --opt build-arg:BASE_IMAGE_VERSION=latest' buildArgs: --opt build-arg:BASE_IMAGE=debian --opt build-arg:BASE_IMAGE_VERSION=latest + echo 'push: false' push: false + echo 'latest: true' latest: true + BUILD_ARGS='--opt build-arg:BASE_IMAGE=debian --opt build-arg:BASE_IMAGE_VERSION=latest' + [[ --opt build-arg:BASE_IMAGE=debian --opt build-arg:BASE_IMAGE_VERSION=latest == \n\u\l\l ]] + [[ ! -f ./test/containerBuild/docker/Dockerfile ]] +++ readlink -f ./test/containerBuild/docker/Dockerfile ++ dirname /home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main/test/containerBuild/docker/Dockerfile ++ basename ./test/containerBuild/docker/Dockerfile + buildctl --addr=tcp://buildkitd.foundation-internal-infra-buildkitd:1234 build --progress=plain --frontend=dockerfile.v0 --local context=./test/containerBuild/docker --local dockerfile=/home/jenkins/agent/workspace/jpl-containerBuildTestSuite_main/test/containerBuild/docker --output 'type=image,"name=docker.io/heurtemattes/jenkins-build-docker:v1.0.0,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-latest,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-rc1,docker.io/heurtemattes/jenkins-build-docker:v1.0.0-1,docker.io/heurtemattes/jenkins-build-docker:latest",push=false' --opt filename=Dockerfile --opt build-arg:BASE_IMAGE=debian --opt build-arg:BASE_IMAGE_VERSION=latest #1 [internal] load build definition from Dockerfile #1 transferring dockerfile: 565B done #1 DONE 0.0s #2 [internal] load metadata for docker.io/library/debian:latest #2 DONE 0.0s #3 [internal] load .dockerignore #3 transferring context: 2B done #3 DONE 0.0s #4 [1/2] FROM docker.io/library/debian:latest@sha256:a92ed51e0996d8e9de041ca05ce623d2c491444df6a535a566dabd5cb8336946 #4 resolve docker.io/library/debian:latest@sha256:a92ed51e0996d8e9de041ca05ce623d2c491444df6a535a566dabd5cb8336946 done #4 DONE 0.0s #5 [2/2] RUN apt-get update && apt-get install -y --no-install-recommends eatmydata && eatmydata apt-get install -y --no-install-recommends git && eatmydata apt-get clean && rm -rf /var/lib/apt/lists/* #5 CACHED #6 exporting to image #6 exporting layers done #6 exporting manifest sha256:82bce1b345b91fb80730965e265c4fd1b1984c97b2115c9780fc852ab93fea37 done #6 exporting config sha256:7c2121aad78ccde55ac5ac3a4adea997e5fd185f49a3ffed9f398079bfb7cb79 done #6 DONE 0.0s [Pipeline] } [Pipeline] // container [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // timeout [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // node [Pipeline] } [Pipeline] // podTemplate [Pipeline] End of Pipeline [GitLab Pipeline Status] Notifying branch build status: SUCCESS jpl-containerBuildTestSuite/main #51: This commit looks good. [GitLab Pipeline Status] Notified Finished: SUCCESS