Branch indexing
21:24:03 Connecting to https://api.github.com using kyberorg/****** (Kyberorg GitLab)
Obtained Jenkinsfile from 70680a14f7a727d55b680761e9d3b8c2c36018d9
Running in Durability level: MAX_SURVIVABILITY
Only using first definition of library common-lib
Loading library common-lib@1.5
Attempting to resolve 1.5 from remote references...
> /usr/bin/git --version # timeout=10
> git --version # 'git version 2.20.1'
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.5 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 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.5^{commit} # timeout=10
> /usr/bin/git branch -a -v --no-abbrev --contains f90216fd92143227354f2c35af73dea7afad7e03 # timeout=10
Selected match: master revision f90216fd92143227354f2c35af73dea7afad7e03
using credential CIpwd
Cloning the remote Git repository
Cloning with configured refspecs honoured and without tags
Cloning repository https://gitlab.com/yasys/jenkins/common-lib.git
> /usr/bin/git init /var/lib/jenkins/workspace/GoApi_new-layout@libs/common-lib # timeout=10
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 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
> /usr/bin/git config remote.origin.url https://gitlab.com/yasys/jenkins/common-lib.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://gitlab.com/yasys/jenkins/common-lib.git # timeout=10
Fetching without tags
Fetching upstream changes from https://gitlab.com/yasys/jenkins/common-lib.git
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 f90216fd92143227354f2c35af73dea7afad7e03 (master)
> /usr/bin/git config core.sparsecheckout # timeout=10
> /usr/bin/git checkout -f f90216fd92143227354f2c35af73dea7afad7e03 # timeout=10
Commit message: "Added params "dockerFile" and "buildContext""
First time build. Skipping changelog.
> /usr/bin/git --version # timeout=10
> git --version # 'git version 2.20.1'
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
Cloning the remote Git repository
Cloning with configured refspecs honoured and without tags
Cloning repository https://gitlab.com/yasys/common-pipe.git
> /usr/bin/git init /var/lib/jenkins/workspace/GoApi_new-layout@libs/common-pipe # timeout=10
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
> /usr/bin/git config remote.origin.url https://gitlab.com/yasys/common-pipe.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://gitlab.com/yasys/common-pipe.git # timeout=10
Fetching without tags
Fetching upstream changes from https://gitlab.com/yasys/common-pipe.git
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'"
First time build. Skipping changelog.
> /usr/bin/git --version # timeout=10
> git --version # 'git version 2.20.1'
fatal: bad object f90216fd92143227354f2c35af73dea7afad7e03
[Pipeline] Start of Pipeline
[Pipeline] node
Running on Jenkins in /var/lib/jenkins/workspace/GoApi_new-layout
[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_new-layout # timeout=10
Fetching upstream changes from https://github.com/kyberorg/go-api.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/go-api.git +refs/heads/new-layout:refs/remotes/origin/new-layout # 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/new-layout:refs/remotes/origin/new-layout # 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/new-layout:refs/remotes/origin/new-layout # timeout=10
Checking out Revision 70680a14f7a727d55b680761e9d3b8c2c36018d9 (new-layout)
> /usr/bin/git config core.sparsecheckout # timeout=10
> /usr/bin/git checkout -f 70680a14f7a727d55b680761e9d3b8c2c36018d9 # timeout=10
Commit message: "New layout: layout complete"
First time build. Skipping changelog.
> /usr/bin/git --version # timeout=10
> git --version # 'git version 2.20.1'
fatal: bad object f90216fd92143227354f2c35af73dea7afad7e03
[Pipeline] }
[Pipeline] // stage
[Pipeline] withEnv
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Docker)
[Pipeline] script
[Pipeline] {
[Pipeline] sh
+ set +x
Sending build context to Docker daemon 213.5kB
Step 1/19 : ARG GO_VERSION=1.14
Step 2/19 : FROM golang:${GO_VERSION}-alpine AS builder
---> 4c8eed5b55a0
Step 3/19 : RUN apk update && apk add alpine-sdk git && rm -rf /var/cache/apk/*
---> Using cache
---> 3136944f463a
Step 4/19 : WORKDIR /
---> Using cache
---> cd9aaaed0772
Step 5/19 : COPY go.mod go.sum ./
---> Using cache
---> ac5c6a44fb5d
Step 6/19 : RUN go mod download
---> Using cache
---> 7c948ee8cf1e
Step 7/19 : COPY . .
---> 741ecdb48202
Step 8/19 : RUN go build -gcflags "all=-N -l" -o application main.go
---> Running in b51f26808b30
Removing intermediate container b51f26808b30
---> 00dd85b968b3
Step 9/19 : RUN go get github.com/go-delve/delve/cmd/dlv
---> Running in d620bcda1da3
[91mgo: downloading github.com/go-delve/delve v1.5.0
[0m[91mgo: found github.com/go-delve/delve/cmd/dlv in github.com/go-delve/delve v1.5.0
[0m[91mgo: downloading github.com/spf13/cobra v0.0.0-20170417170307-b6cb39589372
[0m[91mgo: downloading github.com/sirupsen/logrus v1.6.0
[0m[91mgo: downloading github.com/mattn/go-colorable v0.0.0-20170327083344-ded68f7a9561
[0m[91mgo: downloading github.com/inconshreveable/mousetrap v1.0.0
[0m[91mgo: downloading golang.org/x/arch v0.0.0-20190927153633-4e8777c89be4
[0m[91mgo: downloading github.com/hashicorp/golang-lru v0.5.4
[0m[91mgo: downloading github.com/spf13/pflag v0.0.0-20170417173400-9e4c21054fa1
[0m[91mgo: downloading github.com/google/go-dap v0.2.0
[0m[91mgo: downloading github.com/cpuguy83/go-md2man v1.0.10
[0m[91mgo: downloading github.com/cosiner/argv v0.1.0
[0m[91mgo: downloading go.starlark.net v0.0.0-20190702223751-32f345186213
[0m[91mgo: downloading github.com/konsorten/go-windows-terminal-sequences v1.0.3
[0m[91mgo: downloading github.com/peterh/liner v0.0.0-20170317030525-88609521dc4b
[0m[91mgo: downloading github.com/russross/blackfriday v1.5.2
[0mRemoving intermediate container d620bcda1da3
---> 89bed917700b
Step 10/19 : FROM alpine:3.12
---> a24bb4013296
Step 11/19 : RUN apk add --no-cache libc6-compat jq
---> Running in 01ef9674eba1
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/community/x86_64/APKINDEX.tar.gz
(1/4) Upgrading musl (1.1.24-r8 -> 1.1.24-r9)
(2/4) Installing oniguruma (6.9.5-r1)
(3/4) Installing jq (1.6-r1)
(4/4) Installing libc6-compat (1.1.24-r9)
Executing busybox-1.31.1-r16.trigger
OK: 7 MiB in 17 packages
Removing intermediate container 01ef9674eba1
---> 7a3fb210ecee
Step 12/19 : WORKDIR /
---> Running in 98a3451733f8
Removing intermediate container 98a3451733f8
---> 53b1b1cdd7eb
Step 13/19 : COPY --from=builder /application .
---> fed3a03c5c6c
Step 14/19 : COPY --from=builder /go/bin/dlv /
---> f09e9b243c04
Step 15/19 : ADD assets /assets
---> 0d216cbb1a1f
Step 16/19 : EXPOSE 8080 40000
---> Running in 113e7de65e96
Removing intermediate container 113e7de65e96
---> 74f0d31f5cf5
Step 17/19 : ENV GIN_MODE=debug
---> Running in f62ee27f3a3c
Removing intermediate container f62ee27f3a3c
---> 7d2d361101cf
Step 18/19 : CMD ["/dlv", "--continue", "--accept-multiclient", "--listen=:40000", "--headless=true", "--api-version=2", "exec", "/application"]
---> Running in 5244d92db627
Removing intermediate container 5244d92db627
---> 48ddf6bbe761
Step 19/19 : HEALTHCHECK --start-period=20s --interval=5s --timeout=20s --retries=3 CMD curl --silent --request GET http://127.0.0.1:8080/health | jq --exit-status '.status == "UP"' || exit 1
---> Running in 33b747d5d733
Removing intermediate container 33b747d5d733
---> 948e0acb4c91
Successfully built 948e0acb4c91
Successfully tagged kyberorg/go-api:new-layout
[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]
1c3ea084d9cf: Preparing
ce80f0de7dc5: Preparing
cca504576c81: Preparing
07119352d36d: Preparing
50644c29ef5a: Preparing
50644c29ef5a: Layer already exists
1c3ea084d9cf: Pushed
07119352d36d: Pushed
ce80f0de7dc5: Pushed
cca504576c81: Pushed
new-layout: digest: sha256:31c7811c33a957fc1f76f7c38862bbb81ee87ccc5ec8d3c58f78e54b44b385bf size: 1367
[Pipeline] sh
+ set +x
Removing login credentials for https://index.docker.io/v1/
[Pipeline] sh
+ set +x
Untagged: kyberorg/go-api:new-layout
Untagged: kyberorg/go-api@sha256:31c7811c33a957fc1f76f7c38862bbb81ee87ccc5ec8d3c58f78e54b44b385bf
Deleted: sha256:948e0acb4c91ee4095b5c47fea861c2f1b4bdaf1f73a6e17dca128c6c1c5b9f4
Deleted: sha256:48ddf6bbe76111ae3a1a24af234079dd0303434573281d6fd73a9f987a38a42d
Deleted: sha256:7d2d361101cfa26a8bdf467dd0dded504460a8b650f578c1ce51b575f48916b7
Deleted: sha256:74f0d31f5cf5c780bc88426825b356fc687e57b3c85f991ab2b75c9842dd00cd
Deleted: sha256:0d216cbb1a1fe9d5563666107d7b40222827ec51bc994931e9ff9fd78525a1cb
Deleted: sha256:60586e963cf2e79e60c5672298fd67f860924b72a2dd9e617f05459e185d1b93
Deleted: sha256:f09e9b243c04a7f6666c6011b7fcd02981e8e3f36eecd021b85e986c1638fa19
Deleted: sha256:22d699500deaa8e81ca223b0e7fe51939e148a06e594b1a77176ec146b4f4954
Deleted: sha256:fed3a03c5c6c993e6fbbe9346878afe8f68de14b95c1371445eb494a75ece24e
Deleted: sha256:3bdbbbc91ac65573847a1927b8829711f3dd2d2f077032c9779c2a15edc76d4b
Deleted: sha256:53b1b1cdd7ebcccc8d4b49c8f70e1525eec5e985804e5e7093e395458b244bf7
Deleted: sha256:7a3fb210ecee7f466d42a90ad4cc2475c29b92a5d274fb8eb19c9048a32d2e58
Deleted: sha256:504600d8b55062cc20ea98aa2aee06f06a3374949521cd6cdda3d1f5b5c0f906
[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
[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