Console Output
Branch indexing
16:16:02 Connecting to https://api.github.com using kyberorg/****** (Kyberorg GitLab)
Obtained Jenkinsfile from e3a809d93a4b300c6a1b6528e45e6aff96ef3441
Running in Durability level: MAX_SURVIVABILITY
Only using first definition of library common-lib
Loading library common-lib@1.4
Attempting to resolve 1.4 from remote references...
> /usr/bin/git --version # timeout=10
using GIT_ASKPASS to set credentials CI token for gitlab
> /usr/bin/git ls-remote -h -- https://gitlab.com/yasys/jenkins/common-lib.git # timeout=10
Could not find 1.4 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
> /usr/bin/git config --get remote.origin.url # timeout=10
using GIT_ASKPASS to set credentials CI token for gitlab
> /usr/bin/git fetch --tags --force --progress -- origin +refs/heads/*:refs/remotes/origin/* # timeout=10
> /usr/bin/git rev-parse 1.4^{commit} # timeout=10
> /usr/bin/git branch -a -v --no-abbrev --contains 54d5eac1894fca19ed2d32e6b5138f8443046b13 # timeout=10
Selected match: master revision 54d5eac1894fca19ed2d32e6b5138f8443046b13
using credential CIpwd
> /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
using GIT_ASKPASS to set credentials CI token for 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 54d5eac1894fca19ed2d32e6b5138f8443046b13 (master)
> /usr/bin/git config core.sparsecheckout # timeout=10
> /usr/bin/git checkout -f 54d5eac1894fca19ed2d32e6b5138f8443046b13 # timeout=10
Commit message: "Fixes"
> /usr/bin/git rev-list --no-walk 54d5eac1894fca19ed2d32e6b5138f8443046b13 # timeout=10
Loading library common-pipe@2.3.3
Attempting to resolve 2.3.3 from remote references...
> /usr/bin/git --version # timeout=10
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
> /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
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/GoApi_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/go-api.git
> /usr/bin/git init /var/lib/jenkins/workspace/GoApi_master # timeout=10
Fetching upstream changes from https://github.com/kyberorg/go-api.git
> /usr/bin/git --version # timeout=10
using GIT_ASKPASS to set credentials Kyberorg GitLab
> /usr/bin/git fetch --no-tags --force --progress -- https://github.com/kyberorg/go-api.git +refs/heads/master:refs/remotes/origin/master # timeout=10
> /usr/bin/git config remote.origin.url https://github.com/kyberorg/go-api.git # timeout=10
> /usr/bin/git config --add remote.origin.fetch +refs/heads/master:refs/remotes/origin/master # timeout=10
> /usr/bin/git config remote.origin.url https://github.com/kyberorg/go-api.git # timeout=10
Fetching without tags
Fetching upstream changes from https://github.com/kyberorg/go-api.git
using GIT_ASKPASS to set credentials Kyberorg GitLab
> /usr/bin/git fetch --no-tags --force --progress -- https://github.com/kyberorg/go-api.git +refs/heads/master:refs/remotes/origin/master # timeout=10
Checking out Revision e3a809d93a4b300c6a1b6528e45e6aff96ef3441 (master)
> /usr/bin/git config core.sparsecheckout # timeout=10
> /usr/bin/git checkout -f e3a809d93a4b300c6a1b6528e45e6aff96ef3441 # timeout=10
Commit message: "Users: message fix"
> /usr/bin/git rev-list --no-walk b1ea44380669c5ccdad76f2320bc4802e03510a9 # timeout=10
[Pipeline] }
[Pipeline] // stage
[Pipeline] withEnv
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Docker)
[Pipeline] script
[Pipeline] {
[Pipeline] sh
+ set +x
Sending build context to Docker daemon 134.1kB
Step 1/17 : ARG GO_VERSION=1.14
Step 2/17 : FROM golang:${GO_VERSION}-alpine AS builder
---> 4c8eed5b55a0
Step 3/17 : RUN apk update && apk add alpine-sdk git && rm -rf /var/cache/apk/*
---> Using cache
---> 3136944f463a
Step 4/17 : RUN mkdir -p /api
---> Using cache
---> b8fd7149387e
Step 5/17 : WORKDIR /api
---> Using cache
---> 9e54792c622b
Step 6/17 : COPY go.mod .
---> Using cache
---> 941a36994c52
Step 7/17 : COPY go.sum .
---> Using cache
---> 7e0a891a3899
Step 8/17 : RUN go mod download
---> Using cache
---> ab64c450a9d8
Step 9/17 : COPY . .
---> 293f0e3003e9
Step 10/17 : RUN go build -o application main.go
---> Running in 9d6f0ae75ab4
Removing intermediate container 9d6f0ae75ab4
---> f0df7df369ef
Step 11/17 : FROM alpine:3.12
---> a24bb4013296
Step 12/17 : RUN mkdir -p /api
---> Running in 99b8da18d28b
Removing intermediate container 99b8da18d28b
---> d120ec2e6dc5
Step 13/17 : WORKDIR /api
---> Running in 37cf4cf1c682
Removing intermediate container 37cf4cf1c682
---> 48a1569e51f4
Step 14/17 : COPY --from=builder /api/application .
---> 4b8d50922719
Step 15/17 : ADD assets /api/assets
---> fdea8f09e484
Step 16/17 : EXPOSE 8080
---> Running in 561322af9ae4
Removing intermediate container 561322af9ae4
---> 264f26290f17
Step 17/17 : ENTRYPOINT ["./application"]
---> Running in 6b80aad2d418
Removing intermediate container 6b80aad2d418
---> eb72ffd7d249
Successfully built eb72ffd7d249
Successfully tagged kyberorg/go-api:stable
[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/go-api]
c127b789b9df: Preparing
de00f47774fb: Preparing
9e9a236edcca: Preparing
50644c29ef5a: Preparing
50644c29ef5a: Layer already exists
c127b789b9df: Pushed
9e9a236edcca: Pushed
de00f47774fb: Pushed
stable: digest: sha256:838c4cffe2519819ae334f2d4a515a1fbd2506a29687b58cd989a08ea6824041 size: 1154
[Pipeline] sh
+ set +x
Removing login credentials for https://index.docker.io/v1/
[Pipeline] sh
+ set +x
Untagged: kyberorg/go-api:stable
Untagged: kyberorg/go-api@sha256:838c4cffe2519819ae334f2d4a515a1fbd2506a29687b58cd989a08ea6824041
Deleted: sha256:eb72ffd7d249552f2df6890902d56480b08a0fdaa6eec5bfcaca90bd647f61dd
Deleted: sha256:264f26290f178f255b44e6ad93229a628f9e6b77d405820b5581a1c6a2f144ae
Deleted: sha256:fdea8f09e484a664fffc40c1e24cff372c4b12b23d009db3e68fd5e6adc01a8b
Deleted: sha256:e2eb9bbd98c73918cad90368782ab37106519a3666feadaeee98fa0ccfc3330b
Deleted: sha256:4b8d50922719f359efb9b9ecaad8e733fab8766fc9083e94842844ccb3429903
Deleted: sha256:bbe732b43433eafe5310f945875b8d2a38439836b5d603525c5dbb0ee91890d3
Deleted: sha256:48a1569e51f4b8428f57745e7922744cddea4d6bbcd017469e94d891c48f2256
Deleted: sha256:d120ec2e6dc5a6d161df1ee9593b1997bc5afea383b1d0d03c75cef0d3625545
Deleted: sha256:fb0e7edc0a3a5758839e8ec95bf6680854113bdab59963151d0c1db22ca3dec0
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Deploy)
[Pipeline] script
[Pipeline] {
[Pipeline] sh
+ set +x
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0
[Pipeline] sleep
Sleeping for 10 sec
[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] // node
[Pipeline] End of Pipeline
GitHub has been notified of this commit’s build result
Finished: SUCCESS