Branch indexing Querying the current revision of merge request #151... Current revision of merge request #151 is e242c223027074741980fbbbbfeda9aea261a2fc Obtained Jenkinsfile from 6335f9d01e657d6bf6f3ea9e9cc7d10407431d2f+e242c223027074741980fbbbbfeda9aea261a2fc Loading library releng-pipeline@refs/tags/v0.11.0 Library releng-pipeline@refs/tags/v0.11.0 is cached. Copying from home. [Pipeline] Start of Pipeline [Pipeline] libraryResource [Pipeline] echo Final resourceContent: apiVersion: v1 kind: Pod spec: containers: - name: kubectl image: eclipsefdn/kubectl:okd-c1 imagePullPolicy: Always command: [ "sleep" ] args: [ "infinity" ] resources: limits: cpu: 500m memory: 256Mi - name: containertools image: eclipsefdn/containertools:alpine-latest imagePullPolicy: Always command: [ "sleep" ] args: [ "infinity" ] resources: limits: cpu: 500m memory: 256Mi - name: build image: eclipsefdn/hugo-node:h0.110.0-n18.13.0 imagePullPolicy: Always command: [ "sleep" ] args: [ "infinity" ] resources: limits: cpu: 2 memory: 2Gi - name: jnlp imagePullPolicy: Always resources: limits: cpu: 1 memory: 512Mi [Pipeline] podTemplate [Pipeline] { [Pipeline] node Created Pod: kubernetes foundation-internal-webdev/public-eclipse-plato-mr-151-19-zgh5s-gq635-v22ct Agent public-eclipse-plato-mr-151-19-zgh5s-gq635-v22ct is provisioned from template public_eclipse-plato_MR-151_19-zgh5s-gq635 --- apiVersion: "v1" kind: "Pod" metadata: annotations: buildUrl: "http://jenkins-ui.foundation-internal-webdev.svc.cluster.local/ci/webdev/job/public/job/eclipse-plato/job/MR-151/19/" runUrl: "job/public/job/eclipse-plato/job/MR-151/19/" labels: jenkins: "slave" jenkins/label-digest: "56ece59dc4516f041648cb67aff46bf53f185f94" jenkins/label: "public_eclipse-plato_MR-151_19-zgh5s" name: "public-eclipse-plato-mr-151-19-zgh5s-gq635-v22ct" namespace: "foundation-internal-webdev" spec: containers: - args: - "infinity" command: - "sleep" image: "eclipsefdn/kubectl:okd-c1" imagePullPolicy: "Always" name: "kubectl" resources: limits: cpu: "500m" memory: "256Mi" volumeMounts: - mountPath: "/home/jenkins/agent" name: "workspace-volume" readOnly: false - 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 - args: - "infinity" command: - "sleep" image: "eclipsefdn/hugo-node:h0.110.0-n18.13.0" imagePullPolicy: "Always" name: "build" resources: limits: cpu: "2" memory: "2Gi" volumeMounts: - mountPath: "/home/jenkins/agent" name: "workspace-volume" readOnly: false - env: - name: "JENKINS_SECRET" value: "********" - name: "JENKINS_TUNNEL" value: "jenkins-discovery.foundation-internal-webdev.svc.cluster.local:50000" - name: "JENKINS_AGENT_NAME" value: "public-eclipse-plato-mr-151-19-zgh5s-gq635-v22ct" - name: "JENKINS_NAME" value: "public-eclipse-plato-mr-151-19-zgh5s-gq635-v22ct" - name: "JENKINS_AGENT_WORKDIR" value: "/home/jenkins/agent" - name: "JENKINS_URL" value: "http://jenkins-ui.foundation-internal-webdev.svc.cluster.local/ci/webdev/" image: "docker.io/eclipsecbi/jiro-agent-basic:remoting-3160.vd76b_9ddd10cc" imagePullPolicy: "Always" name: "jnlp" resources: limits: cpu: "1" memory: "512Mi" 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 public-eclipse-plato-mr-151-19-zgh5s-gq635-v22ct in /home/jenkins/agent/workspace/public_eclipse-plato_MR-151 [Pipeline] { [Pipeline] stage [Pipeline] { (Declarative: Checkout SCM) [Pipeline] checkout The recommended git tool is: NONE using credential gitlab-credentials Cloning the remote Git repository Cloning with configured refspecs honoured and without tags Cloning repository https://gitlab.eclipse.org/eclipse/plato/www.git > git init /home/jenkins/agent/workspace/public_eclipse-plato_MR-151 # timeout=10 Fetching upstream changes from https://gitlab.eclipse.org/eclipse/plato/www.git > git --version # timeout=10 > git --version # 'git version 2.20.1' using GIT_ASKPASS to set credentials GitLab username/token > git fetch --no-tags --force --progress -- https://gitlab.eclipse.org/eclipse/plato/www.git +refs/merge-requests/151/head:refs/remotes/origin/MR-151 +refs/heads/main:refs/remotes/origin/main # timeout=10 Fetching without tags > git config remote.origin.url https://gitlab.eclipse.org/eclipse/plato/www.git # timeout=10 > git config --add remote.origin.fetch +refs/merge-requests/151/head:refs/remotes/origin/MR-151 # timeout=10 > git config --add remote.origin.fetch +refs/heads/main:refs/remotes/origin/main # timeout=10 > git config remote.origin.url https://gitlab.eclipse.org/eclipse/plato/www.git # timeout=10 Fetching upstream changes from https://gitlab.eclipse.org/eclipse/plato/www.git using GIT_ASKPASS to set credentials GitLab username/token > git fetch --no-tags --force --progress -- https://gitlab.eclipse.org/eclipse/plato/www.git +refs/merge-requests/151/head:refs/remotes/origin/MR-151 +refs/heads/main:refs/remotes/origin/main # timeout=10 Merging remotes/origin/main commit 6335f9d01e657d6bf6f3ea9e9cc7d10407431d2f into PR head commit e242c223027074741980fbbbbfeda9aea261a2fc Merge succeeded, producing 01522e1a9d6f8e6261f73b53d5c74812dc539056 Checking out Revision 01522e1a9d6f8e6261f73b53d5c74812dc539056 (testimonials) > git config core.sparsecheckout # timeout=10 > git checkout -f e242c223027074741980fbbbbfeda9aea261a2fc # timeout=10 > git remote # timeout=10 > git config --get remote.origin.url # timeout=10 using GIT_ASKPASS to set credentials GitLab username/token > git merge 6335f9d01e657d6bf6f3ea9e9cc7d10407431d2f # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 01522e1a9d6f8e6261f73b53d5c74812dc539056 # timeout=10 Commit message: "Merge commit '6335f9d01e657d6bf6f3ea9e9cc7d10407431d2f' into HEAD" First time build. Skipping changelog. [GitLab Pipeline Status] Notifying merge request build status: RUNNING public/eclipse-plato/MR-151 #19: Build started... [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] timeout Timeout set to expire in 1 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Compute build variables) [Pipeline] script [Pipeline] { [Pipeline] sh > git rev-list --no-walk 7a066acbda98de51bfd0f28831ee006c04fe8988 # timeout=10 + [[ false == \t\r\u\e ]] + echo 'credentialsId: gitlab-credentials' credentialsId: gitlab-credentials + exit 0 [Pipeline] withCredentials Masking supported pattern matches of $BOT_ID or $__UNUSED [Pipeline] { [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo Deployment config: [Pipeline] echo { "appName": "ospo-alliance.org", "safeAppName": "ospo-alliance-org", "productionBranchName": "main", "productionDomain": "preview-151--ospo-alliance-org.eclipsecontent.org", "deployPreviews": true, "previewDomain": "eclipsecontent.org", "previewBranchesRegex": null, "branchDomain": null, "cronExpression": "H H * * H", "debug": false, "container": { "name": "docker.io/eclipsefdn/ospo-alliance-org", "version": "mr-151--01522e1-b19", "dockerfile": null, "buildArgs": null, "annotation": true, "registryCredentialsId": "04264967-fea0-40c2-bf60-09af5aeba60f" }, "deployment": { "locationPath": "/", "nginxHttpPort": 8080, "nginxServerConf": null, "dateTimeUTC": "2024-04-11T22:20:58.131556073", "domain": "preview-151--ospo-alliance-org.eclipsecontent.org", "kind": "changeRequestPreview", "containerImageNameWithTag": "docker.io/eclipsefdn/ospo-alliance-org:mr-151--01522e1-b19", "authBasic": false, "authBasicSecretPath": "/etc/nginx/htpasswd", "secretPath": "" }, "build": { "kubeAgentYmlFile": null, "containerImage": "eclipsefdn/hugo-node:h0.110.0-n18.13.0", "destinationFolder": "./public/", "script": null }, "kubernetes": { "namespace": "foundation-internal-webdev-jamstack-sites", "credentialsId": "ci-bot-okd-c1-token", "apiServerUrl": "https://api.okd-c1.eclipse.org:6443", "deploymentName": "ospo-alliance-org--mr-151" }, "scm": { "credentialsId": "gitlab-credentials", "changeId": "151", "branchName": "MR-151", "repoHost": "gitlab.eclipse.org", "repoId": "eclipse/plato/www", "botId": "webdev-bot", "commitId": "01522e1a9d6f8e6261f73b53d5c74812dc539056" } } [Pipeline] withCredentials Masking supported pattern matches of $__UNUSED or $GITLAB_MR_COMMENT_TOKEN [Pipeline] { [Pipeline] writeFile [Pipeline] } [Pipeline] // withCredentials [Pipeline] sh + curl -fsSL -H@/tmp/headers15963248443237899592.tmp 'https://gitlab.eclipse.org/api/v4/projects/eclipse%2Fplato%2Fwww/merge_requests/151/notes?per_page=50' + rm -f /tmp/headers15963248443237899592.tmp [Pipeline] withCredentials Masking supported pattern matches of $__UNUSED or $GITLAB_MR_COMMENT_TOKEN [Pipeline] { [Pipeline] writeFile [Pipeline] } [Pipeline] // withCredentials [Pipeline] writeFile [Pipeline] sh + curl -fsSL -H@/tmp/headers7590842323807709534.tmp -X POST --data @/tmp/bodyPayload7185102740081932538.json https://gitlab.eclipse.org/api/v4/projects/eclipse%2Fplato%2Fwww/merge_requests/151/notes + rm -f /tmp/headers7590842323807709534.tmp /tmp/bodyPayload7185102740081932538.json [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Hugo site) [Pipeline] container [Pipeline] { [Pipeline] sh [Pipeline] libraryResource [Pipeline] echo Final resourceContent: #!/usr/bin/env bash set -euo pipefail if [[ -e yarn.lock ]]; then yarn install --frozen-lockfile; elif [[ -e package-lock.json ]]; then npm --unsafe-perm ci; fi; hugo --gc --minify --destination "${1}" --baseURL "${2}" [Pipeline] writeFile [Pipeline] sh go: finding github.com/StefMa/hugo-fresh v1.0.0 go: finding github.com/jgthms/bulma v0.0.0-20220508134905-3e00a8e6d0d0 hugo: downloading modules … hugo: collected modules in 13295 ms Start building sites … hugo v0.110.0-e32a493b7826d02763c3b79623952e625402b168+extended linux/amd64 BuildDate=2023-01-17T12:16:09Z VendorInfo=gohugoio | EN -------------------+------ Pages | 69 Paginator pages | 0 Non-page files | 33 Static files | 153 Processed images | 0 Aliases | 0 Sitemaps | 1 Cleaned | 0 Total in 13883 ms [Pipeline] } [Pipeline] // container [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Docker image) [Pipeline] withEnv [Pipeline] { [Pipeline] container [Pipeline] { [Pipeline] script [Pipeline] { [Pipeline] libraryResource [Pipeline] echo Final resourceContent: server { listen 8080; server_name localhost; port_in_redirect off; #access_log /var/log/nginx/host.access.log main; location / { root /usr/share/nginx/html; index index.html index.htm; } error_page 404 /404.html; # redirect server error pages to the static page /50x.html # error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; } } [Pipeline] writeFile [Pipeline] libraryResource [Pipeline] echo Final resourceContent: FROM eclipsefdn/nginx:stable-alpine COPY MR-151-nginx-default.conf /etc/nginx/conf.d/default.conf RUN mkdir -p "/usr/share/nginx/html//" \ && echo "ok" > "/usr/share/nginx/html///_livenessProbe" COPY ./public/ "/usr/share/nginx/html//" [Pipeline] writeFile [Pipeline] withCredentials Masking supported pattern matches of $DOCKER_REGISTRY_USERNAME or $DOCKER_REGISTRY_PASSWORD [Pipeline] { [Pipeline] sh Registry login to docker.io with user: **** 2024/04/11 22:21:16 logged in via /home/jenkins/agent/.docker/config.json [Pipeline] } [Pipeline] // withCredentials [Pipeline] sh Building and shipping image to docker.io/eclipsefdn/ospo-alliance-org:mr-151--01522e1-b19 Annotation: ,annotation.org.opencontainers.image.created=2024-04-11T22:21:17Z,annotation.org.opencontainers.image.ref.name=docker.io/eclipsefdn/ospo-alliance-org:mr-151--01522e1-b19,annotation.org.opencontainers.image.revision=01522e1a9d6f8e6261f73b53d5c74812dc539056,annotation.org.opencontainers.image.source=https://gitlab.eclipse.org/eclipse/plato/www.git,annotation.org.opencontainers.image.url=https://gitlab.eclipse.org/eclipse/plato/www.git,annotation.org.opencontainers.image.version=mr-151--01522e1-b19 Context: /home/jenkins/agent/workspace/public_eclipse-plato_MR-151 Dockerfile: MR-151.Dockerfile Dockerfile path: /home/jenkins/agent/workspace/public_eclipse-plato_MR-151 filename: MR-151.Dockerfile buildArgs: null push: true latest: false #1 [internal] load build definition from MR-151.Dockerfile #1 transferring dockerfile: 353B done #1 DONE 0.0s #2 [auth] eclipsefdn/nginx:pull token for registry-1.docker.io #2 DONE 0.0s #3 [internal] load metadata for docker.io/eclipsefdn/nginx:stable-alpine #3 DONE 0.3s #4 [internal] load .dockerignore #4 transferring context: 2B done #4 DONE 0.0s #5 [1/4] FROM docker.io/eclipsefdn/nginx:stable-alpine@sha256:19f2486be9f3b8d910217900d9097bc8956f7eb2b2f182268d8003a1c0a17047 #5 resolve docker.io/eclipsefdn/nginx:stable-alpine@sha256:19f2486be9f3b8d910217900d9097bc8956f7eb2b2f182268d8003a1c0a17047 done #5 CACHED #6 [internal] load build context #6 transferring context: 102.79MB 3.9s done #6 DONE 3.9s #7 [2/4] COPY MR-151-nginx-default.conf /etc/nginx/conf.d/default.conf #7 DONE 0.7s #8 [3/4] RUN mkdir -p "/usr/share/nginx/html//" && echo "ok" > "/usr/share/nginx/html///_livenessProbe" #8 DONE 0.8s #9 [4/4] COPY ./public/ /usr/share/nginx/html// #9 DONE 0.9s #10 exporting to image #10 exporting layers #10 exporting layers 7.9s done #10 exporting manifest sha256:5174ce37ed4e8e83661b5e8aa175b703023e150212da58a536f9106b785e12cb done #10 exporting config sha256:4ec3e4f029becc001b27d6c1a9668fa535a230bf96a50450ba401223c3d9f74e done #10 pushing layers #10 ... #11 [auth] eclipsefdn/ospo-alliance-org:pull,push token for registry-1.docker.io #11 DONE 0.0s #10 exporting to image #10 pushing layers 3.5s done #10 pushing manifest for docker.io/eclipsefdn/ospo-alliance-org:mr-151--01522e1-b19@sha256:5174ce37ed4e8e83661b5e8aa175b703023e150212da58a536f9106b785e12cb #10 pushing manifest for docker.io/eclipsefdn/ospo-alliance-org:mr-151--01522e1-b19@sha256:5174ce37ed4e8e83661b5e8aa175b703023e150212da58a536f9106b785e12cb 0.3s done #10 DONE 11.6s [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // container [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Deployment and cleanup) [Pipeline] parallel [Pipeline] { (Branch: Cleanup previews) [Pipeline] { (Branch: Deploy to kubernetes cluster) [Pipeline] stage [Pipeline] { (Cleanup previews) [Pipeline] stage [Pipeline] { (Deploy to kubernetes cluster) Stage "Cleanup previews" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] container [Pipeline] { [Pipeline] libraryResource [Pipeline] echo Final resourceContent: { "version": 1, "dependencies": [ { "source": { "git": { "remote": "https://gitlab.eclipse.org/eclipsefdn/it/releng/kube-deploy.git", "subdir": "" } }, "version": "main" } ], "legacyImports": false } [Pipeline] writeFile [Pipeline] libraryResource [Pipeline] echo Final resourceContent: { "version": 1, "dependencies": [ { "source": { "git": { "remote": "https://gitlab.eclipse.org/eclipsefdn/it/releng/kube-deploy.git", "subdir": "" } }, "version": "a2a0dc300f36e7b62f24487a1a1cb9e7c8e653a2", "sum": "3aeTpmX3t6bDqDb3UZZsR4WVjrfCmQfrfKlnXwVCTno=" } ], "legacyImports": false } [Pipeline] writeFile [Pipeline] libraryResource [Pipeline] echo Final resourceContent: local jamstack = import "vendor/gitlab.eclipse.org/eclipsefdn/it/releng/kube-deploy/jamstack/jamstack.libsonnet"; local metadata = import "vendor/gitlab.eclipse.org/eclipsefdn/it/releng/kube-deploy/utils/metadata.libsonnet"; // local config = { // "appName": "lts.eclipse.org", // "safeAppName": "lts-eclipse-org", // "productionBranchName": "main", // "productionDomain": "lts.eclipse.org", // "deployPreviews": true, // "previewDomain": "eclipsecontent.org", // "previewBranchesRegex": null, // "branchDomain": null, // "debug": false, // "container": { // "name": "docker.io/eclipsefdn/lts-eclipse-org", // "version": "mr-24--2208996-b85", // "dockerfile": null, // "registryCredentialsId": "04264967-fea0-40c2-bf60-09af5aeba60f" // }, // "deployment": { // "locationPath": "/", // "nginxHttpPort": 8080, // "nginxServerConf": null, // "dateTimeUTC": "2022-06-18T20:09:16.558296572", // "domain": "preview-24--lts-eclipse-org.eclipsecontent.org", // "kind": "changeRequestPreview", // }, // "build": { // "kubeAgentYmlFile": null, // "containerImage": "eclipsefdn/hugo-node:latest", // "script": null, // "destinationFolder": "./public/" // }, // "kubernetes": { // "namespace": "foundation-internal-webdev-jamstack-sites", // "credentialsId": "ci-bot-okd-c1-token", // "apiServerUrl": "https://api.okd-c1.eclipse.org:6443", // "deploymentName": "lts-eclipse-org--mr-24" // }, // "scm": { // "credentialsId": "gitlab-api-token3", // "changeId": "24", // "branchName": "MR-24", // "repoHost": "gitlab.eclipse.org", // "repoId": "eclipsefdn/it/websites/lts.eclipse.org", // "botId": "webdev-bot", // "commitId": "2208996b450a0d45ccb5d5f270c0bb4192218ec8" // } // }; function(config) { jamstack:: jamstack.newDeployment( metadata.newMetadata( config.safeAppName, config.kubernetes.deploymentName, config.kubernetes.namespace, config.scm.branchName, config.deployment.kind, config.scm.botId, config.deployment.dateTimeUTC, config.scm.repoHost, config.scm.repoId, config.scm.changeId ), config.deployment.containerImageNameWithTag, config.deployment.domain, config.deployment.nginxHttpPort, config.deployment.locationPath, config.deployment.locationPath, if (config.deployment.authBasic) then config.deployment.authBasicSecretPath else config.deployment.secretPath, ), apiVersion: "v1", kind: "List", items: [ $.jamstack.deployment, $.jamstack.service, $.jamstack.route, ] } [Pipeline] writeFile [Pipeline] writeFile [Pipeline] withKubeConfig [Pipeline] { [Pipeline] sh Initialized empty Git repository in /home/jenkins/agent/workspace/public_eclipse-plato_MR-151/vendor/.tmp/e574055fe3c0c19d0bbf9d1ced6ea85e2236285198/.git/ From https://gitlab.eclipse.org/eclipsefdn/it/releng/kube-deploy * branch a2a0dc300f36e7b62f24487a1a1cb9e7c8e653a2 -> FETCH_HEAD HEAD is now at a2a0dc3 Merge branch 'feat/secret_path' into 'main' deployment.apps/ospo-alliance-org--mr-151 configured service/ospo-alliance-org--mr-151 configured route.route.openshift.io/ospo-alliance-org--mr-151 configured deployment.apps/ospo-alliance-org--mr-151 restarted Waiting for deployment "ospo-alliance-org--mr-151" rollout to finish: 1 old replicas are pending termination... Waiting for deployment "ospo-alliance-org--mr-151" rollout to finish: 1 old replicas are pending termination... deployment "ospo-alliance-org--mr-151" successfully rolled out [Pipeline] } [kubernetes-cli] kubectl configuration cleaned up [Pipeline] // withKubeConfig [Pipeline] } [Pipeline] // container [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // parallel [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Declarative: Post Actions) [Pipeline] script [Pipeline] { [Pipeline] withCredentials Masking supported pattern matches of $__UNUSED or $GITLAB_MR_COMMENT_TOKEN [Pipeline] { [Pipeline] writeFile [Pipeline] } [Pipeline] // withCredentials [Pipeline] writeFile [Pipeline] sh + curl -fsSL -H@/tmp/headers17438482443914361627.tmp -X PUT --data @/tmp/bodyPayload3844847421984531338.json https://gitlab.eclipse.org/api/v4/projects/eclipse%2Fplato%2Fwww/merge_requests/151/notes/2085265 + rm -f /tmp/headers17438482443914361627.tmp /tmp/bodyPayload3844847421984531338.json [Pipeline] echo You can browse the site at https://preview-151--ospo-alliance-org.eclipsecontent.org/ [Pipeline] } [Pipeline] // script [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 merge request build status: SUCCESS public/eclipse-plato/MR-151 #19: This commit looks good. Finished: SUCCESS