Branch indexing
15:44:03 Connecting to https://api.github.com using kyberorg/****** (Kyberorg GitLab)
Obtained Jenkinsfile from ebda21598d3c649d677538a2228bb72c483f75f4
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
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
> /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_dev@libs/common-lib # timeout=10
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
> /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
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
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_dev@libs/common-pipe # timeout=10
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
> /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
fatal: bad object f90216fd92143227354f2c35af73dea7afad7e03
[Pipeline] Start of Pipeline
[Pipeline] node
Running on Jenkins in /var/lib/jenkins/workspace/GoApi_dev
[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_dev # 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/dev:refs/remotes/origin/dev # 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/dev:refs/remotes/origin/dev # 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/dev:refs/remotes/origin/dev # timeout=10
Checking out Revision ebda21598d3c649d677538a2228bb72c483f75f4 (dev)
> /usr/bin/git config core.sparsecheckout # timeout=10
> /usr/bin/git checkout -f ebda21598d3c649d677538a2228bb72c483f75f4 # timeout=10
Commit message: "Migrated to new module name"
First time build. Skipping changelog.
> /usr/bin/git --version # timeout=10
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 188.4kB
Step 1/18 : ARG GO_VERSION=1.14
Step 2/18 : FROM golang:${GO_VERSION}-alpine AS builder
---> 4c8eed5b55a0
Step 3/18 : RUN apk update && apk add alpine-sdk git && rm -rf /var/cache/apk/*
---> Using cache
---> 3136944f463a
Step 4/18 : WORKDIR /
---> Using cache
---> cd9aaaed0772
Step 5/18 : COPY go.mod go.sum ./
---> Using cache
---> ac5c6a44fb5d
Step 6/18 : RUN go mod download
---> Using cache
---> 7c948ee8cf1e
Step 7/18 : COPY . .
---> 9556dde8cd20
Step 8/18 : RUN go build -gcflags "all=-N -l" -o application main.go
---> Running in 7ce41622b984
Removing intermediate container 7ce41622b984
---> fb2a2049875e
Step 9/18 : RUN go get github.com/go-delve/delve/cmd/dlv
---> Running in 3eb5159bbe85
[91mgo: downloading github.com/go-delve/delve v1.4.1
[0m[91mgo: found github.com/go-delve/delve/cmd/dlv in github.com/go-delve/delve v1.4.1
[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/peterh/liner v0.0.0-20170317030525-88609521dc4b
[0m[91mgo: downloading golang.org/x/arch v0.0.0-20190927153633-4e8777c89be4
[0m[91mgo: downloading github.com/cosiner/argv v0.0.0-20170225145430-13bacc38a0a5
[0m[91mgo: downloading go.starlark.net v0.0.0-20190702223751-32f345186213
[0m[91mgo: downloading github.com/google/go-dap v0.2.0
[0m[91mgo: downloading github.com/konsorten/go-windows-terminal-sequences v1.0.3
[0m[91mgo: downloading github.com/hashicorp/golang-lru v0.5.4
[0m[91mgo: downloading github.com/inconshreveable/mousetrap v1.0.0
[0m[91mgo: downloading github.com/cpuguy83/go-md2man v1.0.10
[0m[91mgo: downloading github.com/spf13/pflag v0.0.0-20170417173400-9e4c21054fa1
[0m[91mgo: downloading github.com/russross/blackfriday v1.5.2
[0mRemoving intermediate container 3eb5159bbe85
---> 1760b2c943df
Step 10/18 : FROM alpine:3.12
---> a24bb4013296
Step 11/18 : RUN apk add --no-cache libc6-compat
---> Running in 80030bf53f2d
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/2) Upgrading musl (1.1.24-r8 -> 1.1.24-r9)
(2/2) Installing libc6-compat (1.1.24-r9)
OK: 6 MiB in 15 packages
Removing intermediate container 80030bf53f2d
---> 092fd62da43d
Step 12/18 : WORKDIR /
---> Running in fffa2fff219c
Removing intermediate container fffa2fff219c
---> 10be4c995e81
Step 13/18 : COPY --from=builder /application .
---> 481190ceed90
Step 14/18 : COPY --from=builder /go/bin/dlv /
---> 311f9b6ae359
Step 15/18 : ADD assets /assets
---> 6577b51cd278
Step 16/18 : EXPOSE 8080 40000
---> Running in f405b4ac4016
Removing intermediate container f405b4ac4016
---> abda23c75452
Step 17/18 : ENV GIN_MODE=debug
---> Running in ce8a75931d19
Removing intermediate container ce8a75931d19
---> 929a1ddade95
Step 18/18 : CMD ["/dlv", "--continue", "--accept-multiclient", "--listen=:40000", "--headless=true", "--api-version=2", "exec", "/application"]
---> Running in cb6ce13a95ef
Removing intermediate container cb6ce13a95ef
---> 6f68714726b9
Successfully built 6f68714726b9
Successfully tagged kyberorg/go-api:dev
[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]
b71892f5edcc: Preparing
b103ca7f8eb6: Preparing
bc6d2c432325: Preparing
66de00b2a33b: Preparing
50644c29ef5a: Preparing
50644c29ef5a: Layer already exists
b71892f5edcc: Pushed
66de00b2a33b: Pushed
b103ca7f8eb6: Pushed
bc6d2c432325: Pushed
dev: digest: sha256:8e0bdc6228f4bfc50e648ede5f2f93dc6b17ab086b7b9bb9bcf5d71581685dcf size: 1367
[Pipeline] sh
+ set +x
Removing login credentials for https://index.docker.io/v1/
[Pipeline] sh
+ set +x
Untagged: kyberorg/go-api:dev
Untagged: kyberorg/go-api@sha256:8e0bdc6228f4bfc50e648ede5f2f93dc6b17ab086b7b9bb9bcf5d71581685dcf
Deleted: sha256:6f68714726b942e90aeb6f231c3b7f5458f438472707d789576f581d0ebaf9e6
Deleted: sha256:929a1ddade95c43cdf12ce4e732ea4abaca5fcd291c19e93a8c03e93fc447a48
Deleted: sha256:abda23c7545213ec55d3eb399e725f683626908611f755f2dc1cb4bc82254798
Deleted: sha256:6577b51cd278786e815c301717d95e3a4c4753afed06f0d20485762098cfb5f2
Deleted: sha256:d65c150ce8c6c424ceb3a90d51c34df3022d1af80e6776fcaf35ce71be03b93a
Deleted: sha256:311f9b6ae35948faf2cc2b444131add6bd9913a7ab8631c7aa158f0eb87f649d
Deleted: sha256:a7d9a033875d8e778bf79b2bd78e668891177e1e0327808aa73a663027122b73
Deleted: sha256:481190ceed9029a55c2de14034b2c02b088eef9927c216fa67f0d518860b92bf
Deleted: sha256:28b6aafd15592fcc4dd7b79315d8773da2871b1983d086e700401d9512befa00
Deleted: sha256:10be4c995e819bd5f68862cfc6ad8714b77e6bfb85d7e097314be0c7d398f06a
Deleted: sha256:092fd62da43d9e6e5d95784c11e3d16cb84f6f48d4cf7ab5cdd75b64922b5de2
Deleted: sha256:f459085cbbc257681ad41c74ceffdc449f1767aa2e8ea1467072d630ef3f4924
[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