Pull request #272 updated 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 53d571398c6ea370e5c9d1329a3dd23e6e74a13a 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-ssh3629459985279980167.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-ssh8899712118813294150.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-ssh9140957697785509422.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-ssh9682350273135401654.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-ssh7499635692490351626.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-4719’ is offline Running on prd-ubuntu20.04-docker-8c-8g-4721 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 53d571398c6ea370e5c9d1329a3dd23e6e74a13a Merge succeeded, producing 53d571398c6ea370e5c9d1329a3dd23e6e74a13a Checking out Revision 53d571398c6ea370e5c9d1329a3dd23e6e74a13a (PR-272) > git config core.sparsecheckout # timeout=10 > git checkout -f 53d571398c6ea370e5c9d1329a3dd23e6e74a13a # 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 53d571398c6ea370e5c9d1329a3dd23e6e74a13a # timeout=10 Commit message: "build(deps): bump sdk to 3.0.0-dev.54" First time build. Skipping changelog. > git rev-list --no-walk a9f8d9f939f37345898a2050de810d76c0875db0 # timeout=10 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 04:38:46 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 04:38:46 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 04:38:46 ========================================================= 04:38:46 EdgeX Global Pipelines Version Info 04:38:46 ========================================================= [Pipeline] libraryResource [Pipeline] sh 04:38:47 ------------------- 04:38:47 stable info: 04:38:47 ------------------- 04:38:47 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 04:38:47 Commit SHA: 66200e8eedfc470904d6b329e562ec5b45423d6a 04:38:47 Message: update stable to v1.0.245 04:38:47 ------------------- 04:38:47 experimental info: 04:38:47 ------------------- 04:38:47 Commited By: **** collab-it+edgex@linuxfoundation.org 04:38:47 Commit SHA: eb5041bb0874f6b7cdca3e6793e1ef87c0289dce 04:38:47 Message: update experimental to v1.0.246 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 04:38:47 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 04:38:47 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 04:38:47 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 04:38:47 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 04:38:47 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 04:38:47 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.20 [Pipeline] echo 04:38:47 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 04:38:47 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 04:38:47 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 04:38:47 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 04:38:47 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 04:38:47 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 04:38:47 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 04:38:47 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 04:38:47 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 04:38:47 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 04:38:47 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 04:38:47 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 04:38:47 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 04:38:47 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 04:38:48 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 04:38:48 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 04:38:48 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 04:38:48 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 04:38:48 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 04:38:48 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 04:38:48 [edgeXSetupEnvironment]: set envvar SNYK_DEBUG = false [Pipeline] echo 04:38:48 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-272 [Pipeline] echo 04:38:48 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-272 [Pipeline] echo 04:38:48 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-272 [Pipeline] echo 04:38:48 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 53d571398c6ea370e5c9d1329a3dd23e6e74a13a [Pipeline] echo 04:38:48 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 53d5713 [Pipeline] echo 04:38:48 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 04:38:48 provisioning config files... 04:38:48 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-272@tmp/config7602801096025678514tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 04:38:48 ---> docker-login.sh 04:38:48 nexus3.edgexfoundry.org:10001 04:38:48 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:38:48 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:38:48 Configure a credential helper to remove this warning. See 04:38:48 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:38:48 04:38:48 Login Succeeded 04:38:48 nexus3.edgexfoundry.org:10002 04:38:48 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:38:49 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:38:49 Configure a credential helper to remove this warning. See 04:38:49 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:38:49 04:38:49 Login Succeeded 04:38:49 nexus3.edgexfoundry.org:10003 04:38:49 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:38:49 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:38:49 Configure a credential helper to remove this warning. See 04:38:49 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:38:49 04:38:49 Login Succeeded 04:38:49 nexus3.edgexfoundry.org:10004 04:38:49 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:38:49 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:38:49 Configure a credential helper to remove this warning. See 04:38:49 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:38:49 04:38:49 Login Succeeded 04:38:49 docker.io 04:38:49 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:38:49 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:38:49 Configure a credential helper to remove this warning. See 04:38:49 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:38:49 04:38:49 Login Succeeded 04:38:49 ---> docker-login.sh ends [Pipeline] } 04:38:49 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 04:38:50 + git rev-list -1 --merges 53d571398c6ea370e5c9d1329a3dd23e6e74a13a~1..53d571398c6ea370e5c9d1329a3dd23e6e74a13a [Pipeline] echo 04:38:50 -----------> git rev-list -1 --merges 53d571398c6ea370e5c9d1329a3dd23e6e74a13a~1..53d571398c6ea370e5c9d1329a3dd23e6e74a13a 53d571398c6ea370e5c9d1329a3dd23e6e74a13a [false] [Pipeline] sh 04:38:50 + git log --format=format:%s -1 53d571398c6ea370e5c9d1329a3dd23e6e74a13a [Pipeline] echo 04:38:50 ========================================================= 04:38:50 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 04:38:50 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 04:38:50 + git log --format=format:%s -1 53d571398c6ea370e5c9d1329a3dd23e6e74a13a [Pipeline] echo 04:38:50 [semverPrep] GIT_COMMIT: 53d571398c6ea370e5c9d1329a3dd23e6e74a13a, Commit Message: build(deps): bump sdk to 3.0.0-dev.54 [Pipeline] echo 04:38:50 [semverPrep] This is not a build commit. [Pipeline] sh 04:38:51 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 04:38:51 + grep -v github /etc/ssh/ssh_known_hosts 04:38:51 + [ -e /tmp/ssh_known_hosts ] 04:38:51 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 04:38:51 + sudo tee -a /etc/ssh/ssh_known_hosts 04:38:51 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 04:38:51 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:38:51 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 04:38:51 04:38:51 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:38:51 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 04:38:51 0.1.4: Pulling from edgex-devops/py-git-semver 04:38:51 b85a868b505f: Pulling fs layer 04:38:51 e2be974225ed: Pulling fs layer 04:38:51 339a4e72a1f5: Pulling fs layer 04:38:51 988bab9f4d93: Pulling fs layer 04:38:51 1469e6f7b9e6: Pulling fs layer 04:38:51 eaf3925da568: Pulling fs layer 04:38:51 bab4dde63d76: Pulling fs layer 04:38:51 bde34c3a00c8: Pulling fs layer 04:38:51 1469e6f7b9e6: Waiting 04:38:51 bab4dde63d76: Waiting 04:38:51 eaf3925da568: Waiting 04:38:51 bde34c3a00c8: Waiting 04:38:51 b352a97aabf1: Pulling fs layer 04:38:51 4872d77fe225: Pulling fs layer 04:38:51 5851b861e8e6: Pulling fs layer 04:38:51 b352a97aabf1: Waiting 04:38:51 4872d77fe225: Waiting 04:38:51 5851b861e8e6: Waiting 04:38:51 e2be974225ed: Verifying Checksum 04:38:51 e2be974225ed: Download complete 04:38:51 988bab9f4d93: Verifying Checksum 04:38:51 988bab9f4d93: Download complete 04:38:52 1469e6f7b9e6: Verifying Checksum 04:38:52 1469e6f7b9e6: Download complete 04:38:52 339a4e72a1f5: Verifying Checksum 04:38:52 339a4e72a1f5: Download complete 04:38:52 eaf3925da568: Download complete 04:38:52 bde34c3a00c8: Download complete 04:38:52 b352a97aabf1: Verifying Checksum 04:38:52 b352a97aabf1: Download complete 04:38:52 4872d77fe225: Verifying Checksum 04:38:52 4872d77fe225: Download complete 04:38:52 5851b861e8e6: Download complete 04:38:52 b85a868b505f: Verifying Checksum 04:38:52 b85a868b505f: Download complete 04:38:52 bab4dde63d76: Verifying Checksum 04:38:52 bab4dde63d76: Download complete 04:38:53 b85a868b505f: Pull complete 04:38:53 e2be974225ed: Pull complete 04:38:54 339a4e72a1f5: Pull complete 04:38:54 988bab9f4d93: Pull complete 04:38:54 1469e6f7b9e6: Pull complete 04:38:54 eaf3925da568: Pull complete 04:38:56 bab4dde63d76: Pull complete 04:38:56 bde34c3a00c8: Pull complete 04:38:56 b352a97aabf1: Pull complete 04:38:56 4872d77fe225: Pull complete 04:38:56 5851b861e8e6: Pull complete 04:38:56 Digest: sha256:59a28aa3b44c0bc56b9c3d2e9ecabe42e63693d939cc6e425eb8786f29f663d8 04:38:56 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 04:38:56 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 04:38:57 prd-ubuntu20.04-docker-8c-8g-4721 does not seem to be running inside a container 04:38:57 $ 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 ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 cat 04:38:59 $ docker top 777f4fb70dbc0c5f137775138043684c625d5bd3238ae841dfa6d29d53831de4 -eo pid,comm 04:38:59 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:38:59 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 04:38:59 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 04:38:59 [ssh-agent] Looking for ssh-agent implementation... 04:38:59 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 04:38:59 $ docker exec 777f4fb70dbc0c5f137775138043684c625d5bd3238ae841dfa6d29d53831de4 ssh-agent 04:39:00 SSH_AUTH_SOCK=/tmp/ssh-eoThUbsLP82u/agent.32 04:39:00 SSH_AGENT_PID=38 04:39:00 Running ssh-add (command line suppressed) 04:39:00 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-272@tmp/private_key_17093890592623867183.key (/w/workspace/gexfoundry_device-rest-go_PR-272@tmp/private_key_17093890592623867183.key) 04:39:00 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 04:39:00 + git tag --points-at HEAD [Pipeline] } 04:39:00 $ docker exec --env ******** --env ******** 777f4fb70dbc0c5f137775138043684c625d5bd3238ae841dfa6d29d53831de4 ssh-agent -k 04:39:00 unset SSH_AUTH_SOCK; 04:39:00 unset SSH_AGENT_PID; 04:39:00 echo Agent pid 38 killed; 04:39:00 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 04:39:00 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 04:39:00 [ssh-agent] Looking for ssh-agent implementation... 04:39:00 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 04:39:00 $ docker exec 777f4fb70dbc0c5f137775138043684c625d5bd3238ae841dfa6d29d53831de4 ssh-agent 04:39:00 SSH_AUTH_SOCK=/tmp/ssh-fs4NpPFalfHT/agent.70 04:39:00 SSH_AGENT_PID=77 04:39:00 Running ssh-add (command line suppressed) 04:39:00 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-272@tmp/private_key_10714199016909719989.key (/w/workspace/gexfoundry_device-rest-go_PR-272@tmp/private_key_10714199016909719989.key) 04:39:00 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 04:39:01 + git semver init 04:39:01 2023-03-21 04:39:01,478 [run_init] DEBUG init version:0.0.0 force:False 04:39:01 2023-03-21 04:39:01,479 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/gexfoundry_device-rest-go_PR-272/.semver 04:39:01 2023-03-21 04:39:01,480 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-rest-go.git /w/workspace/gexfoundry_device-rest-go_PR-272/.semver 04:39:01 2023-03-21 04:39:01,480 [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:39:04 2023-03-21 04:39:04,326 [append_file] DEBUG append to file:/w/workspace/gexfoundry_device-rest-go_PR-272/.git/info/exclude 04:39:04 2023-03-21 04:39:04,326 [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:39:04 2023-03-21 04:39:04,326 [write_file] DEBUG write to file:/w/workspace/gexfoundry_device-rest-go_PR-272/.semver/PR-272 04:39:04 2023-03-21 04:39:04,330 [execute] INFO git cat-file --batch-check 04:39:04 2023-03-21 04:39:04,330 [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:39:04 2023-03-21 04:39:04,336 [execute] INFO git cat-file --batch 04:39:04 2023-03-21 04:39:04,336 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-272/.semver, universal_newlines=False, shell=None, istream=) 04:39:04 2023-03-21 04:39:04,341 [read_version] DEBUG read version from /w/workspace/gexfoundry_device-rest-go_PR-272/.semver/PR-272 04:39:04 0.0.0 [Pipeline] } 04:39:04 $ docker exec --env ******** --env ******** 777f4fb70dbc0c5f137775138043684c625d5bd3238ae841dfa6d29d53831de4 ssh-agent -k 04:39:04 unset SSH_AUTH_SOCK; 04:39:04 unset SSH_AGENT_PID; 04:39:04 echo Agent pid 77 killed; 04:39:04 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 04:39:05 + git semver [Pipeline] } 04:39:05 $ docker stop --time=1 777f4fb70dbc0c5f137775138043684c625d5bd3238ae841dfa6d29d53831de4 04:39:06 $ docker rm -f --volumes 777f4fb70dbc0c5f137775138043684c625d5bd3238ae841dfa6d29d53831de4 [Pipeline] // withDockerContainer [Pipeline] sh 04:39:07 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 04:39:07 Stashed 1 file(s) [Pipeline] echo 04:39:07 [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:39:07 provisioning config files... 04:39:07 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-272@tmp/config13569632301622579999tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 04:39:07 ---> docker-login.sh 04:39:07 nexus3.edgexfoundry.org:10001 04:39:07 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:39:07 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:39:07 Configure a credential helper to remove this warning. See 04:39:07 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:39:07 04:39:07 Login Succeeded 04:39:07 nexus3.edgexfoundry.org:10002 04:39:07 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:39:07 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:39:07 Configure a credential helper to remove this warning. See 04:39:07 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:39:07 04:39:07 Login Succeeded 04:39:07 nexus3.edgexfoundry.org:10003 04:39:07 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:39:07 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:39:07 Configure a credential helper to remove this warning. See 04:39:07 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:39:07 04:39:07 Login Succeeded 04:39:07 nexus3.edgexfoundry.org:10004 04:39:07 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:39:07 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:39:07 Configure a credential helper to remove this warning. See 04:39:07 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:39:07 04:39:07 Login Succeeded 04:39:07 docker.io 04:39:08 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:39:08 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:39:08 Configure a credential helper to remove this warning. See 04:39:08 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:39:08 04:39:08 Login Succeeded 04:39:08 ---> docker-login.sh ends [Pipeline] } 04:39:08 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 04:39:08 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 04:39:08 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 04:39:08 ========================================================= 04:39:08 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine] 04:39:08 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:39:08 + 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:39:08 Sending build context to Docker daemon 10.86MB 04:39:08 Step 1/12 : ARG BASE=golang:1.20-alpine3.17 04:39:08 Step 2/12 : FROM ${BASE} AS builder 04:39:08 1.20-alpine: Pulling from edgex-devops/edgex-golang-base 04:39:08 63b65145d645: Pulling fs layer 04:39:08 a2d21d5440eb: Pulling fs layer 04:39:08 935e6c44a52c: Pulling fs layer 04:39:08 94cc34f8dd06: Pulling fs layer 04:39:08 30dea6a524f1: Pulling fs layer 04:39:08 a2aff8979fd8: Pulling fs layer 04:39:08 6808be2612f2: Pulling fs layer 04:39:08 f25807f1079a: Pulling fs layer 04:39:08 94cc34f8dd06: Waiting 04:39:08 30dea6a524f1: Waiting 04:39:08 a2aff8979fd8: Waiting 04:39:08 6808be2612f2: Waiting 04:39:08 f25807f1079a: Waiting 04:39:08 a2d21d5440eb: Verifying Checksum 04:39:08 a2d21d5440eb: Download complete 04:39:08 94cc34f8dd06: Verifying Checksum 04:39:08 94cc34f8dd06: Download complete 04:39:08 30dea6a524f1: Verifying Checksum 04:39:08 30dea6a524f1: Download complete 04:39:08 63b65145d645: Verifying Checksum 04:39:08 63b65145d645: Download complete 04:39:08 a2aff8979fd8: Verifying Checksum 04:39:08 a2aff8979fd8: Download complete 04:39:08 63b65145d645: Pull complete 04:39:09 a2d21d5440eb: Pull complete 04:39:09 f25807f1079a: Verifying Checksum 04:39:09 f25807f1079a: Download complete 04:39:09 935e6c44a52c: Verifying Checksum 04:39:09 935e6c44a52c: Download complete 04:39:09 6808be2612f2: Verifying Checksum 04:39:09 6808be2612f2: Download complete 04:39:13 935e6c44a52c: Pull complete 04:39:13 94cc34f8dd06: Pull complete 04:39:13 30dea6a524f1: Pull complete 04:39:13 a2aff8979fd8: Pull complete 04:39:15 6808be2612f2: Pull complete 04:39:16 f25807f1079a: Pull complete 04:39:16 Digest: sha256:106942793af8b5907f587008084bb0888cadbc76d86ebd37d4d3227fb0f1e438 04:39:16 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine 04:39:16 ---> 3b553350e43f 04:39:16 Step 3/12 : ARG ADD_BUILD_TAGS="" 04:39:19 ---> Running in 8ac7b820ea42 04:39:19 Removing intermediate container 8ac7b820ea42 04:39:19 ---> bb16653d644a 04:39:19 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 04:39:19 ---> Running in 17047b5b424d 04:39:19 Removing intermediate container 17047b5b424d 04:39:19 ---> c7b8e992090e 04:39:19 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 04:39:19 ---> Running in 7cfcb11a054c 04:39:19 Removing intermediate container 7cfcb11a054c 04:39:19 ---> 49a497933d36 04:39:19 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 04:39:19 ---> Running in 700c30d2f9f2 04:39:19 Removing intermediate container 700c30d2f9f2 04:39:19 ---> 5f6916e70eb5 04:39:19 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 04:39:20 ---> Running in f13c1428e6ec 04:39:20 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 04:39:20 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 04:39:20 (1/4) Installing openssh-keygen (9.1_p1-r2) 04:39:20 (2/4) Installing libedit (20221030.3.1-r0) 04:39:20 (3/4) Installing openssh-client-common (9.1_p1-r2) 04:39:20 (4/4) Installing openssh-client-default (9.1_p1-r2) 04:39:20 Executing busybox-1.35.0-r29.trigger 04:39:20 OK: 269 MiB in 57 packages 04:39:21 Removing intermediate container f13c1428e6ec 04:39:21 ---> 81009f2d8870 04:39:21 Step 8/12 : WORKDIR /device-rest-go 04:39:21 ---> Running in b8ea71bd00c0 04:39:21 Removing intermediate container b8ea71bd00c0 04:39:21 ---> 55a02943b821 04:39:21 Step 9/12 : COPY go.mod vendor* ./ 04:39:21 ---> 4fa5b79c0794 04:39:21 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 04:39:21 ---> Running in cfa99a2a3993 04:39:22 Still waiting to schedule task 04:39:22 ‘prd-ubuntu20.04-docker-arm64-4c-16g-4720’ is offline 04:40:17 Removing intermediate container cfa99a2a3993 04:40:17 ---> 12afc9940656 04:40:17 Step 11/12 : COPY . . 04:40:17 ---> 291d0285580b 04:40:17 Step 12/12 : RUN $MAKE 04:40:17 ---> Running in ef8d1da0af0d 04:40:17 noop 04:40:17 Removing intermediate container ef8d1da0af0d 04:40:17 ---> 99b587193abd 04:40:17 Successfully built 99b587193abd 04:40:17 Successfully tagged ci-base-image-x86_64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:40:17 + docker inspect -f . ci-base-image-x86_64 04:40:17 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 04:40:17 prd-ubuntu20.04-docker-8c-8g-4721 does not seem to be running inside a container 04:40:17 $ 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 ******** -e ******** ci-base-image-x86_64 cat 04:40:18 $ docker top 87c255eaada6610b1ea28ac8dae1a498194bd5429ed862cb2b538eaacc6577d7 -eo pid,comm [Pipeline] { [Pipeline] sh 04:40:18 + go version 04:40:18 go version go1.20.2 linux/amd64 [Pipeline] } 04:40:18 $ docker stop --time=1 87c255eaada6610b1ea28ac8dae1a498194bd5429ed862cb2b538eaacc6577d7 04:40:19 $ docker rm -f --volumes 87c255eaada6610b1ea28ac8dae1a498194bd5429ed862cb2b538eaacc6577d7 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:40:20 + docker inspect -f . ci-base-image-x86_64 04:40:20 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 04:40:20 prd-ubuntu20.04-docker-8c-8g-4721 does not seem to be running inside a container 04:40:20 $ 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 ******** -e ******** ci-base-image-x86_64 cat 04:40:20 $ docker top b433305430a99bad074e8f925e98e14d0fc59329cbfd72733e9813c0c88df3dd -eo pid,comm [Pipeline] { [Pipeline] sh 04:40:21 + git config --global --add safe.directory /w/workspace/gexfoundry_device-rest-go_PR-272 [Pipeline] fileExists [Pipeline] sh 04:40:21 + make test 04:40:21 go test ./... -coverprofile=coverage.out ./... 04:40:25 ? github.com/edgexfoundry/device-rest-go [no test files] 04:40:35 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 04:40:35 ok github.com/edgexfoundry/device-rest-go/driver 0.010s coverage: 33.0% of statements 04:40:39 go vet ./... 04:40:43 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 04:40:43 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 04:40:43 ./bin/test-attribution-txt.sh [Pipeline] echo 04:40:43 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 04:40:43 $ docker stop --time=1 b433305430a99bad074e8f925e98e14d0fc59329cbfd72733e9813c0c88df3dd 04:40:46 $ docker rm -f --volumes b433305430a99bad074e8f925e98e14d0fc59329cbfd72733e9813c0c88df3dd [Pipeline] // withDockerContainer [Pipeline] sh 04:40:46 + sudo chown -R jenkins:jenkins . [Pipeline] stash 04:40:46 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 04:40:47 + sudo chown -R jenkins:jenkins . [Pipeline] sh 04:40:47 + ls -al . 04:40:47 total 184 04:40:47 drwxrwxr-x 9 jenkins jenkins 4096 Mar 21 04:40 . 04:40:47 drwxrwxr-x 4 jenkins jenkins 4096 Mar 21 04:38 .. 04:40:47 -rw-rw-r-- 1 jenkins jenkins 151 Mar 21 04:38 .dockerignore 04:40:47 drwxrwxr-x 8 jenkins jenkins 4096 Mar 21 04:39 .git 04:40:47 drwxrwxr-x 3 jenkins jenkins 4096 Mar 21 04:38 .github 04:40:47 -rw-rw-r-- 1 jenkins jenkins 329 Mar 21 04:38 .gitignore 04:40:47 -rw-rw-r-- 1 jenkins jenkins 41 Mar 21 04:38 .golangci.yml 04:40:47 drwxr-xr-x 3 jenkins jenkins 4096 Mar 21 04:39 .semver 04:40:47 -rw-rw-r-- 1 jenkins jenkins 9321 Mar 21 04:38 Attribution.txt 04:40:47 -rw-rw-r-- 1 jenkins jenkins 13085 Mar 21 04:38 CHANGELOG.md 04:40:47 -rw-rw-r-- 1 jenkins jenkins 1578 Mar 21 04:38 Dockerfile 04:40:47 -rw-rw-r-- 1 jenkins jenkins 677 Mar 21 04:38 GOVERNANCE.md 04:40:47 -rw-rw-r-- 1 jenkins jenkins 680 Mar 21 04:38 Jenkinsfile 04:40:47 -rw-rw-r-- 1 jenkins jenkins 11340 Mar 21 04:38 LICENSE 04:40:47 -rw-rw-r-- 1 jenkins jenkins 1779 Mar 21 04:38 Makefile 04:40:47 -rw-rw-r-- 1 jenkins jenkins 620 Mar 21 04:38 OWNERS.md 04:40:47 -rw-rw-r-- 1 jenkins jenkins 15447 Mar 21 04:38 README.md 04:40:47 -rw-rw-r-- 1 jenkins jenkins 5 Mar 21 04:39 VERSION 04:40:47 drwxrwxr-x 2 jenkins jenkins 4096 Mar 21 04:38 bin 04:40:47 drwxrwxr-x 3 jenkins jenkins 4096 Mar 21 04:38 cmd 04:40:47 -rw-r--r-- 1 jenkins jenkins 14200 Mar 21 04:40 coverage.out 04:40:47 drwxrwxr-x 2 jenkins jenkins 4096 Mar 21 04:38 driver 04:40:47 -rw-rw-r-- 1 jenkins jenkins 3446 Mar 21 04:38 go.mod 04:40:47 -rw-rw-r-- 1 jenkins jenkins 31299 Mar 21 04:38 go.sum 04:40:47 drwxrwxr-x 4 jenkins jenkins 4096 Mar 21 04:38 snap 04:40:47 -rw-rw-r-- 1 jenkins jenkins 713 Mar 21 04:38 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:40:47 + 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=53d571398c6ea370e5c9d1329a3dd23e6e74a13a --label arch=amd64 --label version=0.0.0 . 04:40:47 Sending build context to Docker daemon 10.88MB 04:40:47 Step 1/25 : ARG BASE=golang:1.20-alpine3.17 04:40:47 Step 2/25 : FROM ${BASE} AS builder 04:40:47 ---> 99b587193abd 04:40:47 Step 3/25 : ARG ADD_BUILD_TAGS="" 04:40:48 ---> Running in 88ca9d29fdcb 04:40:48 Removing intermediate container 88ca9d29fdcb 04:40:48 ---> af954b03feb5 04:40:48 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 04:40:48 ---> Running in e14770c5a0e1 04:40:48 Removing intermediate container e14770c5a0e1 04:40:48 ---> c0122a431694 04:40:48 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 04:40:48 ---> Running in 33853a4d2c82 04:40:48 Removing intermediate container 33853a4d2c82 04:40:48 ---> dbe492202428 04:40:48 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 04:40:48 ---> Running in 5a51a84de183 04:40:48 Removing intermediate container 5a51a84de183 04:40:48 ---> 5deb91680789 04:40:48 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 04:40:48 ---> Running in 05cd341f353b 04:40:48 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 04:40:48 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 04:40:49 OK: 269 MiB in 57 packages 04:40:49 Removing intermediate container 05cd341f353b 04:40:49 ---> 46ffc614eb9f 04:40:49 Step 8/25 : WORKDIR /device-rest-go 04:40:49 ---> Running in 5988ed219600 04:40:49 Removing intermediate container 5988ed219600 04:40:49 ---> 2c27d4362d56 04:40:49 Step 9/25 : COPY go.mod vendor* ./ 04:40:49 ---> 70a1430713ab 04:40:49 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 04:40:49 ---> Running in e95ad93befef 04:40:50 Removing intermediate container e95ad93befef 04:40:50 ---> 5d840f8d1af7 04:40:50 Step 11/25 : COPY . . 04:40:50 ---> 47b373ae4dfa 04:40:50 Step 12/25 : RUN $MAKE 04:40:50 ---> Running in 201ec11bf8f5 04:40:50 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:40:54 Running on prd-ubuntu20.04-docker-arm64-4c-16g-4722 in /w/workspace/gexfoundry_device-rest-go_PR-272 [Pipeline] { [Pipeline] ws 04:40:54 Running in /w/workspace/device-rest-go/3 [Pipeline] { [Pipeline] checkout 04:40:54 The recommended git tool is: git 04:40:59 using credential edgex-jenkins-ssh 04:40:59 Cloning the remote Git repository 04:40:59 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 04:40:59 > git init /w/workspace/device-rest-go/3 # timeout=10 04:40:59 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 04:40:59 > git --version # timeout=10 04:40:59 > git --version # 'git version 2.25.1' 04:40:59 using GIT_SSH to set credentials SSH Credentials for GitHub 04:40:59 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 04:41:04 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 04:41:04 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 04:41:05 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 04:41:05 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 04:41:05 using GIT_SSH to set credentials SSH Credentials for GitHub 04:41:05 > 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:41:05 Merging remotes/origin/main commit 2ded8c8301fa9285dc80bb471c5f0972abc0b73a into PR head commit 53d571398c6ea370e5c9d1329a3dd23e6e74a13a 04:41:06 Merge succeeded, producing 53d571398c6ea370e5c9d1329a3dd23e6e74a13a 04:41:06 Checking out Revision 53d571398c6ea370e5c9d1329a3dd23e6e74a13a (PR-272) 04:41:05 > git config core.sparsecheckout # timeout=10 04:41:05 > git checkout -f 53d571398c6ea370e5c9d1329a3dd23e6e74a13a # timeout=10 04:41:05 > git remote # timeout=10 04:41:05 > git config --get remote.origin.url # timeout=10 04:41:06 using GIT_SSH to set credentials SSH Credentials for GitHub 04:41:06 > git merge 2ded8c8301fa9285dc80bb471c5f0972abc0b73a # timeout=10 04:41:06 > git rev-parse HEAD^{commit} # timeout=10 04:41:06 > git config core.sparsecheckout # timeout=10 04:41:06 > git checkout -f 53d571398c6ea370e5c9d1329a3dd23e6e74a13a # timeout=10 04:41:09 Removing intermediate container 201ec11bf8f5 04:41:09 ---> b6537c73c084 04:41:09 Step 13/25 : FROM alpine:3.17 04:41:09 Commit message: "build(deps): bump sdk to 3.0.0-dev.54" 04:41:09 3.17: Pulling from library/alpine 04:41:09 63b65145d645: Already exists 04:41:09 Digest: sha256:ff6bdca1701f3a8a67e328815ff2346b0e4067d32ec36b7992c1fdc001dc8517 04:41:09 Status: Downloaded newer image for alpine:3.17 04:41:09 ---> b2aa39c304c2 04:41:09 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 04:41:09 ---> Running in 5dd2ecc24c77 04:41:09 Removing intermediate container 5dd2ecc24c77 04:41:09 ---> a82524934564 04:41:09 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 04:41:09 ---> Running in 44e11c819d4d 04:41:09 Removing intermediate container 44e11c819d4d 04:41:09 ---> 3efab6c03b8f 04:41:09 Step 16/25 : RUN apk add --update --no-cache dumb-init 04:41:09 ---> Running in 014bd8549111 [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 04:41:10 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 04:41:10 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 04:41:10 (1/1) Installing dumb-init (1.2.5-r2) 04:41:10 Executing busybox-1.35.0-r29.trigger 04:41:10 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 04:41:10 % Total % Received % Xferd Average Speed Time Time Time Current 04:41:10 Dload Upload Total Spent Left Speed 04:41:10 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 12751 100 12751 0 0 90432 0 --:--:-- --:--:-- --:--:-- 91078 04:41:10 OK: 7 MiB in 16 packages 04:41:10 Removing intermediate container 014bd8549111 04:41:10 ---> 44f0784c6387 04:41:10 Step 17/25 : COPY --from=builder /device-rest-go/cmd / [Pipeline] sh 04:41:11 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 04:41:11 ---> 5bfe3e9a6c2d 04:41:11 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 04:41:11 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 04:41:11 + sudo tee /etc/docker/daemon.new 04:41:11 { 04:41:11 "registry-mirrors": [ 04:41:11 "https://nexus3.edgexfoundry.org:10001" 04:41:11 ], 04:41:11 "bip": "10.250.0.254/24", 04:41:11 "hosts": [ 04:41:11 "tcp://0.0.0.0:5555", 04:41:11 "unix:///var/run/docker.sock" 04:41:11 ], 04:41:11 "mtu": 1458, 04:41:11 "selinux-enabled": true, 04:41:11 "seccomp-profile": "/etc/docker/seccomp.json" 04:41:11 } [Pipeline] sh 04:41:11 ---> f2dce9356a69 04:41:11 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 04:41:11 ---> 903950c2dcf6 04:41:11 Step 20/25 : EXPOSE 59986 04:41:11 ---> Running in 5bf44558ca58 04:41:11 Removing intermediate container 5bf44558ca58 04:41:11 ---> 35e9d0f2d10f 04:41:11 Step 21/25 : ENTRYPOINT ["/device-rest"] 04:41:11 ---> Running in 04e955d67c1d 04:41:11 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 04:41:11 Removing intermediate container 04e955d67c1d 04:41:11 ---> c9eaa6934d2c 04:41:11 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 04:41:11 ---> Running in a1cc02c30859 04:41:11 Removing intermediate container a1cc02c30859 04:41:11 ---> 4b7f189c6f47 04:41:11 Step 23/25 : LABEL arch=amd64 04:41:11 ---> Running in ea187fea3a65 04:41:11 Removing intermediate container ea187fea3a65 04:41:11 ---> 4088638125f2 04:41:11 Step 24/25 : LABEL git_sha=53d571398c6ea370e5c9d1329a3dd23e6e74a13a 04:41:11 ---> Running in fc0a8ce75182 04:41:12 Removing intermediate container fc0a8ce75182 04:41:12 ---> 457504e60b3c 04:41:12 Step 25/25 : LABEL version=0.0.0 04:41:12 ---> Running in 6902c5339f1c 04:41:12 Removing intermediate container 6902c5339f1c 04:41:12 ---> 08b33a94facb 04:41:12 [Warning] One or more build-args [ARCH] were not consumed 04:41:12 Successfully built 08b33a94facb 04:41:12 Successfully tagged device-rest:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } 04:41:12 + sudo service docker restart [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:41:12 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 04:41:12 04:41:12 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:41:13 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 04:41:13 latest: Pulling from edgex-lftools-log-publisher 04:41:13 5eb5b503b376: Pulling fs layer 04:41:13 5c69ac0246d0: Pulling fs layer 04:41:13 ec43610c2a17: Pulling fs layer 04:41:13 3a2ae6a8a46f: Pulling fs layer 04:41:13 33b1e0a273af: Pulling fs layer 04:41:13 5d3b04190fa2: Pulling fs layer 04:41:13 2f39f015ded8: Pulling fs layer 04:41:13 33b1e0a273af: Waiting 04:41:13 5d3b04190fa2: Waiting 04:41:13 2f39f015ded8: Waiting 04:41:13 3a2ae6a8a46f: Waiting 04:41:13 5c69ac0246d0: Verifying Checksum 04:41:13 5c69ac0246d0: Download complete 04:41:13 3a2ae6a8a46f: Verifying Checksum 04:41:13 3a2ae6a8a46f: Download complete 04:41:13 ec43610c2a17: Verifying Checksum 04:41:13 ec43610c2a17: Download complete 04:41:13 33b1e0a273af: Verifying Checksum 04:41:13 33b1e0a273af: Download complete 04:41:13 5d3b04190fa2: Verifying Checksum 04:41:13 5d3b04190fa2: Download complete 04:41:13 5eb5b503b376: Download complete 04:41:13 2f39f015ded8: Download complete 04:41:14 5eb5b503b376: Pull complete 04:41:14 5c69ac0246d0: Pull complete 04:41:14 ec43610c2a17: Pull complete 04:41:14 3a2ae6a8a46f: Pull complete 04:41:15 33b1e0a273af: Pull complete 04:41:15 5d3b04190fa2: Pull complete 04:41:19 2f39f015ded8: Pull complete 04:41:19 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 04:41:19 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 04:41:19 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 04:41:19 prd-ubuntu20.04-docker-8c-8g-4721 does not seem to be running inside a container 04:41:19 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/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 ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 04:41:23 $ docker top e303b41fcac8553dd24de7236bbf8833b39da997afcf96926d8a69c44e7afe36 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 04:41:23 ---> job-cost.sh 04:41:23 lf-activate-venv: SKIPPING 04:41:23 INFO: No Stack... 04:41:24 INFO: Retrieving Pricing Info for: v3-standard-8 04:41:24 INFO: Archiving Costs [Pipeline] sh 04:41:25 + cat /w/workspace/gexfoundry_device-rest-go_PR-272/archives/cost.csv 04:41:25 + cut -d, -f6 [Pipeline] lock 04:41:25 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-272-3-stack-cost] 04:41:25 Resource [jenkins-edgexfoundry-device-rest-go-PR-272-3-stack-cost] did not exist. Created. 04:41:25 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-272-3-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 04:41:25 + echo total: 0.2199999988079071 [Pipeline] stash 04:41:25 Stashed 1 file(s) [Pipeline] } 04:41:25 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-272-3-stack-cost] [Pipeline] // lock [Pipeline] } 04:41:25 $ docker stop --time=1 e303b41fcac8553dd24de7236bbf8833b39da997afcf96926d8a69c44e7afe36 04:41:26 $ docker rm -f --volumes e303b41fcac8553dd24de7236bbf8833b39da997afcf96926d8a69c44e7afe36 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 04:41:34 provisioning config files... 04:41:34 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/3@tmp/config6621732565573015528tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 04:41:34 ---> docker-login.sh 04:41:34 nexus3.edgexfoundry.org:10001 04:41:35 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:41:35 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:41:35 Configure a credential helper to remove this warning. See 04:41:35 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:41:35 04:41:35 Login Succeeded 04:41:35 nexus3.edgexfoundry.org:10002 04:41:35 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:41:35 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:41:35 Configure a credential helper to remove this warning. See 04:41:35 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:41:35 04:41:35 Login Succeeded 04:41:35 nexus3.edgexfoundry.org:10003 04:41:35 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:41:35 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:41:35 Configure a credential helper to remove this warning. See 04:41:35 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:41:35 04:41:35 Login Succeeded 04:41:36 nexus3.edgexfoundry.org:10004 04:41:36 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:41:36 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:41:36 Configure a credential helper to remove this warning. See 04:41:36 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:41:36 04:41:36 Login Succeeded 04:41:36 docker.io 04:41:36 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:41:36 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:41:36 Configure a credential helper to remove this warning. See 04:41:36 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:41:36 04:41:36 Login Succeeded 04:41:36 ---> docker-login.sh ends [Pipeline] } 04:41:36 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 04:41:36 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 04:41:36 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 04:41:36 ========================================================= 04:41:36 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine] 04:41:36 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:41: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:41:37 Sending build context to Docker daemon 138.8kB 04:41:37 Step 1/12 : ARG BASE=golang:1.20-alpine3.17 04:41:37 Step 2/12 : FROM ${BASE} AS builder 04:41:37 1.20-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 04:41:37 af6eaf76a39c: Pulling fs layer 04:41:37 55522c791124: Pulling fs layer 04:41:37 ce5c4a1c91eb: Pulling fs layer 04:41:37 169dfbe0d373: Pulling fs layer 04:41:37 e1ff8fa3b103: Pulling fs layer 04:41:37 52ebb69f0ebf: Pulling fs layer 04:41:37 5abe8eddf0d5: Pulling fs layer 04:41:37 e1ff8fa3b103: Waiting 04:41:37 52ebb69f0ebf: Waiting 04:41:37 5abe8eddf0d5: Waiting 04:41:37 169dfbe0d373: Waiting 04:41:37 55522c791124: Verifying Checksum 04:41:37 55522c791124: Download complete 04:41:37 169dfbe0d373: Verifying Checksum 04:41:37 169dfbe0d373: Download complete 04:41:37 e1ff8fa3b103: Verifying Checksum 04:41:37 e1ff8fa3b103: Download complete 04:41:37 af6eaf76a39c: Verifying Checksum 04:41:37 af6eaf76a39c: Download complete 04:41:38 af6eaf76a39c: Pull complete 04:41:38 5abe8eddf0d5: Verifying Checksum 04:41:38 5abe8eddf0d5: Download complete 04:41:39 55522c791124: Pull complete 04:41:40 ce5c4a1c91eb: Verifying Checksum 04:41:40 ce5c4a1c91eb: Download complete 04:41:40 52ebb69f0ebf: Verifying Checksum 04:41:40 52ebb69f0ebf: Download complete 04:41:50 ce5c4a1c91eb: Pull complete 04:41:50 169dfbe0d373: Pull complete 04:41:50 e1ff8fa3b103: Pull complete 04:41:57 52ebb69f0ebf: Pull complete 04:41:59 5abe8eddf0d5: Pull complete 04:41:59 Digest: sha256:978cc1420e451f27bd88fdeece3ad01a9109ec773b62f165dfc696fd516b3d8f 04:41:59 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine 04:41:59 ---> 6cb57ee374ae 04:41:59 Step 3/12 : ARG ADD_BUILD_TAGS="" 04:42:00 ---> Running in a295210df671 04:42:01 Removing intermediate container a295210df671 04:42:01 ---> 26c8d9c4a610 04:42:01 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 04:42:01 ---> Running in 226ddc4a8ae3 04:42:01 Removing intermediate container 226ddc4a8ae3 04:42:01 ---> 4631bd5f5680 04:42:01 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 04:42:01 ---> Running in 801835f57975 04:42:01 Removing intermediate container 801835f57975 04:42:01 ---> 31024a72f21e 04:42:01 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 04:42:01 ---> Running in 77b6c78c9da2 04:42:02 Removing intermediate container 77b6c78c9da2 04:42:02 ---> 042d0cfad12a 04:42:02 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 04:42:02 ---> Running in 1555e2961fa2 04:42:03 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 04:42:03 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 04:42:04 (1/4) Installing openssh-keygen (9.1_p1-r2) 04:42:04 (2/4) Installing libedit (20221030.3.1-r0) 04:42:04 (3/4) Installing openssh-client-common (9.1_p1-r2) 04:42:04 (4/4) Installing openssh-client-default (9.1_p1-r2) 04:42:04 Executing busybox-1.35.0-r29.trigger 04:42:04 OK: 268 MiB in 57 packages 04:42:05 Removing intermediate container 1555e2961fa2 04:42:05 ---> 1b88ea7101a1 04:42:05 Step 8/12 : WORKDIR /device-rest-go 04:42:06 ---> Running in ed594391989b 04:42:06 Removing intermediate container ed594391989b 04:42:06 ---> c187427c3671 04:42:06 Step 9/12 : COPY go.mod vendor* ./ 04:42:08 ---> 60a8531b72aa 04:42:08 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 04:42:08 ---> Running in 2e137a0e4e64 04:43:17 Removing intermediate container 2e137a0e4e64 04:43:17 ---> cb8f62d84225 04:43:17 Step 11/12 : COPY . . 04:43:17 ---> 0bf12bb3e396 04:43:17 Step 12/12 : RUN $MAKE 04:43:17 ---> Running in 9eb6e6e3d997 04:43:17 noop 04:43:17 Removing intermediate container 9eb6e6e3d997 04:43:17 ---> 42e5fc7f6bd3 04:43:17 Successfully built 42e5fc7f6bd3 04:43:17 Successfully tagged ci-base-image-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:43:17 + docker inspect -f . ci-base-image-arm64 04:43:17 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 04:43:18 prd-ubuntu20.04-docker-arm64-4c-16g-4722 does not seem to be running inside a container 04:43:18 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/3 -v /w/workspace/device-rest-go/3:/w/workspace/device-rest-go/3:rw,z -v /w/workspace/device-rest-go/3@tmp:/w/workspace/device-rest-go/3@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 ******** -e ******** ci-base-image-arm64 cat 04:43:19 $ docker top 4b0f84959a2f351d4d2aa5a3e8a8ba904bf870c341df55cf7662ac7925222b58 -eo pid,comm [Pipeline] { [Pipeline] sh 04:43:20 + go version 04:43:20 go version go1.20.2 linux/arm64 [Pipeline] } 04:43:20 $ docker stop --time=1 4b0f84959a2f351d4d2aa5a3e8a8ba904bf870c341df55cf7662ac7925222b58 04:43:21 $ docker rm -f --volumes 4b0f84959a2f351d4d2aa5a3e8a8ba904bf870c341df55cf7662ac7925222b58 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:43:22 + docker inspect -f . ci-base-image-arm64 04:43:22 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 04:43:22 prd-ubuntu20.04-docker-arm64-4c-16g-4722 does not seem to be running inside a container 04:43:22 $ 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/3 -v /w/workspace/device-rest-go/3:/w/workspace/device-rest-go/3:rw,z -v /w/workspace/device-rest-go/3@tmp:/w/workspace/device-rest-go/3@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 ******** -e ******** ci-base-image-arm64 cat 04:43:23 $ docker top 371584d97b006e2e2c2f756a910f7b54e1d6eca1cae0c9cdfd8c2f344e59481c -eo pid,comm [Pipeline] { [Pipeline] sh 04:43:24 + git config --global --add safe.directory /w/workspace/device-rest-go/3 [Pipeline] fileExists [Pipeline] sh 04:43:24 + make test 04:43:24 go test ./... -coverprofile=coverage.out ./... 04:43:56 ? github.com/edgexfoundry/device-rest-go [no test files] 04:46:03 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 04:46:03 ok github.com/edgexfoundry/device-rest-go/driver 0.066s coverage: 33.0% of statements 04:46:03 WARNING: Linting skipped (not on x86_64 or linter not installed) 04:46:03 go vet ./... 04:46:30 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 04:46:30 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 04:46:30 ./bin/test-attribution-txt.sh [Pipeline] echo 04:46:30 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 04:46:30 $ docker stop --time=1 371584d97b006e2e2c2f756a910f7b54e1d6eca1cae0c9cdfd8c2f344e59481c 04:46:31 $ docker rm -f --volumes 371584d97b006e2e2c2f756a910f7b54e1d6eca1cae0c9cdfd8c2f344e59481c [Pipeline] // withDockerContainer [Pipeline] sh 04:46:33 + sudo chown -R jenkins:jenkins . [Pipeline] stash 04:46:33 Warning: overwriting stash ‘coverage-report’ 04:46:33 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 04:46:33 + sudo chown -R jenkins:jenkins . [Pipeline] sh 04:46:34 + ls -al . 04:46:34 total 180 04:46:34 drwxrwxr-x 8 jenkins jenkins 4096 Mar 21 04:43 . 04:46:34 drwxrwxr-x 4 jenkins jenkins 4096 Mar 21 04:40 .. 04:46:34 -rw-rw-r-- 1 jenkins jenkins 151 Mar 21 04:41 .dockerignore 04:46:34 drwxrwxr-x 8 jenkins jenkins 4096 Mar 21 04:41 .git 04:46:34 drwxrwxr-x 3 jenkins jenkins 4096 Mar 21 04:41 .github 04:46:34 -rw-rw-r-- 1 jenkins jenkins 329 Mar 21 04:41 .gitignore 04:46:34 -rw-rw-r-- 1 jenkins jenkins 41 Mar 21 04:41 .golangci.yml 04:46:34 -rw-rw-r-- 1 jenkins jenkins 9321 Mar 21 04:41 Attribution.txt 04:46:34 -rw-rw-r-- 1 jenkins jenkins 13085 Mar 21 04:41 CHANGELOG.md 04:46:34 -rw-rw-r-- 1 jenkins jenkins 1578 Mar 21 04:41 Dockerfile 04:46:34 -rw-rw-r-- 1 jenkins jenkins 677 Mar 21 04:41 GOVERNANCE.md 04:46:34 -rw-rw-r-- 1 jenkins jenkins 680 Mar 21 04:41 Jenkinsfile 04:46:34 -rw-rw-r-- 1 jenkins jenkins 11340 Mar 21 04:41 LICENSE 04:46:34 -rw-rw-r-- 1 jenkins jenkins 1779 Mar 21 04:41 Makefile 04:46:34 -rw-rw-r-- 1 jenkins jenkins 620 Mar 21 04:41 OWNERS.md 04:46:34 -rw-rw-r-- 1 jenkins jenkins 15447 Mar 21 04:41 README.md 04:46:34 -rw-rw-r-- 1 jenkins jenkins 5 Mar 21 04:39 VERSION 04:46:34 drwxrwxr-x 2 jenkins jenkins 4096 Mar 21 04:41 bin 04:46:34 drwxrwxr-x 3 jenkins jenkins 4096 Mar 21 04:41 cmd 04:46:34 -rw-r--r-- 1 jenkins jenkins 14200 Mar 21 04:45 coverage.out 04:46:34 drwxrwxr-x 2 jenkins jenkins 4096 Mar 21 04:41 driver 04:46:34 -rw-rw-r-- 1 jenkins jenkins 3446 Mar 21 04:41 go.mod 04:46:34 -rw-rw-r-- 1 jenkins jenkins 31299 Mar 21 04:41 go.sum 04:46:34 drwxrwxr-x 4 jenkins jenkins 4096 Mar 21 04:41 snap 04:46:34 -rw-rw-r-- 1 jenkins jenkins 713 Mar 21 04:41 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:46:34 + 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=53d571398c6ea370e5c9d1329a3dd23e6e74a13a --label arch=arm64 --label version=0.0.0 . 04:46:34 Sending build context to Docker daemon 153.6kB 04:46:34 Step 1/25 : ARG BASE=golang:1.20-alpine3.17 04:46:34 Step 2/25 : FROM ${BASE} AS builder 04:46:34 ---> 42e5fc7f6bd3 04:46:34 Step 3/25 : ARG ADD_BUILD_TAGS="" 04:46:34 ---> Running in 184e3231d011 04:46:35 Removing intermediate container 184e3231d011 04:46:35 ---> 1d3d14627298 04:46:35 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 04:46:35 ---> Running in 1f75e9bb3a69 04:46:35 Removing intermediate container 1f75e9bb3a69 04:46:35 ---> 31db66ec52ef 04:46:35 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 04:46:35 ---> Running in de324595a5a6 04:46:35 Removing intermediate container de324595a5a6 04:46:35 ---> 1e5c891ecef9 04:46:35 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 04:46:35 ---> Running in 019e58553f6f 04:46:35 Removing intermediate container 019e58553f6f 04:46:35 ---> 14d7f89d721f 04:46:35 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 04:46:36 ---> Running in a2e1bc8e43d0 04:46:37 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 04:46:37 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 04:46:38 OK: 268 MiB in 57 packages 04:46:39 Removing intermediate container a2e1bc8e43d0 04:46:39 ---> 10254583422b 04:46:39 Step 8/25 : WORKDIR /device-rest-go 04:46:39 ---> Running in 764c6583a424 04:46:39 Removing intermediate container 764c6583a424 04:46:39 ---> c001e76febe1 04:46:39 Step 9/25 : COPY go.mod vendor* ./ 04:46:40 ---> 49a8cfb5b218 04:46:40 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 04:46:40 ---> Running in f18d669d3a4a 04:46:43 Removing intermediate container f18d669d3a4a 04:46:43 ---> 818262d78621 04:46:43 Step 11/25 : COPY . . 04:46:44 ---> aa86b9ac1bfd 04:46:44 Step 12/25 : RUN $MAKE 04:46:44 ---> Running in 68761084d0d7 04:46:45 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:48:52 Removing intermediate container 68761084d0d7 04:48:52 ---> cc716f9102cc 04:48:52 Step 13/25 : FROM alpine:3.17 04:48:52 3.17: Pulling from library/alpine 04:48:52 af6eaf76a39c: Already exists 04:48:52 Digest: sha256:ff6bdca1701f3a8a67e328815ff2346b0e4067d32ec36b7992c1fdc001dc8517 04:48:52 Status: Downloaded newer image for alpine:3.17 04:48:52 ---> d74e625d9115 04:48:52 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 04:48:52 ---> Running in 774cbb213e48 04:48:52 Removing intermediate container 774cbb213e48 04:48:52 ---> 568f593ac39a 04:48:52 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 04:48:52 ---> Running in ed3a5cc372b8 04:48:52 Removing intermediate container ed3a5cc372b8 04:48:52 ---> e400c119bb9c 04:48:52 Step 16/25 : RUN apk add --update --no-cache dumb-init 04:48:52 ---> Running in ac4d5a622037 04:48:52 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 04:48:52 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 04:48:52 (1/1) Installing dumb-init (1.2.5-r2) 04:48:52 Executing busybox-1.35.0-r29.trigger 04:48:52 OK: 8 MiB in 16 packages 04:48:52 Removing intermediate container ac4d5a622037 04:48:52 ---> 39188d1aa7fa 04:48:52 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 04:48:53 ---> 177eca3eaada 04:48:53 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 04:48:53 ---> 555c01542437 04:48:53 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 04:48:54 ---> e6e8eafe8284 04:48:54 Step 20/25 : EXPOSE 59986 04:48:54 ---> Running in b0b851fb9d89 04:48:54 Removing intermediate container b0b851fb9d89 04:48:54 ---> c35eb7977ae4 04:48:54 Step 21/25 : ENTRYPOINT ["/device-rest"] 04:48:54 ---> Running in 838c78319acd 04:48:54 Removing intermediate container 838c78319acd 04:48:54 ---> 6dcaed18eff0 04:48:54 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 04:48:54 ---> Running in d2a5126d5da8 04:48:55 Removing intermediate container d2a5126d5da8 04:48:55 ---> 21501e13f70a 04:48:55 Step 23/25 : LABEL arch=arm64 04:48:55 ---> Running in 854cf11d8398 04:48:55 Removing intermediate container 854cf11d8398 04:48:55 ---> 09cbfca119eb 04:48:55 Step 24/25 : LABEL git_sha=53d571398c6ea370e5c9d1329a3dd23e6e74a13a 04:48:55 ---> Running in 185a3028719b 04:48:56 Removing intermediate container 185a3028719b 04:48:56 ---> a2a0dbf08822 04:48:56 Step 25/25 : LABEL version=0.0.0 04:48:56 ---> Running in bcc682ac179c 04:48:56 Removing intermediate container bcc682ac179c 04:48:56 ---> 151f050492ec 04:48:56 [Warning] One or more build-args [ARCH] were not consumed 04:48:56 Successfully built 151f050492ec 04:48:56 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 04:48:56 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 04:48:56 04:48:56 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:48:57 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 04:48:57 arm64: Pulling from edgex-lftools-log-publisher 04:48:57 8998bd30e6a1: Pulling fs layer 04:48:57 04944245beec: Pulling fs layer 04:48:57 699f458cf7ca: Pulling fs layer 04:48:57 765212b225bb: Pulling fs layer 04:48:57 f23df028b6ca: Pulling fs layer 04:48:57 d65c8cfc05b1: Pulling fs layer 04:48:57 2437ff75d9bd: Pulling fs layer 04:48:57 765212b225bb: Waiting 04:48:57 2437ff75d9bd: Waiting 04:48:57 04944245beec: Verifying Checksum 04:48:57 04944245beec: Download complete 04:48:57 765212b225bb: Verifying Checksum 04:48:57 765212b225bb: Download complete 04:48:57 f23df028b6ca: Verifying Checksum 04:48:57 f23df028b6ca: Download complete 04:48:57 d65c8cfc05b1: Verifying Checksum 04:48:57 d65c8cfc05b1: Download complete 04:48:57 699f458cf7ca: Verifying Checksum 04:48:57 699f458cf7ca: Download complete 04:48:57 8998bd30e6a1: Verifying Checksum 04:48:57 8998bd30e6a1: Download complete 04:48:59 2437ff75d9bd: Verifying Checksum 04:48:59 2437ff75d9bd: Download complete 04:49:01 8998bd30e6a1: Pull complete 04:49:02 04944245beec: Pull complete 04:49:03 699f458cf7ca: Pull complete 04:49:03 765212b225bb: Pull complete 04:49:04 f23df028b6ca: Pull complete 04:49:04 d65c8cfc05b1: Pull complete 04:49:19 2437ff75d9bd: Pull complete 04:49:19 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 04:49:19 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 04:49:19 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 04:49:19 prd-ubuntu20.04-docker-arm64-4c-16g-4722 does not seem to be running inside a container 04:49:19 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/device-rest-go/3 -v /w/workspace/device-rest-go/3:/w/workspace/device-rest-go/3:rw,z -v /w/workspace/device-rest-go/3@tmp:/w/workspace/device-rest-go/3@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 ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 04:49:22 $ docker top 0230d2597412c9dd965a73627a38ea8a8b2f0c1a9b65763c0f8ee8374ee79fee -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 04:49:23 ---> job-cost.sh 04:49:23 lf-activate-venv: SKIPPING 04:49:23 INFO: No Stack... 04:49:23 INFO: Retrieving Pricing Info for: v3-standard-4 04:49:24 INFO: Archiving Costs [Pipeline] sh 04:49:24 + cat /w/workspace/device-rest-go/3/archives/cost.csv 04:49:25 + cut -d, -f6 [Pipeline] lock 04:49:25 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-272-3-stack-cost] 04:49:25 Resource [jenkins-edgexfoundry-device-rest-go-PR-272-3-stack-cost] did not exist. Created. 04:49:25 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-272-3-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 04:49:25 /w/workspace/device-rest-go/3@tmp/durable-c2875010/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 04:49:26 + echo total: 0.10999999940395355 [Pipeline] stash 04:49:26 Warning: overwriting stash ‘stack-cost’ 04:49:26 Stashed 1 file(s) [Pipeline] } 04:49:26 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-272-3-stack-cost] [Pipeline] // lock [Pipeline] } 04:49:26 $ docker stop --time=1 0230d2597412c9dd965a73627a38ea8a8b2f0c1a9b65763c0f8ee8374ee79fee 04:49:27 $ docker rm -f --volumes 0230d2597412c9dd965a73627a38ea8a8b2f0c1a9b65763c0f8ee8374ee79fee [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 04:49:27 provisioning config files... 04:49:27 copy managed file [device-rest-go-codecov-token] to file:/w/workspace/gexfoundry_device-rest-go_PR-272@tmp/config2883739621129421004tmp [Pipeline] { [Pipeline] sh 04:49:28 + set +x 04:49:28 + curl+ -s https://codecov.io/bash 04:49:28 bash -s -- 04:49:28 04:49:28 _____ _ 04:49:28 / ____| | | 04:49:28 | | ___ __| | ___ ___ _____ __ 04:49:28 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 04:49:28 | |___| (_) | (_| | __/ (_| (_) \ V / 04:49:28 \_____\___/ \__,_|\___|\___\___/ \_/ 04:49:28 Bash-1.0.6 04:49:28 04:49:28 04:49:28 ==> git version 2.25.1 found 04:49:28 ==> 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 04:49:28 Release-Date: 2020-01-08 04:49:28 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 04:49:28 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 04:49:28 ==> Jenkins CI detected. 04:49:28 current dir:  /w/workspace/gexfoundry_device-rest-go_PR-272 04:49:28 project root: . 04:49:28 --> token set from env 04:49:28 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 04:49:28 ==> Running gcov in . (disable via -X gcov) 04:49:28 ==> Python coveragepy not found 04:49:28 ==> Searching for coverage reports in: 04:49:28 + . 04:49:28 -> Found 1 reports 04:49:28 ==> Detecting git/mercurial file structure 04:49:28 ==> Reading reports 04:49:28 + ./coverage.out bytes=14200 04:49:28 ==> Appending adjustments 04:49:28 https://docs.codecov.io/docs/fixing-reports 04:49:28 + Found adjustments 04:49:28 ==> Gzipping contents 04:49:28 4.0K /tmp/codecov.MBuzyW.gz 04:49:28 ==> Uploading reports 04:49:28 url: https://codecov.io 04:49:28 query: branch=PR-272&commit=53d571398c6ea370e5c9d1329a3dd23e6e74a13a&build=3&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-272%2F3%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=272&job=&cmd_args= 04:49:28 -> Pinging Codecov 04:49:28 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=53d571398c6ea370e5c9d1329a3dd23e6e74a13a&build=3&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-272%2F3%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=272&job=&cmd_args= 04:49:28 -> Uploading to 04:49:28 https://storage.googleapis.com/codecov/v4/raw/2023-03-21/4E5D53B4F1F92C436F7061BF334D961C/53d571398c6ea370e5c9d1329a3dd23e6e74a13a/316f5d02-6bbf-4076-9618-6ffb74709106.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20230321%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20230321T044928Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=a2306ea7ea7232effbba9845df1de36e40f72677f951711d2971d619c9184741 04:49:28 % Total % Received % Xferd Average Speed Time Time Time Current 04:49:28 Dload Upload Total Spent Left Speed 04:49:28 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 2459 0 0 100 2459 0 9007 --:--:-- --:--:-- --:--:-- 8974 04:49:28 -> Reports have been successfully queued for processing at https://app.codecov.io/github/edgexfoundry/device-rest-go/commit/53d571398c6ea370e5c9d1329a3dd23e6e74a13a [Pipeline] } 04:49:28 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 04:49:29 + [ -d /w/workspace/gexfoundry_device-rest-go_PR-272/archives ] 04:49:29 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-272/archives 04:49:29 total 16 04:49:29 drwxr-xr-x 3 root root 4096 Mar 21 04:41 . 04:49:29 drwxrwxr-x 10 jenkins jenkins 4096 Mar 21 04:41 .. 04:49:29 drwxr-xr-x 2 root root 4096 Mar 21 04:41 cost 04:49:29 -rw-r--r-- 1 root root 86 Mar 21 04:41 cost.csv 04:49:29 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-rest-go_PR-272/archives 04:49:29 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-272/archives 04:49:29 total 16 04:49:29 drwxr-xr-x 3 jenkins jenkins 4096 Mar 21 04:41 . 04:49:29 drwxrwxr-x 10 jenkins jenkins 4096 Mar 21 04:41 .. 04:49:29 drwxr-xr-x 2 jenkins jenkins 4096 Mar 21 04:41 cost 04:49:29 -rw-r--r-- 1 jenkins jenkins 86 Mar 21 04:41 cost.csv [Pipeline] libraryResource [Pipeline] sh 04:49:29 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 04:49:30 ---> package-listing.sh 04:49:30 ++ facter osfamily 04:49:30 ++ tr '[:upper:]' '[:lower:]' 04:49:30 + OS_FAMILY=debian 04:49:30 + workspace=/w/workspace/gexfoundry_device-rest-go_PR-272 04:49:30 + START_PACKAGES=/tmp/packages_start.txt 04:49:30 + END_PACKAGES=/tmp/packages_end.txt 04:49:30 + DIFF_PACKAGES=/tmp/packages_diff.txt 04:49:30 + PACKAGES=/tmp/packages_start.txt 04:49:30 + '[' /w/workspace/gexfoundry_device-rest-go_PR-272 ']' 04:49:30 + PACKAGES=/tmp/packages_end.txt 04:49:30 + case "${OS_FAMILY}" in 04:49:30 + dpkg -l 04:49:30 + grep '^ii' 04:49:30 + '[' -f /tmp/packages_start.txt ']' 04:49:30 + '[' -f /tmp/packages_end.txt ']' 04:49:30 + diff /tmp/packages_start.txt /tmp/packages_end.txt 04:49:30 + '[' /w/workspace/gexfoundry_device-rest-go_PR-272 ']' 04:49:30 + mkdir -p /w/workspace/gexfoundry_device-rest-go_PR-272/archives/ 04:49:30 + 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 04:49:30 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 04:49:31 + facter operatingsystem [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:49:31 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 04:49:31 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 04:49:31 prd-ubuntu20.04-docker-8c-8g-4721 does not seem to be running inside a container 04:49:31 $ 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 ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 04:49:32 $ docker top ea785d9929ecf2a4a31c6eddf070e476e2ab715f976ae346d647e021ff9eb062 -eo pid,comm [Pipeline] { [Pipeline] sh 04:49:32 + touch /tmp/pre-build-complete [Pipeline] sh 04:49:32 + mkdir -p /var/log/sysstat [Pipeline] sh 04:49:32 + ls /var/log/sa-host 04:49:32 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 04:49:33 provisioning config files... 04:49:33 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-272@tmp/config4128498894020046595tmp [Pipeline] { [Pipeline] echo 04:49:33 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 04:49:33 ---> create-netrc.sh [Pipeline] } 04:49:33 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 04:49:33 ---> python-tools-install.sh [Pipeline] echo 04:49:33 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 04:49:34 ---> sudo-logs.sh 04:49:34 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 04:49:34 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 04:49:34 ---> job-cost.sh 04:49:34 lf-activate-venv: SKIPPING 04:49:34 DEBUG: total: 0.2199999988079071 04:49:34 INFO: Retrieving Stack Cost... 04:49:34 INFO: Retrieving Pricing Info for: v3-standard-8 04:49:35 INFO: Archiving Costs [Pipeline] echo 04:49:35 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 04:49:35 ---> logs-deploy.sh 04:49:35 lf-activate-venv: SKIPPING 04:49:35 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-272/3 04:49:35 INFO: archiving workspace using pattern(s): 04:49:36 Archives upload complete. 04:49:36 INFO: archiving logs to Nexus