Started by user Alexios Symeonidis 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 45e225441377505da08ba211a0b881f7718d60fe (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 45e225441377505da08ba211a0b881f7718d60fe # timeout=10 > git branch -a -v --no-abbrev # timeout=10 > git checkout -b main 45e225441377505da08ba211a0b881f7718d60fe # timeout=10 Commit message: "Merge pull request 'graph-api-docs-restructure' (#150) from graph-api-docs-restructure into main" > git rev-list --no-walk a439dc73db7a8bfdc931418c9d7b114d24f0618b # 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 54s 205 packages are looking for funding run `npm fund` for details 86 vulnerabilities (5 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.38m [success] [webpackbar] Server: Compiled successfully in 6.53m [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 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" 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 > 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-3 tag_description=This is tag version 12.0.0-3 release_name=release-12.0.0-3 release_description=This is the release version 12.0.0-3 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 a7db8eb2a8241a50edf46261fa89e34d5e8c7fa2 Created tag : Name:12.0.0-3, SHA:45e225441377505da08ba211a0b881f7718d60fe Created Release : Name:release-12.0.0-3, ID:27761 Uploaded attachment on release 27761 [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-XwsW0DUznyQU/agent.12799 SSH_AGENT_PID=12801 Running ssh-add (command line suppressed) Identity added: /var/lib/jenkins/workspace/openaire-graph-docs_prod_CD@tmp/private_key_1071423105129887521.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-3 % 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 1625 100 1625 0 0 9176 0 --:--:-- --:--:-- --:--:-- 9180 Downloading from https://code-repo.d4science.org/D-Net/openaire-graph-docs/releases/download/12.0.0-3/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.6M 1 255k 0 0 355k 0 0:00:56 --:--:-- 0:00:56 355k 7 19.6M 7 1503k 0 0 874k 0 0:00:23 0:00:01 0:00:22 874k 28 19.6M 28 5695k 0 0 2092k 0 0:00:09 0:00:02 0:00:07 2092k 94 19.6M 94 18.6M 0 0 5162k 0 0:00:03 0:00:03 --:--:-- 5161k 100 19.6M 100 19.6M 0 0 5388k 0 0:00:03 0:00:03 --:--:-- 5388k Performing a sanity check ./index.html [Pipeline] } $ ssh-agent -k unset SSH_AUTH_SOCK; unset SSH_AGENT_PID; echo Agent pid 12801 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