Pull request #189 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 jinlinGuan for edgexfoundry/device-rest-go Loading trusted files from base branch main at 9b53a838cf715098176e329c4fd19d0f7ded052f rather than 256139c3d5d62b3a4c0b25e8999062d09719724b Obtained Jenkinsfile from 9b53a838cf715098176e329c4fd19d0f7ded052f 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-ssh411876863653002734.key > git ls-remote -h -t -- git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Found match: refs/tags/stable revision 95c76d14630896f3c9cf825147e1b1e2bad20cbb 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-ssh588922323454015206.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 95c76d14630896f3c9cf825147e1b1e2bad20cbb 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-189/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-189/workspace@libs/edgex-global-pipelines@tmp/jenkins-gitclient-ssh16717439234691276031.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-189/workspace@libs/edgex-global-pipelines@tmp/jenkins-gitclient-ssh16319739589178182630.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision 95c76d14630896f3c9cf825147e1b1e2bad20cbb (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f 95c76d14630896f3c9cf825147e1b1e2bad20cbb # timeout=10 Commit message: "Merge pull request #387 from ernestojeda/disable-concurrent-builds" > 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-ssh3619707936680951485.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-189/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-189/workspace@libs/lf-pipelines@tmp/jenkins-gitclient-ssh2172691526663713292.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 95c76d14630896f3c9cf825147e1b1e2bad20cbb 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 ‘prd-ubuntu20.04-docker-8c-8g-63042’ is offline Running on prd-ubuntu20.04-docker-8c-8g-63044 in /w/workspace/gexfoundry_device-rest-go_PR-189 [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-189 # 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 9b53a838cf715098176e329c4fd19d0f7ded052f into PR head commit 256139c3d5d62b3a4c0b25e8999062d09719724b Merge succeeded, producing 256139c3d5d62b3a4c0b25e8999062d09719724b Checking out Revision 256139c3d5d62b3a4c0b25e8999062d09719724b (PR-189) > 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/189/head:refs/remotes/origin/PR-189 +refs/heads/main:refs/remotes/origin/main # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 256139c3d5d62b3a4c0b25e8999062d09719724b # 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 9b53a838cf715098176e329c4fd19d0f7ded052f # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 256139c3d5d62b3a4c0b25e8999062d09719724b # timeout=10 Commit message: "build: Update to released Go Mods" First time build. Skipping changelog. > git --version # timeout=10 > git --version # 'git version 2.25.1' fatal: bad object 95c76d14630896f3c9cf825147e1b1e2bad20cbb [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 05:20:49 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 05:20:49 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 05:20:49 ========================================================= 05:20:49 EdgeX Global Pipelines Version Info 05:20:49 ========================================================= [Pipeline] libraryResource [Pipeline] sh 05:20:50 ------------------- 05:20:50 stable info: 05:20:50 ------------------- 05:20:50 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 05:20:50 Commit SHA: 95c76d14630896f3c9cf825147e1b1e2bad20cbb 05:20:50 Message: update stable to v1.0.230 05:20:51 ------------------- 05:20:51 experimental info: 05:20:51 ------------------- 05:20:51 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 05:20:51 Commit SHA: 95c76d14630896f3c9cf825147e1b1e2bad20cbb 05:20:51 Message: update experimental to v1.0.230 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 05:20:51 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 05:20:51 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 05:20:51 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 05:20:51 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 05:20:51 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 05:20:51 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.17 [Pipeline] echo 05:20:51 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 05:20:51 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 05:20:51 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 05:20:51 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 05:20:51 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 05:20:51 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 05:20:51 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 05:20:51 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 05:20:51 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 05:20:52 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 05:20:52 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 05:20:52 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 05:20:52 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 05:20:52 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 05:20:52 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 05:20:52 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 05:20:52 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 05:20:52 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 05:20:52 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 05:20:52 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 05:20:52 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-189 [Pipeline] echo 05:20:52 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-189 [Pipeline] echo 05:20:52 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-189 [Pipeline] echo 05:20:52 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 256139c3d5d62b3a4c0b25e8999062d09719724b [Pipeline] echo 05:20:52 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 256139c [Pipeline] echo 05:20:52 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 05:20:52 provisioning config files... 05:20:52 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-189@tmp/config7631192690254018450tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 05:20:53 ---> docker-login.sh 05:20:53 nexus3.edgexfoundry.org:10001 05:20:53 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:20:53 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:20:53 Configure a credential helper to remove this warning. See 05:20:53 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:20:53 05:20:53 Login Succeeded 05:20:53 nexus3.edgexfoundry.org:10002 05:20:53 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:20:53 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:20:53 Configure a credential helper to remove this warning. See 05:20:53 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:20:53 05:20:53 Login Succeeded 05:20:53 nexus3.edgexfoundry.org:10003 05:20:53 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:20:53 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:20:53 Configure a credential helper to remove this warning. See 05:20:53 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:20:53 05:20:53 Login Succeeded 05:20:53 nexus3.edgexfoundry.org:10004 05:20:54 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:20:54 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:20:54 Configure a credential helper to remove this warning. See 05:20:54 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:20:54 05:20:54 Login Succeeded 05:20:54 docker.io 05:20:54 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:20:54 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:20:54 Configure a credential helper to remove this warning. See 05:20:54 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:20:54 05:20:54 Login Succeeded 05:20:54 ---> docker-login.sh ends [Pipeline] } 05:20:54 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 05:20:55 + git rev-list -1 --merges 256139c3d5d62b3a4c0b25e8999062d09719724b~1..256139c3d5d62b3a4c0b25e8999062d09719724b [Pipeline] echo 05:20:55 -----------> git rev-list -1 --merges 256139c3d5d62b3a4c0b25e8999062d09719724b~1..256139c3d5d62b3a4c0b25e8999062d09719724b 256139c3d5d62b3a4c0b25e8999062d09719724b [false] [Pipeline] sh 05:20:55 + git log --format=format:%s -1 256139c3d5d62b3a4c0b25e8999062d09719724b [Pipeline] echo 05:20:55 ========================================================= 05:20:55 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 05:20:55 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 05:20:56 + git log --format=format:%s -1 256139c3d5d62b3a4c0b25e8999062d09719724b [Pipeline] echo 05:20:56 [semverPrep] GIT_COMMIT: 256139c3d5d62b3a4c0b25e8999062d09719724b, Commit Message: build: Update to released Go Mods [Pipeline] echo 05:20:56 [semverPrep] This is not a build commit. [Pipeline] sh 05:20:56 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 05:20:56 + grep -v github /etc/ssh/ssh_known_hosts 05:20:56 + [ -e /tmp/ssh_known_hosts ] 05:20:56 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 05:20:56 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 05:20:56 + sudo tee -a /etc/ssh/ssh_known_hosts 05:20:56 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] sh 05:20:56 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest 05:20:56 05:20:56 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest [Pipeline] isUnix [Pipeline] sh 05:20:57 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest 05:20:57 latest: Pulling from edgex-devops/py-git-semver 05:20:57 1fe172e4850f: Pulling fs layer 05:20:57 caf521ccaac6: Pulling fs layer 05:20:57 3ead6fa29328: Pulling fs layer 05:20:57 5c2a1cbceb83: Pulling fs layer 05:20:57 a8d5f1318db7: Pulling fs layer 05:20:57 c427282e49a2: Pulling fs layer 05:20:57 1827001aaf11: Pulling fs layer 05:20:57 0714d37db230: Pulling fs layer 05:20:57 ac28cf19c067: Pulling fs layer 05:20:57 ca983d60f3e2: Pulling fs layer 05:20:57 9f894cec8388: Pulling fs layer 05:20:57 1827001aaf11: Waiting 05:20:57 0714d37db230: Waiting 05:20:57 a8d5f1318db7: Waiting 05:20:57 ac28cf19c067: Waiting 05:20:57 ca983d60f3e2: Waiting 05:20:57 c427282e49a2: Waiting 05:20:57 9f894cec8388: Waiting 05:20:57 5c2a1cbceb83: Waiting 05:20:57 caf521ccaac6: Download complete 05:20:57 5c2a1cbceb83: Download complete 05:20:57 a8d5f1318db7: Verifying Checksum 05:20:57 a8d5f1318db7: Download complete 05:20:57 3ead6fa29328: Verifying Checksum 05:20:57 3ead6fa29328: Download complete 05:20:57 c427282e49a2: Verifying Checksum 05:20:57 c427282e49a2: Download complete 05:20:57 0714d37db230: Verifying Checksum 05:20:57 0714d37db230: Download complete 05:20:57 ac28cf19c067: Verifying Checksum 05:20:57 ac28cf19c067: Download complete 05:20:57 ca983d60f3e2: Download complete 05:20:57 9f894cec8388: Download complete 05:20:57 1fe172e4850f: Verifying Checksum 05:20:57 1fe172e4850f: Download complete 05:20:57 1827001aaf11: Verifying Checksum 05:20:57 1827001aaf11: Download complete 05:20:59 1fe172e4850f: Pull complete 05:20:59 caf521ccaac6: Pull complete 05:20:59 3ead6fa29328: Pull complete 05:21:00 5c2a1cbceb83: Pull complete 05:21:00 a8d5f1318db7: Pull complete 05:21:00 c427282e49a2: Pull complete 05:21:02 1827001aaf11: Pull complete 05:21:02 0714d37db230: Pull complete 05:21:02 ac28cf19c067: Pull complete 05:21:02 ca983d60f3e2: Pull complete 05:21:02 9f894cec8388: Pull complete 05:21:02 Digest: sha256:90e63904a1edc574c23a580e5fc31fbcdccad1501625621f67a6be262171cfee 05:21:02 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest 05:21:02 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest [Pipeline] withDockerContainer 05:21:02 prd-ubuntu20.04-docker-8c-8g-63044 does not seem to be running inside a container 05:21:02 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/gexfoundry_device-rest-go_PR-189 -v /w/workspace/gexfoundry_device-rest-go_PR-189:/w/workspace/gexfoundry_device-rest-go_PR-189:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-189@tmp:/w/workspace/gexfoundry_device-rest-go_PR-189@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 ******** nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest cat 05:21:04 $ docker top 105dd3cfb51236ce2d8f62476004ed6c8dd67f4d8b59d243981de8819344dee9 -eo pid,comm 05:21:04 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). 05:21:04 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 05:21:04 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 05:21:04 [ssh-agent] Looking for ssh-agent implementation... 05:21:05 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 05:21:05 $ docker exec 105dd3cfb51236ce2d8f62476004ed6c8dd67f4d8b59d243981de8819344dee9 ssh-agent 05:21:05 SSH_AUTH_SOCK=/tmp/ssh-psDYYHSEWbV6/agent.34 05:21:05 SSH_AGENT_PID=41 05:21:05 Running ssh-add (command line suppressed) 05:21:05 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-189@tmp/private_key_782023870320406965.key (/w/workspace/gexfoundry_device-rest-go_PR-189@tmp/private_key_782023870320406965.key) 05:21:05 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 05:21:05 + git tag --points-at HEAD [Pipeline] } 05:21:05 $ docker exec --env ******** --env ******** 105dd3cfb51236ce2d8f62476004ed6c8dd67f4d8b59d243981de8819344dee9 ssh-agent -k 05:21:05 unset SSH_AUTH_SOCK; 05:21:05 unset SSH_AGENT_PID; 05:21:05 echo Agent pid 41 killed; 05:21:05 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 05:21:05 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 05:21:05 [ssh-agent] Looking for ssh-agent implementation... 05:21:06 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 05:21:06 $ docker exec 105dd3cfb51236ce2d8f62476004ed6c8dd67f4d8b59d243981de8819344dee9 ssh-agent 05:21:06 SSH_AUTH_SOCK=/tmp/ssh-VjO6cFIssImO/agent.74 05:21:06 SSH_AGENT_PID=80 05:21:06 Running ssh-add (command line suppressed) 05:21:06 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-189@tmp/private_key_5894773746639712053.key (/w/workspace/gexfoundry_device-rest-go_PR-189@tmp/private_key_5894773746639712053.key) 05:21:06 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 05:21:06 + git semver init 05:21:06 2022-05-11 05:21:06,889 [run_init] DEBUG init version:0.0.0 force:False 05:21:06 2022-05-11 05:21:06,890 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/gexfoundry_device-rest-go_PR-189/.semver 05:21:06 2022-05-11 05:21:06,890 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-rest-go.git /w/workspace/gexfoundry_device-rest-go_PR-189/.semver 05:21:06 2022-05-11 05:21:06,890 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-rest-go.git', '/w/workspace/gexfoundry_device-rest-go_PR-189/.semver'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-189, universal_newlines=False, shell=None, istream=None) 05:21:08 2022-05-11 05:21:08,125 [append_file] DEBUG append to file:/w/workspace/gexfoundry_device-rest-go_PR-189/.git/info/exclude 05:21:08 2022-05-11 05:21:08,126 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/gexfoundry_device-rest-go_PR-189/.semver/PR-189 with force:False 05:21:08 2022-05-11 05:21:08,126 [write_file] DEBUG write to file:/w/workspace/gexfoundry_device-rest-go_PR-189/.semver/PR-189 05:21:08 2022-05-11 05:21:08,131 [execute] INFO git cat-file --batch-check 05:21:08 2022-05-11 05:21:08,131 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-189/.semver, universal_newlines=False, shell=None, istream=) 05:21:08 2022-05-11 05:21:08,138 [execute] INFO git cat-file --batch 05:21:08 2022-05-11 05:21:08,138 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-189/.semver, universal_newlines=False, shell=None, istream=) 05:21:08 2022-05-11 05:21:08,143 [read_version] DEBUG read version from /w/workspace/gexfoundry_device-rest-go_PR-189/.semver/PR-189 05:21:08 0.0.0 [Pipeline] } 05:21:08 $ docker exec --env ******** --env ******** 105dd3cfb51236ce2d8f62476004ed6c8dd67f4d8b59d243981de8819344dee9 ssh-agent -k 05:21:08 unset SSH_AUTH_SOCK; 05:21:08 unset SSH_AGENT_PID; 05:21:08 echo Agent pid 80 killed; 05:21:08 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 05:21:08 + git semver [Pipeline] } 05:21:09 $ docker stop --time=1 105dd3cfb51236ce2d8f62476004ed6c8dd67f4d8b59d243981de8819344dee9 05:21:10 $ docker rm -f 105dd3cfb51236ce2d8f62476004ed6c8dd67f4d8b59d243981de8819344dee9 [Pipeline] // withDockerContainer [Pipeline] sh 05:21:11 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 05:21:11 Stashed 1 file(s) [Pipeline] echo 05:21:11 [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 05:21:12 provisioning config files... 05:21:12 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-189@tmp/config5569987186232815479tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 05:21:12 ---> docker-login.sh 05:21:12 nexus3.edgexfoundry.org:10001 05:21:12 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:21:12 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:21:12 Configure a credential helper to remove this warning. See 05:21:12 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:21:12 05:21:12 Login Succeeded 05:21:12 nexus3.edgexfoundry.org:10002 05:21:12 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:21:12 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:21:12 Configure a credential helper to remove this warning. See 05:21:12 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:21:12 05:21:12 Login Succeeded 05:21:12 nexus3.edgexfoundry.org:10003 05:21:12 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:21:12 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:21:12 Configure a credential helper to remove this warning. See 05:21:12 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:21:12 05:21:12 Login Succeeded 05:21:12 nexus3.edgexfoundry.org:10004 05:21:13 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:21:13 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:21:13 Configure a credential helper to remove this warning. See 05:21:13 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:21:13 05:21:13 Login Succeeded 05:21:13 docker.io 05:21:13 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:21:13 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:21:13 Configure a credential helper to remove this warning. See 05:21:13 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:21:13 05:21:13 Login Succeeded 05:21:13 ---> docker-login.sh ends [Pipeline] } 05:21:13 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 05:21:13 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 05:21:13 ========================================================= 05:21:13 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine] 05:21:13 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 05:21:14 + 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 . 05:21:14 Sending build context to Docker daemon 10.63MB 05:21:14 Step 1/12 : ARG BASE=golang:1.17-alpine3.15 05:21:14 Step 2/12 : FROM ${BASE} AS builder 05:21:14 1.17-alpine: Pulling from edgex-devops/edgex-golang-base 05:21:14 59bf1c3509f3: Pulling fs layer 05:21:14 666ba61612fd: Pulling fs layer 05:21:14 8ed8ca486205: Pulling fs layer 05:21:14 4fe6c5a15a65: Pulling fs layer 05:21:14 22a0e8bec74d: Pulling fs layer 05:21:14 ca2b28591e48: Pulling fs layer 05:21:14 a51346096db8: Pulling fs layer 05:21:14 daebc70d1ce1: Pulling fs layer 05:21:14 0e18a0eac166: Pulling fs layer 05:21:14 22a0e8bec74d: Waiting 05:21:14 a51346096db8: Waiting 05:21:14 daebc70d1ce1: Waiting 05:21:14 ca2b28591e48: Waiting 05:21:14 4fe6c5a15a65: Waiting 05:21:14 0e18a0eac166: Waiting 05:21:14 8ed8ca486205: Verifying Checksum 05:21:14 8ed8ca486205: Download complete 05:21:14 666ba61612fd: Download complete 05:21:14 22a0e8bec74d: Verifying Checksum 05:21:14 22a0e8bec74d: Download complete 05:21:14 ca2b28591e48: Verifying Checksum 05:21:14 ca2b28591e48: Download complete 05:21:14 59bf1c3509f3: Verifying Checksum 05:21:14 59bf1c3509f3: Download complete 05:21:14 a51346096db8: Verifying Checksum 05:21:14 a51346096db8: Download complete 05:21:14 daebc70d1ce1: Verifying Checksum 05:21:14 daebc70d1ce1: Download complete 05:21:14 59bf1c3509f3: Pull complete 05:21:14 666ba61612fd: Pull complete 05:21:14 8ed8ca486205: Pull complete 05:21:14 0e18a0eac166: Verifying Checksum 05:21:14 0e18a0eac166: Download complete 05:21:15 4fe6c5a15a65: Verifying Checksum 05:21:15 4fe6c5a15a65: Download complete 05:21:19 4fe6c5a15a65: Pull complete 05:21:19 22a0e8bec74d: Pull complete 05:21:19 ca2b28591e48: Pull complete 05:21:19 a51346096db8: Pull complete 05:21:19 daebc70d1ce1: Pull complete 05:21:22 0e18a0eac166: Pull complete 05:21:22 Digest: sha256:5cf2d0a306c5171eb5b3008c4b83cc7b6044f1808c238cb17927cddb93576120 05:21:22 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine 05:21:22 ---> f018257e8ee9 05:21:22 Step 3/12 : ARG MAKE='make build' 05:21:23 ---> Running in 1d2173439b7a 05:21:23 Removing intermediate container 1d2173439b7a 05:21:23 ---> 3eea16178f2d 05:21:23 Step 4/12 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 05:21:23 ---> Running in 367d31eb27e6 05:21:23 Removing intermediate container 367d31eb27e6 05:21:23 ---> 881e8316e5eb 05:21:23 Step 5/12 : ARG ALPINE_PKG_EXTRA="" 05:21:24 ---> Running in 5ec5332bba68 05:21:24 Removing intermediate container 5ec5332bba68 05:21:24 ---> 489d83fc8565 05:21:24 Step 6/12 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 05:21:24 ---> Running in 6e4c6416cda6 05:21:25 Removing intermediate container 6e4c6416cda6 05:21:25 ---> a9077ba229fb 05:21:25 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 05:21:25 ---> Running in dfad0ded62df 05:21:25 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 05:21:25 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 05:21:26 (1/4) Installing openssh-keygen (8.8_p1-r1) 05:21:26 (2/4) Installing libedit (20210910.3.1-r0) 05:21:26 (3/4) Installing openssh-client-common (8.8_p1-r1) 05:21:26 (4/4) Installing openssh-client-default (8.8_p1-r1) 05:21:26 Executing busybox-1.34.1-r3.trigger 05:21:26 OK: 224 MiB in 56 packages 05:21:26 Still waiting to schedule task 05:21:26 ‘prd-ubuntu20.04-docker-arm64-4c-16g-63043’ is offline 05:21:27 Removing intermediate container dfad0ded62df 05:21:27 ---> 84a8c3b07f66 05:21:27 Step 8/12 : WORKDIR /device-rest-go 05:21:27 ---> Running in ef8a94e38905 05:21:27 Removing intermediate container ef8a94e38905 05:21:27 ---> 3bd444772523 05:21:27 Step 9/12 : COPY go.mod vendor* ./ 05:21:27 ---> 814dee75568e 05:21:27 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 05:21:27 ---> Running in 27b2dee0be73 05:21:42 Removing intermediate container 27b2dee0be73 05:21:42 ---> 90759f02543c 05:21:42 Step 11/12 : COPY . . 05:21:42 ---> 534e6bd7f28f 05:21:42 Step 12/12 : RUN $MAKE 05:21:42 ---> Running in aab2bd15f355 05:21:42 noop 05:21:42 Removing intermediate container aab2bd15f355 05:21:42 ---> 5dd450336bd7 05:21:42 Successfully built 5dd450336bd7 05:21:42 Successfully tagged ci-base-image-x86_64:latest [Pipeline] isUnix [Pipeline] sh 05:21:42 + docker inspect -f . ci-base-image-x86_64 05:21:42 . [Pipeline] withDockerContainer 05:21:43 prd-ubuntu20.04-docker-8c-8g-63044 does not seem to be running inside a container 05:21:43 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-189 -v /w/workspace/gexfoundry_device-rest-go_PR-189:/w/workspace/gexfoundry_device-rest-go_PR-189:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-189@tmp:/w/workspace/gexfoundry_device-rest-go_PR-189@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 05:21:43 $ docker top ae1870594a81e7e235a57e582c365554da58de0ab0c51256fac14f2152364fb3 -eo pid,comm [Pipeline] { [Pipeline] sh 05:21:43 + go version 05:21:43 go version go1.17.6 linux/amd64 [Pipeline] } 05:21:43 $ docker stop --time=1 ae1870594a81e7e235a57e582c365554da58de0ab0c51256fac14f2152364fb3 05:21:45 $ docker rm -f ae1870594a81e7e235a57e582c365554da58de0ab0c51256fac14f2152364fb3 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 05:21:45 + docker inspect -f . ci-base-image-x86_64 05:21:45 . [Pipeline] withDockerContainer 05:21:46 prd-ubuntu20.04-docker-8c-8g-63044 does not seem to be running inside a container 05:21:46 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-189 -v /w/workspace/gexfoundry_device-rest-go_PR-189:/w/workspace/gexfoundry_device-rest-go_PR-189:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-189@tmp:/w/workspace/gexfoundry_device-rest-go_PR-189@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 05:21:46 $ docker top 332e7b2e4ca5b1f091bb8c1ed5db5b2fc00094c528d686dc85361b2e1adcfa14 -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 05:21:46 + make test 05:21:46 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out ./... 05:21:47 ? github.com/edgexfoundry/device-rest-go [no test files] 05:21:57 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 05:21:57 ok github.com/edgexfoundry/device-rest-go/driver 0.014s coverage: 55.2% of statements 05:22:05 CGO_ENABLED=1 GO111MODULE=on go vet ./... 05:22:08 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 05:22:08 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 05:22:08 ./bin/test-attribution-txt.sh [Pipeline] echo 05:22:08 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 05:22:08 $ docker stop --time=1 332e7b2e4ca5b1f091bb8c1ed5db5b2fc00094c528d686dc85361b2e1adcfa14 05:22:10 $ docker rm -f 332e7b2e4ca5b1f091bb8c1ed5db5b2fc00094c528d686dc85361b2e1adcfa14 [Pipeline] // withDockerContainer [Pipeline] sh 05:22:11 + sudo chown -R jenkins:jenkins . [Pipeline] stash 05:22:11 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 05:22:11 + sudo chown -R jenkins:jenkins . [Pipeline] sh 05:22:12 + ls -al . 05:22:12 total 172 05:22:12 drwxrwxr-x 9 jenkins jenkins 4096 May 11 05:22 . 05:22:12 drwxrwxr-x 4 jenkins jenkins 4096 May 11 05:20 .. 05:22:12 -rw-rw-r-- 1 jenkins jenkins 151 May 11 05:20 .dockerignore 05:22:12 drwxrwxr-x 8 jenkins jenkins 4096 May 11 05:21 .git 05:22:12 drwxrwxr-x 3 jenkins jenkins 4096 May 11 05:20 .github 05:22:12 -rw-rw-r-- 1 jenkins jenkins 329 May 11 05:20 .gitignore 05:22:12 -rw-rw-r-- 1 jenkins jenkins 41 May 11 05:20 .golangci.yml 05:22:12 drwxr-xr-x 3 jenkins jenkins 4096 May 11 05:21 .semver 05:22:12 -rw-rw-r-- 1 jenkins jenkins 8463 May 11 05:20 Attribution.txt 05:22:12 -rw-rw-r-- 1 jenkins jenkins 11736 May 11 05:20 CHANGELOG.md 05:22:12 -rw-rw-r-- 1 jenkins jenkins 1672 May 11 05:20 Dockerfile 05:22:12 -rw-rw-r-- 1 jenkins jenkins 677 May 11 05:20 GOVERNANCE.md 05:22:12 -rw-rw-r-- 1 jenkins jenkins 680 May 11 05:20 Jenkinsfile 05:22:12 -rw-rw-r-- 1 jenkins jenkins 11340 May 11 05:20 LICENSE 05:22:12 -rw-rw-r-- 1 jenkins jenkins 1977 May 11 05:20 Makefile 05:22:12 -rw-rw-r-- 1 jenkins jenkins 620 May 11 05:20 OWNERS.md 05:22:12 -rw-rw-r-- 1 jenkins jenkins 8003 May 11 05:20 README.md 05:22:12 -rw-rw-r-- 1 jenkins jenkins 5 May 11 05:21 VERSION 05:22:12 drwxrwxr-x 2 jenkins jenkins 4096 May 11 05:20 bin 05:22:12 drwxrwxr-x 3 jenkins jenkins 4096 May 11 05:20 cmd 05:22:12 -rw-r--r-- 1 jenkins jenkins 9355 May 11 05:21 coverage.out 05:22:12 drwxrwxr-x 2 jenkins jenkins 4096 May 11 05:20 driver 05:22:12 -rw-rw-r-- 1 jenkins jenkins 3287 May 11 05:20 go.mod 05:22:12 -rw-rw-r-- 1 jenkins jenkins 34802 May 11 05:20 go.sum 05:22:12 drwxrwxr-x 3 jenkins jenkins 4096 May 11 05:20 snap 05:22:12 -rw-rw-r-- 1 jenkins jenkins 713 May 11 05:20 version.go [Pipeline] isUnix [Pipeline] sh 05:22:12 + 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=256139c3d5d62b3a4c0b25e8999062d09719724b --label arch=amd64 --label version=0.0.0 . 05:22:12 Sending build context to Docker daemon 10.64MB 05:22:12 Step 1/25 : ARG BASE=golang:1.17-alpine3.15 05:22:12 Step 2/25 : FROM ${BASE} AS builder 05:22:12 ---> 5dd450336bd7 05:22:12 Step 3/25 : ARG MAKE='make build' 05:22:12 ---> Running in b916a87ea990 05:22:12 Removing intermediate container b916a87ea990 05:22:12 ---> 6595e1e8bf77 05:22:12 Step 4/25 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 05:22:13 ---> Running in c0caf7eba6d8 05:22:13 Removing intermediate container c0caf7eba6d8 05:22:13 ---> e685dbe36951 05:22:13 Step 5/25 : ARG ALPINE_PKG_EXTRA="" 05:22:13 ---> Running in f984aee58588 05:22:13 Removing intermediate container f984aee58588 05:22:13 ---> 2f2c7e2948f3 05:22:13 Step 6/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 05:22:13 ---> Running in d484f52995e3 05:22:13 Removing intermediate container d484f52995e3 05:22:13 ---> 34641611f237 05:22:13 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 05:22:14 ---> Running in a7c48c3e74d1 05:22:14 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 05:22:15 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 05:22:15 OK: 224 MiB in 56 packages 05:22:15 Removing intermediate container a7c48c3e74d1 05:22:15 ---> 6aa82e1e2fec 05:22:15 Step 8/25 : WORKDIR /device-rest-go 05:22:15 ---> Running in 6bd75fd17bc9 05:22:15 Removing intermediate container 6bd75fd17bc9 05:22:15 ---> 143dc31af073 05:22:15 Step 9/25 : COPY go.mod vendor* ./ 05:22:16 ---> 083ba40089f5 05:22:16 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 05:22:16 ---> Running in ac5ea1f62758 05:22:16 Removing intermediate container ac5ea1f62758 05:22:16 ---> e824b1783179 05:22:16 Step 11/25 : COPY . . 05:22:17 ---> c9b5e02e39ce 05:22:17 Step 12/25 : RUN $MAKE 05:22:17 ---> Running in 1cbc53e67f04 05:22:17 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 05:22:39 Removing intermediate container 1cbc53e67f04 05:22:39 ---> 3d10e5f590d3 05:22:39 Step 13/25 : FROM alpine:3.14 05:22:39 3.14: Pulling from library/alpine 05:22:39 8663204ce13b: Pulling fs layer 05:22:39 8663204ce13b: Verifying Checksum 05:22:39 8663204ce13b: Download complete 05:22:39 8663204ce13b: Pull complete 05:22:39 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 05:22:39 Status: Downloaded newer image for alpine:3.14 05:22:39 ---> e04c818066af 05:22:39 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' 05:22:39 ---> Running in 1a9ba517c091 05:22:39 Removing intermediate container 1a9ba517c091 05:22:39 ---> 09d645e13302 05:22:39 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 05:22:39 ---> Running in 3670d3d865ff 05:22:39 Removing intermediate container 3670d3d865ff 05:22:39 ---> cdaf66d04491 05:22:39 Step 16/25 : RUN apk add --update --no-cache zeromq dumb-init 05:22:39 ---> Running in d82140fe8ec6 05:22:39 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz 05:22:39 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz 05:22:39 (1/6) Installing dumb-init (1.2.5-r1) 05:22:39 (2/6) Installing libgcc (10.3.1_git20210424-r2) 05:22:39 (3/6) Installing libsodium (1.0.18-r0) 05:22:39 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 05:22:39 (5/6) Installing libzmq (4.3.4-r0) 05:22:39 (6/6) Installing zeromq (4.3.4-r0) 05:22:39 Executing busybox-1.33.1-r7.trigger 05:22:39 OK: 8 MiB in 20 packages 05:22:39 Removing intermediate container d82140fe8ec6 05:22:39 ---> 67f15695594f 05:22:39 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 05:22:39 ---> c4e5eb879b70 05:22:39 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 05:22:39 ---> cc1f950dfa70 05:22:39 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 05:22:39 ---> 280ceae5be9d 05:22:39 Step 20/25 : EXPOSE 59986 05:22:39 ---> Running in 51f377ff76cd 05:22:39 Removing intermediate container 51f377ff76cd 05:22:39 ---> b1c4131ac43a 05:22:39 Step 21/25 : ENTRYPOINT ["/device-rest"] 05:22:39 ---> Running in 458f20fa6b18 05:22:40 Removing intermediate container 458f20fa6b18 05:22:40 ---> 675328d31838 05:22:40 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--confdir=/res", "--registry"] 05:22:40 ---> Running in b3067dd4358f 05:22:40 Removing intermediate container b3067dd4358f 05:22:40 ---> 98106c12850d 05:22:40 Step 23/25 : LABEL arch=amd64 05:22:40 ---> Running in 7158ec2c1d06 05:22:40 Removing intermediate container 7158ec2c1d06 05:22:40 ---> 4d98ec0237a4 05:22:40 Step 24/25 : LABEL git_sha=256139c3d5d62b3a4c0b25e8999062d09719724b 05:22:40 ---> Running in da6da40a5a84 05:22:40 Removing intermediate container da6da40a5a84 05:22:40 ---> 4428876cc44a 05:22:40 Step 25/25 : LABEL version=0.0.0 05:22:40 ---> Running in 9d3fa037fdcf 05:22:40 Removing intermediate container 9d3fa037fdcf 05:22:40 ---> 31111af4e1e4 05:22:40 [Warning] One or more build-args [ARCH] were not consumed 05:22:40 Successfully built 31111af4e1e4 05:22:40 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 05:22:41 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 05:22:41 05:22:41 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] sh 05:22:41 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 05:22:41 latest: Pulling from edgex-lftools-log-publisher 05:22:41 5eb5b503b376: Pulling fs layer 05:22:41 5c69ac0246d0: Pulling fs layer 05:22:41 ec43610c2a17: Pulling fs layer 05:22:41 3a2ae6a8a46f: Pulling fs layer 05:22:41 33b1e0a273af: Pulling fs layer 05:22:41 5d3b04190fa2: Pulling fs layer 05:22:41 2f39f015ded8: Pulling fs layer 05:22:41 3a2ae6a8a46f: Waiting 05:22:41 33b1e0a273af: Waiting 05:22:41 5d3b04190fa2: Waiting 05:22:41 2f39f015ded8: Waiting 05:22:41 5c69ac0246d0: Download complete 05:22:41 3a2ae6a8a46f: Download complete 05:22:41 33b1e0a273af: Verifying Checksum 05:22:41 33b1e0a273af: Download complete 05:22:41 ec43610c2a17: Verifying Checksum 05:22:41 ec43610c2a17: Download complete 05:22:41 5d3b04190fa2: Verifying Checksum 05:22:41 5d3b04190fa2: Download complete 05:22:42 5eb5b503b376: Verifying Checksum 05:22:42 5eb5b503b376: Download complete 05:22:42 2f39f015ded8: Download complete 05:22:43 5eb5b503b376: Pull complete 05:22:43 5c69ac0246d0: Pull complete 05:22:44 ec43610c2a17: Pull complete 05:22:44 3a2ae6a8a46f: Pull complete 05:22:44 33b1e0a273af: Pull complete 05:22:44 5d3b04190fa2: Pull complete 05:22:49 2f39f015ded8: Pull complete 05:22:49 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 05:22:49 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 05:22:49 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] withDockerContainer 05:22:49 prd-ubuntu20.04-docker-8c-8g-63044 does not seem to be running inside a container 05:22:49 $ 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-189 -v /w/workspace/gexfoundry_device-rest-go_PR-189:/w/workspace/gexfoundry_device-rest-go_PR-189:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-189@tmp:/w/workspace/gexfoundry_device-rest-go_PR-189@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 05:22:51 $ docker top 4e108b88313dbb75421a31bbfd98c1311270f55d8ddf1ab032a77fe7f698df10 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 05:22:52 ---> job-cost.sh 05:22:52 lf-activate-venv: SKIPPING 05:22:52 INFO: No Stack... 05:22:52 INFO: Retrieving Pricing Info for: v3-standard-8 05:22:52 INFO: Archiving Costs [Pipeline] sh 05:22:53 + cat /w/workspace/gexfoundry_device-rest-go_PR-189/archives/cost.csv 05:22:53 + cut -d, -f6 [Pipeline] lock 05:22:53 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-189-1-stack-cost] 05:22:53 Resource [jenkins-edgexfoundry-device-rest-go-PR-189-1-stack-cost] did not exist. Created. 05:22:53 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-189-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 05:22:53 + echo total: 0.2199999988079071 [Pipeline] stash 05:22:53 Stashed 1 file(s) [Pipeline] } 05:22:53 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-189-1-stack-cost] [Pipeline] // lock [Pipeline] } 05:22:53 $ docker stop --time=1 4e108b88313dbb75421a31bbfd98c1311270f55d8ddf1ab032a77fe7f698df10 05:22:54 $ docker rm -f 4e108b88313dbb75421a31bbfd98c1311270f55d8ddf1ab032a77fe7f698df10 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 05:23:46 Running on prd-ubuntu20.04-docker-arm64-4c-16g-63046 in /w/workspace/gexfoundry_device-rest-go_PR-189 [Pipeline] { [Pipeline] ws 05:23:46 Running in /w/workspace/device-rest-go/1 [Pipeline] { [Pipeline] checkout 05:23:46 The recommended git tool is: git 05:23:53 using credential edgex-jenkins-ssh 05:23:53 Cloning the remote Git repository 05:23:53 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 05:23:53 > git init /w/workspace/device-rest-go/1 # timeout=10 05:23:53 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 05:23:53 > git --version # timeout=10 05:23:53 > git --version # 'git version 2.25.1' 05:23:53 using GIT_SSH to set credentials SSH Credentials for GitHub 05:23:53 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 05:23:55 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 05:23:55 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 05:23:55 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 05:23:55 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 05:23:55 using GIT_SSH to set credentials SSH Credentials for GitHub 05:23:55 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/189/head:refs/remotes/origin/PR-189 +refs/heads/main:refs/remotes/origin/main # timeout=10 05:23:56 Merging remotes/origin/main commit 9b53a838cf715098176e329c4fd19d0f7ded052f into PR head commit 256139c3d5d62b3a4c0b25e8999062d09719724b 05:23:56 Merge succeeded, producing 256139c3d5d62b3a4c0b25e8999062d09719724b 05:23:56 Checking out Revision 256139c3d5d62b3a4c0b25e8999062d09719724b (PR-189) 05:23:56 > git config core.sparsecheckout # timeout=10 05:23:56 > git checkout -f 256139c3d5d62b3a4c0b25e8999062d09719724b # timeout=10 05:23:56 > git remote # timeout=10 05:23:56 > git config --get remote.origin.url # timeout=10 05:23:56 using GIT_SSH to set credentials SSH Credentials for GitHub 05:23:56 > git merge 9b53a838cf715098176e329c4fd19d0f7ded052f # timeout=10 05:23:56 > git rev-parse HEAD^{commit} # timeout=10 05:23:56 > git config core.sparsecheckout # timeout=10 05:23:56 > git checkout -f 256139c3d5d62b3a4c0b25e8999062d09719724b # timeout=10 05:24:01 Commit message: "build: Update to released Go Mods" 05:24:01 > git --version # timeout=10 05:24:01 > git --version # 'git version 2.25.1' 05:24:01 fatal: bad object 95c76d14630896f3c9cf825147e1b1e2bad20cbb [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 05:24:02 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 05:24:02 % Total % Received % Xferd Average Speed Time Time Time Current 05:24:02 Dload Upload Total Spent Left Speed 05:24:02 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 11843 100 11843 0 0 210k 0 --:--:-- --:--:-- --:--:-- 210k [Pipeline] sh 05:24:03 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 05:24:03 + sudo tee /etc/docker/daemon.new 05:24:03 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 05:24:03 { 05:24:03 "registry-mirrors": [ 05:24:03 "https://nexus3.edgexfoundry.org:10001" 05:24:03 ], 05:24:03 "bip": "10.250.0.254/24", 05:24:03 "hosts": [ 05:24:03 "tcp://0.0.0.0:5555", 05:24:03 "unix:///var/run/docker.sock" 05:24:03 ], 05:24:03 "mtu": 1458, 05:24:03 "selinux-enabled": true, 05:24:03 "seccomp-profile": "/etc/docker/seccomp.json" 05:24:03 } [Pipeline] sh 05:24:03 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 05:24:04 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 05:24:22 provisioning config files... 05:24:22 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/1@tmp/config2516872874691434101tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 05:24:23 ---> docker-login.sh 05:24:23 nexus3.edgexfoundry.org:10001 05:24:23 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:24:24 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:24:24 Configure a credential helper to remove this warning. See 05:24:24 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:24:24 05:24:24 Login Succeeded 05:24:24 nexus3.edgexfoundry.org:10002 05:24:24 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:24:24 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:24:24 Configure a credential helper to remove this warning. See 05:24:24 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:24:24 05:24:24 Login Succeeded 05:24:24 nexus3.edgexfoundry.org:10003 05:24:24 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:24:25 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:24:25 Configure a credential helper to remove this warning. See 05:24:25 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:24:25 05:24:25 Login Succeeded 05:24:25 nexus3.edgexfoundry.org:10004 05:24:25 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:24:25 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:24:25 Configure a credential helper to remove this warning. See 05:24:25 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:24:25 05:24:25 Login Succeeded 05:24:25 docker.io 05:24:25 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:24:26 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:24:26 Configure a credential helper to remove this warning. See 05:24:26 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:24:26 05:24:26 Login Succeeded 05:24:26 ---> docker-login.sh ends [Pipeline] } 05:24:26 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 05:24:26 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 05:24:26 ========================================================= 05:24:26 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine] 05:24:26 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 05:24:27 + 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 . 05:24:27 Sending build context to Docker daemon 128.5kB 05:24:27 Step 1/12 : ARG BASE=golang:1.17-alpine3.15 05:24:27 Step 2/12 : FROM ${BASE} AS builder 05:24:27 1.17-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 05:24:27 9b3977197b4f: Pulling fs layer 05:24:27 1a89e8eeedd5: Pulling fs layer 05:24:27 94645a83ff95: Pulling fs layer 05:24:27 3f3a8bcf1eab: Pulling fs layer 05:24:27 0c92f367c5e7: Pulling fs layer 05:24:27 3096ccb668a1: Pulling fs layer 05:24:27 e8cf19c19ddd: Pulling fs layer 05:24:27 a4caa8a26152: Pulling fs layer 05:24:27 3f3a8bcf1eab: Waiting 05:24:27 0c92f367c5e7: Waiting 05:24:27 e8cf19c19ddd: Waiting 05:24:27 a4caa8a26152: Waiting 05:24:27 3096ccb668a1: Waiting 05:24:27 94645a83ff95: Verifying Checksum 05:24:27 94645a83ff95: Download complete 05:24:27 1a89e8eeedd5: Verifying Checksum 05:24:27 1a89e8eeedd5: Download complete 05:24:27 0c92f367c5e7: Download complete 05:24:27 3096ccb668a1: Verifying Checksum 05:24:27 3096ccb668a1: Download complete 05:24:27 9b3977197b4f: Download complete 05:24:27 e8cf19c19ddd: Verifying Checksum 05:24:27 e8cf19c19ddd: Download complete 05:24:28 9b3977197b4f: Pull complete 05:24:29 1a89e8eeedd5: Pull complete 05:24:29 94645a83ff95: Pull complete 05:24:29 a4caa8a26152: Verifying Checksum 05:24:29 a4caa8a26152: Download complete 05:24:30 3f3a8bcf1eab: Verifying Checksum 05:24:30 3f3a8bcf1eab: Download complete 05:24:42 3f3a8bcf1eab: Pull complete 05:24:42 0c92f367c5e7: Pull complete 05:24:42 3096ccb668a1: Pull complete 05:24:42 e8cf19c19ddd: Pull complete 05:24:48 a4caa8a26152: Pull complete 05:24:48 Digest: sha256:b3ad895ecde34a7521bb8912598475bc58d052e1c2c58d00df7f0fe54a102a46 05:24:48 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine 05:24:48 ---> 725f1c02e7f9 05:24:48 Step 3/12 : ARG MAKE='make build' 05:24:49 ---> Running in 17ab5d58d6c0 05:24:50 Removing intermediate container 17ab5d58d6c0 05:24:50 ---> 1c937cd027f4 05:24:50 Step 4/12 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 05:24:50 ---> Running in 5782aae798b1 05:24:50 Removing intermediate container 5782aae798b1 05:24:50 ---> 7e167778cf5f 05:24:50 Step 5/12 : ARG ALPINE_PKG_EXTRA="" 05:24:50 ---> Running in 5e751ee1d3f3 05:24:50 Removing intermediate container 5e751ee1d3f3 05:24:50 ---> 22635215f938 05:24:50 Step 6/12 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 05:24:51 ---> Running in 31f3287c91c1 05:24:54 Removing intermediate container 31f3287c91c1 05:24:54 ---> 035961d60ab2 05:24:54 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 05:24:54 ---> Running in 9aa79aeed493 05:24:55 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 05:24:55 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 05:24:56 (1/4) Installing openssh-keygen (8.8_p1-r1) 05:24:56 (2/4) Installing libedit (20210910.3.1-r0) 05:24:56 (3/4) Installing openssh-client-common (8.8_p1-r1) 05:24:57 (4/4) Installing openssh-client-default (8.8_p1-r1) 05:24:57 Executing busybox-1.34.1-r3.trigger 05:24:57 OK: 224 MiB in 56 packages 05:24:58 Removing intermediate container 9aa79aeed493 05:24:58 ---> 25886ea8d0cf 05:24:58 Step 8/12 : WORKDIR /device-rest-go 05:24:58 ---> Running in 6951a2b156eb 05:24:58 Removing intermediate container 6951a2b156eb 05:24:58 ---> bcc1799c30c6 05:24:58 Step 9/12 : COPY go.mod vendor* ./ 05:24:59 ---> e5b934bd4c0f 05:24:59 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 05:24:59 ---> Running in 330527989f18 05:25:46 Removing intermediate container 330527989f18 05:25:46 ---> 1a2ef587b6ba 05:25:46 Step 11/12 : COPY . . 05:25:46 ---> 7d15031fb775 05:25:46 Step 12/12 : RUN $MAKE 05:25:46 ---> Running in bbf42eae5549 05:25:47 noop 05:25:47 Removing intermediate container bbf42eae5549 05:25:47 ---> c8b6a78ed160 05:25:47 Successfully built c8b6a78ed160 05:25:47 Successfully tagged ci-base-image-arm64:latest [Pipeline] isUnix [Pipeline] sh 05:25:48 + docker inspect -f . ci-base-image-arm64 05:25:48 . [Pipeline] withDockerContainer 05:25:48 prd-ubuntu20.04-docker-arm64-4c-16g-63046 does not seem to be running inside a container 05:25:48 $ 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 ******** ci-base-image-arm64 cat 05:25:49 $ docker top 9086b88e6c13ab16849f7b3ff5f60813542a90f74a38add6d5acae8029873fd0 -eo pid,comm [Pipeline] { [Pipeline] sh 05:25:50 + go version 05:25:50 go version go1.17.6 linux/arm64 [Pipeline] } 05:25:50 $ docker stop --time=1 9086b88e6c13ab16849f7b3ff5f60813542a90f74a38add6d5acae8029873fd0 05:25:52 $ docker rm -f 9086b88e6c13ab16849f7b3ff5f60813542a90f74a38add6d5acae8029873fd0 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 05:25:53 + docker inspect -f . ci-base-image-arm64 05:25:53 . [Pipeline] withDockerContainer 05:25:53 prd-ubuntu20.04-docker-arm64-4c-16g-63046 does not seem to be running inside a container 05:25: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 ******** ci-base-image-arm64 cat 05:25:55 $ docker top 00ac8f2ff2f6a5978ed16b6dc870805cc61f1d54e073d240011afd825aa8a87e -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 05:25:56 + make test 05:25:56 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out ./... 05:25:58 ? github.com/edgexfoundry/device-rest-go [no test files] 05:27:35 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 05:27:35 ok github.com/edgexfoundry/device-rest-go/driver 0.068s coverage: 55.2% of statements 05:27:35 WARNING: Linting skipped (not on x86_64 or linter not installed) 05:27:35 CGO_ENABLED=1 GO111MODULE=on go vet ./... 05:27:53 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 05:27:53 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 05:27:53 ./bin/test-attribution-txt.sh [Pipeline] echo 05:27:54 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 05:27:54 $ docker stop --time=1 00ac8f2ff2f6a5978ed16b6dc870805cc61f1d54e073d240011afd825aa8a87e 05:27:56 $ docker rm -f 00ac8f2ff2f6a5978ed16b6dc870805cc61f1d54e073d240011afd825aa8a87e [Pipeline] // withDockerContainer [Pipeline] sh 05:27:57 + sudo chown -R jenkins:jenkins . [Pipeline] stash 05:27:57 Warning: overwriting stash ‘coverage-report’ 05:27:58 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 05:27:58 + sudo chown -R jenkins:jenkins . [Pipeline] sh 05:27:59 + ls -al . 05:27:59 total 168 05:27:59 drwxrwxr-x 8 jenkins jenkins 4096 May 11 05:27 . 05:27:59 drwxrwxr-x 4 jenkins jenkins 4096 May 11 05:23 .. 05:27:59 -rw-rw-r-- 1 jenkins jenkins 151 May 11 05:23 .dockerignore 05:27:59 drwxrwxr-x 8 jenkins jenkins 4096 May 11 05:24 .git 05:27:59 drwxrwxr-x 3 jenkins jenkins 4096 May 11 05:23 .github 05:27:59 -rw-rw-r-- 1 jenkins jenkins 329 May 11 05:23 .gitignore 05:27:59 -rw-rw-r-- 1 jenkins jenkins 41 May 11 05:23 .golangci.yml 05:27:59 -rw-rw-r-- 1 jenkins jenkins 8463 May 11 05:23 Attribution.txt 05:27:59 -rw-rw-r-- 1 jenkins jenkins 11736 May 11 05:23 CHANGELOG.md 05:27:59 -rw-rw-r-- 1 jenkins jenkins 1672 May 11 05:23 Dockerfile 05:27:59 -rw-rw-r-- 1 jenkins jenkins 677 May 11 05:23 GOVERNANCE.md 05:27:59 -rw-rw-r-- 1 jenkins jenkins 680 May 11 05:23 Jenkinsfile 05:27:59 -rw-rw-r-- 1 jenkins jenkins 11340 May 11 05:23 LICENSE 05:27:59 -rw-rw-r-- 1 jenkins jenkins 1977 May 11 05:23 Makefile 05:27:59 -rw-rw-r-- 1 jenkins jenkins 620 May 11 05:23 OWNERS.md 05:27:59 -rw-rw-r-- 1 jenkins jenkins 8003 May 11 05:23 README.md 05:27:59 -rw-rw-r-- 1 jenkins jenkins 5 May 11 05:21 VERSION 05:27:59 drwxrwxr-x 2 jenkins jenkins 4096 May 11 05:23 bin 05:27:59 drwxrwxr-x 3 jenkins jenkins 4096 May 11 05:23 cmd 05:27:59 -rw-r--r-- 1 jenkins jenkins 9355 May 11 05:27 coverage.out 05:27:59 drwxrwxr-x 2 jenkins jenkins 4096 May 11 05:23 driver 05:27:59 -rw-rw-r-- 1 jenkins jenkins 3287 May 11 05:23 go.mod 05:27:59 -rw-rw-r-- 1 jenkins jenkins 34802 May 11 05:23 go.sum 05:27:59 drwxrwxr-x 3 jenkins jenkins 4096 May 11 05:23 snap 05:27:59 -rw-rw-r-- 1 jenkins jenkins 713 May 11 05:23 version.go [Pipeline] isUnix [Pipeline] sh 05:27:59 + 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=256139c3d5d62b3a4c0b25e8999062d09719724b --label arch=arm64 --label version=0.0.0 . 05:27:59 Sending build context to Docker daemon 138.8kB 05:28:00 Step 1/25 : ARG BASE=golang:1.17-alpine3.15 05:28:00 Step 2/25 : FROM ${BASE} AS builder 05:28:00 ---> c8b6a78ed160 05:28:00 Step 3/25 : ARG MAKE='make build' 05:28:00 ---> Running in d220bff53e0c 05:28:00 Removing intermediate container d220bff53e0c 05:28:00 ---> 69d3032dbf4c 05:28:00 Step 4/25 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 05:28:00 ---> Running in 5338725c7f14 05:28:01 Removing intermediate container 5338725c7f14 05:28:01 ---> 434ccd81a489 05:28:01 Step 5/25 : ARG ALPINE_PKG_EXTRA="" 05:28:01 ---> Running in e04a6c5960c3 05:28:01 Removing intermediate container e04a6c5960c3 05:28:01 ---> 39050583e1de 05:28:01 Step 6/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 05:28:01 ---> Running in 51e12394a57b 05:28:03 Removing intermediate container 51e12394a57b 05:28:03 ---> cc561934df49 05:28:03 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 05:28:03 ---> Running in f8138fcdc975 05:28:04 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 05:28:05 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 05:28:06 OK: 224 MiB in 56 packages 05:28:07 Removing intermediate container f8138fcdc975 05:28:07 ---> e34bab5e98cb 05:28:07 Step 8/25 : WORKDIR /device-rest-go 05:28:07 ---> Running in 5d9af637dbed 05:28:07 Removing intermediate container 5d9af637dbed 05:28:07 ---> 2ca118cf878a 05:28:07 Step 9/25 : COPY go.mod vendor* ./ 05:28:08 ---> 45cf02a0ce84 05:28:08 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 05:28:08 ---> Running in adf815588bea 05:28:10 Removing intermediate container adf815588bea 05:28:10 ---> 6705a2b8d67c 05:28:10 Step 11/25 : COPY . . 05:28:11 ---> 57a679520213 05:28:11 Step 12/25 : RUN $MAKE 05:28:11 ---> Running in 9c74db39fa53 05:28:12 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 05:30:34 Removing intermediate container 9c74db39fa53 05:30:34 ---> f1522ac19f28 05:30:34 Step 13/25 : FROM alpine:3.14 05:30:34 3.14: Pulling from library/alpine 05:30:34 455c02918c45: Pulling fs layer 05:30:34 455c02918c45: Verifying Checksum 05:30:34 455c02918c45: Download complete 05:30:34 455c02918c45: Pull complete 05:30:34 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 05:30:34 Status: Downloaded newer image for alpine:3.14 05:30:34 ---> ac73e934f311 05:30:34 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' 05:30:34 ---> Running in cd7ea75879ed 05:30:34 Removing intermediate container cd7ea75879ed 05:30:34 ---> 4b03f57b129b 05:30:34 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 05:30:34 ---> Running in 661fc3258b86 05:30:34 Removing intermediate container 661fc3258b86 05:30:34 ---> 6309813a4961 05:30:34 Step 16/25 : RUN apk add --update --no-cache zeromq dumb-init 05:30:34 ---> Running in 25e613a8dd5e 05:30:34 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/aarch64/APKINDEX.tar.gz 05:30:34 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/aarch64/APKINDEX.tar.gz 05:30:34 (1/6) Installing dumb-init (1.2.5-r1) 05:30:34 (2/6) Installing libgcc (10.3.1_git20210424-r2) 05:30:34 (3/6) Installing libsodium (1.0.18-r0) 05:30:34 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 05:30:34 (5/6) Installing libzmq (4.3.4-r0) 05:30:34 (6/6) Installing zeromq (4.3.4-r0) 05:30:34 Executing busybox-1.33.1-r7.trigger 05:30:34 OK: 8 MiB in 20 packages 05:30:34 Removing intermediate container 25e613a8dd5e 05:30:34 ---> 1cb0c608338f 05:30:34 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 05:30:34 ---> 461cf4911130 05:30:34 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 05:30:34 ---> 99e154495ba6 05:30:34 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 05:30:34 ---> c889c72cc487 05:30:34 Step 20/25 : EXPOSE 59986 05:30:34 ---> Running in e76cfbf80168 05:30:34 Removing intermediate container e76cfbf80168 05:30:34 ---> 07db1972726f 05:30:34 Step 21/25 : ENTRYPOINT ["/device-rest"] 05:30:34 ---> Running in bce14a52c28a 05:30:34 Removing intermediate container bce14a52c28a 05:30:34 ---> effa111637ea 05:30:34 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--confdir=/res", "--registry"] 05:30:34 ---> Running in a44f2968304a 05:30:34 Removing intermediate container a44f2968304a 05:30:34 ---> e66246b47930 05:30:34 Step 23/25 : LABEL arch=arm64 05:30:34 ---> Running in b236690c2e7a 05:30:34 Removing intermediate container b236690c2e7a 05:30:34 ---> 225755d76590 05:30:34 Step 24/25 : LABEL git_sha=256139c3d5d62b3a4c0b25e8999062d09719724b 05:30:34 ---> Running in 3b77d37ce74a 05:30:34 Removing intermediate container 3b77d37ce74a 05:30:34 ---> 7be34cea7d82 05:30:34 Step 25/25 : LABEL version=0.0.0 05:30:34 ---> Running in e69ea8fdc94b 05:30:34 Removing intermediate container e69ea8fdc94b 05:30:34 ---> 1067ae7f98e0 05:30:34 [Warning] One or more build-args [ARCH] were not consumed 05:30:34 Successfully built 1067ae7f98e0 05:30:34 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 05:30:34 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 05:30:34 05:30:34 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] sh 05:30:35 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 05:30:35 arm64: Pulling from edgex-lftools-log-publisher 05:30:35 8998bd30e6a1: Pulling fs layer 05:30:35 04944245beec: Pulling fs layer 05:30:35 699f458cf7ca: Pulling fs layer 05:30:35 765212b225bb: Pulling fs layer 05:30:35 f23df028b6ca: Pulling fs layer 05:30:35 d65c8cfc05b1: Pulling fs layer 05:30:35 2437ff75d9bd: Pulling fs layer 05:30:35 f23df028b6ca: Waiting 05:30:35 d65c8cfc05b1: Waiting 05:30:35 2437ff75d9bd: Waiting 05:30:35 765212b225bb: Waiting 05:30:35 04944245beec: Verifying Checksum 05:30:35 04944245beec: Download complete 05:30:35 765212b225bb: Verifying Checksum 05:30:35 765212b225bb: Download complete 05:30:35 f23df028b6ca: Verifying Checksum 05:30:35 f23df028b6ca: Download complete 05:30:35 d65c8cfc05b1: Verifying Checksum 05:30:35 d65c8cfc05b1: Download complete 05:30:35 699f458cf7ca: Verifying Checksum 05:30:35 699f458cf7ca: Download complete 05:30:36 8998bd30e6a1: Verifying Checksum 05:30:36 8998bd30e6a1: Download complete 05:30:38 2437ff75d9bd: Verifying Checksum 05:30:38 2437ff75d9bd: Download complete 05:30:40 8998bd30e6a1: Pull complete 05:30:40 04944245beec: Pull complete 05:30:42 699f458cf7ca: Pull complete 05:30:42 765212b225bb: Pull complete 05:30:43 f23df028b6ca: Pull complete 05:30:43 d65c8cfc05b1: Pull complete 05:30:58 2437ff75d9bd: Pull complete 05:30:58 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 05:30:58 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 05:30:58 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] withDockerContainer 05:30:58 prd-ubuntu20.04-docker-arm64-4c-16g-63046 does not seem to be running inside a container 05:30:58 $ 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 ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 05:31:01 $ docker top 5af139bb27a6ebb1bd485a081ee01535a69ca441a80910bb5a8aa29496d3c52a -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 05:31:02 ---> job-cost.sh 05:31:02 lf-activate-venv: SKIPPING 05:31:02 INFO: No Stack... 05:31:02 INFO: Retrieving Pricing Info for: v3-standard-4 05:31:03 INFO: Archiving Costs [Pipeline] sh 05:31:03 + cat /w/workspace/device-rest-go/1/archives/cost.csv 05:31:03 + cut -d, -f6 [Pipeline] lock 05:31:04 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-189-1-stack-cost] 05:31:04 Resource [jenkins-edgexfoundry-device-rest-go-PR-189-1-stack-cost] did not exist. Created. 05:31:04 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-189-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 05:31:04 /w/workspace/device-rest-go/1@tmp/durable-0ba77c45/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 05:31:05 + echo total: 0.10999999940395355 [Pipeline] stash 05:31:05 Warning: overwriting stash ‘stack-cost’ 05:31:05 Stashed 1 file(s) [Pipeline] } 05:31:05 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-189-1-stack-cost] [Pipeline] // lock [Pipeline] } 05:31:05 $ docker stop --time=1 5af139bb27a6ebb1bd485a081ee01535a69ca441a80910bb5a8aa29496d3c52a 05:31:07 $ docker rm -f 5af139bb27a6ebb1bd485a081ee01535a69ca441a80910bb5a8aa29496d3c52a [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 05:31:08 provisioning config files... 05:31:08 copy managed file [device-rest-go-codecov-token] to file:/w/workspace/gexfoundry_device-rest-go_PR-189@tmp/config7161542339696839775tmp [Pipeline] { [Pipeline] sh 05:31:08 + set +x 05:31:08 + curl -s https://codecov.io/bash 05:31:08 + bash -s -- 05:31:08 05:31:08 _____ _ 05:31:08 / ____| | | 05:31:08 | | ___ __| | ___ ___ _____ __ 05:31:08 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 05:31:08 | |___| (_) | (_| | __/ (_| (_) \ V / 05:31:08 \_____\___/ \__,_|\___|\___\___/ \_/ 05:31:08 Bash-1.0.6 05:31:08 05:31:08 05:31:08 ==> git version 2.25.1 found 05:31:08 ==> 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 05:31:08 Release-Date: 2020-01-08 05:31:08 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 05:31:08 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 05:31:08 ==> Jenkins CI detected. 05:31:08 current dir:  /w/workspace/gexfoundry_device-rest-go_PR-189 05:31:08 project root: . 05:31:08 --> token set from env 05:31:08 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 05:31:08 ==> Running gcov in . (disable via -X gcov) 05:31:08 ==> Python coveragepy not found 05:31:08 ==> Searching for coverage reports in: 05:31:08 + . 05:31:08 -> Found 1 reports 05:31:08 ==> Detecting git/mercurial file structure 05:31:08 ==> Reading reports 05:31:08 + ./coverage.out bytes=9355 05:31:08 ==> Appending adjustments 05:31:08 https://docs.codecov.io/docs/fixing-reports 05:31:08 + Found adjustments 05:31:08 ==> Gzipping contents 05:31:08 4.0K /tmp/codecov.yCp824.gz 05:31:08 ==> Uploading reports 05:31:08 url: https://codecov.io 05:31:08 query: branch=PR-189&commit=256139c3d5d62b3a4c0b25e8999062d09719724b&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-189%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=189&job=&cmd_args= 05:31:08 -> Pinging Codecov 05:31:08 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=c51feb23-73ac-4f49-b3d1-d26df23137db&branch=PR-189&commit=256139c3d5d62b3a4c0b25e8999062d09719724b&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-189%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=189&job=&cmd_args= 05:31:09 -> Uploading to 05:31:09 https://storage.googleapis.com/codecov/v4/raw/2022-05-11/4E5D53B4F1F92C436F7061BF334D961C/256139c3d5d62b3a4c0b25e8999062d09719724b/ad0b3db4-13f4-4bc9-ac0e-27f144838c13.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20220511%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20220511T053109Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=5ae8f8a45b95ded6af3c8b88efc04508b7a4d2df3569590b8bf9f53aebcd36a4 05:31:09 % Total % Received % Xferd Average Speed Time Time Time Current 05:31:09 Dload Upload Total Spent Left Speed 05:31:09 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 1806 0 0 100 1806 0 7462 --:--:-- --:--:-- --:--:-- 7462 05:31:09 -> Reports have been successfully queued for processing at https://codecov.io/github/edgexfoundry/device-rest-go/commit/256139c3d5d62b3a4c0b25e8999062d09719724b [Pipeline] } 05:31:09 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 05:31:11 + [ -d /w/workspace/gexfoundry_device-rest-go_PR-189/archives ] 05:31:11 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-189/archives 05:31:11 total 16 05:31:11 drwxr-xr-x 3 root root 4096 May 11 05:22 . 05:31:11 drwxrwxr-x 10 jenkins jenkins 4096 May 11 05:22 .. 05:31:11 drwxr-xr-x 2 root root 4096 May 11 05:22 cost 05:31:11 -rw-r--r-- 1 root root 85 May 11 05:22 cost.csv 05:31:11 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-rest-go_PR-189/archives 05:31:11 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-189/archives 05:31:11 total 16 05:31:11 drwxr-xr-x 3 jenkins jenkins 4096 May 11 05:22 . 05:31:11 drwxrwxr-x 10 jenkins jenkins 4096 May 11 05:22 .. 05:31:11 drwxr-xr-x 2 jenkins jenkins 4096 May 11 05:22 cost 05:31:11 -rw-r--r-- 1 jenkins jenkins 85 May 11 05:22 cost.csv [Pipeline] libraryResource [Pipeline] sh 05:31:11 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 05:31:12 ---> package-listing.sh 05:31:12 ++ facter osfamily 05:31:12 ++ tr '[:upper:]' '[:lower:]' 05:31:12 + OS_FAMILY=debian 05:31:12 + workspace=/w/workspace/gexfoundry_device-rest-go_PR-189 05:31:12 + START_PACKAGES=/tmp/packages_start.txt 05:31:12 + END_PACKAGES=/tmp/packages_end.txt 05:31:12 + DIFF_PACKAGES=/tmp/packages_diff.txt 05:31:12 + PACKAGES=/tmp/packages_start.txt 05:31:12 + '[' /w/workspace/gexfoundry_device-rest-go_PR-189 ']' 05:31:12 + PACKAGES=/tmp/packages_end.txt 05:31:12 + case "${OS_FAMILY}" in 05:31:12 + dpkg -l 05:31:12 + grep '^ii' 05:31:12 + '[' -f /tmp/packages_start.txt ']' 05:31:12 + '[' -f /tmp/packages_end.txt ']' 05:31:12 + diff /tmp/packages_start.txt /tmp/packages_end.txt 05:31:12 + '[' /w/workspace/gexfoundry_device-rest-go_PR-189 ']' 05:31:12 + mkdir -p /w/workspace/gexfoundry_device-rest-go_PR-189/archives/ 05:31:12 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/gexfoundry_device-rest-go_PR-189/archives/ [Pipeline] echo 05:31:12 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-189/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 05:31:12 + facter operatingsystem [Pipeline] isUnix [Pipeline] sh 05:31:13 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 05:31:13 . [Pipeline] withDockerContainer 05:31:13 prd-ubuntu20.04-docker-8c-8g-63044 does not seem to be running inside a container 05:31:13 $ 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-189/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-189 -v /w/workspace/gexfoundry_device-rest-go_PR-189:/w/workspace/gexfoundry_device-rest-go_PR-189:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-189@tmp:/w/workspace/gexfoundry_device-rest-go_PR-189@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 05:31:13 $ docker top eab94db3248c454d16286c61d7af1cd5773f23e655204ab4b375c0577a5ebd4a -eo pid,comm [Pipeline] { [Pipeline] sh 05:31:14 + touch /tmp/pre-build-complete [Pipeline] sh 05:31:14 + mkdir -p /var/log/sysstat [Pipeline] sh 05:31:14 + ls /var/log/sa-host 05:31:14 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 05:31:15 provisioning config files... 05:31:15 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-189@tmp/config6420658846573601478tmp [Pipeline] { [Pipeline] echo 05:31:15 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 05:31:15 ---> create-netrc.sh [Pipeline] } 05:31:15 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 05:31:15 ---> python-tools-install.sh [Pipeline] echo 05:31:15 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 05:31:16 ---> sudo-logs.sh 05:31:16 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 05:31:16 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 05:31:16 ---> job-cost.sh 05:31:16 lf-activate-venv: SKIPPING 05:31:16 DEBUG: total: 0.2199999988079071 05:31:16 INFO: Retrieving Stack Cost... 05:31:17 INFO: Retrieving Pricing Info for: v3-standard-8 05:31:17 INFO: Archiving Costs [Pipeline] echo 05:31:17 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 05:31:17 ---> logs-deploy.sh 05:31:17 lf-activate-venv: SKIPPING 05:31:17 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-189/1 05:31:17 INFO: archiving workspace using pattern(s): 05:31:18 Archives upload complete. 05:31:18 INFO: archiving logs to Nexus