[2022-10-12T14:40:13.610Z] Démarré par l'utilisateur Miguel Moquillon [2022-10-12T14:40:13.610Z] Running as userbuild [2022-10-12T14:40:14.213Z] Obtained src/releases/docker-build/Jenkinsfile from git https://github.com/Silverpeas/Jenkins-Pipelines.git [2022-10-12T14:40:14.475Z] [Pipeline] Start of Pipeline [2022-10-12T14:40:14.736Z] [Pipeline] node [2022-10-12T14:40:14.740Z] Running on Jenkins in /var/lib/jenkins/workspace/Silverpeas Projects Build Image [2022-10-12T14:40:14.742Z] [Pipeline] { [2022-10-12T14:40:14.758Z] [Pipeline] stage [2022-10-12T14:40:14.759Z] [Pipeline] { (Declarative: Checkout SCM) [2022-10-12T14:40:14.763Z] [Pipeline] checkout [2022-10-12T14:40:14.765Z] Selected Git installation does not exist. Using Default [2022-10-12T14:40:14.765Z] The recommended git tool is: NONE [2022-10-12T14:40:14.765Z] No credentials specified [2022-10-12T14:40:14.766Z] > /usr/bin/git rev-parse --resolve-git-dir /var/lib/jenkins/workspace/Silverpeas Projects Build Image/.git # timeout=10 [2022-10-12T14:40:14.770Z] Fetching changes from the remote Git repository [2022-10-12T14:40:14.770Z] > /usr/bin/git config remote.origin.url https://github.com/Silverpeas/Jenkins-Pipelines.git # timeout=10 [2022-10-12T14:40:14.778Z] Fetching upstream changes from https://github.com/Silverpeas/Jenkins-Pipelines.git [2022-10-12T14:40:14.779Z] > /usr/bin/git --version # timeout=10 [2022-10-12T14:40:14.782Z] > git --version # 'git version 2.34.1' [2022-10-12T14:40:14.782Z] > /usr/bin/git fetch --tags --force --progress -- https://github.com/Silverpeas/Jenkins-Pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10 [2022-10-12T14:40:15.738Z] > /usr/bin/git rev-parse refs/remotes/origin/master^{commit} # timeout=10 [2022-10-12T14:40:15.742Z] Checking out Revision 3f20566c0a30bb1416cec8f683039f61d3b8a263 (refs/remotes/origin/master) [2022-10-12T14:40:15.742Z] > /usr/bin/git config core.sparsecheckout # timeout=10 [2022-10-12T14:40:15.746Z] > /usr/bin/git checkout -f 3f20566c0a30bb1416cec8f683039f61d3b8a263 # timeout=10 [2022-10-12T14:40:15.764Z] Commit message: "For the generation of an izpack distribution of Silverpeas, remove the computation of the next version Fix syntax in the Jenkinsfile to generate a docker image for jobs in Jenkins." [2022-10-12T14:40:15.764Z] > /usr/bin/git rev-list --no-walk f0234a164b1aceb5d794de6aa655e636401e62a2 # timeout=10 [2022-10-12T14:40:15.778Z] [Pipeline] } [2022-10-12T14:40:15.784Z] [Pipeline] // stage [2022-10-12T14:40:15.798Z] [Pipeline] withEnv [2022-10-12T14:40:15.799Z] [Pipeline] { [2022-10-12T14:40:15.809Z] [Pipeline] withEnv [2022-10-12T14:40:15.810Z] [Pipeline] { [2022-10-12T14:40:15.817Z] [Pipeline] stage [2022-10-12T14:40:15.817Z] [Pipeline] { (Check the Docker image version to build) [2022-10-12T14:40:15.862Z] Stage "Check the Docker image version to build" skipped due to when conditional [2022-10-12T14:40:15.862Z] [Pipeline] } [2022-10-12T14:40:15.865Z] [Pipeline] // stage [2022-10-12T14:40:15.872Z] [Pipeline] stage [2022-10-12T14:40:15.873Z] [Pipeline] { (Checkout the project) [2022-10-12T14:40:15.902Z] [Pipeline] git [2022-10-12T14:40:15.903Z] The recommended git tool is: NONE [2022-10-12T14:40:15.903Z] using credential cacc0467-7c85-41d1-bf4e-eaa470dd5e59 [2022-10-12T14:40:15.909Z] > /usr/bin/git rev-parse --resolve-git-dir /var/lib/jenkins/workspace/Silverpeas Projects Build Image/.git # timeout=10 [2022-10-12T14:40:15.913Z] Fetching changes from the remote Git repository [2022-10-12T14:40:15.914Z] > /usr/bin/git config remote.origin.url https://github.com/Silverpeas/docker-silverpeas-build # timeout=10 [2022-10-12T14:40:15.919Z] Fetching upstream changes from https://github.com/Silverpeas/docker-silverpeas-build [2022-10-12T14:40:15.919Z] > /usr/bin/git --version # timeout=10 [2022-10-12T14:40:15.924Z] > git --version # 'git version 2.34.1' [2022-10-12T14:40:15.924Z] using GIT_ASKPASS to set credentials GitHub Credentials For Jenkins [2022-10-12T14:40:15.924Z] > /usr/bin/git fetch --tags --force --progress -- https://github.com/Silverpeas/docker-silverpeas-build +refs/heads/*:refs/remotes/origin/* # timeout=10 [2022-10-12T14:40:16.345Z] > /usr/bin/git rev-parse refs/remotes/origin/master^{commit} # timeout=10 [2022-10-12T14:40:16.351Z] Checking out Revision 568fedd541f6f4f879176fdcc5d7eb0b0d8b143e (refs/remotes/origin/master) [2022-10-12T14:40:16.351Z] > /usr/bin/git config core.sparsecheckout # timeout=10 [2022-10-12T14:40:16.355Z] > /usr/bin/git checkout -f 568fedd541f6f4f879176fdcc5d7eb0b0d8b143e # timeout=10 [2022-10-12T14:40:16.388Z] > /usr/bin/git branch -a -v --no-abbrev # timeout=10 [2022-10-12T14:40:16.395Z] > /usr/bin/git branch -D master # timeout=10 [2022-10-12T14:40:16.402Z] > /usr/bin/git checkout -b master 568fedd541f6f4f879176fdcc5d7eb0b0d8b143e # timeout=10 [2022-10-12T14:40:16.441Z] Commit message: "Update for Wildfly 26.1.1 and for Maven 3.8.6 Add the build parameter in the LABEL value to indicate the number of build of the same version of the Docker image" [2022-10-12T14:40:16.441Z] > /usr/bin/git rev-list --no-walk 568fedd541f6f4f879176fdcc5d7eb0b0d8b143e # timeout=10 [2022-10-12T14:40:16.457Z] [Pipeline] } [2022-10-12T14:40:16.461Z] [Pipeline] // stage [2022-10-12T14:40:16.473Z] [Pipeline] stage [2022-10-12T14:40:16.475Z] [Pipeline] { (Release current state as stable version) [2022-10-12T14:40:16.490Z] Stage "Release current state as stable version" skipped due to when conditional [2022-10-12T14:40:16.491Z] [Pipeline] } [2022-10-12T14:40:16.494Z] [Pipeline] // stage [2022-10-12T14:40:16.503Z] [Pipeline] stage [2022-10-12T14:40:16.503Z] [Pipeline] { (Prepare the next latest version) [2022-10-12T14:40:16.515Z] Stage "Prepare the next latest version" skipped due to when conditional [2022-10-12T14:40:16.515Z] [Pipeline] } [2022-10-12T14:40:16.518Z] [Pipeline] // stage [2022-10-12T14:40:16.523Z] [Pipeline] stage [2022-10-12T14:40:16.524Z] [Pipeline] { (Udpate current latest version) [2022-10-12T14:40:16.538Z] [Pipeline] withCredentials [2022-10-12T14:40:16.549Z] Masking supported pattern matches of $GIT_AUTH or $GIT_AUTH_USR or $GIT_AUTH_PSW [2022-10-12T14:40:16.550Z] [Pipeline] { [2022-10-12T14:40:16.557Z] [Pipeline] script [2022-10-12T14:40:16.559Z] [Pipeline] { [2022-10-12T14:40:16.563Z] [Pipeline] sh [2022-10-12T14:40:16.818Z] + grep -oP (?<=build=)\d+ Dockerfile [2022-10-12T14:40:16.823Z] [Pipeline] sh [2022-10-12T14:40:17.079Z] + sed -i -e s/WILDFLY_VERSION=[0-9.]\+/WILDFLY_VERSION=26.1.1/g Dockerfile [2022-10-12T14:40:17.079Z] + sed -i -e s/JAVA_VERSION=[0-9]\+/JAVA_VERSION=11/g Dockerfile [2022-10-12T14:40:17.079Z] + git diff --quiet [2022-10-12T14:40:17.081Z] [Pipeline] } [2022-10-12T14:40:17.089Z] [Pipeline] // script [2022-10-12T14:40:17.096Z] [Pipeline] } [2022-10-12T14:40:17.102Z] [Pipeline] // withCredentials [2022-10-12T14:40:17.109Z] [Pipeline] } [2022-10-12T14:40:17.115Z] [Pipeline] // stage [2022-10-12T14:40:17.125Z] [Pipeline] stage [2022-10-12T14:40:17.126Z] [Pipeline] { (Publish latest version) [2022-10-12T14:40:17.159Z] [Pipeline] script [2022-10-12T14:40:17.161Z] [Pipeline] { [2022-10-12T14:40:17.329Z] [Pipeline] isUnix [2022-10-12T14:40:17.336Z] [Pipeline] withEnv [2022-10-12T14:40:17.337Z] [Pipeline] { [2022-10-12T14:40:17.344Z] [Pipeline] sh [2022-10-12T14:40:17.599Z] + docker build -t silverpeas/silverbuild:latest . [2022-10-12T14:40:17.599Z] Sending build context to Docker daemon 9.486MB [2022-10-12T14:40:17.599Z] Step 1/26 : FROM ubuntu:focal [2022-10-12T14:40:17.599Z] ---> ba6acccedd29 [2022-10-12T14:40:17.599Z] Step 2/26 : LABEL name="Silverpeas Build" description="An image to build a Silverpeas project" vendor="Silverpeas" version=6.3 build=1 [2022-10-12T14:40:17.599Z] ---> Using cache [2022-10-12T14:40:17.599Z] ---> 234da1fcfc7b [2022-10-12T14:40:17.599Z] Step 3/26 : MAINTAINER Miguel Moquillon "miguel.moquillon@silverpeas.org" [2022-10-12T14:40:17.599Z] ---> Using cache [2022-10-12T14:40:17.599Z] ---> ddc2e830996f [2022-10-12T14:40:17.599Z] Step 4/26 : ENV TERM=xterm [2022-10-12T14:40:17.599Z] ---> Using cache [2022-10-12T14:40:17.599Z] ---> f2f97888bfba [2022-10-12T14:40:17.599Z] Step 5/26 : ENV TZ=Europe/Paris [2022-10-12T14:40:17.599Z] ---> Using cache [2022-10-12T14:40:17.599Z] ---> f516dbfbdb5c [2022-10-12T14:40:17.599Z] Step 6/26 : ARG WILDFLY_VERSION=26.1.1 [2022-10-12T14:40:17.599Z] ---> Using cache [2022-10-12T14:40:17.599Z] ---> a10190b9bb0f [2022-10-12T14:40:17.599Z] Step 7/26 : ARG JAVA_VERSION=11 [2022-10-12T14:40:17.599Z] ---> Using cache [2022-10-12T14:40:17.599Z] ---> b99722d5a465 [2022-10-12T14:40:17.599Z] Step 8/26 : ARG DEFAULT_LOCALE=fr_FR.UTF-8 [2022-10-12T14:40:17.599Z] ---> Using cache [2022-10-12T14:40:17.599Z] ---> 953f36aac6ef [2022-10-12T14:40:17.599Z] Step 9/26 : ARG MAVEN_VERSION=3.8.6 [2022-10-12T14:40:17.599Z] ---> Using cache [2022-10-12T14:40:17.599Z] ---> e1a303bddeb5 [2022-10-12T14:40:17.599Z] Step 10/26 : ARG MAVEN_SHA=f790857f3b1f90ae8d16281f902c689e4f136ebe584aba45e4b1fa66c80cba826d3e0e52fdd04ed44b4c66f6d3fe3584a057c26dfcac544a60b301e6d0f91c26 [2022-10-12T14:40:17.599Z] ---> Using cache [2022-10-12T14:40:17.599Z] ---> 90b72eade441 [2022-10-12T14:40:17.599Z] Step 11/26 : ARG NODEJS_VERSION=16 [2022-10-12T14:40:17.599Z] ---> Using cache [2022-10-12T14:40:17.599Z] ---> 54d4536d9407 [2022-10-12T14:40:17.599Z] Step 12/26 : ARG DEBIAN_FRONTEND=noninteractive [2022-10-12T14:40:17.599Z] ---> Using cache [2022-10-12T14:40:17.599Z] ---> 2aa36ae1ad08 [2022-10-12T14:40:17.599Z] Step 13/26 : ARG USER_ID=111 [2022-10-12T14:40:17.599Z] ---> Using cache [2022-10-12T14:40:17.599Z] ---> bed66971475a [2022-10-12T14:40:17.599Z] Step 14/26 : ARG GROUP_ID=119 [2022-10-12T14:40:17.599Z] ---> Using cache [2022-10-12T14:40:17.599Z] ---> 80ac41e6d332 [2022-10-12T14:40:17.599Z] Step 15/26 : COPY src/maven-deps.zip /tmp/ [2022-10-12T14:40:17.599Z] ---> Using cache [2022-10-12T14:40:17.599Z] ---> 474d0fc36c48 [2022-10-12T14:40:17.599Z] Step 16/26 : RUN apt-get update && apt-get install -y apt-utils iputils-ping vim curl git openssh-client gnupg locales language-pack-en language-pack-fr tzdata procps net-tools zip unzip openjdk-${JAVA_VERSION}-jdk ffmpeg imagemagick ghostscript libreoffice-writer libreoffice-calc libreoffice-impress gpgv groovy && groupadd -g ${GROUP_ID} silverbuild && useradd -u ${USER_ID} -g ${GROUP_ID} -d /home/silverbuild -s /bin/bash -m silverbuild && curl -sL https://deb.nodesource.com/setup_${NODEJS_VERSION}.x | bash - && apt-get install -y nodejs && rm -rf /var/lib/apt/lists/* && update-ca-certificates -f && mkdir -p /usr/share/maven /usr/share/maven/ref && curl -fsSL -o /tmp/apache-maven.tar.gz https://apache.osuosl.org/maven/maven-3/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz && echo "${MAVEN_SHA} /tmp/apache-maven.tar.gz" | sha512sum -c - && tar -xzf /tmp/apache-maven.tar.gz -C /usr/share/maven --strip-components=1 && rm -f /tmp/apache-maven.tar.gz && ln -s /usr/share/maven/bin/mvn /usr/bin/mvn && unzip /tmp/maven-deps.zip -d /home/silverbuild/ && curl -fsSL -o /tmp/swftools-bin-0.9.2.zip https://www.silverpeas.org/files/swftools-bin-0.9.2.zip && echo 'd40bd091c84bde2872f2733a3c767b3a686c8e8477a3af3a96ef347cf05c5e43 *swftools-bin-0.9.2.zip' | sha256sum - && unzip /tmp/swftools-bin-0.9.2.zip -d / && curl -fsSL -o /tmp/pdf2json-bin-0.68.zip https://www.silverpeas.org/files/pdf2json-bin-0.68.zip && echo 'eec849cdd75224f9d44c0999ed1fbe8764a773d8ab0cf7fff4bf922ab81c9f84 *pdf2json-bin-0.68.zip' | sha256sum - && unzip /tmp/pdf2json-bin-0.68.zip -d / && curl -fsSL -o /tmp/wildfly-${WILDFLY_VERSION}.Final.FOR-TESTS.zip https://www.silverpeas.org/files/wildfly-${WILDFLY_VERSION}.Final.FOR-TESTS.zip && mkdir /opt/wildfly-for-tests && unzip /tmp/wildfly-${WILDFLY_VERSION}.Final.FOR-TESTS.zip -d /opt/wildfly-for-tests/ && echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen && echo "fr_FR.UTF-8 UTF-8" >> /etc/locale.gen && echo "de_DE.UTF-8 UTF-8" >> /etc/locale.gen && locale-gen && update-locale LANG=${DEFAULT_LOCALE} LANGUAGE=${DEFAULT_LOCALE} LC_ALL=${DEFAULT_LOCALE} [2022-10-12T14:40:17.599Z] ---> Using cache [2022-10-12T14:40:17.599Z] ---> 3d342e84c79a [2022-10-12T14:40:17.599Z] Step 17/26 : COPY src/settings.xml /home/silverbuild/.m2/ [2022-10-12T14:40:17.599Z] ---> Using cache [2022-10-12T14:40:17.599Z] ---> 8e61fe1c0c4e [2022-10-12T14:40:17.599Z] Step 18/26 : RUN chown -R silverbuild:silverbuild /home/silverbuild && chown -R silverbuild:silverbuild /opt/wildfly-for-tests [2022-10-12T14:40:17.599Z] ---> Using cache [2022-10-12T14:40:17.599Z] ---> 1af7a7b264f4 [2022-10-12T14:40:17.599Z] Step 19/26 : ENV LANG ${DEFAULT_LOCALE} [2022-10-12T14:40:17.599Z] ---> Using cache [2022-10-12T14:40:17.599Z] ---> 145bf6aea7bf [2022-10-12T14:40:17.599Z] Step 20/26 : ENV LANGUAGE ${DEFAULT_LOCALE} [2022-10-12T14:40:17.599Z] ---> Using cache [2022-10-12T14:40:17.599Z] ---> b83df7d3a228 [2022-10-12T14:40:17.599Z] Step 21/26 : ENV LC_ALL ${DEFAULT_LOCALE} [2022-10-12T14:40:17.599Z] ---> Using cache [2022-10-12T14:40:17.599Z] ---> b4ee3b1fa53e [2022-10-12T14:40:17.599Z] Step 22/26 : ENV MAVEN_HOME /usr/share/maven [2022-10-12T14:40:17.599Z] ---> Using cache [2022-10-12T14:40:17.599Z] ---> 8199249a27d7 [2022-10-12T14:40:17.599Z] Step 23/26 : ENV JAVA_HOME /usr/lib/jvm/java-${JAVA_VERSION}-openjdk-amd64 [2022-10-12T14:40:17.599Z] ---> Using cache [2022-10-12T14:40:17.599Z] ---> 3785cfaa4534 [2022-10-12T14:40:17.599Z] Step 24/26 : ENV LAUNCH_JBOSS_IN_BACKGROUND true [2022-10-12T14:40:17.599Z] ---> Using cache [2022-10-12T14:40:17.599Z] ---> ea0a5fe10da1 [2022-10-12T14:40:17.599Z] Step 25/26 : USER silverbuild [2022-10-12T14:40:17.599Z] ---> Using cache [2022-10-12T14:40:17.599Z] ---> 8f3e138b9925 [2022-10-12T14:40:17.599Z] Step 26/26 : VOLUME ["/home/silverbuild/.ssh", "/home/silverbuild/.gnupg"] [2022-10-12T14:40:17.599Z] ---> Using cache [2022-10-12T14:40:17.599Z] ---> c906874b8119 [2022-10-12T14:40:17.599Z] Successfully built c906874b8119 [2022-10-12T14:40:17.599Z] Successfully tagged silverpeas/silverbuild:latest [2022-10-12T14:40:17.600Z] [Pipeline] } [2022-10-12T14:40:17.605Z] [Pipeline] // withEnv [2022-10-12T14:40:17.634Z] [Pipeline] withEnv [2022-10-12T14:40:17.634Z] [Pipeline] { [2022-10-12T14:40:17.643Z] [Pipeline] withDockerRegistry [2022-10-12T14:40:17.645Z] $ docker login -u mmoqui -p ******** https://index.docker.io/v1/ [2022-10-12T14:40:17.674Z] WARNING! Using --password via the CLI is insecure. Use --password-stdin. [2022-10-12T14:40:18.771Z] WARNING! Your password will be stored unencrypted in /var/lib/jenkins/workspace/Silverpeas Projects Build Image@tmp/c203db8d-542e-4eb3-a31a-ee565d186c7b/config.json. [2022-10-12T14:40:18.771Z] Configure a credential helper to remove this warning. See [2022-10-12T14:40:18.771Z] https://docs.docker.com/engine/reference/commandline/login/#credentials-store [2022-10-12T14:40:18.771Z] [2022-10-12T14:40:18.772Z] Login Succeeded [2022-10-12T14:40:18.776Z] [Pipeline] { [2022-10-12T14:40:18.791Z] [Pipeline] isUnix [2022-10-12T14:40:18.792Z] [Pipeline] withEnv [2022-10-12T14:40:18.793Z] [Pipeline] { [2022-10-12T14:40:18.803Z] [Pipeline] sh [2022-10-12T14:40:19.059Z] + docker tag silverpeas/silverbuild:latest silverpeas/silverbuild:latest [2022-10-12T14:40:19.060Z] [Pipeline] } [2022-10-12T14:40:19.067Z] [Pipeline] // withEnv [2022-10-12T14:40:19.074Z] [Pipeline] isUnix [2022-10-12T14:40:19.076Z] [Pipeline] withEnv [2022-10-12T14:40:19.076Z] [Pipeline] { [2022-10-12T14:40:19.088Z] [Pipeline] sh [2022-10-12T14:40:19.345Z] + docker push silverpeas/silverbuild:latest [2022-10-12T14:40:19.345Z] The push refers to repository [docker.io/silverpeas/silverbuild] [2022-10-12T14:40:19.596Z] 57582c12cc19: Preparing [2022-10-12T14:40:19.596Z] 2826d158aa42: Preparing [2022-10-12T14:40:19.596Z] 8fbe2447bba1: Preparing [2022-10-12T14:40:19.596Z] 6c2c0a967e07: Preparing [2022-10-12T14:40:19.596Z] 9f54eef41275: Preparing [2022-10-12T14:40:20.507Z] 9f54eef41275: Layer already exists [2022-10-12T14:40:20.758Z] 2826d158aa42: Layer already exists [2022-10-12T14:40:20.758Z] 6c2c0a967e07: Layer already exists [2022-10-12T14:40:20.758Z] 57582c12cc19: Layer already exists [2022-10-12T14:40:20.758Z] 8fbe2447bba1: Layer already exists [2022-10-12T14:40:22.101Z] latest: digest: sha256:ac2ca5af776ccbaadace86bc503462b9368b66f97ccee512cc64c9c6bd792555 size: 1375 [2022-10-12T14:40:22.102Z] [Pipeline] } [2022-10-12T14:40:22.112Z] [Pipeline] // withEnv [2022-10-12T14:40:22.119Z] [Pipeline] } [2022-10-12T14:40:22.125Z] [Pipeline] // withDockerRegistry [2022-10-12T14:40:22.131Z] [Pipeline] } [2022-10-12T14:40:22.137Z] [Pipeline] // withEnv [2022-10-12T14:40:22.143Z] [Pipeline] } [2022-10-12T14:40:22.149Z] [Pipeline] // script [2022-10-12T14:40:22.156Z] [Pipeline] } [2022-10-12T14:40:22.162Z] [Pipeline] // stage [2022-10-12T14:40:22.171Z] [Pipeline] stage [2022-10-12T14:40:22.171Z] [Pipeline] { (Declarative: Post Actions) [2022-10-12T14:40:22.186Z] [Pipeline] step [2022-10-12T14:40:22.193Z] Sending e-mails to: miguel.moquillon@silverpeas.org yohann.chastagnier@silverpeas.org [2022-10-12T14:40:22.265Z] [Pipeline] script [2022-10-12T14:40:22.268Z] [Pipeline] { [2022-10-12T14:40:22.276Z] [Pipeline] } [2022-10-12T14:40:22.280Z] [Pipeline] // script [2022-10-12T14:40:22.287Z] [Pipeline] } [2022-10-12T14:40:22.290Z] [Pipeline] // stage [2022-10-12T14:40:22.294Z] [Pipeline] } [2022-10-12T14:40:22.297Z] [Pipeline] // withEnv [2022-10-12T14:40:22.300Z] [Pipeline] } [2022-10-12T14:40:22.303Z] [Pipeline] // withEnv [2022-10-12T14:40:22.308Z] [Pipeline] } [2022-10-12T14:40:22.312Z] [Pipeline] // node [2022-10-12T14:40:22.316Z] [Pipeline] End of Pipeline [2022-10-12T14:40:22.343Z] Finished: SUCCESS