Pull request #297 event Connecting to https://api.github.com using edgex-jenkins github personal access token Obtained Jenkinsfile from db9efb490de7778646f037f9e3397b71150b5e7b+f5cefbfc3079018690f325d1bed071e9846b5efb (95d6886acbfc9db2097c2a6fe976d1d245f86993) 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-ssh8884812991058056518.key > git ls-remote -h -t -- git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Found match: refs/tags/stable revision 8d11186b4ecddd371e5d69e8bc5262dee0d7f4a1 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-ssh390418895845795461.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 8d11186b4ecddd371e5d69e8bc5262dee0d7f4a1 The recommended git tool is: git using credential edgex-jenkins-ssh > git rev-parse --resolve-git-dir /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-297/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82/.git # timeout=10 Fetching changes from the remote Git repository > 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 > 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-297/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh3072455353114360864.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision 8d11186b4ecddd371e5d69e8bc5262dee0d7f4a1 (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f 8d11186b4ecddd371e5d69e8bc5262dee0d7f4a1 # timeout=10 Commit message: "fix: bug with isLTS relying on env.GIT_BRANCH inside cd-management repo (#429)" > 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 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-ssh12454287492143166585.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 > git rev-parse --resolve-git-dir /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-297/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e/.git # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url git@github.com:lfit/releng-pipelines.git # timeout=10 Fetching without tags 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-297/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e@tmp/jenkins-gitclient-ssh2786328960641746013.key > git fetch --no-tags --progress -- git@github.com:lfit/releng-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10 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 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 Still waiting to schedule task Waiting for next available executor on ‘ubuntu20.04-docker-8c-8g’ Running on prd-ubuntu20.04-docker-8c-8g-9428 in /w/workspace/gexfoundry_device-rest-go_PR-297 [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-297 # 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 f5cefbfc3079018690f325d1bed071e9846b5efb into PR head commit db9efb490de7778646f037f9e3397b71150b5e7b Merge succeeded, producing db9efb490de7778646f037f9e3397b71150b5e7b Checking out Revision db9efb490de7778646f037f9e3397b71150b5e7b (PR-297) Commit message: "build(deps): Bump github.com/edgexfoundry/go-mod-core-contracts/v3" First time build. Skipping changelog. [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 01:32:11 Timeout set to expire in 6 hr 0 min [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/297/head:refs/remotes/origin/PR-297 +refs/heads/main:refs/remotes/origin/main # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f db9efb490de7778646f037f9e3397b71150b5e7b # 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 f5cefbfc3079018690f325d1bed071e9846b5efb # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f db9efb490de7778646f037f9e3397b71150b5e7b # timeout=10 > git rev-list --no-walk c7cf61063326e8e2a4d7c4cb426cea306f29b9f0 # timeout=10 [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 01:32:11 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 01:32:11 ========================================================= 01:32:11 EdgeX Global Pipelines Version Info 01:32:11 ========================================================= [Pipeline] libraryResource [Pipeline] sh 01:32:12 ------------------- 01:32:12 stable info: 01:32:12 ------------------- 01:32:12 Commited By: Bill Mahoney bill.mahoney@intel.com 01:32:12 Commit SHA: 8d11186b4ecddd371e5d69e8bc5262dee0d7f4a1 01:32:12 Message: update stable to v1.0.248 01:32:12 ------------------- 01:32:12 experimental info: 01:32:12 ------------------- 01:32:12 Commited By: **** collab-it+edgex@linuxfoundation.org 01:32:12 Commit SHA: 8d11186b4ecddd371e5d69e8bc5262dee0d7f4a1 01:32:12 Message: update experimental to v1.0.248 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 01:32:13 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 01:32:13 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 01:32:13 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 01:32:13 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 01:32:13 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 01:32:13 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.20 [Pipeline] echo 01:32:13 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 01:32:13 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 01:32:13 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 01:32:13 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 01:32:13 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 01:32:13 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 01:32:13 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 01:32:13 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 01:32:13 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 01:32:13 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 01:32:13 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 01:32:13 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 01:32:13 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 01:32:13 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 01:32:13 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 01:32:13 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 01:32:13 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 01:32:13 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 01:32:13 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 01:32:13 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 01:32:13 [edgeXSetupEnvironment]: set envvar SNYK_DEBUG = false [Pipeline] echo 01:32:13 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-297 [Pipeline] echo 01:32:13 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-297 [Pipeline] echo 01:32:13 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-297 [Pipeline] echo 01:32:13 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = db9efb490de7778646f037f9e3397b71150b5e7b [Pipeline] echo 01:32:13 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = db9efb4 [Pipeline] echo 01:32:13 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 01:32:13 provisioning config files... 01:32:13 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-297@tmp/config253443241465478015tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 01:32:14 ---> docker-login.sh 01:32:14 nexus3.edgexfoundry.org:10001 01:32:14 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 01:32:14 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 01:32:14 Configure a credential helper to remove this warning. See 01:32:14 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 01:32:14 01:32:14 Login Succeeded 01:32:14 nexus3.edgexfoundry.org:10002 01:32:14 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 01:32:14 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 01:32:14 Configure a credential helper to remove this warning. See 01:32:14 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 01:32:14 01:32:14 Login Succeeded 01:32:14 nexus3.edgexfoundry.org:10003 01:32:14 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 01:32:14 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 01:32:14 Configure a credential helper to remove this warning. See 01:32:14 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 01:32:14 01:32:14 Login Succeeded 01:32:14 nexus3.edgexfoundry.org:10004 01:32:14 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 01:32:14 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 01:32:14 Configure a credential helper to remove this warning. See 01:32:14 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 01:32:14 01:32:14 Login Succeeded 01:32:14 docker.io 01:32:14 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 01:32:14 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 01:32:14 Configure a credential helper to remove this warning. See 01:32:14 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 01:32:14 01:32:14 Login Succeeded 01:32:14 ---> docker-login.sh ends [Pipeline] } 01:32:14 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 01:32:15 + git rev-list -1 --merges db9efb490de7778646f037f9e3397b71150b5e7b~1..db9efb490de7778646f037f9e3397b71150b5e7b [Pipeline] echo 01:32:15 -----------> git rev-list -1 --merges db9efb490de7778646f037f9e3397b71150b5e7b~1..db9efb490de7778646f037f9e3397b71150b5e7b db9efb490de7778646f037f9e3397b71150b5e7b [false] [Pipeline] sh 01:32:15 + git log --format=format:%s -1 db9efb490de7778646f037f9e3397b71150b5e7b [Pipeline] echo 01:32:15 ========================================================= 01:32:15 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 01:32:15 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 01:32:15 + git log --format=format:%s -1 db9efb490de7778646f037f9e3397b71150b5e7b [Pipeline] echo 01:32:15 [semverPrep] GIT_COMMIT: db9efb490de7778646f037f9e3397b71150b5e7b, Commit Message: build(deps): Bump github.com/edgexfoundry/go-mod-core-contracts/v3 [Pipeline] echo 01:32:15 [semverPrep] This is not a build commit. [Pipeline] sh 01:32:16 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 01:32:16 + grep -v github /etc/ssh/ssh_known_hosts 01:32:16 + [ -e /tmp/ssh_known_hosts ] 01:32:16 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 01:32:16 + + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 01:32:16 sudo tee -a /etc/ssh/ssh_known_hosts 01:32:16 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 01:32:16 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 01:32:16 01:32:16 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 01:32:17 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 01:32:17 0.1.4: Pulling from edgex-devops/py-git-semver 01:32:17 b85a868b505f: Pulling fs layer 01:32:17 e2be974225ed: Pulling fs layer 01:32:17 339a4e72a1f5: Pulling fs layer 01:32:17 988bab9f4d93: Pulling fs layer 01:32:17 1469e6f7b9e6: Pulling fs layer 01:32:17 eaf3925da568: Pulling fs layer 01:32:17 bab4dde63d76: Pulling fs layer 01:32:17 bde34c3a00c8: Pulling fs layer 01:32:17 b352a97aabf1: Pulling fs layer 01:32:17 4872d77fe225: Pulling fs layer 01:32:17 5851b861e8e6: Pulling fs layer 01:32:17 bab4dde63d76: Waiting 01:32:17 bde34c3a00c8: Waiting 01:32:17 b352a97aabf1: Waiting 01:32:17 4872d77fe225: Waiting 01:32:17 988bab9f4d93: Waiting 01:32:17 5851b861e8e6: Waiting 01:32:17 1469e6f7b9e6: Waiting 01:32:17 eaf3925da568: Waiting 01:32:17 e2be974225ed: Download complete 01:32:17 988bab9f4d93: Verifying Checksum 01:32:17 988bab9f4d93: Download complete 01:32:17 1469e6f7b9e6: Verifying Checksum 01:32:17 1469e6f7b9e6: Download complete 01:32:17 339a4e72a1f5: Verifying Checksum 01:32:17 339a4e72a1f5: Download complete 01:32:17 eaf3925da568: Verifying Checksum 01:32:17 eaf3925da568: Download complete 01:32:17 bde34c3a00c8: Verifying Checksum 01:32:17 bde34c3a00c8: Download complete 01:32:17 b352a97aabf1: Verifying Checksum 01:32:17 b352a97aabf1: Download complete 01:32:17 4872d77fe225: Verifying Checksum 01:32:17 4872d77fe225: Download complete 01:32:17 5851b861e8e6: Download complete 01:32:17 b85a868b505f: Verifying Checksum 01:32:17 b85a868b505f: Download complete 01:32:17 bab4dde63d76: Verifying Checksum 01:32:17 bab4dde63d76: Download complete 01:32:18 b85a868b505f: Pull complete 01:32:18 e2be974225ed: Pull complete 01:32:19 339a4e72a1f5: Pull complete 01:32:19 988bab9f4d93: Pull complete 01:32:19 1469e6f7b9e6: Pull complete 01:32:19 eaf3925da568: Pull complete 01:32:21 bab4dde63d76: Pull complete 01:32:21 bde34c3a00c8: Pull complete 01:32:21 b352a97aabf1: Pull complete 01:32:21 4872d77fe225: Pull complete 01:32:21 5851b861e8e6: Pull complete 01:32:21 Digest: sha256:59a28aa3b44c0bc56b9c3d2e9ecabe42e63693d939cc6e425eb8786f29f663d8 01:32:21 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 01:32:21 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 01:32:21 prd-ubuntu20.04-docker-8c-8g-9428 does not seem to be running inside a container 01:32:22 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/gexfoundry_device-rest-go_PR-297 -v /w/workspace/gexfoundry_device-rest-go_PR-297:/w/workspace/gexfoundry_device-rest-go_PR-297:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-297@tmp:/w/workspace/gexfoundry_device-rest-go_PR-297@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-devops/py-git-semver:0.1.4 cat 01:32:25 $ docker top 30787413e538983f87f7ad73e5c8d042ac7f95bb2ee0b522914ffe526d128034 -eo pid,comm 01:32:25 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). 01:32:25 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 01:32:25 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 01:32:25 [ssh-agent] Looking for ssh-agent implementation... 01:32:25 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 01:32:25 $ docker exec 30787413e538983f87f7ad73e5c8d042ac7f95bb2ee0b522914ffe526d128034 ssh-agent 01:32:25 SSH_AUTH_SOCK=/tmp/ssh-gvDLHMnBKGIm/agent.32 01:32:25 SSH_AGENT_PID=38 01:32:25 Running ssh-add (command line suppressed) 01:32:25 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-297@tmp/private_key_1219937091392481086.key (/w/workspace/gexfoundry_device-rest-go_PR-297@tmp/private_key_1219937091392481086.key) 01:32:25 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 01:32:26 + git tag --points-at HEAD [Pipeline] } 01:32:26 $ docker exec --env ******** --env ******** 30787413e538983f87f7ad73e5c8d042ac7f95bb2ee0b522914ffe526d128034 ssh-agent -k 01:32:26 unset SSH_AUTH_SOCK; 01:32:26 unset SSH_AGENT_PID; 01:32:26 echo Agent pid 38 killed; 01:32:26 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 01:32:26 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 01:32:26 [ssh-agent] Looking for ssh-agent implementation... 01:32:26 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 01:32:26 $ docker exec 30787413e538983f87f7ad73e5c8d042ac7f95bb2ee0b522914ffe526d128034 ssh-agent 01:32:26 SSH_AUTH_SOCK=/tmp/ssh-DFMHlOEzNTYl/agent.71 01:32:26 SSH_AGENT_PID=78 01:32:26 Running ssh-add (command line suppressed) 01:32:26 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-297@tmp/private_key_1843779137693586119.key (/w/workspace/gexfoundry_device-rest-go_PR-297@tmp/private_key_1843779137693586119.key) 01:32:26 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 01:32:26 + git semver init 01:32:27 2023-04-24 01:32:27,075 [run_init] DEBUG init version:0.0.0 force:False 01:32:27 2023-04-24 01:32:27,076 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/gexfoundry_device-rest-go_PR-297/.semver 01:32:27 2023-04-24 01:32:27,076 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-rest-go.git /w/workspace/gexfoundry_device-rest-go_PR-297/.semver 01:32:27 2023-04-24 01:32:27,077 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-rest-go.git', '/w/workspace/gexfoundry_device-rest-go_PR-297/.semver'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-297, universal_newlines=False, shell=None, istream=None) 01:32:28 2023-04-24 01:32:28,185 [append_file] DEBUG append to file:/w/workspace/gexfoundry_device-rest-go_PR-297/.git/info/exclude 01:32:28 2023-04-24 01:32:28,185 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/gexfoundry_device-rest-go_PR-297/.semver/PR-297 with force:False 01:32:28 2023-04-24 01:32:28,185 [write_file] DEBUG write to file:/w/workspace/gexfoundry_device-rest-go_PR-297/.semver/PR-297 01:32:28 2023-04-24 01:32:28,189 [execute] INFO git cat-file --batch-check 01:32:28 2023-04-24 01:32:28,190 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-297/.semver, universal_newlines=False, shell=None, istream=) 01:32:28 2023-04-24 01:32:28,196 [execute] INFO git cat-file --batch 01:32:28 2023-04-24 01:32:28,196 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-297/.semver, universal_newlines=False, shell=None, istream=) 01:32:28 2023-04-24 01:32:28,202 [read_version] DEBUG read version from /w/workspace/gexfoundry_device-rest-go_PR-297/.semver/PR-297 01:32:28 0.0.0 [Pipeline] } 01:32:28 $ docker exec --env ******** --env ******** 30787413e538983f87f7ad73e5c8d042ac7f95bb2ee0b522914ffe526d128034 ssh-agent -k 01:32:28 unset SSH_AUTH_SOCK; 01:32:28 unset SSH_AGENT_PID; 01:32:28 echo Agent pid 78 killed; 01:32:28 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 01:32:28 + git semver [Pipeline] } 01:32:29 $ docker stop --time=1 30787413e538983f87f7ad73e5c8d042ac7f95bb2ee0b522914ffe526d128034 01:32:30 $ docker rm -f --volumes 30787413e538983f87f7ad73e5c8d042ac7f95bb2ee0b522914ffe526d128034 [Pipeline] // withDockerContainer [Pipeline] sh 01:32:30 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 01:32:31 Stashed 1 file(s) [Pipeline] echo 01:32:31 [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 01:32:31 provisioning config files... 01:32:31 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-297@tmp/config10184776896145143359tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 01:32:31 ---> docker-login.sh 01:32:31 nexus3.edgexfoundry.org:10001 01:32:31 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 01:32:31 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 01:32:31 Configure a credential helper to remove this warning. See 01:32:31 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 01:32:31 01:32:31 Login Succeeded 01:32:31 nexus3.edgexfoundry.org:10002 01:32:31 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 01:32:31 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 01:32:31 Configure a credential helper to remove this warning. See 01:32:31 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 01:32:31 01:32:31 Login Succeeded 01:32:31 nexus3.edgexfoundry.org:10003 01:32:31 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 01:32:31 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 01:32:31 Configure a credential helper to remove this warning. See 01:32:31 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 01:32:31 01:32:31 Login Succeeded 01:32:31 nexus3.edgexfoundry.org:10004 01:32:31 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 01:32:31 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 01:32:31 Configure a credential helper to remove this warning. See 01:32:31 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 01:32:31 01:32:31 Login Succeeded 01:32:31 docker.io 01:32:31 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 01:32:31 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 01:32:31 Configure a credential helper to remove this warning. See 01:32:31 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 01:32:31 01:32:31 Login Succeeded 01:32:31 ---> docker-login.sh ends [Pipeline] } 01:32:32 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 01:32:32 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 01:32:32 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 01:32:32 ========================================================= 01:32:32 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine] 01:32:32 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 01:32:32 + 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 . 01:32:32 Sending build context to Docker daemon 10.9MB 01:32:32 Step 1/12 : ARG BASE=golang:1.20-alpine3.17 01:32:32 Step 2/12 : FROM ${BASE} AS builder 01:32:32 1.20-alpine: Pulling from edgex-devops/edgex-golang-base 01:32:32 63b65145d645: Pulling fs layer 01:32:32 a2d21d5440eb: Pulling fs layer 01:32:32 935e6c44a52c: Pulling fs layer 01:32:32 94cc34f8dd06: Pulling fs layer 01:32:32 30dea6a524f1: Pulling fs layer 01:32:32 a2aff8979fd8: Pulling fs layer 01:32:32 94cc34f8dd06: Waiting 01:32:32 30dea6a524f1: Waiting 01:32:32 6808be2612f2: Pulling fs layer 01:32:32 f25807f1079a: Pulling fs layer 01:32:32 a2aff8979fd8: Waiting 01:32:32 6808be2612f2: Waiting 01:32:32 f25807f1079a: Waiting 01:32:32 a2d21d5440eb: Download complete 01:32:32 94cc34f8dd06: Verifying Checksum 01:32:32 94cc34f8dd06: Download complete 01:32:32 30dea6a524f1: Verifying Checksum 01:32:32 30dea6a524f1: Download complete 01:32:32 63b65145d645: Verifying Checksum 01:32:32 63b65145d645: Download complete 01:32:32 a2aff8979fd8: Verifying Checksum 01:32:32 a2aff8979fd8: Download complete 01:32:32 63b65145d645: Pull complete 01:32:32 a2d21d5440eb: Pull complete 01:32:33 f25807f1079a: Download complete 01:32:33 935e6c44a52c: Verifying Checksum 01:32:33 935e6c44a52c: Download complete 01:32:33 6808be2612f2: Verifying Checksum 01:32:33 6808be2612f2: Download complete 01:32:36 935e6c44a52c: Pull complete 01:32:36 94cc34f8dd06: Pull complete 01:32:36 30dea6a524f1: Pull complete 01:32:36 a2aff8979fd8: Pull complete 01:32:39 6808be2612f2: Pull complete 01:32:39 f25807f1079a: Pull complete 01:32:39 Digest: sha256:106942793af8b5907f587008084bb0888cadbc76d86ebd37d4d3227fb0f1e438 01:32:39 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine 01:32:39 ---> 3b553350e43f 01:32:39 Step 3/12 : ARG ADD_BUILD_TAGS="" 01:32:43 ---> Running in 8eee87ff1bec 01:32:43 Removing intermediate container 8eee87ff1bec 01:32:43 ---> 7ae99f4532e8 01:32:43 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 01:32:43 ---> Running in 94d48ab5fc44 01:32:44 Removing intermediate container 94d48ab5fc44 01:32:44 ---> 70ddf4fd7945 01:32:44 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 01:32:44 ---> Running in 1b83f77300b7 01:32:44 Removing intermediate container 1b83f77300b7 01:32:44 ---> 08f42aae9ad1 01:32:44 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 01:32:45 ---> Running in 67f4f26452e0 01:32:45 Removing intermediate container 67f4f26452e0 01:32:45 ---> 2e6064c9c990 01:32:45 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 01:32:45 ---> Running in 9974f5b85aaf 01:32:46 Still waiting to schedule task 01:32:46 Waiting for next available executor on ‘ubuntu20.04-docker-arm64-4c-16g’ 01:32:46 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 01:32:46 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 01:32:46 (1/4) Installing openssh-keygen (9.1_p1-r2) 01:32:46 (2/4) Installing libedit (20221030.3.1-r0) 01:32:46 (3/4) Installing openssh-client-common (9.1_p1-r2) 01:32:46 (4/4) Installing openssh-client-default (9.1_p1-r2) 01:32:46 Executing busybox-1.35.0-r29.trigger 01:32:46 OK: 269 MiB in 57 packages 01:32:46 Removing intermediate container 9974f5b85aaf 01:32:46 ---> 8f08fab6292a 01:32:46 Step 8/12 : WORKDIR /device-rest-go 01:32:47 ---> Running in 9fca04539e6e 01:32:47 Removing intermediate container 9fca04539e6e 01:32:47 ---> 6c3781d94740 01:32:47 Step 9/12 : COPY go.mod vendor* ./ 01:32:47 ---> 4280d6233a75 01:32:47 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 01:32:47 ---> Running in 5620da0f0312 01:33:19 Removing intermediate container 5620da0f0312 01:33:19 ---> e622d7bf54b6 01:33:19 Step 11/12 : COPY . . 01:33:19 ---> 381c87920dfd 01:33:19 Step 12/12 : RUN $MAKE 01:33:19 ---> Running in 03539a34eede 01:33:19 noop 01:33:20 Removing intermediate container 03539a34eede 01:33:20 ---> 2df316652452 01:33:20 Successfully built 2df316652452 01:33:20 Successfully tagged ci-base-image-x86_64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 01:33:20 + docker inspect -f . ci-base-image-x86_64 01:33:20 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 01:33:20 prd-ubuntu20.04-docker-8c-8g-9428 does not seem to be running inside a container 01:33:20 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-297 -v /w/workspace/gexfoundry_device-rest-go_PR-297:/w/workspace/gexfoundry_device-rest-go_PR-297:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-297@tmp:/w/workspace/gexfoundry_device-rest-go_PR-297@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 01:33:20 $ docker top 32c5374947a6c5708fb6a7dedd1c0d4839df70660345c5c43dd71c01f178252c -eo pid,comm [Pipeline] { [Pipeline] sh 01:33:21 + go version 01:33:21 go version go1.20.2 linux/amd64 [Pipeline] } 01:33:21 $ docker stop --time=1 32c5374947a6c5708fb6a7dedd1c0d4839df70660345c5c43dd71c01f178252c 01:33:22 $ docker rm -f --volumes 32c5374947a6c5708fb6a7dedd1c0d4839df70660345c5c43dd71c01f178252c [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 01:33:22 + docker inspect -f . ci-base-image-x86_64 01:33:22 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 01:33:23 prd-ubuntu20.04-docker-8c-8g-9428 does not seem to be running inside a container 01:33:23 $ 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-297 -v /w/workspace/gexfoundry_device-rest-go_PR-297:/w/workspace/gexfoundry_device-rest-go_PR-297:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-297@tmp:/w/workspace/gexfoundry_device-rest-go_PR-297@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 01:33:23 $ docker top 4439ef24fa8e82de9533a445bc6e215349aa78703c5a743a4f4a4805da06ef95 -eo pid,comm [Pipeline] { [Pipeline] sh 01:33:23 + git config --global --add safe.directory /w/workspace/gexfoundry_device-rest-go_PR-297 [Pipeline] fileExists [Pipeline] sh 01:33:24 + make test 01:33:24 go test ./... -coverprofile=coverage.out ./... 01:33:29 ? github.com/edgexfoundry/device-rest-go [no test files] 01:33:39 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 01:33:39 ok github.com/edgexfoundry/device-rest-go/driver 0.013s coverage: 32.2% of statements 01:33:44 go vet ./... 01:33:47 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 01:33:47 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 01:33:47 ./bin/test-attribution-txt.sh [Pipeline] echo 01:33:47 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 01:33:47 $ docker stop --time=1 4439ef24fa8e82de9533a445bc6e215349aa78703c5a743a4f4a4805da06ef95 01:33:51 $ docker rm -f --volumes 4439ef24fa8e82de9533a445bc6e215349aa78703c5a743a4f4a4805da06ef95 [Pipeline] // withDockerContainer [Pipeline] sh 01:33:51 + sudo chown -R jenkins:jenkins . [Pipeline] stash 01:33:51 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 01:33:52 + sudo chown -R jenkins:jenkins . [Pipeline] sh 01:33:52 + ls -al . 01:33:52 total 184 01:33:52 drwxrwxr-x 9 jenkins jenkins 4096 Apr 24 01:33 . 01:33:52 drwxrwxr-x 4 jenkins jenkins 4096 Apr 24 01:32 .. 01:33:52 -rw-rw-r-- 1 jenkins jenkins 151 Apr 24 01:32 .dockerignore 01:33:52 drwxrwxr-x 8 jenkins jenkins 4096 Apr 24 01:32 .git 01:33:52 drwxrwxr-x 3 jenkins jenkins 4096 Apr 24 01:32 .github 01:33:52 -rw-rw-r-- 1 jenkins jenkins 329 Apr 24 01:32 .gitignore 01:33:52 -rw-rw-r-- 1 jenkins jenkins 41 Apr 24 01:32 .golangci.yml 01:33:52 drwxr-xr-x 3 jenkins jenkins 4096 Apr 24 01:32 .semver 01:33:52 -rw-rw-r-- 1 jenkins jenkins 9331 Apr 24 01:32 Attribution.txt 01:33:52 -rw-rw-r-- 1 jenkins jenkins 13085 Apr 24 01:32 CHANGELOG.md 01:33:52 -rw-rw-r-- 1 jenkins jenkins 1578 Apr 24 01:32 Dockerfile 01:33:52 -rw-rw-r-- 1 jenkins jenkins 677 Apr 24 01:32 GOVERNANCE.md 01:33:52 -rw-rw-r-- 1 jenkins jenkins 680 Apr 24 01:32 Jenkinsfile 01:33:52 -rw-rw-r-- 1 jenkins jenkins 11340 Apr 24 01:32 LICENSE 01:33:52 -rw-rw-r-- 1 jenkins jenkins 1779 Apr 24 01:32 Makefile 01:33:52 -rw-rw-r-- 1 jenkins jenkins 620 Apr 24 01:32 OWNERS.md 01:33:52 -rw-rw-r-- 1 jenkins jenkins 15321 Apr 24 01:32 README.md 01:33:52 -rw-rw-r-- 1 jenkins jenkins 5 Apr 24 01:32 VERSION 01:33:52 drwxrwxr-x 2 jenkins jenkins 4096 Apr 24 01:32 bin 01:33:52 drwxrwxr-x 3 jenkins jenkins 4096 Apr 24 01:32 cmd 01:33:52 -rw-r--r-- 1 jenkins jenkins 14663 Apr 24 01:33 coverage.out 01:33:52 drwxrwxr-x 2 jenkins jenkins 4096 Apr 24 01:32 driver 01:33:52 -rw-rw-r-- 1 jenkins jenkins 3402 Apr 24 01:32 go.mod 01:33:52 -rw-rw-r-- 1 jenkins jenkins 31443 Apr 24 01:32 go.sum 01:33:52 drwxrwxr-x 4 jenkins jenkins 4096 Apr 24 01:32 snap 01:33:52 -rw-rw-r-- 1 jenkins jenkins 713 Apr 24 01:32 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 01:33:52 + 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=db9efb490de7778646f037f9e3397b71150b5e7b --label arch=amd64 --label version=0.0.0 . 01:33:52 Sending build context to Docker daemon 10.92MB 01:33:52 Step 1/25 : ARG BASE=golang:1.20-alpine3.17 01:33:52 Step 2/25 : FROM ${BASE} AS builder 01:33:52 ---> 2df316652452 01:33:52 Step 3/25 : ARG ADD_BUILD_TAGS="" 01:33:53 ---> Running in 3bfbc6cefbb5 01:33:53 Removing intermediate container 3bfbc6cefbb5 01:33:53 ---> 187e3ab57777 01:33:53 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 01:33:53 ---> Running in 0ae0876269c4 01:33:53 Removing intermediate container 0ae0876269c4 01:33:53 ---> 320180874b11 01:33:53 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 01:33:53 ---> Running in e2a7b886cb87 01:33:53 Removing intermediate container e2a7b886cb87 01:33:53 ---> 71bbd254cd90 01:33:53 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 01:33:53 ---> Running in e6b85981dacd 01:33:54 Removing intermediate container e6b85981dacd 01:33:54 ---> 3c5be9d21726 01:33:54 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 01:33:54 ---> Running in 6b15d3b2547e 01:33:54 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 01:33:54 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 01:33:54 OK: 269 MiB in 57 packages 01:33:54 Removing intermediate container 6b15d3b2547e 01:33:54 ---> 30aa39d747a2 01:33:54 Step 8/25 : WORKDIR /device-rest-go 01:33:54 ---> Running in 095a2132e33e 01:33:55 Removing intermediate container 095a2132e33e 01:33:55 ---> 40ee78cb813c 01:33:55 Step 9/25 : COPY go.mod vendor* ./ 01:33:55 ---> 7e3a4555b57b 01:33:55 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 01:33:55 ---> Running in f0ecd79097f1 01:33:55 Removing intermediate container f0ecd79097f1 01:33:55 ---> 2bcfdc058ff3 01:33:55 Step 11/25 : COPY . . 01:33:56 ---> 400fb2423daf 01:33:56 Step 12/25 : RUN $MAKE 01:33:56 ---> Running in 0c595103b459 01:33:56 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 01:34:18 Removing intermediate container 0c595103b459 01:34:18 ---> 5ec43c454814 01:34:18 Step 13/25 : FROM alpine:3.17 01:34:18 3.17: Pulling from library/alpine 01:34:18 f56be85fc22e: Pulling fs layer 01:34:18 f56be85fc22e: Verifying Checksum 01:34:18 f56be85fc22e: Download complete 01:34:18 f56be85fc22e: Pull complete 01:34:18 Digest: sha256:124c7d2707904eea7431fffe91522a01e5a861a624ee31d03372cc1d138a3126 01:34:18 Status: Downloaded newer image for alpine:3.17 01:34:18 ---> 9ed4aefc74f6 01:34:18 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 01:34:18 ---> Running in 118af40f4642 01:34:18 Removing intermediate container 118af40f4642 01:34:18 ---> 247c202b92ef 01:34:18 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 01:34:18 ---> Running in c5a00b80ba11 01:34:18 Removing intermediate container c5a00b80ba11 01:34:18 ---> af9c8427e792 01:34:18 Step 16/25 : RUN apk add --update --no-cache dumb-init 01:34:18 ---> Running in 5d4dd25e99ed 01:34:19 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 01:34:19 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 01:34:19 (1/1) Installing dumb-init (1.2.5-r2) 01:34:19 Executing busybox-1.35.0-r29.trigger 01:34:19 OK: 7 MiB in 16 packages 01:34:20 Removing intermediate container 5d4dd25e99ed 01:34:20 ---> 975749ba2f46 01:34:20 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 01:34:20 ---> d9728c5ca967 01:34:20 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 01:34:20 ---> 12ce1a708c23 01:34:20 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 01:34:20 ---> 9be17b679c7c 01:34:20 Step 20/25 : EXPOSE 59986 01:34:20 ---> Running in 7f5c48275427 01:34:21 Removing intermediate container 7f5c48275427 01:34:21 ---> 1e587baf3f35 01:34:21 Step 21/25 : ENTRYPOINT ["/device-rest"] 01:34:21 ---> Running in 9f50e944c69b 01:34:21 Removing intermediate container 9f50e944c69b 01:34:21 ---> e1c6db1b7587 01:34:21 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 01:34:21 ---> Running in 7b14b861765f 01:34:21 Removing intermediate container 7b14b861765f 01:34:21 ---> 70569c875d0e 01:34:21 Step 23/25 : LABEL arch=amd64 01:34:21 ---> Running in ebd13d2755c3 01:34:21 Removing intermediate container ebd13d2755c3 01:34:21 ---> 2f9138d907f0 01:34:21 Step 24/25 : LABEL git_sha=db9efb490de7778646f037f9e3397b71150b5e7b 01:34:21 ---> Running in 4935e2248376 01:34:21 Removing intermediate container 4935e2248376 01:34:21 ---> 624ce07f9eb5 01:34:21 Step 25/25 : LABEL version=0.0.0 01:34:21 ---> Running in 307afaa3729d 01:34:21 Removing intermediate container 307afaa3729d 01:34:21 ---> 44a9719eeb38 01:34:21 [Warning] One or more build-args [ARCH] were not consumed 01:34:21 Successfully built 44a9719eeb38 01:34:21 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 01:34:22 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 01:34:22 01:34:22 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 01:34:22 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 01:34:22 latest: Pulling from edgex-lftools-log-publisher 01:34:22 5eb5b503b376: Pulling fs layer 01:34:22 5c69ac0246d0: Pulling fs layer 01:34:22 ec43610c2a17: Pulling fs layer 01:34:22 3a2ae6a8a46f: Pulling fs layer 01:34:22 33b1e0a273af: Pulling fs layer 01:34:22 5d3b04190fa2: Pulling fs layer 01:34:22 2f39f015ded8: Pulling fs layer 01:34:22 3a2ae6a8a46f: Waiting 01:34:22 33b1e0a273af: Waiting 01:34:22 5d3b04190fa2: Waiting 01:34:22 5c69ac0246d0: Verifying Checksum 01:34:22 5c69ac0246d0: Download complete 01:34:22 3a2ae6a8a46f: Download complete 01:34:22 33b1e0a273af: Verifying Checksum 01:34:22 33b1e0a273af: Download complete 01:34:22 5d3b04190fa2: Verifying Checksum 01:34:22 5d3b04190fa2: Download complete 01:34:22 ec43610c2a17: Verifying Checksum 01:34:22 ec43610c2a17: Download complete 01:34:22 5eb5b503b376: Verifying Checksum 01:34:22 5eb5b503b376: Download complete 01:34:23 2f39f015ded8: Verifying Checksum 01:34:23 2f39f015ded8: Download complete 01:34:23 5eb5b503b376: Pull complete 01:34:24 5c69ac0246d0: Pull complete 01:34:24 ec43610c2a17: Pull complete 01:34:24 3a2ae6a8a46f: Pull complete 01:34:24 33b1e0a273af: Pull complete 01:34:24 5d3b04190fa2: Pull complete 01:34:29 2f39f015ded8: Pull complete 01:34:29 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 01:34:29 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 01:34:29 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 01:34:29 prd-ubuntu20.04-docker-8c-8g-9428 does not seem to be running inside a container 01:34:29 $ 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-297 -v /w/workspace/gexfoundry_device-rest-go_PR-297:/w/workspace/gexfoundry_device-rest-go_PR-297:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-297@tmp:/w/workspace/gexfoundry_device-rest-go_PR-297@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 01:34:33 $ docker top 3de9ee7d3b819cd5fb99177195d03a71dfae74783aecbcf1513422b80786205f -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 01:34:33 ---> job-cost.sh 01:34:33 lf-activate-venv: SKIPPING 01:34:33 INFO: No Stack... 01:34:34 INFO: Retrieving Pricing Info for: v3-standard-8 01:34:34 INFO: Archiving Costs [Pipeline] sh 01:34:34 + cat /w/workspace/gexfoundry_device-rest-go_PR-297/archives/cost.csv 01:34:34 + cut -d, -f6 [Pipeline] lock 01:34:34 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-297-2-stack-cost] 01:34:34 Resource [jenkins-edgexfoundry-device-rest-go-PR-297-2-stack-cost] did not exist. Created. 01:34:34 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-297-2-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 01:34:34 + echo total: 0.2199999988079071 [Pipeline] stash 01:34:34 Stashed 1 file(s) [Pipeline] } 01:34:34 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-297-2-stack-cost] [Pipeline] // lock [Pipeline] } 01:34:34 $ docker stop --time=1 3de9ee7d3b819cd5fb99177195d03a71dfae74783aecbcf1513422b80786205f 01:34:36 $ docker rm -f --volumes 3de9ee7d3b819cd5fb99177195d03a71dfae74783aecbcf1513422b80786205f [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 01:35:22 Running on prd-ubuntu20.04-docker-arm64-4c-16g-9434 in /w/workspace/gexfoundry_device-rest-go_PR-297 [Pipeline] { [Pipeline] ws 01:35:22 Running in /w/workspace/device-rest-go/2 [Pipeline] { [Pipeline] checkout 01:35:22 The recommended git tool is: git 01:35:32 using credential edgex-jenkins-ssh 01:35:32 Cloning the remote Git repository 01:35:32 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 01:35:32 > git init /w/workspace/device-rest-go/2 # timeout=10 01:35:33 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 01:35:33 > git --version # timeout=10 01:35:33 > git --version # 'git version 2.25.1' 01:35:33 using GIT_SSH to set credentials SSH Credentials for GitHub 01:35:33 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 01:35:41 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 01:35:41 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 01:35:43 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 01:35:43 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 01:35:43 using GIT_SSH to set credentials SSH Credentials for GitHub 01:35:43 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/297/head:refs/remotes/origin/PR-297 +refs/heads/main:refs/remotes/origin/main # timeout=10 01:35:43 Merging remotes/origin/main commit f5cefbfc3079018690f325d1bed071e9846b5efb into PR head commit db9efb490de7778646f037f9e3397b71150b5e7b 01:35:44 Merge succeeded, producing db9efb490de7778646f037f9e3397b71150b5e7b 01:35:44 Checking out Revision db9efb490de7778646f037f9e3397b71150b5e7b (PR-297) 01:35:45 Commit message: "build(deps): Bump github.com/edgexfoundry/go-mod-core-contracts/v3" 01:35:43 > git config core.sparsecheckout # timeout=10 01:35:43 > git checkout -f db9efb490de7778646f037f9e3397b71150b5e7b # timeout=10 01:35:44 > git remote # timeout=10 01:35:44 > git config --get remote.origin.url # timeout=10 01:35:44 using GIT_SSH to set credentials SSH Credentials for GitHub 01:35:44 > git merge f5cefbfc3079018690f325d1bed071e9846b5efb # timeout=10 01:35:44 > git rev-parse HEAD^{commit} # timeout=10 01:35:44 > git config core.sparsecheckout # timeout=10 01:35:44 > git checkout -f db9efb490de7778646f037f9e3397b71150b5e7b # timeout=10 [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 01:35:46 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 01:35:46 % Total % Received % Xferd Average Speed Time Time Time Current 01:35:46 Dload Upload Total Spent Left Speed 01:35:46 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 12751 100 12751 0 0 185k 0 --:--:-- --:--:-- --:--:-- 185k [Pipeline] sh 01:35:47 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 01:35:47 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 01:35:47 + sudo tee /etc/docker/daemon.new 01:35:47 { 01:35:47 "registry-mirrors": [ 01:35:47 "https://nexus3.edgexfoundry.org:10001" 01:35:47 ], 01:35:47 "bip": "10.250.0.254/24", 01:35:47 "hosts": [ 01:35:47 "tcp://0.0.0.0:5555", 01:35:47 "unix:///var/run/docker.sock" 01:35:47 ], 01:35:47 "mtu": 1458, 01:35:47 "selinux-enabled": true, 01:35:47 "seccomp-profile": "/etc/docker/seccomp.json" 01:35:47 } [Pipeline] sh 01:35:47 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 01:35:48 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 01:36:06 provisioning config files... 01:36:06 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/2@tmp/config12909926426825382627tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 01:36:07 ---> docker-login.sh 01:36:07 nexus3.edgexfoundry.org:10001 01:36:07 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 01:36:07 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 01:36:07 Configure a credential helper to remove this warning. See 01:36:07 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 01:36:07 01:36:07 Login Succeeded 01:36:07 nexus3.edgexfoundry.org:10002 01:36:07 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 01:36:08 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 01:36:08 Configure a credential helper to remove this warning. See 01:36:08 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 01:36:08 01:36:08 Login Succeeded 01:36:08 nexus3.edgexfoundry.org:10003 01:36:08 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 01:36:08 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 01:36:08 Configure a credential helper to remove this warning. See 01:36:08 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 01:36:08 01:36:08 Login Succeeded 01:36:08 nexus3.edgexfoundry.org:10004 01:36:08 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 01:36:08 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 01:36:08 Configure a credential helper to remove this warning. See 01:36:08 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 01:36:08 01:36:08 Login Succeeded 01:36:08 docker.io 01:36:09 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 01:36:09 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 01:36:09 Configure a credential helper to remove this warning. See 01:36:09 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 01:36:09 01:36:09 Login Succeeded 01:36:09 ---> docker-login.sh ends [Pipeline] } 01:36:09 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 01:36:09 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 01:36:09 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 01:36:09 ========================================================= 01:36:09 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine] 01:36:09 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 01:36:10 + 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 . 01:36:10 Sending build context to Docker daemon 138.8kB 01:36:10 Step 1/12 : ARG BASE=golang:1.20-alpine3.17 01:36:10 Step 2/12 : FROM ${BASE} AS builder 01:36:10 1.20-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 01:36:10 af6eaf76a39c: Pulling fs layer 01:36:10 55522c791124: Pulling fs layer 01:36:10 ce5c4a1c91eb: Pulling fs layer 01:36:10 169dfbe0d373: Pulling fs layer 01:36:10 e1ff8fa3b103: Pulling fs layer 01:36:10 52ebb69f0ebf: Pulling fs layer 01:36:10 5abe8eddf0d5: Pulling fs layer 01:36:10 e1ff8fa3b103: Waiting 01:36:10 52ebb69f0ebf: Waiting 01:36:10 5abe8eddf0d5: Waiting 01:36:10 169dfbe0d373: Waiting 01:36:11 55522c791124: Verifying Checksum 01:36:11 55522c791124: Download complete 01:36:11 169dfbe0d373: Verifying Checksum 01:36:11 169dfbe0d373: Download complete 01:36:11 e1ff8fa3b103: Verifying Checksum 01:36:11 e1ff8fa3b103: Download complete 01:36:11 af6eaf76a39c: Verifying Checksum 01:36:11 af6eaf76a39c: Download complete 01:36:12 af6eaf76a39c: Pull complete 01:36:12 5abe8eddf0d5: Verifying Checksum 01:36:12 5abe8eddf0d5: Download complete 01:36:12 55522c791124: Pull complete 01:36:14 52ebb69f0ebf: Download complete 01:36:14 ce5c4a1c91eb: Verifying Checksum 01:36:14 ce5c4a1c91eb: Download complete 01:36:24 ce5c4a1c91eb: Pull complete 01:36:24 169dfbe0d373: Pull complete 01:36:24 e1ff8fa3b103: Pull complete 01:36:31 52ebb69f0ebf: Pull complete 01:36:32 5abe8eddf0d5: Pull complete 01:36:32 Digest: sha256:978cc1420e451f27bd88fdeece3ad01a9109ec773b62f165dfc696fd516b3d8f 01:36:32 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine 01:36:32 ---> 6cb57ee374ae 01:36:32 Step 3/12 : ARG ADD_BUILD_TAGS="" 01:36:34 ---> Running in 2eb509341170 01:36:34 Removing intermediate container 2eb509341170 01:36:34 ---> 37474446e6c0 01:36:34 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 01:36:34 ---> Running in a44390269880 01:36:35 Removing intermediate container a44390269880 01:36:35 ---> 865c67d39f9d 01:36:35 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 01:36:35 ---> Running in 393c33f0aa03 01:36:35 Removing intermediate container 393c33f0aa03 01:36:35 ---> 5aa0bff6125e 01:36:35 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 01:36:35 ---> Running in 441a27d659de 01:36:36 Removing intermediate container 441a27d659de 01:36:36 ---> e7a7918a1b98 01:36:36 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 01:36:36 ---> Running in 096eb6220561 01:36:37 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 01:36:38 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 01:36:39 (1/4) Installing openssh-keygen (9.1_p1-r2) 01:36:39 (2/4) Installing libedit (20221030.3.1-r0) 01:36:39 (3/4) Installing openssh-client-common (9.1_p1-r2) 01:36:39 (4/4) Installing openssh-client-default (9.1_p1-r2) 01:36:39 Executing busybox-1.35.0-r29.trigger 01:36:39 OK: 268 MiB in 57 packages 01:36:41 Removing intermediate container 096eb6220561 01:36:41 ---> c2244a572e2b 01:36:41 Step 8/12 : WORKDIR /device-rest-go 01:36:41 ---> Running in 58bec81bb093 01:36:41 Removing intermediate container 58bec81bb093 01:36:41 ---> 931cdb23bc3e 01:36:41 Step 9/12 : COPY go.mod vendor* ./ 01:36:42 ---> 76332fb97f62 01:36:42 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 01:36:42 ---> Running in cb34c30de1f3 01:38:05 Removing intermediate container cb34c30de1f3 01:38:05 ---> 8207b6ada271 01:38:05 Step 11/12 : COPY . . 01:38:05 ---> e3345841db49 01:38:05 Step 12/12 : RUN $MAKE 01:38:05 ---> Running in acacc802a96b 01:38:05 noop 01:38:05 Removing intermediate container acacc802a96b 01:38:05 ---> 9a387a2d84a2 01:38:05 Successfully built 9a387a2d84a2 01:38:05 Successfully tagged ci-base-image-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 01:38:05 + docker inspect -f . ci-base-image-arm64 01:38:05 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 01:38:05 prd-ubuntu20.04-docker-arm64-4c-16g-9434 does not seem to be running inside a container 01:38:05 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/2 -v /w/workspace/device-rest-go/2:/w/workspace/device-rest-go/2:rw,z -v /w/workspace/device-rest-go/2@tmp:/w/workspace/device-rest-go/2@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 01:38:07 $ docker top 6ec9b0e748f5f8343eb1f94af65cc4833fe67f99467ac2a1f643c6997da40855 -eo pid,comm [Pipeline] { [Pipeline] sh 01:38:08 + go version 01:38:08 go version go1.20.2 linux/arm64 [Pipeline] } 01:38:08 $ docker stop --time=1 6ec9b0e748f5f8343eb1f94af65cc4833fe67f99467ac2a1f643c6997da40855 01:38:11 $ docker rm -f --volumes 6ec9b0e748f5f8343eb1f94af65cc4833fe67f99467ac2a1f643c6997da40855 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 01:38:11 + docker inspect -f . ci-base-image-arm64 01:38:11 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 01:38:11 prd-ubuntu20.04-docker-arm64-4c-16g-9434 does not seem to be running inside a container 01:38:12 $ 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/2 -v /w/workspace/device-rest-go/2:/w/workspace/device-rest-go/2:rw,z -v /w/workspace/device-rest-go/2@tmp:/w/workspace/device-rest-go/2@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 01:38:13 $ docker top 8923d4e7c1823ff93c96a2ca91ee84c2b07a09350dbd7ff1e20bf1177555eb76 -eo pid,comm [Pipeline] { [Pipeline] sh 01:38:14 + git config --global --add safe.directory /w/workspace/device-rest-go/2 [Pipeline] fileExists [Pipeline] sh 01:38:15 + make test 01:38:15 go test ./... -coverprofile=coverage.out ./... 01:39:02 ? github.com/edgexfoundry/device-rest-go [no test files] 01:41:24 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 01:41:25 ok github.com/edgexfoundry/device-rest-go/driver 0.075s coverage: 32.2% of statements 01:41:26 WARNING: Linting skipped (not on x86_64 or linter not installed) 01:41:26 go vet ./... 01:42:05 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 01:42:05 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 01:42:05 ./bin/test-attribution-txt.sh [Pipeline] echo 01:42:05 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 01:42:05 $ docker stop --time=1 8923d4e7c1823ff93c96a2ca91ee84c2b07a09350dbd7ff1e20bf1177555eb76 01:42:07 $ docker rm -f --volumes 8923d4e7c1823ff93c96a2ca91ee84c2b07a09350dbd7ff1e20bf1177555eb76 [Pipeline] // withDockerContainer [Pipeline] sh 01:42:08 + sudo chown -R jenkins:jenkins . [Pipeline] stash 01:42:08 Warning: overwriting stash ‘coverage-report’ 01:42:09 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 01:42:09 + sudo chown -R jenkins:jenkins . [Pipeline] sh 01:42:10 + ls -al . 01:42:10 total 180 01:42:10 drwxrwxr-x 8 jenkins jenkins 4096 Apr 24 01:38 . 01:42:10 drwxrwxr-x 4 jenkins jenkins 4096 Apr 24 01:35 .. 01:42:10 -rw-rw-r-- 1 jenkins jenkins 151 Apr 24 01:35 .dockerignore 01:42:10 drwxrwxr-x 8 jenkins jenkins 4096 Apr 24 01:35 .git 01:42:10 drwxrwxr-x 3 jenkins jenkins 4096 Apr 24 01:35 .github 01:42:10 -rw-rw-r-- 1 jenkins jenkins 329 Apr 24 01:35 .gitignore 01:42:10 -rw-rw-r-- 1 jenkins jenkins 41 Apr 24 01:35 .golangci.yml 01:42:10 -rw-rw-r-- 1 jenkins jenkins 9331 Apr 24 01:35 Attribution.txt 01:42:10 -rw-rw-r-- 1 jenkins jenkins 13085 Apr 24 01:35 CHANGELOG.md 01:42:10 -rw-rw-r-- 1 jenkins jenkins 1578 Apr 24 01:35 Dockerfile 01:42:10 -rw-rw-r-- 1 jenkins jenkins 677 Apr 24 01:35 GOVERNANCE.md 01:42:10 -rw-rw-r-- 1 jenkins jenkins 680 Apr 24 01:35 Jenkinsfile 01:42:10 -rw-rw-r-- 1 jenkins jenkins 11340 Apr 24 01:35 LICENSE 01:42:10 -rw-rw-r-- 1 jenkins jenkins 1779 Apr 24 01:35 Makefile 01:42:10 -rw-rw-r-- 1 jenkins jenkins 620 Apr 24 01:35 OWNERS.md 01:42:10 -rw-rw-r-- 1 jenkins jenkins 15321 Apr 24 01:35 README.md 01:42:10 -rw-rw-r-- 1 jenkins jenkins 5 Apr 24 01:32 VERSION 01:42:10 drwxrwxr-x 2 jenkins jenkins 4096 Apr 24 01:35 bin 01:42:10 drwxrwxr-x 3 jenkins jenkins 4096 Apr 24 01:35 cmd 01:42:10 -rw-r--r-- 1 jenkins jenkins 14663 Apr 24 01:41 coverage.out 01:42:10 drwxrwxr-x 2 jenkins jenkins 4096 Apr 24 01:35 driver 01:42:10 -rw-rw-r-- 1 jenkins jenkins 3402 Apr 24 01:35 go.mod 01:42:10 -rw-rw-r-- 1 jenkins jenkins 31443 Apr 24 01:35 go.sum 01:42:10 drwxrwxr-x 4 jenkins jenkins 4096 Apr 24 01:35 snap 01:42:10 -rw-rw-r-- 1 jenkins jenkins 713 Apr 24 01:35 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 01:42:10 + 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=db9efb490de7778646f037f9e3397b71150b5e7b --label arch=arm64 --label version=0.0.0 . 01:42:10 Sending build context to Docker daemon 154.1kB 01:42:10 Step 1/25 : ARG BASE=golang:1.20-alpine3.17 01:42:10 Step 2/25 : FROM ${BASE} AS builder 01:42:10 ---> 9a387a2d84a2 01:42:10 Step 3/25 : ARG ADD_BUILD_TAGS="" 01:42:11 ---> Running in fbecfaed036b 01:42:13 Removing intermediate container fbecfaed036b 01:42:13 ---> 8cbfe98f04ad 01:42:13 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 01:42:13 ---> Running in 2348697b2c33 01:42:13 Removing intermediate container 2348697b2c33 01:42:13 ---> d3a83bc327f6 01:42:13 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 01:42:14 ---> Running in c7d6878438d3 01:42:14 Removing intermediate container c7d6878438d3 01:42:14 ---> d65af48ac0d2 01:42:14 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 01:42:14 ---> Running in cd67c692be35 01:42:14 Removing intermediate container cd67c692be35 01:42:14 ---> 6e78cccaf299 01:42:14 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 01:42:14 ---> Running in 3c07e9d097cc 01:42:15 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 01:42:16 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 01:42:17 OK: 268 MiB in 57 packages 01:42:18 Removing intermediate container 3c07e9d097cc 01:42:18 ---> 81c2922e29ec 01:42:18 Step 8/25 : WORKDIR /device-rest-go 01:42:18 ---> Running in c040297fc871 01:42:19 Removing intermediate container c040297fc871 01:42:19 ---> 7688f3ea8276 01:42:19 Step 9/25 : COPY go.mod vendor* ./ 01:42:19 ---> 0d746846ea95 01:42:19 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 01:42:19 ---> Running in 2d4cc9bf76f2 01:42:23 Removing intermediate container 2d4cc9bf76f2 01:42:23 ---> f2dea411c72a 01:42:23 Step 11/25 : COPY . . 01:42:23 ---> 55f74dd751f7 01:42:23 Step 12/25 : RUN $MAKE 01:42:23 ---> Running in af1063843992 01:42:24 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 01:45:16 Removing intermediate container af1063843992 01:45:16 ---> 684532f37536 01:45:16 Step 13/25 : FROM alpine:3.17 01:45:16 3.17: Pulling from library/alpine 01:45:16 c41833b44d91: Pulling fs layer 01:45:16 c41833b44d91: Verifying Checksum 01:45:16 c41833b44d91: Download complete 01:45:16 c41833b44d91: Pull complete 01:45:16 Digest: sha256:124c7d2707904eea7431fffe91522a01e5a861a624ee31d03372cc1d138a3126 01:45:16 Status: Downloaded newer image for alpine:3.17 01:45:16 ---> 51e60588ff2c 01:45:16 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 01:45:16 ---> Running in 8d7644dbd40a 01:45:16 Removing intermediate container 8d7644dbd40a 01:45:16 ---> d5a197ec42e4 01:45:16 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 01:45:16 ---> Running in 9f6fcf5f2e7d 01:45:16 Removing intermediate container 9f6fcf5f2e7d 01:45:16 ---> b7ca2870dec3 01:45:16 Step 16/25 : RUN apk add --update --no-cache dumb-init 01:45:16 ---> Running in 2b1ee964d035 01:45:16 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 01:45:16 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 01:45:16 (1/1) Installing dumb-init (1.2.5-r2) 01:45:16 Executing busybox-1.35.0-r29.trigger 01:45:16 OK: 8 MiB in 16 packages 01:45:16 Removing intermediate container 2b1ee964d035 01:45:16 ---> ee486d275708 01:45:16 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 01:45:16 ---> 1f229704e710 01:45:16 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 01:45:16 ---> 634e6de12dcf 01:45:16 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 01:45:16 ---> 5b7fdbd45c61 01:45:16 Step 20/25 : EXPOSE 59986 01:45:16 ---> Running in 597d56ba9008 01:45:16 Removing intermediate container 597d56ba9008 01:45:16 ---> f70ad98b3c88 01:45:16 Step 21/25 : ENTRYPOINT ["/device-rest"] 01:45:16 ---> Running in 02c6e1955a85 01:45:16 Removing intermediate container 02c6e1955a85 01:45:16 ---> 01afb4c77fb8 01:45:16 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 01:45:16 ---> Running in 39fbd465f3be 01:45:16 Removing intermediate container 39fbd465f3be 01:45:16 ---> 54a2418561ad 01:45:16 Step 23/25 : LABEL arch=arm64 01:45:16 ---> Running in c5d359237aef 01:45:16 Removing intermediate container c5d359237aef 01:45:16 ---> 6feb3c893e1f 01:45:16 Step 24/25 : LABEL git_sha=db9efb490de7778646f037f9e3397b71150b5e7b 01:45:16 ---> Running in 53b6c789ae7b 01:45:16 Removing intermediate container 53b6c789ae7b 01:45:16 ---> bb925fa1a233 01:45:16 Step 25/25 : LABEL version=0.0.0 01:45:16 ---> Running in 9af6d8f6a90d 01:45:16 Removing intermediate container 9af6d8f6a90d 01:45:16 ---> 496b62382012 01:45:16 [Warning] One or more build-args [ARCH] were not consumed 01:45:16 Successfully built 496b62382012 01:45:16 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 01:45:17 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 01:45:17 01:45:17 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 01:45:17 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 01:45:17 arm64: Pulling from edgex-lftools-log-publisher 01:45:17 8998bd30e6a1: Pulling fs layer 01:45:17 04944245beec: Pulling fs layer 01:45:17 699f458cf7ca: Pulling fs layer 01:45:17 765212b225bb: Pulling fs layer 01:45:17 f23df028b6ca: Pulling fs layer 01:45:17 d65c8cfc05b1: Pulling fs layer 01:45:17 2437ff75d9bd: Pulling fs layer 01:45:17 f23df028b6ca: Waiting 01:45:17 d65c8cfc05b1: Waiting 01:45:17 2437ff75d9bd: Waiting 01:45:17 765212b225bb: Waiting 01:45:17 04944245beec: Verifying Checksum 01:45:17 04944245beec: Download complete 01:45:17 765212b225bb: Verifying Checksum 01:45:17 765212b225bb: Download complete 01:45:17 f23df028b6ca: Download complete 01:45:18 d65c8cfc05b1: Verifying Checksum 01:45:18 d65c8cfc05b1: Download complete 01:45:18 699f458cf7ca: Verifying Checksum 01:45:18 699f458cf7ca: Download complete 01:45:18 8998bd30e6a1: Verifying Checksum 01:45:18 8998bd30e6a1: Download complete 01:45:21 2437ff75d9bd: Verifying Checksum 01:45:21 2437ff75d9bd: Download complete 01:45:22 8998bd30e6a1: Pull complete 01:45:23 04944245beec: Pull complete 01:45:24 699f458cf7ca: Pull complete 01:45:25 765212b225bb: Pull complete 01:45:26 f23df028b6ca: Pull complete 01:45:26 d65c8cfc05b1: Pull complete 01:45:41 2437ff75d9bd: Pull complete 01:45:41 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 01:45:41 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 01:45:41 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 01:45:41 prd-ubuntu20.04-docker-arm64-4c-16g-9434 does not seem to be running inside a container 01:45:41 $ 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/2 -v /w/workspace/device-rest-go/2:/w/workspace/device-rest-go/2:rw,z -v /w/workspace/device-rest-go/2@tmp:/w/workspace/device-rest-go/2@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 01:45:44 $ docker top 2c19e958212186b15f6b843916f15292a63220a2d34e386517bb582178ffafd1 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 01:45:45 ---> job-cost.sh 01:45:45 lf-activate-venv: SKIPPING 01:45:45 INFO: No Stack... 01:45:45 INFO: Retrieving Pricing Info for: v3-standard-4 01:45:46 INFO: Archiving Costs [Pipeline] sh 01:45:47 + cat /w/workspace/device-rest-go/2/archives/cost.csv 01:45:47 + cut -d, -f6 [Pipeline] lock 01:45:47 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-297-2-stack-cost] 01:45:47 Resource [jenkins-edgexfoundry-device-rest-go-PR-297-2-stack-cost] did not exist. Created. 01:45:47 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-297-2-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 01:45:48 /w/workspace/device-rest-go/2@tmp/durable-7386e2da/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 01:45:48 + echo total: 0.10999999940395355 [Pipeline] stash 01:45:48 Warning: overwriting stash ‘stack-cost’ 01:45:48 Stashed 1 file(s) [Pipeline] } 01:45:48 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-297-2-stack-cost] [Pipeline] // lock [Pipeline] } 01:45:48 $ docker stop --time=1 2c19e958212186b15f6b843916f15292a63220a2d34e386517bb582178ffafd1 01:45:50 $ docker rm -f --volumes 2c19e958212186b15f6b843916f15292a63220a2d34e386517bb582178ffafd1 [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 01:45:50 provisioning config files... 01:45:50 copy managed file [device-rest-go-codecov-token] to file:/w/workspace/gexfoundry_device-rest-go_PR-297@tmp/config5075413984038241818tmp [Pipeline] { [Pipeline] sh 01:45:51 + set +x 01:45:51 + curl -s https://codecov.io/bash 01:45:51 + bash -s -- 01:45:51 01:45:51 _____ _ 01:45:51 / ____| | | 01:45:51 | | ___ __| | ___ ___ _____ __ 01:45:51 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 01:45:51 | |___| (_) | (_| | __/ (_| (_) \ V / 01:45:51 \_____\___/ \__,_|\___|\___\___/ \_/ 01:45:51 Bash-1.0.6 01:45:51 01:45:51 01:45:51 ==> git version 2.25.1 found 01:45:51 ==> 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 01:45:51 Release-Date: 2020-01-08 01:45:51 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 01:45:51 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 01:45:51 ==> Jenkins CI detected. 01:45:51 current dir:  /w/workspace/gexfoundry_device-rest-go_PR-297 01:45:51 project root: . 01:45:51 --> token set from env 01:45:51 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 01:45:51 ==> Running gcov in . (disable via -X gcov) 01:45:51 ==> Python coveragepy not found 01:45:51 ==> Searching for coverage reports in: 01:45:51 + . 01:45:51 -> Found 1 reports 01:45:51 ==> Detecting git/mercurial file structure 01:45:51 ==> Reading reports 01:45:51 + ./coverage.out bytes=14663 01:45:51 ==> Appending adjustments 01:45:51 https://docs.codecov.io/docs/fixing-reports 01:45:51 + Found adjustments 01:45:51 ==> Gzipping contents 01:45:51 4.0K /tmp/codecov.b17juh.gz 01:45:51 ==> Uploading reports 01:45:51 url: https://codecov.io 01:45:51 query: branch=PR-297&commit=db9efb490de7778646f037f9e3397b71150b5e7b&build=2&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-297%2F2%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=297&job=&cmd_args= 01:45:51 -> Pinging Codecov 01:45:51 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=c51feb23-73ac-4f49-b3d1-d26df23137db&branch=PR-297&commit=db9efb490de7778646f037f9e3397b71150b5e7b&build=2&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-297%2F2%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=297&job=&cmd_args= 01:45:51 -> Uploading to 01:45:51 https://storage.googleapis.com/codecov/v4/raw/2023-04-24/4E5D53B4F1F92C436F7061BF334D961C/db9efb490de7778646f037f9e3397b71150b5e7b/a6910ac4-1af1-4e68-8cbc-6d17b9719bc4.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20230424%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20230424T014551Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=cbbd4866caf83e8d29519cff469b636d15ef2b1a01c1ade06496e5675193551c 01:45:51 % Total % Received % Xferd Average Speed Time Time Time Current 01:45:51 Dload Upload Total Spent Left Speed 01:45:51 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 2510 0 0 100 2510 0 12125 --:--:-- --:--:-- --:--:-- 12125 01:45:51 -> Reports have been successfully queued for processing at https://app.codecov.io/github/edgexfoundry/device-rest-go/commit/db9efb490de7778646f037f9e3397b71150b5e7b [Pipeline] } 01:45:51 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 01:45:52 + [ -d /w/workspace/gexfoundry_device-rest-go_PR-297/archives ] 01:45:52 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-297/archives 01:45:52 total 16 01:45:52 drwxr-xr-x 3 root root 4096 Apr 24 01:34 . 01:45:52 drwxrwxr-x 10 jenkins jenkins 4096 Apr 24 01:34 .. 01:45:52 drwxr-xr-x 2 root root 4096 Apr 24 01:34 cost 01:45:52 -rw-r--r-- 1 root root 86 Apr 24 01:34 cost.csv 01:45:52 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-rest-go_PR-297/archives 01:45:52 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-297/archives 01:45:52 total 16 01:45:52 drwxr-xr-x 3 jenkins jenkins 4096 Apr 24 01:34 . 01:45:52 drwxrwxr-x 10 jenkins jenkins 4096 Apr 24 01:34 .. 01:45:52 drwxr-xr-x 2 jenkins jenkins 4096 Apr 24 01:34 cost 01:45:52 -rw-r--r-- 1 jenkins jenkins 86 Apr 24 01:34 cost.csv [Pipeline] libraryResource [Pipeline] sh 01:45:52 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 01:45:53 ---> package-listing.sh 01:45:53 ++ facter osfamily 01:45:53 ++ tr '[:upper:]' '[:lower:]' 01:45:53 + OS_FAMILY=debian 01:45:53 + workspace=/w/workspace/gexfoundry_device-rest-go_PR-297 01:45:53 + START_PACKAGES=/tmp/packages_start.txt 01:45:53 + END_PACKAGES=/tmp/packages_end.txt 01:45:53 + DIFF_PACKAGES=/tmp/packages_diff.txt 01:45:53 + PACKAGES=/tmp/packages_start.txt 01:45:53 + '[' /w/workspace/gexfoundry_device-rest-go_PR-297 ']' 01:45:53 + PACKAGES=/tmp/packages_end.txt 01:45:53 + case "${OS_FAMILY}" in 01:45:53 + grep '^ii' 01:45:53 + dpkg -l 01:45:53 + '[' -f /tmp/packages_start.txt ']' 01:45:53 + '[' -f /tmp/packages_end.txt ']' 01:45:53 + diff /tmp/packages_start.txt /tmp/packages_end.txt 01:45:53 + '[' /w/workspace/gexfoundry_device-rest-go_PR-297 ']' 01:45:53 + mkdir -p /w/workspace/gexfoundry_device-rest-go_PR-297/archives/ 01:45:53 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/gexfoundry_device-rest-go_PR-297/archives/ [Pipeline] echo 01:45:53 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-297/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 01:45:53 + facter operatingsystem [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 01:45:54 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 01:45:54 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 01:45:54 prd-ubuntu20.04-docker-8c-8g-9428 does not seem to be running inside a container 01:45:54 $ 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-297/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-297 -v /w/workspace/gexfoundry_device-rest-go_PR-297:/w/workspace/gexfoundry_device-rest-go_PR-297:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-297@tmp:/w/workspace/gexfoundry_device-rest-go_PR-297@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 01:45:54 $ docker top 88e603d74172815976df45cef631b83e5b3b11f3be1bbf1f4d796046d6353119 -eo pid,comm [Pipeline] { [Pipeline] sh 01:45:55 + touch /tmp/pre-build-complete [Pipeline] sh 01:45:55 + mkdir -p /var/log/sysstat [Pipeline] sh 01:45:55 + ls /var/log/sa-host 01:45:55 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 01:45:55 provisioning config files... 01:45:55 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-297@tmp/config17521419634898676792tmp [Pipeline] { [Pipeline] echo 01:45:55 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 01:45:56 ---> create-netrc.sh [Pipeline] } 01:45:56 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 01:45:56 ---> python-tools-install.sh [Pipeline] echo 01:45:56 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 01:45:56 ---> sudo-logs.sh 01:45:56 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 01:45:56 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 01:45:57 ---> job-cost.sh 01:45:57 lf-activate-venv: SKIPPING 01:45:57 DEBUG: total: 0.2199999988079071 01:45:57 INFO: Retrieving Stack Cost... 01:45:57 INFO: Retrieving Pricing Info for: v3-standard-8 01:45:57 INFO: Archiving Costs [Pipeline] echo 01:45:57 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 01:45:57 ---> logs-deploy.sh 01:45:57 lf-activate-venv: SKIPPING 01:45:57 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-297/2 01:45:57 INFO: archiving workspace using pattern(s): 01:45:58 Archives upload complete. 01:45:58 INFO: archiving logs to Nexus