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 2b21d0e48bbe24269f16a9ded600c270202fac32
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 2b21d0e48bbe24269f16a9ded600c270202fac32 (master)
> /usr/bin/git config core.sparsecheckout # timeout=10
> /usr/bin/git checkout -f 2b21d0e48bbe24269f16a9ded600c270202fac32 # timeout=10
Commit message: "Fixing issue with compiling server (#1)"
> /usr/bin/git rev-list --no-walk 24721a2d300258803418bd46de68c07b6b4f7e2d # 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 662.5kB
Step 1/17 : FROM node:12.11 AS ANGULAR_BUILD
---> a8d7efbae951
Step 2/17 : RUN npm install -g @angular/cli@10.0.5
---> Using cache
---> ffc481550a3d
Step 3/17 : COPY webapp /webapp
---> Using cache
---> 38346de74958
Step 4/17 : WORKDIR webapp
---> Using cache
---> bf0fc1c2229b
Step 5/17 : RUN npm install && ng build --prod
---> Using cache
---> f5319eea5385
Step 6/17 : FROM golang:1.14.7 AS GO_BUILD
---> baaca3151cdb
Step 7/17 : COPY server /
---> Using cache
---> df6e376b3df7
Step 8/17 : WORKDIR /
---> Using cache
---> ecd4c34e93c4
Step 9/17 : COPY server/go.mod server/go.sum ./
---> Using cache
---> 17efc81843ed
Step 10/17 : RUN go mod download
---> Using cache
---> 0fce5fd39396
Step 11/17 : COPY server /
---> Using cache
---> 0fa27502e7ea
Step 12/17 : RUN go build -a -ldflags '-extldflags "-static"' -o /server main.go
---> Using cache
---> 1683ea638a2e
Step 13/17 : FROM alpine:3.12
---> a24bb4013296
Step 14/17 : COPY --from=ANGULAR_BUILD /webapp/dist/webapp/* ./webapp/dist/webapp/
---> 9c92f9ded9a0
Step 15/17 : COPY --from=GO_BUILD /server ./
---> 3a9494f40be2
Step 16/17 : CMD ./server
---> Running in 132926ed6bc3
Removing intermediate container 132926ed6bc3
---> d3fcf0fb5af7
Step 17/17 : EXPOSE 8080
---> Running in c7ed94f636cc
Removing intermediate container c7ed94f636cc
---> 003f53575490
Successfully built 003f53575490
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]
1e6a787b8d31: Preparing
1beea8207138: Preparing
50644c29ef5a: Preparing
1e6a787b8d31: Layer already exists
50644c29ef5a: Layer already exists
1beea8207138: Pushed
master: digest: sha256:9345068d6c78d3cbcf7c6bc22fafa3eda7e922d97b7e796a7cc92c72df0fab65 size: 949
[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:9345068d6c78d3cbcf7c6bc22fafa3eda7e922d97b7e796a7cc92c72df0fab65
Deleted: sha256:003f53575490f0b385971cdfcd4759506760951a7615476935e5233db33e78fe
Deleted: sha256:d3fcf0fb5af7e8e41fd1d5d69affa928b46bb60ad5c5133978b0fce8ec63cbc4
Deleted: sha256:3a9494f40be205f866e8334a5ab73e29fe1cee89b5e82711d832bf66c0dc206b
Deleted: sha256:c289aafcab754de4123833369479713051259b1964141593224ca1399c5cb8f5
Deleted: sha256:9c92f9ded9a09bcd0b8b6cff9df350406f2b75170be8781009c83dd54b569890
Deleted: sha256:440846e0c4715c90ec4cc58fdb4594faf68c8d20d74f9c05e5414b98225acb54
[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
deployment.apps/ang-app image updated
[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