Pull request #309 opened Connecting to https://api.github.com using edgex-jenkins github personal access token Obtained Jenkinsfile from aeddd9e4be1bd614ca650a4511088d4cae95873d+322050c65873fd50260d8a368346f4ba3310d130 (dcc0c392ec2641ef893cfd5c4e00bbad169fb539) 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-ssh2175458528645946233.key > git ls-remote -h -t -- git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Found match: refs/tags/stable revision 4fc256d9079ed2258907e613f84b1b8da264a4bd 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-ssh1373898526118289311.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 4fc256d9079ed2258907e613f84b1b8da264a4bd 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-309/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-309/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh10567490128858624006.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-309/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh3539691555011603910.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision 4fc256d9079ed2258907e613f84b1b8da264a4bd (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f 4fc256d9079ed2258907e613f84b1b8da264a4bd # timeout=10 Commit message: "Merge pull request #430 from ernestojeda/release-lock" > 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-ssh12280566080557858237.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-309/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-309/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e@tmp/jenkins-gitclient-ssh9492910487144415861.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 4fc256d9079ed2258907e613f84b1b8da264a4bd 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-13926 in /w/workspace/gexfoundry_device-rest-go_PR-309 [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-309 # 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 Merging remotes/origin/main commit 322050c65873fd50260d8a368346f4ba3310d130 into PR head commit aeddd9e4be1bd614ca650a4511088d4cae95873d Merge succeeded, producing aeddd9e4be1bd614ca650a4511088d4cae95873d Checking out Revision aeddd9e4be1bd614ca650a4511088d4cae95873d (PR-309) Commit message: "build(deps): Bump github.com/edgexfoundry/go-mod-core-contracts/v3" First time build. Skipping changelog. > git --version # timeout=10 > git --version # 'git version 2.25.1' fatal: bad object 4fc256d9079ed2258907e613f84b1b8da264a4bd [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { > 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/309/head:refs/remotes/origin/PR-309 +refs/heads/main:refs/remotes/origin/main # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f aeddd9e4be1bd614ca650a4511088d4cae95873d # 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 322050c65873fd50260d8a368346f4ba3310d130 # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f aeddd9e4be1bd614ca650a4511088d4cae95873d # timeout=10 [Pipeline] timeout 20:57:26 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 20:57:27 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 20:57:27 ========================================================= 20:57:27 EdgeX Global Pipelines Version Info 20:57:27 ========================================================= [Pipeline] libraryResource [Pipeline] sh 20:57:27 ------------------- 20:57:27 stable info: 20:57:27 ------------------- 20:57:27 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 20:57:27 Commit SHA: 4fc256d9079ed2258907e613f84b1b8da264a4bd 20:57:27 Message: update stable to v1.0.249 20:57:28 ------------------- 20:57:28 experimental info: 20:57:28 ------------------- 20:57:28 Commited By: **** collab-it+edgex@linuxfoundation.org 20:57:28 Commit SHA: 4fc256d9079ed2258907e613f84b1b8da264a4bd 20:57:28 Message: update experimental to v1.0.249 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 20:57:28 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 20:57:28 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 20:57:28 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 20:57:28 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 20:57:28 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 20:57:28 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.20 [Pipeline] echo 20:57:28 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 20:57:29 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 20:57:29 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 20:57:29 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 20:57:29 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 20:57:29 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 20:57:29 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 20:57:29 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 20:57:29 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 20:57:29 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 20:57:29 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 20:57:29 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 20:57:29 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 20:57:29 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 20:57:29 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 20:57:29 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 20:57:29 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 20:57:29 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 20:57:29 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 20:57:29 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 20:57:29 [edgeXSetupEnvironment]: set envvar SNYK_DEBUG = false [Pipeline] echo 20:57:29 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-309 [Pipeline] echo 20:57:29 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-309 [Pipeline] echo 20:57:29 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-309 [Pipeline] echo 20:57:29 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = aeddd9e4be1bd614ca650a4511088d4cae95873d [Pipeline] echo 20:57:29 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = aeddd9e [Pipeline] echo 20:57:30 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 20:57:30 provisioning config files... 20:57:30 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-309@tmp/config6783480169176397245tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:57:30 ---> docker-login.sh 20:57:30 nexus3.edgexfoundry.org:10001 20:57:30 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:57:30 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:57:30 Configure a credential helper to remove this warning. See 20:57:30 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:57:30 20:57:30 Login Succeeded 20:57:30 nexus3.edgexfoundry.org:10002 20:57:31 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:57:31 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:57:31 Configure a credential helper to remove this warning. See 20:57:31 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:57:31 20:57:31 Login Succeeded 20:57:31 nexus3.edgexfoundry.org:10003 20:57:31 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:57:31 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:57:31 Configure a credential helper to remove this warning. See 20:57:31 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:57:31 20:57:31 Login Succeeded 20:57:31 nexus3.edgexfoundry.org:10004 20:57:31 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:57:31 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:57:31 Configure a credential helper to remove this warning. See 20:57:31 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:57:31 20:57:31 Login Succeeded 20:57:31 docker.io 20:57:31 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:57:31 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:57:31 Configure a credential helper to remove this warning. See 20:57:31 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:57:31 20:57:31 Login Succeeded 20:57:31 ---> docker-login.sh ends [Pipeline] } 20:57:31 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 20:57:32 + git rev-list -1 --merges aeddd9e4be1bd614ca650a4511088d4cae95873d~1..aeddd9e4be1bd614ca650a4511088d4cae95873d [Pipeline] echo 20:57:32 -----------> git rev-list -1 --merges aeddd9e4be1bd614ca650a4511088d4cae95873d~1..aeddd9e4be1bd614ca650a4511088d4cae95873d aeddd9e4be1bd614ca650a4511088d4cae95873d [false] [Pipeline] sh 20:57:32 + git log --format=format:%s -1 aeddd9e4be1bd614ca650a4511088d4cae95873d [Pipeline] echo 20:57:32 ========================================================= 20:57:32 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 20:57:32 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 20:57:33 + git log --format=format:%s -1 aeddd9e4be1bd614ca650a4511088d4cae95873d [Pipeline] echo 20:57:33 [semverPrep] GIT_COMMIT: aeddd9e4be1bd614ca650a4511088d4cae95873d, Commit Message: build(deps): Bump github.com/edgexfoundry/go-mod-core-contracts/v3 [Pipeline] echo 20:57:33 [semverPrep] This is not a build commit. [Pipeline] sh 20:57:33 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 20:57:33 + grep -v github /etc/ssh/ssh_known_hosts 20:57:33 + [ -e /tmp/ssh_known_hosts ] 20:57:33 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 20:57:33 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 20:57:33 + sudo tee -a /etc/ssh/ssh_known_hosts 20:57:33 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:57:33 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 20:57:33 20:57:33 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:57:34 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 20:57:34 0.1.4: Pulling from edgex-devops/py-git-semver 20:57:34 b85a868b505f: Pulling fs layer 20:57:34 e2be974225ed: Pulling fs layer 20:57:34 339a4e72a1f5: Pulling fs layer 20:57:34 988bab9f4d93: Pulling fs layer 20:57:34 1469e6f7b9e6: Pulling fs layer 20:57:34 eaf3925da568: Pulling fs layer 20:57:34 bab4dde63d76: Pulling fs layer 20:57:34 bde34c3a00c8: Pulling fs layer 20:57:34 b352a97aabf1: Pulling fs layer 20:57:34 4872d77fe225: Pulling fs layer 20:57:34 5851b861e8e6: Pulling fs layer 20:57:34 988bab9f4d93: Waiting 20:57:34 1469e6f7b9e6: Waiting 20:57:34 eaf3925da568: Waiting 20:57:34 bab4dde63d76: Waiting 20:57:34 bde34c3a00c8: Waiting 20:57:34 b352a97aabf1: Waiting 20:57:34 4872d77fe225: Waiting 20:57:34 5851b861e8e6: Waiting 20:57:34 e2be974225ed: Verifying Checksum 20:57:34 e2be974225ed: Download complete 20:57:34 988bab9f4d93: Verifying Checksum 20:57:34 988bab9f4d93: Download complete 20:57:34 1469e6f7b9e6: Verifying Checksum 20:57:34 339a4e72a1f5: Verifying Checksum 20:57:34 339a4e72a1f5: Download complete 20:57:34 eaf3925da568: Download complete 20:57:34 bde34c3a00c8: Verifying Checksum 20:57:34 bde34c3a00c8: Download complete 20:57:34 b352a97aabf1: Verifying Checksum 20:57:34 b352a97aabf1: Download complete 20:57:34 4872d77fe225: Verifying Checksum 20:57:34 4872d77fe225: Download complete 20:57:34 5851b861e8e6: Verifying Checksum 20:57:34 5851b861e8e6: Download complete 20:57:34 b85a868b505f: Verifying Checksum 20:57:34 b85a868b505f: Download complete 20:57:34 bab4dde63d76: Verifying Checksum 20:57:34 bab4dde63d76: Download complete 20:57:35 b85a868b505f: Pull complete 20:57:35 e2be974225ed: Pull complete 20:57:36 339a4e72a1f5: Pull complete 20:57:36 988bab9f4d93: Pull complete 20:57:36 1469e6f7b9e6: Pull complete 20:57:36 eaf3925da568: Pull complete 20:57:37 bab4dde63d76: Pull complete 20:57:37 bde34c3a00c8: Pull complete 20:57:38 b352a97aabf1: Pull complete 20:57:38 4872d77fe225: Pull complete 20:57:38 5851b861e8e6: Pull complete 20:57:38 Digest: sha256:59a28aa3b44c0bc56b9c3d2e9ecabe42e63693d939cc6e425eb8786f29f663d8 20:57:38 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 20:57:38 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 20:57:38 prd-ubuntu20.04-docker-8c-8g-13926 does not seem to be running inside a container 20:57:38 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/gexfoundry_device-rest-go_PR-309 -v /w/workspace/gexfoundry_device-rest-go_PR-309:/w/workspace/gexfoundry_device-rest-go_PR-309:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-309@tmp:/w/workspace/gexfoundry_device-rest-go_PR-309@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 ******** nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 cat 20:57:40 $ docker top cea81da717ab4cee2494e765a02f19cb46d21d2c2c66f5ed6dfedb69a95b40be -eo pid,comm 20:57:40 ERROR: The container started but didn't run the expected command. Please double check your ENTRYPOINT does execute the command passed as docker run argument, as required by official docker images (see https://github.com/docker-library/official-images#consistency for entrypoint consistency requirements). 20:57:40 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 20:57:40 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 20:57:40 [ssh-agent] Looking for ssh-agent implementation... 20:57:40 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 20:57:40 $ docker exec cea81da717ab4cee2494e765a02f19cb46d21d2c2c66f5ed6dfedb69a95b40be ssh-agent 20:57:40 SSH_AUTH_SOCK=/tmp/ssh-nrFBHAYB3ojO/agent.32 20:57:40 SSH_AGENT_PID=39 20:57:40 Running ssh-add (command line suppressed) 20:57:41 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-309@tmp/private_key_15734057104121046313.key (/w/workspace/gexfoundry_device-rest-go_PR-309@tmp/private_key_15734057104121046313.key) 20:57:41 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 20:57:41 + git tag --points-at HEAD [Pipeline] } 20:57:41 $ docker exec --env ******** --env ******** cea81da717ab4cee2494e765a02f19cb46d21d2c2c66f5ed6dfedb69a95b40be ssh-agent -k 20:57:41 unset SSH_AUTH_SOCK; 20:57:41 unset SSH_AGENT_PID; 20:57:41 echo Agent pid 39 killed; 20:57:41 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 20:57:41 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 20:57:41 [ssh-agent] Looking for ssh-agent implementation... 20:57:41 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 20:57:41 $ docker exec cea81da717ab4cee2494e765a02f19cb46d21d2c2c66f5ed6dfedb69a95b40be ssh-agent 20:57:41 SSH_AUTH_SOCK=/tmp/ssh-SYF91uLGP1bI/agent.72 20:57:41 SSH_AGENT_PID=78 20:57:41 Running ssh-add (command line suppressed) 20:57:41 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-309@tmp/private_key_5196224609143616669.key (/w/workspace/gexfoundry_device-rest-go_PR-309@tmp/private_key_5196224609143616669.key) 20:57:41 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 20:57:42 + git semver init 20:57:42 2023-05-05 20:57:42,471 [run_init] DEBUG init version:0.0.0 force:False 20:57:42 2023-05-05 20:57:42,472 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/gexfoundry_device-rest-go_PR-309/.semver 20:57:42 2023-05-05 20:57:42,472 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-rest-go.git /w/workspace/gexfoundry_device-rest-go_PR-309/.semver 20:57:42 2023-05-05 20:57:42,472 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-rest-go.git', '/w/workspace/gexfoundry_device-rest-go_PR-309/.semver'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-309, universal_newlines=False, shell=None, istream=None) 20:57:43 2023-05-05 20:57:43,540 [append_file] DEBUG append to file:/w/workspace/gexfoundry_device-rest-go_PR-309/.git/info/exclude 20:57:43 2023-05-05 20:57:43,541 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/gexfoundry_device-rest-go_PR-309/.semver/PR-309 with force:False 20:57:43 2023-05-05 20:57:43,541 [write_file] DEBUG write to file:/w/workspace/gexfoundry_device-rest-go_PR-309/.semver/PR-309 20:57:43 2023-05-05 20:57:43,546 [execute] INFO git cat-file --batch-check 20:57:43 2023-05-05 20:57:43,547 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-309/.semver, universal_newlines=False, shell=None, istream=) 20:57:43 2023-05-05 20:57:43,553 [execute] INFO git cat-file --batch 20:57:43 2023-05-05 20:57:43,554 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-309/.semver, universal_newlines=False, shell=None, istream=) 20:57:43 2023-05-05 20:57:43,560 [read_version] DEBUG read version from /w/workspace/gexfoundry_device-rest-go_PR-309/.semver/PR-309 20:57:43 0.0.0 [Pipeline] } 20:57:43 $ docker exec --env ******** --env ******** cea81da717ab4cee2494e765a02f19cb46d21d2c2c66f5ed6dfedb69a95b40be ssh-agent -k 20:57:44 unset SSH_AUTH_SOCK; 20:57:44 unset SSH_AGENT_PID; 20:57:44 echo Agent pid 78 killed; 20:57:44 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 20:57:44 + git semver [Pipeline] } 20:57:44 $ docker stop --time=1 cea81da717ab4cee2494e765a02f19cb46d21d2c2c66f5ed6dfedb69a95b40be 20:57:46 $ docker rm -f --volumes cea81da717ab4cee2494e765a02f19cb46d21d2c2c66f5ed6dfedb69a95b40be [Pipeline] // withDockerContainer [Pipeline] sh 20:57:46 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 20:57:46 Stashed 1 file(s) [Pipeline] echo 20:57:46 [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:57:47 provisioning config files... 20:57:47 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-309@tmp/config4285836840620324303tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:57:47 ---> docker-login.sh 20:57:47 nexus3.edgexfoundry.org:10001 20:57:47 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:57:47 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:57:47 Configure a credential helper to remove this warning. See 20:57:47 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:57:47 20:57:47 Login Succeeded 20:57:47 nexus3.edgexfoundry.org:10002 20:57:47 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:57:47 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:57:47 Configure a credential helper to remove this warning. See 20:57:47 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:57:47 20:57:47 Login Succeeded 20:57:47 nexus3.edgexfoundry.org:10003 20:57:47 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:57:47 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:57:47 Configure a credential helper to remove this warning. See 20:57:47 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:57:47 20:57:47 Login Succeeded 20:57:47 nexus3.edgexfoundry.org:10004 20:57:47 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:57:47 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:57:47 Configure a credential helper to remove this warning. See 20:57:47 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:57:47 20:57:47 Login Succeeded 20:57:47 docker.io 20:57:47 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:57:48 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:57:48 Configure a credential helper to remove this warning. See 20:57:48 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:57:48 20:57:48 Login Succeeded 20:57:48 ---> docker-login.sh ends [Pipeline] } 20:57:48 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 20:57:48 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 20:57:48 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 20:57:48 ========================================================= 20:57:48 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine] 20:57:48 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:57:48 + 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:57:48 Sending build context to Docker daemon 10.91MB 20:57:48 Step 1/12 : ARG BASE=golang:1.20-alpine3.17 20:57:48 Step 2/12 : FROM ${BASE} AS builder 20:57:48 1.20-alpine: Pulling from edgex-devops/edgex-golang-base 20:57:48 f56be85fc22e: Pulling fs layer 20:57:48 85791d961cd3: Pulling fs layer 20:57:48 d694b5ae8c79: Pulling fs layer 20:57:48 9f32a84ed3da: Pulling fs layer 20:57:48 4d19c01a9841: Pulling fs layer 20:57:48 9325e15d5711: Pulling fs layer 20:57:48 556b6ee489ea: Pulling fs layer 20:57:48 c5a4b2cf53e6: Pulling fs layer 20:57:48 9f32a84ed3da: Waiting 20:57:48 4d19c01a9841: Waiting 20:57:48 9325e15d5711: Waiting 20:57:48 556b6ee489ea: Waiting 20:57:48 c5a4b2cf53e6: Waiting 20:57:48 85791d961cd3: Download complete 20:57:48 9f32a84ed3da: Verifying Checksum 20:57:48 9f32a84ed3da: Download complete 20:57:48 4d19c01a9841: Download complete 20:57:49 f56be85fc22e: Verifying Checksum 20:57:49 f56be85fc22e: Download complete 20:57:49 9325e15d5711: Verifying Checksum 20:57:49 9325e15d5711: Download complete 20:57:49 f56be85fc22e: Pull complete 20:57:49 85791d961cd3: Pull complete 20:57:49 c5a4b2cf53e6: Verifying Checksum 20:57:49 c5a4b2cf53e6: Download complete 20:57:49 d694b5ae8c79: Verifying Checksum 20:57:49 d694b5ae8c79: Download complete 20:57:49 556b6ee489ea: Verifying Checksum 20:57:49 556b6ee489ea: Download complete 20:57:53 d694b5ae8c79: Pull complete 20:57:53 9f32a84ed3da: Pull complete 20:57:53 4d19c01a9841: Pull complete 20:57:53 9325e15d5711: Pull complete 20:57:55 556b6ee489ea: Pull complete 20:57:56 c5a4b2cf53e6: Pull complete 20:57:56 Digest: sha256:cdb650785bd12602035d3ff87499385c169773a4d12d6eaf394b34464d3a0f2b 20:57:56 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine 20:57:56 ---> c4be618373d6 20:57:56 Step 3/12 : ARG ADD_BUILD_TAGS="" 20:57:58 ---> Running in f344e494250c 20:57:58 Removing intermediate container f344e494250c 20:57:58 ---> b231e8f4db20 20:57:58 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 20:57:58 ---> Running in 7cf0135c727d 20:57:58 Removing intermediate container 7cf0135c727d 20:57:58 ---> 33e8b50de8e6 20:57:58 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 20:57:58 ---> Running in d9602161f532 20:57:58 Removing intermediate container d9602161f532 20:57:58 ---> d381a8925669 20:57:58 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 20:57:58 ---> Running in a2f760ca1427 20:57:59 Removing intermediate container a2f760ca1427 20:57:59 ---> 043c35614a54 20:57:59 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 20:57:59 ---> Running in 79cf4e9f4f25 20:57:59 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 20:57:59 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 20:57:59 (1/4) Installing openssh-keygen (9.1_p1-r2) 20:57:59 (2/4) Installing libedit (20221030.3.1-r0) 20:57:59 (3/4) Installing openssh-client-common (9.1_p1-r2) 20:57:59 (4/4) Installing openssh-client-default (9.1_p1-r2) 20:57:59 Executing busybox-1.35.0-r29.trigger 20:57:59 OK: 269 MiB in 57 packages 20:58:00 Removing intermediate container 79cf4e9f4f25 20:58:00 ---> 090f1b1c2b56 20:58:00 Step 8/12 : WORKDIR /device-rest-go 20:58:00 ---> Running in d3a404e9417e 20:58:00 Removing intermediate container d3a404e9417e 20:58:00 ---> f7a4d629b29c 20:58:00 Step 9/12 : COPY go.mod vendor* ./ 20:58:00 ---> 3fe048d6989e 20:58:00 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 20:58:00 ---> Running in 8f7b26561a15 20:58:02 Still waiting to schedule task 20:58:02 All nodes of label ‘ubuntu20.04-docker-arm64-4c-16g’ are offline 20:58:27 Removing intermediate container 8f7b26561a15 20:58:27 ---> 0eb64b1d91af 20:58:27 Step 11/12 : COPY . . 20:58:27 ---> e980a5f27fa9 20:58:27 Step 12/12 : RUN $MAKE 20:58:27 ---> Running in 5adb922a2b81 20:58:27 noop 20:58:27 Removing intermediate container 5adb922a2b81 20:58:27 ---> 3b6fbb3a4f68 20:58:27 Successfully built 3b6fbb3a4f68 20:58:27 Successfully tagged ci-base-image-x86_64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:58:27 + docker inspect -f . ci-base-image-x86_64 20:58:27 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 20:58:27 prd-ubuntu20.04-docker-8c-8g-13926 does not seem to be running inside a container 20:58:27 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-309 -v /w/workspace/gexfoundry_device-rest-go_PR-309:/w/workspace/gexfoundry_device-rest-go_PR-309:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-309@tmp:/w/workspace/gexfoundry_device-rest-go_PR-309@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 ******** ci-base-image-x86_64 cat 20:58:27 $ docker top 3b2a30cdf7f0ad938ac5e4ace136a05313b7dbff08461771b66a2fad7bef1bbc -eo pid,comm [Pipeline] { [Pipeline] sh 20:58:28 + go version 20:58:28 go version go1.20.2 linux/amd64 [Pipeline] } 20:58:28 $ docker stop --time=1 3b2a30cdf7f0ad938ac5e4ace136a05313b7dbff08461771b66a2fad7bef1bbc 20:58:29 $ docker rm -f --volumes 3b2a30cdf7f0ad938ac5e4ace136a05313b7dbff08461771b66a2fad7bef1bbc [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:58:30 + docker inspect -f . ci-base-image-x86_64 20:58:30 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 20:58:30 prd-ubuntu20.04-docker-8c-8g-13926 does not seem to be running inside a container 20:58:30 $ 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-309 -v /w/workspace/gexfoundry_device-rest-go_PR-309:/w/workspace/gexfoundry_device-rest-go_PR-309:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-309@tmp:/w/workspace/gexfoundry_device-rest-go_PR-309@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 ******** ci-base-image-x86_64 cat 20:58:30 $ docker top e8804300eafb3ade096bf9dd93d30e608cd108eba6eaadf1849896a6fe87f5ef -eo pid,comm [Pipeline] { [Pipeline] sh 20:58:31 + git config --global --add safe.directory /w/workspace/gexfoundry_device-rest-go_PR-309 [Pipeline] fileExists [Pipeline] sh 20:58:31 + make test 20:58:31 go test ./... -coverprofile=coverage.out ./... 20:58:35 ? github.com/edgexfoundry/device-rest-go [no test files] 20:58:45 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 20:58:45 ok github.com/edgexfoundry/device-rest-go/driver 0.011s coverage: 32.2% of statements 20:58:50 go vet ./... 20:58:53 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 20:58:53 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 20:58:53 ./bin/test-attribution-txt.sh [Pipeline] echo 20:58:53 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 20:58:53 $ docker stop --time=1 e8804300eafb3ade096bf9dd93d30e608cd108eba6eaadf1849896a6fe87f5ef 20:58:55 $ docker rm -f --volumes e8804300eafb3ade096bf9dd93d30e608cd108eba6eaadf1849896a6fe87f5ef [Pipeline] // withDockerContainer [Pipeline] sh 20:58:56 + sudo chown -R jenkins:jenkins . [Pipeline] stash 20:58:56 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 20:58:57 + sudo chown -R jenkins:jenkins . [Pipeline] sh 20:58:57 + ls -al . 20:58:57 total 184 20:58:57 drwxrwxr-x 9 jenkins jenkins 4096 May 5 20:58 . 20:58:57 drwxrwxr-x 4 jenkins jenkins 4096 May 5 20:57 .. 20:58:57 -rw-rw-r-- 1 jenkins jenkins 151 May 5 20:57 .dockerignore 20:58:57 drwxrwxr-x 8 jenkins jenkins 4096 May 5 20:57 .git 20:58:57 drwxrwxr-x 3 jenkins jenkins 4096 May 5 20:57 .github 20:58:57 -rw-rw-r-- 1 jenkins jenkins 329 May 5 20:57 .gitignore 20:58:57 -rw-rw-r-- 1 jenkins jenkins 41 May 5 20:57 .golangci.yml 20:58:57 drwxr-xr-x 3 jenkins jenkins 4096 May 5 20:57 .semver 20:58:57 -rw-rw-r-- 1 jenkins jenkins 9331 May 5 20:57 Attribution.txt 20:58:57 -rw-rw-r-- 1 jenkins jenkins 13085 May 5 20:57 CHANGELOG.md 20:58:57 -rw-rw-r-- 1 jenkins jenkins 1578 May 5 20:57 Dockerfile 20:58:57 -rw-rw-r-- 1 jenkins jenkins 677 May 5 20:57 GOVERNANCE.md 20:58:57 -rw-rw-r-- 1 jenkins jenkins 680 May 5 20:57 Jenkinsfile 20:58:57 -rw-rw-r-- 1 jenkins jenkins 11340 May 5 20:57 LICENSE 20:58:57 -rw-rw-r-- 1 jenkins jenkins 1779 May 5 20:57 Makefile 20:58:57 -rw-rw-r-- 1 jenkins jenkins 620 May 5 20:57 OWNERS.md 20:58:57 -rw-rw-r-- 1 jenkins jenkins 15321 May 5 20:57 README.md 20:58:57 -rw-rw-r-- 1 jenkins jenkins 5 May 5 20:57 VERSION 20:58:57 drwxrwxr-x 2 jenkins jenkins 4096 May 5 20:57 bin 20:58:57 drwxrwxr-x 3 jenkins jenkins 4096 May 5 20:57 cmd 20:58:57 -rw-r--r-- 1 jenkins jenkins 14663 May 5 20:58 coverage.out 20:58:57 drwxrwxr-x 2 jenkins jenkins 4096 May 5 20:57 driver 20:58:57 -rw-rw-r-- 1 jenkins jenkins 3402 May 5 20:57 go.mod 20:58:57 -rw-rw-r-- 1 jenkins jenkins 31328 May 5 20:57 go.sum 20:58:57 drwxrwxr-x 4 jenkins jenkins 4096 May 5 20:57 snap 20:58:57 -rw-rw-r-- 1 jenkins jenkins 713 May 5 20:57 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:58:57 + 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=aeddd9e4be1bd614ca650a4511088d4cae95873d --label arch=amd64 --label version=0.0.0 . 20:58:57 Sending build context to Docker daemon 10.93MB 20:58:57 Step 1/25 : ARG BASE=golang:1.20-alpine3.17 20:58:57 Step 2/25 : FROM ${BASE} AS builder 20:58:57 ---> 3b6fbb3a4f68 20:58:57 Step 3/25 : ARG ADD_BUILD_TAGS="" 20:58:58 ---> Running in 57816ffcc6a9 20:58:58 Removing intermediate container 57816ffcc6a9 20:58:58 ---> 8d1c1edbb034 20:58:58 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 20:58:58 ---> Running in 56846a81a68a 20:58:58 Removing intermediate container 56846a81a68a 20:58:58 ---> 206f38316892 20:58:58 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 20:58:58 ---> Running in 658eee8bae74 20:58:58 Removing intermediate container 658eee8bae74 20:58:58 ---> a31b5f02fbe2 20:58:58 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 20:58:58 ---> Running in 67d58ecaa240 20:58:58 Removing intermediate container 67d58ecaa240 20:58:58 ---> a41192fc316e 20:58:58 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 20:58:58 ---> Running in 6e386308fa7f 20:58:58 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 20:58:58 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 20:58:58 OK: 269 MiB in 57 packages 20:58:59 Removing intermediate container 6e386308fa7f 20:58:59 ---> d35bce6d4d92 20:58:59 Step 8/25 : WORKDIR /device-rest-go 20:58:59 ---> Running in 1c66e2a75ffe 20:58:59 Removing intermediate container 1c66e2a75ffe 20:58:59 ---> ffd290f2b527 20:58:59 Step 9/25 : COPY go.mod vendor* ./ 20:58:59 ---> 0309c52d8ab8 20:58:59 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 20:58:59 ---> Running in 0da2ae41128c 20:58:59 Removing intermediate container 0da2ae41128c 20:58:59 ---> 8f54c4b8c55b 20:58:59 Step 11/25 : COPY . . 20:59:00 ---> 842907508fd0 20:59:00 Step 12/25 : RUN $MAKE 20:59:00 ---> Running in e9a5a59cc567 20:59:00 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:59:18 Removing intermediate container e9a5a59cc567 20:59:18 ---> 871dd725eb8e 20:59:18 Step 13/25 : FROM alpine:3.17 20:59:18 3.17: Pulling from library/alpine 20:59:18 f56be85fc22e: Already exists 20:59:18 Digest: sha256:124c7d2707904eea7431fffe91522a01e5a861a624ee31d03372cc1d138a3126 20:59:18 Status: Downloaded newer image for alpine:3.17 20:59:18 ---> 9ed4aefc74f6 20:59:18 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 20:59:18 ---> Running in 96b4cc8369f0 20:59:18 Removing intermediate container 96b4cc8369f0 20:59:18 ---> 0a822ebf022c 20:59:18 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 20:59:18 ---> Running in 4c7cb13884d3 20:59:18 Removing intermediate container 4c7cb13884d3 20:59:18 ---> 5bbe2db9d870 20:59:18 Step 16/25 : RUN apk add --update --no-cache dumb-init 20:59:18 ---> Running in 0812389db85b 20:59:18 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 20:59:18 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 20:59:18 (1/1) Installing dumb-init (1.2.5-r2) 20:59:18 Executing busybox-1.35.0-r29.trigger 20:59:18 OK: 7 MiB in 16 packages 20:59:19 Removing intermediate container 0812389db85b 20:59:19 ---> 256465898931 20:59:19 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 20:59:19 ---> 23ea15f43bae 20:59:19 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 20:59:19 ---> a7dbe514d074 20:59:19 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 20:59:19 ---> 4a848fe059f9 20:59:19 Step 20/25 : EXPOSE 59986 20:59:19 ---> Running in d5979cd8a6ed 20:59:19 Removing intermediate container d5979cd8a6ed 20:59:19 ---> 8e250e77b8c0 20:59:19 Step 21/25 : ENTRYPOINT ["/device-rest"] 20:59:19 ---> Running in 132b40ca06d4 20:59:20 Removing intermediate container 132b40ca06d4 20:59:20 ---> 6ea2273f8384 20:59:20 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 20:59:20 ---> Running in 968154ae98a7 20:59:20 Removing intermediate container 968154ae98a7 20:59:20 ---> d92f6d5b916a 20:59:20 Step 23/25 : LABEL arch=amd64 20:59:20 ---> Running in fe1607bd9faa 20:59:20 Removing intermediate container fe1607bd9faa 20:59:20 ---> 9bbb124f0fb1 20:59:20 Step 24/25 : LABEL git_sha=aeddd9e4be1bd614ca650a4511088d4cae95873d 20:59:20 ---> Running in 65b4001aca17 20:59:20 Removing intermediate container 65b4001aca17 20:59:20 ---> f4c9e2d4cf89 20:59:20 Step 25/25 : LABEL version=0.0.0 20:59:20 ---> Running in 0c6fba24e630 20:59:20 Removing intermediate container 0c6fba24e630 20:59:20 ---> 8571d4806b0b 20:59:20 [Warning] One or more build-args [ARCH] were not consumed 20:59:20 Successfully built 8571d4806b0b 20:59:20 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:59:21 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 20:59:21 20:59:21 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:59:21 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 20:59:21 latest: Pulling from edgex-lftools-log-publisher 20:59:21 5eb5b503b376: Pulling fs layer 20:59:21 5c69ac0246d0: Pulling fs layer 20:59:21 ec43610c2a17: Pulling fs layer 20:59:21 3a2ae6a8a46f: Pulling fs layer 20:59:21 33b1e0a273af: Pulling fs layer 20:59:21 5d3b04190fa2: Pulling fs layer 20:59:21 2f39f015ded8: Pulling fs layer 20:59:21 3a2ae6a8a46f: Waiting 20:59:21 33b1e0a273af: Waiting 20:59:21 2f39f015ded8: Waiting 20:59:21 5d3b04190fa2: Waiting 20:59:21 5c69ac0246d0: Download complete 20:59:21 3a2ae6a8a46f: Download complete 20:59:21 ec43610c2a17: Verifying Checksum 20:59:21 ec43610c2a17: Download complete 20:59:21 33b1e0a273af: Verifying Checksum 20:59:21 33b1e0a273af: Download complete 20:59:21 5d3b04190fa2: Verifying Checksum 20:59:21 5d3b04190fa2: Download complete 20:59:21 5eb5b503b376: Verifying Checksum 20:59:21 5eb5b503b376: Download complete 20:59:22 2f39f015ded8: Download complete 20:59:23 5eb5b503b376: Pull complete 20:59:23 5c69ac0246d0: Pull complete 20:59:23 ec43610c2a17: Pull complete 20:59:23 3a2ae6a8a46f: Pull complete 20:59:23 33b1e0a273af: Pull complete 20:59:24 5d3b04190fa2: Pull complete 20:59:28 2f39f015ded8: Pull complete 20:59:28 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 20:59:28 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 20:59:28 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 20:59:28 prd-ubuntu20.04-docker-8c-8g-13926 does not seem to be running inside a container 20:59:28 $ 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-309 -v /w/workspace/gexfoundry_device-rest-go_PR-309:/w/workspace/gexfoundry_device-rest-go_PR-309:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-309@tmp:/w/workspace/gexfoundry_device-rest-go_PR-309@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-lftools-log-publisher:latest cat 20:59:30 $ docker top 317be2f611830137f8d506d556b00a8aad43a29a7f511ddfc2e7688de0148521 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:59:30 ---> job-cost.sh 20:59:30 lf-activate-venv: SKIPPING 20:59:30 INFO: No Stack... 20:59:31 INFO: Retrieving Pricing Info for: v3-standard-8 20:59:31 INFO: Archiving Costs [Pipeline] sh 20:59:32 + cat /w/workspace/gexfoundry_device-rest-go_PR-309/archives/cost.csv 20:59:32 + cut -d, -f6 [Pipeline] lock 20:59:32 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-309-1-stack-cost] 20:59:32 Resource [jenkins-edgexfoundry-device-rest-go-PR-309-1-stack-cost] did not exist. Created. 20:59:32 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-309-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 20:59:32 + echo total: 0.2199999988079071 [Pipeline] stash 20:59:32 Stashed 1 file(s) [Pipeline] } 20:59:32 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-309-1-stack-cost] [Pipeline] // lock [Pipeline] } 20:59:32 $ docker stop --time=1 317be2f611830137f8d506d556b00a8aad43a29a7f511ddfc2e7688de0148521 20:59:33 $ docker rm -f --volumes 317be2f611830137f8d506d556b00a8aad43a29a7f511ddfc2e7688de0148521 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 20:59:38 Running on prd-ubuntu20.04-docker-arm64-4c-16g-13928 in /w/workspace/gexfoundry_device-rest-go_PR-309 [Pipeline] { [Pipeline] ws 20:59:38 Running in /w/workspace/device-rest-go/1 [Pipeline] { [Pipeline] checkout 20:59:38 The recommended git tool is: git 20:59:44 using credential edgex-jenkins-ssh 20:59:44 Cloning the remote Git repository 20:59:44 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 20:59:44 > git init /w/workspace/device-rest-go/1 # timeout=10 20:59:44 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 20:59:44 > git --version # timeout=10 20:59:44 > git --version # 'git version 2.25.1' 20:59:44 using GIT_SSH to set credentials SSH Credentials for GitHub 20:59:44 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 20:59:46 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 20:59:46 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 20:59:47 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 20:59:47 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 20:59:47 using GIT_SSH to set credentials SSH Credentials for GitHub 20:59:47 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/309/head:refs/remotes/origin/PR-309 +refs/heads/main:refs/remotes/origin/main # timeout=10 20:59:47 Merging remotes/origin/main commit 322050c65873fd50260d8a368346f4ba3310d130 into PR head commit aeddd9e4be1bd614ca650a4511088d4cae95873d 20:59:48 Merge succeeded, producing aeddd9e4be1bd614ca650a4511088d4cae95873d 20:59:48 Checking out Revision aeddd9e4be1bd614ca650a4511088d4cae95873d (PR-309) 20:59:48 Commit message: "build(deps): Bump github.com/edgexfoundry/go-mod-core-contracts/v3" 20:59:48 > git --version # timeout=10 20:59:48 > git --version # 'git version 2.25.1' 20:59:48 fatal: bad object 4fc256d9079ed2258907e613f84b1b8da264a4bd 20:59:47 > git config core.sparsecheckout # timeout=10 20:59:47 > git checkout -f aeddd9e4be1bd614ca650a4511088d4cae95873d # timeout=10 20:59:48 > git remote # timeout=10 20:59:48 > git config --get remote.origin.url # timeout=10 20:59:48 using GIT_SSH to set credentials SSH Credentials for GitHub 20:59:48 > git merge 322050c65873fd50260d8a368346f4ba3310d130 # timeout=10 20:59:48 > git rev-parse HEAD^{commit} # timeout=10 20:59:48 > git config core.sparsecheckout # timeout=10 20:59:48 > git checkout -f aeddd9e4be1bd614ca650a4511088d4cae95873d # timeout=10 [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 20:59:49 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 20:59:49 % Total % Received % Xferd Average Speed Time Time Time Current 20:59:49 Dload Upload Total Spent Left Speed 20:59:49 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 12751 100 12751 0 0 95872 0 --:--:-- --:--:-- --:--:-- 96598 [Pipeline] sh 20:59:50 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 20:59:50 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 20:59:50 + sudo tee /etc/docker/daemon.new 20:59:50 { 20:59:50 "registry-mirrors": [ 20:59:50 "https://nexus3.edgexfoundry.org:10001" 20:59:50 ], 20:59:50 "bip": "10.250.0.254/24", 20:59:50 "hosts": [ 20:59:50 "tcp://0.0.0.0:5555", 20:59:50 "unix:///var/run/docker.sock" 20:59:50 ], 20:59:50 "mtu": 1458, 20:59:50 "selinux-enabled": true, 20:59:50 "seccomp-profile": "/etc/docker/seccomp.json" 20:59:50 } [Pipeline] sh 20:59:51 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 20:59:51 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 21:00:09 provisioning config files... 21:00:10 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/1@tmp/config8735262987562086688tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 21:00:10 ---> docker-login.sh 21:00:10 nexus3.edgexfoundry.org:10001 21:00:10 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 21:00:10 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 21:00:10 Configure a credential helper to remove this warning. See 21:00:10 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 21:00:10 21:00:10 Login Succeeded 21:00:10 nexus3.edgexfoundry.org:10002 21:00:11 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 21:00:11 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 21:00:11 Configure a credential helper to remove this warning. See 21:00:11 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 21:00:11 21:00:11 Login Succeeded 21:00:11 nexus3.edgexfoundry.org:10003 21:00:11 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 21:00:11 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 21:00:11 Configure a credential helper to remove this warning. See 21:00:11 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 21:00:11 21:00:11 Login Succeeded 21:00:11 nexus3.edgexfoundry.org:10004 21:00:12 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 21:00:12 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 21:00:12 Configure a credential helper to remove this warning. See 21:00:12 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 21:00:12 21:00:12 Login Succeeded 21:00:12 docker.io 21:00:12 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 21:00:12 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 21:00:12 Configure a credential helper to remove this warning. See 21:00:12 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 21:00:12 21:00:12 Login Succeeded 21:00:12 ---> docker-login.sh ends [Pipeline] } 21:00:12 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 21:00:12 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 21:00:12 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 21:00:13 ========================================================= 21:00:13 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine] 21:00:13 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 21:00:13 + 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 . 21:00:13 Sending build context to Docker daemon 139.3kB 21:00:13 Step 1/12 : ARG BASE=golang:1.20-alpine3.17 21:00:13 Step 2/12 : FROM ${BASE} AS builder 21:00:16 1.20-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 21:00:16 c41833b44d91: Pulling fs layer 21:00:16 ed15518f5707: Pulling fs layer 21:00:16 feae8fd75edb: Pulling fs layer 21:00:16 242c74f7c9fa: Pulling fs layer 21:00:16 3cdef696dda3: Pulling fs layer 21:00:16 2ced38df9373: Pulling fs layer 21:00:16 58f1dce35555: Pulling fs layer 21:00:16 242c74f7c9fa: Waiting 21:00:16 3cdef696dda3: Waiting 21:00:16 2ced38df9373: Waiting 21:00:16 58f1dce35555: Waiting 21:00:16 ed15518f5707: Verifying Checksum 21:00:16 ed15518f5707: Download complete 21:00:16 242c74f7c9fa: Verifying Checksum 21:00:16 242c74f7c9fa: Download complete 21:00:16 3cdef696dda3: Verifying Checksum 21:00:16 3cdef696dda3: Download complete 21:00:16 c41833b44d91: Verifying Checksum 21:00:17 c41833b44d91: Pull complete 21:00:17 58f1dce35555: Verifying Checksum 21:00:17 58f1dce35555: Download complete 21:00:18 ed15518f5707: Pull complete 21:00:19 feae8fd75edb: Verifying Checksum 21:00:19 feae8fd75edb: Download complete 21:00:19 2ced38df9373: Verifying Checksum 21:00:19 2ced38df9373: Download complete 21:00:30 feae8fd75edb: Pull complete 21:00:30 242c74f7c9fa: Pull complete 21:00:30 3cdef696dda3: Pull complete 21:00:37 2ced38df9373: Pull complete 21:00:40 58f1dce35555: Pull complete 21:00:40 Digest: sha256:3b55595e96c696ae732e8cb20cde5b1ff7282a1fe1423a8de67617af8d15ea1e 21:00:40 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine 21:00:40 ---> fadd8f120f05 21:00:40 Step 3/12 : ARG ADD_BUILD_TAGS="" 21:00:42 ---> Running in e1b6cfae81a4 21:00:42 Removing intermediate container e1b6cfae81a4 21:00:42 ---> 5e10c7b6d9cd 21:00:42 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 21:00:42 ---> Running in 17beb5dac5fb 21:00:42 Removing intermediate container 17beb5dac5fb 21:00:42 ---> a0fb5d38ad54 21:00:42 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 21:00:42 ---> Running in 8b33ca0a6d19 21:00:42 Removing intermediate container 8b33ca0a6d19 21:00:42 ---> 82bffbfb7154 21:00:42 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 21:00:42 ---> Running in e6cb7e782d07 21:00:43 Removing intermediate container e6cb7e782d07 21:00:43 ---> 3ec235dcb116 21:00:43 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 21:00:43 ---> Running in 868e20ead620 21:00:44 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 21:00:45 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 21:00:46 (1/4) Installing openssh-keygen (9.1_p1-r2) 21:00:46 (2/4) Installing libedit (20221030.3.1-r0) 21:00:46 (3/4) Installing openssh-client-common (9.1_p1-r2) 21:00:46 (4/4) Installing openssh-client-default (9.1_p1-r2) 21:00:46 Executing busybox-1.35.0-r29.trigger 21:00:46 OK: 268 MiB in 57 packages 21:00:47 Removing intermediate container 868e20ead620 21:00:47 ---> cf99ed037666 21:00:47 Step 8/12 : WORKDIR /device-rest-go 21:00:47 ---> Running in 97d97c07996d 21:00:47 Removing intermediate container 97d97c07996d 21:00:47 ---> 6e1d55fc80c7 21:00:47 Step 9/12 : COPY go.mod vendor* ./ 21:00:48 ---> 41d594785a94 21:00:48 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 21:00:48 ---> Running in 44e58043e6eb 21:01:56 Removing intermediate container 44e58043e6eb 21:01:56 ---> c035f8361b52 21:01:56 Step 11/12 : COPY . . 21:01:56 ---> b1cc03ab2b8e 21:01:56 Step 12/12 : RUN $MAKE 21:01:56 ---> Running in b0d836188dc9 21:01:56 noop 21:01:56 Removing intermediate container b0d836188dc9 21:01:56 ---> c1bfe1f88a75 21:01:56 Successfully built c1bfe1f88a75 21:01:56 Successfully tagged ci-base-image-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 21:01:56 + docker inspect -f . ci-base-image-arm64 21:01:56 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 21:01:56 prd-ubuntu20.04-docker-arm64-4c-16g-13928 does not seem to be running inside a container 21:01:56 $ 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 ******** ci-base-image-arm64 cat 21:01:58 $ docker top 7fa7d5c631c9247916511c8433f6707d802ac4866dcf90ff15981e8b5949f511 -eo pid,comm [Pipeline] { [Pipeline] sh 21:01:59 + go version 21:01:59 go version go1.20.2 linux/arm64 [Pipeline] } 21:01:59 $ docker stop --time=1 7fa7d5c631c9247916511c8433f6707d802ac4866dcf90ff15981e8b5949f511 21:02:00 $ docker rm -f --volumes 7fa7d5c631c9247916511c8433f6707d802ac4866dcf90ff15981e8b5949f511 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 21:02:01 + docker inspect -f . ci-base-image-arm64 21:02:01 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 21:02:01 prd-ubuntu20.04-docker-arm64-4c-16g-13928 does not seem to be running inside a container 21:02:01 $ 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 ******** ci-base-image-arm64 cat 21:02:02 $ docker top 6beedc15537521843e2050b3a2330c19bb86be15c2b9e395eb391228b06b89f7 -eo pid,comm [Pipeline] { [Pipeline] sh 21:02:03 + git config --global --add safe.directory /w/workspace/device-rest-go/1 [Pipeline] fileExists [Pipeline] sh 21:02:04 + make test 21:02:04 go test ./... -coverprofile=coverage.out ./... 21:02:36 ? github.com/edgexfoundry/device-rest-go [no test files] 21:04:28 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 21:04:29 ok github.com/edgexfoundry/device-rest-go/driver 0.059s coverage: 32.2% of statements 21:04:30 WARNING: Linting skipped (not on x86_64 or linter not installed) 21:04:30 go vet ./... 21:05:09 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 21:05:09 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 21:05:09 ./bin/test-attribution-txt.sh [Pipeline] echo 21:05:09 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 21:05:09 $ docker stop --time=1 6beedc15537521843e2050b3a2330c19bb86be15c2b9e395eb391228b06b89f7 21:05:12 $ docker rm -f --volumes 6beedc15537521843e2050b3a2330c19bb86be15c2b9e395eb391228b06b89f7 [Pipeline] // withDockerContainer [Pipeline] sh 21:05:14 + sudo chown -R jenkins:jenkins . [Pipeline] stash 21:05:14 Warning: overwriting stash ‘coverage-report’ 21:05:14 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 21:05:15 + sudo chown -R jenkins:jenkins . [Pipeline] sh 21:05:15 + ls -al . 21:05:15 total 180 21:05:15 drwxrwxr-x 8 jenkins jenkins 4096 May 5 21:02 . 21:05:15 drwxrwxr-x 4 jenkins jenkins 4096 May 5 20:59 .. 21:05:15 -rw-rw-r-- 1 jenkins jenkins 151 May 5 20:59 .dockerignore 21:05:15 drwxrwxr-x 8 jenkins jenkins 4096 May 5 20:59 .git 21:05:15 drwxrwxr-x 3 jenkins jenkins 4096 May 5 20:59 .github 21:05:15 -rw-rw-r-- 1 jenkins jenkins 329 May 5 20:59 .gitignore 21:05:15 -rw-rw-r-- 1 jenkins jenkins 41 May 5 20:59 .golangci.yml 21:05:15 -rw-rw-r-- 1 jenkins jenkins 9331 May 5 20:59 Attribution.txt 21:05:15 -rw-rw-r-- 1 jenkins jenkins 13085 May 5 20:59 CHANGELOG.md 21:05:15 -rw-rw-r-- 1 jenkins jenkins 1578 May 5 20:59 Dockerfile 21:05:15 -rw-rw-r-- 1 jenkins jenkins 677 May 5 20:59 GOVERNANCE.md 21:05:15 -rw-rw-r-- 1 jenkins jenkins 680 May 5 20:59 Jenkinsfile 21:05:15 -rw-rw-r-- 1 jenkins jenkins 11340 May 5 20:59 LICENSE 21:05:15 -rw-rw-r-- 1 jenkins jenkins 1779 May 5 20:59 Makefile 21:05:15 -rw-rw-r-- 1 jenkins jenkins 620 May 5 20:59 OWNERS.md 21:05:15 -rw-rw-r-- 1 jenkins jenkins 15321 May 5 20:59 README.md 21:05:15 -rw-rw-r-- 1 jenkins jenkins 5 May 5 20:57 VERSION 21:05:15 drwxrwxr-x 2 jenkins jenkins 4096 May 5 20:59 bin 21:05:15 drwxrwxr-x 3 jenkins jenkins 4096 May 5 20:59 cmd 21:05:15 -rw-r--r-- 1 jenkins jenkins 14663 May 5 21:04 coverage.out 21:05:15 drwxrwxr-x 2 jenkins jenkins 4096 May 5 20:59 driver 21:05:15 -rw-rw-r-- 1 jenkins jenkins 3402 May 5 20:59 go.mod 21:05:15 -rw-rw-r-- 1 jenkins jenkins 31328 May 5 20:59 go.sum 21:05:15 drwxrwxr-x 4 jenkins jenkins 4096 May 5 20:59 snap 21:05:15 -rw-rw-r-- 1 jenkins jenkins 713 May 5 20:59 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 21:05:15 + 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=aeddd9e4be1bd614ca650a4511088d4cae95873d --label arch=arm64 --label version=0.0.0 . 21:05:15 Sending build context to Docker daemon 154.6kB 21:05:16 Step 1/25 : ARG BASE=golang:1.20-alpine3.17 21:05:16 Step 2/25 : FROM ${BASE} AS builder 21:05:16 ---> c1bfe1f88a75 21:05:16 Step 3/25 : ARG ADD_BUILD_TAGS="" 21:05:16 ---> Running in b64c4f04f5ac 21:05:16 Removing intermediate container b64c4f04f5ac 21:05:16 ---> fd416310113e 21:05:16 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 21:05:16 ---> Running in 4fe90c29d31e 21:05:16 Removing intermediate container 4fe90c29d31e 21:05:16 ---> 66376548c08a 21:05:16 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 21:05:16 ---> Running in f6f70f111717 21:05:17 Removing intermediate container f6f70f111717 21:05:17 ---> 2253369c8b60 21:05:17 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 21:05:17 ---> Running in 03b99e199ccf 21:05:17 Removing intermediate container 03b99e199ccf 21:05:17 ---> 86cd82cee1b5 21:05:17 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 21:05:17 ---> Running in f03605f840bf 21:05:18 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 21:05:19 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 21:05:20 OK: 268 MiB in 57 packages 21:05:21 Removing intermediate container f03605f840bf 21:05:21 ---> 86654703989a 21:05:21 Step 8/25 : WORKDIR /device-rest-go 21:05:21 ---> Running in ccae13f65a78 21:05:21 Removing intermediate container ccae13f65a78 21:05:21 ---> 0a2d0a81d821 21:05:21 Step 9/25 : COPY go.mod vendor* ./ 21:05:22 ---> f1c3552ed9b6 21:05:22 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 21:05:22 ---> Running in 3a060c439587 21:05:27 Removing intermediate container 3a060c439587 21:05:27 ---> c4a4e747ef56 21:05:27 Step 11/25 : COPY . . 21:05:27 ---> a182190d417f 21:05:27 Step 12/25 : RUN $MAKE 21:05:27 ---> Running in bde92af2d6bb 21:05:28 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 21:07:35 Removing intermediate container bde92af2d6bb 21:07:35 ---> 4d200abe489c 21:07:35 Step 13/25 : FROM alpine:3.17 21:07:35 3.17: Pulling from library/alpine 21:07:35 c41833b44d91: Already exists 21:07:35 Digest: sha256:124c7d2707904eea7431fffe91522a01e5a861a624ee31d03372cc1d138a3126 21:07:35 Status: Downloaded newer image for alpine:3.17 21:07:35 ---> 51e60588ff2c 21:07:35 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 21:07:35 ---> Running in f296a11c7b9d 21:07:35 Removing intermediate container f296a11c7b9d 21:07:35 ---> df31c9c7086b 21:07:35 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 21:07:35 ---> Running in 0021a5b1b19f 21:07:35 Removing intermediate container 0021a5b1b19f 21:07:35 ---> 751748c088e5 21:07:35 Step 16/25 : RUN apk add --update --no-cache dumb-init 21:07:35 ---> Running in dc27d3e65e34 21:07:36 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 21:07:37 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 21:07:38 (1/1) Installing dumb-init (1.2.5-r2) 21:07:38 Executing busybox-1.35.0-r29.trigger 21:07:38 OK: 8 MiB in 16 packages 21:07:39 Removing intermediate container dc27d3e65e34 21:07:39 ---> 9a50d2e52c12 21:07:39 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 21:07:42 ---> cb44e2e528d1 21:07:42 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 21:07:42 ---> 79d90e1b63b1 21:07:42 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 21:07:42 ---> a3edeb0c92ef 21:07:42 Step 20/25 : EXPOSE 59986 21:07:42 ---> Running in 41e1a38c06c0 21:07:43 Removing intermediate container 41e1a38c06c0 21:07:43 ---> 68066a487ed5 21:07:43 Step 21/25 : ENTRYPOINT ["/device-rest"] 21:07:43 ---> Running in 937011d1390c 21:07:43 Removing intermediate container 937011d1390c 21:07:43 ---> b2657ce83213 21:07:43 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 21:07:43 ---> Running in 204d55973e0b 21:07:43 Removing intermediate container 204d55973e0b 21:07:43 ---> 90576be72f22 21:07:43 Step 23/25 : LABEL arch=arm64 21:07:44 ---> Running in 4c74cb1d38e8 21:07:44 Removing intermediate container 4c74cb1d38e8 21:07:44 ---> a49213d4dde5 21:07:44 Step 24/25 : LABEL git_sha=aeddd9e4be1bd614ca650a4511088d4cae95873d 21:07:44 ---> Running in 5cd58e6abd10 21:07:44 Removing intermediate container 5cd58e6abd10 21:07:44 ---> 90081b8a0046 21:07:44 Step 25/25 : LABEL version=0.0.0 21:07:44 ---> Running in 149d0bbb790e 21:07:44 Removing intermediate container 149d0bbb790e 21:07:44 ---> 184b828ad0c1 21:07:44 [Warning] One or more build-args [ARCH] were not consumed 21:07:44 Successfully built 184b828ad0c1 21:07:44 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 21:07:45 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 21:07:45 21:07:45 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 21:07:45 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 21:07:45 arm64: Pulling from edgex-lftools-log-publisher 21:07:45 8998bd30e6a1: Pulling fs layer 21:07:45 04944245beec: Pulling fs layer 21:07:45 699f458cf7ca: Pulling fs layer 21:07:45 765212b225bb: Pulling fs layer 21:07:45 f23df028b6ca: Pulling fs layer 21:07:45 765212b225bb: Waiting 21:07:45 d65c8cfc05b1: Pulling fs layer 21:07:45 2437ff75d9bd: Pulling fs layer 21:07:45 d65c8cfc05b1: Waiting 21:07:45 2437ff75d9bd: Waiting 21:07:45 f23df028b6ca: Waiting 21:07:46 04944245beec: Verifying Checksum 21:07:46 04944245beec: Download complete 21:07:46 765212b225bb: Verifying Checksum 21:07:46 765212b225bb: Download complete 21:07:46 f23df028b6ca: Verifying Checksum 21:07:46 f23df028b6ca: Download complete 21:07:46 d65c8cfc05b1: Verifying Checksum 21:07:46 d65c8cfc05b1: Download complete 21:07:46 699f458cf7ca: Verifying Checksum 21:07:46 699f458cf7ca: Download complete 21:07:46 8998bd30e6a1: Verifying Checksum 21:07:46 8998bd30e6a1: Download complete 21:07:48 2437ff75d9bd: Verifying Checksum 21:07:48 2437ff75d9bd: Download complete 21:07:50 8998bd30e6a1: Pull complete 21:07:50 04944245beec: Pull complete 21:07:52 699f458cf7ca: Pull complete 21:07:52 765212b225bb: Pull complete 21:07:54 f23df028b6ca: Pull complete 21:07:54 d65c8cfc05b1: Pull complete 21:08:09 2437ff75d9bd: Pull complete 21:08:09 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 21:08:09 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 21:08:09 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 21:08:09 prd-ubuntu20.04-docker-arm64-4c-16g-13928 does not seem to be running inside a container 21:08: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/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 ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 21:08:12 $ docker top 9722165e56b782a531cb0c5b673f0fc5901664322673108af6d578ca5a26736b -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 21:08:13 ---> job-cost.sh 21:08:13 lf-activate-venv: SKIPPING 21:08:13 INFO: No Stack... 21:08:13 INFO: Retrieving Pricing Info for: v3-standard-4 21:08:14 INFO: Archiving Costs [Pipeline] sh 21:08:14 + + catcut /w/workspace/device-rest-go/1/archives/cost.csv -d, 21:08:14 -f6 [Pipeline] lock 21:08:15 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-309-1-stack-cost] 21:08:15 Resource [jenkins-edgexfoundry-device-rest-go-PR-309-1-stack-cost] did not exist. Created. 21:08:15 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-309-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 21:08:15 /w/workspace/device-rest-go/1@tmp/durable-0836f1ea/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 21:08:16 + echo total: 0.10999999940395355 [Pipeline] stash 21:08:16 Warning: overwriting stash ‘stack-cost’ 21:08:16 Stashed 1 file(s) [Pipeline] } 21:08:16 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-309-1-stack-cost] [Pipeline] // lock [Pipeline] } 21:08:16 $ docker stop --time=1 9722165e56b782a531cb0c5b673f0fc5901664322673108af6d578ca5a26736b 21:08:17 $ docker rm -f --volumes 9722165e56b782a531cb0c5b673f0fc5901664322673108af6d578ca5a26736b [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 21:08:18 provisioning config files... 21:08:18 copy managed file [device-rest-go-codecov-token] to file:/w/workspace/gexfoundry_device-rest-go_PR-309@tmp/config6159501099271845385tmp [Pipeline] { [Pipeline] sh 21:08:19 + set +x 21:08:19 + bash -s -- 21:08:19 + curl -s https://codecov.io/bash 21:08:19 21:08:19 _____ _ 21:08:19 / ____| | | 21:08:19 | | ___ __| | ___ ___ _____ __ 21:08:19 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 21:08:19 | |___| (_) | (_| | __/ (_| (_) \ V / 21:08:19 \_____\___/ \__,_|\___|\___\___/ \_/ 21:08:19 Bash-1.0.6 21:08:19 21:08:19 21:08:19 ==> git version 2.25.1 found 21:08:19 ==> 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 21:08:19 Release-Date: 2020-01-08 21:08:19 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 21:08:19 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 21:08:19 ==> Jenkins CI detected. 21:08:19 current dir:  /w/workspace/gexfoundry_device-rest-go_PR-309 21:08:19 project root: . 21:08:19 --> token set from env 21:08:19 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 21:08:19 ==> Running gcov in . (disable via -X gcov) 21:08:19 ==> Python coveragepy not found 21:08:19 ==> Searching for coverage reports in: 21:08:19 + . 21:08:19 -> Found 1 reports 21:08:19 ==> Detecting git/mercurial file structure 21:08:19 ==> Reading reports 21:08:19 + ./coverage.out bytes=14663 21:08:19 ==> Appending adjustments 21:08:19 https://docs.codecov.io/docs/fixing-reports 21:08:19 + Found adjustments 21:08:19 ==> Gzipping contents 21:08:19 4.0K /tmp/codecov.PVZiSF.gz 21:08:19 ==> Uploading reports 21:08:19 url: https://codecov.io 21:08:19 query: branch=PR-309&commit=aeddd9e4be1bd614ca650a4511088d4cae95873d&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-309%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=309&job=&cmd_args= 21:08:19 -> Pinging Codecov 21:08:19 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=c51feb23-73ac-4f49-b3d1-d26df23137db&branch=PR-309&commit=aeddd9e4be1bd614ca650a4511088d4cae95873d&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-309%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=309&job=&cmd_args= 21:08:19 -> Uploading to 21:08:19 https://storage.googleapis.com/codecov/v4/raw/2023-05-05/4E5D53B4F1F92C436F7061BF334D961C/aeddd9e4be1bd614ca650a4511088d4cae95873d/99b43ce3-9227-4c69-bfc0-17ba4d25c920.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20230505%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20230505T210819Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=203257dbd14e16f0a346b7cc78272cfb5e8ad748359161bab0d9670cef32082d 21:08:19 % Total % Received % Xferd Average Speed Time Time Time Current 21:08:19 Dload Upload Total Spent Left Speed 21:08:19 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 2510 0 0 100 2510 0 12425 --:--:-- --:--:-- --:--:-- 12364 100 2510 0 0 100 2510 0 12067 --:--:-- --:--:-- --:--:-- 12009 21:08:19 -> Reports have been successfully queued for processing at https://app.codecov.io/github/edgexfoundry/device-rest-go/commit/aeddd9e4be1bd614ca650a4511088d4cae95873d [Pipeline] } 21:08:19 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 21:08:21 + [ -d /w/workspace/gexfoundry_device-rest-go_PR-309/archives ] 21:08:21 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-309/archives 21:08:21 total 16 21:08:21 drwxr-xr-x 3 root root 4096 May 5 20:59 . 21:08:21 drwxrwxr-x 10 jenkins jenkins 4096 May 5 20:59 .. 21:08:21 drwxr-xr-x 2 root root 4096 May 5 20:59 cost 21:08:21 -rw-r--r-- 1 root root 87 May 5 20:59 cost.csv 21:08:21 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-rest-go_PR-309/archives 21:08:21 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-309/archives 21:08:21 total 16 21:08:21 drwxr-xr-x 3 jenkins jenkins 4096 May 5 20:59 . 21:08:21 drwxrwxr-x 10 jenkins jenkins 4096 May 5 20:59 .. 21:08:21 drwxr-xr-x 2 jenkins jenkins 4096 May 5 20:59 cost 21:08:21 -rw-r--r-- 1 jenkins jenkins 87 May 5 20:59 cost.csv [Pipeline] libraryResource [Pipeline] sh 21:08:21 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 21:08:22 ---> package-listing.sh 21:08:22 ++ tr '[:upper:]' '[:lower:]' 21:08:22 ++ facter osfamily 21:08:23 + OS_FAMILY=debian 21:08:23 + workspace=/w/workspace/gexfoundry_device-rest-go_PR-309 21:08:23 + START_PACKAGES=/tmp/packages_start.txt 21:08:23 + END_PACKAGES=/tmp/packages_end.txt 21:08:23 + DIFF_PACKAGES=/tmp/packages_diff.txt 21:08:23 + PACKAGES=/tmp/packages_start.txt 21:08:23 + '[' /w/workspace/gexfoundry_device-rest-go_PR-309 ']' 21:08:23 + PACKAGES=/tmp/packages_end.txt 21:08:23 + case "${OS_FAMILY}" in 21:08:23 + dpkg -l 21:08:23 + grep '^ii' 21:08:23 + '[' -f /tmp/packages_start.txt ']' 21:08:23 + '[' -f /tmp/packages_end.txt ']' 21:08:23 + diff /tmp/packages_start.txt /tmp/packages_end.txt 21:08:23 + '[' /w/workspace/gexfoundry_device-rest-go_PR-309 ']' 21:08:23 + mkdir -p /w/workspace/gexfoundry_device-rest-go_PR-309/archives/ 21:08:23 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/gexfoundry_device-rest-go_PR-309/archives/ [Pipeline] echo 21:08:23 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-309/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 21:08:23 + facter operatingsystem [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 21:08:23 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 21:08:23 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 21:08:24 prd-ubuntu20.04-docker-8c-8g-13926 does not seem to be running inside a container 21:08:24 $ 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-309/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-309 -v /w/workspace/gexfoundry_device-rest-go_PR-309:/w/workspace/gexfoundry_device-rest-go_PR-309:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-309@tmp:/w/workspace/gexfoundry_device-rest-go_PR-309@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 ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 21:08:24 $ docker top 25b9a964e6f78649eec745819c9200cdb232b8d6299add4a69568d7d075116dd -eo pid,comm [Pipeline] { [Pipeline] sh 21:08:24 + touch /tmp/pre-build-complete [Pipeline] sh 21:08:25 + mkdir -p /var/log/sysstat [Pipeline] sh 21:08:25 + ls /var/log/sa-host 21:08:25 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 21:08:25 provisioning config files... 21:08:25 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-309@tmp/config3437168103727464576tmp [Pipeline] { [Pipeline] echo 21:08:25 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 21:08:25 ---> create-netrc.sh [Pipeline] } 21:08:26 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 21:08:26 ---> python-tools-install.sh [Pipeline] echo 21:08:26 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 21:08:26 ---> sudo-logs.sh 21:08:26 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 21:08:26 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 21:08:27 ---> job-cost.sh 21:08:27 lf-activate-venv: SKIPPING 21:08:27 DEBUG: total: 0.2199999988079071 21:08:27 INFO: Retrieving Stack Cost... 21:08:27 INFO: Retrieving Pricing Info for: v3-standard-8 21:08:27 INFO: Archiving Costs [Pipeline] echo 21:08:28 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 21:08:28 ---> logs-deploy.sh 21:08:28 lf-activate-venv: SKIPPING 21:08:28 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-309/1 21:08:28 INFO: archiving workspace using pattern(s): 21:08:29 Archives upload complete. 21:08:29 INFO: archiving logs to Nexus