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 a9f8d9f939f37345898a2050de810d76c0875db0 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-ssh676191735981619800.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-ssh15704161208634090849.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-ssh16715813995119343488.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-ssh4838434604132910858.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-ssh15861815314474049692.key > git fetch --no-tags --progress -- git@github.com:lfit/releng-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10 Checking out Revision 65355178549468b165f8106641c96c3190b1d843 (master) > git config core.sparsecheckout # timeout=10 > git checkout -f 65355178549468b165f8106641c96c3190b1d843 # timeout=10 Commit message: "Fix: Add S3 URL in href to ship logs" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 Excluding src/test/ from checkout of git git@github.com:lfit/releng-pipelines.git so that library test code cannot be accessed by Pipelines. To remove this log message, move the test code outside of src/. To restore the previous behavior that allowed access to files in src/test/, pass -Dorg.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.INCLUDE_SRC_TEST_IN_LIBRARIES=true to the java command used to start Jenkins. [Pipeline] Start of Pipeline [Pipeline] echo ========================================================= [edgeXBuildGoApp] RAW Config: [project:device-rest-go] ========================================================= [Pipeline] echo Setting up nodes based on requested architectures [[amd64, arm64]] [Pipeline] echo Nodes requested: [[ubuntu20.04-docker-8c-8g, ubuntu20.04-docker-arm64-4c-16g]] [Pipeline] echo ========================================================= [edgeXBuildGoApp] Pipeline Parameters: ========================================================= [Pipeline] echo MAVEN_SETTINGS: device-rest-go-settings PROJECT: device-rest-go USE_SEMVER: true TEST_SCRIPT: make test BUILD_SCRIPT: make build GO_VERSION: 1.20 USE_ALPINE: true DOCKER_FILE_PATH: Dockerfile DOCKER_BUILD_FILE_PATH: Dockerfile.build DOCKER_BUILD_CONTEXT: . DOCKER_BUILD_IMAGE_TARGET: builder DOCKER_IMAGE_NAME: device-rest DOCKER_REGISTRY_NAMESPACE: DOCKER_NEXUS_REPO: staging BUILD_DOCKER_IMAGE: true PUSH_DOCKER_IMAGE: true BUILD_EXPERIMENTAL_DOCKER_IMAGE: false BUILD_STABLE_DOCKER_IMAGE: false SEMVER_BUMP_LEVEL: pre BUILD_SNAP: false PUBLISH_SWAGGER_DOCS: false SWAGGER_API_FOLDERS: openapi/v1 ARTIFACT_ROOT: archives/bin ARTIFACT_TYPES: docker SHOULD_BUILD: true BUILD_FAILURE_NOTIFY_LIST: edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org SNYK_DEBUG: false [Pipeline] node Still waiting to schedule task Waiting for next available executor on ‘prd-ubuntu20.04-docker-8c-8g-4716’ Running on prd-ubuntu20.04-docker-8c-8g-4719 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 Merging remotes/origin/main commit 2ded8c8301fa9285dc80bb471c5f0972abc0b73a into PR head commit a9f8d9f939f37345898a2050de810d76c0875db0 Merge succeeded, producing a9f8d9f939f37345898a2050de810d76c0875db0 Checking out Revision a9f8d9f939f37345898a2050de810d76c0875db0 (PR-272) > 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 > git config core.sparsecheckout # timeout=10 > git checkout -f a9f8d9f939f37345898a2050de810d76c0875db0 # 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 a9f8d9f939f37345898a2050de810d76c0875db0 # timeout=10 Commit message: "refactor!: bump SDK and change configuration file format to YAML" First time build. Skipping changelog. [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 04:26:56 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 04:26:56 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 04:26:56 ========================================================= 04:26:56 EdgeX Global Pipelines Version Info 04:26:56 ========================================================= [Pipeline] libraryResource [Pipeline] sh 04:26:57 ------------------- 04:26:57 stable info: 04:26:57 ------------------- 04:26:57 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 04:26:57 Commit SHA: 66200e8eedfc470904d6b329e562ec5b45423d6a 04:26:57 Message: update stable to v1.0.245 04:26:57 ------------------- 04:26:57 experimental info: 04:26:57 ------------------- 04:26:57 Commited By: **** collab-it+edgex@linuxfoundation.org 04:26:57 Commit SHA: eb5041bb0874f6b7cdca3e6793e1ef87c0289dce 04:26:57 Message: update experimental to v1.0.246 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 04:26:57 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 04:26:57 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 04:26:57 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 04:26:57 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 04:26:57 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 04:26:57 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.20 [Pipeline] echo 04:26:57 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 04:26:57 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 04:26:57 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 04:26:58 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 04:26:58 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 04:26:58 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 04:26:58 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 04:26:58 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 04:26:58 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 04:26:58 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 04:26:58 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 04:26:58 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 04:26:58 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 04:26:58 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 04:26:58 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 04:26:58 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 04:26:58 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 04:26:58 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 04:26:58 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 04:26:58 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 04:26:58 [edgeXSetupEnvironment]: set envvar SNYK_DEBUG = false [Pipeline] echo 04:26:58 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-272 [Pipeline] echo 04:26:58 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-272 [Pipeline] echo 04:26:58 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-272 [Pipeline] echo 04:26:58 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = a9f8d9f939f37345898a2050de810d76c0875db0 [Pipeline] echo 04:26:58 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = a9f8d9f [Pipeline] echo 04:26:58 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 04:26:58 provisioning config files... 04:26:58 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-272@tmp/config2705646654292212643tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 04:26:58 ---> docker-login.sh 04:26:58 nexus3.edgexfoundry.org:10001 04:27:00 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:27:00 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:27:00 Configure a credential helper to remove this warning. See 04:27:00 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:27:00 04:27:00 Login Succeeded 04:27:00 nexus3.edgexfoundry.org:10002 04:27:00 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:27:00 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:27:00 Configure a credential helper to remove this warning. See 04:27:00 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:27:00 04:27:00 Login Succeeded 04:27:00 nexus3.edgexfoundry.org:10003 04:27:00 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:27:00 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:27:00 Configure a credential helper to remove this warning. See 04:27:00 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:27:00 04:27:00 Login Succeeded 04:27:00 nexus3.edgexfoundry.org:10004 04:27:00 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:27:00 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:27:00 Configure a credential helper to remove this warning. See 04:27:00 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:27:00 04:27:00 Login Succeeded 04:27:00 docker.io 04:27:00 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:27:00 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:27:00 Configure a credential helper to remove this warning. See 04:27:00 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:27:00 04:27:00 Login Succeeded 04:27:00 ---> docker-login.sh ends [Pipeline] } 04:27:00 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 04:27:01 + git rev-list -1 --merges a9f8d9f939f37345898a2050de810d76c0875db0~1..a9f8d9f939f37345898a2050de810d76c0875db0 [Pipeline] echo 04:27:01 -----------> git rev-list -1 --merges a9f8d9f939f37345898a2050de810d76c0875db0~1..a9f8d9f939f37345898a2050de810d76c0875db0 a9f8d9f939f37345898a2050de810d76c0875db0 [false] [Pipeline] sh 04:27:01 + git log --format=format:%s -1 a9f8d9f939f37345898a2050de810d76c0875db0 [Pipeline] echo 04:27:01 ========================================================= 04:27:01 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 04:27:01 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 04:27:01 + git log --format=format:%s -1 a9f8d9f939f37345898a2050de810d76c0875db0 [Pipeline] echo 04:27:01 [semverPrep] GIT_COMMIT: a9f8d9f939f37345898a2050de810d76c0875db0, Commit Message: refactor!: bump SDK and change configuration file format to YAML [Pipeline] echo 04:27:01 [semverPrep] This is not a build commit. [Pipeline] sh 04:27:02 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 04:27:02 + grep -v github /etc/ssh/ssh_known_hosts 04:27:02 + [ -e /tmp/ssh_known_hosts ] 04:27:02 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 04:27:02 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 04:27:02 + sudo tee -a /etc/ssh/ssh_known_hosts 04:27:02 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:27:02 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 04:27:02 04:27:02 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:27:02 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 04:27:03 0.1.4: Pulling from edgex-devops/py-git-semver 04:27:03 b85a868b505f: Pulling fs layer 04:27:03 e2be974225ed: Pulling fs layer 04:27:03 339a4e72a1f5: Pulling fs layer 04:27:03 988bab9f4d93: Pulling fs layer 04:27:03 1469e6f7b9e6: Pulling fs layer 04:27:03 eaf3925da568: Pulling fs layer 04:27:03 bab4dde63d76: Pulling fs layer 04:27:03 bde34c3a00c8: Pulling fs layer 04:27:03 b352a97aabf1: Pulling fs layer 04:27:03 4872d77fe225: Pulling fs layer 04:27:03 5851b861e8e6: Pulling fs layer 04:27:03 bab4dde63d76: Waiting 04:27:03 bde34c3a00c8: Waiting 04:27:03 b352a97aabf1: Waiting 04:27:03 5851b861e8e6: Waiting 04:27:03 988bab9f4d93: Waiting 04:27:03 1469e6f7b9e6: Waiting 04:27:03 eaf3925da568: Waiting 04:27:03 4872d77fe225: Waiting 04:27:03 e2be974225ed: Verifying Checksum 04:27:03 e2be974225ed: Download complete 04:27:03 988bab9f4d93: Verifying Checksum 04:27:03 988bab9f4d93: Download complete 04:27:03 1469e6f7b9e6: Verifying Checksum 04:27:03 1469e6f7b9e6: Download complete 04:27:03 339a4e72a1f5: Verifying Checksum 04:27:03 339a4e72a1f5: Download complete 04:27:03 eaf3925da568: Verifying Checksum 04:27:03 eaf3925da568: Download complete 04:27:03 bde34c3a00c8: Verifying Checksum 04:27:03 bde34c3a00c8: Download complete 04:27:03 b352a97aabf1: Download complete 04:27:03 4872d77fe225: Verifying Checksum 04:27:03 4872d77fe225: Download complete 04:27:03 b85a868b505f: Verifying Checksum 04:27:03 b85a868b505f: Download complete 04:27:03 5851b861e8e6: Verifying Checksum 04:27:03 5851b861e8e6: Download complete 04:27:04 bab4dde63d76: Verifying Checksum 04:27:04 bab4dde63d76: Download complete 04:27:04 b85a868b505f: Pull complete 04:27:05 e2be974225ed: Pull complete 04:27:06 339a4e72a1f5: Pull complete 04:27:06 988bab9f4d93: Pull complete 04:27:06 1469e6f7b9e6: Pull complete 04:27:07 eaf3925da568: Pull complete 04:27:09 bab4dde63d76: Pull complete 04:27:10 bde34c3a00c8: Pull complete 04:27:10 b352a97aabf1: Pull complete 04:27:10 4872d77fe225: Pull complete 04:27:10 5851b861e8e6: Pull complete 04:27:10 Digest: sha256:59a28aa3b44c0bc56b9c3d2e9ecabe42e63693d939cc6e425eb8786f29f663d8 04:27:10 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 04:27:10 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 04:27:10 prd-ubuntu20.04-docker-8c-8g-4719 does not seem to be running inside a container 04:27:10 $ 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 ******** nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 cat 04:27:16 $ docker top 72c96cd19f09b325ff674730624fd679fbf0d9187a225f8fd70e777e4e08995e -eo pid,comm 04:27:16 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:27:16 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 04:27:16 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 04:27:16 [ssh-agent] Looking for ssh-agent implementation... 04:27:16 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 04:27:16 $ docker exec 72c96cd19f09b325ff674730624fd679fbf0d9187a225f8fd70e777e4e08995e ssh-agent 04:27:16 SSH_AUTH_SOCK=/tmp/ssh-A5wQTp1bu4Oy/agent.32 04:27:16 SSH_AGENT_PID=38 04:27:16 Running ssh-add (command line suppressed) 04:27:16 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-272@tmp/private_key_16492870973761089438.key (/w/workspace/gexfoundry_device-rest-go_PR-272@tmp/private_key_16492870973761089438.key) 04:27:16 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 04:27:17 + git tag --points-at HEAD [Pipeline] } 04:27:17 $ docker exec --env ******** --env ******** 72c96cd19f09b325ff674730624fd679fbf0d9187a225f8fd70e777e4e08995e ssh-agent -k 04:27:17 unset SSH_AUTH_SOCK; 04:27:17 unset SSH_AGENT_PID; 04:27:17 echo Agent pid 38 killed; 04:27:17 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 04:27:17 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 04:27:17 [ssh-agent] Looking for ssh-agent implementation... 04:27:17 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 04:27:17 $ docker exec 72c96cd19f09b325ff674730624fd679fbf0d9187a225f8fd70e777e4e08995e ssh-agent 04:27:17 SSH_AUTH_SOCK=/tmp/ssh-BKDHianGF5V0/agent.70 04:27:17 SSH_AGENT_PID=76 04:27:17 Running ssh-add (command line suppressed) 04:27:17 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-272@tmp/private_key_3369431315778952437.key (/w/workspace/gexfoundry_device-rest-go_PR-272@tmp/private_key_3369431315778952437.key) 04:27:17 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 04:27:17 + git semver init 04:27:18 2023-03-21 04:27:18,204 [run_init] DEBUG init version:0.0.0 force:False 04:27:18 2023-03-21 04:27:18,205 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/gexfoundry_device-rest-go_PR-272/.semver 04:27:18 2023-03-21 04:27:18,206 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-rest-go.git /w/workspace/gexfoundry_device-rest-go_PR-272/.semver 04:27:18 2023-03-21 04:27:18,206 [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:27:19 2023-03-21 04:27:19,263 [append_file] DEBUG append to file:/w/workspace/gexfoundry_device-rest-go_PR-272/.git/info/exclude 04:27:19 2023-03-21 04:27:19,264 [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:27:19 2023-03-21 04:27:19,264 [write_file] DEBUG write to file:/w/workspace/gexfoundry_device-rest-go_PR-272/.semver/PR-272 04:27:19 2023-03-21 04:27:19,268 [execute] INFO git cat-file --batch-check 04:27:19 2023-03-21 04:27:19,269 [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:27:19 2023-03-21 04:27:19,274 [execute] INFO git cat-file --batch 04:27:19 2023-03-21 04:27:19,275 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-272/.semver, universal_newlines=False, shell=None, istream=) 04:27:19 2023-03-21 04:27:19,280 [read_version] DEBUG read version from /w/workspace/gexfoundry_device-rest-go_PR-272/.semver/PR-272 04:27:19 0.0.0 [Pipeline] } 04:27:19 $ docker exec --env ******** --env ******** 72c96cd19f09b325ff674730624fd679fbf0d9187a225f8fd70e777e4e08995e ssh-agent -k 04:27:19 unset SSH_AUTH_SOCK; 04:27:19 unset SSH_AGENT_PID; 04:27:19 echo Agent pid 76 killed; 04:27:19 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 04:27:20 + git semver [Pipeline] } 04:27:20 $ docker stop --time=1 72c96cd19f09b325ff674730624fd679fbf0d9187a225f8fd70e777e4e08995e 04:27:21 $ docker rm -f --volumes 72c96cd19f09b325ff674730624fd679fbf0d9187a225f8fd70e777e4e08995e [Pipeline] // withDockerContainer [Pipeline] sh 04:27:22 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 04:27:22 Stashed 1 file(s) [Pipeline] echo 04:27:22 [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:27:22 provisioning config files... 04:27:22 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-272@tmp/config1495876474122478479tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 04:27:22 ---> docker-login.sh 04:27:22 nexus3.edgexfoundry.org:10001 04:27:22 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:27:22 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:27:22 Configure a credential helper to remove this warning. See 04:27:22 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:27:22 04:27:22 Login Succeeded 04:27:22 nexus3.edgexfoundry.org:10002 04:27:22 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:27:22 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:27:22 Configure a credential helper to remove this warning. See 04:27:22 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:27:22 04:27:22 Login Succeeded 04:27:22 nexus3.edgexfoundry.org:10003 04:27:22 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:27:22 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:27:22 Configure a credential helper to remove this warning. See 04:27:22 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:27:22 04:27:22 Login Succeeded 04:27:22 nexus3.edgexfoundry.org:10004 04:27:22 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:27:22 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:27:22 Configure a credential helper to remove this warning. See 04:27:22 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:27:22 04:27:22 Login Succeeded 04:27:22 docker.io 04:27:23 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:27:23 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:27:23 Configure a credential helper to remove this warning. See 04:27:23 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:27:23 04:27:23 Login Succeeded 04:27:23 ---> docker-login.sh ends [Pipeline] } 04:27:23 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 04:27:23 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 04:27:23 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 04:27:23 ========================================================= 04:27:23 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine] 04:27:23 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:27:23 + 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:27:23 Sending build context to Docker daemon 10.86MB 04:27:23 Step 1/12 : ARG BASE=golang:1.20-alpine3.17 04:27:23 Step 2/12 : FROM ${BASE} AS builder 04:27:23 1.20-alpine: Pulling from edgex-devops/edgex-golang-base 04:27:23 63b65145d645: Pulling fs layer 04:27:23 a2d21d5440eb: Pulling fs layer 04:27:23 935e6c44a52c: Pulling fs layer 04:27:23 94cc34f8dd06: Pulling fs layer 04:27:23 30dea6a524f1: Pulling fs layer 04:27:23 a2aff8979fd8: Pulling fs layer 04:27:23 30dea6a524f1: Waiting 04:27:23 94cc34f8dd06: Waiting 04:27:23 6808be2612f2: Pulling fs layer 04:27:23 f25807f1079a: Pulling fs layer 04:27:23 f25807f1079a: Waiting 04:27:23 6808be2612f2: Waiting 04:27:23 a2d21d5440eb: Verifying Checksum 04:27:23 a2d21d5440eb: Download complete 04:27:23 94cc34f8dd06: Verifying Checksum 04:27:23 94cc34f8dd06: Download complete 04:27:23 30dea6a524f1: Download complete 04:27:23 63b65145d645: Verifying Checksum 04:27:23 63b65145d645: Download complete 04:27:23 a2aff8979fd8: Verifying Checksum 04:27:23 a2aff8979fd8: Download complete 04:27:23 63b65145d645: Pull complete 04:27:24 a2d21d5440eb: Pull complete 04:27:24 f25807f1079a: Verifying Checksum 04:27:24 f25807f1079a: Download complete 04:27:24 935e6c44a52c: Verifying Checksum 04:27:24 935e6c44a52c: Download complete 04:27:24 6808be2612f2: Verifying Checksum 04:27:24 6808be2612f2: Download complete 04:27:29 935e6c44a52c: Pull complete 04:27:29 94cc34f8dd06: Pull complete 04:27:29 30dea6a524f1: Pull complete 04:27:29 a2aff8979fd8: Pull complete 04:27:31 6808be2612f2: Pull complete 04:27:32 f25807f1079a: Pull complete 04:27:32 Digest: sha256:106942793af8b5907f587008084bb0888cadbc76d86ebd37d4d3227fb0f1e438 04:27:32 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine 04:27:32 ---> 3b553350e43f 04:27:32 Step 3/12 : ARG ADD_BUILD_TAGS="" 04:27:37 Still waiting to schedule task 04:27:37 ‘prd-ubuntu20.04-docker-arm64-4c-16g-4717’ is offline 04:27:38 ---> Running in fc26d48086bf 04:27:38 Removing intermediate container fc26d48086bf 04:27:38 ---> 9e233fe465ce 04:27:38 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 04:27:38 ---> Running in 93552d311119 04:27:38 Removing intermediate container 93552d311119 04:27:38 ---> a6a67feb2532 04:27:38 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 04:27:38 ---> Running in 879f0ee53976 04:27:38 Removing intermediate container 879f0ee53976 04:27:38 ---> 6ee48b133fb9 04:27:38 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 04:27:38 ---> Running in 6ca08836b77f 04:27:38 Removing intermediate container 6ca08836b77f 04:27:38 ---> ff5d937e077b 04:27:38 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 04:27:38 ---> Running in 3e9fe8ec2121 04:27:38 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 04:27:38 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 04:27:38 (1/4) Installing openssh-keygen (9.1_p1-r2) 04:27:38 (2/4) Installing libedit (20221030.3.1-r0) 04:27:38 (3/4) Installing openssh-client-common (9.1_p1-r2) 04:27:38 (4/4) Installing openssh-client-default (9.1_p1-r2) 04:27:38 Executing busybox-1.35.0-r29.trigger 04:27:38 OK: 269 MiB in 57 packages 04:27:38 Removing intermediate container 3e9fe8ec2121 04:27:38 ---> e7ddf1a30683 04:27:38 Step 8/12 : WORKDIR /device-rest-go 04:27:38 ---> Running in b2a0cdbe9fa9 04:27:38 Removing intermediate container b2a0cdbe9fa9 04:27:38 ---> 89503d8df959 04:27:38 Step 9/12 : COPY go.mod vendor* ./ 04:27:39 ---> a44fc897c47c 04:27:39 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 04:27:39 ---> Running in fc4d9b479d26 04:28:18 Removing intermediate container fc4d9b479d26 04:28:18 ---> eec7de9a2154 04:28:18 Step 11/12 : COPY . . 04:28:18 ---> c3944f90d525 04:28:18 Step 12/12 : RUN $MAKE 04:28:18 ---> Running in 113a3960a0d4 04:28:18 noop 04:28:18 Removing intermediate container 113a3960a0d4 04:28:18 ---> f5004f1e1917 04:28:18 Successfully built f5004f1e1917 04:28:18 Successfully tagged ci-base-image-x86_64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:28:18 + docker inspect -f . ci-base-image-x86_64 04:28:18 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 04:28:18 prd-ubuntu20.04-docker-8c-8g-4719 does not seem to be running inside a container 04:28:18 $ 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 ******** ci-base-image-x86_64 cat 04:28:18 $ docker top 0ebc74d134018260c76075698872ccb1b0d890e98dc45dcaabfdab4e8215c235 -eo pid,comm [Pipeline] { [Pipeline] sh 04:28:19 + go version 04:28:19 go version go1.20.2 linux/amd64 [Pipeline] } 04:28:19 $ docker stop --time=1 0ebc74d134018260c76075698872ccb1b0d890e98dc45dcaabfdab4e8215c235 04:28:20 $ docker rm -f --volumes 0ebc74d134018260c76075698872ccb1b0d890e98dc45dcaabfdab4e8215c235 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:28:21 + docker inspect -f . ci-base-image-x86_64 04:28:21 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 04:28:21 prd-ubuntu20.04-docker-8c-8g-4719 does not seem to be running inside a container 04:28:21 $ 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 ******** ci-base-image-x86_64 cat 04:28:21 $ docker top b0c5cf3d5b705b6377da9240b971de65e84c47b5d4dddfd0e125ebb237ac7661 -eo pid,comm [Pipeline] { [Pipeline] sh 04:28:21 + git config --global --add safe.directory /w/workspace/gexfoundry_device-rest-go_PR-272 [Pipeline] fileExists [Pipeline] sh 04:28:22 + make test 04:28:22 go test ./... -coverprofile=coverage.out ./... 04:28:27 ? github.com/edgexfoundry/device-rest-go [no test files] 04:28:37 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 04:28:37 ok github.com/edgexfoundry/device-rest-go/driver 0.015s coverage: 33.0% of statements 04:28:43 go vet ./... 04:28:47 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 04:28:47 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 04:28:47 ./bin/test-attribution-txt.sh [Pipeline] echo 04:28:47 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 04:28:47 $ docker stop --time=1 b0c5cf3d5b705b6377da9240b971de65e84c47b5d4dddfd0e125ebb237ac7661 04:28:50 $ docker rm -f --volumes b0c5cf3d5b705b6377da9240b971de65e84c47b5d4dddfd0e125ebb237ac7661 [Pipeline] // withDockerContainer [Pipeline] sh 04:28:51 + sudo chown -R jenkins:jenkins . [Pipeline] stash 04:28:51 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 04:28:51 + sudo chown -R jenkins:jenkins . [Pipeline] sh 04:28:52 + ls -al . 04:28:52 total 184 04:28:52 drwxrwxr-x 9 jenkins jenkins 4096 Mar 21 04:28 . 04:28:52 drwxrwxr-x 4 jenkins jenkins 4096 Mar 21 04:26 .. 04:28:52 -rw-rw-r-- 1 jenkins jenkins 151 Mar 21 04:26 .dockerignore 04:28:52 drwxrwxr-x 8 jenkins jenkins 4096 Mar 21 04:27 .git 04:28:52 drwxrwxr-x 3 jenkins jenkins 4096 Mar 21 04:26 .github 04:28:52 -rw-rw-r-- 1 jenkins jenkins 329 Mar 21 04:26 .gitignore 04:28:52 -rw-rw-r-- 1 jenkins jenkins 41 Mar 21 04:26 .golangci.yml 04:28:52 drwxr-xr-x 3 jenkins jenkins 4096 Mar 21 04:27 .semver 04:28:52 -rw-rw-r-- 1 jenkins jenkins 9321 Mar 21 04:26 Attribution.txt 04:28:52 -rw-rw-r-- 1 jenkins jenkins 13085 Mar 21 04:26 CHANGELOG.md 04:28:52 -rw-rw-r-- 1 jenkins jenkins 1578 Mar 21 04:26 Dockerfile 04:28:52 -rw-rw-r-- 1 jenkins jenkins 677 Mar 21 04:26 GOVERNANCE.md 04:28:52 -rw-rw-r-- 1 jenkins jenkins 680 Mar 21 04:26 Jenkinsfile 04:28:52 -rw-rw-r-- 1 jenkins jenkins 11340 Mar 21 04:26 LICENSE 04:28:52 -rw-rw-r-- 1 jenkins jenkins 1779 Mar 21 04:26 Makefile 04:28:52 -rw-rw-r-- 1 jenkins jenkins 620 Mar 21 04:26 OWNERS.md 04:28:52 -rw-rw-r-- 1 jenkins jenkins 15320 Mar 21 04:26 README.md 04:28:52 -rw-rw-r-- 1 jenkins jenkins 5 Mar 21 04:27 VERSION 04:28:52 drwxrwxr-x 2 jenkins jenkins 4096 Mar 21 04:26 bin 04:28:52 drwxrwxr-x 3 jenkins jenkins 4096 Mar 21 04:26 cmd 04:28:52 -rw-r--r-- 1 jenkins jenkins 14200 Mar 21 04:28 coverage.out 04:28:52 drwxrwxr-x 2 jenkins jenkins 4096 Mar 21 04:26 driver 04:28:52 -rw-rw-r-- 1 jenkins jenkins 3447 Mar 21 04:26 go.mod 04:28:52 -rw-rw-r-- 1 jenkins jenkins 31301 Mar 21 04:26 go.sum 04:28:52 drwxrwxr-x 4 jenkins jenkins 4096 Mar 21 04:26 snap 04:28:52 -rw-rw-r-- 1 jenkins jenkins 713 Mar 21 04:26 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:28:52 + docker build -t device-rest -f Dockerfile --build-arg BASE=ci-base-image-x86_64 --build-arg MAKE=make build --build-arg ARCH=amd64 --label git_sha=a9f8d9f939f37345898a2050de810d76c0875db0 --label arch=amd64 --label version=0.0.0 . 04:28:52 Sending build context to Docker daemon 10.87MB 04:28:52 Step 1/25 : ARG BASE=golang:1.20-alpine3.17 04:28:52 Step 2/25 : FROM ${BASE} AS builder 04:28:52 ---> f5004f1e1917 04:28:52 Step 3/25 : ARG ADD_BUILD_TAGS="" 04:28:52 ---> Running in 72e6e61e561d 04:28:52 Removing intermediate container 72e6e61e561d 04:28:52 ---> d175d0d13af1 04:28:52 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 04:28:52 ---> Running in 34b7de335fdb 04:28:52 Removing intermediate container 34b7de335fdb 04:28:52 ---> e30dfa0f295f 04:28:52 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 04:28:52 ---> Running in 557b12097f1f 04:28:52 Removing intermediate container 557b12097f1f 04:28:52 ---> 74b1804260b0 04:28:52 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 04:28:52 ---> Running in 399ed25c50a1 04:28:52 Removing intermediate container 399ed25c50a1 04:28:52 ---> cc4eca4c9fe1 04:28:52 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 04:28:52 ---> Running in 5b483eb9fcfb 04:28:53 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 04:28:53 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 04:28:53 OK: 269 MiB in 57 packages 04:28:53 Removing intermediate container 5b483eb9fcfb 04:28:53 ---> d46d8f1cb52e 04:28:53 Step 8/25 : WORKDIR /device-rest-go 04:28:53 ---> Running in 8e354b5bd358 04:28:53 Removing intermediate container 8e354b5bd358 04:28:53 ---> 7d6f8ac36149 04:28:53 Step 9/25 : COPY go.mod vendor* ./ 04:28:54 ---> f9cff1a93d36 04:28:54 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 04:28:54 ---> Running in 29e4ffec0b3b 04:28:55 Removing intermediate container 29e4ffec0b3b 04:28:55 ---> 1c9494ce7c62 04:28:55 Step 11/25 : COPY . . 04:28:55 ---> e13161628262 04:28:55 Step 12/25 : RUN $MAKE 04:28:55 ---> Running in f9056aa729af 04:28:55 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:29:08 Running on prd-ubuntu20.04-docker-arm64-4c-16g-4720 in /w/workspace/gexfoundry_device-rest-go_PR-272 [Pipeline] { [Pipeline] ws 04:29:08 Running in /w/workspace/device-rest-go/2 [Pipeline] { [Pipeline] checkout 04:29:08 The recommended git tool is: git 04:29:13 using credential edgex-jenkins-ssh 04:29:13 Cloning the remote Git repository 04:29:13 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 04:29:13 > git init /w/workspace/device-rest-go/2 # timeout=10 04:29:13 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 04:29:13 > git --version # timeout=10 04:29:14 > git --version # 'git version 2.25.1' 04:29:14 using GIT_SSH to set credentials SSH Credentials for GitHub 04:29:14 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 04:29:15 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 04:29:15 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 04:29:16 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 04:29:16 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 04:29:16 using GIT_SSH to set credentials SSH Credentials for GitHub 04:29:16 > 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:29:17 Merging remotes/origin/main commit 2ded8c8301fa9285dc80bb471c5f0972abc0b73a into PR head commit a9f8d9f939f37345898a2050de810d76c0875db0 04:29:17 Removing intermediate container f9056aa729af 04:29:17 ---> dc8bfee9f651 04:29:17 Step 13/25 : FROM alpine:3.17 04:29:17 3.17: Pulling from library/alpine 04:29:17 63b65145d645: Already exists 04:29:17 Digest: sha256:ff6bdca1701f3a8a67e328815ff2346b0e4067d32ec36b7992c1fdc001dc8517 04:29:17 Status: Downloaded newer image for alpine:3.17 04:29:17 ---> b2aa39c304c2 04:29:17 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 04:29:17 ---> Running in c88a42e4e18c 04:29:17 Removing intermediate container c88a42e4e18c 04:29:17 ---> 524068c886db 04:29:17 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 04:29:17 ---> Running in 05e1529fdc00 04:29:17 Removing intermediate container 05e1529fdc00 04:29:17 ---> 922f72567720 04:29:17 Step 16/25 : RUN apk add --update --no-cache dumb-init 04:29:17 ---> Running in 24ffe94db9b9 04:29:17 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 04:29:17 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 04:29:17 (1/1) Installing dumb-init (1.2.5-r2) 04:29:17 Executing busybox-1.35.0-r29.trigger 04:29:17 OK: 7 MiB in 16 packages 04:29:17 Removing intermediate container 24ffe94db9b9 04:29:17 ---> 005f5b47a5ed 04:29:17 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 04:29:17 Merge succeeded, producing a9f8d9f939f37345898a2050de810d76c0875db0 04:29:17 Checking out Revision a9f8d9f939f37345898a2050de810d76c0875db0 (PR-272) 04:29:18 ---> 1a20b871b05e 04:29:18 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 04:29:18 ---> ae8c8c0c1fd8 04:29:18 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 04:29:17 > git config core.sparsecheckout # timeout=10 04:29:17 > git checkout -f a9f8d9f939f37345898a2050de810d76c0875db0 # timeout=10 04:29:17 > git remote # timeout=10 04:29:17 > git config --get remote.origin.url # timeout=10 04:29:17 using GIT_SSH to set credentials SSH Credentials for GitHub 04:29:17 > git merge 2ded8c8301fa9285dc80bb471c5f0972abc0b73a # timeout=10 04:29:17 > git rev-parse HEAD^{commit} # timeout=10 04:29:17 > git config core.sparsecheckout # timeout=10 04:29:17 > git checkout -f a9f8d9f939f37345898a2050de810d76c0875db0 # timeout=10 04:29:18 ---> 31af1572dab6 04:29:18 Step 20/25 : EXPOSE 59986 04:29:18 ---> Running in 0ba740c49648 04:29:18 Removing intermediate container 0ba740c49648 04:29:18 ---> d4372579cfad 04:29:18 Step 21/25 : ENTRYPOINT ["/device-rest"] 04:29:18 ---> Running in ec7a8b0ae2e3 04:29:18 Removing intermediate container ec7a8b0ae2e3 04:29:18 ---> dc4b4e72b371 04:29:18 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 04:29:19 ---> Running in fc73abd7f47f 04:29:19 Removing intermediate container fc73abd7f47f 04:29:19 ---> 0c6f592007c2 04:29:19 Step 23/25 : LABEL arch=amd64 04:29:19 ---> Running in acbc1f716f48 04:29:19 Removing intermediate container acbc1f716f48 04:29:19 ---> c102a3c2e827 04:29:19 Step 24/25 : LABEL git_sha=a9f8d9f939f37345898a2050de810d76c0875db0 04:29:19 ---> Running in 225413b172cb 04:29:19 Removing intermediate container 225413b172cb 04:29:19 ---> 46f7f54b928b 04:29:19 Step 25/25 : LABEL version=0.0.0 04:29:19 ---> Running in 5f1c81426983 04:29:19 Removing intermediate container 5f1c81426983 04:29:19 ---> 5bd262dd1e96 04:29:19 [Warning] One or more build-args [ARCH] were not consumed 04:29:19 Successfully built 5bd262dd1e96 04:29:19 Successfully tagged device-rest:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Docker Push) Stage "Docker Push" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Snap) Stage "Snap" skipped due to when conditional [Pipeline] } [Pipeline] // stage Post stage [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:29:19 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 04:29:19 04:29:19 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:29:20 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 04:29:20 latest: Pulling from edgex-lftools-log-publisher 04:29:20 5eb5b503b376: Pulling fs layer 04:29:20 5c69ac0246d0: Pulling fs layer 04:29:20 ec43610c2a17: Pulling fs layer 04:29:20 3a2ae6a8a46f: Pulling fs layer 04:29:20 33b1e0a273af: Pulling fs layer 04:29:20 5d3b04190fa2: Pulling fs layer 04:29:20 2f39f015ded8: Pulling fs layer 04:29:20 33b1e0a273af: Waiting 04:29:20 5d3b04190fa2: Waiting 04:29:20 2f39f015ded8: Waiting 04:29:20 3a2ae6a8a46f: Waiting 04:29:20 5c69ac0246d0: Verifying Checksum 04:29:20 5c69ac0246d0: Download complete 04:29:20 3a2ae6a8a46f: Verifying Checksum 04:29:20 3a2ae6a8a46f: Download complete 04:29:20 33b1e0a273af: Verifying Checksum 04:29:20 33b1e0a273af: Download complete 04:29:20 5d3b04190fa2: Verifying Checksum 04:29:20 5d3b04190fa2: Download complete 04:29:20 ec43610c2a17: Verifying Checksum 04:29:20 ec43610c2a17: Download complete 04:29:20 5eb5b503b376: Verifying Checksum 04:29:20 5eb5b503b376: Download complete 04:29:21 2f39f015ded8: Verifying Checksum 04:29:21 2f39f015ded8: Download complete 04:29:21 Commit message: "refactor!: bump SDK and change configuration file format to YAML" 04:29:21 04:29:21 GitHub has been notified of this commit’s build result 04:29:21 [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 04:29:22 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 04:29:22 % Total % Received % Xferd Average Speed Time Time Time Current 04:29:22 Dload Upload Total Spent Left Speed 04:29:22 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 12751 100 12751 0 0 92398 0 --:--:-- --:--:-- --:--:-- 92398 04:29:22 5eb5b503b376: Pull complete 04:29:22 5c69ac0246d0: Pull complete [Pipeline] sh 04:29:22 ec43610c2a17: Pull complete 04:29:22 3a2ae6a8a46f: Pull complete 04:29:22 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 04:29:22 33b1e0a273af: Pull complete 04:29:22 5d3b04190fa2: Pull complete 04:29:23 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 04:29:23 + sudo tee /etc/docker/daemon.new 04:29:23 { 04:29:23 "registry-mirrors": [ 04:29:23 "https://nexus3.edgexfoundry.org:10001" 04:29:23 ], 04:29:23 "bip": "10.250.0.254/24", 04:29:23 "hosts": [ 04:29:23 "tcp://0.0.0.0:5555", 04:29:23 "unix:///var/run/docker.sock" 04:29:23 ], 04:29:23 "mtu": 1458, 04:29:23 "selinux-enabled": true, 04:29:23 "seccomp-profile": "/etc/docker/seccomp.json" 04:29:23 } [Pipeline] sh 04:29:23 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 04:29:23 + sudo service docker restart 04:29:28 2f39f015ded8: Pull complete 04:29:28 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 04:29:28 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 04:29:28 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 04:29:28 prd-ubuntu20.04-docker-8c-8g-4719 does not seem to be running inside a container 04:29:28 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/gexfoundry_device-rest-go_PR-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-lftools-log-publisher:latest cat 04:29:32 $ docker top 8833d742d697dc357f58bdbc6977b5ac50b08fcd4a2909f42338dd709d4056dd -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 04:29:32 ---> job-cost.sh 04:29:32 lf-activate-venv: SKIPPING 04:29:32 INFO: No Stack... 04:29:33 INFO: Retrieving Pricing Info for: v3-standard-8 04:29:33 INFO: Archiving Costs [Pipeline] sh 04:29:34 + cat /w/workspace/gexfoundry_device-rest-go_PR-272/archives/cost.csv 04:29:34 + cut -d, -f6 [Pipeline] lock 04:29:34 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-272-2-stack-cost] 04:29:34 Resource [jenkins-edgexfoundry-device-rest-go-PR-272-2-stack-cost] did not exist. Created. 04:29:34 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-272-2-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 04:29:34 + echo total: 0.2199999988079071 [Pipeline] stash 04:29:34 Stashed 1 file(s) [Pipeline] } 04:29:34 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-272-2-stack-cost] [Pipeline] // lock [Pipeline] } 04:29:34 $ docker stop --time=1 8833d742d697dc357f58bdbc6977b5ac50b08fcd4a2909f42338dd709d4056dd 04:29:35 $ docker rm -f --volumes 8833d742d697dc357f58bdbc6977b5ac50b08fcd4a2909f42338dd709d4056dd [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 04:29:41 provisioning config files... 04:29:41 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/2@tmp/config13483704589371935497tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 04:29:42 ---> docker-login.sh 04:29:42 nexus3.edgexfoundry.org:10001 04:29:42 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:29:42 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:29:42 Configure a credential helper to remove this warning. See 04:29:42 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:29:42 04:29:42 Login Succeeded 04:29:42 nexus3.edgexfoundry.org:10002 04:29:43 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:29:43 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:29:43 Configure a credential helper to remove this warning. See 04:29:43 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:29:43 04:29:43 Login Succeeded 04:29:43 nexus3.edgexfoundry.org:10003 04:29:43 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:29:43 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:29:43 Configure a credential helper to remove this warning. See 04:29:43 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:29:43 04:29:43 Login Succeeded 04:29:43 nexus3.edgexfoundry.org:10004 04:29:43 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:29:43 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:29:43 Configure a credential helper to remove this warning. See 04:29:43 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:29:43 04:29:43 Login Succeeded 04:29:43 docker.io 04:29:44 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:29:44 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:29:44 Configure a credential helper to remove this warning. See 04:29:44 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:29:44 04:29:44 Login Succeeded 04:29:44 ---> docker-login.sh ends [Pipeline] } 04:29:44 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 04:29:44 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 04:29:44 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 04:29:44 ========================================================= 04:29:44 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine] 04:29:44 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:29:45 + 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:29:45 Sending build context to Docker daemon 138.2kB 04:29:45 Step 1/12 : ARG BASE=golang:1.20-alpine3.17 04:29:45 Step 2/12 : FROM ${BASE} AS builder 04:29:45 1.20-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 04:29:45 af6eaf76a39c: Pulling fs layer 04:29:45 55522c791124: Pulling fs layer 04:29:45 ce5c4a1c91eb: Pulling fs layer 04:29:45 169dfbe0d373: Pulling fs layer 04:29:45 e1ff8fa3b103: Pulling fs layer 04:29:45 52ebb69f0ebf: Pulling fs layer 04:29:45 5abe8eddf0d5: Pulling fs layer 04:29:45 169dfbe0d373: Waiting 04:29:45 e1ff8fa3b103: Waiting 04:29:45 52ebb69f0ebf: Waiting 04:29:45 5abe8eddf0d5: Waiting 04:29:45 55522c791124: Verifying Checksum 04:29:45 55522c791124: Download complete 04:29:45 169dfbe0d373: Verifying Checksum 04:29:45 169dfbe0d373: Download complete 04:29:45 e1ff8fa3b103: Verifying Checksum 04:29:45 e1ff8fa3b103: Download complete 04:29:45 af6eaf76a39c: Verifying Checksum 04:29:45 af6eaf76a39c: Download complete 04:29:46 af6eaf76a39c: Pull complete 04:29:46 5abe8eddf0d5: Verifying Checksum 04:29:46 5abe8eddf0d5: Download complete 04:29:47 55522c791124: Pull complete 04:29:47 52ebb69f0ebf: Verifying Checksum 04:29:47 52ebb69f0ebf: Download complete 04:29:47 ce5c4a1c91eb: Verifying Checksum 04:29:47 ce5c4a1c91eb: Download complete 04:29:57 ce5c4a1c91eb: Pull complete 04:29:57 169dfbe0d373: Pull complete 04:29:57 e1ff8fa3b103: Pull complete 04:30:04 52ebb69f0ebf: Pull complete 04:30:06 5abe8eddf0d5: Pull complete 04:30:06 Digest: sha256:978cc1420e451f27bd88fdeece3ad01a9109ec773b62f165dfc696fd516b3d8f 04:30:06 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine 04:30:06 ---> 6cb57ee374ae 04:30:06 Step 3/12 : ARG ADD_BUILD_TAGS="" 04:30:08 ---> Running in 6fef31cb3b2a 04:30:08 Removing intermediate container 6fef31cb3b2a 04:30:08 ---> 15cf08a7dda9 04:30:08 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 04:30:08 ---> Running in 352ff1c1d176 04:30:08 Removing intermediate container 352ff1c1d176 04:30:08 ---> e713bca42583 04:30:08 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 04:30:08 ---> Running in c857d950fae0 04:30:08 Removing intermediate container c857d950fae0 04:30:08 ---> d0f296d34f5f 04:30:08 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 04:30:09 ---> Running in 0c8a947e6c1b 04:30:09 Removing intermediate container 0c8a947e6c1b 04:30:09 ---> 72827d0f2484 04:30:09 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 04:30:09 ---> Running in 3d3faadfdef5 04:30:10 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 04:30:10 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 04:30:11 (1/4) Installing openssh-keygen (9.1_p1-r2) 04:30:11 (2/4) Installing libedit (20221030.3.1-r0) 04:30:11 (3/4) Installing openssh-client-common (9.1_p1-r2) 04:30:11 (4/4) Installing openssh-client-default (9.1_p1-r2) 04:30:11 Executing busybox-1.35.0-r29.trigger 04:30:12 OK: 268 MiB in 57 packages 04:30:13 Removing intermediate container 3d3faadfdef5 04:30:13 ---> 243ebde262e9 04:30:13 Step 8/12 : WORKDIR /device-rest-go 04:30:13 ---> Running in 6d99f0a16f20 04:30:13 Removing intermediate container 6d99f0a16f20 04:30:13 ---> 9af90f71103e 04:30:13 Step 9/12 : COPY go.mod vendor* ./ 04:30:13 ---> 96a119521b3b 04:30:13 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 04:30:13 ---> Running in 465ad0191069 04:31:21 Removing intermediate container 465ad0191069 04:31:21 ---> a2dcdc76c45f 04:31:21 Step 11/12 : COPY . . 04:31:21 ---> de9cae23553f 04:31:21 Step 12/12 : RUN $MAKE 04:31:21 ---> Running in 5532a1a72727 04:31:21 noop 04:31:21 Removing intermediate container 5532a1a72727 04:31:21 ---> 785f606ea925 04:31:21 Successfully built 785f606ea925 04:31:21 Successfully tagged ci-base-image-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:31:22 + docker inspect -f . ci-base-image-arm64 04:31:22 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 04:31:22 prd-ubuntu20.04-docker-arm64-4c-16g-4720 does not seem to be running inside a container 04:31:22 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/2 -v /w/workspace/device-rest-go/2:/w/workspace/device-rest-go/2:rw,z -v /w/workspace/device-rest-go/2@tmp:/w/workspace/device-rest-go/2@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 04:31:24 $ docker top 4c33349041267109b410dcc4279952ab99fca16db4d47bc73d1fb107a9c3859e -eo pid,comm [Pipeline] { [Pipeline] sh 04:31:25 + go version 04:31:25 go version go1.20.2 linux/arm64 [Pipeline] } 04:31:25 $ docker stop --time=1 4c33349041267109b410dcc4279952ab99fca16db4d47bc73d1fb107a9c3859e 04:31:26 $ docker rm -f --volumes 4c33349041267109b410dcc4279952ab99fca16db4d47bc73d1fb107a9c3859e [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:31:27 + docker inspect -f . ci-base-image-arm64 04:31:27 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 04:31:27 prd-ubuntu20.04-docker-arm64-4c-16g-4720 does not seem to be running inside a container 04:31:27 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged -v /var/run/docker.sock:/var/run/docker.sock -w /w/workspace/device-rest-go/2 -v /w/workspace/device-rest-go/2:/w/workspace/device-rest-go/2:rw,z -v /w/workspace/device-rest-go/2@tmp:/w/workspace/device-rest-go/2@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 04:31:28 $ docker top 55ef38ec176bd263da52f621a65d692904c951e84a9eac306316893ac68c3446 -eo pid,comm [Pipeline] { [Pipeline] sh 04:31:29 + git config --global --add safe.directory /w/workspace/device-rest-go/2 [Pipeline] fileExists [Pipeline] sh 04:31:29 + make test 04:31:29 go test ./... -coverprofile=coverage.out ./... 04:32:01 ? github.com/edgexfoundry/device-rest-go [no test files] 04:33:53 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 04:33:53 ok github.com/edgexfoundry/device-rest-go/driver 0.060s coverage: 33.0% of statements 04:33:53 WARNING: Linting skipped (not on x86_64 or linter not installed) 04:33:53 go vet ./... 04:34:25 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 04:34:25 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 04:34:25 ./bin/test-attribution-txt.sh [Pipeline] echo 04:34:25 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 04:34:25 $ docker stop --time=1 55ef38ec176bd263da52f621a65d692904c951e84a9eac306316893ac68c3446 04:34:27 $ docker rm -f --volumes 55ef38ec176bd263da52f621a65d692904c951e84a9eac306316893ac68c3446 [Pipeline] // withDockerContainer [Pipeline] sh 04:34:28 + sudo chown -R jenkins:jenkins . [Pipeline] stash 04:34:28 Warning: overwriting stash ‘coverage-report’ 04:34:29 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 04:34:29 + sudo chown -R jenkins:jenkins . [Pipeline] sh 04:34:29 + ls -al . 04:34:29 total 180 04:34:29 drwxrwxr-x 8 jenkins jenkins 4096 Mar 21 04:31 . 04:34:29 drwxrwxr-x 4 jenkins jenkins 4096 Mar 21 04:29 .. 04:34:29 -rw-rw-r-- 1 jenkins jenkins 151 Mar 21 04:29 .dockerignore 04:34:29 drwxrwxr-x 8 jenkins jenkins 4096 Mar 21 04:29 .git 04:34:29 drwxrwxr-x 3 jenkins jenkins 4096 Mar 21 04:29 .github 04:34:29 -rw-rw-r-- 1 jenkins jenkins 329 Mar 21 04:29 .gitignore 04:34:29 -rw-rw-r-- 1 jenkins jenkins 41 Mar 21 04:29 .golangci.yml 04:34:29 -rw-rw-r-- 1 jenkins jenkins 9321 Mar 21 04:29 Attribution.txt 04:34:29 -rw-rw-r-- 1 jenkins jenkins 13085 Mar 21 04:29 CHANGELOG.md 04:34:29 -rw-rw-r-- 1 jenkins jenkins 1578 Mar 21 04:29 Dockerfile 04:34:29 -rw-rw-r-- 1 jenkins jenkins 677 Mar 21 04:29 GOVERNANCE.md 04:34:29 -rw-rw-r-- 1 jenkins jenkins 680 Mar 21 04:29 Jenkinsfile 04:34:29 -rw-rw-r-- 1 jenkins jenkins 11340 Mar 21 04:29 LICENSE 04:34:29 -rw-rw-r-- 1 jenkins jenkins 1779 Mar 21 04:29 Makefile 04:34:29 -rw-rw-r-- 1 jenkins jenkins 620 Mar 21 04:29 OWNERS.md 04:34:29 -rw-rw-r-- 1 jenkins jenkins 15320 Mar 21 04:29 README.md 04:34:29 -rw-rw-r-- 1 jenkins jenkins 5 Mar 21 04:27 VERSION 04:34:29 drwxrwxr-x 2 jenkins jenkins 4096 Mar 21 04:29 bin 04:34:29 drwxrwxr-x 3 jenkins jenkins 4096 Mar 21 04:29 cmd 04:34:29 -rw-r--r-- 1 jenkins jenkins 14200 Mar 21 04:33 coverage.out 04:34:29 drwxrwxr-x 2 jenkins jenkins 4096 Mar 21 04:29 driver 04:34:29 -rw-rw-r-- 1 jenkins jenkins 3447 Mar 21 04:29 go.mod 04:34:29 -rw-rw-r-- 1 jenkins jenkins 31301 Mar 21 04:29 go.sum 04:34:29 drwxrwxr-x 4 jenkins jenkins 4096 Mar 21 04:29 snap 04:34:29 -rw-rw-r-- 1 jenkins jenkins 713 Mar 21 04:29 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:34:30 + 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=a9f8d9f939f37345898a2050de810d76c0875db0 --label arch=arm64 --label version=0.0.0 . 04:34:30 Sending build context to Docker daemon 153.1kB 04:34:30 Step 1/25 : ARG BASE=golang:1.20-alpine3.17 04:34:30 Step 2/25 : FROM ${BASE} AS builder 04:34:30 ---> 785f606ea925 04:34:30 Step 3/25 : ARG ADD_BUILD_TAGS="" 04:34:30 ---> Running in 6102c75624ca 04:34:31 Removing intermediate container 6102c75624ca 04:34:31 ---> caabd639017a 04:34:31 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 04:34:31 ---> Running in bf66d8379a71 04:34:31 Removing intermediate container bf66d8379a71 04:34:31 ---> 089d89ad5a89 04:34:31 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 04:34:31 ---> Running in 2f9feeba56ac 04:34:31 Removing intermediate container 2f9feeba56ac 04:34:31 ---> ad3125c42a83 04:34:31 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 04:34:31 ---> Running in 8978339db56e 04:34:32 Removing intermediate container 8978339db56e 04:34:32 ---> 760c8257025e 04:34:32 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 04:34:32 ---> Running in 01c440493be8 04:34:33 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 04:34:33 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 04:34:35 OK: 268 MiB in 57 packages 04:34:35 Removing intermediate container 01c440493be8 04:34:35 ---> 5f7aa21864e6 04:34:35 Step 8/25 : WORKDIR /device-rest-go 04:34:35 ---> Running in c6fdb279ce36 04:34:36 Removing intermediate container c6fdb279ce36 04:34:36 ---> 00c1d7e464d4 04:34:36 Step 9/25 : COPY go.mod vendor* ./ 04:34:36 ---> bfe737359ae2 04:34:36 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 04:34:36 ---> Running in 71fa31d41b41 04:34:39 Removing intermediate container 71fa31d41b41 04:34:39 ---> 6a0888c79b2d 04:34:39 Step 11/25 : COPY . . 04:34:39 ---> 0e246dc71544 04:34:39 Step 12/25 : RUN $MAKE 04:34:39 ---> Running in 8fcac96e2e86 04:34:40 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:36:47 Removing intermediate container 8fcac96e2e86 04:36:47 ---> 0f91e83b46aa 04:36:47 Step 13/25 : FROM alpine:3.17 04:36:47 3.17: Pulling from library/alpine 04:36:47 af6eaf76a39c: Already exists 04:36:47 Digest: sha256:ff6bdca1701f3a8a67e328815ff2346b0e4067d32ec36b7992c1fdc001dc8517 04:36:47 Status: Downloaded newer image for alpine:3.17 04:36:47 ---> d74e625d9115 04:36:47 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 04:36:47 ---> Running in 9a3ca2ea6863 04:36:47 Removing intermediate container 9a3ca2ea6863 04:36:47 ---> 2bb57bc847ef 04:36:47 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 04:36:47 ---> Running in e7ee0debd823 04:36:47 Removing intermediate container e7ee0debd823 04:36:47 ---> 2884c1013edc 04:36:47 Step 16/25 : RUN apk add --update --no-cache dumb-init 04:36:47 ---> Running in 7b57f601efac 04:36:47 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 04:36:47 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 04:36:47 (1/1) Installing dumb-init (1.2.5-r2) 04:36:47 Executing busybox-1.35.0-r29.trigger 04:36:47 OK: 8 MiB in 16 packages 04:36:47 Removing intermediate container 7b57f601efac 04:36:47 ---> 251bf1031496 04:36:47 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 04:36:49 ---> 95d8a8d8a0ca 04:36:49 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 04:36:49 ---> 3a08b6dba2f7 04:36:49 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 04:36:49 ---> 502f2102ec39 04:36:49 Step 20/25 : EXPOSE 59986 04:36:49 ---> Running in 913ef7d6c52c 04:36:50 Removing intermediate container 913ef7d6c52c 04:36:50 ---> c5b7d272e861 04:36:50 Step 21/25 : ENTRYPOINT ["/device-rest"] 04:36:50 ---> Running in 9fc985f869de 04:36:50 Removing intermediate container 9fc985f869de 04:36:50 ---> ba0fc4d7822d 04:36:50 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 04:36:50 ---> Running in 4a0a088e483f 04:36:50 Removing intermediate container 4a0a088e483f 04:36:50 ---> bfcd665c94de 04:36:50 Step 23/25 : LABEL arch=arm64 04:36:50 ---> Running in 2188fb95ac5e 04:36:51 Removing intermediate container 2188fb95ac5e 04:36:51 ---> 55800638ff52 04:36:51 Step 24/25 : LABEL git_sha=a9f8d9f939f37345898a2050de810d76c0875db0 04:36:51 ---> Running in e8a8eea8626a 04:36:51 Removing intermediate container e8a8eea8626a 04:36:51 ---> 7d69c6a9032f 04:36:51 Step 25/25 : LABEL version=0.0.0 04:36:51 ---> Running in 0bf3f1aada47 04:36:52 Removing intermediate container 0bf3f1aada47 04:36:52 ---> 97e9d304041e 04:36:52 [Warning] One or more build-args [ARCH] were not consumed 04:36:52 Successfully built 97e9d304041e 04:36:52 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:36:52 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 04:36:52 04:36:52 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:36:52 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 04:36:52 arm64: Pulling from edgex-lftools-log-publisher 04:36:52 8998bd30e6a1: Pulling fs layer 04:36:52 04944245beec: Pulling fs layer 04:36:52 699f458cf7ca: Pulling fs layer 04:36:52 765212b225bb: Pulling fs layer 04:36:52 f23df028b6ca: Pulling fs layer 04:36:52 d65c8cfc05b1: Pulling fs layer 04:36:52 2437ff75d9bd: Pulling fs layer 04:36:52 f23df028b6ca: Waiting 04:36:52 d65c8cfc05b1: Waiting 04:36:52 2437ff75d9bd: Waiting 04:36:52 765212b225bb: Waiting 04:36:53 04944245beec: Verifying Checksum 04:36:53 04944245beec: Download complete 04:36:53 765212b225bb: Download complete 04:36:53 f23df028b6ca: Download complete 04:36:53 d65c8cfc05b1: Download complete 04:36:53 699f458cf7ca: Verifying Checksum 04:36:53 699f458cf7ca: Download complete 04:36:53 8998bd30e6a1: Verifying Checksum 04:36:53 8998bd30e6a1: Download complete 04:36:55 2437ff75d9bd: Verifying Checksum 04:36:55 2437ff75d9bd: Download complete 04:36:57 8998bd30e6a1: Pull complete 04:36:57 04944245beec: Pull complete 04:36:59 699f458cf7ca: Pull complete 04:36:59 765212b225bb: Pull complete 04:36:59 f23df028b6ca: Pull complete 04:37:00 d65c8cfc05b1: Pull complete 04:37:15 2437ff75d9bd: Pull complete 04:37:15 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 04:37:15 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 04:37:15 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 04:37:15 prd-ubuntu20.04-docker-arm64-4c-16g-4720 does not seem to be running inside a container 04:37:15 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/device-rest-go/2 -v /w/workspace/device-rest-go/2:/w/workspace/device-rest-go/2:rw,z -v /w/workspace/device-rest-go/2@tmp:/w/workspace/device-rest-go/2@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 04:37:17 $ docker top fe9a82fe1ebd250b76fd59363804ae6c807234e6e3c38a9b3d56be5daea1d61b -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 04:37:18 ---> job-cost.sh 04:37:18 lf-activate-venv: SKIPPING 04:37:18 INFO: No Stack... 04:37:19 INFO: Retrieving Pricing Info for: v3-standard-4 04:37:19 INFO: Archiving Costs [Pipeline] sh 04:37:19 + + cutcat -d, /w/workspace/device-rest-go/2/archives/cost.csv -f6 04:37:19 [Pipeline] lock 04:37:20 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-272-2-stack-cost] 04:37:20 Resource [jenkins-edgexfoundry-device-rest-go-PR-272-2-stack-cost] did not exist. Created. 04:37:20 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-272-2-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 04:37:20 /w/workspace/device-rest-go/2@tmp/durable-2b279d0d/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 04:37:20 + echo total: 0.10999999940395355 [Pipeline] stash 04:37:20 Warning: overwriting stash ‘stack-cost’ 04:37:20 Stashed 1 file(s) [Pipeline] } 04:37:20 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-272-2-stack-cost] [Pipeline] // lock [Pipeline] } 04:37:20 $ docker stop --time=1 fe9a82fe1ebd250b76fd59363804ae6c807234e6e3c38a9b3d56be5daea1d61b 04:37:22 $ docker rm -f --volumes fe9a82fe1ebd250b76fd59363804ae6c807234e6e3c38a9b3d56be5daea1d61b [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:37:22 provisioning config files... 04:37:22 copy managed file [device-rest-go-codecov-token] to file:/w/workspace/gexfoundry_device-rest-go_PR-272@tmp/config14427114806699092517tmp [Pipeline] { [Pipeline] sh 04:37:22 + set +x 04:37:22 + curl -s https://codecov.io/bash 04:37:22 + bash -s -- 04:37:22 04:37:22 _____ _ 04:37:22 / ____| | | 04:37:22 | | ___ __| | ___ ___ _____ __ 04:37:22 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 04:37:22 | |___| (_) | (_| | __/ (_| (_) \ V / 04:37:22 \_____\___/ \__,_|\___|\___\___/ \_/ 04:37:22 Bash-1.0.6 04:37:22 04:37:22 04:37:22 ==> git version 2.25.1 found 04:37:22 ==> 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:37:22 Release-Date: 2020-01-08 04:37:22 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:37:22 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 04:37:22 ==> Jenkins CI detected. 04:37:22 current dir:  /w/workspace/gexfoundry_device-rest-go_PR-272 04:37:22 project root: . 04:37:22 --> token set from env 04:37:22 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 04:37:22 ==> Running gcov in . (disable via -X gcov) 04:37:22 ==> Python coveragepy not found 04:37:22 ==> Searching for coverage reports in: 04:37:22 + . 04:37:22 -> Found 1 reports 04:37:22 ==> Detecting git/mercurial file structure 04:37:22 ==> Reading reports 04:37:22 + ./coverage.out bytes=14200 04:37:23 ==> Appending adjustments 04:37:23 https://docs.codecov.io/docs/fixing-reports 04:37:23 + Found adjustments 04:37:23 ==> Gzipping contents 04:37:23 4.0K /tmp/codecov.bLpwPq.gz 04:37:23 ==> Uploading reports 04:37:23 url: https://codecov.io 04:37:23 query: branch=PR-272&commit=a9f8d9f939f37345898a2050de810d76c0875db0&build=2&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-272%2F2%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=272&job=&cmd_args= 04:37:23 -> Pinging Codecov 04:37:23 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=a9f8d9f939f37345898a2050de810d76c0875db0&build=2&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-272%2F2%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=272&job=&cmd_args= 04:37:23 -> Uploading to 04:37:23 https://storage.googleapis.com/codecov/v4/raw/2023-03-21/4E5D53B4F1F92C436F7061BF334D961C/a9f8d9f939f37345898a2050de810d76c0875db0/c6dcd45b-a90f-4f1a-a5f9-6acd0619d3e5.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20230321%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20230321T043723Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=7cc79ab6518e270352a09386861dd5e3da833dcc831bc0b48f27ba8af39a34f9 04:37:23 % Total % Received % Xferd Average Speed Time Time Time Current 04:37:23 Dload Upload Total Spent Left Speed 04:37:23 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 2431 0 0 100 2431 0 11000 --:--:-- --:--:-- --:--:-- 10950 100 2431 0 0 100 2431 0 8240 --:--:-- --:--:-- --:--:-- 8212 04:37:23 -> Reports have been successfully queued for processing at https://app.codecov.io/github/edgexfoundry/device-rest-go/commit/a9f8d9f939f37345898a2050de810d76c0875db0 [Pipeline] } 04:37:23 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:37:24 + [ -d /w/workspace/gexfoundry_device-rest-go_PR-272/archives ] 04:37:24 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-272/archives 04:37:24 total 16 04:37:24 drwxr-xr-x 3 root root 4096 Mar 21 04:29 . 04:37:24 drwxrwxr-x 10 jenkins jenkins 4096 Mar 21 04:29 .. 04:37:24 drwxr-xr-x 2 root root 4096 Mar 21 04:29 cost 04:37:24 -rw-r--r-- 1 root root 86 Mar 21 04:29 cost.csv 04:37:24 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-rest-go_PR-272/archives 04:37:24 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-272/archives 04:37:24 total 16 04:37:24 drwxr-xr-x 3 jenkins jenkins 4096 Mar 21 04:29 . 04:37:24 drwxrwxr-x 10 jenkins jenkins 4096 Mar 21 04:29 .. 04:37:24 drwxr-xr-x 2 jenkins jenkins 4096 Mar 21 04:29 cost 04:37:24 -rw-r--r-- 1 jenkins jenkins 86 Mar 21 04:29 cost.csv [Pipeline] libraryResource [Pipeline] sh 04:37:24 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 04:37:25 ---> package-listing.sh 04:37:25 ++ facter osfamily 04:37:25 ++ tr '[:upper:]' '[:lower:]' 04:37:25 + OS_FAMILY=debian 04:37:25 + workspace=/w/workspace/gexfoundry_device-rest-go_PR-272 04:37:25 + START_PACKAGES=/tmp/packages_start.txt 04:37:25 + END_PACKAGES=/tmp/packages_end.txt 04:37:25 + DIFF_PACKAGES=/tmp/packages_diff.txt 04:37:25 + PACKAGES=/tmp/packages_start.txt 04:37:25 + '[' /w/workspace/gexfoundry_device-rest-go_PR-272 ']' 04:37:25 + PACKAGES=/tmp/packages_end.txt 04:37:25 + case "${OS_FAMILY}" in 04:37:25 + dpkg -l 04:37:25 + grep '^ii' 04:37:25 + '[' -f /tmp/packages_start.txt ']' 04:37:25 + '[' -f /tmp/packages_end.txt ']' 04:37:25 + diff /tmp/packages_start.txt /tmp/packages_end.txt 04:37:25 + '[' /w/workspace/gexfoundry_device-rest-go_PR-272 ']' 04:37:25 + mkdir -p /w/workspace/gexfoundry_device-rest-go_PR-272/archives/ 04:37:25 + 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:37:25 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:37:25 + facter operatingsystem [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:37:26 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 04:37:26 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 04:37:26 prd-ubuntu20.04-docker-8c-8g-4719 does not seem to be running inside a container 04:37:26 $ 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 ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 04:37:26 $ docker top bc77fb0352a6747ac5dda4a39437aa91fb1484541af89e7153405d7da926d99f -eo pid,comm [Pipeline] { [Pipeline] sh 04:37:27 + touch /tmp/pre-build-complete [Pipeline] sh 04:37:27 + mkdir -p /var/log/sysstat [Pipeline] sh 04:37:27 + ls /var/log/sa-host 04:37:27 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 04:37:27 provisioning config files... 04:37:27 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-272@tmp/config7431298195751767441tmp [Pipeline] { [Pipeline] echo 04:37:27 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 04:37:28 ---> create-netrc.sh [Pipeline] } 04:37:28 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 04:37:28 ---> python-tools-install.sh [Pipeline] echo 04:37:28 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 04:37:28 ---> sudo-logs.sh 04:37:28 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 04:37:28 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 04:37:29 ---> job-cost.sh 04:37:29 lf-activate-venv: SKIPPING 04:37:29 DEBUG: total: 0.2199999988079071 04:37:29 INFO: Retrieving Stack Cost... 04:37:29 INFO: Retrieving Pricing Info for: v3-standard-8 04:37:29 INFO: Archiving Costs [Pipeline] echo 04:37:29 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 04:37:30 ---> logs-deploy.sh 04:37:30 lf-activate-venv: SKIPPING 04:37:30 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-272/2 04:37:30 INFO: archiving workspace using pattern(s): 04:37:31 Archives upload complete. 04:37:31 INFO: archiving logs to Nexus