Pull request #272 updated Connecting to https://api.github.com using edgex-jenkins github personal access token Connecting to https://api.github.com to check permissions of obtain list of weichou1229 for edgexfoundry/device-rest-go Loading trusted files from base branch main at 2ded8c8301fa9285dc80bb471c5f0972abc0b73a rather than b7caf4fecae67d4eaa468c351b80470bfd20b785 Obtained Jenkinsfile from 2ded8c8301fa9285dc80bb471c5f0972abc0b73a 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-ssh11029714181925224774.key > git ls-remote -h -t -- git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Found match: refs/tags/stable revision 66200e8eedfc470904d6b329e562ec5b45423d6a Resolving tag commit... (remote references may be a lightweight tag or an annotated tag) > git rev-parse --resolve-git-dir /var/lib/jenkins/caches/git-95b00d7e16de695d9f4849f078f37a0f/.git # timeout=10 Setting origin to git@github.com:edgexfoundry/edgex-global-pipelines.git > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Fetching origin... Fetching upstream changes from origin > git --version # timeout=10 > git --version # 'git version 2.16.6' > git config --get remote.origin.url # timeout=10 using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/caches/git-95b00d7e16de695d9f4849f078f37a0f@tmp/jenkins-gitclient-ssh4418067644275396636.key > git fetch --tags --progress -- origin +refs/heads/*:refs/remotes/origin/* # timeout=10 > git rev-parse refs/tags/stable^{commit} # timeout=10 Resolved tag stable revision 66200e8eedfc470904d6b329e562ec5b45423d6a The recommended git tool is: git using credential edgex-jenkins-ssh > git rev-parse --resolve-git-dir /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-272/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-272/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh16231327799521720360.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision 66200e8eedfc470904d6b329e562ec5b45423d6a (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f 66200e8eedfc470904d6b329e562ec5b45423d6a # timeout=10 Commit message: "feat: add capability to use golang 1.20 (#427)" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 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-ssh6807582738535137349.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-272/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-272/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e@tmp/jenkins-gitclient-ssh16545269907896403225.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 ‘prd-ubuntu20.04-docker-8c-8g-4721’ is offline Running on prd-ubuntu20.04-docker-8c-8g-4723 in /w/workspace/gexfoundry_device-rest-go_PR-272 [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-272 # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git > git --version # timeout=10 > git --version # 'git version 2.25.1' using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/272/head:refs/remotes/origin/PR-272 +refs/heads/main:refs/remotes/origin/main # timeout=10 Merging remotes/origin/main commit 2ded8c8301fa9285dc80bb471c5f0972abc0b73a into PR head commit b7caf4fecae67d4eaa468c351b80470bfd20b785 Merge succeeded, producing b7caf4fecae67d4eaa468c351b80470bfd20b785 Checking out Revision b7caf4fecae67d4eaa468c351b80470bfd20b785 (PR-272) > git config core.sparsecheckout # timeout=10 > git checkout -f b7caf4fecae67d4eaa468c351b80470bfd20b785 # 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 2ded8c8301fa9285dc80bb471c5f0972abc0b73a # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f b7caf4fecae67d4eaa468c351b80470bfd20b785 # timeout=10 Commit message: "build(deps)!: bump sdk to 3.0.0-dev.54" First time build. Skipping changelog. > git rev-list --no-walk 53d571398c6ea370e5c9d1329a3dd23e6e74a13a # timeout=10 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 04:50:55 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 04:50:55 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 04:50:55 ========================================================= 04:50:55 EdgeX Global Pipelines Version Info 04:50:55 ========================================================= [Pipeline] libraryResource [Pipeline] sh 04:50:56 ------------------- 04:50:56 stable info: 04:50:56 ------------------- 04:50:56 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 04:50:56 Commit SHA: 66200e8eedfc470904d6b329e562ec5b45423d6a 04:50:56 Message: update stable to v1.0.245 04:50:56 ------------------- 04:50:56 experimental info: 04:50:56 ------------------- 04:50:56 Commited By: **** collab-it+edgex@linuxfoundation.org 04:50:56 Commit SHA: eb5041bb0874f6b7cdca3e6793e1ef87c0289dce 04:50:56 Message: update experimental to v1.0.246 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 04:50:56 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 04:50:56 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 04:50:56 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 04:50:56 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 04:50:56 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 04:50:56 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.20 [Pipeline] echo 04:50:56 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 04:50:56 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 04:50:56 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 04:50:56 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 04:50:56 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 04:50:56 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 04:50:56 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 04:50:57 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 04:50:57 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 04:50:57 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 04:50:57 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 04:50:57 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 04:50:57 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 04:50:57 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 04:50:57 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 04:50:57 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 04:50:57 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 04:50:57 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 04:50:57 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 04:50:57 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 04:50:57 [edgeXSetupEnvironment]: set envvar SNYK_DEBUG = false [Pipeline] echo 04:50:57 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-272 [Pipeline] echo 04:50:57 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-272 [Pipeline] echo 04:50:57 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-272 [Pipeline] echo 04:50:57 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = b7caf4fecae67d4eaa468c351b80470bfd20b785 [Pipeline] echo 04:50:57 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = b7caf4f [Pipeline] echo 04:50:57 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 04:50:57 provisioning config files... 04:50:57 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-272@tmp/config13869154318589083212tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 04:50:57 ---> docker-login.sh 04:50:57 nexus3.edgexfoundry.org:10001 04:50:57 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:50:57 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:50:57 Configure a credential helper to remove this warning. See 04:50:57 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:50:57 04:50:57 Login Succeeded 04:50:57 nexus3.edgexfoundry.org:10002 04:50:57 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:50:58 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:50:58 Configure a credential helper to remove this warning. See 04:50:58 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:50:58 04:50:58 Login Succeeded 04:50:58 nexus3.edgexfoundry.org:10003 04:50:58 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:50:58 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:50:58 Configure a credential helper to remove this warning. See 04:50:58 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:50:58 04:50:58 Login Succeeded 04:50:58 nexus3.edgexfoundry.org:10004 04:50:58 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:50:58 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:50:58 Configure a credential helper to remove this warning. See 04:50:58 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:50:58 04:50:58 Login Succeeded 04:50:58 docker.io 04:50:58 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:50:58 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:50:58 Configure a credential helper to remove this warning. See 04:50:58 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:50:58 04:50:58 Login Succeeded 04:50:58 ---> docker-login.sh ends [Pipeline] } 04:50:58 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 04:50:59 + git rev-list -1 --merges b7caf4fecae67d4eaa468c351b80470bfd20b785~1..b7caf4fecae67d4eaa468c351b80470bfd20b785 [Pipeline] echo 04:50:59 -----------> git rev-list -1 --merges b7caf4fecae67d4eaa468c351b80470bfd20b785~1..b7caf4fecae67d4eaa468c351b80470bfd20b785 b7caf4fecae67d4eaa468c351b80470bfd20b785 [false] [Pipeline] sh 04:50:59 + git log --format=format:%s -1 b7caf4fecae67d4eaa468c351b80470bfd20b785 [Pipeline] echo 04:50:59 ========================================================= 04:50:59 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 04:50:59 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 04:50:59 + git log --format=format:%s -1 b7caf4fecae67d4eaa468c351b80470bfd20b785 [Pipeline] echo 04:50:59 [semverPrep] GIT_COMMIT: b7caf4fecae67d4eaa468c351b80470bfd20b785, Commit Message: build(deps)!: bump sdk to 3.0.0-dev.54 [Pipeline] echo 04:50:59 [semverPrep] This is not a build commit. [Pipeline] sh 04:51:00 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 04:51:00 + grep -v github /etc/ssh/ssh_known_hosts 04:51:00 + [ -e /tmp/ssh_known_hosts ] 04:51:00 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 04:51:00 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 04:51:00 + sudo tee -a /etc/ssh/ssh_known_hosts 04:51:00 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:51:00 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 04:51:00 04:51:00 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:51:00 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 04:51:00 0.1.4: Pulling from edgex-devops/py-git-semver 04:51:00 b85a868b505f: Pulling fs layer 04:51:00 e2be974225ed: Pulling fs layer 04:51:00 339a4e72a1f5: Pulling fs layer 04:51:00 988bab9f4d93: Pulling fs layer 04:51:00 1469e6f7b9e6: Pulling fs layer 04:51:00 eaf3925da568: Pulling fs layer 04:51:00 bab4dde63d76: Pulling fs layer 04:51:00 bde34c3a00c8: Pulling fs layer 04:51:00 b352a97aabf1: Pulling fs layer 04:51:00 4872d77fe225: Pulling fs layer 04:51:00 5851b861e8e6: Pulling fs layer 04:51:00 bde34c3a00c8: Waiting 04:51:00 b352a97aabf1: Waiting 04:51:00 1469e6f7b9e6: Waiting 04:51:00 988bab9f4d93: Waiting 04:51:00 eaf3925da568: Waiting 04:51:00 bab4dde63d76: Waiting 04:51:00 4872d77fe225: Waiting 04:51:00 e2be974225ed: Verifying Checksum 04:51:00 e2be974225ed: Download complete 04:51:00 988bab9f4d93: Verifying Checksum 04:51:00 988bab9f4d93: Download complete 04:51:00 339a4e72a1f5: Verifying Checksum 04:51:00 339a4e72a1f5: Download complete 04:51:00 1469e6f7b9e6: Verifying Checksum 04:51:00 1469e6f7b9e6: Download complete 04:51:00 eaf3925da568: Download complete 04:51:00 bde34c3a00c8: Download complete 04:51:00 b352a97aabf1: Verifying Checksum 04:51:00 b352a97aabf1: Download complete 04:51:00 4872d77fe225: Verifying Checksum 04:51:00 4872d77fe225: Download complete 04:51:00 5851b861e8e6: Download complete 04:51:00 b85a868b505f: Download complete 04:51:01 bab4dde63d76: Verifying Checksum 04:51:01 bab4dde63d76: Download complete 04:51:02 b85a868b505f: Pull complete 04:51:02 e2be974225ed: Pull complete 04:51:02 339a4e72a1f5: Pull complete 04:51:02 988bab9f4d93: Pull complete 04:51:03 1469e6f7b9e6: Pull complete 04:51:03 eaf3925da568: Pull complete 04:51:05 bab4dde63d76: Pull complete 04:51:05 bde34c3a00c8: Pull complete 04:51:05 b352a97aabf1: Pull complete 04:51:05 4872d77fe225: Pull complete 04:51:05 5851b861e8e6: Pull complete 04:51:05 Digest: sha256:59a28aa3b44c0bc56b9c3d2e9ecabe42e63693d939cc6e425eb8786f29f663d8 04:51:05 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 04:51:05 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 04:51:05 prd-ubuntu20.04-docker-8c-8g-4723 does not seem to be running inside a container 04:51:05 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/gexfoundry_device-rest-go_PR-272 -v /w/workspace/gexfoundry_device-rest-go_PR-272:/w/workspace/gexfoundry_device-rest-go_PR-272:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-272@tmp:/w/workspace/gexfoundry_device-rest-go_PR-272@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-devops/py-git-semver:0.1.4 cat 04:51:07 $ docker top 7c96b3322183e30c9a8d67ed00affcbe9390e18d8c9171854997c0cfb7ef5f6a -eo pid,comm 04:51:07 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). 04:51:07 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 04:51:07 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 04:51:07 [ssh-agent] Looking for ssh-agent implementation... 04:51:07 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 04:51:07 $ docker exec 7c96b3322183e30c9a8d67ed00affcbe9390e18d8c9171854997c0cfb7ef5f6a ssh-agent 04:51:07 SSH_AUTH_SOCK=/tmp/ssh-AXVzbmSCLtK3/agent.32 04:51:07 SSH_AGENT_PID=38 04:51:07 Running ssh-add (command line suppressed) 04:51:07 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-272@tmp/private_key_9896295621002622124.key (/w/workspace/gexfoundry_device-rest-go_PR-272@tmp/private_key_9896295621002622124.key) 04:51:07 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 04:51:08 + git tag --points-at HEAD [Pipeline] } 04:51:08 $ docker exec --env ******** --env ******** 7c96b3322183e30c9a8d67ed00affcbe9390e18d8c9171854997c0cfb7ef5f6a ssh-agent -k 04:51:08 unset SSH_AUTH_SOCK; 04:51:08 unset SSH_AGENT_PID; 04:51:08 echo Agent pid 38 killed; 04:51:08 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 04:51:08 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 04:51:08 [ssh-agent] Looking for ssh-agent implementation... 04:51:08 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 04:51:08 $ docker exec 7c96b3322183e30c9a8d67ed00affcbe9390e18d8c9171854997c0cfb7ef5f6a ssh-agent 04:51:08 SSH_AUTH_SOCK=/tmp/ssh-jzVfntC6Wwrc/agent.70 04:51:08 SSH_AGENT_PID=76 04:51:08 Running ssh-add (command line suppressed) 04:51:08 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-272@tmp/private_key_185059203394109599.key (/w/workspace/gexfoundry_device-rest-go_PR-272@tmp/private_key_185059203394109599.key) 04:51:08 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 04:51:08 + git semver init 04:51:09 2023-03-21 04:51:09,124 [run_init] DEBUG init version:0.0.0 force:False 04:51:09 2023-03-21 04:51:09,125 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/gexfoundry_device-rest-go_PR-272/.semver 04:51:09 2023-03-21 04:51:09,125 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-rest-go.git /w/workspace/gexfoundry_device-rest-go_PR-272/.semver 04:51:09 2023-03-21 04:51:09,126 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-rest-go.git', '/w/workspace/gexfoundry_device-rest-go_PR-272/.semver'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-272, universal_newlines=False, shell=None, istream=None) 04:51:10 2023-03-21 04:51:10,137 [append_file] DEBUG append to file:/w/workspace/gexfoundry_device-rest-go_PR-272/.git/info/exclude 04:51:10 2023-03-21 04:51:10,138 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/gexfoundry_device-rest-go_PR-272/.semver/PR-272 with force:False 04:51:10 2023-03-21 04:51:10,138 [write_file] DEBUG write to file:/w/workspace/gexfoundry_device-rest-go_PR-272/.semver/PR-272 04:51:10 2023-03-21 04:51:10,144 [execute] INFO git cat-file --batch-check 04:51:10 2023-03-21 04:51:10,144 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-272/.semver, universal_newlines=False, shell=None, istream=) 04:51:10 2023-03-21 04:51:10,151 [execute] INFO git cat-file --batch 04:51:10 2023-03-21 04:51:10,151 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-272/.semver, universal_newlines=False, shell=None, istream=) 04:51:10 2023-03-21 04:51:10,157 [read_version] DEBUG read version from /w/workspace/gexfoundry_device-rest-go_PR-272/.semver/PR-272 04:51:10 0.0.0 [Pipeline] } 04:51:10 $ docker exec --env ******** --env ******** 7c96b3322183e30c9a8d67ed00affcbe9390e18d8c9171854997c0cfb7ef5f6a ssh-agent -k 04:51:10 unset SSH_AUTH_SOCK; 04:51:10 unset SSH_AGENT_PID; 04:51:10 echo Agent pid 76 killed; 04:51:10 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 04:51:11 + git semver [Pipeline] } 04:51:11 $ docker stop --time=1 7c96b3322183e30c9a8d67ed00affcbe9390e18d8c9171854997c0cfb7ef5f6a 04:51:12 $ docker rm -f --volumes 7c96b3322183e30c9a8d67ed00affcbe9390e18d8c9171854997c0cfb7ef5f6a [Pipeline] // withDockerContainer [Pipeline] sh 04:51:12 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 04:51:13 Stashed 1 file(s) [Pipeline] echo 04:51:13 [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 04:51:13 provisioning config files... 04:51:13 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-272@tmp/config18075177810345243244tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 04:51:13 ---> docker-login.sh 04:51:13 nexus3.edgexfoundry.org:10001 04:51:13 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:51:13 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:51:13 Configure a credential helper to remove this warning. See 04:51:13 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:51:13 04:51:13 Login Succeeded 04:51:13 nexus3.edgexfoundry.org:10002 04:51:13 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:51:13 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:51:13 Configure a credential helper to remove this warning. See 04:51:13 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:51:13 04:51:13 Login Succeeded 04:51:13 nexus3.edgexfoundry.org:10003 04:51:13 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:51:13 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:51:13 Configure a credential helper to remove this warning. See 04:51:13 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:51:13 04:51:13 Login Succeeded 04:51:13 nexus3.edgexfoundry.org:10004 04:51:13 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:51:13 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:51:13 Configure a credential helper to remove this warning. See 04:51:13 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:51:13 04:51:13 Login Succeeded 04:51:13 docker.io 04:51:14 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:51:14 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:51:14 Configure a credential helper to remove this warning. See 04:51:14 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:51:14 04:51:14 Login Succeeded 04:51:14 ---> docker-login.sh ends [Pipeline] } 04:51:14 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 04:51:14 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 04:51:14 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 04:51:14 ========================================================= 04:51:14 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine] 04:51:14 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:51:14 + 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 . 04:51:14 Sending build context to Docker daemon 10.86MB 04:51:14 Step 1/12 : ARG BASE=golang:1.20-alpine3.17 04:51:14 Step 2/12 : FROM ${BASE} AS builder 04:51:14 1.20-alpine: Pulling from edgex-devops/edgex-golang-base 04:51:14 63b65145d645: Pulling fs layer 04:51:14 a2d21d5440eb: Pulling fs layer 04:51:14 935e6c44a52c: Pulling fs layer 04:51:14 94cc34f8dd06: Pulling fs layer 04:51:14 30dea6a524f1: Pulling fs layer 04:51:14 a2aff8979fd8: Pulling fs layer 04:51:14 6808be2612f2: Pulling fs layer 04:51:14 f25807f1079a: Pulling fs layer 04:51:14 94cc34f8dd06: Waiting 04:51:14 30dea6a524f1: Waiting 04:51:14 a2aff8979fd8: Waiting 04:51:14 6808be2612f2: Waiting 04:51:14 f25807f1079a: Waiting 04:51:14 a2d21d5440eb: Verifying Checksum 04:51:14 a2d21d5440eb: Download complete 04:51:14 94cc34f8dd06: Verifying Checksum 04:51:14 94cc34f8dd06: Download complete 04:51:14 30dea6a524f1: Download complete 04:51:14 63b65145d645: Verifying Checksum 04:51:14 63b65145d645: Download complete 04:51:14 a2aff8979fd8: Verifying Checksum 04:51:14 a2aff8979fd8: Download complete 04:51:14 63b65145d645: Pull complete 04:51:15 a2d21d5440eb: Pull complete 04:51:15 f25807f1079a: Verifying Checksum 04:51:15 f25807f1079a: Download complete 04:51:15 935e6c44a52c: Verifying Checksum 04:51:15 935e6c44a52c: Download complete 04:51:15 6808be2612f2: Verifying Checksum 04:51:15 6808be2612f2: Download complete 04:51:18 935e6c44a52c: Pull complete 04:51:18 94cc34f8dd06: Pull complete 04:51:18 30dea6a524f1: Pull complete 04:51:18 a2aff8979fd8: Pull complete 04:51:21 6808be2612f2: Pull complete 04:51:21 f25807f1079a: Pull complete 04:51:21 Digest: sha256:106942793af8b5907f587008084bb0888cadbc76d86ebd37d4d3227fb0f1e438 04:51:21 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine 04:51:21 ---> 3b553350e43f 04:51:21 Step 3/12 : ARG ADD_BUILD_TAGS="" 04:51:24 ---> Running in bbbfc05468a9 04:51:24 Removing intermediate container bbbfc05468a9 04:51:24 ---> 9241b3ce9cf7 04:51:24 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 04:51:24 ---> Running in 1c4d371d3179 04:51:24 Removing intermediate container 1c4d371d3179 04:51:24 ---> 9e340fd9820f 04:51:24 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 04:51:24 ---> Running in c55ede8fb37b 04:51:25 Removing intermediate container c55ede8fb37b 04:51:25 ---> 6a92a56f8e39 04:51:25 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 04:51:25 ---> Running in 44a7be1a4028 04:51:25 Removing intermediate container 44a7be1a4028 04:51:25 ---> 23b950159496 04:51:25 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 04:51:25 ---> Running in 6caa547a6d3e 04:51:25 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 04:51:25 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 04:51:26 (1/4) Installing openssh-keygen (9.1_p1-r2) 04:51:26 (2/4) Installing libedit (20221030.3.1-r0) 04:51:26 (3/4) Installing openssh-client-common (9.1_p1-r2) 04:51:26 (4/4) Installing openssh-client-default (9.1_p1-r2) 04:51:26 Executing busybox-1.35.0-r29.trigger 04:51:26 OK: 269 MiB in 57 packages 04:51:26 Removing intermediate container 6caa547a6d3e 04:51:26 ---> 334439532f02 04:51:26 Step 8/12 : WORKDIR /device-rest-go 04:51:26 ---> Running in 6ba53a6bf46a 04:51:26 Removing intermediate container 6ba53a6bf46a 04:51:26 ---> 0931c536cd00 04:51:26 Step 9/12 : COPY go.mod vendor* ./ 04:51:26 ---> f99d52a00928 04:51:26 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 04:51:26 ---> Running in e3927f254914 04:51:28 Still waiting to schedule task 04:51:28 ‘prd-ubuntu20.04-docker-arm64-4c-16g-4722’ is offline 04:51:53 Removing intermediate container e3927f254914 04:51:53 ---> ccace1c78ca6 04:51:53 Step 11/12 : COPY . . 04:51:53 ---> 8a6181396486 04:51:53 Step 12/12 : RUN $MAKE 04:51:53 ---> Running in a995794cd6b2 04:51:53 noop 04:51:53 Removing intermediate container a995794cd6b2 04:51:53 ---> f2af5ee9e7c7 04:51:53 Successfully built f2af5ee9e7c7 04:51:53 Successfully tagged ci-base-image-x86_64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:51:53 + docker inspect -f . ci-base-image-x86_64 04:51:53 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 04:51:53 prd-ubuntu20.04-docker-8c-8g-4723 does not seem to be running inside a container 04:51:53 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-272 -v /w/workspace/gexfoundry_device-rest-go_PR-272:/w/workspace/gexfoundry_device-rest-go_PR-272:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-272@tmp:/w/workspace/gexfoundry_device-rest-go_PR-272@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 ******** -e ******** -e ******** ci-base-image-x86_64 cat 04:51:53 $ docker top 9577e5be86d678892a1c387025cabf156ff6e7063212026e4f77b62615cd5156 -eo pid,comm [Pipeline] { [Pipeline] sh 04:51:54 + go version 04:51:54 go version go1.20.2 linux/amd64 [Pipeline] } 04:51:54 $ docker stop --time=1 9577e5be86d678892a1c387025cabf156ff6e7063212026e4f77b62615cd5156 04:51:55 $ docker rm -f --volumes 9577e5be86d678892a1c387025cabf156ff6e7063212026e4f77b62615cd5156 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:51:55 + docker inspect -f . ci-base-image-x86_64 04:51:55 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 04:51:56 prd-ubuntu20.04-docker-8c-8g-4723 does not seem to be running inside a container 04:51:56 $ 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-272 -v /w/workspace/gexfoundry_device-rest-go_PR-272:/w/workspace/gexfoundry_device-rest-go_PR-272:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-272@tmp:/w/workspace/gexfoundry_device-rest-go_PR-272@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 ******** -e ******** -e ******** ci-base-image-x86_64 cat 04:51:56 $ docker top dcffac51bacb0152a59126f00465de8a42348253d7cc97a553d50074b9796949 -eo pid,comm [Pipeline] { [Pipeline] sh 04:51:56 + git config --global --add safe.directory /w/workspace/gexfoundry_device-rest-go_PR-272 [Pipeline] fileExists [Pipeline] sh 04:51:57 + make test 04:51:57 go test ./... -coverprofile=coverage.out ./... 04:52:02 ? github.com/edgexfoundry/device-rest-go [no test files] 04:52:12 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 04:52:12 ok github.com/edgexfoundry/device-rest-go/driver 0.012s coverage: 33.0% of statements 04:52:17 go vet ./... 04:52:21 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 04:52:21 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 04:52:21 ./bin/test-attribution-txt.sh [Pipeline] echo 04:52:21 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 04:52:21 $ docker stop --time=1 dcffac51bacb0152a59126f00465de8a42348253d7cc97a553d50074b9796949 04:52:24 $ docker rm -f --volumes dcffac51bacb0152a59126f00465de8a42348253d7cc97a553d50074b9796949 [Pipeline] // withDockerContainer [Pipeline] sh 04:52:24 + sudo chown -R jenkins:jenkins . [Pipeline] stash 04:52:24 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 04:52:25 + sudo chown -R jenkins:jenkins . [Pipeline] sh 04:52:25 + ls -al . 04:52:25 total 184 04:52:25 drwxrwxr-x 9 jenkins jenkins 4096 Mar 21 04:51 . 04:52:25 drwxrwxr-x 4 jenkins jenkins 4096 Mar 21 04:50 .. 04:52:25 -rw-rw-r-- 1 jenkins jenkins 151 Mar 21 04:50 .dockerignore 04:52:25 drwxrwxr-x 8 jenkins jenkins 4096 Mar 21 04:51 .git 04:52:25 drwxrwxr-x 3 jenkins jenkins 4096 Mar 21 04:50 .github 04:52:25 -rw-rw-r-- 1 jenkins jenkins 329 Mar 21 04:50 .gitignore 04:52:25 -rw-rw-r-- 1 jenkins jenkins 41 Mar 21 04:50 .golangci.yml 04:52:25 drwxr-xr-x 3 jenkins jenkins 4096 Mar 21 04:51 .semver 04:52:25 -rw-rw-r-- 1 jenkins jenkins 9321 Mar 21 04:50 Attribution.txt 04:52:25 -rw-rw-r-- 1 jenkins jenkins 13085 Mar 21 04:50 CHANGELOG.md 04:52:25 -rw-rw-r-- 1 jenkins jenkins 1578 Mar 21 04:50 Dockerfile 04:52:25 -rw-rw-r-- 1 jenkins jenkins 677 Mar 21 04:50 GOVERNANCE.md 04:52:25 -rw-rw-r-- 1 jenkins jenkins 680 Mar 21 04:50 Jenkinsfile 04:52:25 -rw-rw-r-- 1 jenkins jenkins 11340 Mar 21 04:50 LICENSE 04:52:25 -rw-rw-r-- 1 jenkins jenkins 1779 Mar 21 04:50 Makefile 04:52:25 -rw-rw-r-- 1 jenkins jenkins 620 Mar 21 04:50 OWNERS.md 04:52:25 -rw-rw-r-- 1 jenkins jenkins 15447 Mar 21 04:50 README.md 04:52:25 -rw-rw-r-- 1 jenkins jenkins 5 Mar 21 04:51 VERSION 04:52:25 drwxrwxr-x 2 jenkins jenkins 4096 Mar 21 04:50 bin 04:52:25 drwxrwxr-x 3 jenkins jenkins 4096 Mar 21 04:50 cmd 04:52:25 -rw-r--r-- 1 jenkins jenkins 14200 Mar 21 04:52 coverage.out 04:52:25 drwxrwxr-x 2 jenkins jenkins 4096 Mar 21 04:50 driver 04:52:25 -rw-rw-r-- 1 jenkins jenkins 3446 Mar 21 04:50 go.mod 04:52:25 -rw-rw-r-- 1 jenkins jenkins 31299 Mar 21 04:50 go.sum 04:52:25 drwxrwxr-x 4 jenkins jenkins 4096 Mar 21 04:50 snap 04:52:25 -rw-rw-r-- 1 jenkins jenkins 713 Mar 21 04:50 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:52:25 + 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=b7caf4fecae67d4eaa468c351b80470bfd20b785 --label arch=amd64 --label version=0.0.0 . 04:52:25 Sending build context to Docker daemon 10.87MB 04:52:25 Step 1/25 : ARG BASE=golang:1.20-alpine3.17 04:52:25 Step 2/25 : FROM ${BASE} AS builder 04:52:25 ---> f2af5ee9e7c7 04:52:25 Step 3/25 : ARG ADD_BUILD_TAGS="" 04:52:26 ---> Running in ad1f8ba9b783 04:52:26 Removing intermediate container ad1f8ba9b783 04:52:26 ---> 165ff6ee0465 04:52:26 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 04:52:26 ---> Running in e633c0cc9fe7 04:52:26 Removing intermediate container e633c0cc9fe7 04:52:26 ---> 847fa5a3e052 04:52:26 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 04:52:26 ---> Running in 87771599c795 04:52:26 Removing intermediate container 87771599c795 04:52:26 ---> d5eb0cdcb803 04:52:26 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 04:52:26 ---> Running in efb9cb1a7d95 04:52:26 Removing intermediate container efb9cb1a7d95 04:52:26 ---> dad8b9d1cde8 04:52:26 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 04:52:26 ---> Running in e495f9f8ac6a 04:52:26 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 04:52:26 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 04:52:27 OK: 269 MiB in 57 packages 04:52:27 Removing intermediate container e495f9f8ac6a 04:52:27 ---> 70108d5c4cd9 04:52:27 Step 8/25 : WORKDIR /device-rest-go 04:52:27 ---> Running in 341c09396d1d 04:52:27 Removing intermediate container 341c09396d1d 04:52:27 ---> 057946d99aab 04:52:27 Step 9/25 : COPY go.mod vendor* ./ 04:52:27 ---> a563c698e5b7 04:52:27 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 04:52:27 ---> Running in abec2f7b568b 04:52:28 Removing intermediate container abec2f7b568b 04:52:28 ---> f210766a0214 04:52:28 Step 11/25 : COPY . . 04:52:28 ---> 5d43894a9087 04:52:28 Step 12/25 : RUN $MAKE 04:52:29 ---> Running in 4c8c61187901 04:52:29 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 04:52:47 Removing intermediate container 4c8c61187901 04:52:47 ---> 318e7f162581 04:52:47 Step 13/25 : FROM alpine:3.17 04:52:47 3.17: Pulling from library/alpine 04:52:47 63b65145d645: Already exists 04:52:47 Digest: sha256:ff6bdca1701f3a8a67e328815ff2346b0e4067d32ec36b7992c1fdc001dc8517 04:52:47 Status: Downloaded newer image for alpine:3.17 04:52:47 ---> b2aa39c304c2 04:52:47 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 04:52:47 ---> Running in 557987f2268a 04:52:47 Removing intermediate container 557987f2268a 04:52:47 ---> 4a79c2f9d94d 04:52:47 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 04:52:47 ---> Running in 1d6476f9f5d4 04:52:47 Removing intermediate container 1d6476f9f5d4 04:52:47 ---> ea07c61d1b20 04:52:47 Step 16/25 : RUN apk add --update --no-cache dumb-init 04:52:47 ---> Running in 7a4f7afe2158 04:52:47 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 04:52:47 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 04:52:47 (1/1) Installing dumb-init (1.2.5-r2) 04:52:47 Executing busybox-1.35.0-r29.trigger 04:52:47 OK: 7 MiB in 16 packages 04:52:48 Removing intermediate container 7a4f7afe2158 04:52:48 ---> c673d2dbd4b9 04:52:48 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 04:52:48 ---> 4e05575432c9 04:52:48 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 04:52:48 ---> 278b252cebbb 04:52:48 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 04:52:48 ---> 8041394bf084 04:52:48 Step 20/25 : EXPOSE 59986 04:52:48 ---> Running in b45fe64c02be 04:52:48 Removing intermediate container b45fe64c02be 04:52:48 ---> 7f3c7d75c5d9 04:52:48 Step 21/25 : ENTRYPOINT ["/device-rest"] 04:52:48 ---> Running in d8acc159e186 04:52:49 Removing intermediate container d8acc159e186 04:52:49 ---> 4c95c9060501 04:52:49 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 04:52:49 ---> Running in c462e469e19a 04:52:49 Removing intermediate container c462e469e19a 04:52:49 ---> c277cc99c707 04:52:49 Step 23/25 : LABEL arch=amd64 04:52:49 ---> Running in 2ea03c69d39f 04:52:49 Removing intermediate container 2ea03c69d39f 04:52:49 ---> aa6be11f8e44 04:52:49 Step 24/25 : LABEL git_sha=b7caf4fecae67d4eaa468c351b80470bfd20b785 04:52:49 ---> Running in 110e2bddd0ba 04:52:49 Removing intermediate container 110e2bddd0ba 04:52:49 ---> 851a2b8ef13e 04:52:49 Step 25/25 : LABEL version=0.0.0 04:52:49 ---> Running in 354d5dc6df64 04:52:49 Removing intermediate container 354d5dc6df64 04:52:49 ---> 099ee9be3976 04:52:49 [Warning] One or more build-args [ARCH] were not consumed 04:52:49 Successfully built 099ee9be3976 04:52:49 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 04:52:49 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 04:52:49 04:52:49 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:52:50 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 04:52:50 latest: Pulling from edgex-lftools-log-publisher 04:52:50 5eb5b503b376: Pulling fs layer 04:52:50 5c69ac0246d0: Pulling fs layer 04:52:50 ec43610c2a17: Pulling fs layer 04:52:50 3a2ae6a8a46f: Pulling fs layer 04:52:50 33b1e0a273af: Pulling fs layer 04:52:50 5d3b04190fa2: Pulling fs layer 04:52:50 2f39f015ded8: Pulling fs layer 04:52:50 3a2ae6a8a46f: Waiting 04:52:50 33b1e0a273af: Waiting 04:52:50 5d3b04190fa2: Waiting 04:52:50 2f39f015ded8: Waiting 04:52:50 5c69ac0246d0: Download complete 04:52:50 3a2ae6a8a46f: Verifying Checksum 04:52:50 3a2ae6a8a46f: Download complete 04:52:50 33b1e0a273af: Verifying Checksum 04:52:50 33b1e0a273af: Download complete 04:52:50 5d3b04190fa2: Verifying Checksum 04:52:50 5d3b04190fa2: Download complete 04:52:50 ec43610c2a17: Verifying Checksum 04:52:50 ec43610c2a17: Download complete 04:52:50 5eb5b503b376: Verifying Checksum 04:52:50 5eb5b503b376: Download complete 04:52:51 2f39f015ded8: Download complete 04:52:51 5eb5b503b376: Pull complete 04:52:51 5c69ac0246d0: Pull complete 04:52:52 ec43610c2a17: Pull complete 04:52:52 3a2ae6a8a46f: Pull complete 04:52:52 33b1e0a273af: Pull complete 04:52:52 5d3b04190fa2: Pull complete 04:52:56 2f39f015ded8: Pull complete 04:52:56 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 04:52:56 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 04:52:56 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 04:52:56 prd-ubuntu20.04-docker-8c-8g-4723 does not seem to be running inside a container 04:52:56 $ 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-272 -v /w/workspace/gexfoundry_device-rest-go_PR-272:/w/workspace/gexfoundry_device-rest-go_PR-272:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-272@tmp:/w/workspace/gexfoundry_device-rest-go_PR-272@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 ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 04:52:58 Running on prd-ubuntu20.04-docker-arm64-4c-16g-4724 in /w/workspace/gexfoundry_device-rest-go_PR-272 04:53:00 $ docker top 9b135f60801cf3e5d6430b1f3dec3b486a017455db8c2757235f65c19e513887 -eo pid,comm [Pipeline] { [Pipeline] { [Pipeline] libraryResource [Pipeline] sh [Pipeline] ws 04:53:00 Running in /w/workspace/device-rest-go/4 [Pipeline] { [Pipeline] checkout 04:53:00 The recommended git tool is: git 04:53:00 ---> job-cost.sh 04:53:00 lf-activate-venv: SKIPPING 04:53:00 INFO: No Stack... 04:53:00 INFO: Retrieving Pricing Info for: v3-standard-8 04:53:01 INFO: Archiving Costs [Pipeline] sh 04:53:01 + cat /w/workspace/gexfoundry_device-rest-go_PR-272/archives/cost.csv 04:53:01 + cut -d, -f6 [Pipeline] lock 04:53:01 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-272-4-stack-cost] 04:53:01 Resource [jenkins-edgexfoundry-device-rest-go-PR-272-4-stack-cost] did not exist. Created. 04:53:01 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-272-4-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 04:53:01 + echo total: 0.2199999988079071 [Pipeline] stash 04:53:01 Stashed 1 file(s) [Pipeline] } 04:53:01 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-272-4-stack-cost] [Pipeline] // lock [Pipeline] } 04:53:01 $ docker stop --time=1 9b135f60801cf3e5d6430b1f3dec3b486a017455db8c2757235f65c19e513887 04:53:03 $ docker rm -f --volumes 9b135f60801cf3e5d6430b1f3dec3b486a017455db8c2757235f65c19e513887 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 04:53:05 using credential edgex-jenkins-ssh 04:53:05 Cloning the remote Git repository 04:53:05 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 04:53:05 > git init /w/workspace/device-rest-go/4 # timeout=10 04:53:05 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 04:53:05 > git --version # timeout=10 04:53:06 > git --version # 'git version 2.25.1' 04:53:06 using GIT_SSH to set credentials SSH Credentials for GitHub 04:53:06 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 04:53:08 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 04:53:08 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 04:53:08 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 04:53:09 Merging remotes/origin/main commit 2ded8c8301fa9285dc80bb471c5f0972abc0b73a into PR head commit b7caf4fecae67d4eaa468c351b80470bfd20b785 04:53:09 Merge succeeded, producing b7caf4fecae67d4eaa468c351b80470bfd20b785 04:53:09 Checking out Revision b7caf4fecae67d4eaa468c351b80470bfd20b785 (PR-272) 04:53:08 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 04:53:08 using GIT_SSH to set credentials SSH Credentials for GitHub 04:53:09 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/272/head:refs/remotes/origin/PR-272 +refs/heads/main:refs/remotes/origin/main # timeout=10 04:53:09 > git config core.sparsecheckout # timeout=10 04:53:09 > git checkout -f b7caf4fecae67d4eaa468c351b80470bfd20b785 # timeout=10 04:53:09 > git remote # timeout=10 04:53:09 > git config --get remote.origin.url # timeout=10 04:53:09 using GIT_SSH to set credentials SSH Credentials for GitHub 04:53:09 > git merge 2ded8c8301fa9285dc80bb471c5f0972abc0b73a # timeout=10 04:53:09 > git rev-parse HEAD^{commit} # timeout=10 04:53:09 > git config core.sparsecheckout # timeout=10 04:53:09 > git checkout -f b7caf4fecae67d4eaa468c351b80470bfd20b785 # timeout=10 04:53:13 Commit message: "build(deps)!: bump sdk to 3.0.0-dev.54" [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 04:53:14 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 04:53:14 % Total % Received % Xferd Average Speed Time Time Time Current 04:53:14 Dload Upload Total Spent Left Speed 04:53:14 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 12751 100 12751 0 0 89795 0 --:--:-- --:--:-- --:--:-- 90432 [Pipeline] sh 04:53:14 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 04:53:15 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 04:53:15 + sudo tee /etc/docker/daemon.new 04:53:15 { 04:53:15 "registry-mirrors": [ 04:53:15 "https://nexus3.edgexfoundry.org:10001" 04:53:15 ], 04:53:15 "bip": "10.250.0.254/24", 04:53:15 "hosts": [ 04:53:15 "tcp://0.0.0.0:5555", 04:53:15 "unix:///var/run/docker.sock" 04:53:15 ], 04:53:15 "mtu": 1458, 04:53:15 "selinux-enabled": true, 04:53:15 "seccomp-profile": "/etc/docker/seccomp.json" 04:53:15 } [Pipeline] sh 04:53:15 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 04:53:15 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 04:53:34 provisioning config files... 04:53:34 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/4@tmp/config17867698898934950096tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 04:53:34 ---> docker-login.sh 04:53:34 nexus3.edgexfoundry.org:10001 04:53:34 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:53:35 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:53:35 Configure a credential helper to remove this warning. See 04:53:35 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:53:35 04:53:35 Login Succeeded 04:53:35 nexus3.edgexfoundry.org:10002 04:53:35 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:53:35 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:53:35 Configure a credential helper to remove this warning. See 04:53:35 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:53:35 04:53:35 Login Succeeded 04:53:35 nexus3.edgexfoundry.org:10003 04:53:35 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:53:35 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:53:35 Configure a credential helper to remove this warning. See 04:53:35 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:53:35 04:53:35 Login Succeeded 04:53:35 nexus3.edgexfoundry.org:10004 04:53:36 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:53:36 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:53:36 Configure a credential helper to remove this warning. See 04:53:36 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:53:36 04:53:36 Login Succeeded 04:53:36 docker.io 04:53:36 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:53:36 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:53:36 Configure a credential helper to remove this warning. See 04:53:36 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:53:36 04:53:36 Login Succeeded 04:53:36 ---> docker-login.sh ends [Pipeline] } 04:53:36 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 04:53:37 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 04:53:37 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 04:53:37 ========================================================= 04:53:37 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine] 04:53:37 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:53:37 + 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 . 04:53:37 Sending build context to Docker daemon 138.8kB 04:53:37 Step 1/12 : ARG BASE=golang:1.20-alpine3.17 04:53:37 Step 2/12 : FROM ${BASE} AS builder 04:53:37 1.20-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 04:53:37 af6eaf76a39c: Pulling fs layer 04:53:37 55522c791124: Pulling fs layer 04:53:37 ce5c4a1c91eb: Pulling fs layer 04:53:37 169dfbe0d373: Pulling fs layer 04:53:37 e1ff8fa3b103: Pulling fs layer 04:53:37 52ebb69f0ebf: Pulling fs layer 04:53:37 5abe8eddf0d5: Pulling fs layer 04:53:37 e1ff8fa3b103: Waiting 04:53:37 52ebb69f0ebf: Waiting 04:53:37 5abe8eddf0d5: Waiting 04:53:37 169dfbe0d373: Waiting 04:53:37 55522c791124: Verifying Checksum 04:53:37 55522c791124: Download complete 04:53:37 169dfbe0d373: Verifying Checksum 04:53:37 169dfbe0d373: Download complete 04:53:37 e1ff8fa3b103: Verifying Checksum 04:53:37 e1ff8fa3b103: Download complete 04:53:37 af6eaf76a39c: Verifying Checksum 04:53:37 af6eaf76a39c: Download complete 04:53:38 af6eaf76a39c: Pull complete 04:53:38 5abe8eddf0d5: Verifying Checksum 04:53:38 5abe8eddf0d5: Download complete 04:53:39 55522c791124: Pull complete 04:53:40 52ebb69f0ebf: Download complete 04:53:40 ce5c4a1c91eb: Verifying Checksum 04:53:40 ce5c4a1c91eb: Download complete 04:53:50 ce5c4a1c91eb: Pull complete 04:53:50 169dfbe0d373: Pull complete 04:53:50 e1ff8fa3b103: Pull complete 04:53:57 52ebb69f0ebf: Pull complete 04:53:59 5abe8eddf0d5: Pull complete 04:53:59 Digest: sha256:978cc1420e451f27bd88fdeece3ad01a9109ec773b62f165dfc696fd516b3d8f 04:53:59 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine 04:53:59 ---> 6cb57ee374ae 04:53:59 Step 3/12 : ARG ADD_BUILD_TAGS="" 04:54:01 ---> Running in c2d44131a7ae 04:54:01 Removing intermediate container c2d44131a7ae 04:54:01 ---> eb78e24b2fcd 04:54:01 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 04:54:01 ---> Running in 196ad608d534 04:54:01 Removing intermediate container 196ad608d534 04:54:01 ---> 45175aad81d0 04:54:01 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 04:54:01 ---> Running in 2f1cb4b10f57 04:54:02 Removing intermediate container 2f1cb4b10f57 04:54:02 ---> f9292c27028c 04:54:02 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 04:54:02 ---> Running in d980ddbcc725 04:54:02 Removing intermediate container d980ddbcc725 04:54:02 ---> 48779db969bb 04:54:02 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 04:54:02 ---> Running in d2d1ea879350 04:54:03 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 04:54:04 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 04:54:05 (1/4) Installing openssh-keygen (9.1_p1-r2) 04:54:05 (2/4) Installing libedit (20221030.3.1-r0) 04:54:05 (3/4) Installing openssh-client-common (9.1_p1-r2) 04:54:05 (4/4) Installing openssh-client-default (9.1_p1-r2) 04:54:05 Executing busybox-1.35.0-r29.trigger 04:54:05 OK: 268 MiB in 57 packages 04:54:06 Removing intermediate container d2d1ea879350 04:54:06 ---> 748d7d08d587 04:54:06 Step 8/12 : WORKDIR /device-rest-go 04:54:06 ---> Running in 2e4c046a53f7 04:54:07 Removing intermediate container 2e4c046a53f7 04:54:07 ---> a0c55420ca30 04:54:07 Step 9/12 : COPY go.mod vendor* ./ 04:54:07 ---> 1b1b4b9bde86 04:54:07 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 04:54:07 ---> Running in 523526ed1ed9 04:55:15 Removing intermediate container 523526ed1ed9 04:55:15 ---> 34390ad52e9f 04:55:15 Step 11/12 : COPY . . 04:55:15 ---> 627b4aeece29 04:55:15 Step 12/12 : RUN $MAKE 04:55:15 ---> Running in 278d4b93e32c 04:55:15 noop 04:55:15 Removing intermediate container 278d4b93e32c 04:55:15 ---> 185fcb41df06 04:55:15 Successfully built 185fcb41df06 04:55:15 Successfully tagged ci-base-image-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:55:16 + docker inspect -f . ci-base-image-arm64 04:55:16 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 04:55:16 prd-ubuntu20.04-docker-arm64-4c-16g-4724 does not seem to be running inside a container 04:55:16 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/4 -v /w/workspace/device-rest-go/4:/w/workspace/device-rest-go/4:rw,z -v /w/workspace/device-rest-go/4@tmp:/w/workspace/device-rest-go/4@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 ******** -e ******** -e ******** ci-base-image-arm64 cat 04:55:17 $ docker top dd2e48dc1e0c92ced85943dabf7b9891b3344d111cbc5bb5111d794608e133fa -eo pid,comm [Pipeline] { [Pipeline] sh 04:55:18 + go version 04:55:18 go version go1.20.2 linux/arm64 [Pipeline] } 04:55:18 $ docker stop --time=1 dd2e48dc1e0c92ced85943dabf7b9891b3344d111cbc5bb5111d794608e133fa 04:55:20 $ docker rm -f --volumes dd2e48dc1e0c92ced85943dabf7b9891b3344d111cbc5bb5111d794608e133fa [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:55:20 + docker inspect -f . ci-base-image-arm64 04:55:20 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 04:55:20 prd-ubuntu20.04-docker-arm64-4c-16g-4724 does not seem to be running inside a container 04:55:20 $ 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/4 -v /w/workspace/device-rest-go/4:/w/workspace/device-rest-go/4:rw,z -v /w/workspace/device-rest-go/4@tmp:/w/workspace/device-rest-go/4@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 ******** -e ******** -e ******** ci-base-image-arm64 cat 04:55:22 $ docker top 700bcbde28ed690e26f29983d6728a8e796605ac3e24105efa4632db775fb980 -eo pid,comm [Pipeline] { [Pipeline] sh 04:55:22 + git config --global --add safe.directory /w/workspace/device-rest-go/4 [Pipeline] fileExists [Pipeline] sh 04:55:23 + make test 04:55:23 go test ./... -coverprofile=coverage.out ./... 04:55:55 ? github.com/edgexfoundry/device-rest-go [no test files] 04:57:47 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 04:57:47 ok github.com/edgexfoundry/device-rest-go/driver 0.064s coverage: 33.0% of statements 04:57:47 WARNING: Linting skipped (not on x86_64 or linter not installed) 04:57:47 go vet ./... 04:58:26 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 04:58:26 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 04:58:26 ./bin/test-attribution-txt.sh [Pipeline] echo 04:58:26 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 04:58:26 $ docker stop --time=1 700bcbde28ed690e26f29983d6728a8e796605ac3e24105efa4632db775fb980 04:58:28 $ docker rm -f --volumes 700bcbde28ed690e26f29983d6728a8e796605ac3e24105efa4632db775fb980 [Pipeline] // withDockerContainer [Pipeline] sh 04:58:29 + sudo chown -R jenkins:jenkins . [Pipeline] stash 04:58:29 Warning: overwriting stash ‘coverage-report’ 04:58:30 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 04:58:30 + sudo chown -R jenkins:jenkins . [Pipeline] sh 04:58:30 + ls -al . 04:58:30 total 180 04:58:30 drwxrwxr-x 8 jenkins jenkins 4096 Mar 21 04:55 . 04:58:30 drwxrwxr-x 4 jenkins jenkins 4096 Mar 21 04:53 .. 04:58:30 -rw-rw-r-- 1 jenkins jenkins 151 Mar 21 04:53 .dockerignore 04:58:30 drwxrwxr-x 8 jenkins jenkins 4096 Mar 21 04:53 .git 04:58:30 drwxrwxr-x 3 jenkins jenkins 4096 Mar 21 04:53 .github 04:58:30 -rw-rw-r-- 1 jenkins jenkins 329 Mar 21 04:53 .gitignore 04:58:30 -rw-rw-r-- 1 jenkins jenkins 41 Mar 21 04:53 .golangci.yml 04:58:30 -rw-rw-r-- 1 jenkins jenkins 9321 Mar 21 04:53 Attribution.txt 04:58:30 -rw-rw-r-- 1 jenkins jenkins 13085 Mar 21 04:53 CHANGELOG.md 04:58:30 -rw-rw-r-- 1 jenkins jenkins 1578 Mar 21 04:53 Dockerfile 04:58:30 -rw-rw-r-- 1 jenkins jenkins 677 Mar 21 04:53 GOVERNANCE.md 04:58:30 -rw-rw-r-- 1 jenkins jenkins 680 Mar 21 04:53 Jenkinsfile 04:58:30 -rw-rw-r-- 1 jenkins jenkins 11340 Mar 21 04:53 LICENSE 04:58:30 -rw-rw-r-- 1 jenkins jenkins 1779 Mar 21 04:53 Makefile 04:58:30 -rw-rw-r-- 1 jenkins jenkins 620 Mar 21 04:53 OWNERS.md 04:58:30 -rw-rw-r-- 1 jenkins jenkins 15447 Mar 21 04:53 README.md 04:58:30 -rw-rw-r-- 1 jenkins jenkins 5 Mar 21 04:51 VERSION 04:58:30 drwxrwxr-x 2 jenkins jenkins 4096 Mar 21 04:53 bin 04:58:30 drwxrwxr-x 3 jenkins jenkins 4096 Mar 21 04:53 cmd 04:58:30 -rw-r--r-- 1 jenkins jenkins 14200 Mar 21 04:57 coverage.out 04:58:30 drwxrwxr-x 2 jenkins jenkins 4096 Mar 21 04:53 driver 04:58:30 -rw-rw-r-- 1 jenkins jenkins 3446 Mar 21 04:53 go.mod 04:58:30 -rw-rw-r-- 1 jenkins jenkins 31299 Mar 21 04:53 go.sum 04:58:30 drwxrwxr-x 4 jenkins jenkins 4096 Mar 21 04:53 snap 04:58:30 -rw-rw-r-- 1 jenkins jenkins 713 Mar 21 04:53 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:58:31 + 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=b7caf4fecae67d4eaa468c351b80470bfd20b785 --label arch=arm64 --label version=0.0.0 . 04:58:31 Sending build context to Docker daemon 153.6kB 04:58:31 Step 1/25 : ARG BASE=golang:1.20-alpine3.17 04:58:31 Step 2/25 : FROM ${BASE} AS builder 04:58:31 ---> 185fcb41df06 04:58:31 Step 3/25 : ARG ADD_BUILD_TAGS="" 04:58:31 ---> Running in da3cffdfb5b8 04:58:31 Removing intermediate container da3cffdfb5b8 04:58:31 ---> 7f05b1320b77 04:58:31 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 04:58:31 ---> Running in 94abeeacfcb2 04:58:32 Removing intermediate container 94abeeacfcb2 04:58:32 ---> d91df03e1828 04:58:32 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 04:58:32 ---> Running in 3d7fa30743b0 04:58:32 Removing intermediate container 3d7fa30743b0 04:58:32 ---> 52aa3de04bae 04:58:32 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 04:58:32 ---> Running in 755ede48fc67 04:58:33 Removing intermediate container 755ede48fc67 04:58:33 ---> ab7bfdff119c 04:58:33 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 04:58:33 ---> Running in e4e5c97eac9d 04:58:34 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 04:58:34 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 04:58:35 OK: 268 MiB in 57 packages 04:58:36 Removing intermediate container e4e5c97eac9d 04:58:36 ---> c6b21d4e7911 04:58:36 Step 8/25 : WORKDIR /device-rest-go 04:58:36 ---> Running in 0ee301ea9b52 04:58:36 Removing intermediate container 0ee301ea9b52 04:58:36 ---> 8435ec85a067 04:58:36 Step 9/25 : COPY go.mod vendor* ./ 04:58:37 ---> dca95617dabc 04:58:37 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 04:58:37 ---> Running in f8504f6c4832 04:58:40 Removing intermediate container f8504f6c4832 04:58:40 ---> 0b516e289af2 04:58:40 Step 11/25 : COPY . . 04:58:41 ---> fdc0041b3e82 04:58:41 Step 12/25 : RUN $MAKE 04:58:41 ---> Running in 738eee3ee3f6 04:58:41 CGO_ENABLED=0 go build -tags "" -ldflags "-X github.com/edgexfoundry/device-rest-go.Version=0.0.0" -trimpath -mod=readonly -o cmd/device-rest ./cmd 05:00:48 Removing intermediate container 738eee3ee3f6 05:00:48 ---> 082c36800836 05:00:48 Step 13/25 : FROM alpine:3.17 05:00:48 3.17: Pulling from library/alpine 05:00:48 af6eaf76a39c: Already exists 05:00:48 Digest: sha256:ff6bdca1701f3a8a67e328815ff2346b0e4067d32ec36b7992c1fdc001dc8517 05:00:48 Status: Downloaded newer image for alpine:3.17 05:00:48 ---> d74e625d9115 05:00:48 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 05:00:48 ---> Running in 4c31b1883b61 05:00:48 Removing intermediate container 4c31b1883b61 05:00:48 ---> ff012cd6d5c9 05:00:48 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 05:00:48 ---> Running in e3f5aba7b47d 05:00:48 Removing intermediate container e3f5aba7b47d 05:00:48 ---> ba4d153d9a5e 05:00:48 Step 16/25 : RUN apk add --update --no-cache dumb-init 05:00:48 ---> Running in 272f6f59b454 05:00:49 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 05:00:50 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 05:00:51 (1/1) Installing dumb-init (1.2.5-r2) 05:00:51 Executing busybox-1.35.0-r29.trigger 05:00:51 OK: 8 MiB in 16 packages 05:00:52 Removing intermediate container 272f6f59b454 05:00:52 ---> 06f2701a527a 05:00:52 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 05:00:53 ---> f0ab13780fde 05:00:53 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 05:00:54 ---> a64232fa9e89 05:00:54 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 05:00:54 ---> cb8e01323cb7 05:00:54 Step 20/25 : EXPOSE 59986 05:00:55 ---> Running in be185f53c8f7 05:00:55 Removing intermediate container be185f53c8f7 05:00:55 ---> a0fcce97b651 05:00:55 Step 21/25 : ENTRYPOINT ["/device-rest"] 05:00:55 ---> Running in 2b39750be0f5 05:00:55 Removing intermediate container 2b39750be0f5 05:00:55 ---> f5e1da867e2c 05:00:55 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 05:00:55 ---> Running in 0e0c4d178c3b 05:00:55 Removing intermediate container 0e0c4d178c3b 05:00:55 ---> 75514e296468 05:00:55 Step 23/25 : LABEL arch=arm64 05:00:56 ---> Running in 3b5fd734639c 05:00:56 Removing intermediate container 3b5fd734639c 05:00:56 ---> 0dce46a0a5f4 05:00:56 Step 24/25 : LABEL git_sha=b7caf4fecae67d4eaa468c351b80470bfd20b785 05:00:56 ---> Running in 6fb2961ac883 05:00:56 Removing intermediate container 6fb2961ac883 05:00:56 ---> e4c2e155dec1 05:00:56 Step 25/25 : LABEL version=0.0.0 05:00:56 ---> Running in 2c3b976cbf52 05:00:57 Removing intermediate container 2c3b976cbf52 05:00:57 ---> a62e3c874ba7 05:00:57 [Warning] One or more build-args [ARCH] were not consumed 05:00:57 Successfully built a62e3c874ba7 05:00:57 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 05:00:57 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 05:00:57 05:00:57 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:00:57 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 05:00:57 arm64: Pulling from edgex-lftools-log-publisher 05:00:57 8998bd30e6a1: Pulling fs layer 05:00:57 04944245beec: Pulling fs layer 05:00:57 699f458cf7ca: Pulling fs layer 05:00:57 765212b225bb: Pulling fs layer 05:00:57 f23df028b6ca: Pulling fs layer 05:00:57 d65c8cfc05b1: Pulling fs layer 05:00:57 2437ff75d9bd: Pulling fs layer 05:00:57 765212b225bb: Waiting 05:00:57 f23df028b6ca: Waiting 05:00:57 d65c8cfc05b1: Waiting 05:00:57 2437ff75d9bd: Waiting 05:00:58 04944245beec: Verifying Checksum 05:00:58 04944245beec: Download complete 05:00:58 765212b225bb: Verifying Checksum 05:00:58 765212b225bb: Download complete 05:00:58 f23df028b6ca: Verifying Checksum 05:00:58 f23df028b6ca: Download complete 05:00:58 d65c8cfc05b1: Verifying Checksum 05:00:58 d65c8cfc05b1: Download complete 05:00:58 699f458cf7ca: Verifying Checksum 05:00:58 699f458cf7ca: Download complete 05:00:58 8998bd30e6a1: Verifying Checksum 05:00:58 8998bd30e6a1: Download complete 05:01:01 2437ff75d9bd: Verifying Checksum 05:01:01 2437ff75d9bd: Download complete 05:01:02 8998bd30e6a1: Pull complete 05:01:03 04944245beec: Pull complete 05:01:04 699f458cf7ca: Pull complete 05:01:04 765212b225bb: Pull complete 05:01:05 f23df028b6ca: Pull complete 05:01:05 d65c8cfc05b1: Pull complete 05:01:20 2437ff75d9bd: Pull complete 05:01:20 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 05:01:20 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 05:01:20 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 05:01:20 prd-ubuntu20.04-docker-arm64-4c-16g-4724 does not seem to be running inside a container 05:01:20 $ 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/4 -v /w/workspace/device-rest-go/4:/w/workspace/device-rest-go/4:rw,z -v /w/workspace/device-rest-go/4@tmp:/w/workspace/device-rest-go/4@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 ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 05:01:23 $ docker top e5ddc47b1322c3adf2525cb88ac6c4141f6824bb4f437758a2598aab704e31de -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 05:01:24 ---> job-cost.sh 05:01:24 lf-activate-venv: SKIPPING 05:01:24 INFO: No Stack... 05:01:24 INFO: Retrieving Pricing Info for: v3-standard-4 05:01:25 INFO: Archiving Costs [Pipeline] sh 05:01:26 + cat /w/workspace/device-rest-go/4/archives/cost.csv 05:01:26 + cut -d, -f6 [Pipeline] lock 05:01:26 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-272-4-stack-cost] 05:01:26 Resource [jenkins-edgexfoundry-device-rest-go-PR-272-4-stack-cost] did not exist. Created. 05:01:26 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-272-4-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 05:01:26 /w/workspace/device-rest-go/4@tmp/durable-57f2120a/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 05:01:26 + echo total: 0.10999999940395355 [Pipeline] stash 05:01:26 Warning: overwriting stash ‘stack-cost’ 05:01:27 Stashed 1 file(s) [Pipeline] } 05:01:27 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-272-4-stack-cost] [Pipeline] // lock [Pipeline] } 05:01:27 $ docker stop --time=1 e5ddc47b1322c3adf2525cb88ac6c4141f6824bb4f437758a2598aab704e31de 05:01:28 $ docker rm -f --volumes e5ddc47b1322c3adf2525cb88ac6c4141f6824bb4f437758a2598aab704e31de [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 05:01:28 provisioning config files... 05:01:28 copy managed file [device-rest-go-codecov-token] to file:/w/workspace/gexfoundry_device-rest-go_PR-272@tmp/config2090205881634007305tmp [Pipeline] { [Pipeline] sh 05:01:29 + set +x 05:01:29 + bash -s -- 05:01:29 + curl -s https://codecov.io/bash 05:01:29 05:01:29 _____ _ 05:01:29 / ____| | | 05:01:29 | | ___ __| | ___ ___ _____ __ 05:01:29 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 05:01:29 | |___| (_) | (_| | __/ (_| (_) \ V / 05:01:29 \_____\___/ \__,_|\___|\___\___/ \_/ 05:01:29 Bash-1.0.6 05:01:29 05:01:29 05:01:29 ==> git version 2.25.1 found 05:01:29 ==> 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 05:01:29 Release-Date: 2020-01-08 05:01:29 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 05:01:29 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 05:01:29 ==> Jenkins CI detected. 05:01:29 current dir:  /w/workspace/gexfoundry_device-rest-go_PR-272 05:01:29 project root: . 05:01:29 --> token set from env 05:01:29 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 05:01:29 ==> Running gcov in . (disable via -X gcov) 05:01:29 ==> Python coveragepy not found 05:01:29 ==> Searching for coverage reports in: 05:01:29 + . 05:01:29 -> Found 1 reports 05:01:29 ==> Detecting git/mercurial file structure 05:01:29 ==> Reading reports 05:01:29 + ./coverage.out bytes=14200 05:01:29 ==> Appending adjustments 05:01:29 https://docs.codecov.io/docs/fixing-reports 05:01:29 + Found adjustments 05:01:29 ==> Gzipping contents 05:01:29 4.0K /tmp/codecov.NYT17x.gz 05:01:29 ==> Uploading reports 05:01:29 url: https://codecov.io 05:01:29 query: branch=PR-272&commit=b7caf4fecae67d4eaa468c351b80470bfd20b785&build=4&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-272%2F4%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=272&job=&cmd_args= 05:01:29 -> Pinging Codecov 05:01:29 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=c51feb23-73ac-4f49-b3d1-d26df23137db&branch=PR-272&commit=b7caf4fecae67d4eaa468c351b80470bfd20b785&build=4&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-272%2F4%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=272&job=&cmd_args= 05:01:29 -> Uploading to 05:01:29 https://storage.googleapis.com/codecov/v4/raw/2023-03-21/4E5D53B4F1F92C436F7061BF334D961C/b7caf4fecae67d4eaa468c351b80470bfd20b785/c9a358d2-40b2-46e2-a9a6-2fe2fcf48eca.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20230321%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20230321T050129Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=96edcfed911a7ea54c0a43e43821901fd08fe0d0df584e39c0581bc6d30ccb9c 05:01:29 % Total % Received % Xferd Average Speed Time Time Time Current 05:01:29 Dload Upload Total Spent Left Speed 05:01:29 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 2459 0 0 100 2459 0 7340 --:--:-- --:--:-- --:--:-- 7318 100 2459 0 0 100 2459 0 7318 --:--:-- --:--:-- --:--:-- 7318 05:01:29 -> Reports have been successfully queued for processing at https://app.codecov.io/github/edgexfoundry/device-rest-go/commit/b7caf4fecae67d4eaa468c351b80470bfd20b785 [Pipeline] } 05:01:29 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 05:01:30 + [ -d /w/workspace/gexfoundry_device-rest-go_PR-272/archives ] 05:01:30 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-272/archives 05:01:30 total 16 05:01:30 drwxr-xr-x 3 root root 4096 Mar 21 04:53 . 05:01:30 drwxrwxr-x 10 jenkins jenkins 4096 Mar 21 04:53 .. 05:01:30 drwxr-xr-x 2 root root 4096 Mar 21 04:53 cost 05:01:30 -rw-r--r-- 1 root root 86 Mar 21 04:53 cost.csv 05:01:30 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-rest-go_PR-272/archives 05:01:30 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-272/archives 05:01:30 total 16 05:01:30 drwxr-xr-x 3 jenkins jenkins 4096 Mar 21 04:53 . 05:01:30 drwxrwxr-x 10 jenkins jenkins 4096 Mar 21 04:53 .. 05:01:30 drwxr-xr-x 2 jenkins jenkins 4096 Mar 21 04:53 cost 05:01:30 -rw-r--r-- 1 jenkins jenkins 86 Mar 21 04:53 cost.csv [Pipeline] libraryResource [Pipeline] sh 05:01:30 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 05:01:31 ---> package-listing.sh 05:01:31 ++ facter osfamily 05:01:31 ++ tr '[:upper:]' '[:lower:]' 05:01:31 + OS_FAMILY=debian 05:01:31 + workspace=/w/workspace/gexfoundry_device-rest-go_PR-272 05:01:31 + START_PACKAGES=/tmp/packages_start.txt 05:01:31 + END_PACKAGES=/tmp/packages_end.txt 05:01:31 + DIFF_PACKAGES=/tmp/packages_diff.txt 05:01:31 + PACKAGES=/tmp/packages_start.txt 05:01:31 + '[' /w/workspace/gexfoundry_device-rest-go_PR-272 ']' 05:01:31 + PACKAGES=/tmp/packages_end.txt 05:01:31 + case "${OS_FAMILY}" in 05:01:31 + dpkg -l 05:01:31 + grep '^ii' 05:01:31 + '[' -f /tmp/packages_start.txt ']' 05:01:31 + '[' -f /tmp/packages_end.txt ']' 05:01:31 + diff /tmp/packages_start.txt /tmp/packages_end.txt 05:01:31 + '[' /w/workspace/gexfoundry_device-rest-go_PR-272 ']' 05:01:31 + mkdir -p /w/workspace/gexfoundry_device-rest-go_PR-272/archives/ 05:01:31 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/gexfoundry_device-rest-go_PR-272/archives/ [Pipeline] echo 05:01:31 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-272/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 05:01:32 + facter operatingsystem [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:01:32 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 05:01:32 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 05:01:32 prd-ubuntu20.04-docker-8c-8g-4723 does not seem to be running inside a container 05:01:32 $ 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-272/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-272 -v /w/workspace/gexfoundry_device-rest-go_PR-272:/w/workspace/gexfoundry_device-rest-go_PR-272:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-272@tmp:/w/workspace/gexfoundry_device-rest-go_PR-272@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 ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 05:01:33 $ docker top b4703e24c53cee7995b820ccc00e17b2ae2e5cbaa3285fe2728a41a2ea7657d1 -eo pid,comm [Pipeline] { [Pipeline] sh 05:01:33 + touch /tmp/pre-build-complete [Pipeline] sh 05:01:33 + mkdir -p /var/log/sysstat [Pipeline] sh 05:01:34 + ls /var/log/sa-host 05:01:34 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 05:01:34 provisioning config files... 05:01:34 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-272@tmp/config11408646899638781159tmp [Pipeline] { [Pipeline] echo 05:01:34 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 05:01:34 ---> create-netrc.sh [Pipeline] } 05:01:34 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 05:01:34 ---> python-tools-install.sh [Pipeline] echo 05:01:34 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 05:01:34 ---> sudo-logs.sh 05:01:34 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 05:01:35 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 05:01:35 ---> job-cost.sh 05:01:35 lf-activate-venv: SKIPPING 05:01:35 DEBUG: total: 0.2199999988079071 05:01:35 INFO: Retrieving Stack Cost... 05:01:35 INFO: Retrieving Pricing Info for: v3-standard-8 05:01:36 INFO: Archiving Costs [Pipeline] echo 05:01:36 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 05:01:36 ---> logs-deploy.sh 05:01:36 lf-activate-venv: SKIPPING 05:01:36 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-272/4 05:01:36 INFO: archiving workspace using pattern(s): 05:01:37 Archives upload complete. 05:01:37 INFO: archiving logs to Nexus