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/master Seen 3 remote branches Obtained Jenkinsfile from e29adb74a0dec8337f8c56f732e87ddf2de940c2 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 e29adb74a0dec8337f8c56f732e87ddf2de940c2 (master) > /usr/bin/git config core.sparsecheckout # timeout=10 > /usr/bin/git checkout -f e29adb74a0dec8337f8c56f732e87ddf2de940c2 # timeout=10 Commit message: "More Envs" > /usr/bin/git rev-list --no-walk 16b2d682f6bdd2c64cb7f921e34bdd34e143b512 # 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.045MB 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 ---> 199f1eef3ef3 Step 8/15 : WORKDIR /server ---> Running in dda1dfab8471 Removing intermediate container dda1dfab8471 ---> 58f360f4adcb Step 9/15 : RUN go build -o /go/bin/server ---> Running in 9f92fe0cd52d go: downloading github.com/google/uuid v1.1.1 go: downloading github.com/jinzhu/gorm v1.9.11 go: downloading github.com/gorilla/mux v1.7.3 go: extracting github.com/gorilla/mux v1.7.3 go: extracting github.com/google/uuid v1.1.1 go: extracting github.com/jinzhu/gorm v1.9.11 go: downloading github.com/lib/pq v1.1.1 go: downloading github.com/jinzhu/inflection v1.0.0 go: extracting github.com/jinzhu/inflection v1.0.0 go: extracting github.com/lib/pq v1.1.1 go: finding github.com/gorilla/mux v1.7.3 go: finding github.com/google/uuid v1.1.1 go: finding github.com/jinzhu/gorm v1.9.11 go: finding github.com/lib/pq v1.1.1 go: finding github.com/jinzhu/inflection v1.0.0 Removing intermediate container 9f92fe0cd52d ---> ee42d1a6ade1 Step 10/15 : FROM alpine:3.10 ---> be4e4bea2c2e Step 11/15 : WORKDIR app ---> Running in 1ad4a9bd785d Removing intermediate container 1ad4a9bd785d ---> 9f4abe0f442a Step 12/15 : COPY --from=ANGULAR_BUILD /webapp/dist/webapp/* ./webapp/dist/webapp/ ---> 556296051af7 Step 13/15 : COPY --from=GO_BUILD /go/bin/server ./ ---> 61af0afa54ae Step 14/15 : RUN ls ---> Running in 5d6b8973000d server webapp Removing intermediate container 5d6b8973000d ---> af5fa166b930 Step 15/15 : CMD ./server ---> Running in ffc13fc92d36 Removing intermediate container ffc13fc92d36 ---> 18c099783def Successfully built 18c099783def 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] 595c559bf71b: Preparing 43a534673270: Preparing 3d799d1f50de: Preparing 1b3ee35aacca: Preparing 1b3ee35aacca: Layer already exists 3d799d1f50de: Pushed 43a534673270: Pushed 595c559bf71b: Pushed master: digest: sha256:268ffe5d05d4313361050b3e2125c241107349b674485de3166ba7b4fe682810 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:268ffe5d05d4313361050b3e2125c241107349b674485de3166ba7b4fe682810 Deleted: sha256:18c099783def0b003ac9c4ebf6e4ff959d124b7d9b30b1ebe8bb06b5f5a7a3f2 Deleted: sha256:af5fa166b9304e42bb822f63dd9778b91b6dddfc325a9f4f478b829ae341ff76 Deleted: sha256:61af0afa54ae85261f6d3277d5dc5293d08059f66940ed6a1f55467ecf26ced3 Deleted: sha256:edb3c8f790f6abd23b1576e7bc47a33495721d553ccbf0e5d4b94fc8ae849120 Deleted: sha256:556296051af784fcc886e5cd878155a602f5be9392d0cd9bdd24bad88bbf26d4 Deleted: sha256:c0b4c5639ae643078fa6eacf5c6c0abb23aa4dcadb519d83cc7b4d03de32edb9 Deleted: sha256:9f4abe0f442ac6a52cd744ac4dce1e6cb878e860897c8e8e9d4bbb63ab4a95df Deleted: sha256:ee850116ecb89db46349d56ef25940fbc2bd3f3de18c12f9b337a659189c08a5 [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=kyberorg/nggo:master --record Error from server (NotFound): deployments.apps "nggo" not found [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 ERROR: script returned exit code 1 Finished: FAILURE