Merge request !511 state:opened action:open changes:{ "authorId" : null, "createdAt" : null, "updatedAt" : null, "updatedById" : null, "title" : null, "description" : null, "state" : null, "milestoneId" : null, "labels" : null, "assignees" : null, "totalTimeSpent" : null, "mergeStatus" : null, "reviewers" : null } Triggered by GitLab Merge Request #511: Olivier Goulet/vite => main Querying the current revision of merge request #511... Current revision of merge request #511 is fafb95e9953723d05c8a40977fe3f0e834f65cd9 Obtained Jenkinsfile from a4808c52d76ead24b751622209393f803cb9a2d7+fafb95e9953723d05c8a40977fe3f0e834f65cd9 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-solstice-assets-mr-511-1-clfsx-prcn2-7gp1j Agent public-solstice-assets-mr-511-1-clfsx-prcn2-7gp1j is provisioned from template public_solstice-assets_MR-511_1-clfsx-prcn2 --- apiVersion: "v1" kind: "Pod" metadata: annotations: buildUrl: "http://jenkins-ui.foundation-internal-webdev.svc.cluster.local/ci/webdev/job/public/job/solstice-assets/job/MR-511/1/" runUrl: "job/public/job/solstice-assets/job/MR-511/1/" labels: jenkins: "slave" jenkins/label-digest: "6b80777c8c73a4d210b0cfcd96d7e53115ed0390" jenkins/label: "public_solstice-assets_MR-511_1-clfsx" name: "public-solstice-assets-mr-511-1-clfsx-prcn2-7gp1j" 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-solstice-assets-mr-511-1-clfsx-prcn2-7gp1j" - name: "JENKINS_NAME" value: "public-solstice-assets-mr-511-1-clfsx-prcn2-7gp1j" - 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-solstice-assets-mr-511-1-clfsx-prcn2-7gp1j in /home/jenkins/agent/workspace/public_solstice-assets_MR-511 [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/eclipsefdn/it/webdev/solstice-assets.git > git init /home/jenkins/agent/workspace/public_solstice-assets_MR-511 # timeout=10 Fetching upstream changes from https://gitlab.eclipse.org/eclipsefdn/it/webdev/solstice-assets.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/eclipsefdn/it/webdev/solstice-assets.git +refs/merge-requests/511/head:refs/remotes/origin/MR-511 +refs/heads/main:refs/remotes/origin/main # timeout=10 Fetching without tags > git config remote.origin.url https://gitlab.eclipse.org/eclipsefdn/it/webdev/solstice-assets.git # timeout=10 > git config --add remote.origin.fetch +refs/merge-requests/511/head:refs/remotes/origin/MR-511 # 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/eclipsefdn/it/webdev/solstice-assets.git # timeout=10 Fetching upstream changes from https://gitlab.eclipse.org/eclipsefdn/it/webdev/solstice-assets.git using GIT_ASKPASS to set credentials GitLab username/token > git fetch --no-tags --force --progress -- https://gitlab.eclipse.org/eclipsefdn/it/webdev/solstice-assets.git +refs/merge-requests/511/head:refs/remotes/origin/MR-511 +refs/heads/main:refs/remotes/origin/main # timeout=10 Merging remotes/origin/main commit a4808c52d76ead24b751622209393f803cb9a2d7 into PR head commit fafb95e9953723d05c8a40977fe3f0e834f65cd9 Merge succeeded, producing fafb95e9953723d05c8a40977fe3f0e834f65cd9 Checking out Revision fafb95e9953723d05c8a40977fe3f0e834f65cd9 (vite) Commit message: "build: add mustache support" First time build. Skipping changelog. [GitLab Pipeline Status] Notifying merge request build status: RUNNING public/solstice-assets/MR-511 #1: Build started... > git config core.sparsecheckout # timeout=10 > git checkout -f fafb95e9953723d05c8a40977fe3f0e834f65cd9 # 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 a4808c52d76ead24b751622209393f803cb9a2d7 # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f fafb95e9953723d05c8a40977fe3f0e834f65cd9 # timeout=10 [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 + [[ 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": "webdev.eclipse.org-solstice-assets", "safeAppName": "webdev-eclipse-org-solstice-assets", "productionBranchName": "main", "productionDomain": "preview-511--webdev-eclipse-org-solstice-assets.eclipsecontent.org", "deployPreviews": true, "previewDomain": "eclipsecontent.org", "previewBranchesRegex": null, "branchDomain": null, "cronExpression": "H H * * H", "debug": false, "container": { "name": "docker.io/eclipsefdn/webdev-eclipse-org-solstice-assets", "version": "mr-511--fafb95e-b1", "dockerfile": null, "buildArgs": null, "annotation": true, "registryCredentialsId": "04264967-fea0-40c2-bf60-09af5aeba60f" }, "deployment": { "locationPath": "/docs/solstice", "nginxHttpPort": 8080, "nginxServerConf": null, "dateTimeUTC": "2024-04-25T15:41:54.545734897", "domain": "preview-511--webdev-eclipse-org-solstice-assets.eclipsecontent.org", "kind": "changeRequestPreview", "containerImageNameWithTag": "docker.io/eclipsefdn/webdev-eclipse-org-solstice-assets:mr-511--fafb95e-b1", "authBasic": false, "authBasicSecretPath": "/etc/nginx/htpasswd", "secretPath": "" }, "build": { "kubeAgentYmlFile": null, "containerImage": "eclipsefdn/hugo-node:h0.110.0-n18.13.0", "destinationFolder": "docs", "script": "build.sh" }, "kubernetes": { "namespace": "foundation-internal-webdev-jamstack-sites", "credentialsId": "ci-bot-okd-c1-token", "apiServerUrl": "https://api.okd-c1.eclipse.org:6443", "deploymentName": "webdev-eclipse-org-solstice-assets--mr-511" }, "scm": { "credentialsId": "gitlab-credentials", "changeId": "511", "branchName": "MR-511", "repoHost": "gitlab.eclipse.org", "repoId": "eclipsefdn/it/webdev/solstice-assets", "botId": "webdev-bot", "commitId": "fafb95e9953723d05c8a40977fe3f0e834f65cd9" } } [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/headers16208541850269196517.tmp 'https://gitlab.eclipse.org/api/v4/projects/eclipsefdn%2Fit%2Fwebdev%2Fsolstice-assets/merge_requests/511/notes?per_page=50' + rm -f /tmp/headers16208541850269196517.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/headers12526395996475504115.tmp -X POST --data @/tmp/bodyPayload10406568090528075921.json https://gitlab.eclipse.org/api/v4/projects/eclipsefdn%2Fit%2Fwebdev%2Fsolstice-assets/merge_requests/511/notes + rm -f /tmp/headers12526395996475504115.tmp /tmp/bodyPayload10406568090528075921.json [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Hugo site) [Pipeline] container [Pipeline] { [Pipeline] sh [Pipeline] echo readTrusted: build.sh [Pipeline] readTrusted Obtained build.sh from a4808c52d76ead24b751622209393f803cb9a2d7+fafb95e9953723d05c8a40977fe3f0e834f65cd9 [Pipeline] echo readTrusted: build.sh OK! [Pipeline] echo Final resourceContent: #!/usr/bin/env bash # =========================================================================== # Copyright (c) 2021 Eclipse Foundation and others. # All rights reserved. This program and the accompanying materials # are made available under the terms of the Eclipse Public License v1.0 # which accompanies this distribution, and is available at # http://www.eclipse.org/legal/epl-v10.html # # Contributors: # Christopher Guindon (Eclipse Foundation) # ========================================================================== set -euo pipefail yarn install --frozen-lockfile; yarn audit; yarn test; yarn run production [Pipeline] writeFile [Pipeline] sh yarn install v1.22.19 [1/4] Resolving packages... [2/4] Fetching packages... [3/4] Linking dependencies... [4/4] Building fresh packages... Done in 28.25s. yarn audit v1.22.19 0 vulnerabilities found - Packages audited: 1224 Done in 1.01s. yarn run v1.22.19 $ NODE_OPTIONS='--no-experimental-fetch' jest --coverage=false /home/jenkins/agent/workspace/public_solstice-assets_MR-511/build/jest/mustache-transformer.js:14 import transformMustache from '../transform-mustache'; ^^^^^^ SyntaxError: Cannot use import statement outside a module at internalCompileFunction (node:internal/vm:74:18) at wrapSafe (node:internal/modules/cjs/loader:1141:20) at Module._compile (node:internal/modules/cjs/loader:1182:27) at Module._extensions..js (node:internal/modules/cjs/loader:1272:10) at Module.load (node:internal/modules/cjs/loader:1081:32) at Module._load (node:internal/modules/cjs/loader:922:12) at Module.require (node:internal/modules/cjs/loader:1105:19) at require (node:internal/modules/cjs/helpers:103:18) at requireOrImportModule (/home/jenkins/agent/workspace/public_solstice-assets_MR-511/node_modules/jest-util/build/requireOrImportModule.js:53:28) at /home/jenkins/agent/workspace/public_solstice-assets_MR-511/node_modules/@jest/transform/build/ScriptTransformer.js:379:73 error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. [Pipeline] } [Pipeline] // container [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Docker image) Stage "Build Docker image" skipped due to earlier failure(s) [Pipeline] getContext [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Deployment and cleanup) Stage "Deployment and cleanup" skipped due to earlier failure(s) [Pipeline] getContext [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 earlier failure(s) [Pipeline] getContext [Pipeline] } Stage "Deploy to kubernetes cluster" skipped due to earlier failure(s) [Pipeline] getContext [Pipeline] } [Pipeline] // stage [Pipeline] // stage [Pipeline] } Failed in branch Cleanup previews [Pipeline] } Failed in branch Deploy to kubernetes cluster [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/headers2368890342031568065.tmp -X PUT --data @/tmp/bodyPayload930048041274783739.json https://gitlab.eclipse.org/api/v4/projects/eclipsefdn%2Fit%2Fwebdev%2Fsolstice-assets/merge_requests/511/notes/2137158 + rm -f /tmp/headers2368890342031568065.tmp /tmp/bodyPayload930048041274783739.json [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 ERROR: script returned exit code 1 [GitLab Pipeline Status] Notifying merge request build status: FAILED public/solstice-assets/MR-511 #1: There was a failure building this commit. Finished: FAILURE