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 99beea5ac2146ccd88d75f1d0c7a535c4d03addb (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 99beea5ac2146ccd88d75f1d0c7a535c4d03addb # timeout=10 > git branch -a -v --no-abbrev # timeout=10 > git checkout -b main 99beea5ac2146ccd88d75f1d0c7a535c4d03addb # timeout=10 Commit message: "Merge pull request 'graph-api: docs re-structure' (#147) from graph-api-docs-restructure into main" > git rev-list --no-walk 4cd4bf11226856b4070b209e87dd5c52e6b00ff8 # 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.73m [success] [webpackbar] Server: Compiled successfully in 6.85m [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-1 tag_description=This is tag version 12.0.0-1 release_name=release-12.0.0-1 release_description=This is the release version 12.0.0-1 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-1, SHA:99beea5ac2146ccd88d75f1d0c7a535c4d03addb Created Release : Name:release-12.0.0-1, ID:27699 Uploaded attachment on release 27699 [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-9MfIk5aSQPsb/agent.7047 SSH_AGENT_PID=7049 Running ssh-add (command line suppressed) Identity added: /var/lib/jenkins/workspace/openaire-graph-docs_prod_CD@tmp/private_key_7242967671708020240.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-1 % 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 8921 0 --:--:-- --:--:-- --:--:-- 8928 Downloading from https://code-repo.d4science.org/D-Net/openaire-graph-docs/releases/download/12.0.0-1/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 0 19.6M 0 73040 0 0 211k 0 0:01:35 --:--:-- 0:01:35 211k 5 19.6M 5 1007k 0 0 749k 0 0:00:26 0:00:01 0:00:25 749k 22 19.6M 22 4447k 0 0 1897k 0 0:00:10 0:00:02 0:00:08 1896k 84 19.6M 84 16.6M 0 0 5118k 0 0:00:03 0:00:03 --:--:-- 5117k 100 19.6M 100 19.6M 0 0 5814k 0 0:00:03 0:00:03 --:--:-- 5813k Performing a sanity check ./index.html [Pipeline] } $ ssh-agent -k unset SSH_AUTH_SOCK; unset SSH_AGENT_PID; echo Agent pid 7049 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