Branch indexing 16:08:57 Connecting to https://api.github.com using kyberorg/****** (Kyberorg GitLab) Obtained Jenkinsfile from efd2dbf50cdfcc3a2aa11f332f9e1f7dcf3aa46b 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 > /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 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"" > /usr/bin/git rev-list --no-walk f90216fd92143227354f2c35af73dea7afad7e03 # 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_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 efd2dbf50cdfcc3a2aa11f332f9e1f7dcf3aa46b (dev) > /usr/bin/git config core.sparsecheckout # timeout=10 > /usr/bin/git checkout -f efd2dbf50cdfcc3a2aa11f332f9e1f7dcf3aa46b # timeout=10 Commit message: "Dockerfile: healthcheck" > /usr/bin/git rev-list --no-walk ebda21598d3c649d677538a2228bb72c483f75f4 # 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 189.4kB 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 . . ---> 955dd7d7d2ad Step 8/19 : RUN go build -gcflags "all=-N -l" -o application main.go ---> Running in ed2e8003f7f6 Removing intermediate container ed2e8003f7f6 ---> d35745afb2f2 Step 9/19 : RUN go get github.com/go-delve/delve/cmd/dlv ---> Running in d2aad95aeff8 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/hashicorp/golang-lru v0.5.4 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/google/go-dap v0.2.0 go: downloading github.com/cosiner/argv v0.0.0-20170225145430-13bacc38a0a5 go: downloading go.starlark.net v0.0.0-20190702223751-32f345186213 go: downloading github.com/cpuguy83/go-md2man v1.0.10 go: downloading github.com/konsorten/go-windows-terminal-sequences v1.0.3 go: downloading github.com/inconshreveable/mousetrap v1.0.0 go: downloading github.com/russross/blackfriday v1.5.2 go: downloading github.com/spf13/pflag v0.0.0-20170417173400-9e4c21054fa1 Removing intermediate container d2aad95aeff8 ---> 99acde75e99e Step 10/19 : FROM alpine:3.12 ---> a24bb4013296 Step 11/19 : RUN apk add --no-cache libc6-compat jq ---> Running in 3d1bd85e8c77 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 3d1bd85e8c77 ---> 151b9b73522a Step 12/19 : WORKDIR / ---> Running in 0ddd948aaf07 Removing intermediate container 0ddd948aaf07 ---> 5222a8a934c4 Step 13/19 : COPY --from=builder /application . ---> ee331d573fd9 Step 14/19 : COPY --from=builder /go/bin/dlv / ---> cd900eb5fa2e Step 15/19 : ADD assets /assets ---> a355b1fe58b2 Step 16/19 : EXPOSE 8080 40000 ---> Running in bf185a7172e4 Removing intermediate container bf185a7172e4 ---> a00452409496 Step 17/19 : ENV GIN_MODE=debug ---> Running in 38bb859b96da Removing intermediate container 38bb859b96da ---> 830b338f7b67 Step 18/19 : CMD ["/dlv", "--continue", "--accept-multiclient", "--listen=:40000", "--headless=true", "--api-version=2", "exec", "/application"] ---> Running in f4609e6d3182 Removing intermediate container f4609e6d3182 ---> 1223d74ddfe3 Step 19/19 : HEALTHCHECK --start-period=60s --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 1cf2c03e4d0d Removing intermediate container 1cf2c03e4d0d ---> 90874ebe4f46 Successfully built 90874ebe4f46 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] ac623520bd2e: Preparing eeeddc7e4894: Preparing c3f9a7977c40: Preparing 3de80508953b: Preparing 50644c29ef5a: Preparing 50644c29ef5a: Layer already exists ac623520bd2e: Pushed 3de80508953b: Pushed c3f9a7977c40: Pushed eeeddc7e4894: Pushed dev: digest: sha256:f063d66a11cbe5fbe234ddce1f6447aaf77d5c63a7170ea3e34555d617568c75 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:f063d66a11cbe5fbe234ddce1f6447aaf77d5c63a7170ea3e34555d617568c75 Deleted: sha256:90874ebe4f46e3275a94f1aa16d5287123d27aac9cbd46b48f29c6f8e6aea90c Deleted: sha256:1223d74ddfe3e714836b169c61b6a63f3b7b9e2ae27c0affea06322c9c4e85ff Deleted: sha256:830b338f7b6735e07d8475d11ca0f67a6ae39a4487670bf2c7353886dfdcc594 Deleted: sha256:a004524094969248abe367ae7f837345eff03ae484cd715296e84f09466a6bce Deleted: sha256:a355b1fe58b254adffc384cfdd1de14ad8fbf529347db2ac01668749a01a4ec7 Deleted: sha256:84ac0ac4acd7db14eb0ab78523d3b127832730772ca8ebf10670b15b3a6d313a Deleted: sha256:cd900eb5fa2e047f8cd37650ba4d924558070a1442acd007ffc4404cf02814ae Deleted: sha256:b783df1cfcda742d777863660995fc5fce3036ddeca2dde4ab66f381a40b528b Deleted: sha256:ee331d573fd9eacf927ee6620f1494250d72f8848ad6e17b87daf52201366f34 Deleted: sha256:1d5d129fbbc02bd81bf18957d7b84c9fbe3e7060aa855e67a901233633e688c5 Deleted: sha256:5222a8a934c4a5b6f3ba0c5faeb65075b8e9662ec7fd0b9b44e3f5ba041a101c Deleted: sha256:151b9b73522ae0d4e692245b9cdaec0ee16f2f22b5a71ddf03c2ee02eff9e267 Deleted: sha256:783c5693c635783c06b5562c06b21c0c55ba033573b0a22665a22963fa51e95f [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