Pull request #283 opened Connecting to https://api.github.com using edgex-jenkins github personal access token Obtained Jenkinsfile from b390f61bd8c883d6ae2464f8d0075887d57bcafb+fdf83baee4837586abd899036d884868d7632e86 (f2168c0e34e80f23c3b58c2022ba6d2396dee11b) 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-ssh13203304649225130577.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-ssh15710448983977409105.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 Cloning the remote Git repository Cloning with configured refspecs honoured and with tags Cloning repository git@github.com:edgexfoundry/edgex-global-pipelines.git > git init /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-283/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82 # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/edgex-global-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-283/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh268775279713032647.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 > git config --add remote.origin.fetch +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Fetching with tags Fetching upstream changes from git@github.com:edgexfoundry/edgex-global-pipelines.git using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-283/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh3153959798563567019.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 > git --version # timeout=10 > git --version # 'git version 2.16.6' Excluding src/test/ from checkout of git git@github.com:edgexfoundry/edgex-global-pipelines.git so that library test code cannot be accessed by Pipelines. To remove this log message, move the test code outside of src/. To restore the previous behavior that allowed access to files in src/test/, pass -Dorg.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.INCLUDE_SRC_TEST_IN_LIBRARIES=true to the java command used to start Jenkins. Loading library lf-pipelines@master Attempting to resolve master from remote references... > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /tmp/jenkins-gitclient-ssh11071703868733986809.key > git ls-remote -h -- git@github.com:lfit/releng-pipelines.git # timeout=10 Found match: refs/heads/master revision 65355178549468b165f8106641c96c3190b1d843 The recommended git tool is: NONE using credential edgex-jenkins-ssh Cloning the remote Git repository Cloning with configured refspecs honoured and without tags Cloning repository git@github.com:lfit/releng-pipelines.git > git init /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-283/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e # timeout=10 Fetching upstream changes from git@github.com:lfit/releng-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-283/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e@tmp/jenkins-gitclient-ssh8716083014294808008.key > git fetch --no-tags --progress -- git@github.com:lfit/releng-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:lfit/releng-pipelines.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 Avoid second fetch Checking out Revision 65355178549468b165f8106641c96c3190b1d843 (master) > git config core.sparsecheckout # timeout=10 > git checkout -f 65355178549468b165f8106641c96c3190b1d843 # timeout=10 Commit message: "Fix: Add S3 URL in href to ship logs" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 > git --version # timeout=10 > git --version # 'git version 2.16.6' fatal: bad object 66200e8eedfc470904d6b329e562ec5b45423d6a 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-6096’ Running on prd-ubuntu20.04-docker-8c-8g-6100 in /w/workspace/gexfoundry_device-rest-go_PR-283 [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-283 # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git > git --version # timeout=10 > git --version # 'git version 2.25.1' using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/283/head:refs/remotes/origin/PR-283 +refs/heads/main:refs/remotes/origin/main # timeout=10 Merging remotes/origin/main commit fdf83baee4837586abd899036d884868d7632e86 into PR head commit b390f61bd8c883d6ae2464f8d0075887d57bcafb Merge succeeded, producing b390f61bd8c883d6ae2464f8d0075887d57bcafb Checking out Revision b390f61bd8c883d6ae2464f8d0075887d57bcafb (PR-283) Commit message: "build(deps): Bump github.com/edgexfoundry/go-mod-core-contracts/v3" First time build. Skipping changelog. > git --version # timeout=10 > git --version # 'git version 2.25.1' fatal: bad object 66200e8eedfc470904d6b329e562ec5b45423d6a [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 19:51:20 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { > git config core.sparsecheckout # timeout=10 > git checkout -f b390f61bd8c883d6ae2464f8d0075887d57bcafb # 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 fdf83baee4837586abd899036d884868d7632e86 # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f b390f61bd8c883d6ae2464f8d0075887d57bcafb # timeout=10 [Pipeline] withCredentials 19:51:20 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 19:51:20 ========================================================= 19:51:20 EdgeX Global Pipelines Version Info 19:51:20 ========================================================= [Pipeline] libraryResource [Pipeline] sh 19:51:21 ------------------- 19:51:21 stable info: 19:51:21 ------------------- 19:51:21 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 19:51:21 Commit SHA: 66200e8eedfc470904d6b329e562ec5b45423d6a 19:51:21 Message: update stable to v1.0.245 19:51:21 ------------------- 19:51:21 experimental info: 19:51:21 ------------------- 19:51:21 Commited By: **** collab-it+edgex@linuxfoundation.org 19:51:21 Commit SHA: 046ad6d0e2e636d38ea4daf53c055316476b9501 19:51:21 Message: update experimental to v1.0.247 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 19:51:22 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 19:51:22 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 19:51:22 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 19:51:22 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 19:51:22 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 19:51:22 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.20 [Pipeline] echo 19:51:22 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 19:51:22 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 19:51:22 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 19:51:22 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 19:51:22 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 19:51:22 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 19:51:22 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 19:51:22 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 19:51:22 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 19:51:22 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 19:51:22 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 19:51:22 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 19:51:22 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 19:51:22 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 19:51:22 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 19:51:23 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 19:51:23 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 19:51:23 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 19:51:23 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 19:51:23 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 19:51:23 [edgeXSetupEnvironment]: set envvar SNYK_DEBUG = false [Pipeline] echo 19:51:23 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-283 [Pipeline] echo 19:51:23 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-283 [Pipeline] echo 19:51:23 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-283 [Pipeline] echo 19:51:23 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = b390f61bd8c883d6ae2464f8d0075887d57bcafb [Pipeline] echo 19:51:23 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = b390f61 [Pipeline] echo 19:51:23 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 19:51:23 provisioning config files... 19:51:23 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-283@tmp/config5592651711199731838tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 19:51:23 ---> docker-login.sh 19:51:23 nexus3.edgexfoundry.org:10001 19:51:23 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 19:51:24 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 19:51:24 Configure a credential helper to remove this warning. See 19:51:24 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 19:51:24 19:51:24 Login Succeeded 19:51:24 nexus3.edgexfoundry.org:10002 19:51:24 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 19:51:24 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 19:51:24 Configure a credential helper to remove this warning. See 19:51:24 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 19:51:24 19:51:24 Login Succeeded 19:51:24 nexus3.edgexfoundry.org:10003 19:51:24 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 19:51:24 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 19:51:24 Configure a credential helper to remove this warning. See 19:51:24 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 19:51:24 19:51:24 Login Succeeded 19:51:24 nexus3.edgexfoundry.org:10004 19:51:24 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 19:51:24 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 19:51:24 Configure a credential helper to remove this warning. See 19:51:24 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 19:51:24 19:51:24 Login Succeeded 19:51:24 docker.io 19:51:24 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 19:51:25 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 19:51:25 Configure a credential helper to remove this warning. See 19:51:25 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 19:51:25 19:51:25 Login Succeeded 19:51:25 ---> docker-login.sh ends [Pipeline] } 19:51:25 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 19:51:26 + git rev-list -1 --merges b390f61bd8c883d6ae2464f8d0075887d57bcafb~1..b390f61bd8c883d6ae2464f8d0075887d57bcafb [Pipeline] echo 19:51:26 -----------> git rev-list -1 --merges b390f61bd8c883d6ae2464f8d0075887d57bcafb~1..b390f61bd8c883d6ae2464f8d0075887d57bcafb b390f61bd8c883d6ae2464f8d0075887d57bcafb [false] [Pipeline] sh 19:51:26 + git log --format=format:%s -1 b390f61bd8c883d6ae2464f8d0075887d57bcafb [Pipeline] echo 19:51:26 ========================================================= 19:51:26 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 19:51:26 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 19:51:27 + git log --format=format:%s -1 b390f61bd8c883d6ae2464f8d0075887d57bcafb [Pipeline] echo 19:51:27 [semverPrep] GIT_COMMIT: b390f61bd8c883d6ae2464f8d0075887d57bcafb, Commit Message: build(deps): Bump github.com/edgexfoundry/go-mod-core-contracts/v3 [Pipeline] echo 19:51:27 [semverPrep] This is not a build commit. [Pipeline] sh 19:51:27 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 19:51:27 + grep -v github /etc/ssh/ssh_known_hosts 19:51:27 + [ -e /tmp/ssh_known_hosts ] 19:51:27 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 19:51:27 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 19:51:27 + sudo tee -a /etc/ssh/ssh_known_hosts 19:51:27 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 19:51:28 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 19:51:28 19:51:28 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 19:51:28 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 19:51:28 0.1.4: Pulling from edgex-devops/py-git-semver 19:51:28 b85a868b505f: Pulling fs layer 19:51:28 e2be974225ed: Pulling fs layer 19:51:28 339a4e72a1f5: Pulling fs layer 19:51:28 988bab9f4d93: Pulling fs layer 19:51:28 1469e6f7b9e6: Pulling fs layer 19:51:28 eaf3925da568: Pulling fs layer 19:51:28 bab4dde63d76: Pulling fs layer 19:51:28 bde34c3a00c8: Pulling fs layer 19:51:28 b352a97aabf1: Pulling fs layer 19:51:28 4872d77fe225: Pulling fs layer 19:51:28 5851b861e8e6: Pulling fs layer 19:51:28 bab4dde63d76: Waiting 19:51:28 b352a97aabf1: Waiting 19:51:28 bde34c3a00c8: Waiting 19:51:28 988bab9f4d93: Waiting 19:51:28 5851b861e8e6: Waiting 19:51:28 1469e6f7b9e6: Waiting 19:51:28 eaf3925da568: Waiting 19:51:28 e2be974225ed: Download complete 19:51:28 988bab9f4d93: Verifying Checksum 19:51:28 988bab9f4d93: Download complete 19:51:28 339a4e72a1f5: Verifying Checksum 19:51:28 339a4e72a1f5: Download complete 19:51:28 1469e6f7b9e6: Verifying Checksum 19:51:28 1469e6f7b9e6: Download complete 19:51:28 eaf3925da568: Verifying Checksum 19:51:28 eaf3925da568: Download complete 19:51:28 bde34c3a00c8: Download complete 19:51:28 b352a97aabf1: Verifying Checksum 19:51:28 b352a97aabf1: Download complete 19:51:28 4872d77fe225: Verifying Checksum 19:51:28 4872d77fe225: Download complete 19:51:28 5851b861e8e6: Verifying Checksum 19:51:28 5851b861e8e6: Download complete 19:51:28 b85a868b505f: Verifying Checksum 19:51:28 b85a868b505f: Download complete 19:51:29 bab4dde63d76: Verifying Checksum 19:51:29 bab4dde63d76: Download complete 19:51:30 b85a868b505f: Pull complete 19:51:30 e2be974225ed: Pull complete 19:51:30 339a4e72a1f5: Pull complete 19:51:30 988bab9f4d93: Pull complete 19:51:30 1469e6f7b9e6: Pull complete 19:51:30 eaf3925da568: Pull complete 19:51:32 bab4dde63d76: Pull complete 19:51:32 bde34c3a00c8: Pull complete 19:51:32 b352a97aabf1: Pull complete 19:51:32 4872d77fe225: Pull complete 19:51:32 5851b861e8e6: Pull complete 19:51:32 Digest: sha256:59a28aa3b44c0bc56b9c3d2e9ecabe42e63693d939cc6e425eb8786f29f663d8 19:51:32 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 19:51:32 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 19:51:33 prd-ubuntu20.04-docker-8c-8g-6100 does not seem to be running inside a container 19:51:33 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/gexfoundry_device-rest-go_PR-283 -v /w/workspace/gexfoundry_device-rest-go_PR-283:/w/workspace/gexfoundry_device-rest-go_PR-283:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-283@tmp:/w/workspace/gexfoundry_device-rest-go_PR-283@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 cat 19:51:34 $ docker top f945d4f5e4d8116a35ca667e04997011c0278b8ad4de5e226f22a88cd6a18cef -eo pid,comm 19:51:34 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). 19:51:34 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 19:51:34 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 19:51:34 [ssh-agent] Looking for ssh-agent implementation... 19:51:34 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 19:51:34 $ docker exec f945d4f5e4d8116a35ca667e04997011c0278b8ad4de5e226f22a88cd6a18cef ssh-agent 19:51:34 SSH_AUTH_SOCK=/tmp/ssh-dMdehvh34uux/agent.32 19:51:34 SSH_AGENT_PID=38 19:51:34 Running ssh-add (command line suppressed) 19:51:34 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-283@tmp/private_key_9100122917656925032.key (/w/workspace/gexfoundry_device-rest-go_PR-283@tmp/private_key_9100122917656925032.key) 19:51:34 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 19:51:35 + git tag --points-at HEAD [Pipeline] } 19:51:35 $ docker exec --env ******** --env ******** f945d4f5e4d8116a35ca667e04997011c0278b8ad4de5e226f22a88cd6a18cef ssh-agent -k 19:51:35 unset SSH_AUTH_SOCK; 19:51:35 unset SSH_AGENT_PID; 19:51:35 echo Agent pid 38 killed; 19:51:35 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 19:51:35 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 19:51:35 [ssh-agent] Looking for ssh-agent implementation... 19:51:35 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 19:51:35 $ docker exec f945d4f5e4d8116a35ca667e04997011c0278b8ad4de5e226f22a88cd6a18cef ssh-agent 19:51:35 SSH_AUTH_SOCK=/tmp/ssh-7rdcEjObtUqN/agent.70 19:51:35 SSH_AGENT_PID=76 19:51:35 Running ssh-add (command line suppressed) 19:51:35 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-283@tmp/private_key_10479103538134872899.key (/w/workspace/gexfoundry_device-rest-go_PR-283@tmp/private_key_10479103538134872899.key) 19:51:35 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 19:51:36 + git semver init 19:51:36 2023-03-28 19:51:36,317 [run_init] DEBUG init version:0.0.0 force:False 19:51:36 2023-03-28 19:51:36,318 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/gexfoundry_device-rest-go_PR-283/.semver 19:51:36 2023-03-28 19:51:36,319 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-rest-go.git /w/workspace/gexfoundry_device-rest-go_PR-283/.semver 19:51:36 2023-03-28 19:51:36,319 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-rest-go.git', '/w/workspace/gexfoundry_device-rest-go_PR-283/.semver'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-283, universal_newlines=False, shell=None, istream=None) 19:51:37 2023-03-28 19:51:37,256 [append_file] DEBUG append to file:/w/workspace/gexfoundry_device-rest-go_PR-283/.git/info/exclude 19:51:37 2023-03-28 19:51:37,257 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/gexfoundry_device-rest-go_PR-283/.semver/PR-283 with force:False 19:51:37 2023-03-28 19:51:37,257 [write_file] DEBUG write to file:/w/workspace/gexfoundry_device-rest-go_PR-283/.semver/PR-283 19:51:37 2023-03-28 19:51:37,262 [execute] INFO git cat-file --batch-check 19:51:37 2023-03-28 19:51:37,263 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-283/.semver, universal_newlines=False, shell=None, istream=) 19:51:37 2023-03-28 19:51:37,270 [execute] INFO git cat-file --batch 19:51:37 2023-03-28 19:51:37,271 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-283/.semver, universal_newlines=False, shell=None, istream=) 19:51:37 2023-03-28 19:51:37,276 [read_version] DEBUG read version from /w/workspace/gexfoundry_device-rest-go_PR-283/.semver/PR-283 19:51:37 0.0.0 [Pipeline] } 19:51:37 $ docker exec --env ******** --env ******** f945d4f5e4d8116a35ca667e04997011c0278b8ad4de5e226f22a88cd6a18cef ssh-agent -k 19:51:37 unset SSH_AUTH_SOCK; 19:51:37 unset SSH_AGENT_PID; 19:51:37 echo Agent pid 76 killed; 19:51:37 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 19:51:37 + git semver [Pipeline] } 19:51:38 $ docker stop --time=1 f945d4f5e4d8116a35ca667e04997011c0278b8ad4de5e226f22a88cd6a18cef 19:51:39 $ docker rm -f --volumes f945d4f5e4d8116a35ca667e04997011c0278b8ad4de5e226f22a88cd6a18cef [Pipeline] // withDockerContainer [Pipeline] sh 19:51:39 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 19:51:40 Stashed 1 file(s) [Pipeline] echo 19:51:40 [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 19:51:40 provisioning config files... 19:51:40 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-283@tmp/config13808344553181695936tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 19:51:41 ---> docker-login.sh 19:51:41 nexus3.edgexfoundry.org:10001 19:51:41 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 19:51:41 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 19:51:41 Configure a credential helper to remove this warning. See 19:51:41 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 19:51:41 19:51:41 Login Succeeded 19:51:41 nexus3.edgexfoundry.org:10002 19:51:41 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 19:51:41 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 19:51:41 Configure a credential helper to remove this warning. See 19:51:41 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 19:51:41 19:51:41 Login Succeeded 19:51:41 nexus3.edgexfoundry.org:10003 19:51:41 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 19:51:41 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 19:51:41 Configure a credential helper to remove this warning. See 19:51:41 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 19:51:41 19:51:41 Login Succeeded 19:51:41 nexus3.edgexfoundry.org:10004 19:51:41 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 19:51:41 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 19:51:41 Configure a credential helper to remove this warning. See 19:51:41 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 19:51:41 19:51:41 Login Succeeded 19:51:41 docker.io 19:51:41 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 19:51:41 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 19:51:41 Configure a credential helper to remove this warning. See 19:51:41 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 19:51:41 19:51:41 Login Succeeded 19:51:41 ---> docker-login.sh ends [Pipeline] } 19:51:41 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 19:51:41 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 19:51:41 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 19:51:41 ========================================================= 19:51:41 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine] 19:51:41 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 19:51:42 + 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 . 19:51:42 Sending build context to Docker daemon 10.88MB 19:51:42 Step 1/12 : ARG BASE=golang:1.20-alpine3.17 19:51:42 Step 2/12 : FROM ${BASE} AS builder 19:51:42 1.20-alpine: Pulling from edgex-devops/edgex-golang-base 19:51:42 63b65145d645: Pulling fs layer 19:51:42 a2d21d5440eb: Pulling fs layer 19:51:42 935e6c44a52c: Pulling fs layer 19:51:42 94cc34f8dd06: Pulling fs layer 19:51:42 30dea6a524f1: Pulling fs layer 19:51:42 a2aff8979fd8: Pulling fs layer 19:51:42 6808be2612f2: Pulling fs layer 19:51:42 f25807f1079a: Pulling fs layer 19:51:42 94cc34f8dd06: Waiting 19:51:42 30dea6a524f1: Waiting 19:51:42 f25807f1079a: Waiting 19:51:42 a2aff8979fd8: Waiting 19:51:42 6808be2612f2: Waiting 19:51:42 a2d21d5440eb: Verifying Checksum 19:51:42 a2d21d5440eb: Download complete 19:51:42 94cc34f8dd06: Verifying Checksum 19:51:42 94cc34f8dd06: Download complete 19:51:42 30dea6a524f1: Download complete 19:51:42 63b65145d645: Verifying Checksum 19:51:42 63b65145d645: Download complete 19:51:42 a2aff8979fd8: Verifying Checksum 19:51:42 a2aff8979fd8: Download complete 19:51:42 63b65145d645: Pull complete 19:51:42 a2d21d5440eb: Pull complete 19:51:42 f25807f1079a: Verifying Checksum 19:51:42 f25807f1079a: Download complete 19:51:43 935e6c44a52c: Verifying Checksum 19:51:43 935e6c44a52c: Download complete 19:51:43 6808be2612f2: Verifying Checksum 19:51:43 6808be2612f2: Download complete 19:51:45 935e6c44a52c: Pull complete 19:51:46 94cc34f8dd06: Pull complete 19:51:46 30dea6a524f1: Pull complete 19:51:46 a2aff8979fd8: Pull complete 19:51:48 6808be2612f2: Pull complete 19:51:49 f25807f1079a: Pull complete 19:51:49 Digest: sha256:106942793af8b5907f587008084bb0888cadbc76d86ebd37d4d3227fb0f1e438 19:51:49 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine 19:51:49 ---> 3b553350e43f 19:51:49 Step 3/12 : ARG ADD_BUILD_TAGS="" 19:51:50 ---> Running in db016f76c69c 19:51:50 Removing intermediate container db016f76c69c 19:51:50 ---> 3aab8a94ab5b 19:51:50 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 19:51:50 ---> Running in a0b2af008b64 19:51:50 Removing intermediate container a0b2af008b64 19:51:50 ---> e6987a07dc7e 19:51:50 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 19:51:51 ---> Running in 5be775d476c8 19:51:51 Removing intermediate container 5be775d476c8 19:51:51 ---> 287c0de8ddb7 19:51:51 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 19:51:51 ---> Running in c942300aec6c 19:51:51 Removing intermediate container c942300aec6c 19:51:51 ---> 75cf338ea7fa 19:51:51 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 19:51:51 ---> Running in ee0472115c03 19:51:51 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 19:51:51 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 19:51:51 (1/4) Installing openssh-keygen (9.1_p1-r2) 19:51:51 (2/4) Installing libedit (20221030.3.1-r0) 19:51:51 (3/4) Installing openssh-client-common (9.1_p1-r2) 19:51:51 (4/4) Installing openssh-client-default (9.1_p1-r2) 19:51:51 Executing busybox-1.35.0-r29.trigger 19:51:51 OK: 269 MiB in 57 packages 19:51:52 Removing intermediate container ee0472115c03 19:51:52 ---> fd1892ce33cf 19:51:52 Step 8/12 : WORKDIR /device-rest-go 19:51:52 ---> Running in 46662ccf2f92 19:51:52 Removing intermediate container 46662ccf2f92 19:51:52 ---> be152e2b3617 19:51:52 Step 9/12 : COPY go.mod vendor* ./ 19:51:52 ---> 1735d17d4bce 19:51:52 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 19:51:52 ---> Running in 7de0c2c00913 19:51:55 Still waiting to schedule task 19:51:55 Waiting for next available executor on ‘prd-ubuntu20.04-docker-arm64-4c-16g-6098’ 19:52:10 Removing intermediate container 7de0c2c00913 19:52:10 ---> 7be78d703e24 19:52:10 Step 11/12 : COPY . . 19:52:10 ---> 167cde2f04ea 19:52:10 Step 12/12 : RUN $MAKE 19:52:10 ---> Running in e8f63aeba839 19:52:10 noop 19:52:11 Removing intermediate container e8f63aeba839 19:52:11 ---> 51afdc28f277 19:52:11 Successfully built 51afdc28f277 19:52:11 Successfully tagged ci-base-image-x86_64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 19:52:11 + docker inspect -f . ci-base-image-x86_64 19:52:11 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 19:52:11 prd-ubuntu20.04-docker-8c-8g-6100 does not seem to be running inside a container 19:52:11 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-283 -v /w/workspace/gexfoundry_device-rest-go_PR-283:/w/workspace/gexfoundry_device-rest-go_PR-283:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-283@tmp:/w/workspace/gexfoundry_device-rest-go_PR-283@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 19:52:12 $ docker top 57aecdee485268a3ef8d8c52a5065189dc34f2da72bb422c29882f9687fff0da -eo pid,comm [Pipeline] { [Pipeline] sh 19:52:12 + go version 19:52:12 go version go1.20.2 linux/amd64 [Pipeline] } 19:52:12 $ docker stop --time=1 57aecdee485268a3ef8d8c52a5065189dc34f2da72bb422c29882f9687fff0da 19:52:13 $ docker rm -f --volumes 57aecdee485268a3ef8d8c52a5065189dc34f2da72bb422c29882f9687fff0da [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 19:52:14 + docker inspect -f . ci-base-image-x86_64 19:52:14 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 19:52:14 prd-ubuntu20.04-docker-8c-8g-6100 does not seem to be running inside a container 19:52:14 $ 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-283 -v /w/workspace/gexfoundry_device-rest-go_PR-283:/w/workspace/gexfoundry_device-rest-go_PR-283:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-283@tmp:/w/workspace/gexfoundry_device-rest-go_PR-283@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 19:52:15 $ docker top 69d22735e801d3436065de730310dce8499fbfd123aa935c7201e83a05a6d8e3 -eo pid,comm [Pipeline] { [Pipeline] sh 19:52:15 + git config --global --add safe.directory /w/workspace/gexfoundry_device-rest-go_PR-283 [Pipeline] fileExists [Pipeline] sh 19:52:15 + make test 19:52:15 go test ./... -coverprofile=coverage.out ./... 19:52:19 ? github.com/edgexfoundry/device-rest-go [no test files] 19:52:30 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 19:52:30 ok github.com/edgexfoundry/device-rest-go/driver 0.014s coverage: 33.0% of statements 19:52:35 go vet ./... 19:52:38 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 19:52:38 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 19:52:38 ./bin/test-attribution-txt.sh [Pipeline] echo 19:52:38 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 19:52:38 $ docker stop --time=1 69d22735e801d3436065de730310dce8499fbfd123aa935c7201e83a05a6d8e3 19:52:40 $ docker rm -f --volumes 69d22735e801d3436065de730310dce8499fbfd123aa935c7201e83a05a6d8e3 [Pipeline] // withDockerContainer [Pipeline] sh 19:52:41 + sudo chown -R jenkins:jenkins . [Pipeline] stash 19:52:41 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 19:52:42 + sudo chown -R jenkins:jenkins . [Pipeline] sh 19:52:42 + ls -al . 19:52:42 total 184 19:52:42 drwxrwxr-x 9 jenkins jenkins 4096 Mar 28 19:52 . 19:52:42 drwxrwxr-x 4 jenkins jenkins 4096 Mar 28 19:51 .. 19:52:42 -rw-rw-r-- 1 jenkins jenkins 151 Mar 28 19:51 .dockerignore 19:52:42 drwxrwxr-x 8 jenkins jenkins 4096 Mar 28 19:51 .git 19:52:42 drwxrwxr-x 3 jenkins jenkins 4096 Mar 28 19:51 .github 19:52:42 -rw-rw-r-- 1 jenkins jenkins 329 Mar 28 19:51 .gitignore 19:52:42 -rw-rw-r-- 1 jenkins jenkins 41 Mar 28 19:51 .golangci.yml 19:52:42 drwxr-xr-x 3 jenkins jenkins 4096 Mar 28 19:51 .semver 19:52:42 -rw-rw-r-- 1 jenkins jenkins 9202 Mar 28 19:51 Attribution.txt 19:52:42 -rw-rw-r-- 1 jenkins jenkins 13085 Mar 28 19:51 CHANGELOG.md 19:52:42 -rw-rw-r-- 1 jenkins jenkins 1578 Mar 28 19:51 Dockerfile 19:52:42 -rw-rw-r-- 1 jenkins jenkins 677 Mar 28 19:51 GOVERNANCE.md 19:52:42 -rw-rw-r-- 1 jenkins jenkins 680 Mar 28 19:51 Jenkinsfile 19:52:42 -rw-rw-r-- 1 jenkins jenkins 11340 Mar 28 19:51 LICENSE 19:52:42 -rw-rw-r-- 1 jenkins jenkins 1779 Mar 28 19:51 Makefile 19:52:42 -rw-rw-r-- 1 jenkins jenkins 620 Mar 28 19:51 OWNERS.md 19:52:42 -rw-rw-r-- 1 jenkins jenkins 15321 Mar 28 19:51 README.md 19:52:42 -rw-rw-r-- 1 jenkins jenkins 5 Mar 28 19:51 VERSION 19:52:42 drwxrwxr-x 2 jenkins jenkins 4096 Mar 28 19:51 bin 19:52:42 drwxrwxr-x 3 jenkins jenkins 4096 Mar 28 19:51 cmd 19:52:42 -rw-r--r-- 1 jenkins jenkins 14200 Mar 28 19:52 coverage.out 19:52:42 drwxrwxr-x 2 jenkins jenkins 4096 Mar 28 19:51 driver 19:52:42 -rw-rw-r-- 1 jenkins jenkins 3399 Mar 28 19:51 go.mod 19:52:42 -rw-rw-r-- 1 jenkins jenkins 31153 Mar 28 19:51 go.sum 19:52:42 drwxrwxr-x 4 jenkins jenkins 4096 Mar 28 19:51 snap 19:52:42 -rw-rw-r-- 1 jenkins jenkins 713 Mar 28 19:51 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 19:52:42 + 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=b390f61bd8c883d6ae2464f8d0075887d57bcafb --label arch=amd64 --label version=0.0.0 . 19:52:42 Sending build context to Docker daemon 10.89MB 19:52:42 Step 1/25 : ARG BASE=golang:1.20-alpine3.17 19:52:42 Step 2/25 : FROM ${BASE} AS builder 19:52:42 ---> 51afdc28f277 19:52:42 Step 3/25 : ARG ADD_BUILD_TAGS="" 19:52:42 ---> Running in 9c10fdc688f0 19:52:43 Removing intermediate container 9c10fdc688f0 19:52:43 ---> ff3d25c21fa9 19:52:43 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 19:52:43 ---> Running in b0c11e3021a6 19:52:43 Removing intermediate container b0c11e3021a6 19:52:43 ---> 7216d67bb6ed 19:52:43 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 19:52:43 ---> Running in 355f26696756 19:52:43 Removing intermediate container 355f26696756 19:52:43 ---> 5bd54c9b40d8 19:52:43 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 19:52:43 ---> Running in 9420c8166f68 19:52:43 Removing intermediate container 9420c8166f68 19:52:43 ---> 5bd29e750491 19:52:43 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 19:52:43 ---> Running in 5d0bae6e08aa 19:52:43 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 19:52:43 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 19:52:43 OK: 269 MiB in 57 packages 19:52:44 Removing intermediate container 5d0bae6e08aa 19:52:44 ---> de9d33df5345 19:52:44 Step 8/25 : WORKDIR /device-rest-go 19:52:44 ---> Running in 0ed56373d0d4 19:52:44 Removing intermediate container 0ed56373d0d4 19:52:44 ---> 4f7b9fc217d6 19:52:44 Step 9/25 : COPY go.mod vendor* ./ 19:52:44 ---> 04c5de403aa8 19:52:44 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 19:52:44 ---> Running in 21c4ab09d0c5 19:52:45 Removing intermediate container 21c4ab09d0c5 19:52:45 ---> 3e666a187ae2 19:52:45 Step 11/25 : COPY . . 19:52:45 ---> a5ec9633d9c1 19:52:45 Step 12/25 : RUN $MAKE 19:52:45 ---> Running in 386a6939930a 19:52:46 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 19:53:04 Removing intermediate container 386a6939930a 19:53:04 ---> 1deb01eeedd8 19:53:04 Step 13/25 : FROM alpine:3.17 19:53:04 3.17: Pulling from library/alpine 19:53:04 63b65145d645: Already exists 19:53:04 Digest: sha256:ff6bdca1701f3a8a67e328815ff2346b0e4067d32ec36b7992c1fdc001dc8517 19:53:04 Status: Downloaded newer image for alpine:3.17 19:53:04 ---> b2aa39c304c2 19:53:04 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 19:53:04 ---> Running in 44ef84e9c27d 19:53:04 Removing intermediate container 44ef84e9c27d 19:53:04 ---> d2b67bb266c0 19:53:04 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 19:53:04 ---> Running in 91a62c2c036b 19:53:04 Removing intermediate container 91a62c2c036b 19:53:04 ---> 1fac995864d5 19:53:04 Step 16/25 : RUN apk add --update --no-cache dumb-init 19:53:04 ---> Running in b65141f50d30 19:53:04 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 19:53:04 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 19:53:04 (1/1) Installing dumb-init (1.2.5-r2) 19:53:04 Executing busybox-1.35.0-r29.trigger 19:53:04 OK: 7 MiB in 16 packages 19:53:04 Removing intermediate container b65141f50d30 19:53:04 ---> 575afc497c8c 19:53:04 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 19:53:04 ---> 1c13f280e6e6 19:53:04 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 19:53:04 ---> 6f6aec990a88 19:53:04 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 19:53:04 ---> ccb724227667 19:53:04 Step 20/25 : EXPOSE 59986 19:53:04 ---> Running in 2b3460ff613b 19:53:04 Removing intermediate container 2b3460ff613b 19:53:04 ---> 9a85de6b4300 19:53:04 Step 21/25 : ENTRYPOINT ["/device-rest"] 19:53:04 ---> Running in 634c6055c730 19:53:04 Removing intermediate container 634c6055c730 19:53:04 ---> 27f3ca225a27 19:53:04 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 19:53:04 ---> Running in 6d5664eeabfe 19:53:04 Removing intermediate container 6d5664eeabfe 19:53:04 ---> 76001b355924 19:53:04 Step 23/25 : LABEL arch=amd64 19:53:04 ---> Running in 51508664ba53 19:53:04 Removing intermediate container 51508664ba53 19:53:04 ---> b1374fa5c422 19:53:04 Step 24/25 : LABEL git_sha=b390f61bd8c883d6ae2464f8d0075887d57bcafb 19:53:04 ---> Running in 2e8343dd1f78 19:53:04 Removing intermediate container 2e8343dd1f78 19:53:04 ---> 6cf08e56e069 19:53:04 Step 25/25 : LABEL version=0.0.0 19:53:04 ---> Running in b9c372a7d19b 19:53:04 Removing intermediate container b9c372a7d19b 19:53:04 ---> 621206591ed5 19:53:04 [Warning] One or more build-args [ARCH] were not consumed 19:53:05 Successfully built 621206591ed5 19:53:05 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 19:53:06 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 19:53:06 19:53:06 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 19:53:06 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 19:53:06 latest: Pulling from edgex-lftools-log-publisher 19:53:06 5eb5b503b376: Pulling fs layer 19:53:06 5c69ac0246d0: Pulling fs layer 19:53:06 ec43610c2a17: Pulling fs layer 19:53:06 3a2ae6a8a46f: Pulling fs layer 19:53:06 33b1e0a273af: Pulling fs layer 19:53:06 5d3b04190fa2: Pulling fs layer 19:53:06 2f39f015ded8: Pulling fs layer 19:53:06 33b1e0a273af: Waiting 19:53:06 2f39f015ded8: Waiting 19:53:06 5d3b04190fa2: Waiting 19:53:06 5c69ac0246d0: Verifying Checksum 19:53:06 5c69ac0246d0: Download complete 19:53:06 3a2ae6a8a46f: Verifying Checksum 19:53:06 3a2ae6a8a46f: Download complete 19:53:06 33b1e0a273af: Verifying Checksum 19:53:06 33b1e0a273af: Download complete 19:53:06 ec43610c2a17: Download complete 19:53:06 5d3b04190fa2: Download complete 19:53:06 5eb5b503b376: Verifying Checksum 19:53:06 5eb5b503b376: Download complete 19:53:07 2f39f015ded8: Download complete 19:53:07 5eb5b503b376: Pull complete 19:53:07 5c69ac0246d0: Pull complete 19:53:08 ec43610c2a17: Pull complete 19:53:08 3a2ae6a8a46f: Pull complete 19:53:08 33b1e0a273af: Pull complete 19:53:08 5d3b04190fa2: Pull complete 19:53:12 2f39f015ded8: Pull complete 19:53:12 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 19:53:12 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 19:53:12 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 19:53:13 prd-ubuntu20.04-docker-8c-8g-6100 does not seem to be running inside a container 19:53:13 $ 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-283 -v /w/workspace/gexfoundry_device-rest-go_PR-283:/w/workspace/gexfoundry_device-rest-go_PR-283:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-283@tmp:/w/workspace/gexfoundry_device-rest-go_PR-283@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 19:53:14 $ docker top 04a0ca70d7b8c5f9c9e277d985e2aa41e7f8d99eee16a330e7a8ad9bbf3ce8a6 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 19:53:15 ---> job-cost.sh 19:53:15 lf-activate-venv: SKIPPING 19:53:15 INFO: No Stack... 19:53:15 INFO: Retrieving Pricing Info for: v3-standard-8 19:53:16 INFO: Archiving Costs [Pipeline] sh 19:53:16 + cat /w/workspace/gexfoundry_device-rest-go_PR-283/archives/cost.csv 19:53:16 + cut -d, -f6 [Pipeline] lock 19:53:16 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-283-1-stack-cost] 19:53:16 Resource [jenkins-edgexfoundry-device-rest-go-PR-283-1-stack-cost] did not exist. Created. 19:53:16 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-283-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 19:53:16 + echo total: 0.2199999988079071 [Pipeline] stash 19:53:16 Stashed 1 file(s) [Pipeline] } 19:53:16 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-283-1-stack-cost] [Pipeline] // lock [Pipeline] } 19:53:17 $ docker stop --time=1 04a0ca70d7b8c5f9c9e277d985e2aa41e7f8d99eee16a330e7a8ad9bbf3ce8a6 19:53:18 $ docker rm -f --volumes 04a0ca70d7b8c5f9c9e277d985e2aa41e7f8d99eee16a330e7a8ad9bbf3ce8a6 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 19:54:47 Running on prd-ubuntu20.04-docker-arm64-4c-16g-6102 in /w/workspace/gexfoundry_device-rest-go_PR-283 [Pipeline] { [Pipeline] ws 19:54:47 Running in /w/workspace/device-rest-go/1 [Pipeline] { [Pipeline] checkout 19:54:47 The recommended git tool is: git 19:54:53 using credential edgex-jenkins-ssh 19:54:53 Cloning the remote Git repository 19:54:53 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 19:54:54 > git init /w/workspace/device-rest-go/1 # timeout=10 19:54:54 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 19:54:54 > git --version # timeout=10 19:54:54 > git --version # 'git version 2.25.1' 19:54:54 using GIT_SSH to set credentials SSH Credentials for GitHub 19:54:54 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 19:54:56 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 19:54:56 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 19:54:57 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 19:54:57 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 19:54:57 using GIT_SSH to set credentials SSH Credentials for GitHub 19:54:57 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/283/head:refs/remotes/origin/PR-283 +refs/heads/main:refs/remotes/origin/main # timeout=10 19:54:58 Merging remotes/origin/main commit fdf83baee4837586abd899036d884868d7632e86 into PR head commit b390f61bd8c883d6ae2464f8d0075887d57bcafb 19:54:58 Merge succeeded, producing b390f61bd8c883d6ae2464f8d0075887d57bcafb 19:54:58 Checking out Revision b390f61bd8c883d6ae2464f8d0075887d57bcafb (PR-283) 19:54:58 Commit message: "build(deps): Bump github.com/edgexfoundry/go-mod-core-contracts/v3" 19:54:59 > git --version # timeout=10 19:54:59 > git --version # 'git version 2.25.1' 19:54:59 fatal: bad object 66200e8eedfc470904d6b329e562ec5b45423d6a [Pipeline] withEnv [Pipeline] { 19:54:58 > git config core.sparsecheckout # timeout=10 19:54:58 > git checkout -f b390f61bd8c883d6ae2464f8d0075887d57bcafb # timeout=10 19:54:58 > git remote # timeout=10 19:54:58 > git config --get remote.origin.url # timeout=10 19:54:58 using GIT_SSH to set credentials SSH Credentials for GitHub 19:54:58 > git merge fdf83baee4837586abd899036d884868d7632e86 # timeout=10 19:54:58 > git rev-parse HEAD^{commit} # timeout=10 19:54:58 > git config core.sparsecheckout # timeout=10 19:54:58 > git checkout -f b390f61bd8c883d6ae2464f8d0075887d57bcafb # timeout=10 [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 19:55:00 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 19:55:00 % Total % Received % Xferd Average Speed Time Time Time Current 19:55:00 Dload Upload Total Spent Left Speed 19:55:00 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 12751 100 12751 0 0 214k 0 --:--:-- --:--:-- --:--:-- 214k [Pipeline] sh 19:55:00 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 19:55:01 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 19:55:01 + sudo tee /etc/docker/daemon.new 19:55:01 { 19:55:01 "registry-mirrors": [ 19:55:01 "https://nexus3.edgexfoundry.org:10001" 19:55:01 ], 19:55:01 "bip": "10.250.0.254/24", 19:55:01 "hosts": [ 19:55:01 "tcp://0.0.0.0:5555", 19:55:01 "unix:///var/run/docker.sock" 19:55:01 ], 19:55:01 "mtu": 1458, 19:55:01 "selinux-enabled": true, 19:55:01 "seccomp-profile": "/etc/docker/seccomp.json" 19:55:01 } [Pipeline] sh 19:55:01 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 19:55:01 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 19:55:20 provisioning config files... 19:55:20 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/1@tmp/config5828469353270729069tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 19:55:20 ---> docker-login.sh 19:55:20 nexus3.edgexfoundry.org:10001 19:55:21 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 19:55:21 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 19:55:21 Configure a credential helper to remove this warning. See 19:55:21 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 19:55:21 19:55:21 Login Succeeded 19:55:21 nexus3.edgexfoundry.org:10002 19:55:21 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 19:55:21 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 19:55:21 Configure a credential helper to remove this warning. See 19:55:21 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 19:55:21 19:55:21 Login Succeeded 19:55:21 nexus3.edgexfoundry.org:10003 19:55:22 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 19:55:22 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 19:55:22 Configure a credential helper to remove this warning. See 19:55:22 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 19:55:22 19:55:22 Login Succeeded 19:55:22 nexus3.edgexfoundry.org:10004 19:55:22 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 19:55:22 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 19:55:22 Configure a credential helper to remove this warning. See 19:55:22 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 19:55:22 19:55:22 Login Succeeded 19:55:22 docker.io 19:55:22 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 19:55:23 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 19:55:23 Configure a credential helper to remove this warning. See 19:55:23 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 19:55:23 19:55:23 Login Succeeded 19:55:23 ---> docker-login.sh ends [Pipeline] } 19:55:23 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 19:55:23 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 19:55:23 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 19:55:23 ========================================================= 19:55:23 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine] 19:55:23 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 19:55:24 + 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 . 19:55:24 Sending build context to Docker daemon 137.2kB 19:55:24 Step 1/12 : ARG BASE=golang:1.20-alpine3.17 19:55:24 Step 2/12 : FROM ${BASE} AS builder 19:55:24 1.20-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 19:55:24 af6eaf76a39c: Pulling fs layer 19:55:24 55522c791124: Pulling fs layer 19:55:24 ce5c4a1c91eb: Pulling fs layer 19:55:24 169dfbe0d373: Pulling fs layer 19:55:24 e1ff8fa3b103: Pulling fs layer 19:55:24 52ebb69f0ebf: Pulling fs layer 19:55:24 5abe8eddf0d5: Pulling fs layer 19:55:24 169dfbe0d373: Waiting 19:55:24 e1ff8fa3b103: Waiting 19:55:24 52ebb69f0ebf: Waiting 19:55:24 5abe8eddf0d5: Waiting 19:55:24 55522c791124: Verifying Checksum 19:55:24 55522c791124: Download complete 19:55:24 169dfbe0d373: Verifying Checksum 19:55:24 169dfbe0d373: Download complete 19:55:24 e1ff8fa3b103: Verifying Checksum 19:55:24 e1ff8fa3b103: Download complete 19:55:24 af6eaf76a39c: Verifying Checksum 19:55:24 af6eaf76a39c: Download complete 19:55:25 af6eaf76a39c: Pull complete 19:55:26 5abe8eddf0d5: Verifying Checksum 19:55:26 5abe8eddf0d5: Download complete 19:55:26 55522c791124: Pull complete 19:55:27 ce5c4a1c91eb: Verifying Checksum 19:55:27 ce5c4a1c91eb: Download complete 19:55:27 52ebb69f0ebf: Verifying Checksum 19:55:27 52ebb69f0ebf: Download complete 19:55:37 ce5c4a1c91eb: Pull complete 19:55:37 169dfbe0d373: Pull complete 19:55:38 e1ff8fa3b103: Pull complete 19:55:45 52ebb69f0ebf: Pull complete 19:55:46 5abe8eddf0d5: Pull complete 19:55:46 Digest: sha256:978cc1420e451f27bd88fdeece3ad01a9109ec773b62f165dfc696fd516b3d8f 19:55:46 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine 19:55:46 ---> 6cb57ee374ae 19:55:46 Step 3/12 : ARG ADD_BUILD_TAGS="" 19:55:48 ---> Running in a2962d670ebd 19:55:48 Removing intermediate container a2962d670ebd 19:55:48 ---> e2ce590cdc46 19:55:48 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 19:55:48 ---> Running in f21b18a15c08 19:55:49 Removing intermediate container f21b18a15c08 19:55:49 ---> a365cb3ac87b 19:55:49 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 19:55:49 ---> Running in 862f165d1445 19:55:49 Removing intermediate container 862f165d1445 19:55:49 ---> 339a339db43e 19:55:49 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 19:55:49 ---> Running in 6d9d4691bc66 19:55:50 Removing intermediate container 6d9d4691bc66 19:55:50 ---> 12f785f8d09d 19:55:50 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 19:55:50 ---> Running in 6556708861dd 19:55:51 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 19:55:52 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 19:55:53 (1/4) Installing openssh-keygen (9.1_p1-r2) 19:55:53 (2/4) Installing libedit (20221030.3.1-r0) 19:55:53 (3/4) Installing openssh-client-common (9.1_p1-r2) 19:55:53 (4/4) Installing openssh-client-default (9.1_p1-r2) 19:55:53 Executing busybox-1.35.0-r29.trigger 19:55:53 OK: 268 MiB in 57 packages 19:55:54 Removing intermediate container 6556708861dd 19:55:54 ---> 5123381c527b 19:55:54 Step 8/12 : WORKDIR /device-rest-go 19:55:54 ---> Running in 96ff2d332098 19:55:55 Removing intermediate container 96ff2d332098 19:55:55 ---> 1cbceaf1882c 19:55:55 Step 9/12 : COPY go.mod vendor* ./ 19:55:55 ---> a15a5b0f6180 19:55:55 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 19:55:55 ---> Running in 36c91ba09edd 19:57:03 Removing intermediate container 36c91ba09edd 19:57:03 ---> 7987dad67a46 19:57:03 Step 11/12 : COPY . . 19:57:03 ---> 3c92abacb4aa 19:57:03 Step 12/12 : RUN $MAKE 19:57:03 ---> Running in 21bf4dda6804 19:57:03 noop 19:57:03 Removing intermediate container 21bf4dda6804 19:57:03 ---> 663fe4e73ecf 19:57:03 Successfully built 663fe4e73ecf 19:57:03 Successfully tagged ci-base-image-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 19:57:04 + docker inspect -f . ci-base-image-arm64 19:57:04 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 19:57:04 prd-ubuntu20.04-docker-arm64-4c-16g-6102 does not seem to be running inside a container 19:57:04 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/1 -v /w/workspace/device-rest-go/1:/w/workspace/device-rest-go/1:rw,z -v /w/workspace/device-rest-go/1@tmp:/w/workspace/device-rest-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 19:57:05 $ docker top a4e5e54234d3429cdde140d608464d09a6c62134267cf8c68cf07f6299af5b0f -eo pid,comm [Pipeline] { [Pipeline] sh 19:57:06 + go version 19:57:06 go version go1.20.2 linux/arm64 [Pipeline] } 19:57:06 $ docker stop --time=1 a4e5e54234d3429cdde140d608464d09a6c62134267cf8c68cf07f6299af5b0f 19:57:08 $ docker rm -f --volumes a4e5e54234d3429cdde140d608464d09a6c62134267cf8c68cf07f6299af5b0f [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 19:57:09 + docker inspect -f . ci-base-image-arm64 19:57:09 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 19:57:09 prd-ubuntu20.04-docker-arm64-4c-16g-6102 does not seem to be running inside a container 19:57:09 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged -v /var/run/docker.sock:/var/run/docker.sock -w /w/workspace/device-rest-go/1 -v /w/workspace/device-rest-go/1:/w/workspace/device-rest-go/1:rw,z -v /w/workspace/device-rest-go/1@tmp:/w/workspace/device-rest-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 19:57:10 $ docker top 1b6cbe9a38e02aaa367a9dc33ed14b5c5475ae241fbc6a890714f5133a62e41a -eo pid,comm [Pipeline] { [Pipeline] sh 19:57:11 + git config --global --add safe.directory /w/workspace/device-rest-go/1 [Pipeline] fileExists [Pipeline] sh 19:57:12 + make test 19:57:12 go test ./... -coverprofile=coverage.out ./... 19:57:44 ? github.com/edgexfoundry/device-rest-go [no test files] 19:59:51 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 19:59:53 ok github.com/edgexfoundry/device-rest-go/driver 0.059s coverage: 33.0% of statements 19:59:53 WARNING: Linting skipped (not on x86_64 or linter not installed) 19:59:53 go vet ./... 20:00:32 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 20:00:32 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 20:00:32 ./bin/test-attribution-txt.sh [Pipeline] echo 20:00:32 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 20:00:32 $ docker stop --time=1 1b6cbe9a38e02aaa367a9dc33ed14b5c5475ae241fbc6a890714f5133a62e41a 20:00:36 $ docker rm -f --volumes 1b6cbe9a38e02aaa367a9dc33ed14b5c5475ae241fbc6a890714f5133a62e41a [Pipeline] // withDockerContainer [Pipeline] sh 20:00:37 + sudo chown -R jenkins:jenkins . [Pipeline] stash 20:00:37 Warning: overwriting stash ‘coverage-report’ 20:00:38 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 20:00:39 + sudo chown -R jenkins:jenkins . [Pipeline] sh 20:00:39 + ls -al . 20:00:39 total 180 20:00:39 drwxrwxr-x 8 jenkins jenkins 4096 Mar 28 19:57 . 20:00:39 drwxrwxr-x 4 jenkins jenkins 4096 Mar 28 19:54 .. 20:00:39 -rw-rw-r-- 1 jenkins jenkins 151 Mar 28 19:54 .dockerignore 20:00:39 drwxrwxr-x 8 jenkins jenkins 4096 Mar 28 19:54 .git 20:00:39 drwxrwxr-x 3 jenkins jenkins 4096 Mar 28 19:54 .github 20:00:39 -rw-rw-r-- 1 jenkins jenkins 329 Mar 28 19:54 .gitignore 20:00:39 -rw-rw-r-- 1 jenkins jenkins 41 Mar 28 19:54 .golangci.yml 20:00:39 -rw-rw-r-- 1 jenkins jenkins 9202 Mar 28 19:54 Attribution.txt 20:00:39 -rw-rw-r-- 1 jenkins jenkins 13085 Mar 28 19:54 CHANGELOG.md 20:00:39 -rw-rw-r-- 1 jenkins jenkins 1578 Mar 28 19:54 Dockerfile 20:00:39 -rw-rw-r-- 1 jenkins jenkins 677 Mar 28 19:54 GOVERNANCE.md 20:00:39 -rw-rw-r-- 1 jenkins jenkins 680 Mar 28 19:54 Jenkinsfile 20:00:39 -rw-rw-r-- 1 jenkins jenkins 11340 Mar 28 19:54 LICENSE 20:00:39 -rw-rw-r-- 1 jenkins jenkins 1779 Mar 28 19:54 Makefile 20:00:39 -rw-rw-r-- 1 jenkins jenkins 620 Mar 28 19:54 OWNERS.md 20:00:39 -rw-rw-r-- 1 jenkins jenkins 15321 Mar 28 19:54 README.md 20:00:39 -rw-rw-r-- 1 jenkins jenkins 5 Mar 28 19:51 VERSION 20:00:39 drwxrwxr-x 2 jenkins jenkins 4096 Mar 28 19:54 bin 20:00:39 drwxrwxr-x 3 jenkins jenkins 4096 Mar 28 19:54 cmd 20:00:39 -rw-r--r-- 1 jenkins jenkins 14200 Mar 28 19:59 coverage.out 20:00:39 drwxrwxr-x 2 jenkins jenkins 4096 Mar 28 19:54 driver 20:00:39 -rw-rw-r-- 1 jenkins jenkins 3399 Mar 28 19:54 go.mod 20:00:39 -rw-rw-r-- 1 jenkins jenkins 31153 Mar 28 19:54 go.sum 20:00:39 drwxrwxr-x 4 jenkins jenkins 4096 Mar 28 19:54 snap 20:00:39 -rw-rw-r-- 1 jenkins jenkins 713 Mar 28 19:54 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:00:39 + 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=b390f61bd8c883d6ae2464f8d0075887d57bcafb --label arch=arm64 --label version=0.0.0 . 20:00:39 Sending build context to Docker daemon 152.1kB 20:00:40 Step 1/25 : ARG BASE=golang:1.20-alpine3.17 20:00:40 Step 2/25 : FROM ${BASE} AS builder 20:00:40 ---> 663fe4e73ecf 20:00:40 Step 3/25 : ARG ADD_BUILD_TAGS="" 20:00:40 ---> Running in 876818555b7d 20:00:40 Removing intermediate container 876818555b7d 20:00:40 ---> b05287f2c46a 20:00:40 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 20:00:40 ---> Running in 2116021703d5 20:00:40 Removing intermediate container 2116021703d5 20:00:40 ---> 4c7ca396b2a5 20:00:40 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 20:00:40 ---> Running in 4f5ee2280261 20:00:41 Removing intermediate container 4f5ee2280261 20:00:41 ---> b77d283fdb9e 20:00:41 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 20:00:41 ---> Running in d4e413dfdf9d 20:00:41 Removing intermediate container d4e413dfdf9d 20:00:41 ---> 745726779c15 20:00:41 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 20:00:41 ---> Running in 0456f3dc838d 20:00:43 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 20:00:43 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 20:00:44 OK: 268 MiB in 57 packages 20:00:45 Removing intermediate container 0456f3dc838d 20:00:45 ---> 94f0b08b550b 20:00:45 Step 8/25 : WORKDIR /device-rest-go 20:00:45 ---> Running in df11c733dccf 20:00:46 Removing intermediate container df11c733dccf 20:00:46 ---> 0c59424dee47 20:00:46 Step 9/25 : COPY go.mod vendor* ./ 20:00:46 ---> becc6b93d90e 20:00:46 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 20:00:46 ---> Running in ba9608eab591 20:00:50 Removing intermediate container ba9608eab591 20:00:50 ---> f06deeecbdcb 20:00:50 Step 11/25 : COPY . . 20:00:50 ---> 5c9e57f07f84 20:00:50 Step 12/25 : RUN $MAKE 20:00:50 ---> Running in 3cd96cb4d038 20:00:51 CGO_ENABLED=0 go build -tags "" -ldflags "-X github.com/edgexfoundry/device-rest-go.Version=0.0.0" -trimpath -mod=readonly -o cmd/device-rest ./cmd 20:03:13 Removing intermediate container 3cd96cb4d038 20:03:13 ---> 8d59665ac8aa 20:03:13 Step 13/25 : FROM alpine:3.17 20:03:13 3.17: Pulling from library/alpine 20:03:13 af6eaf76a39c: Already exists 20:03:13 Digest: sha256:ff6bdca1701f3a8a67e328815ff2346b0e4067d32ec36b7992c1fdc001dc8517 20:03:13 Status: Downloaded newer image for alpine:3.17 20:03:13 ---> d74e625d9115 20:03:13 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 20:03:13 ---> Running in 1e13b56d7aca 20:03:13 Removing intermediate container 1e13b56d7aca 20:03:13 ---> b999db5788fe 20:03:13 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 20:03:13 ---> Running in 4e313ba61c9c 20:03:13 Removing intermediate container 4e313ba61c9c 20:03:13 ---> 118fe442dc3c 20:03:13 Step 16/25 : RUN apk add --update --no-cache dumb-init 20:03:13 ---> Running in d50aad3e5b9e 20:03:13 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 20:03:14 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 20:03:15 (1/1) Installing dumb-init (1.2.5-r2) 20:03:15 Executing busybox-1.35.0-r29.trigger 20:03:15 OK: 8 MiB in 16 packages 20:03:15 Removing intermediate container d50aad3e5b9e 20:03:15 ---> 969b71b1de7d 20:03:15 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 20:03:17 ---> f72cbb5bbd94 20:03:17 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 20:03:17 ---> 0c2c8a84a8a3 20:03:17 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 20:03:18 ---> 85c88a56af22 20:03:18 Step 20/25 : EXPOSE 59986 20:03:18 ---> Running in 6c000efde823 20:03:18 Removing intermediate container 6c000efde823 20:03:18 ---> ea6a73d636f5 20:03:18 Step 21/25 : ENTRYPOINT ["/device-rest"] 20:03:18 ---> Running in b7e0a6d13418 20:03:18 Removing intermediate container b7e0a6d13418 20:03:18 ---> 59ec1c63cca1 20:03:18 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 20:03:19 ---> Running in 516dfe5bf8a7 20:03:19 Removing intermediate container 516dfe5bf8a7 20:03:19 ---> a724361aeff4 20:03:19 Step 23/25 : LABEL arch=arm64 20:03:19 ---> Running in c75fd5503dd8 20:03:20 Removing intermediate container c75fd5503dd8 20:03:20 ---> 6166484028ca 20:03:20 Step 24/25 : LABEL git_sha=b390f61bd8c883d6ae2464f8d0075887d57bcafb 20:03:20 ---> Running in 89e2db40c819 20:03:20 Removing intermediate container 89e2db40c819 20:03:20 ---> 98a7384b9371 20:03:20 Step 25/25 : LABEL version=0.0.0 20:03:20 ---> Running in c495d51c4cd6 20:03:21 Removing intermediate container c495d51c4cd6 20:03:21 ---> 42377d0cd18e 20:03:21 [Warning] One or more build-args [ARCH] were not consumed 20:03:21 Successfully built 42377d0cd18e 20:03:21 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 20:03:21 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 20:03:21 20:03:21 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:03:22 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 20:03:22 arm64: Pulling from edgex-lftools-log-publisher 20:03:22 8998bd30e6a1: Pulling fs layer 20:03:22 04944245beec: Pulling fs layer 20:03:22 699f458cf7ca: Pulling fs layer 20:03:22 765212b225bb: Pulling fs layer 20:03:22 f23df028b6ca: Pulling fs layer 20:03:22 d65c8cfc05b1: Pulling fs layer 20:03:22 2437ff75d9bd: Pulling fs layer 20:03:22 f23df028b6ca: Waiting 20:03:22 d65c8cfc05b1: Waiting 20:03:22 2437ff75d9bd: Waiting 20:03:22 765212b225bb: Waiting 20:03:22 04944245beec: Verifying Checksum 20:03:22 04944245beec: Download complete 20:03:22 765212b225bb: Verifying Checksum 20:03:22 765212b225bb: Download complete 20:03:22 f23df028b6ca: Verifying Checksum 20:03:22 f23df028b6ca: Download complete 20:03:22 d65c8cfc05b1: Verifying Checksum 20:03:22 d65c8cfc05b1: Download complete 20:03:22 699f458cf7ca: Verifying Checksum 20:03:22 699f458cf7ca: Download complete 20:03:23 8998bd30e6a1: Verifying Checksum 20:03:23 8998bd30e6a1: Download complete 20:03:24 2437ff75d9bd: Verifying Checksum 20:03:24 2437ff75d9bd: Download complete 20:03:26 8998bd30e6a1: Pull complete 20:03:27 04944245beec: Pull complete 20:03:28 699f458cf7ca: Pull complete 20:03:28 765212b225bb: Pull complete 20:03:29 f23df028b6ca: Pull complete 20:03:29 d65c8cfc05b1: Pull complete 20:03:44 2437ff75d9bd: Pull complete 20:03:44 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 20:03:44 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 20:03:44 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 20:03:44 prd-ubuntu20.04-docker-arm64-4c-16g-6102 does not seem to be running inside a container 20:03:44 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/device-rest-go/1 -v /w/workspace/device-rest-go/1:/w/workspace/device-rest-go/1:rw,z -v /w/workspace/device-rest-go/1@tmp:/w/workspace/device-rest-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 20:03:47 $ docker top 8b976f2b04eaccdc6d8f26039ad956eb9cdccfd79f54a5994c67cf2521f520c5 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:03:48 ---> job-cost.sh 20:03:48 lf-activate-venv: SKIPPING 20:03:48 INFO: No Stack... 20:03:48 INFO: Retrieving Pricing Info for: v3-standard-4 20:03:49 INFO: Archiving Costs [Pipeline] sh 20:03:50 + cat /w/workspace/device-rest-go/1/archives/cost.csv 20:03:50 + cut -d, -f6 [Pipeline] lock 20:03:50 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-283-1-stack-cost] 20:03:50 Resource [jenkins-edgexfoundry-device-rest-go-PR-283-1-stack-cost] did not exist. Created. 20:03:50 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-283-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 20:03:51 /w/workspace/device-rest-go/1@tmp/durable-3dc9b91d/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 20:03:51 + echo total: 0.10999999940395355 [Pipeline] stash 20:03:51 Warning: overwriting stash ‘stack-cost’ 20:03:51 Stashed 1 file(s) [Pipeline] } 20:03:51 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-283-1-stack-cost] [Pipeline] // lock [Pipeline] } 20:03:51 $ docker stop --time=1 8b976f2b04eaccdc6d8f26039ad956eb9cdccfd79f54a5994c67cf2521f520c5 20:03:53 $ docker rm -f --volumes 8b976f2b04eaccdc6d8f26039ad956eb9cdccfd79f54a5994c67cf2521f520c5 [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 20:03:54 provisioning config files... 20:03:54 copy managed file [device-rest-go-codecov-token] to file:/w/workspace/gexfoundry_device-rest-go_PR-283@tmp/config13113340154343077663tmp [Pipeline] { [Pipeline] sh 20:03:54 + set +x 20:03:54 + bash -s -- 20:03:54 + curl -s https://codecov.io/bash 20:03:54 20:03:54 _____ _ 20:03:54 / ____| | | 20:03:54 | | ___ __| | ___ ___ _____ __ 20:03:54 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 20:03:54 | |___| (_) | (_| | __/ (_| (_) \ V / 20:03:54 \_____\___/ \__,_|\___|\___\___/ \_/ 20:03:54 Bash-1.0.6 20:03:54 20:03:54 20:03:54 ==> git version 2.25.1 found 20:03:54 ==> 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 20:03:54 Release-Date: 2020-01-08 20:03:54 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 20:03:54 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 20:03:54 ==> Jenkins CI detected. 20:03:54 current dir:  /w/workspace/gexfoundry_device-rest-go_PR-283 20:03:54 project root: . 20:03:54 --> token set from env 20:03:54 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 20:03:54 ==> Running gcov in . (disable via -X gcov) 20:03:54 ==> Python coveragepy not found 20:03:54 ==> Searching for coverage reports in: 20:03:54 + . 20:03:54 -> Found 1 reports 20:03:54 ==> Detecting git/mercurial file structure 20:03:54 ==> Reading reports 20:03:54 + ./coverage.out bytes=14200 20:03:54 ==> Appending adjustments 20:03:54 https://docs.codecov.io/docs/fixing-reports 20:03:54 + Found adjustments 20:03:54 ==> Gzipping contents 20:03:54 4.0K /tmp/codecov.5zlrMm.gz 20:03:54 ==> Uploading reports 20:03:54 url: https://codecov.io 20:03:54 query: branch=PR-283&commit=b390f61bd8c883d6ae2464f8d0075887d57bcafb&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-283%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=283&job=&cmd_args= 20:03:54 -> Pinging Codecov 20:03:54 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=c51feb23-73ac-4f49-b3d1-d26df23137db&branch=PR-283&commit=b390f61bd8c883d6ae2464f8d0075887d57bcafb&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-283%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=283&job=&cmd_args= 20:03:54 -> Uploading to 20:03:54 https://storage.googleapis.com/codecov/v4/raw/2023-03-28/4E5D53B4F1F92C436F7061BF334D961C/b390f61bd8c883d6ae2464f8d0075887d57bcafb/5e041fdd-94c3-4cf5-8093-b51e35cf0b3f.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20230328%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20230328T200354Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=3b0710b20dfd9131d31bf192a3ccd47b14f499558b2d49fe8f606f77a8a94779 20:03:54 % Total % Received % Xferd Average Speed Time Time Time Current 20:03:54 Dload Upload Total Spent Left Speed 20:03:54 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 2437 0 0 100 2437 0 9266 --:--:-- --:--:-- --:--:-- 9266 20:03:54 -> Reports have been successfully queued for processing at https://app.codecov.io/github/edgexfoundry/device-rest-go/commit/b390f61bd8c883d6ae2464f8d0075887d57bcafb [Pipeline] } 20:03:54 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 20:03:56 + [ -d /w/workspace/gexfoundry_device-rest-go_PR-283/archives ] 20:03:56 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-283/archives 20:03:56 total 16 20:03:56 drwxr-xr-x 3 root root 4096 Mar 28 19:53 . 20:03:56 drwxrwxr-x 10 jenkins jenkins 4096 Mar 28 19:53 .. 20:03:56 drwxr-xr-x 2 root root 4096 Mar 28 19:53 cost 20:03:56 -rw-r--r-- 1 root root 86 Mar 28 19:53 cost.csv 20:03:56 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-rest-go_PR-283/archives 20:03:56 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-283/archives 20:03:56 total 16 20:03:56 drwxr-xr-x 3 jenkins jenkins 4096 Mar 28 19:53 . 20:03:56 drwxrwxr-x 10 jenkins jenkins 4096 Mar 28 19:53 .. 20:03:56 drwxr-xr-x 2 jenkins jenkins 4096 Mar 28 19:53 cost 20:03:56 -rw-r--r-- 1 jenkins jenkins 86 Mar 28 19:53 cost.csv [Pipeline] libraryResource [Pipeline] sh 20:03:57 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 20:03:58 ---> package-listing.sh 20:03:58 ++ facter osfamily 20:03:58 ++ tr '[:upper:]' '[:lower:]' 20:03:58 + OS_FAMILY=debian 20:03:58 + workspace=/w/workspace/gexfoundry_device-rest-go_PR-283 20:03:58 + START_PACKAGES=/tmp/packages_start.txt 20:03:58 + END_PACKAGES=/tmp/packages_end.txt 20:03:58 + DIFF_PACKAGES=/tmp/packages_diff.txt 20:03:58 + PACKAGES=/tmp/packages_start.txt 20:03:58 + '[' /w/workspace/gexfoundry_device-rest-go_PR-283 ']' 20:03:58 + PACKAGES=/tmp/packages_end.txt 20:03:58 + case "${OS_FAMILY}" in 20:03:58 + dpkg -l 20:03:58 + grep '^ii' 20:03:58 + '[' -f /tmp/packages_start.txt ']' 20:03:58 + '[' -f /tmp/packages_end.txt ']' 20:03:58 + diff /tmp/packages_start.txt /tmp/packages_end.txt 20:03:58 + '[' /w/workspace/gexfoundry_device-rest-go_PR-283 ']' 20:03:58 + mkdir -p /w/workspace/gexfoundry_device-rest-go_PR-283/archives/ 20:03:58 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/gexfoundry_device-rest-go_PR-283/archives/ [Pipeline] echo 20:03:58 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-283/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 20:03:58 + facter operatingsystem [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:03:59 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 20:03:59 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 20:03:59 prd-ubuntu20.04-docker-8c-8g-6100 does not seem to be running inside a container 20:03:59 $ 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-283/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-283 -v /w/workspace/gexfoundry_device-rest-go_PR-283:/w/workspace/gexfoundry_device-rest-go_PR-283:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-283@tmp:/w/workspace/gexfoundry_device-rest-go_PR-283@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 20:03:59 $ docker top 1d560b75cf353eaab4b4cf1d3de8955a67ff199dfb81b9f8d0403307776d0187 -eo pid,comm [Pipeline] { [Pipeline] sh 20:04:00 + touch /tmp/pre-build-complete [Pipeline] sh 20:04:00 + mkdir -p /var/log/sysstat [Pipeline] sh 20:04:00 + ls /var/log/sa-host 20:04:00 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 20:04:00 provisioning config files... 20:04:00 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-283@tmp/config7163083118129291866tmp [Pipeline] { [Pipeline] echo 20:04:00 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 20:04:01 ---> create-netrc.sh [Pipeline] } 20:04:01 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 20:04:01 ---> python-tools-install.sh [Pipeline] echo 20:04:01 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 20:04:01 ---> sudo-logs.sh 20:04:01 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 20:04:01 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 20:04:02 ---> job-cost.sh 20:04:02 lf-activate-venv: SKIPPING 20:04:02 DEBUG: total: 0.2199999988079071 20:04:02 INFO: Retrieving Stack Cost... 20:04:02 INFO: Retrieving Pricing Info for: v3-standard-8 20:04:03 INFO: Archiving Costs [Pipeline] echo 20:04:03 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 20:04:03 ---> logs-deploy.sh 20:04:03 lf-activate-venv: SKIPPING 20:04:03 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-283/1 20:04:03 INFO: archiving workspace using pattern(s): 20:04:04 Archives upload complete. 20:04:04 INFO: archiving logs to Nexus