Branch indexing Connecting to https://api.github.com using kyberorg/****** (Kyberorg GitLab) Obtained Jenkinsfile from 922c61415cf972d59acf8949701266a4292425e0 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 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 922c61415cf972d59acf8949701266a4292425e0 (master) > /usr/bin/git config core.sparsecheckout # timeout=10 > /usr/bin/git checkout -f 922c61415cf972d59acf8949701266a4292425e0 # timeout=10 Commit message: "Dockerfile debug feature and bugfix" > /usr/bin/git rev-list --no-walk ec7ba5488f63da21334f1aa29653088c166e4f70 # 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 185.3kB Step 1/15 : ARG GO_VERSION=1.14 Step 2/15 : FROM golang:${GO_VERSION}-alpine AS builder ---> 4c8eed5b55a0 Step 3/15 : RUN apk update && apk add alpine-sdk git && rm -rf /var/cache/apk/* ---> Using cache ---> 3136944f463a Step 4/15 : WORKDIR / ---> Using cache ---> cd9aaaed0772 Step 5/15 : COPY go.mod go.sum ./ ---> Using cache ---> 0ae8e282f0c0 Step 6/15 : RUN go mod download ---> Using cache ---> 0d8c3820704b Step 7/15 : COPY . . ---> 5925f737722e Step 8/15 : RUN go build -o application main.go ---> Running in b9a686733424 Removing intermediate container b9a686733424 ---> ad63db8dff31 Step 9/15 : FROM alpine:3.12 ---> a24bb4013296 Step 10/15 : WORKDIR / ---> Running in 6b90f1d6d72d Removing intermediate container 6b90f1d6d72d ---> 651ad3727132 Step 11/15 : COPY --from=builder /application . ---> 6a97f91243f6 Step 12/15 : ADD assets /assets ---> bdd2bac682b8 Step 13/15 : EXPOSE 8080 ---> Running in 6a06e4d4201b Removing intermediate container 6a06e4d4201b ---> 7c8565abe686 Step 14/15 : ENV GIN_MODE=release ---> Running in 3984b050b4ea Removing intermediate container 3984b050b4ea ---> b5b5ac97e9d6 Step 15/15 : ENTRYPOINT ["./application"] ---> Running in 27feaee3ca82 Removing intermediate container 27feaee3ca82 ---> 8d7c483e2ebe Successfully built 8d7c483e2ebe 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] f0d5cbbf037d: Preparing cfa70e031229: Preparing 50644c29ef5a: Preparing 50644c29ef5a: Layer already exists f0d5cbbf037d: Pushed cfa70e031229: Pushed stable: digest: sha256:c5e78788d756d789789e9419c55e42bf6491df2c73ca29d85f3a8b992fe7a6d0 size: 947 [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:c5e78788d756d789789e9419c55e42bf6491df2c73ca29d85f3a8b992fe7a6d0 Deleted: sha256:8d7c483e2ebe0397db5437f1e44b1f9c2eb9f970e6cc86ddd8096d455d4ead14 Deleted: sha256:b5b5ac97e9d6c2b8ad1d8aed2f23fcc5093dfca59781c0e4bb8f39207cfd621a Deleted: sha256:7c8565abe6863fe10cab187b7cdaf3585643a49334ccecde574fe4a1602a5a4c Deleted: sha256:bdd2bac682b849dd627fb1185bbfd63ac3059bffc93896071d9fc46e9f1aae25 Deleted: sha256:041bae177ee60036c3b6c7aaec88c34ac03d1c072af8e8aa8cb89d066304be99 Deleted: sha256:6a97f91243f60265ba19b07bfa0442e96b2bb7dc843bf5eb379d9bbf5b0c8593 Deleted: sha256:4683d86c278bdaa3c4c4dc0bac71ca4063d09eeca740db2a6281902250bd8942 Deleted: sha256:651ad3727132c0f9b3719b883be9fa816d2438d2810d30eaf453c8fdaba445f1 [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