Pull request #186 opened Connecting to https://api.github.com using edgex-jenkins github personal access token Obtained Jenkinsfile from 4cb71774a2d5d5cadafac4e4038bfd054c067146+1b7989097685cbbb7d11325d5e96f20d406e46c7 (b6265d17f2c5e1af4e76d411c7e7d2c8dc078156) 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-ssh10893387535741825682.key > git ls-remote -h -t -- git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Found match: refs/tags/stable revision 61d3a14f5ee21304eadc9c25f102bcac80e1a589 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-ssh4031164323320158684.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 61d3a14f5ee21304eadc9c25f102bcac80e1a589 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-186/workspace@libs/edgex-global-pipelines # 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-186/workspace@libs/edgex-global-pipelines@tmp/jenkins-gitclient-ssh57189704747961771.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-186/workspace@libs/edgex-global-pipelines@tmp/jenkins-gitclient-ssh5649980761877683765.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision 61d3a14f5ee21304eadc9c25f102bcac80e1a589 (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f 61d3a14f5ee21304eadc9c25f102bcac80e1a589 # timeout=10 Commit message: "Merge pull request #384 from ernestojeda/add-go-1_17-lts" > 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 shared 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-ssh15370032842901388519.key > git ls-remote -h -- git@github.com:lfit/releng-pipelines.git # timeout=10 Found match: refs/heads/master revision b3dada9287033e4e81bc68320e01fd57bef02650 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-186/workspace@libs/lf-pipelines # 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-186/workspace@libs/lf-pipelines@tmp/jenkins-gitclient-ssh2589428659353124163.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 b3dada9287033e4e81bc68320e01fd57bef02650 (master) > git config core.sparsecheckout # timeout=10 > git checkout -f b3dada9287033e4e81bc68320e01fd57bef02650 # timeout=10 Commit message: "Fix: Update requirements.txt, update global-jjb" > 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 61d3a14f5ee21304eadc9c25f102bcac80e1a589 Excluding src/test/ from checkout of git git@github.com:lfit/releng-pipelines.git so that shared 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.17 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 [Pipeline] node Still waiting to schedule task Waiting for next available executor on ‘ubuntu20.04-docker-8c-8g’ Running on prd-ubuntu20.04-docker-8c-8g-42635 in /w/workspace/gexfoundry_device-rest-go_PR-186 [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-186 # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git > git --version # timeout=10 > git --version # 'git version 2.25.1' using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 Merging remotes/origin/main commit 1b7989097685cbbb7d11325d5e96f20d406e46c7 into PR head commit 4cb71774a2d5d5cadafac4e4038bfd054c067146 > 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/186/head:refs/remotes/origin/PR-186 +refs/heads/main:refs/remotes/origin/main # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 4cb71774a2d5d5cadafac4e4038bfd054c067146 # timeout=10 > git remote # timeout=10 > git config --get remote.origin.url # timeout=10 Merge succeeded, producing 4cb71774a2d5d5cadafac4e4038bfd054c067146 Checking out Revision 4cb71774a2d5d5cadafac4e4038bfd054c067146 (PR-186) using GIT_SSH to set credentials SSH Credentials for GitHub > git merge 1b7989097685cbbb7d11325d5e96f20d406e46c7 # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 4cb71774a2d5d5cadafac4e4038bfd054c067146 # timeout=10 Commit message: "build(deps): Bump github.com/edgexfoundry/go-mod-core-contracts/v2" First time build. Skipping changelog. > git --version # timeout=10 > git --version # 'git version 2.25.1' fatal: bad object 61d3a14f5ee21304eadc9c25f102bcac80e1a589 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 20:14:04 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 20:14:04 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 20:14:04 ========================================================= 20:14:04 EdgeX Global Pipelines Version Info 20:14:04 ========================================================= [Pipeline] libraryResource [Pipeline] sh 20:14:05 ------------------- 20:14:05 stable info: 20:14:05 ------------------- 20:14:05 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 20:14:05 Commit SHA: 61d3a14f5ee21304eadc9c25f102bcac80e1a589 20:14:05 Message: update stable to v1.0.227 20:14:05 ------------------- 20:14:05 experimental info: 20:14:05 ------------------- 20:14:05 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 20:14:05 Commit SHA: 821e2ffd3fa43eddc5db18cf710cdace1a36094c 20:14:05 Message: update experimental to v1.0.229 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 20:14:06 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 20:14:06 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 20:14:06 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 20:14:06 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 20:14:06 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 20:14:06 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.17 [Pipeline] echo 20:14:06 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 20:14:06 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 20:14:06 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 20:14:06 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 20:14:06 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 20:14:06 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 20:14:06 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 20:14:06 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 20:14:06 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 20:14:06 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 20:14:06 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 20:14:06 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 20:14:06 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 20:14:07 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 20:14:07 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 20:14:07 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 20:14:07 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 20:14:07 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 20:14:07 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 20:14:07 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 20:14:07 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-186 [Pipeline] echo 20:14:07 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-186 [Pipeline] echo 20:14:07 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-186 [Pipeline] echo 20:14:07 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 4cb71774a2d5d5cadafac4e4038bfd054c067146 [Pipeline] echo 20:14:07 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 4cb7177 [Pipeline] echo 20:14:07 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 20:14:07 provisioning config files... 20:14:07 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-186@tmp/config1148252361558692523tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:14:08 ---> docker-login.sh 20:14:08 nexus3.edgexfoundry.org:10001 20:14:08 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:14:08 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:14:08 Configure a credential helper to remove this warning. See 20:14:08 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:14:08 20:14:08 Login Succeeded 20:14:08 nexus3.edgexfoundry.org:10002 20:14:08 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:14:08 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:14:08 Configure a credential helper to remove this warning. See 20:14:08 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:14:08 20:14:08 Login Succeeded 20:14:08 nexus3.edgexfoundry.org:10003 20:14:08 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:14:08 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:14:08 Configure a credential helper to remove this warning. See 20:14:08 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:14:08 20:14:08 Login Succeeded 20:14:08 nexus3.edgexfoundry.org:10004 20:14:08 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:14:08 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:14:08 Configure a credential helper to remove this warning. See 20:14:08 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:14:08 20:14:08 Login Succeeded 20:14:08 docker.io 20:14:08 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:14:09 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:14:09 Configure a credential helper to remove this warning. See 20:14:09 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:14:09 20:14:09 Login Succeeded 20:14:09 ---> docker-login.sh ends [Pipeline] } 20:14:09 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 20:14:09 + git rev-list -1 --merges 4cb71774a2d5d5cadafac4e4038bfd054c067146~1..4cb71774a2d5d5cadafac4e4038bfd054c067146 [Pipeline] echo 20:14:10 -----------> git rev-list -1 --merges 4cb71774a2d5d5cadafac4e4038bfd054c067146~1..4cb71774a2d5d5cadafac4e4038bfd054c067146 4cb71774a2d5d5cadafac4e4038bfd054c067146 [false] [Pipeline] sh 20:14:10 + git log --format=format:%s -1 4cb71774a2d5d5cadafac4e4038bfd054c067146 [Pipeline] echo 20:14:10 ========================================================= 20:14:10 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 20:14:10 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 20:14:10 + git log --format=format:%s -1 4cb71774a2d5d5cadafac4e4038bfd054c067146 [Pipeline] echo 20:14:10 [semverPrep] GIT_COMMIT: 4cb71774a2d5d5cadafac4e4038bfd054c067146, Commit Message: build(deps): Bump github.com/edgexfoundry/go-mod-core-contracts/v2 [Pipeline] echo 20:14:10 [semverPrep] This is not a build commit. [Pipeline] sh 20:14:11 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 20:14:11 + grep -v github /etc/ssh/ssh_known_hosts 20:14:11 + [ -e /tmp/ssh_known_hosts ] 20:14:11 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 20:14:11 + + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 20:14:11 sudo tee -a /etc/ssh/ssh_known_hosts 20:14:11 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] sh 20:14:11 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest 20:14:11 20:14:11 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest [Pipeline] isUnix [Pipeline] sh 20:14:11 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest 20:14:11 latest: Pulling from edgex-devops/py-git-semver 20:14:11 1fe172e4850f: Pulling fs layer 20:14:11 caf521ccaac6: Pulling fs layer 20:14:11 3ead6fa29328: Pulling fs layer 20:14:11 5c2a1cbceb83: Pulling fs layer 20:14:11 a8d5f1318db7: Pulling fs layer 20:14:11 c427282e49a2: Pulling fs layer 20:14:11 1827001aaf11: Pulling fs layer 20:14:11 0714d37db230: Pulling fs layer 20:14:11 ac28cf19c067: Pulling fs layer 20:14:11 ca983d60f3e2: Pulling fs layer 20:14:11 9f894cec8388: Pulling fs layer 20:14:11 ac28cf19c067: Waiting 20:14:11 c427282e49a2: Waiting 20:14:11 1827001aaf11: Waiting 20:14:11 9f894cec8388: Waiting 20:14:11 ca983d60f3e2: Waiting 20:14:11 0714d37db230: Waiting 20:14:11 5c2a1cbceb83: Waiting 20:14:11 a8d5f1318db7: Waiting 20:14:11 caf521ccaac6: Download complete 20:14:11 5c2a1cbceb83: Verifying Checksum 20:14:11 5c2a1cbceb83: Download complete 20:14:11 a8d5f1318db7: Verifying Checksum 20:14:11 a8d5f1318db7: Download complete 20:14:12 c427282e49a2: Verifying Checksum 20:14:12 c427282e49a2: Download complete 20:14:12 3ead6fa29328: Verifying Checksum 20:14:12 3ead6fa29328: Download complete 20:14:12 0714d37db230: Verifying Checksum 20:14:12 0714d37db230: Download complete 20:14:12 ac28cf19c067: Verifying Checksum 20:14:12 ac28cf19c067: Download complete 20:14:12 ca983d60f3e2: Verifying Checksum 20:14:12 ca983d60f3e2: Download complete 20:14:12 9f894cec8388: Verifying Checksum 20:14:12 9f894cec8388: Download complete 20:14:12 1fe172e4850f: Verifying Checksum 20:14:12 1fe172e4850f: Download complete 20:14:12 1827001aaf11: Verifying Checksum 20:14:12 1827001aaf11: Download complete 20:14:13 1fe172e4850f: Pull complete 20:14:13 caf521ccaac6: Pull complete 20:14:14 3ead6fa29328: Pull complete 20:14:14 5c2a1cbceb83: Pull complete 20:14:14 a8d5f1318db7: Pull complete 20:14:14 c427282e49a2: Pull complete 20:14:17 1827001aaf11: Pull complete 20:14:17 0714d37db230: Pull complete 20:14:17 ac28cf19c067: Pull complete 20:14:17 ca983d60f3e2: Pull complete 20:14:17 9f894cec8388: Pull complete 20:14:17 Digest: sha256:90e63904a1edc574c23a580e5fc31fbcdccad1501625621f67a6be262171cfee 20:14:17 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest 20:14:17 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest [Pipeline] withDockerContainer 20:14:17 prd-ubuntu20.04-docker-8c-8g-42635 does not seem to be running inside a container 20:14:17 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/gexfoundry_device-rest-go_PR-186 -v /w/workspace/gexfoundry_device-rest-go_PR-186:/w/workspace/gexfoundry_device-rest-go_PR-186:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-186@tmp:/w/workspace/gexfoundry_device-rest-go_PR-186@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:latest cat 20:14:19 $ docker top 009240364ba3442e3bf42e654e33afece23f232b1397961dc3b5e41c30235e05 -eo pid,comm 20:14:19 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). 20:14:19 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 20:14:19 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 20:14:19 [ssh-agent] Looking for ssh-agent implementation... 20:14:20 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 20:14:20 $ docker exec 009240364ba3442e3bf42e654e33afece23f232b1397961dc3b5e41c30235e05 ssh-agent 20:14:20 SSH_AUTH_SOCK=/tmp/ssh-y4JnR8bzeDCW/agent.32 20:14:20 SSH_AGENT_PID=38 20:14:20 Running ssh-add (command line suppressed) 20:14:20 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-186@tmp/private_key_2015679552708755752.key (/w/workspace/gexfoundry_device-rest-go_PR-186@tmp/private_key_2015679552708755752.key) 20:14:20 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 20:14:20 + git tag --points-at HEAD [Pipeline] } 20:14:20 $ docker exec --env ******** --env ******** 009240364ba3442e3bf42e654e33afece23f232b1397961dc3b5e41c30235e05 ssh-agent -k 20:14:20 unset SSH_AUTH_SOCK; 20:14:20 unset SSH_AGENT_PID; 20:14:20 echo Agent pid 38 killed; 20:14:20 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 20:14:20 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 20:14:20 [ssh-agent] Looking for ssh-agent implementation... 20:14:21 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 20:14:21 $ docker exec 009240364ba3442e3bf42e654e33afece23f232b1397961dc3b5e41c30235e05 ssh-agent 20:14:21 SSH_AUTH_SOCK=/tmp/ssh-lWHczqGDTxwx/agent.73 20:14:21 SSH_AGENT_PID=79 20:14:21 Running ssh-add (command line suppressed) 20:14:21 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-186@tmp/private_key_5763919133448511119.key (/w/workspace/gexfoundry_device-rest-go_PR-186@tmp/private_key_5763919133448511119.key) 20:14:21 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 20:14:21 + git semver init 20:14:21 2022-05-09 20:14:21,822 [run_init] DEBUG init version:0.0.0 force:False 20:14:21 2022-05-09 20:14:21,823 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/gexfoundry_device-rest-go_PR-186/.semver 20:14:21 2022-05-09 20:14:21,823 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-rest-go.git /w/workspace/gexfoundry_device-rest-go_PR-186/.semver 20:14:21 2022-05-09 20:14:21,823 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-rest-go.git', '/w/workspace/gexfoundry_device-rest-go_PR-186/.semver'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-186, universal_newlines=False, shell=None, istream=None) 20:14:22 2022-05-09 20:14:22,839 [append_file] DEBUG append to file:/w/workspace/gexfoundry_device-rest-go_PR-186/.git/info/exclude 20:14:22 2022-05-09 20:14:22,840 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/gexfoundry_device-rest-go_PR-186/.semver/PR-186 with force:False 20:14:22 2022-05-09 20:14:22,840 [write_file] DEBUG write to file:/w/workspace/gexfoundry_device-rest-go_PR-186/.semver/PR-186 20:14:22 2022-05-09 20:14:22,845 [execute] INFO git cat-file --batch-check 20:14:22 2022-05-09 20:14:22,845 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-186/.semver, universal_newlines=False, shell=None, istream=) 20:14:23 2022-05-09 20:14:22,851 [execute] INFO git cat-file --batch 20:14:23 2022-05-09 20:14:22,851 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-186/.semver, universal_newlines=False, shell=None, istream=) 20:14:23 2022-05-09 20:14:22,855 [read_version] DEBUG read version from /w/workspace/gexfoundry_device-rest-go_PR-186/.semver/PR-186 20:14:23 0.0.0 [Pipeline] } 20:14:23 $ docker exec --env ******** --env ******** 009240364ba3442e3bf42e654e33afece23f232b1397961dc3b5e41c30235e05 ssh-agent -k 20:14:23 unset SSH_AUTH_SOCK; 20:14:23 unset SSH_AGENT_PID; 20:14:23 echo Agent pid 79 killed; 20:14:23 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 20:14:23 + git semver [Pipeline] } 20:14:23 $ docker stop --time=1 009240364ba3442e3bf42e654e33afece23f232b1397961dc3b5e41c30235e05 20:14:25 $ docker rm -f 009240364ba3442e3bf42e654e33afece23f232b1397961dc3b5e41c30235e05 [Pipeline] // withDockerContainer [Pipeline] sh 20:14:25 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 20:14:26 Stashed 1 file(s) [Pipeline] echo 20:14:26 [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 20:14:26 provisioning config files... 20:14:26 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-186@tmp/config4122329475647643067tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:14:27 ---> docker-login.sh 20:14:27 nexus3.edgexfoundry.org:10001 20:14:27 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:14:27 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:14:27 Configure a credential helper to remove this warning. See 20:14:27 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:14:27 20:14:27 Login Succeeded 20:14:27 nexus3.edgexfoundry.org:10002 20:14:27 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:14:27 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:14:27 Configure a credential helper to remove this warning. See 20:14:27 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:14:27 20:14:27 Login Succeeded 20:14:27 nexus3.edgexfoundry.org:10003 20:14:27 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:14:27 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:14:27 Configure a credential helper to remove this warning. See 20:14:27 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:14:27 20:14:27 Login Succeeded 20:14:27 nexus3.edgexfoundry.org:10004 20:14:27 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:14:27 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:14:27 Configure a credential helper to remove this warning. See 20:14:27 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:14:27 20:14:27 Login Succeeded 20:14:27 docker.io 20:14:27 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:14:27 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:14:27 Configure a credential helper to remove this warning. See 20:14:27 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:14:27 20:14:27 Login Succeeded 20:14:27 ---> docker-login.sh ends [Pipeline] } 20:14:27 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 20:14:28 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 20:14:28 ========================================================= 20:14:28 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine] 20:14:28 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 20:14:28 + docker build -t ci-base-image-x86_64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine --build-arg MAKE=echo noop --target=builder . 20:14:28 Sending build context to Docker daemon 10.62MB 20:14:28 Step 1/12 : ARG BASE=golang:1.17-alpine3.15 20:14:28 Step 2/12 : FROM ${BASE} AS builder 20:14:28 1.17-alpine: Pulling from edgex-devops/edgex-golang-base 20:14:28 59bf1c3509f3: Pulling fs layer 20:14:28 666ba61612fd: Pulling fs layer 20:14:28 8ed8ca486205: Pulling fs layer 20:14:28 4fe6c5a15a65: Pulling fs layer 20:14:28 22a0e8bec74d: Pulling fs layer 20:14:28 ca2b28591e48: Pulling fs layer 20:14:28 a51346096db8: Pulling fs layer 20:14:28 daebc70d1ce1: Pulling fs layer 20:14:28 0e18a0eac166: Pulling fs layer 20:14:28 4fe6c5a15a65: Waiting 20:14:28 22a0e8bec74d: Waiting 20:14:28 ca2b28591e48: Waiting 20:14:28 a51346096db8: Waiting 20:14:28 daebc70d1ce1: Waiting 20:14:28 0e18a0eac166: Waiting 20:14:28 8ed8ca486205: Download complete 20:14:28 666ba61612fd: Download complete 20:14:28 22a0e8bec74d: Download complete 20:14:28 ca2b28591e48: Download complete 20:14:28 a51346096db8: Download complete 20:14:28 59bf1c3509f3: Verifying Checksum 20:14:28 59bf1c3509f3: Download complete 20:14:28 daebc70d1ce1: Verifying Checksum 20:14:28 daebc70d1ce1: Download complete 20:14:29 59bf1c3509f3: Pull complete 20:14:29 666ba61612fd: Pull complete 20:14:29 8ed8ca486205: Pull complete 20:14:29 0e18a0eac166: Verifying Checksum 20:14:29 0e18a0eac166: Download complete 20:14:29 4fe6c5a15a65: Verifying Checksum 20:14:29 4fe6c5a15a65: Download complete 20:14:33 4fe6c5a15a65: Pull complete 20:14:34 22a0e8bec74d: Pull complete 20:14:34 ca2b28591e48: Pull complete 20:14:34 a51346096db8: Pull complete 20:14:34 daebc70d1ce1: Pull complete 20:14:36 0e18a0eac166: Pull complete 20:14:36 Digest: sha256:5cf2d0a306c5171eb5b3008c4b83cc7b6044f1808c238cb17927cddb93576120 20:14:36 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine 20:14:36 ---> f018257e8ee9 20:14:36 Step 3/12 : ARG MAKE='make build' 20:14:38 ---> Running in a4eaeab0e6bb 20:14:38 Removing intermediate container a4eaeab0e6bb 20:14:38 ---> 7562b6771edd 20:14:38 Step 4/12 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 20:14:38 ---> Running in 8384ed3b97a8 20:14:38 Removing intermediate container 8384ed3b97a8 20:14:38 ---> 260a43213833 20:14:38 Step 5/12 : ARG ALPINE_PKG_EXTRA="" 20:14:38 ---> Running in 19a6895f4739 20:14:38 Removing intermediate container 19a6895f4739 20:14:38 ---> eb7fbdef9136 20:14:38 Step 6/12 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 20:14:38 ---> Running in 098bffdc50d3 20:14:39 Removing intermediate container 098bffdc50d3 20:14:39 ---> 78c8f438b2e1 20:14:39 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 20:14:39 ---> Running in cdce8ddb9c22 20:14:39 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 20:14:40 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 20:14:40 (1/4) Installing openssh-keygen (8.8_p1-r1) 20:14:40 (2/4) Installing libedit (20210910.3.1-r0) 20:14:41 (3/4) Installing openssh-client-common (8.8_p1-r1) 20:14:41 (4/4) Installing openssh-client-default (8.8_p1-r1) 20:14:41 Still waiting to schedule task 20:14:41 ‘prd-centos7-blackbox-4c-2g-41381’ doesn’t have label ‘ubuntu20.04-docker-arm64-4c-16g’ 20:14:41 ‘prd-centos7-builder-2c-1g-42638’ doesn’t have label ‘ubuntu20.04-docker-arm64-4c-16g’ 20:14:41 ‘prd-ubuntu18.04-docker-8c-8g-41080’ doesn’t have label ‘ubuntu20.04-docker-arm64-4c-16g’ 20:14:41 ‘prd-ubuntu20.04-docker-arm64-4c-16g-42637’ is offline 20:14:41 Executing busybox-1.34.1-r3.trigger 20:14:41 OK: 224 MiB in 56 packages 20:14:41 Removing intermediate container cdce8ddb9c22 20:14:41 ---> 0c76947b8e3d 20:14:41 Step 8/12 : WORKDIR /device-rest-go 20:14:41 ---> Running in a944fc0ed39e 20:14:42 Removing intermediate container a944fc0ed39e 20:14:42 ---> 84e11d6ceac0 20:14:42 Step 9/12 : COPY go.mod vendor* ./ 20:14:42 ---> ecc068658bb8 20:14:42 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 20:14:42 ---> Running in c657ef1268bc 20:15:00 Removing intermediate container c657ef1268bc 20:15:00 ---> 0c6e8fa00bfb 20:15:00 Step 11/12 : COPY . . 20:15:00 ---> 769a0edae345 20:15:00 Step 12/12 : RUN $MAKE 20:15:00 ---> Running in 2eb3fdf0f675 20:15:00 noop 20:15:00 Removing intermediate container 2eb3fdf0f675 20:15:00 ---> be790e75263a 20:15:00 Successfully built be790e75263a 20:15:00 Successfully tagged ci-base-image-x86_64:latest [Pipeline] isUnix [Pipeline] sh 20:15:00 + docker inspect -f . ci-base-image-x86_64 20:15:00 . [Pipeline] withDockerContainer 20:15:00 prd-ubuntu20.04-docker-8c-8g-42635 does not seem to be running inside a container 20:15:00 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-186 -v /w/workspace/gexfoundry_device-rest-go_PR-186:/w/workspace/gexfoundry_device-rest-go_PR-186:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-186@tmp:/w/workspace/gexfoundry_device-rest-go_PR-186@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 20:15:01 $ docker top a6f32651fada1b5ba4effab841c85f7012c6c7ddd500193d35fbf1687592bf9c -eo pid,comm [Pipeline] { [Pipeline] sh 20:15:01 + go version 20:15:01 go version go1.17.6 linux/amd64 [Pipeline] } 20:15:01 $ docker stop --time=1 a6f32651fada1b5ba4effab841c85f7012c6c7ddd500193d35fbf1687592bf9c 20:15:03 $ docker rm -f a6f32651fada1b5ba4effab841c85f7012c6c7ddd500193d35fbf1687592bf9c [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 20:15:04 + docker inspect -f . ci-base-image-x86_64 20:15:04 . [Pipeline] withDockerContainer 20:15:04 prd-ubuntu20.04-docker-8c-8g-42635 does not seem to be running inside a container 20:15:04 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-186 -v /w/workspace/gexfoundry_device-rest-go_PR-186:/w/workspace/gexfoundry_device-rest-go_PR-186:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-186@tmp:/w/workspace/gexfoundry_device-rest-go_PR-186@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 20:15:04 $ docker top c4872dcf340f4a2eb211d59c8abb4ae3aa831c93aca9c0736597821ce7a121b7 -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 20:15:05 + make test 20:15:05 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out ./... 20:15:05 ? github.com/edgexfoundry/device-rest-go [no test files] 20:15:17 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 20:15:17 ok github.com/edgexfoundry/device-rest-go/driver 0.018s coverage: 55.2% of statements 20:15:23 CGO_ENABLED=1 GO111MODULE=on go vet ./... 20:15:27 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 20:15:27 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 20:15:27 ./bin/test-attribution-txt.sh [Pipeline] echo 20:15:27 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 20:15:27 $ docker stop --time=1 c4872dcf340f4a2eb211d59c8abb4ae3aa831c93aca9c0736597821ce7a121b7 20:15:29 $ docker rm -f c4872dcf340f4a2eb211d59c8abb4ae3aa831c93aca9c0736597821ce7a121b7 [Pipeline] // withDockerContainer [Pipeline] sh 20:15:30 + sudo chown -R jenkins:jenkins . [Pipeline] stash 20:15:30 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 20:15:30 + sudo chown -R jenkins:jenkins . [Pipeline] sh 20:15:31 + ls -al . 20:15:31 total 168 20:15:31 drwxrwxr-x 9 jenkins jenkins 4096 May 9 20:15 . 20:15:31 drwxrwxr-x 4 jenkins jenkins 4096 May 9 20:13 .. 20:15:31 -rw-rw-r-- 1 jenkins jenkins 151 May 9 20:14 .dockerignore 20:15:31 drwxrwxr-x 8 jenkins jenkins 4096 May 9 20:14 .git 20:15:31 drwxrwxr-x 3 jenkins jenkins 4096 May 9 20:14 .github 20:15:31 -rw-rw-r-- 1 jenkins jenkins 329 May 9 20:14 .gitignore 20:15:31 -rw-rw-r-- 1 jenkins jenkins 41 May 9 20:14 .golangci.yml 20:15:31 drwxr-xr-x 3 jenkins jenkins 4096 May 9 20:14 .semver 20:15:31 -rw-rw-r-- 1 jenkins jenkins 8463 May 9 20:14 Attribution.txt 20:15:31 -rw-rw-r-- 1 jenkins jenkins 7459 May 9 20:14 CHANGELOG.md 20:15:31 -rw-rw-r-- 1 jenkins jenkins 1672 May 9 20:14 Dockerfile 20:15:31 -rw-rw-r-- 1 jenkins jenkins 677 May 9 20:14 GOVERNANCE.md 20:15:31 -rw-rw-r-- 1 jenkins jenkins 680 May 9 20:14 Jenkinsfile 20:15:31 -rw-rw-r-- 1 jenkins jenkins 11340 May 9 20:14 LICENSE 20:15:31 -rw-rw-r-- 1 jenkins jenkins 1977 May 9 20:14 Makefile 20:15:31 -rw-rw-r-- 1 jenkins jenkins 620 May 9 20:14 OWNERS.md 20:15:31 -rw-rw-r-- 1 jenkins jenkins 8003 May 9 20:14 README.md 20:15:31 -rw-rw-r-- 1 jenkins jenkins 5 May 9 20:14 VERSION 20:15:31 drwxrwxr-x 2 jenkins jenkins 4096 May 9 20:14 bin 20:15:31 drwxrwxr-x 3 jenkins jenkins 4096 May 9 20:14 cmd 20:15:31 -rw-r--r-- 1 jenkins jenkins 9355 May 9 20:15 coverage.out 20:15:31 drwxrwxr-x 2 jenkins jenkins 4096 May 9 20:14 driver 20:15:31 -rw-rw-r-- 1 jenkins jenkins 3326 May 9 20:14 go.mod 20:15:31 -rw-rw-r-- 1 jenkins jenkins 35363 May 9 20:14 go.sum 20:15:31 drwxrwxr-x 3 jenkins jenkins 4096 May 9 20:14 snap 20:15:31 -rw-rw-r-- 1 jenkins jenkins 713 May 9 20:14 version.go [Pipeline] isUnix [Pipeline] sh 20:15:31 + 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=4cb71774a2d5d5cadafac4e4038bfd054c067146 --label arch=amd64 --label version=0.0.0 . 20:15:31 Sending build context to Docker daemon 10.63MB 20:15:31 Step 1/25 : ARG BASE=golang:1.17-alpine3.15 20:15:31 Step 2/25 : FROM ${BASE} AS builder 20:15:31 ---> be790e75263a 20:15:31 Step 3/25 : ARG MAKE='make build' 20:15:31 ---> Running in 9f13784d2920 20:15:31 Removing intermediate container 9f13784d2920 20:15:31 ---> c450f718bf68 20:15:31 Step 4/25 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 20:15:31 ---> Running in c252577403f2 20:15:31 Removing intermediate container c252577403f2 20:15:31 ---> 0628c9990628 20:15:31 Step 5/25 : ARG ALPINE_PKG_EXTRA="" 20:15:32 ---> Running in 9386f0a7f72b 20:15:32 Removing intermediate container 9386f0a7f72b 20:15:32 ---> 834be055429e 20:15:32 Step 6/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 20:15:32 ---> Running in 8fd2338c3553 20:15:32 Removing intermediate container 8fd2338c3553 20:15:32 ---> 39978f642ac5 20:15:32 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 20:15:32 ---> Running in ee678f1bf938 20:15:33 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 20:15:33 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 20:15:34 OK: 224 MiB in 56 packages 20:15:34 Removing intermediate container ee678f1bf938 20:15:34 ---> 605d17bd3117 20:15:34 Step 8/25 : WORKDIR /device-rest-go 20:15:34 ---> Running in 953d5e45029e 20:15:34 Removing intermediate container 953d5e45029e 20:15:34 ---> 24e78f1fee7e 20:15:34 Step 9/25 : COPY go.mod vendor* ./ 20:15:34 ---> c156935494ea 20:15:34 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 20:15:34 ---> Running in 72897e658dbd 20:15:35 Removing intermediate container 72897e658dbd 20:15:35 ---> 599a6f3f7dc5 20:15:35 Step 11/25 : COPY . . 20:15:35 ---> 0e6f777d45ec 20:15:35 Step 12/25 : RUN $MAKE 20:15:35 ---> Running in cfef58ca91de 20:15:36 CGO_ENABLED=1 GO111MODULE=on go build -ldflags "-linkmode=external -X github.com/edgexfoundry/device-rest-go.Version=0.0.0" -trimpath -mod=readonly -buildmode=pie -o cmd/device-rest ./cmd 20:15:58 Removing intermediate container cfef58ca91de 20:15:58 ---> 39d1729c97a2 20:15:58 Step 13/25 : FROM alpine:3.14 20:15:58 3.14: Pulling from library/alpine 20:15:58 8663204ce13b: Pulling fs layer 20:15:58 8663204ce13b: Download complete 20:15:58 8663204ce13b: Pull complete 20:15:58 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 20:15:58 Status: Downloaded newer image for alpine:3.14 20:15:58 ---> e04c818066af 20:15:58 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' 20:15:58 ---> Running in cb3c50bd58c8 20:15:58 Removing intermediate container cb3c50bd58c8 20:15:58 ---> 78efa0a590fe 20:15:58 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 20:15:58 ---> Running in 7df849b23f72 20:15:58 Removing intermediate container 7df849b23f72 20:15:58 ---> 3a1eecf76f76 20:15:58 Step 16/25 : RUN apk add --update --no-cache zeromq dumb-init 20:15:58 ---> Running in 523d4d680efb 20:15:58 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz 20:15:58 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz 20:15:58 (1/6) Installing dumb-init (1.2.5-r1) 20:15:58 (2/6) Installing libgcc (10.3.1_git20210424-r2) 20:15:58 (3/6) Installing libsodium (1.0.18-r0) 20:15:58 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 20:15:58 (5/6) Installing libzmq (4.3.4-r0) 20:15:58 (6/6) Installing zeromq (4.3.4-r0) 20:15:58 Executing busybox-1.33.1-r7.trigger 20:15:58 OK: 8 MiB in 20 packages 20:15:58 Removing intermediate container 523d4d680efb 20:15:58 ---> 13152519135a 20:15:58 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 20:15:59 ---> 1b4f969813ce 20:15:59 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 20:15:59 ---> f3b4a47c2a16 20:15:59 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 20:15:59 ---> 1a83e4729e5f 20:15:59 Step 20/25 : EXPOSE 59986 20:16:00 ---> Running in 827d99406c57 20:16:00 Removing intermediate container 827d99406c57 20:16:00 ---> d4bfa876e2c8 20:16:00 Step 21/25 : ENTRYPOINT ["/device-rest"] 20:16:00 ---> Running in 354e01eba9fa 20:16:00 Removing intermediate container 354e01eba9fa 20:16:00 ---> 26cee59d6088 20:16:00 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--confdir=/res", "--registry"] 20:16:00 ---> Running in 5bd1e9f814cc 20:16:00 Removing intermediate container 5bd1e9f814cc 20:16:00 ---> 0c4161494d11 20:16:00 Step 23/25 : LABEL arch=amd64 20:16:00 ---> Running in 9aeb4b42fa72 20:16:00 Removing intermediate container 9aeb4b42fa72 20:16:00 ---> 650bab64869c 20:16:00 Step 24/25 : LABEL git_sha=4cb71774a2d5d5cadafac4e4038bfd054c067146 20:16:00 ---> Running in 90f7d9d3999d 20:16:00 Removing intermediate container 90f7d9d3999d 20:16:00 ---> 2900b02c3ed7 20:16:00 Step 25/25 : LABEL version=0.0.0 20:16:00 ---> Running in ce3d3a3d2ff3 20:16:00 Removing intermediate container ce3d3a3d2ff3 20:16:00 ---> cd37cb96c60b 20:16:00 [Warning] One or more build-args [ARCH] were not consumed 20:16:00 Successfully built cd37cb96c60b 20:16:00 Successfully tagged device-rest:latest [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] sh 20:16:01 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 20:16:01 20:16:01 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] sh 20:16:01 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 20:16:01 latest: Pulling from edgex-lftools-log-publisher 20:16:01 5eb5b503b376: Pulling fs layer 20:16:01 5c69ac0246d0: Pulling fs layer 20:16:01 ec43610c2a17: Pulling fs layer 20:16:01 3a2ae6a8a46f: Pulling fs layer 20:16:01 33b1e0a273af: Pulling fs layer 20:16:01 5d3b04190fa2: Pulling fs layer 20:16:01 2f39f015ded8: Pulling fs layer 20:16:01 3a2ae6a8a46f: Waiting 20:16:01 33b1e0a273af: Waiting 20:16:01 2f39f015ded8: Waiting 20:16:01 5d3b04190fa2: Waiting 20:16:01 5c69ac0246d0: Verifying Checksum 20:16:01 5c69ac0246d0: Download complete 20:16:01 3a2ae6a8a46f: Download complete 20:16:01 33b1e0a273af: Verifying Checksum 20:16:01 33b1e0a273af: Download complete 20:16:01 5d3b04190fa2: Verifying Checksum 20:16:01 5d3b04190fa2: Download complete 20:16:02 ec43610c2a17: Verifying Checksum 20:16:02 ec43610c2a17: Download complete 20:16:02 5eb5b503b376: Verifying Checksum 20:16:02 5eb5b503b376: Download complete 20:16:02 2f39f015ded8: Download complete 20:16:03 5eb5b503b376: Pull complete 20:16:03 5c69ac0246d0: Pull complete 20:16:04 ec43610c2a17: Pull complete 20:16:04 3a2ae6a8a46f: Pull complete 20:16:04 33b1e0a273af: Pull complete 20:16:04 5d3b04190fa2: Pull complete 20:16:10 2f39f015ded8: Pull complete 20:16:10 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 20:16:10 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 20:16:10 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] withDockerContainer 20:16:10 prd-ubuntu20.04-docker-8c-8g-42635 does not seem to be running inside a container 20:16:10 $ 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-186 -v /w/workspace/gexfoundry_device-rest-go_PR-186:/w/workspace/gexfoundry_device-rest-go_PR-186:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-186@tmp:/w/workspace/gexfoundry_device-rest-go_PR-186@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 20:16:11 $ docker top 71413ea8aac47d0581deed20e168c40cf21ffe8fd38f20dbc7d78a86d14d8f6d -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:16:12 ---> job-cost.sh 20:16:12 lf-activate-venv: SKIPPING 20:16:12 INFO: No Stack... 20:16:12 INFO: Retrieving Pricing Info for: v3-standard-8 20:16:13 INFO: Archiving Costs [Pipeline] sh 20:16:13 + cat /w/workspace/gexfoundry_device-rest-go_PR-186/archives/cost.csv 20:16:13 + cut -d, -f6 [Pipeline] lock 20:16:13 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-186-1-stack-cost] 20:16:13 Resource [jenkins-edgexfoundry-device-rest-go-PR-186-1-stack-cost] did not exist. Created. 20:16:13 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-186-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 20:16:14 + echo total: 0.2199999988079071 [Pipeline] stash 20:16:14 Stashed 1 file(s) [Pipeline] } 20:16:14 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-186-1-stack-cost] [Pipeline] // lock [Pipeline] } 20:16:14 $ docker stop --time=1 71413ea8aac47d0581deed20e168c40cf21ffe8fd38f20dbc7d78a86d14d8f6d 20:16:15 $ docker rm -f 71413ea8aac47d0581deed20e168c40cf21ffe8fd38f20dbc7d78a86d14d8f6d [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 20:24:58 Running on prd-ubuntu20.04-docker-arm64-4c-16g-42720 in /w/workspace/gexfoundry_device-rest-go_PR-186 [Pipeline] { [Pipeline] ws 20:24:58 Running in /w/workspace/device-rest-go/1 [Pipeline] { [Pipeline] checkout 20:24:59 The recommended git tool is: git 20:25:04 using credential edgex-jenkins-ssh 20:25:04 Cloning the remote Git repository 20:25:04 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 20:25:04 > git init /w/workspace/device-rest-go/1 # timeout=10 20:25:04 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 20:25:04 > git --version # timeout=10 20:25:05 > git --version # 'git version 2.25.1' 20:25:05 using GIT_SSH to set credentials SSH Credentials for GitHub 20:25:05 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 20:25:07 Merging remotes/origin/main commit 1b7989097685cbbb7d11325d5e96f20d406e46c7 into PR head commit 4cb71774a2d5d5cadafac4e4038bfd054c067146 20:25:08 Merge succeeded, producing 4cb71774a2d5d5cadafac4e4038bfd054c067146 20:25:08 Checking out Revision 4cb71774a2d5d5cadafac4e4038bfd054c067146 (PR-186) 20:25:07 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 20:25:07 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 20:25:07 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 20:25:07 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 20:25:07 using GIT_SSH to set credentials SSH Credentials for GitHub 20:25:07 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/186/head:refs/remotes/origin/PR-186 +refs/heads/main:refs/remotes/origin/main # timeout=10 20:25:07 > git config core.sparsecheckout # timeout=10 20:25:07 > git checkout -f 4cb71774a2d5d5cadafac4e4038bfd054c067146 # timeout=10 20:25:08 > git remote # timeout=10 20:25:08 > git config --get remote.origin.url # timeout=10 20:25:08 using GIT_SSH to set credentials SSH Credentials for GitHub 20:25:08 > git merge 1b7989097685cbbb7d11325d5e96f20d406e46c7 # timeout=10 20:25:08 > git rev-parse HEAD^{commit} # timeout=10 20:25:08 > git config core.sparsecheckout # timeout=10 20:25:08 > git checkout -f 4cb71774a2d5d5cadafac4e4038bfd054c067146 # timeout=10 20:25:12 Commit message: "build(deps): Bump github.com/edgexfoundry/go-mod-core-contracts/v2" 20:25:12 > git --version # timeout=10 20:25:12 > git --version # 'git version 2.25.1' 20:25:12 fatal: bad object 61d3a14f5ee21304eadc9c25f102bcac80e1a589 [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 20:25:13 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 20:25:13 % Total % Received % Xferd Average Speed Time Time Time Current 20:25:13 Dload Upload Total Spent Left Speed 20:25:13 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 11843 100 11843 0 0 56127 0 --:--:-- --:--:-- --:--:-- 56127 [Pipeline] sh 20:25:14 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 20:25:14 + sudo tee /etc/docker/daemon.new 20:25:14 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 20:25:14 { 20:25:14 "registry-mirrors": [ 20:25:14 "https://nexus3.edgexfoundry.org:10001" 20:25:14 ], 20:25:14 "bip": "10.250.0.254/24", 20:25:14 "hosts": [ 20:25:14 "tcp://0.0.0.0:5555", 20:25:14 "unix:///var/run/docker.sock" 20:25:14 ], 20:25:14 "mtu": 1458, 20:25:14 "selinux-enabled": true, 20:25:14 "seccomp-profile": "/etc/docker/seccomp.json" 20:25:14 } [Pipeline] sh 20:25:15 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 20:25:15 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 20:25:33 provisioning config files... 20:25:33 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/1@tmp/config1565949313285124621tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:25:34 ---> docker-login.sh 20:25:34 nexus3.edgexfoundry.org:10001 20:25:35 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:25:35 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:25:35 Configure a credential helper to remove this warning. See 20:25:35 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:25:35 20:25:35 Login Succeeded 20:25:35 nexus3.edgexfoundry.org:10002 20:25:35 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:25:35 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:25:35 Configure a credential helper to remove this warning. See 20:25:35 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:25:35 20:25:35 Login Succeeded 20:25:35 nexus3.edgexfoundry.org:10003 20:25:36 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:25:36 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:25:36 Configure a credential helper to remove this warning. See 20:25:36 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:25:36 20:25:36 Login Succeeded 20:25:36 nexus3.edgexfoundry.org:10004 20:25:36 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:25:36 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:25:36 Configure a credential helper to remove this warning. See 20:25:36 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:25:36 20:25:36 Login Succeeded 20:25:37 docker.io 20:25:37 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:25:37 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:25:37 Configure a credential helper to remove this warning. See 20:25:37 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:25:37 20:25:37 Login Succeeded 20:25:37 ---> docker-login.sh ends [Pipeline] } 20:25:37 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 20:25:38 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 20:25:38 ========================================================= 20:25:38 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine] 20:25:38 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 20:25:38 + docker build -t ci-base-image-arm64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine --build-arg MAKE=echo noop --target=builder . 20:25:38 Sending build context to Docker daemon 124.4kB 20:25:38 Step 1/12 : ARG BASE=golang:1.17-alpine3.15 20:25:38 Step 2/12 : FROM ${BASE} AS builder 20:25:39 1.17-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 20:25:39 9b3977197b4f: Pulling fs layer 20:25:39 1a89e8eeedd5: Pulling fs layer 20:25:39 94645a83ff95: Pulling fs layer 20:25:39 3f3a8bcf1eab: Pulling fs layer 20:25:39 0c92f367c5e7: Pulling fs layer 20:25:39 3096ccb668a1: Pulling fs layer 20:25:39 e8cf19c19ddd: Pulling fs layer 20:25:39 a4caa8a26152: Pulling fs layer 20:25:39 3f3a8bcf1eab: Waiting 20:25:39 0c92f367c5e7: Waiting 20:25:39 3096ccb668a1: Waiting 20:25:39 e8cf19c19ddd: Waiting 20:25:39 a4caa8a26152: Waiting 20:25:39 94645a83ff95: Verifying Checksum 20:25:39 94645a83ff95: Download complete 20:25:39 1a89e8eeedd5: Download complete 20:25:39 0c92f367c5e7: Download complete 20:25:39 3096ccb668a1: Verifying Checksum 20:25:39 3096ccb668a1: Download complete 20:25:39 9b3977197b4f: Verifying Checksum 20:25:39 9b3977197b4f: Download complete 20:25:39 e8cf19c19ddd: Verifying Checksum 20:25:39 e8cf19c19ddd: Download complete 20:25:40 9b3977197b4f: Pull complete 20:25:40 1a89e8eeedd5: Pull complete 20:25:40 94645a83ff95: Pull complete 20:25:41 a4caa8a26152: Verifying Checksum 20:25:41 a4caa8a26152: Download complete 20:25:41 3f3a8bcf1eab: Verifying Checksum 20:25:41 3f3a8bcf1eab: Download complete 20:25:54 3f3a8bcf1eab: Pull complete 20:25:54 0c92f367c5e7: Pull complete 20:25:54 3096ccb668a1: Pull complete 20:25:55 e8cf19c19ddd: Pull complete 20:26:03 a4caa8a26152: Pull complete 20:26:03 Digest: sha256:b3ad895ecde34a7521bb8912598475bc58d052e1c2c58d00df7f0fe54a102a46 20:26:03 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine 20:26:03 ---> 725f1c02e7f9 20:26:03 Step 3/12 : ARG MAKE='make build' 20:26:03 ---> Running in 2408cb8e8c15 20:26:03 Removing intermediate container 2408cb8e8c15 20:26:03 ---> af8c1acf60d3 20:26:03 Step 4/12 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 20:26:03 ---> Running in 2ae8cb25974c 20:26:03 Removing intermediate container 2ae8cb25974c 20:26:03 ---> 760d557aad14 20:26:03 Step 5/12 : ARG ALPINE_PKG_EXTRA="" 20:26:03 ---> Running in 2235f520d4b6 20:26:04 Removing intermediate container 2235f520d4b6 20:26:04 ---> 17f0aa8cc1ee 20:26:04 Step 6/12 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 20:26:04 ---> Running in ea2004758f75 20:26:06 Removing intermediate container ea2004758f75 20:26:06 ---> 0d6c1971ca53 20:26:06 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 20:26:06 ---> Running in 4aa7f568a233 20:26:07 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 20:26:08 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 20:26:09 (1/4) Installing openssh-keygen (8.8_p1-r1) 20:26:09 (2/4) Installing libedit (20210910.3.1-r0) 20:26:09 (3/4) Installing openssh-client-common (8.8_p1-r1) 20:26:09 (4/4) Installing openssh-client-default (8.8_p1-r1) 20:26:09 Executing busybox-1.34.1-r3.trigger 20:26:09 OK: 224 MiB in 56 packages 20:26:10 Removing intermediate container 4aa7f568a233 20:26:10 ---> ade21688235e 20:26:10 Step 8/12 : WORKDIR /device-rest-go 20:26:10 ---> Running in aa0d3cc2959f 20:26:11 Removing intermediate container aa0d3cc2959f 20:26:11 ---> 3eca90ddd4e5 20:26:11 Step 9/12 : COPY go.mod vendor* ./ 20:26:11 ---> 8222707774b0 20:26:11 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 20:26:11 ---> Running in d024bb67ef17 20:26:58 Removing intermediate container d024bb67ef17 20:26:58 ---> c3b8d3d95d2e 20:26:58 Step 11/12 : COPY . . 20:26:58 ---> 6c39cec3c356 20:26:58 Step 12/12 : RUN $MAKE 20:26:58 ---> Running in 10f8e98d2602 20:26:59 noop 20:27:00 Removing intermediate container 10f8e98d2602 20:27:00 ---> cabd174039aa 20:27:00 Successfully built cabd174039aa 20:27:00 Successfully tagged ci-base-image-arm64:latest [Pipeline] isUnix [Pipeline] sh 20:27:00 + docker inspect -f . ci-base-image-arm64 20:27:00 . [Pipeline] withDockerContainer 20:27:01 prd-ubuntu20.04-docker-arm64-4c-16g-42720 does not seem to be running inside a container 20:27:01 $ 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 ******** ci-base-image-arm64 cat 20:27:02 $ docker top 33a1cb8cc0377e4e2759e9d2c6680a1e971643e5fc069353a0b97b121cd6c5e6 -eo pid,comm [Pipeline] { [Pipeline] sh 20:27:03 + go version 20:27:03 go version go1.17.6 linux/arm64 [Pipeline] } 20:27:03 $ docker stop --time=1 33a1cb8cc0377e4e2759e9d2c6680a1e971643e5fc069353a0b97b121cd6c5e6 20:27:05 $ docker rm -f 33a1cb8cc0377e4e2759e9d2c6680a1e971643e5fc069353a0b97b121cd6c5e6 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 20:27:06 + docker inspect -f . ci-base-image-arm64 20:27:06 . [Pipeline] withDockerContainer 20:27:06 prd-ubuntu20.04-docker-arm64-4c-16g-42720 does not seem to be running inside a container 20:27:06 $ 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 ******** ci-base-image-arm64 cat 20:27:07 $ docker top 8a7e4e9812979fad27d3f32d98a6218b83b263c9ea3d2d4f74cc781123b7375d -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 20:27:09 + make test 20:27:09 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out ./... 20:27:11 ? github.com/edgexfoundry/device-rest-go [no test files] 20:28:47 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 20:28:47 ok github.com/edgexfoundry/device-rest-go/driver 0.074s coverage: 55.2% of statements 20:28:47 WARNING: Linting skipped (not on x86_64 or linter not installed) 20:28:47 CGO_ENABLED=1 GO111MODULE=on go vet ./... 20:29:10 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 20:29:10 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 20:29:10 ./bin/test-attribution-txt.sh [Pipeline] echo 20:29:13 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 20:29:13 $ docker stop --time=1 8a7e4e9812979fad27d3f32d98a6218b83b263c9ea3d2d4f74cc781123b7375d 20:29:15 $ docker rm -f 8a7e4e9812979fad27d3f32d98a6218b83b263c9ea3d2d4f74cc781123b7375d [Pipeline] // withDockerContainer [Pipeline] sh 20:29:16 + sudo chown -R jenkins:jenkins . [Pipeline] stash 20:29:16 Warning: overwriting stash ‘coverage-report’ 20:29:17 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 20:29:17 + sudo chown -R jenkins:jenkins . [Pipeline] sh 20:29:18 + ls -al . 20:29:18 total 164 20:29:18 drwxrwxr-x 8 jenkins jenkins 4096 May 9 20:29 . 20:29:18 drwxrwxr-x 4 jenkins jenkins 4096 May 9 20:25 .. 20:29:18 -rw-rw-r-- 1 jenkins jenkins 151 May 9 20:25 .dockerignore 20:29:18 drwxrwxr-x 8 jenkins jenkins 4096 May 9 20:25 .git 20:29:18 drwxrwxr-x 3 jenkins jenkins 4096 May 9 20:25 .github 20:29:18 -rw-rw-r-- 1 jenkins jenkins 329 May 9 20:25 .gitignore 20:29:18 -rw-rw-r-- 1 jenkins jenkins 41 May 9 20:25 .golangci.yml 20:29:18 -rw-rw-r-- 1 jenkins jenkins 8463 May 9 20:25 Attribution.txt 20:29:18 -rw-rw-r-- 1 jenkins jenkins 7459 May 9 20:25 CHANGELOG.md 20:29:18 -rw-rw-r-- 1 jenkins jenkins 1672 May 9 20:25 Dockerfile 20:29:18 -rw-rw-r-- 1 jenkins jenkins 677 May 9 20:25 GOVERNANCE.md 20:29:18 -rw-rw-r-- 1 jenkins jenkins 680 May 9 20:25 Jenkinsfile 20:29:18 -rw-rw-r-- 1 jenkins jenkins 11340 May 9 20:25 LICENSE 20:29:18 -rw-rw-r-- 1 jenkins jenkins 1977 May 9 20:25 Makefile 20:29:18 -rw-rw-r-- 1 jenkins jenkins 620 May 9 20:25 OWNERS.md 20:29:18 -rw-rw-r-- 1 jenkins jenkins 8003 May 9 20:25 README.md 20:29:18 -rw-rw-r-- 1 jenkins jenkins 5 May 9 20:14 VERSION 20:29:18 drwxrwxr-x 2 jenkins jenkins 4096 May 9 20:25 bin 20:29:18 drwxrwxr-x 3 jenkins jenkins 4096 May 9 20:25 cmd 20:29:18 -rw-r--r-- 1 jenkins jenkins 9355 May 9 20:28 coverage.out 20:29:18 drwxrwxr-x 2 jenkins jenkins 4096 May 9 20:25 driver 20:29:18 -rw-rw-r-- 1 jenkins jenkins 3326 May 9 20:25 go.mod 20:29:18 -rw-rw-r-- 1 jenkins jenkins 35363 May 9 20:25 go.sum 20:29:18 drwxrwxr-x 3 jenkins jenkins 4096 May 9 20:25 snap 20:29:18 -rw-rw-r-- 1 jenkins jenkins 713 May 9 20:25 version.go [Pipeline] isUnix [Pipeline] sh 20:29:18 + 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=4cb71774a2d5d5cadafac4e4038bfd054c067146 --label arch=arm64 --label version=0.0.0 . 20:29:19 Sending build context to Docker daemon 134.7kB 20:29:19 Step 1/25 : ARG BASE=golang:1.17-alpine3.15 20:29:19 Step 2/25 : FROM ${BASE} AS builder 20:29:19 ---> cabd174039aa 20:29:19 Step 3/25 : ARG MAKE='make build' 20:29:19 ---> Running in f44bca2cc23e 20:29:19 Removing intermediate container f44bca2cc23e 20:29:19 ---> 027c600858f4 20:29:19 Step 4/25 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 20:29:19 ---> Running in e8dccf4ddb6c 20:29:20 Removing intermediate container e8dccf4ddb6c 20:29:20 ---> 09e809e2b63d 20:29:20 Step 5/25 : ARG ALPINE_PKG_EXTRA="" 20:29:20 ---> Running in 169c451d1157 20:29:20 Removing intermediate container 169c451d1157 20:29:20 ---> 1899c824dd57 20:29:20 Step 6/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 20:29:20 ---> Running in 55f714035283 20:29:22 Removing intermediate container 55f714035283 20:29:22 ---> 8cc0da899041 20:29:22 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 20:29:22 ---> Running in bc459ce41635 20:29:23 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 20:29:24 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 20:29:25 OK: 224 MiB in 56 packages 20:29:26 Removing intermediate container bc459ce41635 20:29:26 ---> 2432d04ea4e2 20:29:26 Step 8/25 : WORKDIR /device-rest-go 20:29:26 ---> Running in aefe5d348af4 20:29:27 Removing intermediate container aefe5d348af4 20:29:27 ---> 00e5b1f25a6c 20:29:27 Step 9/25 : COPY go.mod vendor* ./ 20:29:27 ---> 042a7b10cd75 20:29:27 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 20:29:27 ---> Running in df3ffb513067 20:29:29 Removing intermediate container df3ffb513067 20:29:29 ---> 2c57480b7444 20:29:29 Step 11/25 : COPY . . 20:29:30 ---> 213b3d11adce 20:29:30 Step 12/25 : RUN $MAKE 20:29:30 ---> Running in de83ffb08cf2 20:29:31 CGO_ENABLED=1 GO111MODULE=on go build -ldflags "-linkmode=external -X github.com/edgexfoundry/device-rest-go.Version=0.0.0" -trimpath -mod=readonly -buildmode=pie -o cmd/device-rest ./cmd 20:31:53 Removing intermediate container de83ffb08cf2 20:31:53 ---> c493af12cb0e 20:31:53 Step 13/25 : FROM alpine:3.14 20:31:53 3.14: Pulling from library/alpine 20:31:53 455c02918c45: Pulling fs layer 20:31:53 455c02918c45: Verifying Checksum 20:31:53 455c02918c45: Download complete 20:31:53 455c02918c45: Pull complete 20:31:53 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 20:31:53 Status: Downloaded newer image for alpine:3.14 20:31:53 ---> ac73e934f311 20:31:53 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' 20:31:53 ---> Running in d2db4e145e26 20:31:53 Removing intermediate container d2db4e145e26 20:31:53 ---> 6479d175f1d7 20:31:53 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 20:31:53 ---> Running in e9d491cdc2a9 20:31:53 Removing intermediate container e9d491cdc2a9 20:31:53 ---> 342befc6078a 20:31:53 Step 16/25 : RUN apk add --update --no-cache zeromq dumb-init 20:31:53 ---> Running in d5f0158e44cc 20:31:53 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/aarch64/APKINDEX.tar.gz 20:31:53 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/aarch64/APKINDEX.tar.gz 20:31:53 (1/6) Installing dumb-init (1.2.5-r1) 20:31:53 (2/6) Installing libgcc (10.3.1_git20210424-r2) 20:31:53 (3/6) Installing libsodium (1.0.18-r0) 20:31:53 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 20:31:53 (5/6) Installing libzmq (4.3.4-r0) 20:31:53 (6/6) Installing zeromq (4.3.4-r0) 20:31:53 Executing busybox-1.33.1-r7.trigger 20:31:53 OK: 8 MiB in 20 packages 20:31:54 Removing intermediate container d5f0158e44cc 20:31:54 ---> acfdaceae7b8 20:31:54 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 20:31:56 ---> 0f735527dfab 20:31:56 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 20:31:57 ---> c77f76759058 20:31:57 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 20:31:57 ---> b06c42301260 20:31:57 Step 20/25 : EXPOSE 59986 20:31:57 ---> Running in 39a8217f60c9 20:31:57 Removing intermediate container 39a8217f60c9 20:31:57 ---> 833e2366a032 20:31:57 Step 21/25 : ENTRYPOINT ["/device-rest"] 20:31:57 ---> Running in 8a045b590da0 20:31:58 Removing intermediate container 8a045b590da0 20:31:58 ---> 2b6101b6f360 20:31:58 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--confdir=/res", "--registry"] 20:31:58 ---> Running in 81cbb9cbc508 20:31:58 Removing intermediate container 81cbb9cbc508 20:31:58 ---> 8c7c89ad5d78 20:31:58 Step 23/25 : LABEL arch=arm64 20:31:58 ---> Running in f26c91564296 20:31:59 Removing intermediate container f26c91564296 20:31:59 ---> 2494c8041ced 20:31:59 Step 24/25 : LABEL git_sha=4cb71774a2d5d5cadafac4e4038bfd054c067146 20:31:59 ---> Running in 93f6346b7f93 20:31:59 Removing intermediate container 93f6346b7f93 20:31:59 ---> 87833f3cad44 20:31:59 Step 25/25 : LABEL version=0.0.0 20:31:59 ---> Running in 3ba10cbe31da 20:32:00 Removing intermediate container 3ba10cbe31da 20:32:00 ---> 0e67c7756590 20:32:00 [Warning] One or more build-args [ARCH] were not consumed 20:32:00 Successfully built 0e67c7756590 20:32:00 Successfully tagged device-rest-arm64:latest [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] sh 20:32:00 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 20:32:00 20:32:00 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] sh 20:32:01 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 20:32:01 arm64: Pulling from edgex-lftools-log-publisher 20:32:01 8998bd30e6a1: Pulling fs layer 20:32:01 04944245beec: Pulling fs layer 20:32:01 699f458cf7ca: Pulling fs layer 20:32:01 765212b225bb: Pulling fs layer 20:32:01 f23df028b6ca: Pulling fs layer 20:32:01 d65c8cfc05b1: Pulling fs layer 20:32:01 2437ff75d9bd: Pulling fs layer 20:32:01 f23df028b6ca: Waiting 20:32:01 d65c8cfc05b1: Waiting 20:32:01 2437ff75d9bd: Waiting 20:32:01 765212b225bb: Waiting 20:32:01 04944245beec: Verifying Checksum 20:32:01 04944245beec: Download complete 20:32:01 765212b225bb: Verifying Checksum 20:32:01 765212b225bb: Download complete 20:32:01 f23df028b6ca: Verifying Checksum 20:32:01 f23df028b6ca: Download complete 20:32:01 d65c8cfc05b1: Verifying Checksum 20:32:01 d65c8cfc05b1: Download complete 20:32:01 699f458cf7ca: Verifying Checksum 20:32:01 699f458cf7ca: Download complete 20:32:02 8998bd30e6a1: Verifying Checksum 20:32:02 8998bd30e6a1: Download complete 20:32:04 2437ff75d9bd: Verifying Checksum 20:32:04 2437ff75d9bd: Download complete 20:32:06 8998bd30e6a1: Pull complete 20:32:07 04944245beec: Pull complete 20:32:08 699f458cf7ca: Pull complete 20:32:08 765212b225bb: Pull complete 20:32:09 f23df028b6ca: Pull complete 20:32:10 d65c8cfc05b1: Pull complete 20:32:25 2437ff75d9bd: Pull complete 20:32:25 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 20:32:25 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 20:32:25 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] withDockerContainer 20:32:25 prd-ubuntu20.04-docker-arm64-4c-16g-42720 does not seem to be running inside a container 20:32:25 $ 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 ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 20:32:28 $ docker top cbe13b42fb91c7a77c31aa9da8165026d6790afadfe04e05aa4c755db4152044 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:32:29 ---> job-cost.sh 20:32:29 lf-activate-venv: SKIPPING 20:32:29 INFO: No Stack... 20:32:30 INFO: Retrieving Pricing Info for: v3-standard-4 20:32:30 INFO: Archiving Costs [Pipeline] sh 20:32:31 + cut -d, -f6 20:32:31 + cat /w/workspace/device-rest-go/1/archives/cost.csv [Pipeline] lock 20:32:31 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-186-1-stack-cost] 20:32:31 Resource [jenkins-edgexfoundry-device-rest-go-PR-186-1-stack-cost] did not exist. Created. 20:32:31 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-186-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 20:32:32 /w/workspace/device-rest-go/1@tmp/durable-e64c00d6/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 20:32:33 + echo total: 0.10999999940395355 [Pipeline] stash 20:32:33 Warning: overwriting stash ‘stack-cost’ 20:32:33 Stashed 1 file(s) [Pipeline] } 20:32:33 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-186-1-stack-cost] [Pipeline] // lock [Pipeline] } 20:32:33 $ docker stop --time=1 cbe13b42fb91c7a77c31aa9da8165026d6790afadfe04e05aa4c755db4152044 20:32:35 $ docker rm -f cbe13b42fb91c7a77c31aa9da8165026d6790afadfe04e05aa4c755db4152044 [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:32:36 provisioning config files... 20:32:36 copy managed file [device-rest-go-codecov-token] to file:/w/workspace/gexfoundry_device-rest-go_PR-186@tmp/config5205168966861404755tmp [Pipeline] { [Pipeline] sh 20:32:36 + set +x 20:32:36 + curl -s https://codecov.io/bash 20:32:36 + bash -s -- 20:32:36 20:32:36 _____ _ 20:32:36 / ____| | | 20:32:36 | | ___ __| | ___ ___ _____ __ 20:32:36 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 20:32:36 | |___| (_) | (_| | __/ (_| (_) \ V / 20:32:36 \_____\___/ \__,_|\___|\___\___/ \_/ 20:32:36 Bash-1.0.6 20:32:36 20:32:36 20:32:36 ==> git version 2.25.1 found 20:32:36 ==> 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:32:36 Release-Date: 2020-01-08 20:32:36 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:32:36 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 20:32:36 ==> Jenkins CI detected. 20:32:36 current dir:  /w/workspace/gexfoundry_device-rest-go_PR-186 20:32:36 project root: . 20:32:36 --> token set from env 20:32:36 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 20:32:36 ==> Running gcov in . (disable via -X gcov) 20:32:36 ==> Python coveragepy not found 20:32:36 ==> Searching for coverage reports in: 20:32:36 + . 20:32:36 -> Found 1 reports 20:32:36 ==> Detecting git/mercurial file structure 20:32:36 ==> Reading reports 20:32:36 + ./coverage.out bytes=9355 20:32:36 ==> Appending adjustments 20:32:36 https://docs.codecov.io/docs/fixing-reports 20:32:36 + Found adjustments 20:32:36 ==> Gzipping contents 20:32:36 4.0K /tmp/codecov.NBgYrI.gz 20:32:36 ==> Uploading reports 20:32:36 url: https://codecov.io 20:32:36 query: branch=PR-186&commit=4cb71774a2d5d5cadafac4e4038bfd054c067146&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-186%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=186&job=&cmd_args= 20:32:36 -> Pinging Codecov 20:32:36 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=c51feb23-73ac-4f49-b3d1-d26df23137db&branch=PR-186&commit=4cb71774a2d5d5cadafac4e4038bfd054c067146&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-186%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=186&job=&cmd_args= 20:32:37 -> Uploading to 20:32:37 https://storage.googleapis.com/codecov/v4/raw/2022-05-09/4E5D53B4F1F92C436F7061BF334D961C/4cb71774a2d5d5cadafac4e4038bfd054c067146/cdaacd5a-8c9b-4e35-84c6-82db60496bcd.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20220509%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20220509T203236Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=1e37d10bacaf443193040ce9d4bf21ac9b3237586ba99f680c7a4dfed0cd8148 20:32:37 % Total % Received % Xferd Average Speed Time Time Time Current 20:32:37 Dload Upload Total Spent Left Speed 20:32:37 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 1806 0 0 100 1806 0 8171 --:--:-- --:--:-- --:--:-- 8135 100 1806 0 0 100 1806 0 7818 --:--:-- --:--:-- --:--:-- 7784 20:32:37 -> Reports have been successfully queued for processing at https://codecov.io/github/edgexfoundry/device-rest-go/commit/4cb71774a2d5d5cadafac4e4038bfd054c067146 [Pipeline] } 20:32:37 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:32:39 + [ -d /w/workspace/gexfoundry_device-rest-go_PR-186/archives ] 20:32:39 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-186/archives 20:32:39 total 16 20:32:39 drwxr-xr-x 3 root root 4096 May 9 20:16 . 20:32:39 drwxrwxr-x 10 jenkins jenkins 4096 May 9 20:16 .. 20:32:39 drwxr-xr-x 2 root root 4096 May 9 20:16 cost 20:32:39 -rw-r--r-- 1 root root 85 May 9 20:16 cost.csv 20:32:39 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-rest-go_PR-186/archives 20:32:39 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-186/archives 20:32:39 total 16 20:32:39 drwxr-xr-x 3 jenkins jenkins 4096 May 9 20:16 . 20:32:39 drwxrwxr-x 10 jenkins jenkins 4096 May 9 20:16 .. 20:32:39 drwxr-xr-x 2 jenkins jenkins 4096 May 9 20:16 cost 20:32:39 -rw-r--r-- 1 jenkins jenkins 85 May 9 20:16 cost.csv [Pipeline] libraryResource [Pipeline] sh 20:32:39 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 20:32:40 ---> package-listing.sh 20:32:40 ++ facter osfamily 20:32:40 ++ tr '[:upper:]' '[:lower:]' 20:32:40 + OS_FAMILY=debian 20:32:40 + workspace=/w/workspace/gexfoundry_device-rest-go_PR-186 20:32:40 + START_PACKAGES=/tmp/packages_start.txt 20:32:40 + END_PACKAGES=/tmp/packages_end.txt 20:32:40 + DIFF_PACKAGES=/tmp/packages_diff.txt 20:32:40 + PACKAGES=/tmp/packages_start.txt 20:32:40 + '[' /w/workspace/gexfoundry_device-rest-go_PR-186 ']' 20:32:40 + PACKAGES=/tmp/packages_end.txt 20:32:40 + case "${OS_FAMILY}" in 20:32:40 + dpkg -l 20:32:40 + grep '^ii' 20:32:40 + '[' -f /tmp/packages_start.txt ']' 20:32:40 + '[' -f /tmp/packages_end.txt ']' 20:32:40 + diff /tmp/packages_start.txt /tmp/packages_end.txt 20:32:40 + '[' /w/workspace/gexfoundry_device-rest-go_PR-186 ']' 20:32:40 + mkdir -p /w/workspace/gexfoundry_device-rest-go_PR-186/archives/ 20:32:40 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/gexfoundry_device-rest-go_PR-186/archives/ [Pipeline] echo 20:32:40 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-186/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 20:32:41 + facter operatingsystem [Pipeline] isUnix [Pipeline] sh 20:32:41 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 20:32:41 . [Pipeline] withDockerContainer 20:32:41 prd-ubuntu20.04-docker-8c-8g-42635 does not seem to be running inside a container 20:32:41 $ 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-186/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-186 -v /w/workspace/gexfoundry_device-rest-go_PR-186:/w/workspace/gexfoundry_device-rest-go_PR-186:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-186@tmp:/w/workspace/gexfoundry_device-rest-go_PR-186@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:32:42 $ docker top 363843ad7df59e217481ff678f8238e7ee3c2db2fbc0925b304d96d4aeabd1b3 -eo pid,comm [Pipeline] { [Pipeline] sh 20:32:42 + touch /tmp/pre-build-complete [Pipeline] sh 20:32:42 + mkdir -p /var/log/sysstat [Pipeline] sh 20:32:43 + ls /var/log/sa-host 20:32:43 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 20:32:43 provisioning config files... 20:32:43 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-186@tmp/config1272728994049488234tmp [Pipeline] { [Pipeline] echo 20:32:43 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 20:32:43 ---> create-netrc.sh [Pipeline] } 20:32:43 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 20:32:44 ---> python-tools-install.sh [Pipeline] echo 20:32:44 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 20:32:44 ---> sudo-logs.sh 20:32:44 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 20:32:44 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 20:32:44 ---> job-cost.sh 20:32:44 lf-activate-venv: SKIPPING 20:32:44 DEBUG: total: 0.2199999988079071 20:32:44 INFO: Retrieving Stack Cost... 20:32:45 INFO: Retrieving Pricing Info for: v3-standard-8 20:32:45 INFO: Archiving Costs [Pipeline] echo 20:32:45 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 20:32:46 ---> logs-deploy.sh 20:32:46 lf-activate-venv: SKIPPING 20:32:46 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-186/1 20:32:46 INFO: archiving workspace using pattern(s): 20:32:47 Archives upload complete. 20:32:47 INFO: archiving logs to Nexus