Console Output
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 dbfe16c150f053c37f4d11ef9b14ad98e02e5553
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 dbfe16c150f053c37f4d11ef9b14ad98e02e5553 (master)
> /usr/bin/git config core.sparsecheckout # timeout=10
> /usr/bin/git checkout -f dbfe16c150f053c37f4d11ef9b14ad98e02e5553 # timeout=10
Commit message: "Added .dockerignore, Exposed port in Dockerfile and finally doing something useful at main in server"
> /usr/bin/git rev-list --no-walk 8014c56ea2b85ef05c0913ed9f5cab08017024c9 # 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 618kB
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
---> 1c994dd03517
Step 4/16 : WORKDIR webapp
---> Using cache
---> 2eca658b783d
Step 5/16 : RUN npm install && ng build --prod
---> Using cache
---> af021eb14717
Step 6/16 : FROM golang:1.14.7-alpine AS GO_BUILD
---> cda74ca0cbba
Step 7/16 : COPY server /server
---> 33de6348929b
Step 8/16 : WORKDIR /server
---> Running in b0f3c0cb20dc
Removing intermediate container b0f3c0cb20dc
---> 90ea22f95018
Step 9/16 : RUN go build -o /go/bin/server
---> Running in 740b501e9ce7
[91mgo: downloading github.com/gin-gonic/gin v1.6.3
[0m[91mgo: downloading github.com/gin-contrib/sse v0.1.0
[0m[91mgo: downloading github.com/mattn/go-isatty v0.0.12
[0m[91mgo: downloading github.com/ugorji/go v1.1.7
[0m[91mgo: downloading gopkg.in/yaml.v2 v2.2.8
[0m[91mgo: downloading github.com/golang/protobuf v1.3.3
[0m[91mgo: downloading github.com/go-playground/validator/v10 v10.2.0
[0m[91mgo: downloading github.com/ugorji/go/codec v1.1.7
[0m[91mgo: downloading golang.org/x/sys v0.0.0-20200116001909-b77594299b42
[0m[91mgo: downloading github.com/leodido/go-urn v1.2.0
[0m[91mgo: downloading github.com/go-playground/universal-translator v0.17.0
[0m[91mgo: downloading github.com/go-playground/locales v0.13.0
[0mRemoving intermediate container 740b501e9ce7
---> 000af0056f6a
Step 10/16 : FROM alpine:3.12
---> a24bb4013296
Step 11/16 : WORKDIR app
---> Running in 128adb947bec
Removing intermediate container 128adb947bec
---> 49bcaedab806
Step 12/16 : COPY --from=ANGULAR_BUILD /webapp/dist/webapp/* ./webapp/dist/webapp/
---> 227508ec7ad9
Step 13/16 : COPY --from=GO_BUILD /go/bin/server ./
---> 6a61cae3adab
Step 14/16 : RUN ls
---> Running in be4a00088151
server
webapp
Removing intermediate container be4a00088151
---> 242765cce8ae
Step 15/16 : CMD ./server
---> Running in a8c2394ca683
Removing intermediate container a8c2394ca683
---> 6cf6f592da1a
Step 16/16 : EXPOSE 8080
---> Running in c878c9991c4e
Removing intermediate container c878c9991c4e
---> 485da21f4f28
Successfully built 485da21f4f28
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]
de33b5fef69b: Preparing
a0a7c3fbe957: Preparing
6e20e4b83fd0: Preparing
50644c29ef5a: Preparing
50644c29ef5a: Layer already exists
6e20e4b83fd0: Pushed
a0a7c3fbe957: Pushed
de33b5fef69b: Pushed
master: digest: sha256:5792dcacf3c9bcc9e7bf5bb513cfa305203ea1644a1f7bcbb6e0094c3292220d size: 1155
[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:5792dcacf3c9bcc9e7bf5bb513cfa305203ea1644a1f7bcbb6e0094c3292220d
Deleted: sha256:485da21f4f28cadf579580d1b901dbbca1374b063a5252d314d6e7705e93aa86
Deleted: sha256:6cf6f592da1ade71ede5589679c6dd6cdbcba24699668c8087c329bdf1e8705b
Deleted: sha256:242765cce8ae2a2daff0336479e763ed6f351b864478f99b0430331f7591816b
Deleted: sha256:6a61cae3adab0d040259dd5e0a1fe8ab0e5a06ee55131bd4e201862f4d1ab6ca
Deleted: sha256:60ac8ed93d0ad1c3fed15474376633900124a34898c3a77235574141601af04d
Deleted: sha256:227508ec7ad962c9eddd912ce4c2c41c2f8a0c452b5ddd52613a6eda258d3c3b
Deleted: sha256:4ac433b7e7bd69726a242a28b3fe93be064c0aec2521eb66988f9f2567ef805f
Deleted: sha256:49bcaedab806568d09bc0810d6469a957357738d8397cccfa99c252ab7e36f66
Deleted: sha256:0882f94d7fb97edd2ecf81d939ac7e32dcfef825f6d3193d39d76632b9ac9b45
[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