Console Output
Branch indexing
12:08:02 Connecting to https://api.github.com using kyberorg/****** (Kyberorg GitLab)
Obtained Jenkinsfile from 1400d28e304404249dcec541736e7226f3218c72
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 1400d28e304404249dcec541736e7226f3218c72 (master)
> /usr/bin/git config core.sparsecheckout # timeout=10
> /usr/bin/git checkout -f 1400d28e304404249dcec541736e7226f3218c72 # timeout=10
Commit message: "bCrypt Cost updated and fixing bug"
> /usr/bin/git rev-list --no-walk 975afa99d0ebec709cd8ae7923a9d950b8ec3d5d # 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 138.2kB
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
---> ce34dd846aab
Step 7/17 : COPY go.sum .
---> Using cache
---> 0017ed56cb03
Step 8/17 : RUN go mod download
---> Using cache
---> ef9850b268c0
Step 9/17 : COPY . .
---> 70bd5eea8596
Step 10/17 : RUN go build -o application main.go
---> Running in ef65cbac0a57
Removing intermediate container ef65cbac0a57
---> 5a6cf91c9ff9
Step 11/17 : FROM alpine:3.12
---> a24bb4013296
Step 12/17 : RUN mkdir -p /api
---> Running in 488e28f2c56a
Removing intermediate container 488e28f2c56a
---> 5ac4a9272c59
Step 13/17 : WORKDIR /api
---> Running in 90be5efe679f
Removing intermediate container 90be5efe679f
---> c686ccf68bdf
Step 14/17 : COPY --from=builder /api/application .
---> f990c45a3716
Step 15/17 : ADD assets /api/assets
---> 2f3fc6e6cbf6
Step 16/17 : EXPOSE 8080
---> Running in 672c05322d37
Removing intermediate container 672c05322d37
---> d4765478251f
Step 17/17 : ENTRYPOINT ["./application"]
---> Running in e5b25e183e83
Removing intermediate container e5b25e183e83
---> 3bd43e57460c
Successfully built 3bd43e57460c
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]
39a3826ad019: Preparing
42974538fae7: Preparing
b0837d31cffc: Preparing
50644c29ef5a: Preparing
50644c29ef5a: Layer already exists
39a3826ad019: Pushed
b0837d31cffc: Pushed
42974538fae7: Pushed
stable: digest: sha256:6acfa24033e9b8ea02159c128e1e3ea9114073b9cbac77a475c901b1da3d523f 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:6acfa24033e9b8ea02159c128e1e3ea9114073b9cbac77a475c901b1da3d523f
Deleted: sha256:3bd43e57460c82d0f9ca6a5bd9b7f39748ccd9b313ed0e5374339b445c9fd5ee
Deleted: sha256:d4765478251f90c4ad45b9fa364eef62b5d60f6efc497863c1ef7edb9fad00fe
Deleted: sha256:2f3fc6e6cbf6cd8520ef666080e3908650e4040a00cefadc5d9728ff4958a19d
Deleted: sha256:fb142bcfad9933a841304e612a874f78ab7f2c7396f3e132acf96ce4a9707ee8
Deleted: sha256:f990c45a37165c0627000a2ed415404ce6f2dca2df87e2c2a58d59d955c58d53
Deleted: sha256:f1369ccb8f818febed5e0a8f1b12e72d7cac33ebd600ce666925299bd3c8030e
Deleted: sha256:c686ccf68bdf5ed7c9151913a562beedad0da015e856ca8b5c065ff0dcb77d2e
Deleted: sha256:5ac4a9272c59bb057d9cdad968f529faa635bbeb8b02d73b8db0c3a0bae7e28e
Deleted: sha256:755953a5b80b00c0014be0d88c5a4c3e732d54852098cc077857c770ec0e787c
[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: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
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