Branch indexing > /usr/bin/git rev-parse --is-inside-work-tree # timeout=10 Setting origin to https://github.com/kyberorg/ng-go.git > /usr/bin/git config remote.origin.url https://github.com/kyberorg/ng-go.git # timeout=10 Fetching origin... Fetching upstream changes from origin > /usr/bin/git --version # timeout=10 > git --version # 'git version 2.20.1' > /usr/bin/git config --get remote.origin.url # timeout=10 using GIT_ASKPASS to set credentials Kyberorg GitLab > /usr/bin/git fetch --tags --force --progress -- origin +refs/heads/*:refs/remotes/origin/* # timeout=10 Seen branch in repository origin/dependabot/npm_and_yarn/webapp/npm-registry-fetch-4.0.5 Seen branch in repository origin/dependabot/npm_and_yarn/webapp/websocket-extensions-0.1.4 Seen branch in repository origin/gin Seen branch in repository origin/master Seen 4 remote branches Obtained Jenkinsfile from 57fdac920a71129dff6a79dfd126c76bceda99a0 Running in Durability level: MAX_SURVIVABILITY Only using first definition of library common-lib Loading library common-lib@1.6 Attempting to resolve 1.6 from remote references... > /usr/bin/git --version # timeout=10 > git --version # 'git version 2.20.1' using GIT_ASKPASS to set credentials YaBot gitlab > /usr/bin/git ls-remote -h -- https://gitlab.com/yasys/jenkins/common-lib.git # timeout=10 Could not find 1.6 in remote references. Pulling heads to local for deep search... > /usr/bin/git rev-parse --is-inside-work-tree # timeout=10 Setting origin to https://gitlab.com/yasys/jenkins/common-lib.git > /usr/bin/git config remote.origin.url https://gitlab.com/yasys/jenkins/common-lib.git # timeout=10 Fetching origin... Fetching upstream changes from origin > /usr/bin/git --version # timeout=10 > git --version # 'git version 2.20.1' > /usr/bin/git config --get remote.origin.url # timeout=10 using GIT_ASKPASS to set credentials YaBot gitlab > /usr/bin/git fetch --tags --force --progress -- origin +refs/heads/*:refs/remotes/origin/* # timeout=10 > /usr/bin/git rev-parse 1.6^{commit} # timeout=10 > /usr/bin/git branch -a -v --no-abbrev --contains 0b30bc4e918097575eab0885b2edb71afa83a982 # timeout=10 Selected match: master revision 0b30bc4e918097575eab0885b2edb71afa83a982 using credential yabot-gitlab > /usr/bin/git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > /usr/bin/git config remote.origin.url https://gitlab.com/yasys/jenkins/common-lib.git # timeout=10 Fetching without tags Fetching upstream changes from https://gitlab.com/yasys/jenkins/common-lib.git > /usr/bin/git --version # timeout=10 > git --version # 'git version 2.20.1' using GIT_ASKPASS to set credentials YaBot gitlab > /usr/bin/git fetch --no-tags --force --progress -- https://gitlab.com/yasys/jenkins/common-lib.git +refs/heads/*:refs/remotes/origin/* # timeout=10 Checking out Revision 0b30bc4e918097575eab0885b2edb71afa83a982 (master) > /usr/bin/git config core.sparsecheckout # timeout=10 > /usr/bin/git checkout -f 0b30bc4e918097575eab0885b2edb71afa83a982 # timeout=10 Commit message: "deployToKube" > /usr/bin/git rev-list --no-walk 0b30bc4e918097575eab0885b2edb71afa83a982 # timeout=10 Loading library common-pipe@2.3.3 Attempting to resolve 2.3.3 from remote references... > /usr/bin/git --version # timeout=10 > git --version # 'git version 2.20.1' using GIT_ASKPASS to set credentials Kyberorg GitLab > /usr/bin/git ls-remote -h -- https://gitlab.com/yasys/common-pipe.git # timeout=10 Could not find 2.3.3 in remote references. Pulling heads to local for deep search... > /usr/bin/git rev-parse --is-inside-work-tree # timeout=10 Setting origin to https://gitlab.com/yasys/common-pipe.git > /usr/bin/git config remote.origin.url https://gitlab.com/yasys/common-pipe.git # timeout=10 Fetching origin... Fetching upstream changes from origin > /usr/bin/git --version # timeout=10 > git --version # 'git version 2.20.1' > /usr/bin/git config --get remote.origin.url # timeout=10 using GIT_ASKPASS to set credentials Kyberorg GitLab > /usr/bin/git fetch --tags --force --progress -- origin +refs/heads/*:refs/remotes/origin/* # timeout=10 > /usr/bin/git rev-parse 2.3.3^{commit} # timeout=10 > /usr/bin/git branch -a -v --no-abbrev --contains 78e505581bfc1d87a0194b7a0531760b3985472d # timeout=10 Selected match: master revision 78e505581bfc1d87a0194b7a0531760b3985472d using credential kyberorg_gl > /usr/bin/git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > /usr/bin/git config remote.origin.url https://gitlab.com/yasys/common-pipe.git # timeout=10 Fetching without tags Fetching upstream changes from https://gitlab.com/yasys/common-pipe.git > /usr/bin/git --version # timeout=10 > git --version # 'git version 2.20.1' using GIT_ASKPASS to set credentials Kyberorg GitLab > /usr/bin/git fetch --no-tags --force --progress -- https://gitlab.com/yasys/common-pipe.git +refs/heads/*:refs/remotes/origin/* # timeout=10 Checking out Revision 78e505581bfc1d87a0194b7a0531760b3985472d (master) > /usr/bin/git config core.sparsecheckout # timeout=10 > /usr/bin/git checkout -f 78e505581bfc1d87a0194b7a0531760b3985472d # timeout=10 Commit message: "Merge branch 'steps-fix' into 'master'" > /usr/bin/git rev-list --no-walk 78e505581bfc1d87a0194b7a0531760b3985472d # timeout=10 [Pipeline] Start of Pipeline [Pipeline] node Running on Jenkins in /var/lib/jenkins/workspace/NG-GO_master [Pipeline] { [Pipeline] stage [Pipeline] { (Declarative: Checkout SCM) [Pipeline] checkout using credential kyberorg_gl Cloning the remote Git repository Cloning with configured refspecs honoured and without tags Cloning repository https://github.com/kyberorg/ng-go.git > /usr/bin/git init /var/lib/jenkins/workspace/NG-GO_master # timeout=10 Fetching upstream changes from https://github.com/kyberorg/ng-go.git > /usr/bin/git --version # timeout=10 > git --version # 'git version 2.20.1' using GIT_ASKPASS to set credentials Kyberorg GitLab > /usr/bin/git fetch --no-tags --force --progress -- https://github.com/kyberorg/ng-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > /usr/bin/git config remote.origin.url https://github.com/kyberorg/ng-go.git # timeout=10 > /usr/bin/git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 > /usr/bin/git config remote.origin.url https://github.com/kyberorg/ng-go.git # timeout=10 Fetching without tags Fetching upstream changes from https://github.com/kyberorg/ng-go.git using GIT_ASKPASS to set credentials Kyberorg GitLab > /usr/bin/git fetch --no-tags --force --progress -- https://github.com/kyberorg/ng-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 Checking out Revision 57fdac920a71129dff6a79dfd126c76bceda99a0 (master) > /usr/bin/git config core.sparsecheckout # timeout=10 > /usr/bin/git checkout -f 57fdac920a71129dff6a79dfd126c76bceda99a0 # timeout=10 Commit message: "Migrated to Gin-Gonic (#1)" > /usr/bin/git rev-list --no-walk 6567df672ce37994aec9e69e47c02d4788f536fd # timeout=10 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Docker) [Pipeline] script [Pipeline] { [Pipeline] sh + set +x Sending build context to Docker daemon 4.058MB Step 1/15 : FROM node:12.11 AS ANGULAR_BUILD ---> a8d7efbae951 Step 2/15 : RUN npm install -g @angular/cli@8.3.12 ---> Using cache ---> 9289bde24475 Step 3/15 : COPY webapp /webapp ---> Using cache ---> a79caba3ebc0 Step 4/15 : WORKDIR webapp ---> Using cache ---> 5c383a73640d Step 5/15 : RUN npm install && ng build --prod ---> Using cache ---> ef48ff3499dd Step 6/15 : FROM golang:1.13.1-alpine AS GO_BUILD ---> 48260c3da24c Step 7/15 : COPY server /server ---> Using cache ---> 674ad57736cf Step 8/15 : WORKDIR /server ---> Using cache ---> 2a3bc1510d86 Step 9/15 : RUN go build -o /go/bin/server ---> Using cache ---> 16a662113ff2 Step 10/15 : FROM alpine:3.10 ---> be4e4bea2c2e Step 11/15 : WORKDIR app ---> Running in 6a9563389ca4 Removing intermediate container 6a9563389ca4 ---> aef0a6151cf8 Step 12/15 : COPY --from=ANGULAR_BUILD /webapp/dist/webapp/* ./webapp/dist/webapp/ ---> 9b452a9df199 Step 13/15 : COPY --from=GO_BUILD /go/bin/server ./ ---> 55663bcb1217 Step 14/15 : RUN ls ---> Running in 92e19971b2df server webapp Removing intermediate container 92e19971b2df ---> c6cb9ac1b837 Step 15/15 : CMD ./server ---> Running in cf2f69de02e8 Removing intermediate container cf2f69de02e8 ---> c287cd3fd1a9 Successfully built c287cd3fd1a9 Successfully tagged kyberorg/nggo:master [Pipeline] withCredentials Masking supported pattern matches of $USR or $PASS [Pipeline] { [Pipeline] sh + set +x WARNING! Your password will be stored unencrypted in /var/lib/jenkins/.docker/config.json. Configure a credential helper to remove this warning. See https://docs.docker.com/engine/reference/commandline/login/#credentials-store Login Succeeded [Pipeline] } [Pipeline] // withCredentials [Pipeline] sh + set +x The push refers to repository [docker.io/kyberorg/nggo] 5d0503aa7fcb: Preparing 52a245356a3c: Preparing 00a28c4e0379: Preparing 1b3ee35aacca: Preparing 1b3ee35aacca: Layer already exists 00a28c4e0379: Pushed 52a245356a3c: Pushed 5d0503aa7fcb: Pushed master: digest: sha256:536e991c1066ec8b800d82a0ed81ff9b6ff85699c87876a8a6b648d920456910 size: 1156 [Pipeline] sh + set +x Removing login credentials for https://index.docker.io/v1/ [Pipeline] sh + set +x Untagged: kyberorg/nggo:master Untagged: kyberorg/nggo@sha256:536e991c1066ec8b800d82a0ed81ff9b6ff85699c87876a8a6b648d920456910 Deleted: sha256:c287cd3fd1a9d29dd9b79bbb2c4bd7a0feafc11fb507fb64fae3eecf8b3d8404 Deleted: sha256:c6cb9ac1b837ec7523706a16e002ef9a6aa68c4c34e567c9486997357e7d5ba9 Deleted: sha256:55663bcb1217cc3fe5999483b8716511d541f7efc6b681655e67a783f066b7ad Deleted: sha256:4a9596d11954e47c14d848745e8c3bbdad68b2fdd36479378be3626365db7328 Deleted: sha256:9b452a9df1994867ac4941e8dc95e520d489c552f85896490fa33587cb6097d2 Deleted: sha256:853a517c83e307ef378dc601846290eb4acd0afa152b167b099fe7653de1bc02 Deleted: sha256:aef0a6151cf8892d00cbd3cc5c06fecf4670ef24097a8c7e6ee41021de4a3438 Deleted: sha256:7d244614e4f2401313396e9760141c5ea4bea90c8fa63832563395d15de6ac78 [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Deploy to K8S) [Pipeline] script [Pipeline] { [Pipeline] sh + kubectl -n dev-nggo set image deployment/nggo-app app=kyberorg/nggo:master --record deployment.apps/nggo-app image updated [Pipeline] sh + kubectl -n dev-nggo rollout restart deployment/nggo-app deployment.apps/nggo-app restarted [Pipeline] } [Pipeline] // script [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] // withEnv [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline Finished: SUCCESS