Started by user Claudio Atzori Obtained PROD/Jenkinsfile from git gitea@code-repo.d4science.org:D-Net/openaire-graph-docs-deployment.git [Pipeline] Start of Pipeline [Pipeline] node Running on ip-90-147-189-52.pa1.garrservices.it in /var/lib/jenkins/workspace/openaire-graph-docs_prod_CD [Pipeline] { [Pipeline] stage [Pipeline] { (Declarative: Checkout SCM) [Pipeline] checkout Selected Git installation does not exist. Using Default The recommended git tool is: NONE using credential dnet-hadoop-deployment-credentials Cloning the remote Git repository Cloning repository gitea@code-repo.d4science.org:D-Net/openaire-graph-docs-deployment.git > git init /var/lib/jenkins/workspace/openaire-graph-docs_prod_CD # timeout=10 Fetching upstream changes from gitea@code-repo.d4science.org:D-Net/openaire-graph-docs-deployment.git > git --version # timeout=10 > git --version # 'git version 2.17.1' using GIT_SSH to set credentials User for CI/CD Verifying host key using known hosts file > git fetch --tags --progress -- gitea@code-repo.d4science.org:D-Net/openaire-graph-docs-deployment.git +refs/heads/*:refs/remotes/origin/* # timeout=10 Avoid second fetch Checking out Revision 6ba042dad27496a2d302f189e9d8a35c7f198bcd (refs/remotes/origin/main) Commit message: "using 10.19.65.55 instead of graph.openaire.eu" > git config remote.origin.url gitea@code-repo.d4science.org:D-Net/openaire-graph-docs-deployment.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 > git rev-parse refs/remotes/origin/main^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 6ba042dad27496a2d302f189e9d8a35c7f198bcd # timeout=10 > git rev-list --no-walk 6ba042dad27496a2d302f189e9d8a35c7f198bcd # timeout=10 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Checkout documentation repo) [Pipeline] dir Running in /var/lib/jenkins/workspace/openaire-graph-docs_prod_CD/openaire-graph-docs [Pipeline] { [Pipeline] git The recommended git tool is: NONE No credentials specified Cloning the remote Git repository Cloning repository https://code-repo.d4science.org/D-Net/openaire-graph-docs.git > git init /var/lib/jenkins/workspace/openaire-graph-docs_prod_CD/openaire-graph-docs # timeout=10 Fetching upstream changes from https://code-repo.d4science.org/D-Net/openaire-graph-docs.git > git --version # timeout=10 > git --version # 'git version 2.17.1' > git fetch --tags --progress -- https://code-repo.d4science.org/D-Net/openaire-graph-docs.git +refs/heads/*:refs/remotes/origin/* # timeout=10 Avoid second fetch Checking out Revision 4cd4bf11226856b4070b209e87dd5c52e6b00ff8 (refs/remotes/origin/main) > git config remote.origin.url https://code-repo.d4science.org/D-Net/openaire-graph-docs.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 > git rev-parse refs/remotes/origin/main^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 4cd4bf11226856b4070b209e87dd5c52e6b00ff8 # timeout=10 > git branch -a -v --no-abbrev # timeout=10 Commit message: "Merge pull request 'v12.0.0' (#146) from v12.0.0 into main" > git checkout -b main 4cd4bf11226856b4070b209e87dd5c52e6b00ff8 # timeout=10 > git rev-list --no-walk d2d22faed7373a6ba1d8c713655b175aac9fc2d6 # timeout=10 [Pipeline] } [Pipeline] // dir [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Install npm packages) [Pipeline] dir Running in /var/lib/jenkins/workspace/openaire-graph-docs_prod_CD/openaire-graph-docs [Pipeline] { [Pipeline] sh + npm install npm WARN deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility added 1103 packages, and audited 1104 packages in 1m 205 packages are looking for funding run `npm fund` for details 93 vulnerabilities (12 low, 25 moderate, 51 high, 5 critical) To address issues that do not require attention, run: npm audit fix To address all issues (including breaking changes), run: npm audit fix --force Run `npm audit` for details. [Pipeline] } [Pipeline] // dir [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build documenation website) [Pipeline] dir Running in /var/lib/jenkins/workspace/openaire-graph-docs_prod_CD/openaire-graph-docs [Pipeline] { [Pipeline] script [Pipeline] { [Pipeline] echo .env file: [Pipeline] echo URL=https://graph.openaire.eu BASE_URL=/docs [Pipeline] writeFile [Pipeline] } [Pipeline] // script [Pipeline] sh + npm run build > openaire-docs@0.0.0 build > docusaurus build ENV VARIABLES: { URL: 'https://graph.openaire.eu', BASE_URL: '/docs' } [INFO] [en] Creating an optimized production build... ENV VARIABLES: { URL: 'https://graph.openaire.eu', BASE_URL: '/docs' } Browserslist: caniuse-lite is outdated. Please run: npx update-browserslist-db@latest Why you should do it regularly: https://github.com/browserslist/update-db#readme [info] [webpackbar] Compiling Client [info] [webpackbar] Compiling Server Browserslist: caniuse-lite is outdated. Please run: npx update-browserslist-db@latest Why you should do it regularly: https://github.com/browserslist/update-db#readme [success] [webpackbar] Client: Compiled successfully in 4.53m [success] [webpackbar] Server: Compiled successfully in 6.57m [SUCCESS] Generated static files in "build". [INFO] Use `npm run serve` command to test your build locally. [Pipeline] } [Pipeline] // dir [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Checkout Gitea-auto-release repo) [Pipeline] dir Running in /var/lib/jenkins/workspace/openaire-graph-docs_prod_CD/Gitea-auto-release [Pipeline] { [Pipeline] git The recommended git tool is: NONE No credentials specified Cloning the remote Git repository Cloning repository https://code-repo.d4science.org/D-Net/Gitea-auto-release.git > git init /var/lib/jenkins/workspace/openaire-graph-docs_prod_CD/Gitea-auto-release # timeout=10 Fetching upstream changes from https://code-repo.d4science.org/D-Net/Gitea-auto-release.git > git --version # timeout=10 > git --version # 'git version 2.17.1' > git fetch --tags --progress -- https://code-repo.d4science.org/D-Net/Gitea-auto-release.git +refs/heads/*:refs/remotes/origin/* # timeout=10 Avoid second fetch Checking out Revision 3b46f0bc626a13a1f304512413f58cbf989e7303 (refs/remotes/origin/master) Commit message: "Merge pull request 'Make paths in the archive relative to the attachment_path directory' (#2) from michal.politowski/Gitea-auto-release:relative_paths_in_archive into master" > git config remote.origin.url https://code-repo.d4science.org/D-Net/Gitea-auto-release.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 3b46f0bc626a13a1f304512413f58cbf989e7303 # timeout=10 > git branch -a -v --no-abbrev # timeout=10 > git checkout -b master 3b46f0bc626a13a1f304512413f58cbf989e7303 # timeout=10 > git rev-list --no-walk 3b46f0bc626a13a1f304512413f58cbf989e7303 # timeout=10 [Pipeline] } [Pipeline] // dir [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Prepare release) [Pipeline] dir Running in /var/lib/jenkins/workspace/openaire-graph-docs_prod_CD/Gitea-auto-release [Pipeline] { [Pipeline] script [Pipeline] { [Pipeline] readFile [Pipeline] echo all.properties file: [Pipeline] echo attachment_name=release gitea_repo=https://code-repo.d4science.org/api/v1 tag_name=12.0.0 tag_description=This is tag version 12.0.0 release_name=release-12.0.0 release_description=This is the release version 12.0.0 repo_name=openaire-graph-docs repo_user=D-Net target=main build_path=/var/lib/jenkins/workspace/openaire-graph-docs_prod_CD/openaire-graph-docs/build [Pipeline] writeFile [Pipeline] } [Pipeline] // script [Pipeline] sh + pip install -r requirements.txt Defaulting to user installation because normal site-packages is not writeable Requirement already satisfied: urllib3==1.26.13 in /var/lib/jenkins/.local/lib/python3.6/site-packages (from -r requirements.txt (line 1)) (1.26.13) [Pipeline] sh + python3 gitea_release.py --property all.properties --token 4f84997daff7064b935b8acdf0d36a538579f87e Created tag : Name:12.0.0, SHA:4cd4bf11226856b4070b209e87dd5c52e6b00ff8 Created Release : Name:release-12.0.0, ID:27682 Uploaded attachment on release 27682 [Pipeline] } [Pipeline] // dir [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Deploy) [Pipeline] sshagent [ssh-agent] Using credentials git.dnet (User for CI/CD) [ssh-agent] Looking for ssh-agent implementation... [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) $ ssh-agent SSH_AUTH_SOCK=/tmp/ssh-IUGy80wRr750/agent.20354 SSH_AGENT_PID=20356 Running ssh-add (command line suppressed) Identity added: /var/lib/jenkins/workspace/openaire-graph-docs_prod_CD@tmp/private_key_9030885879151146804.key (git.dnet) [ssh-agent] Started. [Pipeline] { [Pipeline] sh + ssh -A -o StrictHostKeyChecking=no -o ProxyJump=git.dnet@iis-cdh5-test-gw.ocean.icm.edu.pl -o StrictHostKeyChecking=no git.dnet@10.19.65.55 12.0.0 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 1607 100 1607 0 0 8234 0 --:--:-- --:--:-- --:--:-- 8241 Downloading from https://code-repo.d4science.org/D-Net/openaire-graph-docs/releases/download/12.0.0/release.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 1 19.5M 1 255k 0 0 400k 0 0:00:50 --:--:-- 0:00:50 400k 9 19.5M 9 1903k 0 0 1149k 0 0:00:17 0:00:01 0:00:16 1148k 42 19.5M 42 8495k 0 0 3219k 0 0:00:06 0:00:02 0:00:04 3219k 100 19.5M 100 19.5M 0 0 6209k 0 0:00:03 0:00:03 --:--:-- 6210k Performing a sanity check ./index.html [Pipeline] } $ ssh-agent -k unset SSH_AUTH_SOCK; unset SSH_AGENT_PID; echo Agent pid 20356 killed; [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Declarative: Post Actions) [Pipeline] cleanWs [WS-CLEANUP] Deleting project workspace... [WS-CLEANUP] Deferred wipeout is used... [WS-CLEANUP] done [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline Finished: SUCCESS