Branch indexing 15:34: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_new-module@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_new-module@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_new-module [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-module # 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/new-module:refs/remotes/origin/new-module # 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-module:refs/remotes/origin/new-module # 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-module:refs/remotes/origin/new-module # timeout=10 Checking out Revision ebda21598d3c649d677538a2228bb72c483f75f4 (new-module) > /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 ./ ---> ac5c6a44fb5d Step 6/18 : RUN go mod download ---> Running in bbb9714e4f59 Removing intermediate container bbb9714e4f59 ---> 7c948ee8cf1e Step 7/18 : COPY . . ---> 1d40df5acdc9 Step 8/18 : RUN go build -gcflags "all=-N -l" -o application main.go ---> Running in 8179b797a555 Removing intermediate container 8179b797a555 ---> f409b70ed67b Step 9/18 : RUN go get github.com/go-delve/delve/cmd/dlv ---> Running in 84c205082245 go: downloading github.com/go-delve/delve v1.4.1 go: found github.com/go-delve/delve/cmd/dlv in github.com/go-delve/delve v1.4.1 go: downloading github.com/spf13/cobra v0.0.0-20170417170307-b6cb39589372 go: downloading github.com/sirupsen/logrus v1.6.0 go: downloading github.com/peterh/liner v0.0.0-20170317030525-88609521dc4b go: downloading github.com/mattn/go-colorable v0.0.0-20170327083344-ded68f7a9561 go: downloading golang.org/x/arch v0.0.0-20190927153633-4e8777c89be4 go: downloading github.com/cosiner/argv v0.0.0-20170225145430-13bacc38a0a5 go: downloading github.com/cpuguy83/go-md2man v1.0.10 go: downloading github.com/hashicorp/golang-lru v0.5.4 go: downloading go.starlark.net v0.0.0-20190702223751-32f345186213 go: downloading github.com/inconshreveable/mousetrap v1.0.0 go: downloading github.com/google/go-dap v0.2.0 go: downloading github.com/spf13/pflag v0.0.0-20170417173400-9e4c21054fa1 go: downloading github.com/konsorten/go-windows-terminal-sequences v1.0.3 go: downloading github.com/russross/blackfriday v1.5.2 Removing intermediate container 84c205082245 ---> 9f2ad1254be2 Step 10/18 : FROM alpine:3.12 ---> a24bb4013296 Step 11/18 : RUN apk add --no-cache libc6-compat ---> Running in 1138bd45e499 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 1138bd45e499 ---> 75ce45b5f271 Step 12/18 : WORKDIR / ---> Running in becb9d3923ce Removing intermediate container becb9d3923ce ---> 88aeb393488b Step 13/18 : COPY --from=builder /application . ---> a6751f25c9d5 Step 14/18 : COPY --from=builder /go/bin/dlv / ---> 0abc5f50f8d4 Step 15/18 : ADD assets /assets ---> 0ea763b089bb Step 16/18 : EXPOSE 8080 40000 ---> Running in 60eb07df17bd Removing intermediate container 60eb07df17bd ---> 1c5b36bcc624 Step 17/18 : ENV GIN_MODE=debug ---> Running in 0e41a0e6cbbb Removing intermediate container 0e41a0e6cbbb ---> cbf407231b27 Step 18/18 : CMD ["/dlv", "--continue", "--accept-multiclient", "--listen=:40000", "--headless=true", "--api-version=2", "exec", "/application"] ---> Running in bc8e43c9b1cf Removing intermediate container bc8e43c9b1cf ---> 7163c5d0cc72 Successfully built 7163c5d0cc72 Successfully tagged kyberorg/go-api:new-module [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] 84c6159a73b1: Preparing 3546e59e6e9c: Preparing 4cf9baa84482: Preparing f954afe22633: Preparing 50644c29ef5a: Preparing 50644c29ef5a: Layer already exists 84c6159a73b1: Pushed f954afe22633: Pushed 3546e59e6e9c: Pushed 4cf9baa84482: Pushed new-module: digest: sha256:4819e62353f77d56aaecc99dab6ac277d92c46abb5789295cf3066254c02ef8f size: 1367 [Pipeline] sh + set +x Removing login credentials for https://index.docker.io/v1/ [Pipeline] sh + set +x Untagged: kyberorg/go-api:new-module Untagged: kyberorg/go-api@sha256:4819e62353f77d56aaecc99dab6ac277d92c46abb5789295cf3066254c02ef8f Deleted: sha256:7163c5d0cc722fe7b68bc1dac44f5512aa606ad602868ad1258a52e97fc62e3b Deleted: sha256:cbf407231b27815478f248e3e8bc9f62c9d5466693252e08ee77ba7668c32c65 Deleted: sha256:1c5b36bcc624609073f6c5a250f96ed033d79591d7deee3a326f61967c2930c3 Deleted: sha256:0ea763b089bb1c0c19e2a64ac8c63dab93bc812f51e549f80ac0427b93d42cd5 Deleted: sha256:25c713f7cd4a26a6aa9c32a7919eff0083c43cfec0818256d1ebbef9e29476cb Deleted: sha256:0abc5f50f8d43cdbedd82ab5d779e7fe268edc002c17b8f09326418ab5595793 Deleted: sha256:2334dd17954c9855cd72aae3bde3127d16a332012718eba4d54e2a1bea4f888f Deleted: sha256:a6751f25c9d57abb61c4d500ffa8abb49a9d5173baf40319d3ea26fb25de2c4a Deleted: sha256:3669ac7eb6dce98ca2fbfb35eb11a7ded53d163ed15b4a35f22ed138778c8c90 Deleted: sha256:88aeb393488b839d6b2f2669161dba3259c8c00a93ecc7d624b771340fe3eb0f Deleted: sha256:75ce45b5f27118049374c713c465e90b50f11966bf04e6dc665e5884ec4e2c47 Deleted: sha256:1d9c81e08f7fdb6532347e1b047bfea210d93e02a43e681d98f414b19c6ff17b [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