Pull request #265 opened Connecting to https://api.github.com using edgex-jenkins github personal access token Connecting to https://api.github.com to check permissions of obtain list of lenny-intel for edgexfoundry/device-rest-go Obtained Jenkinsfile from 3ba891808935b23585d79dbe78f724fdbb1fc05a+c4a62108a817389daed93061827783c9b25eff67 (037da5a965c53769ab553f484f2c6f8e0e0cfc84) Loading library edgex-global-pipelines@stable Attempting to resolve stable from remote references... > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /tmp/jenkins-gitclient-ssh4922014097438444595.key > git ls-remote -h -t -- git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Found match: refs/tags/stable revision 66200e8eedfc470904d6b329e562ec5b45423d6a Resolving tag commit... (remote references may be a lightweight tag or an annotated tag) > git rev-parse --resolve-git-dir /var/lib/jenkins/caches/git-95b00d7e16de695d9f4849f078f37a0f/.git # timeout=10 Setting origin to git@github.com:edgexfoundry/edgex-global-pipelines.git > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Fetching origin... Fetching upstream changes from origin > git --version # timeout=10 > git --version # 'git version 2.16.6' > git config --get remote.origin.url # timeout=10 using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/caches/git-95b00d7e16de695d9f4849f078f37a0f@tmp/jenkins-gitclient-ssh3370828355623617664.key > git fetch --tags --progress -- origin +refs/heads/*:refs/remotes/origin/* # timeout=10 > git rev-parse refs/tags/stable^{commit} # timeout=10 Resolved tag stable revision 66200e8eedfc470904d6b329e562ec5b45423d6a The recommended git tool is: git using credential edgex-jenkins-ssh Cloning the remote Git repository Cloning with configured refspecs honoured and with tags Cloning repository git@github.com:edgexfoundry/edgex-global-pipelines.git > git init /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-265/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82 # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/edgex-global-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-265/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh8799429493900842807.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 > git config --add remote.origin.fetch +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Fetching with tags Fetching upstream changes from git@github.com:edgexfoundry/edgex-global-pipelines.git using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-265/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh17976787932934331954.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision 66200e8eedfc470904d6b329e562ec5b45423d6a (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f 66200e8eedfc470904d6b329e562ec5b45423d6a # timeout=10 Commit message: "feat: add capability to use golang 1.20 (#427)" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 > git --version # timeout=10 > git --version # 'git version 2.16.6' Excluding src/test/ from checkout of git git@github.com:edgexfoundry/edgex-global-pipelines.git so that library test code cannot be accessed by Pipelines. To remove this log message, move the test code outside of src/. To restore the previous behavior that allowed access to files in src/test/, pass -Dorg.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.INCLUDE_SRC_TEST_IN_LIBRARIES=true to the java command used to start Jenkins. Loading library lf-pipelines@master Attempting to resolve master from remote references... > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /tmp/jenkins-gitclient-ssh6118216033671234100.key > git ls-remote -h -- git@github.com:lfit/releng-pipelines.git # timeout=10 Found match: refs/heads/master revision 65355178549468b165f8106641c96c3190b1d843 The recommended git tool is: NONE using credential edgex-jenkins-ssh Cloning the remote Git repository Cloning with configured refspecs honoured and without tags Cloning repository git@github.com:lfit/releng-pipelines.git > git init /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-265/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e # timeout=10 Fetching upstream changes from git@github.com:lfit/releng-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-265/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e@tmp/jenkins-gitclient-ssh12750667017861076834.key > git fetch --no-tags --progress -- git@github.com:lfit/releng-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:lfit/releng-pipelines.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 Avoid second fetch Checking out Revision 65355178549468b165f8106641c96c3190b1d843 (master) > git config core.sparsecheckout # timeout=10 > git checkout -f 65355178549468b165f8106641c96c3190b1d843 # timeout=10 Commit message: "Fix: Add S3 URL in href to ship logs" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 > git --version # timeout=10 > git --version # 'git version 2.16.6' fatal: bad object 66200e8eedfc470904d6b329e562ec5b45423d6a Excluding src/test/ from checkout of git git@github.com:lfit/releng-pipelines.git so that library test code cannot be accessed by Pipelines. To remove this log message, move the test code outside of src/. To restore the previous behavior that allowed access to files in src/test/, pass -Dorg.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.INCLUDE_SRC_TEST_IN_LIBRARIES=true to the java command used to start Jenkins. [Pipeline] Start of Pipeline [Pipeline] echo ========================================================= [edgeXBuildGoApp] RAW Config: [project:device-rest-go] ========================================================= [Pipeline] echo Setting up nodes based on requested architectures [[amd64, arm64]] [Pipeline] echo Nodes requested: [[ubuntu20.04-docker-8c-8g, ubuntu20.04-docker-arm64-4c-16g]] [Pipeline] echo ========================================================= [edgeXBuildGoApp] Pipeline Parameters: ========================================================= [Pipeline] echo MAVEN_SETTINGS: device-rest-go-settings PROJECT: device-rest-go USE_SEMVER: true TEST_SCRIPT: make test BUILD_SCRIPT: make build GO_VERSION: 1.20 USE_ALPINE: true DOCKER_FILE_PATH: Dockerfile DOCKER_BUILD_FILE_PATH: Dockerfile.build DOCKER_BUILD_CONTEXT: . DOCKER_BUILD_IMAGE_TARGET: builder DOCKER_IMAGE_NAME: device-rest DOCKER_REGISTRY_NAMESPACE: DOCKER_NEXUS_REPO: staging BUILD_DOCKER_IMAGE: true PUSH_DOCKER_IMAGE: true BUILD_EXPERIMENTAL_DOCKER_IMAGE: false BUILD_STABLE_DOCKER_IMAGE: false SEMVER_BUMP_LEVEL: pre BUILD_SNAP: false PUBLISH_SWAGGER_DOCS: false SWAGGER_API_FOLDERS: openapi/v1 ARTIFACT_ROOT: archives/bin ARTIFACT_TYPES: docker SHOULD_BUILD: true BUILD_FAILURE_NOTIFY_LIST: edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org SNYK_DEBUG: false [Pipeline] node Running on prd-ubuntu20.04-docker-8c-8g-241 in /w/workspace/gexfoundry_device-rest-go_PR-265 [Pipeline] { [Pipeline] stage [Pipeline] { (Declarative: Checkout SCM) [Pipeline] checkout The recommended git tool is: git using credential edgex-jenkins-ssh Cloning the remote Git repository Cloning repository git@github.com:edgexfoundry/device-rest-go.git > git init /w/workspace/gexfoundry_device-rest-go_PR-265 # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git > git --version # timeout=10 > git --version # 'git version 2.25.1' using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/265/head:refs/remotes/origin/PR-265 +refs/heads/main:refs/remotes/origin/main # timeout=10 Merging remotes/origin/main commit c4a62108a817389daed93061827783c9b25eff67 into PR head commit 3ba891808935b23585d79dbe78f724fdbb1fc05a Merge succeeded, producing 3ba891808935b23585d79dbe78f724fdbb1fc05a Checking out Revision 3ba891808935b23585d79dbe78f724fdbb1fc05a (PR-265) > git config core.sparsecheckout # timeout=10 > git checkout -f 3ba891808935b23585d79dbe78f724fdbb1fc05a # timeout=10 > git remote # timeout=10 > git config --get remote.origin.url # timeout=10 using GIT_SSH to set credentials SSH Credentials for GitHub > git merge c4a62108a817389daed93061827783c9b25eff67 # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 3ba891808935b23585d79dbe78f724fdbb1fc05a # timeout=10 Commit message: "build: Update to Go 1.20, Alpine 3.17 and linter v1.51.2" First time build. Skipping changelog. > git --version # timeout=10 > git --version # 'git version 2.25.1' fatal: bad object 66200e8eedfc470904d6b329e562ec5b45423d6a [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 20:18:00 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 20:18:00 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 20:18:01 ========================================================= 20:18:01 EdgeX Global Pipelines Version Info 20:18:01 ========================================================= [Pipeline] libraryResource [Pipeline] sh 20:18:01 ------------------- 20:18:01 stable info: 20:18:01 ------------------- 20:18:01 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 20:18:01 Commit SHA: 66200e8eedfc470904d6b329e562ec5b45423d6a 20:18:01 Message: update stable to v1.0.245 20:18:02 ------------------- 20:18:02 experimental info: 20:18:02 ------------------- 20:18:02 Commited By: **** collab-it+edgex@linuxfoundation.org 20:18:02 Commit SHA: 66200e8eedfc470904d6b329e562ec5b45423d6a 20:18:02 Message: update experimental to v1.0.245 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 20:18:02 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 20:18:02 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 20:18:02 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 20:18:02 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 20:18:02 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 20:18:02 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.20 [Pipeline] echo 20:18:02 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 20:18:03 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 20:18:03 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 20:18:03 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 20:18:03 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 20:18:03 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 20:18:03 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 20:18:03 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 20:18:03 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 20:18:03 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 20:18:03 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 20:18:03 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 20:18:03 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 20:18:03 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 20:18:03 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 20:18:03 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 20:18:03 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 20:18:03 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 20:18:03 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 20:18:03 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 20:18:03 [edgeXSetupEnvironment]: set envvar SNYK_DEBUG = false [Pipeline] echo 20:18:03 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-265 [Pipeline] echo 20:18:03 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-265 [Pipeline] echo 20:18:03 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-265 [Pipeline] echo 20:18:03 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 3ba891808935b23585d79dbe78f724fdbb1fc05a [Pipeline] echo 20:18:03 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 3ba8918 [Pipeline] echo 20:18:04 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 20:18:04 provisioning config files... 20:18:04 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-265@tmp/config17526199331535216967tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:18:04 ---> docker-login.sh 20:18:04 nexus3.edgexfoundry.org:10001 20:18:04 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:18:04 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:18:04 Configure a credential helper to remove this warning. See 20:18:04 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:18:04 20:18:04 Login Succeeded 20:18:04 nexus3.edgexfoundry.org:10002 20:18:04 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:18:04 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:18:04 Configure a credential helper to remove this warning. See 20:18:04 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:18:04 20:18:04 Login Succeeded 20:18:04 nexus3.edgexfoundry.org:10003 20:18:05 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:18:05 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:18:05 Configure a credential helper to remove this warning. See 20:18:05 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:18:05 20:18:05 Login Succeeded 20:18:05 nexus3.edgexfoundry.org:10004 20:18:05 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:18:05 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:18:05 Configure a credential helper to remove this warning. See 20:18:05 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:18:05 20:18:05 Login Succeeded 20:18:05 docker.io 20:18:05 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:18:05 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:18:05 Configure a credential helper to remove this warning. See 20:18:05 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:18:05 20:18:05 Login Succeeded 20:18:05 ---> docker-login.sh ends [Pipeline] } 20:18:05 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 20:18:05 + git rev-list -1 --merges 3ba891808935b23585d79dbe78f724fdbb1fc05a~1..3ba891808935b23585d79dbe78f724fdbb1fc05a [Pipeline] echo 20:18:06 -----------> git rev-list -1 --merges 3ba891808935b23585d79dbe78f724fdbb1fc05a~1..3ba891808935b23585d79dbe78f724fdbb1fc05a 3ba891808935b23585d79dbe78f724fdbb1fc05a [false] [Pipeline] sh 20:18:06 + git log --format=format:%s -1 3ba891808935b23585d79dbe78f724fdbb1fc05a [Pipeline] echo 20:18:06 ========================================================= 20:18:06 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 20:18:06 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 20:18:06 + git log --format=format:%s -1 3ba891808935b23585d79dbe78f724fdbb1fc05a [Pipeline] echo 20:18:06 [semverPrep] GIT_COMMIT: 3ba891808935b23585d79dbe78f724fdbb1fc05a, Commit Message: build: Update to Go 1.20, Alpine 3.17 and linter v1.51.2 [Pipeline] echo 20:18:06 [semverPrep] This is not a build commit. [Pipeline] sh 20:18:07 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 20:18:07 + grep -v github /etc/ssh/ssh_known_hosts 20:18:07 + [ -e /tmp/ssh_known_hosts ] 20:18:07 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 20:18:07 + + echosudo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= tee 20:18:07 -a /etc/ssh/ssh_known_hosts 20:18:07 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:18:07 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 20:18:07 20:18:07 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:18:08 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 20:18:08 0.1.4: Pulling from edgex-devops/py-git-semver 20:18:08 b85a868b505f: Pulling fs layer 20:18:08 e2be974225ed: Pulling fs layer 20:18:08 339a4e72a1f5: Pulling fs layer 20:18:08 988bab9f4d93: Pulling fs layer 20:18:08 1469e6f7b9e6: Pulling fs layer 20:18:08 988bab9f4d93: Waiting 20:18:08 eaf3925da568: Pulling fs layer 20:18:08 bab4dde63d76: Pulling fs layer 20:18:08 1469e6f7b9e6: Waiting 20:18:08 eaf3925da568: Waiting 20:18:08 bde34c3a00c8: Pulling fs layer 20:18:08 b352a97aabf1: Pulling fs layer 20:18:08 bab4dde63d76: Waiting 20:18:08 bde34c3a00c8: Waiting 20:18:08 4872d77fe225: Pulling fs layer 20:18:08 5851b861e8e6: Pulling fs layer 20:18:08 b352a97aabf1: Waiting 20:18:08 4872d77fe225: Waiting 20:18:08 e2be974225ed: Verifying Checksum 20:18:08 e2be974225ed: Download complete 20:18:08 988bab9f4d93: Verifying Checksum 20:18:08 988bab9f4d93: Download complete 20:18:08 1469e6f7b9e6: Verifying Checksum 20:18:08 1469e6f7b9e6: Download complete 20:18:08 eaf3925da568: Download complete 20:18:08 339a4e72a1f5: Verifying Checksum 20:18:08 339a4e72a1f5: Download complete 20:18:08 bde34c3a00c8: Download complete 20:18:08 b352a97aabf1: Download complete 20:18:08 4872d77fe225: Verifying Checksum 20:18:08 4872d77fe225: Download complete 20:18:08 5851b861e8e6: Download complete 20:18:08 b85a868b505f: Verifying Checksum 20:18:08 b85a868b505f: Download complete 20:18:08 bab4dde63d76: Verifying Checksum 20:18:08 bab4dde63d76: Download complete 20:18:09 b85a868b505f: Pull complete 20:18:09 e2be974225ed: Pull complete 20:18:10 339a4e72a1f5: Pull complete 20:18:10 988bab9f4d93: Pull complete 20:18:10 1469e6f7b9e6: Pull complete 20:18:10 eaf3925da568: Pull complete 20:18:12 bab4dde63d76: Pull complete 20:18:12 bde34c3a00c8: Pull complete 20:18:12 b352a97aabf1: Pull complete 20:18:12 4872d77fe225: Pull complete 20:18:12 5851b861e8e6: Pull complete 20:18:12 Digest: sha256:59a28aa3b44c0bc56b9c3d2e9ecabe42e63693d939cc6e425eb8786f29f663d8 20:18:12 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 20:18:12 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 20:18:12 prd-ubuntu20.04-docker-8c-8g-241 does not seem to be running inside a container 20:18:12 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/gexfoundry_device-rest-go_PR-265 -v /w/workspace/gexfoundry_device-rest-go_PR-265:/w/workspace/gexfoundry_device-rest-go_PR-265:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-265@tmp:/w/workspace/gexfoundry_device-rest-go_PR-265@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 cat 20:18:13 $ docker top 445a454c7b2055f5be0ba35b252774dd01f36ca3f3f58ef8cb699ab6b4691747 -eo pid,comm [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 20:18:14 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 20:18:14 [ssh-agent] Looking for ssh-agent implementation... 20:18:14 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 20:18:14 $ docker exec 445a454c7b2055f5be0ba35b252774dd01f36ca3f3f58ef8cb699ab6b4691747 ssh-agent 20:18:14 SSH_AUTH_SOCK=/tmp/ssh-x5relsqlCgvQ/agent.32 20:18:14 SSH_AGENT_PID=38 20:18:14 Running ssh-add (command line suppressed) 20:18:14 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-265@tmp/private_key_8961553250984183913.key (/w/workspace/gexfoundry_device-rest-go_PR-265@tmp/private_key_8961553250984183913.key) 20:18:14 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 20:18:14 + git tag --points-at HEAD [Pipeline] } 20:18:14 $ docker exec --env ******** --env ******** 445a454c7b2055f5be0ba35b252774dd01f36ca3f3f58ef8cb699ab6b4691747 ssh-agent -k 20:18:14 unset SSH_AUTH_SOCK; 20:18:14 unset SSH_AGENT_PID; 20:18:14 echo Agent pid 38 killed; 20:18:14 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 20:18:14 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 20:18:14 [ssh-agent] Looking for ssh-agent implementation... 20:18:15 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 20:18:15 $ docker exec 445a454c7b2055f5be0ba35b252774dd01f36ca3f3f58ef8cb699ab6b4691747 ssh-agent 20:18:15 SSH_AUTH_SOCK=/tmp/ssh-jai9ecDGCIRy/agent.70 20:18:15 SSH_AGENT_PID=76 20:18:15 Running ssh-add (command line suppressed) 20:18:15 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-265@tmp/private_key_6941706662786386108.key (/w/workspace/gexfoundry_device-rest-go_PR-265@tmp/private_key_6941706662786386108.key) 20:18:15 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 20:18:15 + git semver init 20:18:15 2023-03-14 20:18:15,805 [run_init] DEBUG init version:0.0.0 force:False 20:18:15 2023-03-14 20:18:15,806 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/gexfoundry_device-rest-go_PR-265/.semver 20:18:15 2023-03-14 20:18:15,806 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-rest-go.git /w/workspace/gexfoundry_device-rest-go_PR-265/.semver 20:18:15 2023-03-14 20:18:15,806 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-rest-go.git', '/w/workspace/gexfoundry_device-rest-go_PR-265/.semver'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-265, universal_newlines=False, shell=None, istream=None) 20:18:16 2023-03-14 20:18:16,808 [append_file] DEBUG append to file:/w/workspace/gexfoundry_device-rest-go_PR-265/.git/info/exclude 20:18:16 2023-03-14 20:18:16,809 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/gexfoundry_device-rest-go_PR-265/.semver/PR-265 with force:False 20:18:16 2023-03-14 20:18:16,809 [write_file] DEBUG write to file:/w/workspace/gexfoundry_device-rest-go_PR-265/.semver/PR-265 20:18:17 2023-03-14 20:18:16,815 [execute] INFO git cat-file --batch-check 20:18:17 2023-03-14 20:18:16,816 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-265/.semver, universal_newlines=False, shell=None, istream=) 20:18:17 2023-03-14 20:18:16,822 [execute] INFO git cat-file --batch 20:18:17 2023-03-14 20:18:16,822 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-265/.semver, universal_newlines=False, shell=None, istream=) 20:18:17 2023-03-14 20:18:16,827 [read_version] DEBUG read version from /w/workspace/gexfoundry_device-rest-go_PR-265/.semver/PR-265 20:18:17 0.0.0 [Pipeline] } 20:18:17 $ docker exec --env ******** --env ******** 445a454c7b2055f5be0ba35b252774dd01f36ca3f3f58ef8cb699ab6b4691747 ssh-agent -k 20:18:17 unset SSH_AUTH_SOCK; 20:18:17 unset SSH_AGENT_PID; 20:18:17 echo Agent pid 76 killed; 20:18:17 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 20:18:17 + git semver [Pipeline] } 20:18:17 $ docker stop --time=1 445a454c7b2055f5be0ba35b252774dd01f36ca3f3f58ef8cb699ab6b4691747 20:18:19 $ docker rm -f --volumes 445a454c7b2055f5be0ba35b252774dd01f36ca3f3f58ef8cb699ab6b4691747 [Pipeline] // withDockerContainer [Pipeline] sh 20:18:19 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 20:18:19 Stashed 1 file(s) [Pipeline] echo 20:18:19 [edgeXSemver]: initialized semver on version 0.0.0 [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] parallel [Pipeline] { (Branch: amd64) [Pipeline] { (Branch: arm64) [Pipeline] stage [Pipeline] { (amd64) [Pipeline] stage [Pipeline] { (arm64) [Pipeline] withEnv [Pipeline] { [Pipeline] node [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 20:18:20 provisioning config files... 20:18:20 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-265@tmp/config17839484543928700791tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:18:20 Running on prd-ubuntu20.04-docker-arm64-4c-16g-248 in /w/workspace/gexfoundry_device-rest-go_PR-265 [Pipeline] { [Pipeline] ws 20:18:20 Running in /w/workspace/device-rest-go/1 [Pipeline] { [Pipeline] checkout 20:18:20 The recommended git tool is: git 20:18:20 ---> docker-login.sh 20:18:20 nexus3.edgexfoundry.org:10001 20:18:20 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:18:20 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:18:20 Configure a credential helper to remove this warning. See 20:18:20 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:18:20 20:18:20 Login Succeeded 20:18:20 nexus3.edgexfoundry.org:10002 20:18:20 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:18:20 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:18:20 Configure a credential helper to remove this warning. See 20:18:20 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:18:20 20:18:20 Login Succeeded 20:18:20 nexus3.edgexfoundry.org:10003 20:18:21 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:18:21 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:18:21 Configure a credential helper to remove this warning. See 20:18:21 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:18:21 20:18:21 Login Succeeded 20:18:21 nexus3.edgexfoundry.org:10004 20:18:21 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:18:21 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:18:21 Configure a credential helper to remove this warning. See 20:18:21 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:18:21 20:18:21 Login Succeeded 20:18:21 docker.io 20:18:21 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:18:21 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:18:21 Configure a credential helper to remove this warning. See 20:18:21 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:18:21 20:18:21 Login Succeeded 20:18:21 ---> docker-login.sh ends [Pipeline] } 20:18:21 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 20:18:21 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 20:18:21 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 20:18:21 ========================================================= 20:18:21 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine] 20:18:21 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:18:22 + docker build -t ci-base-image-x86_64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine --build-arg MAKE=echo noop --target=builder . 20:18:22 Sending build context to Docker daemon 10.85MB 20:18:22 Step 1/12 : ARG BASE=golang:1.20-alpine3.17 20:18:22 Step 2/12 : FROM ${BASE} AS builder 20:18:22 1.20-alpine: Pulling from edgex-devops/edgex-golang-base 20:18:22 63b65145d645: Pulling fs layer 20:18:22 a2d21d5440eb: Pulling fs layer 20:18:22 935e6c44a52c: Pulling fs layer 20:18:22 94cc34f8dd06: Pulling fs layer 20:18:22 30dea6a524f1: Pulling fs layer 20:18:22 a2aff8979fd8: Pulling fs layer 20:18:22 94cc34f8dd06: Waiting 20:18:22 30dea6a524f1: Waiting 20:18:22 6808be2612f2: Pulling fs layer 20:18:22 f25807f1079a: Pulling fs layer 20:18:22 a2aff8979fd8: Waiting 20:18:22 f25807f1079a: Waiting 20:18:22 6808be2612f2: Waiting 20:18:22 a2d21d5440eb: Verifying Checksum 20:18:22 a2d21d5440eb: Download complete 20:18:22 94cc34f8dd06: Verifying Checksum 20:18:22 94cc34f8dd06: Download complete 20:18:22 30dea6a524f1: Verifying Checksum 20:18:22 30dea6a524f1: Download complete 20:18:22 63b65145d645: Download complete 20:18:22 a2aff8979fd8: Verifying Checksum 20:18:22 a2aff8979fd8: Download complete 20:18:22 63b65145d645: Pull complete 20:18:22 a2d21d5440eb: Pull complete 20:18:22 f25807f1079a: Download complete 20:18:22 935e6c44a52c: Download complete 20:18:23 6808be2612f2: Verifying Checksum 20:18:23 6808be2612f2: Download complete 20:18:26 935e6c44a52c: Pull complete 20:18:26 94cc34f8dd06: Pull complete 20:18:26 30dea6a524f1: Pull complete 20:18:26 a2aff8979fd8: Pull complete 20:18:28 using credential edgex-jenkins-ssh 20:18:28 Cloning the remote Git repository 20:18:28 6808be2612f2: Pull complete 20:18:29 f25807f1079a: Pull complete 20:18:29 Digest: sha256:106942793af8b5907f587008084bb0888cadbc76d86ebd37d4d3227fb0f1e438 20:18:29 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine 20:18:29 ---> 3b553350e43f 20:18:29 Step 3/12 : ARG ADD_BUILD_TAGS="" 20:18:28 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 20:18:28 > git init /w/workspace/device-rest-go/1 # timeout=10 20:18:28 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 20:18:28 > git --version # timeout=10 20:18:28 > git --version # 'git version 2.25.1' 20:18:28 using GIT_SSH to set credentials SSH Credentials for GitHub 20:18:28 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 20:18:30 ---> Running in 722006fba1a4 20:18:30 Removing intermediate container 722006fba1a4 20:18:30 ---> f2d12cdc7d14 20:18:30 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 20:18:30 ---> Running in 69d5a73ccba9 20:18:30 Removing intermediate container 69d5a73ccba9 20:18:30 ---> b9bd4decf96f 20:18:30 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 20:18:30 ---> Running in 0b0cef21bd10 20:18:30 Removing intermediate container 0b0cef21bd10 20:18:30 ---> 3605db56e06e 20:18:30 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 20:18:30 ---> Running in dea0a8d4fb85 20:18:30 Removing intermediate container dea0a8d4fb85 20:18:30 ---> 91403973ea4b 20:18:30 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 20:18:30 ---> Running in 3fc029d47acc 20:18:31 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 20:18:31 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 20:18:31 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 20:18:31 (1/4) Installing openssh-keygen (9.1_p1-r2) 20:18:31 (2/4) Installing libedit (20221030.3.1-r0) 20:18:31 (3/4) Installing openssh-client-common (9.1_p1-r2) 20:18:31 (4/4) Installing openssh-client-default (9.1_p1-r2) 20:18:31 Executing busybox-1.35.0-r29.trigger 20:18:31 OK: 269 MiB in 57 packages 20:18:32 Removing intermediate container 3fc029d47acc 20:18:32 ---> 65aa6f990e38 20:18:32 Step 8/12 : WORKDIR /device-rest-go 20:18:32 ---> Running in 43910bdaff5d 20:18:32 Removing intermediate container 43910bdaff5d 20:18:32 ---> 8011aeb2aac0 20:18:32 Step 9/12 : COPY go.mod vendor* ./ 20:18:32 ---> f8e82a59b2ae 20:18:32 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 20:18:32 ---> Running in fe39ac84eed9 20:18:31 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 20:18:32 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 20:18:32 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 20:18:32 using GIT_SSH to set credentials SSH Credentials for GitHub 20:18:32 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/265/head:refs/remotes/origin/PR-265 +refs/heads/main:refs/remotes/origin/main # timeout=10 20:18:32 Merging remotes/origin/main commit c4a62108a817389daed93061827783c9b25eff67 into PR head commit 3ba891808935b23585d79dbe78f724fdbb1fc05a 20:18:33 Merge succeeded, producing 3ba891808935b23585d79dbe78f724fdbb1fc05a 20:18:33 Checking out Revision 3ba891808935b23585d79dbe78f724fdbb1fc05a (PR-265) 20:18:32 > git config core.sparsecheckout # timeout=10 20:18:32 > git checkout -f 3ba891808935b23585d79dbe78f724fdbb1fc05a # timeout=10 20:18:33 > git remote # timeout=10 20:18:33 > git config --get remote.origin.url # timeout=10 20:18:33 using GIT_SSH to set credentials SSH Credentials for GitHub 20:18:33 > git merge c4a62108a817389daed93061827783c9b25eff67 # timeout=10 20:18:33 > git rev-parse HEAD^{commit} # timeout=10 20:18:33 > git config core.sparsecheckout # timeout=10 20:18:33 > git checkout -f 3ba891808935b23585d79dbe78f724fdbb1fc05a # timeout=10 20:18:36 Commit message: "build: Update to Go 1.20, Alpine 3.17 and linter v1.51.2" 20:18:36 > git --version # timeout=10 20:18:36 > git --version # 'git version 2.25.1' 20:18:36 fatal: bad object 66200e8eedfc470904d6b329e562ec5b45423d6a [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 20:18:38 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 20:18:38 % Total % Received % Xferd Average Speed Time Time Time Current 20:18:38 Dload Upload Total Spent Left Speed 20:18:38 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 12751 100 12751 0 0 84443 0 --:--:-- --:--:-- --:--:-- 84443 [Pipeline] sh 20:18:38 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 20:18:39 + sudo tee /etc/docker/daemon.new 20:18:39 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 20:18:39 { 20:18:39 "registry-mirrors": [ 20:18:39 "https://nexus3.edgexfoundry.org:10001" 20:18:39 ], 20:18:39 "bip": "10.250.0.254/24", 20:18:39 "hosts": [ 20:18:39 "tcp://0.0.0.0:5555", 20:18:39 "unix:///var/run/docker.sock" 20:18:39 ], 20:18:39 "mtu": 1458, 20:18:39 "selinux-enabled": true, 20:18:39 "seccomp-profile": "/etc/docker/seccomp.json" 20:18:39 } [Pipeline] sh 20:18:39 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 20:18:40 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 20:18:58 provisioning config files... 20:18:58 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/1@tmp/config9967447887862582892tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:18:58 ---> docker-login.sh 20:18:58 nexus3.edgexfoundry.org:10001 20:18:59 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:18:59 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:18:59 Configure a credential helper to remove this warning. See 20:18:59 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:18:59 20:18:59 Login Succeeded 20:18:59 nexus3.edgexfoundry.org:10002 20:18:59 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:18:59 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:18:59 Configure a credential helper to remove this warning. See 20:18:59 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:18:59 20:18:59 Login Succeeded 20:18:59 nexus3.edgexfoundry.org:10003 20:19:00 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:19:00 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:19:00 Configure a credential helper to remove this warning. See 20:19:00 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:19:00 20:19:00 Login Succeeded 20:19:00 nexus3.edgexfoundry.org:10004 20:19:00 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:19:00 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:19:00 Configure a credential helper to remove this warning. See 20:19:00 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:19:00 20:19:00 Login Succeeded 20:19:00 docker.io 20:19:01 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:19:01 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:19:01 Configure a credential helper to remove this warning. See 20:19:01 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:19:01 20:19:01 Login Succeeded 20:19:01 ---> docker-login.sh ends [Pipeline] } 20:19:01 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 20:19:01 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 20:19:01 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 20:19:01 ========================================================= 20:19:01 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine] 20:19:01 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:19:02 + docker build -t ci-base-image-arm64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine --build-arg MAKE=echo noop --target=builder . 20:19:02 Sending build context to Docker daemon 139.3kB 20:19:02 Step 1/12 : ARG BASE=golang:1.20-alpine3.17 20:19:02 Step 2/12 : FROM ${BASE} AS builder 20:19:02 1.20-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 20:19:02 af6eaf76a39c: Pulling fs layer 20:19:02 55522c791124: Pulling fs layer 20:19:02 ce5c4a1c91eb: Pulling fs layer 20:19:02 169dfbe0d373: Pulling fs layer 20:19:02 e1ff8fa3b103: Pulling fs layer 20:19:02 169dfbe0d373: Waiting 20:19:02 52ebb69f0ebf: Pulling fs layer 20:19:02 5abe8eddf0d5: Pulling fs layer 20:19:02 5abe8eddf0d5: Waiting 20:19:02 52ebb69f0ebf: Waiting 20:19:02 e1ff8fa3b103: Waiting 20:19:02 55522c791124: Verifying Checksum 20:19:02 55522c791124: Download complete 20:19:02 169dfbe0d373: Verifying Checksum 20:19:02 169dfbe0d373: Download complete 20:19:02 e1ff8fa3b103: Verifying Checksum 20:19:02 af6eaf76a39c: Verifying Checksum 20:19:02 af6eaf76a39c: Download complete 20:19:03 af6eaf76a39c: Pull complete 20:19:04 5abe8eddf0d5: Verifying Checksum 20:19:04 5abe8eddf0d5: Download complete 20:19:04 Removing intermediate container fe39ac84eed9 20:19:04 ---> 67f76a50932b 20:19:04 Step 11/12 : COPY . . 20:19:04 ---> 41da28c3f08d 20:19:04 Step 12/12 : RUN $MAKE 20:19:04 ---> Running in 4ee25cc3202f 20:19:04 noop 20:19:04 Removing intermediate container 4ee25cc3202f 20:19:04 ---> e562625de7c4 20:19:04 Successfully built e562625de7c4 20:19:04 Successfully tagged ci-base-image-x86_64:latest [Pipeline] } [Pipeline] // withEnv 20:19:04 55522c791124: Pull complete [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:19:04 + docker inspect -f . ci-base-image-x86_64 20:19:04 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 20:19:04 prd-ubuntu20.04-docker-8c-8g-241 does not seem to be running inside a container 20:19:05 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-265 -v /w/workspace/gexfoundry_device-rest-go_PR-265:/w/workspace/gexfoundry_device-rest-go_PR-265:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-265@tmp:/w/workspace/gexfoundry_device-rest-go_PR-265@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 20:19:05 $ docker top 39c8dc06b1618784fcba3c948584d1da19e6f967eeb10fb29bd3a849b7986a93 -eo pid,comm [Pipeline] { 20:19:05 ce5c4a1c91eb: Verifying Checksum 20:19:05 ce5c4a1c91eb: Download complete [Pipeline] sh 20:19:05 52ebb69f0ebf: Verifying Checksum 20:19:05 52ebb69f0ebf: Download complete 20:19:05 + go version 20:19:05 go version go1.20.2 linux/amd64 [Pipeline] } 20:19:05 $ docker stop --time=1 39c8dc06b1618784fcba3c948584d1da19e6f967eeb10fb29bd3a849b7986a93 20:19:07 $ docker rm -f --volumes 39c8dc06b1618784fcba3c948584d1da19e6f967eeb10fb29bd3a849b7986a93 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:19:07 + docker inspect -f . ci-base-image-x86_64 20:19:07 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 20:19:07 prd-ubuntu20.04-docker-8c-8g-241 does not seem to be running inside a container 20:19:07 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged -v /var/run/docker.sock:/var/run/docker.sock -w /w/workspace/gexfoundry_device-rest-go_PR-265 -v /w/workspace/gexfoundry_device-rest-go_PR-265:/w/workspace/gexfoundry_device-rest-go_PR-265:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-265@tmp:/w/workspace/gexfoundry_device-rest-go_PR-265@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 20:19:08 $ docker top fd4fbd2423d0d271923d20b89a016f258b361dd429d6392f93676a33df6eea94 -eo pid,comm [Pipeline] { [Pipeline] sh 20:19:08 + git config --global --add safe.directory /w/workspace/gexfoundry_device-rest-go_PR-265 [Pipeline] fileExists [Pipeline] sh 20:19:09 + make test 20:19:09 go test ./... -coverprofile=coverage.out ./... 20:19:14 ? github.com/edgexfoundry/device-rest-go [no test files] 20:19:18 ce5c4a1c91eb: Pull complete 20:19:18 169dfbe0d373: Pull complete 20:19:18 e1ff8fa3b103: Pull complete 20:19:24 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 20:19:24 ok github.com/edgexfoundry/device-rest-go/driver 0.013s coverage: 33.1% of statements 20:19:24 52ebb69f0ebf: Pull complete 20:19:26 5abe8eddf0d5: Pull complete 20:19:26 Digest: sha256:978cc1420e451f27bd88fdeece3ad01a9109ec773b62f165dfc696fd516b3d8f 20:19:26 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine 20:19:26 ---> 6cb57ee374ae 20:19:26 Step 3/12 : ARG ADD_BUILD_TAGS="" 20:19:28 ---> Running in 77e158b30539 20:19:28 Removing intermediate container 77e158b30539 20:19:28 ---> bd11d8a061b0 20:19:28 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 20:19:28 ---> Running in 779fbfab905e 20:19:29 Removing intermediate container 779fbfab905e 20:19:29 ---> 9467592e4f08 20:19:29 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 20:19:29 ---> Running in 1990b352c681 20:19:29 Removing intermediate container 1990b352c681 20:19:29 ---> 9543019cb303 20:19:29 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 20:19:29 ---> Running in 1a762690525a 20:19:29 Removing intermediate container 1a762690525a 20:19:29 ---> 0a6bd0f735d7 20:19:29 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 20:19:30 ---> Running in 9236aefd8179 20:19:30 go vet ./... 20:19:31 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 20:19:32 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 20:19:33 (1/4) Installing openssh-keygen (9.1_p1-r2) 20:19:33 (2/4) Installing libedit (20221030.3.1-r0) 20:19:33 (3/4) Installing openssh-client-common (9.1_p1-r2) 20:19:33 (4/4) Installing openssh-client-default (9.1_p1-r2) 20:19:33 Executing busybox-1.35.0-r29.trigger 20:19:33 OK: 268 MiB in 57 packages 20:19:34 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 20:19:34 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 20:19:34 ./bin/test-attribution-txt.sh [Pipeline] echo 20:19:34 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 20:19:34 $ docker stop --time=1 fd4fbd2423d0d271923d20b89a016f258b361dd429d6392f93676a33df6eea94 20:19:35 Removing intermediate container 9236aefd8179 20:19:35 ---> 45ca9789f9ba 20:19:35 Step 8/12 : WORKDIR /device-rest-go 20:19:35 ---> Running in 6385e4e24fb6 20:19:35 Removing intermediate container 6385e4e24fb6 20:19:35 ---> ee5e54b4e79a 20:19:35 Step 9/12 : COPY go.mod vendor* ./ 20:19:35 ---> 00d61029a1b4 20:19:35 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 20:19:36 $ docker rm -f --volumes fd4fbd2423d0d271923d20b89a016f258b361dd429d6392f93676a33df6eea94 20:19:36 ---> Running in 584441765bf2 [Pipeline] // withDockerContainer [Pipeline] sh 20:19:36 + sudo chown -R jenkins:jenkins . [Pipeline] stash 20:19:36 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 20:19:37 + sudo chown -R jenkins:jenkins . [Pipeline] sh 20:19:37 + ls -al . 20:19:37 total 184 20:19:37 drwxrwxr-x 9 jenkins jenkins 4096 Mar 14 20:19 . 20:19:37 drwxrwxr-x 4 jenkins jenkins 4096 Mar 14 20:17 .. 20:19:37 -rw-rw-r-- 1 jenkins jenkins 151 Mar 14 20:17 .dockerignore 20:19:37 drwxrwxr-x 8 jenkins jenkins 4096 Mar 14 20:18 .git 20:19:37 drwxrwxr-x 3 jenkins jenkins 4096 Mar 14 20:17 .github 20:19:37 -rw-rw-r-- 1 jenkins jenkins 329 Mar 14 20:17 .gitignore 20:19:37 -rw-rw-r-- 1 jenkins jenkins 41 Mar 14 20:17 .golangci.yml 20:19:37 drwxr-xr-x 3 jenkins jenkins 4096 Mar 14 20:18 .semver 20:19:37 -rw-rw-r-- 1 jenkins jenkins 9321 Mar 14 20:17 Attribution.txt 20:19:37 -rw-rw-r-- 1 jenkins jenkins 13085 Mar 14 20:17 CHANGELOG.md 20:19:37 -rw-rw-r-- 1 jenkins jenkins 1578 Mar 14 20:17 Dockerfile 20:19:37 -rw-rw-r-- 1 jenkins jenkins 677 Mar 14 20:17 GOVERNANCE.md 20:19:37 -rw-rw-r-- 1 jenkins jenkins 680 Mar 14 20:17 Jenkinsfile 20:19:37 -rw-rw-r-- 1 jenkins jenkins 11340 Mar 14 20:17 LICENSE 20:19:37 -rw-rw-r-- 1 jenkins jenkins 1779 Mar 14 20:17 Makefile 20:19:37 -rw-rw-r-- 1 jenkins jenkins 620 Mar 14 20:17 OWNERS.md 20:19:37 -rw-rw-r-- 1 jenkins jenkins 15447 Mar 14 20:17 README.md 20:19:37 -rw-rw-r-- 1 jenkins jenkins 5 Mar 14 20:18 VERSION 20:19:37 drwxrwxr-x 2 jenkins jenkins 4096 Mar 14 20:17 bin 20:19:37 drwxrwxr-x 3 jenkins jenkins 4096 Mar 14 20:17 cmd 20:19:37 -rw-r--r-- 1 jenkins jenkins 14200 Mar 14 20:19 coverage.out 20:19:37 drwxrwxr-x 2 jenkins jenkins 4096 Mar 14 20:17 driver 20:19:37 -rw-rw-r-- 1 jenkins jenkins 3446 Mar 14 20:17 go.mod 20:19:37 -rw-rw-r-- 1 jenkins jenkins 31299 Mar 14 20:17 go.sum 20:19:37 drwxrwxr-x 4 jenkins jenkins 4096 Mar 14 20:17 snap 20:19:37 -rw-rw-r-- 1 jenkins jenkins 713 Mar 14 20:17 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:19:38 + docker build -t device-rest -f Dockerfile --build-arg BASE=ci-base-image-x86_64 --build-arg MAKE=make build --build-arg ARCH=amd64 --label git_sha=3ba891808935b23585d79dbe78f724fdbb1fc05a --label arch=amd64 --label version=0.0.0 . 20:19:38 Sending build context to Docker daemon 10.86MB 20:19:38 Step 1/25 : ARG BASE=golang:1.20-alpine3.17 20:19:38 Step 2/25 : FROM ${BASE} AS builder 20:19:38 ---> e562625de7c4 20:19:38 Step 3/25 : ARG ADD_BUILD_TAGS="" 20:19:38 ---> Running in b1d808a23a69 20:19:38 Removing intermediate container b1d808a23a69 20:19:38 ---> 9fc3639f572a 20:19:38 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 20:19:38 ---> Running in b2a90584c079 20:19:38 Removing intermediate container b2a90584c079 20:19:38 ---> 8d4ae841626b 20:19:38 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 20:19:38 ---> Running in daec77a0144a 20:19:38 Removing intermediate container daec77a0144a 20:19:38 ---> 8ae9133e7915 20:19:38 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 20:19:38 ---> Running in a43928f8eb7e 20:19:38 Removing intermediate container a43928f8eb7e 20:19:38 ---> 70d820e1e824 20:19:38 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 20:19:38 ---> Running in b6fc024f5a5f 20:19:39 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 20:19:39 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 20:19:39 OK: 269 MiB in 57 packages 20:19:39 Removing intermediate container b6fc024f5a5f 20:19:39 ---> fbe5fd9635b7 20:19:39 Step 8/25 : WORKDIR /device-rest-go 20:19:39 ---> Running in bf60d73e06d1 20:19:39 Removing intermediate container bf60d73e06d1 20:19:39 ---> 7e2217d8064f 20:19:39 Step 9/25 : COPY go.mod vendor* ./ 20:19:39 ---> 56642f2962ff 20:19:39 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 20:19:39 ---> Running in 3393f91bad04 20:19:40 Removing intermediate container 3393f91bad04 20:19:40 ---> 29cabbba8bd4 20:19:40 Step 11/25 : COPY . . 20:19:41 ---> 7dc215029a98 20:19:41 Step 12/25 : RUN $MAKE 20:19:41 ---> Running in a9101cc5df48 20:19:41 CGO_ENABLED=0 go build -tags "" -ldflags "-X github.com/edgexfoundry/device-rest-go.Version=0.0.0" -trimpath -mod=readonly -o cmd/device-rest ./cmd 20:19:59 Removing intermediate container a9101cc5df48 20:19:59 ---> 0c67cf33f087 20:19:59 Step 13/25 : FROM alpine:3.17 20:19:59 3.17: Pulling from library/alpine 20:19:59 63b65145d645: Already exists 20:19:59 Digest: sha256:ff6bdca1701f3a8a67e328815ff2346b0e4067d32ec36b7992c1fdc001dc8517 20:19:59 Status: Downloaded newer image for alpine:3.17 20:19:59 ---> b2aa39c304c2 20:19:59 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 20:19:59 ---> Running in b2df6ad8a5a5 20:19:59 Removing intermediate container b2df6ad8a5a5 20:19:59 ---> f6dbef6afd61 20:19:59 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 20:19:59 ---> Running in 7d1ba4f6ebe6 20:19:59 Removing intermediate container 7d1ba4f6ebe6 20:19:59 ---> b557aee2998a 20:19:59 Step 16/25 : RUN apk add --update --no-cache dumb-init 20:19:59 ---> Running in 68998271ad13 20:19:59 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 20:19:59 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 20:19:59 (1/1) Installing dumb-init (1.2.5-r2) 20:19:59 Executing busybox-1.35.0-r29.trigger 20:19:59 OK: 7 MiB in 16 packages 20:19:59 Removing intermediate container 68998271ad13 20:19:59 ---> 8582619a8310 20:19:59 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 20:19:59 ---> 8691bf2288fc 20:19:59 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 20:20:00 ---> 7b41cf56ca7b 20:20:00 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 20:20:00 ---> fb718cc0ecdf 20:20:00 Step 20/25 : EXPOSE 59986 20:20:00 ---> Running in 588b7487b7c9 20:20:00 Removing intermediate container 588b7487b7c9 20:20:00 ---> cc4a0b1d0e88 20:20:00 Step 21/25 : ENTRYPOINT ["/device-rest"] 20:20:00 ---> Running in 879b46e1786a 20:20:00 Removing intermediate container 879b46e1786a 20:20:00 ---> 100092de93e5 20:20:00 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 20:20:00 ---> Running in 9860e5cf6629 20:20:00 Removing intermediate container 9860e5cf6629 20:20:00 ---> 74a19101d8d9 20:20:00 Step 23/25 : LABEL arch=amd64 20:20:00 ---> Running in 6bc737e647f0 20:20:00 Removing intermediate container 6bc737e647f0 20:20:00 ---> a24488cccfbb 20:20:00 Step 24/25 : LABEL git_sha=3ba891808935b23585d79dbe78f724fdbb1fc05a 20:20:00 ---> Running in c059b06549b2 20:20:01 Removing intermediate container c059b06549b2 20:20:01 ---> 628bd8271f1a 20:20:01 Step 25/25 : LABEL version=0.0.0 20:20:01 ---> Running in 4c6b746796c6 20:20:01 Removing intermediate container 4c6b746796c6 20:20:01 ---> 9231dc6abf1a 20:20:01 [Warning] One or more build-args [ARCH] were not consumed 20:20:01 Successfully built 9231dc6abf1a 20:20:01 Successfully tagged device-rest:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Docker Push) Stage "Docker Push" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Snap) Stage "Snap" skipped due to when conditional [Pipeline] } [Pipeline] // stage Post stage [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:20:01 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 20:20:01 20:20:01 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:20:02 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 20:20:02 latest: Pulling from edgex-lftools-log-publisher 20:20:02 5eb5b503b376: Pulling fs layer 20:20:02 5c69ac0246d0: Pulling fs layer 20:20:02 ec43610c2a17: Pulling fs layer 20:20:02 3a2ae6a8a46f: Pulling fs layer 20:20:02 33b1e0a273af: Pulling fs layer 20:20:02 5d3b04190fa2: Pulling fs layer 20:20:02 2f39f015ded8: Pulling fs layer 20:20:02 33b1e0a273af: Waiting 20:20:02 3a2ae6a8a46f: Waiting 20:20:02 5d3b04190fa2: Waiting 20:20:02 5c69ac0246d0: Verifying Checksum 20:20:02 5c69ac0246d0: Download complete 20:20:02 3a2ae6a8a46f: Verifying Checksum 20:20:02 3a2ae6a8a46f: Download complete 20:20:03 ec43610c2a17: Verifying Checksum 20:20:03 ec43610c2a17: Download complete 20:20:03 5d3b04190fa2: Download complete 20:20:03 33b1e0a273af: Verifying Checksum 20:20:03 33b1e0a273af: Download complete 20:20:03 5eb5b503b376: Download complete 20:20:03 2f39f015ded8: Download complete 20:20:04 5eb5b503b376: Pull complete 20:20:04 5c69ac0246d0: Pull complete 20:20:04 ec43610c2a17: Pull complete 20:20:04 3a2ae6a8a46f: Pull complete 20:20:05 33b1e0a273af: Pull complete 20:20:05 5d3b04190fa2: Pull complete 20:20:09 2f39f015ded8: Pull complete 20:20:09 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 20:20:09 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 20:20:09 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 20:20:09 prd-ubuntu20.04-docker-8c-8g-241 does not seem to be running inside a container 20:20:09 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/gexfoundry_device-rest-go_PR-265 -v /w/workspace/gexfoundry_device-rest-go_PR-265:/w/workspace/gexfoundry_device-rest-go_PR-265:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-265@tmp:/w/workspace/gexfoundry_device-rest-go_PR-265@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 20:20:11 $ docker top ddf622827cf389f1795bd765d60d582ec7480ab3e21d30a578bb820bd401dc95 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:20:11 ---> job-cost.sh 20:20:11 lf-activate-venv: SKIPPING 20:20:11 INFO: No Stack... 20:20:11 INFO: Retrieving Pricing Info for: v3-standard-8 20:20:12 INFO: Archiving Costs [Pipeline] sh 20:20:12 + cat /w/workspace/gexfoundry_device-rest-go_PR-265/archives/cost.csv 20:20:12 + cut -d, -f6 [Pipeline] lock 20:20:12 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-265-1-stack-cost] 20:20:12 Resource [jenkins-edgexfoundry-device-rest-go-PR-265-1-stack-cost] did not exist. Created. 20:20:12 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-265-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 20:20:13 + echo total: 0.2199999988079071 [Pipeline] stash 20:20:13 Stashed 1 file(s) [Pipeline] } 20:20:13 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-265-1-stack-cost] [Pipeline] // lock [Pipeline] } 20:20:13 $ docker stop --time=1 ddf622827cf389f1795bd765d60d582ec7480ab3e21d30a578bb820bd401dc95 20:20:14 $ docker rm -f --volumes ddf622827cf389f1795bd765d60d582ec7480ab3e21d30a578bb820bd401dc95 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 20:20:57 Removing intermediate container 584441765bf2 20:20:57 ---> a6b93c8dc0af 20:20:57 Step 11/12 : COPY . . 20:20:57 ---> 78ab363e4fb2 20:20:57 Step 12/12 : RUN $MAKE 20:20:57 ---> Running in 4fcad965c219 20:20:57 noop 20:20:57 Removing intermediate container 4fcad965c219 20:20:57 ---> 01e779d2e1bf 20:20:57 Successfully built 01e779d2e1bf 20:20:57 Successfully tagged ci-base-image-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:20:58 + docker inspect -f . ci-base-image-arm64 20:20:58 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 20:20:58 prd-ubuntu20.04-docker-arm64-4c-16g-248 does not seem to be running inside a container 20:20:58 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/1 -v /w/workspace/device-rest-go/1:/w/workspace/device-rest-go/1:rw,z -v /w/workspace/device-rest-go/1@tmp:/w/workspace/device-rest-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 20:21:00 $ docker top 06a9e2cb957a986b89c3851332c059d402d50ff4ced1b7a668561ded01abffa4 -eo pid,comm [Pipeline] { [Pipeline] sh 20:21:01 + go version 20:21:01 go version go1.20.2 linux/arm64 [Pipeline] } 20:21:01 $ docker stop --time=1 06a9e2cb957a986b89c3851332c059d402d50ff4ced1b7a668561ded01abffa4 20:21:03 $ docker rm -f --volumes 06a9e2cb957a986b89c3851332c059d402d50ff4ced1b7a668561ded01abffa4 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:21:04 + docker inspect -f . ci-base-image-arm64 20:21:04 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 20:21:04 prd-ubuntu20.04-docker-arm64-4c-16g-248 does not seem to be running inside a container 20:21:04 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged -v /var/run/docker.sock:/var/run/docker.sock -w /w/workspace/device-rest-go/1 -v /w/workspace/device-rest-go/1:/w/workspace/device-rest-go/1:rw,z -v /w/workspace/device-rest-go/1@tmp:/w/workspace/device-rest-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 20:21:06 $ docker top d3d4d1e5ab98a298d2b958b9d953effafa01b76629dd1dd6b5d3c7a3921500ac -eo pid,comm [Pipeline] { [Pipeline] sh 20:21:07 + git config --global --add safe.directory /w/workspace/device-rest-go/1 [Pipeline] fileExists [Pipeline] sh 20:21:07 + make test 20:21:07 go test ./... -coverprofile=coverage.out ./... 20:21:54 ? github.com/edgexfoundry/device-rest-go [no test files] 20:24:16 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 20:24:16 ok github.com/edgexfoundry/device-rest-go/driver 0.069s coverage: 33.1% of statements 20:24:16 WARNING: Linting skipped (not on x86_64 or linter not installed) 20:24:16 go vet ./... 20:24:43 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 20:24:43 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 20:24:43 ./bin/test-attribution-txt.sh [Pipeline] echo 20:24:43 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 20:24:43 $ docker stop --time=1 d3d4d1e5ab98a298d2b958b9d953effafa01b76629dd1dd6b5d3c7a3921500ac 20:24:45 $ docker rm -f --volumes d3d4d1e5ab98a298d2b958b9d953effafa01b76629dd1dd6b5d3c7a3921500ac [Pipeline] // withDockerContainer [Pipeline] sh 20:24:47 + sudo chown -R jenkins:jenkins . [Pipeline] stash 20:24:47 Warning: overwriting stash ‘coverage-report’ 20:24:47 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 20:24:48 + sudo chown -R jenkins:jenkins . [Pipeline] sh 20:24:48 + ls -al . 20:24:48 total 180 20:24:48 drwxrwxr-x 8 jenkins jenkins 4096 Mar 14 20:21 . 20:24:48 drwxrwxr-x 4 jenkins jenkins 4096 Mar 14 20:18 .. 20:24:48 -rw-rw-r-- 1 jenkins jenkins 151 Mar 14 20:18 .dockerignore 20:24:48 drwxrwxr-x 8 jenkins jenkins 4096 Mar 14 20:18 .git 20:24:48 drwxrwxr-x 3 jenkins jenkins 4096 Mar 14 20:18 .github 20:24:48 -rw-rw-r-- 1 jenkins jenkins 329 Mar 14 20:18 .gitignore 20:24:48 -rw-rw-r-- 1 jenkins jenkins 41 Mar 14 20:18 .golangci.yml 20:24:48 -rw-rw-r-- 1 jenkins jenkins 9321 Mar 14 20:18 Attribution.txt 20:24:48 -rw-rw-r-- 1 jenkins jenkins 13085 Mar 14 20:18 CHANGELOG.md 20:24:48 -rw-rw-r-- 1 jenkins jenkins 1578 Mar 14 20:18 Dockerfile 20:24:48 -rw-rw-r-- 1 jenkins jenkins 677 Mar 14 20:18 GOVERNANCE.md 20:24:48 -rw-rw-r-- 1 jenkins jenkins 680 Mar 14 20:18 Jenkinsfile 20:24:48 -rw-rw-r-- 1 jenkins jenkins 11340 Mar 14 20:18 LICENSE 20:24:48 -rw-rw-r-- 1 jenkins jenkins 1779 Mar 14 20:18 Makefile 20:24:48 -rw-rw-r-- 1 jenkins jenkins 620 Mar 14 20:18 OWNERS.md 20:24:48 -rw-rw-r-- 1 jenkins jenkins 15447 Mar 14 20:18 README.md 20:24:48 -rw-rw-r-- 1 jenkins jenkins 5 Mar 14 20:18 VERSION 20:24:48 drwxrwxr-x 2 jenkins jenkins 4096 Mar 14 20:18 bin 20:24:48 drwxrwxr-x 3 jenkins jenkins 4096 Mar 14 20:18 cmd 20:24:48 -rw-r--r-- 1 jenkins jenkins 14200 Mar 14 20:24 coverage.out 20:24:48 drwxrwxr-x 2 jenkins jenkins 4096 Mar 14 20:18 driver 20:24:48 -rw-rw-r-- 1 jenkins jenkins 3446 Mar 14 20:18 go.mod 20:24:48 -rw-rw-r-- 1 jenkins jenkins 31299 Mar 14 20:18 go.sum 20:24:48 drwxrwxr-x 4 jenkins jenkins 4096 Mar 14 20:18 snap 20:24:48 -rw-rw-r-- 1 jenkins jenkins 713 Mar 14 20:18 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:24:49 + docker build -t device-rest-arm64 -f Dockerfile --build-arg BASE=ci-base-image-arm64 --build-arg MAKE=make build --build-arg ARCH=arm64 --label git_sha=3ba891808935b23585d79dbe78f724fdbb1fc05a --label arch=arm64 --label version=0.0.0 . 20:24:49 Sending build context to Docker daemon 154.1kB 20:24:49 Step 1/25 : ARG BASE=golang:1.20-alpine3.17 20:24:49 Step 2/25 : FROM ${BASE} AS builder 20:24:49 ---> 01e779d2e1bf 20:24:49 Step 3/25 : ARG ADD_BUILD_TAGS="" 20:24:49 ---> Running in a2bbd39de446 20:24:50 Removing intermediate container a2bbd39de446 20:24:50 ---> 55e9f92fc9f3 20:24:50 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 20:24:50 ---> Running in 48f374123752 20:24:50 Removing intermediate container 48f374123752 20:24:50 ---> 5294717042ef 20:24:50 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 20:24:50 ---> Running in 6464f8e17007 20:24:50 Removing intermediate container 6464f8e17007 20:24:50 ---> 4e30890e734f 20:24:50 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 20:24:51 ---> Running in 2d98681908f8 20:24:51 Removing intermediate container 2d98681908f8 20:24:51 ---> 878259d2ea33 20:24:51 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 20:24:51 ---> Running in 3f24c23e8947 20:24:52 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 20:24:53 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 20:24:54 OK: 268 MiB in 57 packages 20:24:55 Removing intermediate container 3f24c23e8947 20:24:55 ---> 0f8fe195ed80 20:24:55 Step 8/25 : WORKDIR /device-rest-go 20:24:55 ---> Running in 4878925ebb35 20:24:56 Removing intermediate container 4878925ebb35 20:24:56 ---> 3b454e1913cf 20:24:56 Step 9/25 : COPY go.mod vendor* ./ 20:24:56 ---> ce88f63e2597 20:24:56 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 20:24:57 ---> Running in 2052e387aa61 20:25:00 Removing intermediate container 2052e387aa61 20:25:00 ---> 0d1ae3a97d6d 20:25:00 Step 11/25 : COPY . . 20:25:00 ---> a283ae3436e4 20:25:00 Step 12/25 : RUN $MAKE 20:25:00 ---> Running in 012c01d88fdf 20:25:01 CGO_ENABLED=0 go build -tags "" -ldflags "-X github.com/edgexfoundry/device-rest-go.Version=0.0.0" -trimpath -mod=readonly -o cmd/device-rest ./cmd 20:27:53 Removing intermediate container 012c01d88fdf 20:27:53 ---> e8b11c6d937c 20:27:53 Step 13/25 : FROM alpine:3.17 20:27:53 3.17: Pulling from library/alpine 20:27:53 af6eaf76a39c: Already exists 20:27:53 Digest: sha256:ff6bdca1701f3a8a67e328815ff2346b0e4067d32ec36b7992c1fdc001dc8517 20:27:53 Status: Downloaded newer image for alpine:3.17 20:27:53 ---> d74e625d9115 20:27:53 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 20:27:53 ---> Running in 79732f9b1aac 20:27:53 Removing intermediate container 79732f9b1aac 20:27:53 ---> d480a6ff991c 20:27:53 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 20:27:53 ---> Running in 2f995fad57c2 20:27:53 Removing intermediate container 2f995fad57c2 20:27:53 ---> cc91cc703831 20:27:53 Step 16/25 : RUN apk add --update --no-cache dumb-init 20:27:53 ---> Running in 50bc92d03750 20:27:53 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 20:27:53 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 20:27:53 (1/1) Installing dumb-init (1.2.5-r2) 20:27:53 Executing busybox-1.35.0-r29.trigger 20:27:53 OK: 8 MiB in 16 packages 20:27:53 Removing intermediate container 50bc92d03750 20:27:53 ---> 8d83f070b43f 20:27:53 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 20:27:53 ---> 572aa8d26f80 20:27:53 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 20:27:53 ---> 9cf9d5a8c8c8 20:27:53 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 20:27:53 ---> 9577266bdc34 20:27:53 Step 20/25 : EXPOSE 59986 20:27:53 ---> Running in e5a97efe5146 20:27:53 Removing intermediate container e5a97efe5146 20:27:53 ---> b3bcdd29eb13 20:27:53 Step 21/25 : ENTRYPOINT ["/device-rest"] 20:27:53 ---> Running in b3f878321e39 20:27:53 Removing intermediate container b3f878321e39 20:27:53 ---> dbf76d96068c 20:27:53 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 20:27:53 ---> Running in 9e6e4b7aaff0 20:27:53 Removing intermediate container 9e6e4b7aaff0 20:27:53 ---> 545e40035f0b 20:27:53 Step 23/25 : LABEL arch=arm64 20:27:53 ---> Running in 6f5589847fa3 20:27:53 Removing intermediate container 6f5589847fa3 20:27:53 ---> d68f1369a398 20:27:53 Step 24/25 : LABEL git_sha=3ba891808935b23585d79dbe78f724fdbb1fc05a 20:27:53 ---> Running in 0567e521a4f2 20:27:53 Removing intermediate container 0567e521a4f2 20:27:53 ---> 61bd071270ae 20:27:53 Step 25/25 : LABEL version=0.0.0 20:27:53 ---> Running in ed1948f3dca0 20:27:53 Removing intermediate container ed1948f3dca0 20:27:53 ---> 0be190f5d882 20:27:53 [Warning] One or more build-args [ARCH] were not consumed 20:27:53 Successfully built 0be190f5d882 20:27:53 Successfully tagged device-rest-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Docker Push) Stage "Docker Push" skipped due to when conditional [Pipeline] } [Pipeline] // stage Post stage [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:27:54 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 20:27:54 20:27:54 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:27:54 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 20:27:55 arm64: Pulling from edgex-lftools-log-publisher 20:27:55 8998bd30e6a1: Pulling fs layer 20:27:55 04944245beec: Pulling fs layer 20:27:55 699f458cf7ca: Pulling fs layer 20:27:55 765212b225bb: Pulling fs layer 20:27:55 f23df028b6ca: Pulling fs layer 20:27:55 d65c8cfc05b1: Pulling fs layer 20:27:55 2437ff75d9bd: Pulling fs layer 20:27:55 765212b225bb: Waiting 20:27:55 f23df028b6ca: Waiting 20:27:55 d65c8cfc05b1: Waiting 20:27:55 2437ff75d9bd: Waiting 20:27:55 04944245beec: Verifying Checksum 20:27:55 04944245beec: Download complete 20:27:55 765212b225bb: Verifying Checksum 20:27:55 765212b225bb: Download complete 20:27:55 f23df028b6ca: Verifying Checksum 20:27:55 f23df028b6ca: Download complete 20:27:55 d65c8cfc05b1: Verifying Checksum 20:27:55 d65c8cfc05b1: Download complete 20:27:55 699f458cf7ca: Verifying Checksum 20:27:55 699f458cf7ca: Download complete 20:27:55 8998bd30e6a1: Download complete 20:27:58 2437ff75d9bd: Verifying Checksum 20:27:58 2437ff75d9bd: Download complete 20:28:00 8998bd30e6a1: Pull complete 20:28:00 04944245beec: Pull complete 20:28:02 699f458cf7ca: Pull complete 20:28:02 765212b225bb: Pull complete 20:28:03 f23df028b6ca: Pull complete 20:28:03 d65c8cfc05b1: Pull complete 20:28:18 2437ff75d9bd: Pull complete 20:28:18 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 20:28:18 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 20:28:18 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 20:28:19 prd-ubuntu20.04-docker-arm64-4c-16g-248 does not seem to be running inside a container 20:28:19 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/device-rest-go/1 -v /w/workspace/device-rest-go/1:/w/workspace/device-rest-go/1:rw,z -v /w/workspace/device-rest-go/1@tmp:/w/workspace/device-rest-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 20:28:22 $ docker top 5222d6d8e78464daa3502f2889ce25d9f81de9621ea70960ee77c52b4bb60608 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:28:23 ---> job-cost.sh 20:28:23 lf-activate-venv: SKIPPING 20:28:23 INFO: No Stack... 20:28:23 INFO: Retrieving Pricing Info for: v3-standard-4 20:28:24 INFO: Archiving Costs [Pipeline] sh 20:28:25 + cat /w/workspace/device-rest-go/1/archives/cost.csv 20:28:25 + cut -d, -f6 [Pipeline] lock 20:28:25 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-265-1-stack-cost] 20:28:25 Resource [jenkins-edgexfoundry-device-rest-go-PR-265-1-stack-cost] did not exist. Created. 20:28:25 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-265-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 20:28:26 /w/workspace/device-rest-go/1@tmp/durable-183b4ba1/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 20:28:27 + echo total: 0.10999999940395355 [Pipeline] stash 20:28:27 Warning: overwriting stash ‘stack-cost’ 20:28:27 Stashed 1 file(s) [Pipeline] } 20:28:27 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-265-1-stack-cost] [Pipeline] // lock [Pipeline] } 20:28:27 $ docker stop --time=1 5222d6d8e78464daa3502f2889ce25d9f81de9621ea70960ee77c52b4bb60608 20:28:28 $ docker rm -f --volumes 5222d6d8e78464daa3502f2889ce25d9f81de9621ea70960ee77c52b4bb60608 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // ws [Pipeline] } [Pipeline] // node [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // parallel [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (CodeCov) [Pipeline] unstash [Pipeline] configFileProvider 20:28:29 provisioning config files... 20:28:29 copy managed file [device-rest-go-codecov-token] to file:/w/workspace/gexfoundry_device-rest-go_PR-265@tmp/config12306081362921549285tmp [Pipeline] { [Pipeline] sh 20:28:30 + set +x 20:28:30 + curl+ -s https://codecov.io/bash 20:28:30 bash -s -- 20:28:30 20:28:30 _____ _ 20:28:30 / ____| | | 20:28:30 | | ___ __| | ___ ___ _____ __ 20:28:30 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 20:28:30 | |___| (_) | (_| | __/ (_| (_) \ V / 20:28:30 \_____\___/ \__,_|\___|\___\___/ \_/ 20:28:30 Bash-1.0.6 20:28:30 20:28:30 20:28:30 ==> git version 2.25.1 found 20:28:30 ==> curl 7.68.0 (x86_64-pc-linux-gnu) libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3 20:28:30 Release-Date: 2020-01-08 20:28:30 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 20:28:30 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 20:28:30 ==> Jenkins CI detected. 20:28:30 current dir:  /w/workspace/gexfoundry_device-rest-go_PR-265 20:28:30 project root: . 20:28:30 --> token set from env 20:28:30 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 20:28:30 ==> Running gcov in . (disable via -X gcov) 20:28:30 ==> Python coveragepy not found 20:28:30 ==> Searching for coverage reports in: 20:28:30 + . 20:28:30 -> Found 1 reports 20:28:30 ==> Detecting git/mercurial file structure 20:28:30 ==> Reading reports 20:28:30 + ./coverage.out bytes=14200 20:28:30 ==> Appending adjustments 20:28:30 https://docs.codecov.io/docs/fixing-reports 20:28:30 + Found adjustments 20:28:30 ==> Gzipping contents 20:28:30 4.0K /tmp/codecov.TTJGYI.gz 20:28:30 ==> Uploading reports 20:28:30 url: https://codecov.io 20:28:30 query: branch=PR-265&commit=3ba891808935b23585d79dbe78f724fdbb1fc05a&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-265%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=265&job=&cmd_args= 20:28:30 -> Pinging Codecov 20:28:30 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=c51feb23-73ac-4f49-b3d1-d26df23137db&branch=PR-265&commit=3ba891808935b23585d79dbe78f724fdbb1fc05a&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-265%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=265&job=&cmd_args= 20:28:30 -> Uploading to 20:28:30 https://storage.googleapis.com/codecov/v4/raw/2023-03-14/4E5D53B4F1F92C436F7061BF334D961C/3ba891808935b23585d79dbe78f724fdbb1fc05a/7189f3bd-b702-46e8-8d9a-4159d68eb793.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20230314%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20230314T202830Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=cee1f314197067f457752b17d136890382026760842657bca3d195738730fcc0 20:28:30 % Total % Received % Xferd Average Speed Time Time Time Current 20:28:30 Dload Upload Total Spent Left Speed 20:28:31 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 2465 0 0 100 2465 0 9029 --:--:-- --:--:-- --:--:-- 9029 20:28:31 -> Reports have been successfully queued for processing at https://app.codecov.io/github/edgexfoundry/device-rest-go/commit/3ba891808935b23585d79dbe78f724fdbb1fc05a [Pipeline] } 20:28:31 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Snyk Dependency Scan) Stage "Snyk Dependency Scan" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Archive Prep) Stage "Archive Prep" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Publish Swagger) Stage "Publish Swagger" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Semver) Stage "Semver" skipped due to when conditional [Pipeline] stage [Pipeline] { (Tag) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Pre-Release Version) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Experimental Tag) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Stable (Named) Tag) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Declarative: Post Actions) [Pipeline] stage [Pipeline] { (LF Post Build Actions) [Pipeline] sh 20:28:32 + [ -d /w/workspace/gexfoundry_device-rest-go_PR-265/archives ] 20:28:32 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-265/archives 20:28:32 total 16 20:28:32 drwxr-xr-x 3 root root 4096 Mar 14 20:20 . 20:28:32 drwxrwxr-x 10 jenkins jenkins 4096 Mar 14 20:20 .. 20:28:32 drwxr-xr-x 2 root root 4096 Mar 14 20:20 cost 20:28:32 -rw-r--r-- 1 root root 87 Mar 14 20:20 cost.csv 20:28:32 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-rest-go_PR-265/archives 20:28:32 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-265/archives 20:28:32 total 16 20:28:32 drwxr-xr-x 3 jenkins jenkins 4096 Mar 14 20:20 . 20:28:32 drwxrwxr-x 10 jenkins jenkins 4096 Mar 14 20:20 .. 20:28:32 drwxr-xr-x 2 jenkins jenkins 4096 Mar 14 20:20 cost 20:28:32 -rw-r--r-- 1 jenkins jenkins 87 Mar 14 20:20 cost.csv [Pipeline] libraryResource [Pipeline] sh 20:28:33 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 20:28:33 ---> package-listing.sh 20:28:33 ++ tr '[:upper:]' '[:lower:]' 20:28:33 ++ facter osfamily 20:28:34 + OS_FAMILY=debian 20:28:34 + workspace=/w/workspace/gexfoundry_device-rest-go_PR-265 20:28:34 + START_PACKAGES=/tmp/packages_start.txt 20:28:34 + END_PACKAGES=/tmp/packages_end.txt 20:28:34 + DIFF_PACKAGES=/tmp/packages_diff.txt 20:28:34 + PACKAGES=/tmp/packages_start.txt 20:28:34 + '[' /w/workspace/gexfoundry_device-rest-go_PR-265 ']' 20:28:34 + PACKAGES=/tmp/packages_end.txt 20:28:34 + case "${OS_FAMILY}" in 20:28:34 + dpkg -l 20:28:34 + grep '^ii' 20:28:34 + '[' -f /tmp/packages_start.txt ']' 20:28:34 + '[' -f /tmp/packages_end.txt ']' 20:28:34 + diff /tmp/packages_start.txt /tmp/packages_end.txt 20:28:34 + '[' /w/workspace/gexfoundry_device-rest-go_PR-265 ']' 20:28:34 + mkdir -p /w/workspace/gexfoundry_device-rest-go_PR-265/archives/ 20:28:34 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/gexfoundry_device-rest-go_PR-265/archives/ [Pipeline] echo 20:28:34 Launching container with: [--privileged -u 0:0 --net host -v /var/log/sysstat:/var/log/sysstat -v /var/log/secure:/var/log/secure -v /var/log/auth.log:/var/log/auth.log -v /w/workspace/gexfoundry_device-rest-go_PR-265/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 20:28:34 + facter operatingsystem [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:28:35 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 20:28:35 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 20:28:35 prd-ubuntu20.04-docker-8c-8g-241 does not seem to be running inside a container 20:28:35 $ docker run -t -d -u 1001:1001 --privileged -u 0:0 --net host -v /var/log/sysstat:/var/log/sysstat -v /var/log/secure:/var/log/secure -v /var/log/auth.log:/var/log/auth.log -v /w/workspace/gexfoundry_device-rest-go_PR-265/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/gexfoundry_device-rest-go_PR-265 -v /w/workspace/gexfoundry_device-rest-go_PR-265:/w/workspace/gexfoundry_device-rest-go_PR-265:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-265@tmp:/w/workspace/gexfoundry_device-rest-go_PR-265@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 20:28:35 $ docker top 7c57bbe9b7c206f6c157d39c1c36dd89710785241b34b7574a06d4566a8a73c1 -eo pid,comm [Pipeline] { [Pipeline] sh 20:28:35 + touch /tmp/pre-build-complete [Pipeline] sh 20:28:36 + mkdir -p /var/log/sysstat [Pipeline] sh 20:28:36 + ls /var/log/sa-host 20:28:36 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 20:28:36 provisioning config files... 20:28:36 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-265@tmp/config15439085435362924270tmp [Pipeline] { [Pipeline] echo 20:28:36 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 20:28:37 ---> create-netrc.sh [Pipeline] } 20:28:37 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 20:28:37 ---> python-tools-install.sh [Pipeline] echo 20:28:37 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 20:28:37 ---> sudo-logs.sh 20:28:37 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 20:28:37 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 20:28:38 ---> job-cost.sh 20:28:38 lf-activate-venv: SKIPPING 20:28:38 DEBUG: total: 0.2199999988079071 20:28:38 INFO: Retrieving Stack Cost... 20:28:38 INFO: Retrieving Pricing Info for: v3-standard-8 20:28:39 INFO: Archiving Costs [Pipeline] echo 20:28:39 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 20:28:39 ---> logs-deploy.sh 20:28:39 lf-activate-venv: SKIPPING 20:28:39 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-265/1 20:28:39 INFO: archiving workspace using pattern(s): 20:28:40 Archives upload complete. 20:28:40 INFO: archiving logs to Nexus