Branch indexing > /usr/bin/git rev-parse --is-inside-work-tree # timeout=10 Setting origin to https://github.com/kyberorg/ang.git > /usr/bin/git config remote.origin.url https://github.com/kyberorg/ang.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/master Seen 1 remote branch Obtained Jenkinsfile from 1d9dc1d4d4be8ccf88fb256db5609b6116b2d6b4 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/Angular_Learning_App_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/ang.git > /usr/bin/git init /var/lib/jenkins/workspace/Angular_Learning_App_master # timeout=10 Fetching upstream changes from https://github.com/kyberorg/ang.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/ang.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > /usr/bin/git config remote.origin.url https://github.com/kyberorg/ang.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/ang.git # timeout=10 Fetching without tags Fetching upstream changes from https://github.com/kyberorg/ang.git using GIT_ASKPASS to set credentials Kyberorg GitLab > /usr/bin/git fetch --no-tags --force --progress -- https://github.com/kyberorg/ang.git +refs/heads/*:refs/remotes/origin/* # timeout=10 Checking out Revision 1d9dc1d4d4be8ccf88fb256db5609b6116b2d6b4 (master) > /usr/bin/git config core.sparsecheckout # timeout=10 > /usr/bin/git checkout -f 1d9dc1d4d4be8ccf88fb256db5609b6116b2d6b4 # timeout=10 Commit message: "Dockerfile: use golang without alpine as gcc needed" > /usr/bin/git rev-list --no-walk 29834042c8b3c4e62dc234a0aaba1fee360b7a51 # 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 663kB Step 1/16 : FROM node:12.11 AS ANGULAR_BUILD ---> a8d7efbae951 Step 2/16 : RUN npm install -g @angular/cli@10.0.5 ---> Using cache ---> ffc481550a3d Step 3/16 : COPY webapp /webapp ---> Using cache ---> 38346de74958 Step 4/16 : WORKDIR webapp ---> Using cache ---> bf0fc1c2229b Step 5/16 : RUN npm install && ng build --prod ---> Using cache ---> f5319eea5385 Step 6/16 : FROM golang:1.14.7 AS GO_BUILD 1.14.7: Pulling from library/golang d6ff36c9ec48: Pulling fs layer c958d65b3090: Pulling fs layer edaf0a6b092f: Pulling fs layer 80931cf68816: Pulling fs layer 813643441356: Pulling fs layer a54c81388677: Pulling fs layer 31748c757dd4: Pulling fs layer 813643441356: Waiting a54c81388677: Waiting 31748c757dd4: Waiting 80931cf68816: Waiting c958d65b3090: Verifying Checksum c958d65b3090: Download complete edaf0a6b092f: Download complete d6ff36c9ec48: Verifying Checksum d6ff36c9ec48: Download complete 80931cf68816: Verifying Checksum 80931cf68816: Download complete 813643441356: Verifying Checksum 813643441356: Download complete 31748c757dd4: Download complete a54c81388677: Verifying Checksum a54c81388677: Download complete d6ff36c9ec48: Pull complete c958d65b3090: Pull complete edaf0a6b092f: Pull complete 80931cf68816: Pull complete 813643441356: Pull complete a54c81388677: Pull complete 31748c757dd4: Pull complete Digest: sha256:1364cfbbcd1a5f38bdf8c814f02ebbd2170c93933415480480104834341f283e Status: Downloaded newer image for golang:1.14.7 ---> baaca3151cdb Step 7/16 : COPY server /server ---> 57e3d6e3908a Step 8/16 : WORKDIR /server ---> Running in 5240d1574653 Removing intermediate container 5240d1574653 ---> f8b8859ec25d Step 9/16 : RUN go build -o /go/bin/server ---> Running in 9fbba28286e0 go: downloading github.com/gin-gonic/gin v1.6.3 go: downloading github.com/jinzhu/gorm v1.9.16 go: downloading github.com/mattn/go-sqlite3 v1.14.0 go: downloading github.com/jinzhu/inflection v1.0.0 go: downloading github.com/gin-contrib/sse v0.1.0 go: downloading github.com/ugorji/go v1.1.7 go: downloading github.com/golang/protobuf v1.3.3 go: downloading gopkg.in/yaml.v2 v2.2.8 go: downloading github.com/mattn/go-isatty v0.0.12 go: downloading github.com/go-playground/validator/v10 v10.2.0 go: downloading github.com/ugorji/go/codec v1.1.7 go: downloading golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd go: downloading github.com/go-playground/universal-translator v0.17.0 go: downloading github.com/leodido/go-urn v1.2.0 go: downloading github.com/go-playground/locales v0.13.0 Removing intermediate container 9fbba28286e0 ---> 6ec0a92dca1a Step 10/16 : FROM alpine:3.12 ---> a24bb4013296 Step 11/16 : WORKDIR app ---> Running in 20aa672a0b28 Removing intermediate container 20aa672a0b28 ---> e95550e5d95f Step 12/16 : COPY --from=ANGULAR_BUILD /webapp/dist/webapp/* ./webapp/dist/webapp/ ---> ea40167bd390 Step 13/16 : COPY --from=GO_BUILD /go/bin/server ./ ---> 4178820f948d Step 14/16 : RUN ls ---> Running in 421dae5a0ed2 server webapp Removing intermediate container 421dae5a0ed2 ---> 8dbbdb5b3171 Step 15/16 : CMD ./server ---> Running in 13b3302a2c8e Removing intermediate container 13b3302a2c8e ---> 7e7ef89d5a92 Step 16/16 : EXPOSE 8080 ---> Running in 7632a6d820a4 Removing intermediate container 7632a6d820a4 ---> 14e24f6a5c84 Successfully built 14e24f6a5c84 Successfully tagged kyberorg/ang: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/ang] 0d1699c7621d: Preparing 39f720aa8840: Preparing 9266bb1ce36d: Preparing 50644c29ef5a: Preparing 50644c29ef5a: Layer already exists 9266bb1ce36d: Pushed 39f720aa8840: Pushed 0d1699c7621d: Pushed master: digest: sha256:7a3ca6ffb992922190ce7a8f6ca03a2bd77e2fa6445f238110a062966a8fcf7b size: 1156 [Pipeline] sh + set +x Removing login credentials for https://index.docker.io/v1/ [Pipeline] sh + set +x Untagged: kyberorg/ang:master Untagged: kyberorg/ang@sha256:7a3ca6ffb992922190ce7a8f6ca03a2bd77e2fa6445f238110a062966a8fcf7b Deleted: sha256:14e24f6a5c844b09888705186c41f1ed92f828ab719b5573a461fac69491e0a3 Deleted: sha256:7e7ef89d5a9255007783d20167cb6d29c5c684540113bec5ff7926e89beea861 Deleted: sha256:8dbbdb5b3171c3a3122a0ae1cf3ce791a39618f5d4060b26ca8800a280751a3f Deleted: sha256:4178820f948defadae23e803dfd796d619693b403ffe37354a3c7856272dae36 Deleted: sha256:de38b2f1643dee92d4de775c79eaf96654f690bd936ff9a411a0b4d3a6e69bde Deleted: sha256:ea40167bd3909d72b9e577c90ece0ab5beeb7b6185a2ee13efef007685341bcc Deleted: sha256:1d8dd096062816cff2fb9b6d7e3afe932b58f383f84b8397e8583535b0644c71 Deleted: sha256:e95550e5d95fe37d3ab3e140afa217308a3120907ff4856397da4a6bb898af01 Deleted: sha256:c00c54c901f489d2bbd79d122682b4756401ff700b0ae754621ffe159c2b4d1d [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Deploy to K8S) [Pipeline] script [Pipeline] { [Pipeline] sh + kubectl -n dev-ang set image deployment/ang-app app=kyberorg/ang:master --record [Pipeline] sh + kubectl -n dev-ang rollout restart deployment/ang-app deployment.apps/ang-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