Pull request #185 opened Connecting to https://api.github.com using edgex-jenkins github personal access token Connecting to https://api.github.com to check permissions of obtain list of jpwhitemn for edgexfoundry/device-rest-go Obtained Jenkinsfile from 7cdae81832caa7ff51aa672536335ab33271aca3+1b7989097685cbbb7d11325d5e96f20d406e46c7 (176d895e7a18bb244feecfb33afda3a2bcbba5ce) 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-ssh524715724307130560.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-ssh11571697636371618923.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-185/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-185/workspace@libs/edgex-global-pipelines@tmp/jenkins-gitclient-ssh1456896190137537692.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-185/workspace@libs/edgex-global-pipelines@tmp/jenkins-gitclient-ssh2536552498267827807.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-ssh2189160975386006987.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-185/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-185/workspace@libs/lf-pipelines@tmp/jenkins-gitclient-ssh7092523593744005461.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-41429 in /w/workspace/gexfoundry_device-rest-go_PR-185 [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-185 # 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 7cdae81832caa7ff51aa672536335ab33271aca3 Merge succeeded, producing 7cdae81832caa7ff51aa672536335ab33271aca3 Checking out Revision 7cdae81832caa7ff51aa672536335ab33271aca3 (PR-185) > 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/185/head:refs/remotes/origin/PR-185 +refs/heads/main:refs/remotes/origin/main # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 7cdae81832caa7ff51aa672536335ab33271aca3 # timeout=10 > git remote # timeout=10 > git config --get remote.origin.url # timeout=10 using GIT_SSH to set credentials SSH Credentials for GitHub > git merge 1b7989097685cbbb7d11325d5e96f20d406e46c7 # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 7cdae81832caa7ff51aa672536335ab33271aca3 # timeout=10 Commit message: "docs: update CHANGELOG for Kamakura" 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 00:40:23 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 00:40:24 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 00:40:24 ========================================================= 00:40:24 EdgeX Global Pipelines Version Info 00:40:24 ========================================================= [Pipeline] libraryResource [Pipeline] sh 00:40:24 ------------------- 00:40:24 stable info: 00:40:24 ------------------- 00:40:24 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 00:40:24 Commit SHA: 61d3a14f5ee21304eadc9c25f102bcac80e1a589 00:40:24 Message: update stable to v1.0.227 00:40:25 ------------------- 00:40:25 experimental info: 00:40:25 ------------------- 00:40:25 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 00:40:25 Commit SHA: 821e2ffd3fa43eddc5db18cf710cdace1a36094c 00:40:25 Message: update experimental to v1.0.229 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 00:40:25 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 00:40:25 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 00:40:25 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 00:40:25 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 00:40:26 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 00:40:26 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.17 [Pipeline] echo 00:40:26 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 00:40:26 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 00:40:26 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 00:40:26 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 00:40:26 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 00:40:26 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 00:40:26 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 00:40:26 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 00:40:26 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 00:40:26 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 00:40:26 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 00:40:26 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 00:40:26 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 00:40:26 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 00:40:26 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 00:40:26 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 00:40:26 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 00:40:26 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 00:40:26 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 00:40:26 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 00:40:26 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-185 [Pipeline] echo 00:40:26 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-185 [Pipeline] echo 00:40:26 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-185 [Pipeline] echo 00:40:27 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 7cdae81832caa7ff51aa672536335ab33271aca3 [Pipeline] echo 00:40:27 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 7cdae81 [Pipeline] echo 00:40:27 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 00:40:27 provisioning config files... 00:40:27 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-185@tmp/config8477957044879785692tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 00:40:27 ---> docker-login.sh 00:40:27 nexus3.edgexfoundry.org:10001 00:40:27 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:40:27 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:40:27 Configure a credential helper to remove this warning. See 00:40:27 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:40:27 00:40:27 Login Succeeded 00:40:27 nexus3.edgexfoundry.org:10002 00:40:27 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:40:28 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:40:28 Configure a credential helper to remove this warning. See 00:40:28 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:40:28 00:40:28 Login Succeeded 00:40:28 nexus3.edgexfoundry.org:10003 00:40:28 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:40:28 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:40:28 Configure a credential helper to remove this warning. See 00:40:28 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:40:28 00:40:28 Login Succeeded 00:40:28 nexus3.edgexfoundry.org:10004 00:40:28 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:40:28 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:40:28 Configure a credential helper to remove this warning. See 00:40:28 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:40:28 00:40:28 Login Succeeded 00:40:28 docker.io 00:40:28 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:40:28 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:40:28 Configure a credential helper to remove this warning. See 00:40:28 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:40:28 00:40:28 Login Succeeded 00:40:28 ---> docker-login.sh ends [Pipeline] } 00:40:28 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 00:40:29 + git rev-list -1 --merges 7cdae81832caa7ff51aa672536335ab33271aca3~1..7cdae81832caa7ff51aa672536335ab33271aca3 [Pipeline] echo 00:40:29 -----------> git rev-list -1 --merges 7cdae81832caa7ff51aa672536335ab33271aca3~1..7cdae81832caa7ff51aa672536335ab33271aca3 7cdae81832caa7ff51aa672536335ab33271aca3 [false] [Pipeline] sh 00:40:29 + git log --format=format:%s -1 7cdae81832caa7ff51aa672536335ab33271aca3 [Pipeline] echo 00:40:29 ========================================================= 00:40:29 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 00:40:29 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 00:40:30 + git log --format=format:%s -1 7cdae81832caa7ff51aa672536335ab33271aca3 [Pipeline] echo 00:40:30 [semverPrep] GIT_COMMIT: 7cdae81832caa7ff51aa672536335ab33271aca3, Commit Message: docs: update CHANGELOG for Kamakura [Pipeline] echo 00:40:30 [semverPrep] This is not a build commit. [Pipeline] sh 00:40:30 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 00:40:30 + grep -v github /etc/ssh/ssh_known_hosts 00:40:30 + [ -e /tmp/ssh_known_hosts ] 00:40:30 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 00:40:30 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 00:40:30 + sudo tee -a /etc/ssh/ssh_known_hosts 00:40:30 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] sh 00:40:30 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest 00:40:30 00:40:30 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest [Pipeline] isUnix [Pipeline] sh 00:40:31 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest 00:40:31 latest: Pulling from edgex-devops/py-git-semver 00:40:31 1fe172e4850f: Pulling fs layer 00:40:31 caf521ccaac6: Pulling fs layer 00:40:31 3ead6fa29328: Pulling fs layer 00:40:31 5c2a1cbceb83: Pulling fs layer 00:40:31 a8d5f1318db7: Pulling fs layer 00:40:31 c427282e49a2: Pulling fs layer 00:40:31 1827001aaf11: Pulling fs layer 00:40:31 0714d37db230: Pulling fs layer 00:40:31 ac28cf19c067: Pulling fs layer 00:40:31 ca983d60f3e2: Pulling fs layer 00:40:31 9f894cec8388: Pulling fs layer 00:40:31 c427282e49a2: Waiting 00:40:31 1827001aaf11: Waiting 00:40:31 0714d37db230: Waiting 00:40:31 ac28cf19c067: Waiting 00:40:31 5c2a1cbceb83: Waiting 00:40:31 ca983d60f3e2: Waiting 00:40:31 a8d5f1318db7: Waiting 00:40:31 9f894cec8388: Waiting 00:40:31 caf521ccaac6: Verifying Checksum 00:40:31 caf521ccaac6: Download complete 00:40:31 5c2a1cbceb83: Verifying Checksum 00:40:31 5c2a1cbceb83: Download complete 00:40:31 a8d5f1318db7: Verifying Checksum 00:40:31 a8d5f1318db7: Download complete 00:40:31 c427282e49a2: Download complete 00:40:31 3ead6fa29328: Verifying Checksum 00:40:31 3ead6fa29328: Download complete 00:40:31 0714d37db230: Verifying Checksum 00:40:31 0714d37db230: Download complete 00:40:31 ac28cf19c067: Download complete 00:40:31 ca983d60f3e2: Verifying Checksum 00:40:31 ca983d60f3e2: Download complete 00:40:31 9f894cec8388: Download complete 00:40:31 1fe172e4850f: Verifying Checksum 00:40:31 1fe172e4850f: Download complete 00:40:32 1827001aaf11: Verifying Checksum 00:40:32 1827001aaf11: Download complete 00:40:33 1fe172e4850f: Pull complete 00:40:33 caf521ccaac6: Pull complete 00:40:33 3ead6fa29328: Pull complete 00:40:33 5c2a1cbceb83: Pull complete 00:40:33 a8d5f1318db7: Pull complete 00:40:34 c427282e49a2: Pull complete 00:40:36 1827001aaf11: Pull complete 00:40:36 0714d37db230: Pull complete 00:40:36 ac28cf19c067: Pull complete 00:40:36 ca983d60f3e2: Pull complete 00:40:36 9f894cec8388: Pull complete 00:40:36 Digest: sha256:90e63904a1edc574c23a580e5fc31fbcdccad1501625621f67a6be262171cfee 00:40:36 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest 00:40:36 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest [Pipeline] withDockerContainer 00:40:36 prd-ubuntu20.04-docker-8c-8g-41429 does not seem to be running inside a container 00:40:36 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/gexfoundry_device-rest-go_PR-185 -v /w/workspace/gexfoundry_device-rest-go_PR-185:/w/workspace/gexfoundry_device-rest-go_PR-185:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-185@tmp:/w/workspace/gexfoundry_device-rest-go_PR-185@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-devops/py-git-semver:latest cat 00:40:37 $ docker top 38a2e80272c884dfefe94db95b4e8ba2ab6b1c8378a08dc6ecae234c4011f7e0 -eo pid,comm 00:40:37 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). 00:40:37 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 00:40:37 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 00:40:37 [ssh-agent] Looking for ssh-agent implementation... 00:40:38 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 00:40:38 $ docker exec 38a2e80272c884dfefe94db95b4e8ba2ab6b1c8378a08dc6ecae234c4011f7e0 ssh-agent 00:40:38 SSH_AUTH_SOCK=/tmp/ssh-WQkDumKMpbeX/agent.35 00:40:38 SSH_AGENT_PID=41 00:40:38 Running ssh-add (command line suppressed) 00:40:38 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-185@tmp/private_key_2063379496994320247.key (/w/workspace/gexfoundry_device-rest-go_PR-185@tmp/private_key_2063379496994320247.key) 00:40:38 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 00:40:38 + git tag --points-at HEAD [Pipeline] } 00:40:38 $ docker exec --env ******** --env ******** 38a2e80272c884dfefe94db95b4e8ba2ab6b1c8378a08dc6ecae234c4011f7e0 ssh-agent -k 00:40:38 unset SSH_AUTH_SOCK; 00:40:38 unset SSH_AGENT_PID; 00:40:38 echo Agent pid 41 killed; 00:40:38 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 00:40:38 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 00:40:38 [ssh-agent] Looking for ssh-agent implementation... 00:40:39 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 00:40:39 $ docker exec 38a2e80272c884dfefe94db95b4e8ba2ab6b1c8378a08dc6ecae234c4011f7e0 ssh-agent 00:40:39 SSH_AUTH_SOCK=/tmp/ssh-vbe5X5iLwpSW/agent.74 00:40:39 SSH_AGENT_PID=80 00:40:39 Running ssh-add (command line suppressed) 00:40:39 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-185@tmp/private_key_5840448333400205159.key (/w/workspace/gexfoundry_device-rest-go_PR-185@tmp/private_key_5840448333400205159.key) 00:40:39 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 00:40:39 + git semver init 00:40:39 2022-05-08 00:40:39,825 [run_init] DEBUG init version:0.0.0 force:False 00:40:39 2022-05-08 00:40:39,826 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/gexfoundry_device-rest-go_PR-185/.semver 00:40:39 2022-05-08 00:40:39,826 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-rest-go.git /w/workspace/gexfoundry_device-rest-go_PR-185/.semver 00:40:39 2022-05-08 00:40:39,827 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-rest-go.git', '/w/workspace/gexfoundry_device-rest-go_PR-185/.semver'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-185, universal_newlines=False, shell=None, istream=None) 00:40:40 2022-05-08 00:40:40,795 [append_file] DEBUG append to file:/w/workspace/gexfoundry_device-rest-go_PR-185/.git/info/exclude 00:40:40 2022-05-08 00:40:40,796 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/gexfoundry_device-rest-go_PR-185/.semver/PR-185 with force:False 00:40:40 2022-05-08 00:40:40,796 [write_file] DEBUG write to file:/w/workspace/gexfoundry_device-rest-go_PR-185/.semver/PR-185 00:40:40 2022-05-08 00:40:40,800 [execute] INFO git cat-file --batch-check 00:40:40 2022-05-08 00:40:40,800 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-185/.semver, universal_newlines=False, shell=None, istream=) 00:40:40 2022-05-08 00:40:40,805 [execute] INFO git cat-file --batch 00:40:40 2022-05-08 00:40:40,805 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-185/.semver, universal_newlines=False, shell=None, istream=) 00:40:40 2022-05-08 00:40:40,810 [read_version] DEBUG read version from /w/workspace/gexfoundry_device-rest-go_PR-185/.semver/PR-185 00:40:40 0.0.0 [Pipeline] } 00:40:40 $ docker exec --env ******** --env ******** 38a2e80272c884dfefe94db95b4e8ba2ab6b1c8378a08dc6ecae234c4011f7e0 ssh-agent -k 00:40:40 unset SSH_AUTH_SOCK; 00:40:40 unset SSH_AGENT_PID; 00:40:40 echo Agent pid 80 killed; 00:40:40 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 00:40:41 + git semver [Pipeline] } 00:40:41 $ docker stop --time=1 38a2e80272c884dfefe94db95b4e8ba2ab6b1c8378a08dc6ecae234c4011f7e0 00:40:42 $ docker rm -f 38a2e80272c884dfefe94db95b4e8ba2ab6b1c8378a08dc6ecae234c4011f7e0 [Pipeline] // withDockerContainer [Pipeline] sh 00:40:43 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 00:40:43 Stashed 1 file(s) [Pipeline] echo 00:40:43 [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 00:40:44 provisioning config files... 00:40:44 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-185@tmp/config2938593641453748762tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 00:40:44 ---> docker-login.sh 00:40:44 nexus3.edgexfoundry.org:10001 00:40:44 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:40:44 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:40:44 Configure a credential helper to remove this warning. See 00:40:44 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:40:44 00:40:44 Login Succeeded 00:40:44 nexus3.edgexfoundry.org:10002 00:40:44 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:40:44 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:40:44 Configure a credential helper to remove this warning. See 00:40:44 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:40:44 00:40:44 Login Succeeded 00:40:44 nexus3.edgexfoundry.org:10003 00:40:44 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:40:44 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:40:44 Configure a credential helper to remove this warning. See 00:40:44 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:40:44 00:40:44 Login Succeeded 00:40:44 nexus3.edgexfoundry.org:10004 00:40:44 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:40:45 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:40:45 Configure a credential helper to remove this warning. See 00:40:45 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:40:45 00:40:45 Login Succeeded 00:40:45 docker.io 00:40:45 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:40:45 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:40:45 Configure a credential helper to remove this warning. See 00:40:45 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:40:45 00:40:45 Login Succeeded 00:40:45 ---> docker-login.sh ends [Pipeline] } 00:40:45 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 00:40:45 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 00:40:45 ========================================================= 00:40:45 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine] 00:40:45 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 00:40:46 + 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 . 00:40:46 Sending build context to Docker daemon 10.62MB 00:40:46 Step 1/12 : ARG BASE=golang:1.17-alpine3.15 00:40:46 Step 2/12 : FROM ${BASE} AS builder 00:40:46 1.17-alpine: Pulling from edgex-devops/edgex-golang-base 00:40:46 59bf1c3509f3: Pulling fs layer 00:40:46 666ba61612fd: Pulling fs layer 00:40:46 8ed8ca486205: Pulling fs layer 00:40:46 4fe6c5a15a65: Pulling fs layer 00:40:46 22a0e8bec74d: Pulling fs layer 00:40:46 ca2b28591e48: Pulling fs layer 00:40:46 a51346096db8: Pulling fs layer 00:40:46 daebc70d1ce1: Pulling fs layer 00:40:46 0e18a0eac166: Pulling fs layer 00:40:46 4fe6c5a15a65: Waiting 00:40:46 22a0e8bec74d: Waiting 00:40:46 a51346096db8: Waiting 00:40:46 ca2b28591e48: Waiting 00:40:46 0e18a0eac166: Waiting 00:40:46 daebc70d1ce1: Waiting 00:40:46 8ed8ca486205: Verifying Checksum 00:40:46 8ed8ca486205: Download complete 00:40:46 666ba61612fd: Download complete 00:40:46 22a0e8bec74d: Download complete 00:40:46 ca2b28591e48: Download complete 00:40:46 a51346096db8: Verifying Checksum 00:40:46 a51346096db8: Download complete 00:40:46 59bf1c3509f3: Verifying Checksum 00:40:46 daebc70d1ce1: Verifying Checksum 00:40:46 daebc70d1ce1: Download complete 00:40:46 59bf1c3509f3: Pull complete 00:40:46 666ba61612fd: Pull complete 00:40:46 8ed8ca486205: Pull complete 00:40:46 0e18a0eac166: Verifying Checksum 00:40:46 0e18a0eac166: Download complete 00:40:46 4fe6c5a15a65: Verifying Checksum 00:40:46 4fe6c5a15a65: Download complete 00:40:51 4fe6c5a15a65: Pull complete 00:40:51 22a0e8bec74d: Pull complete 00:40:51 ca2b28591e48: Pull complete 00:40:51 a51346096db8: Pull complete 00:40:51 daebc70d1ce1: Pull complete 00:40:52 0e18a0eac166: Pull complete 00:40:52 Digest: sha256:5cf2d0a306c5171eb5b3008c4b83cc7b6044f1808c238cb17927cddb93576120 00:40:52 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine 00:40:52 ---> f018257e8ee9 00:40:52 Step 3/12 : ARG MAKE='make build' 00:40:54 ---> Running in 9c45d7f53e25 00:40:54 Removing intermediate container 9c45d7f53e25 00:40:54 ---> 6f5bf83adf3e 00:40:54 Step 4/12 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 00:40:54 ---> Running in 7f436848b223 00:40:54 Removing intermediate container 7f436848b223 00:40:54 ---> dd4fc2bfcf27 00:40:54 Step 5/12 : ARG ALPINE_PKG_EXTRA="" 00:40:54 ---> Running in 2b61c60217f0 00:40:54 Removing intermediate container 2b61c60217f0 00:40:54 ---> 44c444259f3d 00:40:54 Step 6/12 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 00:40:54 ---> Running in e0c98768af14 00:40:54 Removing intermediate container e0c98768af14 00:40:54 ---> 0f903f001032 00:40:54 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 00:40:54 ---> Running in 1de4373c36b5 00:40:55 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 00:40:56 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 00:40:56 (1/4) Installing openssh-keygen (8.8_p1-r1) 00:40:56 (2/4) Installing libedit (20210910.3.1-r0) 00:40:56 (3/4) Installing openssh-client-common (8.8_p1-r1) 00:40:56 (4/4) Installing openssh-client-default (8.8_p1-r1) 00:40:56 Executing busybox-1.34.1-r3.trigger 00:40:56 OK: 224 MiB in 56 packages 00:40:57 Removing intermediate container 1de4373c36b5 00:40:57 ---> e1dce76f3c12 00:40:57 Step 8/12 : WORKDIR /device-rest-go 00:40:57 ---> Running in c325b47eb9b0 00:40:57 Removing intermediate container c325b47eb9b0 00:40:57 ---> 9b0100bc78b3 00:40:57 Step 9/12 : COPY go.mod vendor* ./ 00:40:57 ---> 9a88bfa86b2e 00:40:57 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 00:40:57 ---> Running in cc29ac77083a 00:40:59 Still waiting to schedule task 00:40:59 Waiting for next available executor on ‘ubuntu20.04-docker-arm64-4c-16g’ 00:41:15 Removing intermediate container cc29ac77083a 00:41:15 ---> 2b39815b24a5 00:41:15 Step 11/12 : COPY . . 00:41:15 ---> ac09bbe61ece 00:41:15 Step 12/12 : RUN $MAKE 00:41:15 ---> Running in 00bae1c21dde 00:41:15 noop 00:41:16 Removing intermediate container 00bae1c21dde 00:41:16 ---> e52b23b029b5 00:41:16 Successfully built e52b23b029b5 00:41:16 Successfully tagged ci-base-image-x86_64:latest [Pipeline] isUnix [Pipeline] sh 00:41:16 + docker inspect -f . ci-base-image-x86_64 00:41:16 . [Pipeline] withDockerContainer 00:41:16 prd-ubuntu20.04-docker-8c-8g-41429 does not seem to be running inside a container 00:41:16 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-185 -v /w/workspace/gexfoundry_device-rest-go_PR-185:/w/workspace/gexfoundry_device-rest-go_PR-185:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-185@tmp:/w/workspace/gexfoundry_device-rest-go_PR-185@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 00:41:17 $ docker top 3603d147f9d0e9abdcb5a641385c31fa0870f95abad35ecfd5886a175d9e5c0a -eo pid,comm [Pipeline] { [Pipeline] sh 00:41:17 + go version 00:41:17 go version go1.17.6 linux/amd64 [Pipeline] } 00:41:17 $ docker stop --time=1 3603d147f9d0e9abdcb5a641385c31fa0870f95abad35ecfd5886a175d9e5c0a 00:41:18 $ docker rm -f 3603d147f9d0e9abdcb5a641385c31fa0870f95abad35ecfd5886a175d9e5c0a [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 00:41:19 + docker inspect -f . ci-base-image-x86_64 00:41:19 . [Pipeline] withDockerContainer 00:41:19 prd-ubuntu20.04-docker-8c-8g-41429 does not seem to be running inside a container 00:41:19 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-185 -v /w/workspace/gexfoundry_device-rest-go_PR-185:/w/workspace/gexfoundry_device-rest-go_PR-185:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-185@tmp:/w/workspace/gexfoundry_device-rest-go_PR-185@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 00:41:20 $ docker top 52c5c5de1bffa6d8420a43387ca76c686ec3b13866572a4d164cd2dcab2e13d4 -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 00:41:20 + make test 00:41:20 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out ./... 00:41:20 ? github.com/edgexfoundry/device-rest-go [no test files] 00:41:30 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 00:41:30 ok github.com/edgexfoundry/device-rest-go/driver 0.015s coverage: 55.2% of statements 00:41:37 CGO_ENABLED=1 GO111MODULE=on go vet ./... 00:41:40 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 00:41:40 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 00:41:40 ./bin/test-attribution-txt.sh [Pipeline] echo 00:41:40 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 00:41:40 $ docker stop --time=1 52c5c5de1bffa6d8420a43387ca76c686ec3b13866572a4d164cd2dcab2e13d4 00:41:42 $ docker rm -f 52c5c5de1bffa6d8420a43387ca76c686ec3b13866572a4d164cd2dcab2e13d4 [Pipeline] // withDockerContainer [Pipeline] sh 00:41:43 + sudo chown -R jenkins:jenkins . [Pipeline] stash 00:41:43 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 00:41:43 + sudo chown -R jenkins:jenkins . [Pipeline] sh 00:41:44 + ls -al . 00:41:44 total 172 00:41:44 drwxrwxr-x 9 jenkins jenkins 4096 May 8 00:41 . 00:41:44 drwxrwxr-x 4 jenkins jenkins 4096 May 8 00:40 .. 00:41:44 -rw-rw-r-- 1 jenkins jenkins 151 May 8 00:40 .dockerignore 00:41:44 drwxrwxr-x 8 jenkins jenkins 4096 May 8 00:40 .git 00:41:44 drwxrwxr-x 3 jenkins jenkins 4096 May 8 00:40 .github 00:41:44 -rw-rw-r-- 1 jenkins jenkins 329 May 8 00:40 .gitignore 00:41:44 -rw-rw-r-- 1 jenkins jenkins 41 May 8 00:40 .golangci.yml 00:41:44 drwxr-xr-x 3 jenkins jenkins 4096 May 8 00:40 .semver 00:41:44 -rw-rw-r-- 1 jenkins jenkins 8463 May 8 00:40 Attribution.txt 00:41:44 -rw-rw-r-- 1 jenkins jenkins 9287 May 8 00:40 CHANGELOG.md 00:41:44 -rw-rw-r-- 1 jenkins jenkins 1672 May 8 00:40 Dockerfile 00:41:44 -rw-rw-r-- 1 jenkins jenkins 677 May 8 00:40 GOVERNANCE.md 00:41:44 -rw-rw-r-- 1 jenkins jenkins 680 May 8 00:40 Jenkinsfile 00:41:44 -rw-rw-r-- 1 jenkins jenkins 11340 May 8 00:40 LICENSE 00:41:44 -rw-rw-r-- 1 jenkins jenkins 1977 May 8 00:40 Makefile 00:41:44 -rw-rw-r-- 1 jenkins jenkins 620 May 8 00:40 OWNERS.md 00:41:44 -rw-rw-r-- 1 jenkins jenkins 8003 May 8 00:40 README.md 00:41:44 -rw-rw-r-- 1 jenkins jenkins 5 May 8 00:40 VERSION 00:41:44 drwxrwxr-x 2 jenkins jenkins 4096 May 8 00:40 bin 00:41:44 drwxrwxr-x 3 jenkins jenkins 4096 May 8 00:40 cmd 00:41:44 -rw-r--r-- 1 jenkins jenkins 9355 May 8 00:41 coverage.out 00:41:44 drwxrwxr-x 2 jenkins jenkins 4096 May 8 00:40 driver 00:41:44 -rw-rw-r-- 1 jenkins jenkins 3333 May 8 00:40 go.mod 00:41:44 -rw-rw-r-- 1 jenkins jenkins 35259 May 8 00:40 go.sum 00:41:44 drwxrwxr-x 3 jenkins jenkins 4096 May 8 00:40 snap 00:41:44 -rw-rw-r-- 1 jenkins jenkins 713 May 8 00:40 version.go [Pipeline] isUnix [Pipeline] sh 00:41:44 + 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=7cdae81832caa7ff51aa672536335ab33271aca3 --label arch=amd64 --label version=0.0.0 . 00:41:44 Sending build context to Docker daemon 10.63MB 00:41:44 Step 1/25 : ARG BASE=golang:1.17-alpine3.15 00:41:44 Step 2/25 : FROM ${BASE} AS builder 00:41:44 ---> e52b23b029b5 00:41:44 Step 3/25 : ARG MAKE='make build' 00:41:44 ---> Running in 81b6477c0b53 00:41:44 Removing intermediate container 81b6477c0b53 00:41:44 ---> ee7e9b1b3271 00:41:44 Step 4/25 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 00:41:44 ---> Running in eda324dfd87c 00:41:44 Removing intermediate container eda324dfd87c 00:41:44 ---> f1467443c65c 00:41:44 Step 5/25 : ARG ALPINE_PKG_EXTRA="" 00:41:44 ---> Running in f597b03e7203 00:41:44 Removing intermediate container f597b03e7203 00:41:44 ---> b83511cd5a94 00:41:44 Step 6/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 00:41:44 ---> Running in dd7f41af3ce0 00:41:45 Removing intermediate container dd7f41af3ce0 00:41:45 ---> 59d21a6f99cb 00:41:45 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 00:41:45 ---> Running in 2f34d455c0f3 00:41:45 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 00:41:46 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 00:41:46 OK: 224 MiB in 56 packages 00:41:47 Removing intermediate container 2f34d455c0f3 00:41:47 ---> d33fffca2039 00:41:47 Step 8/25 : WORKDIR /device-rest-go 00:41:47 ---> Running in c1df18843a55 00:41:47 Removing intermediate container c1df18843a55 00:41:47 ---> d4734d547054 00:41:47 Step 9/25 : COPY go.mod vendor* ./ 00:41:47 ---> 059ad4455c2a 00:41:47 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 00:41:47 ---> Running in 7c89bae9caa5 00:41:48 Removing intermediate container 7c89bae9caa5 00:41:48 ---> 9ad3bc96c8f4 00:41:48 Step 11/25 : COPY . . 00:41:48 ---> 6f7452f510ae 00:41:48 Step 12/25 : RUN $MAKE 00:41:48 ---> Running in c4064f7f1909 00:41:48 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 00:42:10 Removing intermediate container c4064f7f1909 00:42:10 ---> 8bf0e5263e66 00:42:10 Step 13/25 : FROM alpine:3.14 00:42:10 3.14: Pulling from library/alpine 00:42:10 8663204ce13b: Pulling fs layer 00:42:10 8663204ce13b: Verifying Checksum 00:42:10 8663204ce13b: Download complete 00:42:10 8663204ce13b: Pull complete 00:42:10 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 00:42:10 Status: Downloaded newer image for alpine:3.14 00:42:10 ---> e04c818066af 00:42:10 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' 00:42:10 ---> Running in 6220e55bbcbb 00:42:10 Removing intermediate container 6220e55bbcbb 00:42:10 ---> a538ebb02655 00:42:10 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 00:42:10 ---> Running in 0321e1e7c340 00:42:10 Removing intermediate container 0321e1e7c340 00:42:10 ---> 819eb1fdb512 00:42:10 Step 16/25 : RUN apk add --update --no-cache zeromq dumb-init 00:42:10 ---> Running in 7d33b1fc1f55 00:42:10 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz 00:42:10 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz 00:42:10 (1/6) Installing dumb-init (1.2.5-r1) 00:42:10 (2/6) Installing libgcc (10.3.1_git20210424-r2) 00:42:10 (3/6) Installing libsodium (1.0.18-r0) 00:42:10 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 00:42:10 (5/6) Installing libzmq (4.3.4-r0) 00:42:10 (6/6) Installing zeromq (4.3.4-r0) 00:42:10 Executing busybox-1.33.1-r7.trigger 00:42:10 OK: 8 MiB in 20 packages 00:42:10 Removing intermediate container 7d33b1fc1f55 00:42:10 ---> 1563497e6b66 00:42:10 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 00:42:10 ---> 0cc4ed590a4e 00:42:10 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 00:42:10 ---> 2a131d57b85c 00:42:10 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 00:42:10 ---> 1dd977121103 00:42:10 Step 20/25 : EXPOSE 59986 00:42:11 ---> Running in 26fcd2f47fbb 00:42:11 Removing intermediate container 26fcd2f47fbb 00:42:11 ---> 6ea337bf91f5 00:42:11 Step 21/25 : ENTRYPOINT ["/device-rest"] 00:42:11 ---> Running in 2e682c5931dc 00:42:11 Removing intermediate container 2e682c5931dc 00:42:11 ---> 69f578795f64 00:42:11 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--confdir=/res", "--registry"] 00:42:11 ---> Running in 796a3f9a8267 00:42:11 Removing intermediate container 796a3f9a8267 00:42:11 ---> a38aaf62de02 00:42:11 Step 23/25 : LABEL arch=amd64 00:42:11 ---> Running in cc931a4f0a7c 00:42:11 Removing intermediate container cc931a4f0a7c 00:42:11 ---> 2fbc21250803 00:42:11 Step 24/25 : LABEL git_sha=7cdae81832caa7ff51aa672536335ab33271aca3 00:42:11 ---> Running in bdd6e8d9176f 00:42:11 Removing intermediate container bdd6e8d9176f 00:42:11 ---> 90434cb214fe 00:42:11 Step 25/25 : LABEL version=0.0.0 00:42:11 ---> Running in d7be167f71d5 00:42:11 Removing intermediate container d7be167f71d5 00:42:11 ---> 52f7d0c35232 00:42:11 [Warning] One or more build-args [ARCH] were not consumed 00:42:11 Successfully built 52f7d0c35232 00:42:11 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 00:42:12 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 00:42:12 00:42:12 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] sh 00:42:12 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 00:42:12 latest: Pulling from edgex-lftools-log-publisher 00:42:12 5eb5b503b376: Pulling fs layer 00:42:12 5c69ac0246d0: Pulling fs layer 00:42:12 ec43610c2a17: Pulling fs layer 00:42:12 3a2ae6a8a46f: Pulling fs layer 00:42:12 33b1e0a273af: Pulling fs layer 00:42:12 5d3b04190fa2: Pulling fs layer 00:42:12 2f39f015ded8: Pulling fs layer 00:42:12 3a2ae6a8a46f: Waiting 00:42:12 33b1e0a273af: Waiting 00:42:12 2f39f015ded8: Waiting 00:42:12 5d3b04190fa2: Waiting 00:42:12 5c69ac0246d0: Download complete 00:42:12 3a2ae6a8a46f: Verifying Checksum 00:42:12 3a2ae6a8a46f: Download complete 00:42:12 33b1e0a273af: Verifying Checksum 00:42:12 33b1e0a273af: Download complete 00:42:12 5d3b04190fa2: Verifying Checksum 00:42:12 5d3b04190fa2: Download complete 00:42:12 ec43610c2a17: Verifying Checksum 00:42:12 ec43610c2a17: Download complete 00:42:13 5eb5b503b376: Verifying Checksum 00:42:13 5eb5b503b376: Download complete 00:42:13 2f39f015ded8: Download complete 00:42:14 5eb5b503b376: Pull complete 00:42:14 5c69ac0246d0: Pull complete 00:42:14 ec43610c2a17: Pull complete 00:42:14 3a2ae6a8a46f: Pull complete 00:42:15 33b1e0a273af: Pull complete 00:42:15 5d3b04190fa2: Pull complete 00:42:20 2f39f015ded8: Pull complete 00:42:20 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 00:42:20 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 00:42:20 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] withDockerContainer 00:42:20 prd-ubuntu20.04-docker-8c-8g-41429 does not seem to be running inside a container 00:42:20 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/gexfoundry_device-rest-go_PR-185 -v /w/workspace/gexfoundry_device-rest-go_PR-185:/w/workspace/gexfoundry_device-rest-go_PR-185:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-185@tmp:/w/workspace/gexfoundry_device-rest-go_PR-185@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 00:42:21 $ docker top c805839ab646e45593543f636979af3a12dc0685f0dc8090af953d55911ff136 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 00:42:22 ---> job-cost.sh 00:42:22 lf-activate-venv: SKIPPING 00:42:22 INFO: No Stack... 00:42:22 INFO: Retrieving Pricing Info for: v3-standard-8 00:42:23 INFO: Archiving Costs [Pipeline] sh 00:42:23 + cat /w/workspace/gexfoundry_device-rest-go_PR-185/archives/cost.csv 00:42:23 + cut -d, -f6 [Pipeline] lock 00:42:23 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-185-1-stack-cost] 00:42:23 Resource [jenkins-edgexfoundry-device-rest-go-PR-185-1-stack-cost] did not exist. Created. 00:42:23 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-185-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 00:42:23 + echo total: 0.2199999988079071 [Pipeline] stash 00:42:23 Stashed 1 file(s) [Pipeline] } 00:42:23 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-185-1-stack-cost] [Pipeline] // lock [Pipeline] } 00:42:24 $ docker stop --time=1 c805839ab646e45593543f636979af3a12dc0685f0dc8090af953d55911ff136 00:42:25 $ docker rm -f c805839ab646e45593543f636979af3a12dc0685f0dc8090af953d55911ff136 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 00:44:48 Running on prd-ubuntu20.04-docker-arm64-4c-16g-41430 in /w/workspace/gexfoundry_device-rest-go_PR-185 [Pipeline] { [Pipeline] ws 00:44:48 Running in /w/workspace/device-rest-go/1 [Pipeline] { [Pipeline] checkout 00:44:48 The recommended git tool is: git 00:44:56 using credential edgex-jenkins-ssh 00:44:56 Cloning the remote Git repository 00:44:56 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 00:44:56 > git init /w/workspace/device-rest-go/1 # timeout=10 00:44:56 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 00:44:56 > git --version # timeout=10 00:44:56 > git --version # 'git version 2.25.1' 00:44:56 using GIT_SSH to set credentials SSH Credentials for GitHub 00:44:56 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 00:44:59 Merging remotes/origin/main commit 1b7989097685cbbb7d11325d5e96f20d406e46c7 into PR head commit 7cdae81832caa7ff51aa672536335ab33271aca3 00:44:59 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 00:44:59 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 00:44:59 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 00:44:59 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 00:44:59 using GIT_SSH to set credentials SSH Credentials for GitHub 00:44:59 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/185/head:refs/remotes/origin/PR-185 +refs/heads/main:refs/remotes/origin/main # timeout=10 00:44:59 > git config core.sparsecheckout # timeout=10 00:44:59 > git checkout -f 7cdae81832caa7ff51aa672536335ab33271aca3 # timeout=10 00:44:59 > git remote # timeout=10 00:44:59 > git config --get remote.origin.url # timeout=10 00:45:00 Merge succeeded, producing 7cdae81832caa7ff51aa672536335ab33271aca3 00:45:00 Checking out Revision 7cdae81832caa7ff51aa672536335ab33271aca3 (PR-185) 00:44:59 using GIT_SSH to set credentials SSH Credentials for GitHub 00:44:59 > git merge 1b7989097685cbbb7d11325d5e96f20d406e46c7 # timeout=10 00:45:00 > git rev-parse HEAD^{commit} # timeout=10 00:45:00 > git config core.sparsecheckout # timeout=10 00:45:00 > git checkout -f 7cdae81832caa7ff51aa672536335ab33271aca3 # timeout=10 00:45:04 Commit message: "docs: update CHANGELOG for Kamakura" 00:45:04 > git --version # timeout=10 00:45:04 > git --version # 'git version 2.25.1' 00:45:04 fatal: bad object 61d3a14f5ee21304eadc9c25f102bcac80e1a589 [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 00:45:05 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 00:45:05 % Total % Received % Xferd Average Speed Time Time Time Current 00:45:05 Dload Upload Total Spent Left Speed 00:45:05 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 11843 100 11843 0 0 87080 0 --:--:-- --:--:-- --:--:-- 87080 [Pipeline] sh 00:45:06 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 00:45:06 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 00:45:06 + sudo tee /etc/docker/daemon.new 00:45:06 { 00:45:06 "registry-mirrors": [ 00:45:06 "https://nexus3.edgexfoundry.org:10001" 00:45:06 ], 00:45:06 "bip": "10.250.0.254/24", 00:45:06 "hosts": [ 00:45:06 "tcp://0.0.0.0:5555", 00:45:06 "unix:///var/run/docker.sock" 00:45:06 ], 00:45:06 "mtu": 1458, 00:45:06 "selinux-enabled": true, 00:45:06 "seccomp-profile": "/etc/docker/seccomp.json" 00:45:06 } [Pipeline] sh 00:45:06 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 00:45:07 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 00:45:25 provisioning config files... 00:45:25 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/1@tmp/config5457217289878275323tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 00:45:26 ---> docker-login.sh 00:45:26 nexus3.edgexfoundry.org:10001 00:45:27 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:45:27 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:45:27 Configure a credential helper to remove this warning. See 00:45:27 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:45:27 00:45:27 Login Succeeded 00:45:27 nexus3.edgexfoundry.org:10002 00:45:27 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:45:27 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:45:27 Configure a credential helper to remove this warning. See 00:45:27 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:45:27 00:45:27 Login Succeeded 00:45:27 nexus3.edgexfoundry.org:10003 00:45:28 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:45:28 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:45:28 Configure a credential helper to remove this warning. See 00:45:28 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:45:28 00:45:28 Login Succeeded 00:45:28 nexus3.edgexfoundry.org:10004 00:45:28 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:45:28 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:45:28 Configure a credential helper to remove this warning. See 00:45:28 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:45:28 00:45:28 Login Succeeded 00:45:28 docker.io 00:45:29 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:45:29 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:45:29 Configure a credential helper to remove this warning. See 00:45:29 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:45:29 00:45:29 Login Succeeded 00:45:29 ---> docker-login.sh ends [Pipeline] } 00:45:29 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 00:45:30 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 00:45:30 ========================================================= 00:45:30 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine] 00:45:30 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 00:45:30 + 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 . 00:45:30 Sending build context to Docker daemon 126.5kB 00:45:31 Step 1/12 : ARG BASE=golang:1.17-alpine3.15 00:45:31 Step 2/12 : FROM ${BASE} AS builder 00:45:31 1.17-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 00:45:31 9b3977197b4f: Pulling fs layer 00:45:31 1a89e8eeedd5: Pulling fs layer 00:45:31 94645a83ff95: Pulling fs layer 00:45:31 3f3a8bcf1eab: Pulling fs layer 00:45:31 0c92f367c5e7: Pulling fs layer 00:45:31 3096ccb668a1: Pulling fs layer 00:45:31 e8cf19c19ddd: Pulling fs layer 00:45:31 a4caa8a26152: Pulling fs layer 00:45:31 0c92f367c5e7: Waiting 00:45:31 3096ccb668a1: Waiting 00:45:31 3f3a8bcf1eab: Waiting 00:45:31 e8cf19c19ddd: Waiting 00:45:31 a4caa8a26152: Waiting 00:45:31 94645a83ff95: Verifying Checksum 00:45:31 94645a83ff95: Download complete 00:45:31 1a89e8eeedd5: Verifying Checksum 00:45:31 1a89e8eeedd5: Download complete 00:45:31 0c92f367c5e7: Download complete 00:45:31 3096ccb668a1: Verifying Checksum 00:45:31 3096ccb668a1: Download complete 00:45:31 9b3977197b4f: Verifying Checksum 00:45:31 e8cf19c19ddd: Verifying Checksum 00:45:31 e8cf19c19ddd: Download complete 00:45:32 9b3977197b4f: Pull complete 00:45:33 1a89e8eeedd5: Pull complete 00:45:33 94645a83ff95: Pull complete 00:45:33 a4caa8a26152: Verifying Checksum 00:45:33 a4caa8a26152: Download complete 00:45:34 3f3a8bcf1eab: Verifying Checksum 00:45:34 3f3a8bcf1eab: Download complete 00:45:46 3f3a8bcf1eab: Pull complete 00:45:46 0c92f367c5e7: Pull complete 00:45:46 3096ccb668a1: Pull complete 00:45:46 e8cf19c19ddd: Pull complete 00:45:53 a4caa8a26152: Pull complete 00:45:53 Digest: sha256:b3ad895ecde34a7521bb8912598475bc58d052e1c2c58d00df7f0fe54a102a46 00:45:53 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine 00:45:53 ---> 725f1c02e7f9 00:45:53 Step 3/12 : ARG MAKE='make build' 00:45:53 ---> Running in 22b25f39aa79 00:45:54 Removing intermediate container 22b25f39aa79 00:45:54 ---> ab02ce552f5d 00:45:54 Step 4/12 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 00:45:54 ---> Running in 9adec3057bed 00:45:54 Removing intermediate container 9adec3057bed 00:45:54 ---> b65c47244083 00:45:54 Step 5/12 : ARG ALPINE_PKG_EXTRA="" 00:45:55 ---> Running in ca33bebd6705 00:45:56 Removing intermediate container ca33bebd6705 00:45:56 ---> 8138655e73ea 00:45:56 Step 6/12 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 00:45:56 ---> Running in 0237cbb5350a 00:45:58 Removing intermediate container 0237cbb5350a 00:45:58 ---> f8a1ce7a4948 00:45:58 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 00:45:58 ---> Running in 205c8d3d012d 00:45:59 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 00:46:00 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 00:46:01 (1/4) Installing openssh-keygen (8.8_p1-r1) 00:46:01 (2/4) Installing libedit (20210910.3.1-r0) 00:46:01 (3/4) Installing openssh-client-common (8.8_p1-r1) 00:46:02 (4/4) Installing openssh-client-default (8.8_p1-r1) 00:46:02 Executing busybox-1.34.1-r3.trigger 00:46:02 OK: 224 MiB in 56 packages 00:46:03 Removing intermediate container 205c8d3d012d 00:46:03 ---> ab0c04e54b5b 00:46:03 Step 8/12 : WORKDIR /device-rest-go 00:46:03 ---> Running in 911e74c6a432 00:46:03 Removing intermediate container 911e74c6a432 00:46:03 ---> ce3be4c904b2 00:46:03 Step 9/12 : COPY go.mod vendor* ./ 00:46:04 ---> ad31717b4896 00:46:04 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 00:46:04 ---> Running in 09364b091b7e 00:46:51 Removing intermediate container 09364b091b7e 00:46:51 ---> b8250e8aaf9f 00:46:51 Step 11/12 : COPY . . 00:46:51 ---> e445dcc1b466 00:46:51 Step 12/12 : RUN $MAKE 00:46:51 ---> Running in fb615236e2c4 00:46:51 noop 00:46:52 Removing intermediate container fb615236e2c4 00:46:52 ---> d7c7d0b4934c 00:46:52 Successfully built d7c7d0b4934c 00:46:52 Successfully tagged ci-base-image-arm64:latest [Pipeline] isUnix [Pipeline] sh 00:46:53 + docker inspect -f . ci-base-image-arm64 00:46:53 . [Pipeline] withDockerContainer 00:46:53 prd-ubuntu20.04-docker-arm64-4c-16g-41430 does not seem to be running inside a container 00:46:53 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/1 -v /w/workspace/device-rest-go/1:/w/workspace/device-rest-go/1:rw,z -v /w/workspace/device-rest-go/1@tmp:/w/workspace/device-rest-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 00:46:54 $ docker top 3cc1914df2e0962b458445fbd4219a392c537c32d385c66b9b3485e8bc878099 -eo pid,comm [Pipeline] { [Pipeline] sh 00:46:55 + go version 00:46:55 go version go1.17.6 linux/arm64 [Pipeline] } 00:46:55 $ docker stop --time=1 3cc1914df2e0962b458445fbd4219a392c537c32d385c66b9b3485e8bc878099 00:46:57 $ docker rm -f 3cc1914df2e0962b458445fbd4219a392c537c32d385c66b9b3485e8bc878099 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 00:46:58 + docker inspect -f . ci-base-image-arm64 00:46:58 . [Pipeline] withDockerContainer 00:46:58 prd-ubuntu20.04-docker-arm64-4c-16g-41430 does not seem to be running inside a container 00:46:58 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/1 -v /w/workspace/device-rest-go/1:/w/workspace/device-rest-go/1:rw,z -v /w/workspace/device-rest-go/1@tmp:/w/workspace/device-rest-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 00:46:59 $ docker top ed33fc7a846d4dc6876467c61ef7c819f5367f8674df7e36fb2b7be49830f6d6 -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 00:47:00 + make test 00:47:00 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out ./... 00:47:02 ? github.com/edgexfoundry/device-rest-go [no test files] 00:48:39 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 00:48:39 ok github.com/edgexfoundry/device-rest-go/driver 0.068s coverage: 55.2% of statements 00:48:39 WARNING: Linting skipped (not on x86_64 or linter not installed) 00:48:39 CGO_ENABLED=1 GO111MODULE=on go vet ./... 00:49:06 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 00:49:06 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 00:49:06 ./bin/test-attribution-txt.sh [Pipeline] echo 00:49:06 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 00:49:06 $ docker stop --time=1 ed33fc7a846d4dc6876467c61ef7c819f5367f8674df7e36fb2b7be49830f6d6 00:49:08 $ docker rm -f ed33fc7a846d4dc6876467c61ef7c819f5367f8674df7e36fb2b7be49830f6d6 [Pipeline] // withDockerContainer [Pipeline] sh 00:49:09 + sudo chown -R jenkins:jenkins . [Pipeline] stash 00:49:09 Warning: overwriting stash ‘coverage-report’ 00:49:09 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 00:49:10 + sudo chown -R jenkins:jenkins . [Pipeline] sh 00:49:10 + ls -al . 00:49:10 total 168 00:49:10 drwxrwxr-x 8 jenkins jenkins 4096 May 8 00:49 . 00:49:10 drwxrwxr-x 4 jenkins jenkins 4096 May 8 00:44 .. 00:49:10 -rw-rw-r-- 1 jenkins jenkins 151 May 8 00:44 .dockerignore 00:49:10 drwxrwxr-x 8 jenkins jenkins 4096 May 8 00:45 .git 00:49:10 drwxrwxr-x 3 jenkins jenkins 4096 May 8 00:44 .github 00:49:10 -rw-rw-r-- 1 jenkins jenkins 329 May 8 00:44 .gitignore 00:49:10 -rw-rw-r-- 1 jenkins jenkins 41 May 8 00:44 .golangci.yml 00:49:10 -rw-rw-r-- 1 jenkins jenkins 8463 May 8 00:44 Attribution.txt 00:49:10 -rw-rw-r-- 1 jenkins jenkins 9287 May 8 00:44 CHANGELOG.md 00:49:10 -rw-rw-r-- 1 jenkins jenkins 1672 May 8 00:44 Dockerfile 00:49:10 -rw-rw-r-- 1 jenkins jenkins 677 May 8 00:44 GOVERNANCE.md 00:49:10 -rw-rw-r-- 1 jenkins jenkins 680 May 8 00:44 Jenkinsfile 00:49:10 -rw-rw-r-- 1 jenkins jenkins 11340 May 8 00:44 LICENSE 00:49:10 -rw-rw-r-- 1 jenkins jenkins 1977 May 8 00:44 Makefile 00:49:10 -rw-rw-r-- 1 jenkins jenkins 620 May 8 00:44 OWNERS.md 00:49:10 -rw-rw-r-- 1 jenkins jenkins 8003 May 8 00:44 README.md 00:49:10 -rw-rw-r-- 1 jenkins jenkins 5 May 8 00:40 VERSION 00:49:10 drwxrwxr-x 2 jenkins jenkins 4096 May 8 00:44 bin 00:49:10 drwxrwxr-x 3 jenkins jenkins 4096 May 8 00:44 cmd 00:49:10 -rw-r--r-- 1 jenkins jenkins 9355 May 8 00:48 coverage.out 00:49:10 drwxrwxr-x 2 jenkins jenkins 4096 May 8 00:44 driver 00:49:10 -rw-rw-r-- 1 jenkins jenkins 3333 May 8 00:44 go.mod 00:49:10 -rw-rw-r-- 1 jenkins jenkins 35259 May 8 00:44 go.sum 00:49:10 drwxrwxr-x 3 jenkins jenkins 4096 May 8 00:44 snap 00:49:10 -rw-rw-r-- 1 jenkins jenkins 713 May 8 00:44 version.go [Pipeline] isUnix [Pipeline] sh 00:49:11 + 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=7cdae81832caa7ff51aa672536335ab33271aca3 --label arch=arm64 --label version=0.0.0 . 00:49:11 Sending build context to Docker daemon 136.7kB 00:49:11 Step 1/25 : ARG BASE=golang:1.17-alpine3.15 00:49:11 Step 2/25 : FROM ${BASE} AS builder 00:49:11 ---> d7c7d0b4934c 00:49:11 Step 3/25 : ARG MAKE='make build' 00:49:11 ---> Running in f5d7ec04ee3d 00:49:11 Removing intermediate container f5d7ec04ee3d 00:49:11 ---> fe5f9cf23a93 00:49:11 Step 4/25 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 00:49:12 ---> Running in e007bba13d32 00:49:12 Removing intermediate container e007bba13d32 00:49:12 ---> abc11d9af6d2 00:49:12 Step 5/25 : ARG ALPINE_PKG_EXTRA="" 00:49:12 ---> Running in c386c3e7ffd5 00:49:12 Removing intermediate container c386c3e7ffd5 00:49:12 ---> 3d0645d2a046 00:49:12 Step 6/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 00:49:12 ---> Running in 7e0c7d91143c 00:49:14 Removing intermediate container 7e0c7d91143c 00:49:14 ---> c33d9c7fcf81 00:49:14 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 00:49:14 ---> Running in 9de6fde827fc 00:49:15 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 00:49:16 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 00:49:17 OK: 224 MiB in 56 packages 00:49:18 Removing intermediate container 9de6fde827fc 00:49:18 ---> 11e033ba30d7 00:49:18 Step 8/25 : WORKDIR /device-rest-go 00:49:18 ---> Running in db77467b2b8f 00:49:18 Removing intermediate container db77467b2b8f 00:49:18 ---> 416ab77bdc58 00:49:18 Step 9/25 : COPY go.mod vendor* ./ 00:49:19 ---> d71aa8d52d42 00:49:19 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 00:49:19 ---> Running in b1c1e04d56fe 00:49:21 Removing intermediate container b1c1e04d56fe 00:49:21 ---> 5583f826f88f 00:49:21 Step 11/25 : COPY . . 00:49:21 ---> f1739753e453 00:49:21 Step 12/25 : RUN $MAKE 00:49:21 ---> Running in 896a78d9fb60 00:49:22 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 00:51:44 Removing intermediate container 896a78d9fb60 00:51:44 ---> 434ba2ac959e 00:51:44 Step 13/25 : FROM alpine:3.14 00:51:44 3.14: Pulling from library/alpine 00:51:44 455c02918c45: Pulling fs layer 00:51:44 455c02918c45: Download complete 00:51:44 455c02918c45: Pull complete 00:51:44 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 00:51:44 Status: Downloaded newer image for alpine:3.14 00:51:44 ---> ac73e934f311 00:51:44 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' 00:51:44 ---> Running in f466e0d2d1f6 00:51:44 Removing intermediate container f466e0d2d1f6 00:51:44 ---> d6d32939c01f 00:51:44 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 00:51:44 ---> Running in 2148bb3e1f0e 00:51:44 Removing intermediate container 2148bb3e1f0e 00:51:44 ---> 2cbd9d59af05 00:51:44 Step 16/25 : RUN apk add --update --no-cache zeromq dumb-init 00:51:44 ---> Running in 83a7f05f1b8b 00:51:44 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/aarch64/APKINDEX.tar.gz 00:51:44 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/aarch64/APKINDEX.tar.gz 00:51:44 (1/6) Installing dumb-init (1.2.5-r1) 00:51:44 (2/6) Installing libgcc (10.3.1_git20210424-r2) 00:51:44 (3/6) Installing libsodium (1.0.18-r0) 00:51:44 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 00:51:44 (5/6) Installing libzmq (4.3.4-r0) 00:51:44 (6/6) Installing zeromq (4.3.4-r0) 00:51:44 Executing busybox-1.33.1-r7.trigger 00:51:44 OK: 8 MiB in 20 packages 00:51:44 Removing intermediate container 83a7f05f1b8b 00:51:44 ---> 865593dce88c 00:51:44 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 00:51:44 ---> 604d43eb6055 00:51:44 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 00:51:44 ---> e22823eecf50 00:51:44 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 00:51:44 ---> a1f143a76a89 00:51:44 Step 20/25 : EXPOSE 59986 00:51:44 ---> Running in 5abdd5079ef3 00:51:44 Removing intermediate container 5abdd5079ef3 00:51:44 ---> b775ee0f026d 00:51:44 Step 21/25 : ENTRYPOINT ["/device-rest"] 00:51:45 ---> Running in 4bbddd7d2ece 00:51:45 Removing intermediate container 4bbddd7d2ece 00:51:45 ---> 449751db23ea 00:51:45 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--confdir=/res", "--registry"] 00:51:45 ---> Running in 625ba6a789f0 00:51:45 Removing intermediate container 625ba6a789f0 00:51:45 ---> 37dd5dd8b2a5 00:51:45 Step 23/25 : LABEL arch=arm64 00:51:45 ---> Running in 2cda47bbcb67 00:51:46 Removing intermediate container 2cda47bbcb67 00:51:46 ---> 9fc92b18cb04 00:51:46 Step 24/25 : LABEL git_sha=7cdae81832caa7ff51aa672536335ab33271aca3 00:51:46 ---> Running in 4aea737c6973 00:51:46 Removing intermediate container 4aea737c6973 00:51:46 ---> be5e534203a5 00:51:46 Step 25/25 : LABEL version=0.0.0 00:51:46 ---> Running in 1d4b180ab2b5 00:51:46 Removing intermediate container 1d4b180ab2b5 00:51:46 ---> 4f4570a7b568 00:51:46 [Warning] One or more build-args [ARCH] were not consumed 00:51:46 Successfully built 4f4570a7b568 00:51:46 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 00:51:47 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 00:51:47 00:51:47 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] sh 00:51:47 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 00:51:48 arm64: Pulling from edgex-lftools-log-publisher 00:51:48 8998bd30e6a1: Pulling fs layer 00:51:48 04944245beec: Pulling fs layer 00:51:48 699f458cf7ca: Pulling fs layer 00:51:48 765212b225bb: Pulling fs layer 00:51:48 f23df028b6ca: Pulling fs layer 00:51:48 d65c8cfc05b1: Pulling fs layer 00:51:48 2437ff75d9bd: Pulling fs layer 00:51:48 765212b225bb: Waiting 00:51:48 f23df028b6ca: Waiting 00:51:48 d65c8cfc05b1: Waiting 00:51:48 2437ff75d9bd: Waiting 00:51:48 04944245beec: Verifying Checksum 00:51:48 04944245beec: Download complete 00:51:48 765212b225bb: Download complete 00:51:48 f23df028b6ca: Download complete 00:51:48 d65c8cfc05b1: Verifying Checksum 00:51:48 d65c8cfc05b1: Download complete 00:51:48 699f458cf7ca: Verifying Checksum 00:51:48 8998bd30e6a1: Verifying Checksum 00:51:48 8998bd30e6a1: Download complete 00:51:51 2437ff75d9bd: Verifying Checksum 00:51:51 2437ff75d9bd: Download complete 00:51:53 8998bd30e6a1: Pull complete 00:51:53 04944245beec: Pull complete 00:51:55 699f458cf7ca: Pull complete 00:51:55 765212b225bb: Pull complete 00:51:56 f23df028b6ca: Pull complete 00:51:56 d65c8cfc05b1: Pull complete 00:52:15 2437ff75d9bd: Pull complete 00:52:15 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 00:52:15 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 00:52:15 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] withDockerContainer 00:52:15 prd-ubuntu20.04-docker-arm64-4c-16g-41430 does not seem to be running inside a container 00:52:15 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/device-rest-go/1 -v /w/workspace/device-rest-go/1:/w/workspace/device-rest-go/1:rw,z -v /w/workspace/device-rest-go/1@tmp:/w/workspace/device-rest-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 00:52:18 $ docker top c3198d4c0d7c30abd646cf65c6b406ca8b014f430a01d45b2d9422084d9d0a5c -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 00:52:19 ---> job-cost.sh 00:52:19 lf-activate-venv: SKIPPING 00:52:19 INFO: No Stack... 00:52:19 INFO: Retrieving Pricing Info for: v3-standard-4 00:52:20 INFO: Archiving Costs [Pipeline] sh 00:52:21 + cut -d, -f6 00:52:21 + cat /w/workspace/device-rest-go/1/archives/cost.csv [Pipeline] lock 00:52:21 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-185-1-stack-cost] 00:52:21 Resource [jenkins-edgexfoundry-device-rest-go-PR-185-1-stack-cost] did not exist. Created. 00:52:21 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-185-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 00:52:22 /w/workspace/device-rest-go/1@tmp/durable-5ed67c5b/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 00:52:22 + echo total: 0.10999999940395355 [Pipeline] stash 00:52:22 Warning: overwriting stash ‘stack-cost’ 00:52:22 Stashed 1 file(s) [Pipeline] } 00:52:22 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-185-1-stack-cost] [Pipeline] // lock [Pipeline] } 00:52:23 $ docker stop --time=1 c3198d4c0d7c30abd646cf65c6b406ca8b014f430a01d45b2d9422084d9d0a5c 00:52:24 $ docker rm -f c3198d4c0d7c30abd646cf65c6b406ca8b014f430a01d45b2d9422084d9d0a5c [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 00:52:25 provisioning config files... 00:52:25 copy managed file [device-rest-go-codecov-token] to file:/w/workspace/gexfoundry_device-rest-go_PR-185@tmp/config9145443581191174332tmp [Pipeline] { [Pipeline] sh 00:52:25 + set +x 00:52:25 + curl -s https://codecov.io/bash 00:52:25 + bash -s -- 00:52:25 00:52:25 _____ _ 00:52:25 / ____| | | 00:52:25 | | ___ __| | ___ ___ _____ __ 00:52:25 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 00:52:25 | |___| (_) | (_| | __/ (_| (_) \ V / 00:52:25 \_____\___/ \__,_|\___|\___\___/ \_/ 00:52:25 Bash-1.0.6 00:52:25 00:52:25 00:52:25 ==> git version 2.25.1 found 00:52:25 ==> 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 00:52:25 Release-Date: 2020-01-08 00:52:25 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 00:52:25 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 00:52:25 ==> Jenkins CI detected. 00:52:25 current dir:  /w/workspace/gexfoundry_device-rest-go_PR-185 00:52:25 project root: . 00:52:25 --> token set from env 00:52:25 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 00:52:25 ==> Running gcov in . (disable via -X gcov) 00:52:25 ==> Python coveragepy not found 00:52:25 ==> Searching for coverage reports in: 00:52:25 + . 00:52:25 -> Found 1 reports 00:52:25 ==> Detecting git/mercurial file structure 00:52:25 ==> Reading reports 00:52:25 + ./coverage.out bytes=9355 00:52:25 ==> Appending adjustments 00:52:25 https://docs.codecov.io/docs/fixing-reports 00:52:26 + Found adjustments 00:52:26 ==> Gzipping contents 00:52:26 4.0K /tmp/codecov.wZjIds.gz 00:52:26 ==> Uploading reports 00:52:26 url: https://codecov.io 00:52:26 query: branch=PR-185&commit=7cdae81832caa7ff51aa672536335ab33271aca3&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-185%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=185&job=&cmd_args= 00:52:26 -> Pinging Codecov 00:52:26 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=c51feb23-73ac-4f49-b3d1-d26df23137db&branch=PR-185&commit=7cdae81832caa7ff51aa672536335ab33271aca3&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-185%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=185&job=&cmd_args= 00:52:26 -> Uploading to 00:52:26 https://storage.googleapis.com/codecov/v4/raw/2022-05-08/4E5D53B4F1F92C436F7061BF334D961C/7cdae81832caa7ff51aa672536335ab33271aca3/c471a297-8e2e-4905-a693-569f636f9c17.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20220508%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20220508T005226Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=126d1d60c77cbc40e9b944760e02ef02903cead16f2c0b96e5f54b6ee71c7195 00:52:26 % Total % Received % Xferd Average Speed Time Time Time Current 00:52:26 Dload Upload Total Spent Left Speed 00:52:26 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 1806 0 0 100 1806 0 6567 --:--:-- --:--:-- --:--:-- 6567 00:52:26 -> Reports have been successfully queued for processing at https://codecov.io/github/edgexfoundry/device-rest-go/commit/7cdae81832caa7ff51aa672536335ab33271aca3 [Pipeline] } 00:52:26 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 00:52:28 + [ -d /w/workspace/gexfoundry_device-rest-go_PR-185/archives ] 00:52:28 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-185/archives 00:52:28 total 16 00:52:28 drwxr-xr-x 3 root root 4096 May 8 00:42 . 00:52:28 drwxrwxr-x 10 jenkins jenkins 4096 May 8 00:42 .. 00:52:28 drwxr-xr-x 2 root root 4096 May 8 00:42 cost 00:52:28 -rw-r--r-- 1 root root 85 May 8 00:42 cost.csv 00:52:28 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-rest-go_PR-185/archives 00:52:28 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-185/archives 00:52:28 total 16 00:52:28 drwxr-xr-x 3 jenkins jenkins 4096 May 8 00:42 . 00:52:28 drwxrwxr-x 10 jenkins jenkins 4096 May 8 00:42 .. 00:52:28 drwxr-xr-x 2 jenkins jenkins 4096 May 8 00:42 cost 00:52:28 -rw-r--r-- 1 jenkins jenkins 85 May 8 00:42 cost.csv [Pipeline] libraryResource [Pipeline] sh 00:52:28 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 00:52:29 ---> package-listing.sh 00:52:29 ++ facter osfamily 00:52:29 ++ tr '[:upper:]' '[:lower:]' 00:52:29 + OS_FAMILY=debian 00:52:29 + workspace=/w/workspace/gexfoundry_device-rest-go_PR-185 00:52:29 + START_PACKAGES=/tmp/packages_start.txt 00:52:29 + END_PACKAGES=/tmp/packages_end.txt 00:52:29 + DIFF_PACKAGES=/tmp/packages_diff.txt 00:52:29 + PACKAGES=/tmp/packages_start.txt 00:52:29 + '[' /w/workspace/gexfoundry_device-rest-go_PR-185 ']' 00:52:29 + PACKAGES=/tmp/packages_end.txt 00:52:29 + case "${OS_FAMILY}" in 00:52:29 + dpkg -l 00:52:29 + grep '^ii' 00:52:29 + '[' -f /tmp/packages_start.txt ']' 00:52:29 + '[' -f /tmp/packages_end.txt ']' 00:52:29 + diff /tmp/packages_start.txt /tmp/packages_end.txt 00:52:29 + '[' /w/workspace/gexfoundry_device-rest-go_PR-185 ']' 00:52:29 + mkdir -p /w/workspace/gexfoundry_device-rest-go_PR-185/archives/ 00:52:29 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/gexfoundry_device-rest-go_PR-185/archives/ [Pipeline] echo 00:52:29 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-185/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 00:52:30 + facter operatingsystem [Pipeline] isUnix [Pipeline] sh 00:52:30 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 00:52:30 . [Pipeline] withDockerContainer 00:52:30 prd-ubuntu20.04-docker-8c-8g-41429 does not seem to be running inside a container 00:52:30 $ 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-185/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-185 -v /w/workspace/gexfoundry_device-rest-go_PR-185:/w/workspace/gexfoundry_device-rest-go_PR-185:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-185@tmp:/w/workspace/gexfoundry_device-rest-go_PR-185@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 00:52:31 $ docker top 0ac4aa68493397c66258bbe7757f6edeb19afefddcd7b4ba1c4528c365531b04 -eo pid,comm [Pipeline] { [Pipeline] sh 00:52:31 + touch /tmp/pre-build-complete [Pipeline] sh 00:52:31 + mkdir -p /var/log/sysstat [Pipeline] sh 00:52:32 + ls /var/log/sa-host 00:52:32 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 00:52:32 provisioning config files... 00:52:32 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-185@tmp/config388690398703046652tmp [Pipeline] { [Pipeline] echo 00:52:32 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 00:52:32 ---> create-netrc.sh [Pipeline] } 00:52:32 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 00:52:33 ---> python-tools-install.sh [Pipeline] echo 00:52:33 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 00:52:33 ---> sudo-logs.sh 00:52:33 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 00:52:33 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 00:52:33 ---> job-cost.sh 00:52:33 lf-activate-venv: SKIPPING 00:52:33 DEBUG: total: 0.2199999988079071 00:52:33 INFO: Retrieving Stack Cost... 00:52:34 INFO: Retrieving Pricing Info for: v3-standard-8 00:52:34 INFO: Archiving Costs [Pipeline] echo 00:52:34 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 00:52:35 ---> logs-deploy.sh 00:52:35 lf-activate-venv: SKIPPING 00:52:35 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-185/1 00:52:35 INFO: archiving workspace using pattern(s): 00:52:36 Archives upload complete. 00:52:36 INFO: archiving logs to Nexus