Pull request #182 event Connecting to https://api.github.com using edgex-jenkins github personal access token Obtained Jenkinsfile from 0e1e7071f072e9c52fdee87aa4e744db5d45758f+f0689e2451660e374e54247122f91e779ddae9a5 (35571657d242676210fde3631220a8fd163893eb) 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-ssh5227406171449013776.key > git ls-remote -h -t -- git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Found match: refs/tags/stable revision 61d3a14f5ee21304eadc9c25f102bcac80e1a589 Resolving tag commit... (remote references may be a lightweight tag or an annotated tag) > git rev-parse --resolve-git-dir /var/lib/jenkins/caches/git-95b00d7e16de695d9f4849f078f37a0f/.git # timeout=10 Setting origin to git@github.com:edgexfoundry/edgex-global-pipelines.git > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Fetching origin... Fetching upstream changes from origin > git --version # timeout=10 > git --version # 'git version 2.16.6' > git config --get remote.origin.url # timeout=10 using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/caches/git-95b00d7e16de695d9f4849f078f37a0f@tmp/jenkins-gitclient-ssh1050649057859446912.key > git fetch --tags --progress -- origin +refs/heads/*:refs/remotes/origin/* # timeout=10 > git rev-parse refs/tags/stable^{commit} # timeout=10 Resolved tag stable revision 61d3a14f5ee21304eadc9c25f102bcac80e1a589 The recommended git tool is: git using credential edgex-jenkins-ssh > git rev-parse --resolve-git-dir /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-182/workspace@libs/edgex-global-pipelines/.git # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Fetching with tags Fetching upstream changes from git@github.com:edgexfoundry/edgex-global-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-182/workspace@libs/edgex-global-pipelines@tmp/jenkins-gitclient-ssh17322131047833205715.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision 61d3a14f5ee21304eadc9c25f102bcac80e1a589 (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f 61d3a14f5ee21304eadc9c25f102bcac80e1a589 # timeout=10 Commit message: "Merge pull request #384 from ernestojeda/add-go-1_17-lts" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 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-ssh16170443196370618668.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 > git rev-parse --resolve-git-dir /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-182/workspace@libs/lf-pipelines/.git # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url git@github.com:lfit/releng-pipelines.git # timeout=10 Fetching without tags Fetching upstream changes from git@github.com:lfit/releng-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-182/workspace@libs/lf-pipelines@tmp/jenkins-gitclient-ssh13429313958658708695.key > git fetch --no-tags --progress -- git@github.com:lfit/releng-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10 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 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-centos7-blackbox-4c-2g-34311’ doesn’t have label ‘ubuntu20.04-docker-8c-8g’ ‘prd-ubuntu20.04-docker-8c-8g-34832’ is offline ‘prd-ubuntu20.04-docker-8c-8g-34833’ is offline ‘prd-ubuntu20.04-docker-8c-8g-34836’ is offline Running on prd-ubuntu20.04-docker-8c-8g-39486 in /w/workspace/gexfoundry_device-rest-go_PR-182 [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-182 # 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 f0689e2451660e374e54247122f91e779ddae9a5 into PR head commit 0e1e7071f072e9c52fdee87aa4e744db5d45758f Merge succeeded, producing 0e1e7071f072e9c52fdee87aa4e744db5d45758f Checking out Revision 0e1e7071f072e9c52fdee87aa4e744db5d45758f (PR-182) > 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/182/head:refs/remotes/origin/PR-182 +refs/heads/main:refs/remotes/origin/main # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 0e1e7071f072e9c52fdee87aa4e744db5d45758f # 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 f0689e2451660e374e54247122f91e779ddae9a5 # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 0e1e7071f072e9c52fdee87aa4e744db5d45758f # timeout=10 Commit message: "build(deps): Bump github.com/edgexfoundry/go-mod-core-contracts/v2" First time build. Skipping changelog. [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 03:53:46 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 03:53:46 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 03:53:46 ========================================================= 03:53:46 EdgeX Global Pipelines Version Info 03:53:46 ========================================================= [Pipeline] libraryResource [Pipeline] sh > git rev-list --no-walk 578fb88605a7b0beb16c95e7a15e89bf8109c0df # timeout=10 03:53:47 ------------------- 03:53:47 stable info: 03:53:47 ------------------- 03:53:47 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 03:53:47 Commit SHA: 61d3a14f5ee21304eadc9c25f102bcac80e1a589 03:53:47 Message: update stable to v1.0.227 03:53:47 ------------------- 03:53:47 experimental info: 03:53:47 ------------------- 03:53:47 Commited By: **** collab-it+edgex@linuxfoundation.org 03:53:47 Commit SHA: 602d0728ebfd21a5b975e02ac0465e47e5fef8c7 03:53:47 Message: update experimental to v1.0.228 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 03:53:47 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 03:53:47 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 03:53:47 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 03:53:47 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 03:53:47 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 03:53:47 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.17 [Pipeline] echo 03:53:47 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 03:53:47 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 03:53:47 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 03:53:47 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 03:53:47 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 03:53:47 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 03:53:47 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 03:53:47 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 03:53:47 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 03:53:47 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 03:53:47 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 03:53:47 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 03:53:47 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 03:53:48 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 03:53:48 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 03:53:48 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 03:53:48 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 03:53:48 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 03:53:48 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 03:53:48 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 03:53:48 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-182 [Pipeline] echo 03:53:48 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-182 [Pipeline] echo 03:53:48 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-182 [Pipeline] echo 03:53:48 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 0e1e7071f072e9c52fdee87aa4e744db5d45758f [Pipeline] echo 03:53:48 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 0e1e707 [Pipeline] echo 03:53:48 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 03:53:48 provisioning config files... 03:53:48 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-182@tmp/config793056594591982671tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 03:53:48 ---> docker-login.sh 03:53:48 nexus3.edgexfoundry.org:10001 03:53:48 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:53:48 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:53:48 Configure a credential helper to remove this warning. See 03:53:48 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:53:48 03:53:48 Login Succeeded 03:53:48 nexus3.edgexfoundry.org:10002 03:53:49 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:53:49 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:53:49 Configure a credential helper to remove this warning. See 03:53:49 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:53:49 03:53:49 Login Succeeded 03:53:49 nexus3.edgexfoundry.org:10003 03:53:49 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:53:49 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:53:49 Configure a credential helper to remove this warning. See 03:53:49 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:53:49 03:53:49 Login Succeeded 03:53:49 nexus3.edgexfoundry.org:10004 03:53:49 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:53:49 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:53:49 Configure a credential helper to remove this warning. See 03:53:49 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:53:49 03:53:49 Login Succeeded 03:53:49 docker.io 03:53:49 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:53:49 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:53:49 Configure a credential helper to remove this warning. See 03:53:49 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:53:49 03:53:49 Login Succeeded 03:53:49 ---> docker-login.sh ends [Pipeline] } 03:53:49 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 03:53:50 + git rev-list -1 --merges 0e1e7071f072e9c52fdee87aa4e744db5d45758f~1..0e1e7071f072e9c52fdee87aa4e744db5d45758f [Pipeline] echo 03:53:50 -----------> git rev-list -1 --merges 0e1e7071f072e9c52fdee87aa4e744db5d45758f~1..0e1e7071f072e9c52fdee87aa4e744db5d45758f 0e1e7071f072e9c52fdee87aa4e744db5d45758f [false] [Pipeline] sh 03:53:50 + git log --format=format:%s -1 0e1e7071f072e9c52fdee87aa4e744db5d45758f [Pipeline] echo 03:53:50 ========================================================= 03:53:50 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 03:53:50 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 03:53:51 + git log --format=format:%s -1 0e1e7071f072e9c52fdee87aa4e744db5d45758f [Pipeline] echo 03:53:51 [semverPrep] GIT_COMMIT: 0e1e7071f072e9c52fdee87aa4e744db5d45758f, Commit Message: build(deps): Bump github.com/edgexfoundry/go-mod-core-contracts/v2 [Pipeline] echo 03:53:51 [semverPrep] This is not a build commit. [Pipeline] sh 03:53:51 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 03:53:51 + grep -v github /etc/ssh/ssh_known_hosts 03:53:51 + [ -e /tmp/ssh_known_hosts ] 03:53:51 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 03:53:51 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 03:53:51 + sudo tee -a /etc/ssh/ssh_known_hosts 03:53:51 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] sh 03:53:52 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest 03:53:52 03:53:52 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest [Pipeline] isUnix [Pipeline] sh 03:53:52 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest 03:53:52 latest: Pulling from edgex-devops/py-git-semver 03:53:52 1fe172e4850f: Pulling fs layer 03:53:52 caf521ccaac6: Pulling fs layer 03:53:52 3ead6fa29328: Pulling fs layer 03:53:52 5c2a1cbceb83: Pulling fs layer 03:53:52 a8d5f1318db7: Pulling fs layer 03:53:52 c427282e49a2: Pulling fs layer 03:53:52 1827001aaf11: Pulling fs layer 03:53:52 0714d37db230: Pulling fs layer 03:53:52 5c2a1cbceb83: Waiting 03:53:52 1827001aaf11: Waiting 03:53:52 a8d5f1318db7: Waiting 03:53:52 c427282e49a2: Waiting 03:53:52 ac28cf19c067: Pulling fs layer 03:53:52 ca983d60f3e2: Pulling fs layer 03:53:52 9f894cec8388: Pulling fs layer 03:53:52 ac28cf19c067: Waiting 03:53:52 ca983d60f3e2: Waiting 03:53:52 9f894cec8388: Waiting 03:53:52 0714d37db230: Waiting 03:53:52 caf521ccaac6: Verifying Checksum 03:53:52 caf521ccaac6: Download complete 03:53:52 5c2a1cbceb83: Verifying Checksum 03:53:52 5c2a1cbceb83: Download complete 03:53:52 a8d5f1318db7: Verifying Checksum 03:53:52 a8d5f1318db7: Download complete 03:53:52 c427282e49a2: Verifying Checksum 03:53:52 c427282e49a2: Download complete 03:53:52 3ead6fa29328: Verifying Checksum 03:53:52 3ead6fa29328: Download complete 03:53:52 0714d37db230: Download complete 03:53:52 ac28cf19c067: Verifying Checksum 03:53:52 ac28cf19c067: Download complete 03:53:52 ca983d60f3e2: Verifying Checksum 03:53:52 ca983d60f3e2: Download complete 03:53:52 9f894cec8388: Verifying Checksum 03:53:52 9f894cec8388: Download complete 03:53:52 1fe172e4850f: Verifying Checksum 03:53:52 1fe172e4850f: Download complete 03:53:52 1827001aaf11: Verifying Checksum 03:53:53 1fe172e4850f: Pull complete 03:53:54 caf521ccaac6: Pull complete 03:53:54 3ead6fa29328: Pull complete 03:53:54 5c2a1cbceb83: Pull complete 03:53:54 a8d5f1318db7: Pull complete 03:53:54 c427282e49a2: Pull complete 03:53:56 1827001aaf11: Pull complete 03:53:56 0714d37db230: Pull complete 03:53:56 ac28cf19c067: Pull complete 03:53:56 ca983d60f3e2: Pull complete 03:53:56 9f894cec8388: Pull complete 03:53:56 Digest: sha256:90e63904a1edc574c23a580e5fc31fbcdccad1501625621f67a6be262171cfee 03:53:56 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest 03:53:56 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest [Pipeline] withDockerContainer 03:53:56 prd-ubuntu20.04-docker-8c-8g-39486 does not seem to be running inside a container 03:53:56 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/gexfoundry_device-rest-go_PR-182 -v /w/workspace/gexfoundry_device-rest-go_PR-182:/w/workspace/gexfoundry_device-rest-go_PR-182:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-182@tmp:/w/workspace/gexfoundry_device-rest-go_PR-182@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest cat 03:53:58 $ docker top d91a41ca1aab367f7142cf2131a91bdd5e6940b0a58d636ca4f036a8cd981b02 -eo pid,comm 03:53:58 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). 03:53:58 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 03:53:58 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 03:53:58 [ssh-agent] Looking for ssh-agent implementation... 03:53:58 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 03:53:58 $ docker exec d91a41ca1aab367f7142cf2131a91bdd5e6940b0a58d636ca4f036a8cd981b02 ssh-agent 03:53:58 SSH_AUTH_SOCK=/tmp/ssh-PJkyuOs56ffs/agent.35 03:53:58 SSH_AGENT_PID=42 03:53:58 Running ssh-add (command line suppressed) 03:53:58 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-182@tmp/private_key_6868073714463212451.key (/w/workspace/gexfoundry_device-rest-go_PR-182@tmp/private_key_6868073714463212451.key) 03:53:58 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 03:53:59 + git tag --points-at HEAD [Pipeline] } 03:53:59 $ docker exec --env ******** --env ******** d91a41ca1aab367f7142cf2131a91bdd5e6940b0a58d636ca4f036a8cd981b02 ssh-agent -k 03:53:59 unset SSH_AUTH_SOCK; 03:53:59 unset SSH_AGENT_PID; 03:53:59 echo Agent pid 42 killed; 03:53:59 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 03:53:59 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 03:53:59 [ssh-agent] Looking for ssh-agent implementation... 03:53:59 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 03:53:59 $ docker exec d91a41ca1aab367f7142cf2131a91bdd5e6940b0a58d636ca4f036a8cd981b02 ssh-agent 03:53:59 SSH_AUTH_SOCK=/tmp/ssh-lzGMvqCEt3ng/agent.75 03:53:59 SSH_AGENT_PID=81 03:53:59 Running ssh-add (command line suppressed) 03:53:59 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-182@tmp/private_key_3137809206737296825.key (/w/workspace/gexfoundry_device-rest-go_PR-182@tmp/private_key_3137809206737296825.key) 03:53:59 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 03:54:00 + git semver init 03:54:00 2022-05-03 03:54:00,234 [run_init] DEBUG init version:0.0.0 force:False 03:54:00 2022-05-03 03:54:00,235 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/gexfoundry_device-rest-go_PR-182/.semver 03:54:00 2022-05-03 03:54:00,235 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-rest-go.git /w/workspace/gexfoundry_device-rest-go_PR-182/.semver 03:54:00 2022-05-03 03:54:00,235 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-rest-go.git', '/w/workspace/gexfoundry_device-rest-go_PR-182/.semver'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-182, universal_newlines=False, shell=None, istream=None) 03:54:01 2022-05-03 03:54:01,183 [append_file] DEBUG append to file:/w/workspace/gexfoundry_device-rest-go_PR-182/.git/info/exclude 03:54:01 2022-05-03 03:54:01,183 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/gexfoundry_device-rest-go_PR-182/.semver/PR-182 with force:False 03:54:01 2022-05-03 03:54:01,183 [write_file] DEBUG write to file:/w/workspace/gexfoundry_device-rest-go_PR-182/.semver/PR-182 03:54:01 2022-05-03 03:54:01,187 [execute] INFO git cat-file --batch-check 03:54:01 2022-05-03 03:54:01,187 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-182/.semver, universal_newlines=False, shell=None, istream=) 03:54:01 2022-05-03 03:54:01,192 [execute] INFO git cat-file --batch 03:54:01 2022-05-03 03:54:01,193 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-182/.semver, universal_newlines=False, shell=None, istream=) 03:54:01 2022-05-03 03:54:01,197 [read_version] DEBUG read version from /w/workspace/gexfoundry_device-rest-go_PR-182/.semver/PR-182 03:54:01 0.0.0 [Pipeline] } 03:54:01 $ docker exec --env ******** --env ******** d91a41ca1aab367f7142cf2131a91bdd5e6940b0a58d636ca4f036a8cd981b02 ssh-agent -k 03:54:01 unset SSH_AUTH_SOCK; 03:54:01 unset SSH_AGENT_PID; 03:54:01 echo Agent pid 81 killed; 03:54:01 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 03:54:01 + git semver [Pipeline] } 03:54:01 $ docker stop --time=1 d91a41ca1aab367f7142cf2131a91bdd5e6940b0a58d636ca4f036a8cd981b02 03:54:03 $ docker rm -f d91a41ca1aab367f7142cf2131a91bdd5e6940b0a58d636ca4f036a8cd981b02 [Pipeline] // withDockerContainer [Pipeline] sh 03:54:03 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 03:54:03 Stashed 1 file(s) [Pipeline] echo 03:54:03 [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 03:54:04 provisioning config files... 03:54:04 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-182@tmp/config4904556826571212818tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 03:54:04 ---> docker-login.sh 03:54:04 nexus3.edgexfoundry.org:10001 03:54:04 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:54:04 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:54:04 Configure a credential helper to remove this warning. See 03:54:04 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:54:04 03:54:04 Login Succeeded 03:54:04 nexus3.edgexfoundry.org:10002 03:54:04 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:54:04 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:54:04 Configure a credential helper to remove this warning. See 03:54:04 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:54:04 03:54:04 Login Succeeded 03:54:04 nexus3.edgexfoundry.org:10003 03:54:04 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:54:04 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:54:04 Configure a credential helper to remove this warning. See 03:54:04 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:54:04 03:54:04 Login Succeeded 03:54:04 nexus3.edgexfoundry.org:10004 03:54:04 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:54:04 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:54:04 Configure a credential helper to remove this warning. See 03:54:04 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:54:04 03:54:04 Login Succeeded 03:54:04 docker.io 03:54:04 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:54:05 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:54:05 Configure a credential helper to remove this warning. See 03:54:05 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:54:05 03:54:05 Login Succeeded 03:54:05 ---> docker-login.sh ends [Pipeline] } 03:54:05 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 03:54:05 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 03:54:05 ========================================================= 03:54:05 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine] 03:54:05 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 03:54:05 + 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 . 03:54:05 Sending build context to Docker daemon 10.61MB 03:54:05 Step 1/12 : ARG BASE=golang:1.17-alpine3.15 03:54:05 Step 2/12 : FROM ${BASE} AS builder 03:54:05 1.17-alpine: Pulling from edgex-devops/edgex-golang-base 03:54:05 59bf1c3509f3: Pulling fs layer 03:54:05 666ba61612fd: Pulling fs layer 03:54:05 8ed8ca486205: Pulling fs layer 03:54:05 4fe6c5a15a65: Pulling fs layer 03:54:05 22a0e8bec74d: Pulling fs layer 03:54:05 ca2b28591e48: Pulling fs layer 03:54:05 a51346096db8: Pulling fs layer 03:54:05 daebc70d1ce1: Pulling fs layer 03:54:05 0e18a0eac166: Pulling fs layer 03:54:05 4fe6c5a15a65: Waiting 03:54:05 22a0e8bec74d: Waiting 03:54:05 daebc70d1ce1: Waiting 03:54:05 ca2b28591e48: Waiting 03:54:05 0e18a0eac166: Waiting 03:54:05 a51346096db8: Waiting 03:54:05 8ed8ca486205: Verifying Checksum 03:54:05 8ed8ca486205: Download complete 03:54:05 666ba61612fd: Verifying Checksum 03:54:05 666ba61612fd: Download complete 03:54:05 22a0e8bec74d: Verifying Checksum 03:54:05 22a0e8bec74d: Download complete 03:54:05 ca2b28591e48: Verifying Checksum 03:54:05 59bf1c3509f3: Verifying Checksum 03:54:05 59bf1c3509f3: Download complete 03:54:05 a51346096db8: Verifying Checksum 03:54:05 a51346096db8: Download complete 03:54:05 daebc70d1ce1: Verifying Checksum 03:54:05 daebc70d1ce1: Download complete 03:54:05 59bf1c3509f3: Pull complete 03:54:06 666ba61612fd: Pull complete 03:54:06 8ed8ca486205: Pull complete 03:54:06 0e18a0eac166: Verifying Checksum 03:54:06 4fe6c5a15a65: Verifying Checksum 03:54:06 4fe6c5a15a65: Download complete 03:54:09 4fe6c5a15a65: Pull complete 03:54:09 22a0e8bec74d: Pull complete 03:54:09 ca2b28591e48: Pull complete 03:54:09 a51346096db8: Pull complete 03:54:10 daebc70d1ce1: Pull complete 03:54:12 0e18a0eac166: Pull complete 03:54:12 Digest: sha256:5cf2d0a306c5171eb5b3008c4b83cc7b6044f1808c238cb17927cddb93576120 03:54:12 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine 03:54:12 ---> f018257e8ee9 03:54:12 Step 3/12 : ARG MAKE='make build' 03:54:13 ---> Running in 2720d5e845d1 03:54:13 Removing intermediate container 2720d5e845d1 03:54:13 ---> 69514af6b0e5 03:54:13 Step 4/12 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 03:54:13 ---> Running in b32580e1ecef 03:54:13 Removing intermediate container b32580e1ecef 03:54:13 ---> 261c026603b5 03:54:13 Step 5/12 : ARG ALPINE_PKG_EXTRA="" 03:54:13 ---> Running in 4d7de350cff1 03:54:13 Removing intermediate container 4d7de350cff1 03:54:13 ---> b3dae63f9980 03:54:13 Step 6/12 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 03:54:13 ---> Running in 499d935a2a63 03:54:14 Removing intermediate container 499d935a2a63 03:54:14 ---> 1d927d2f5abc 03:54:14 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 03:54:14 ---> Running in b4edda9a4838 03:54:14 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 03:54:15 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 03:54:15 (1/4) Installing openssh-keygen (8.8_p1-r1) 03:54:15 (2/4) Installing libedit (20210910.3.1-r0) 03:54:15 (3/4) Installing openssh-client-common (8.8_p1-r1) 03:54:15 (4/4) Installing openssh-client-default (8.8_p1-r1) 03:54:16 Executing busybox-1.34.1-r3.trigger 03:54:16 OK: 224 MiB in 56 packages 03:54:16 Removing intermediate container b4edda9a4838 03:54:16 ---> 082f33a679ed 03:54:16 Step 8/12 : WORKDIR /device-rest-go 03:54:16 ---> Running in 52a9dee9c893 03:54:16 Removing intermediate container 52a9dee9c893 03:54:16 ---> c14b7681b029 03:54:16 Step 9/12 : COPY go.mod vendor* ./ 03:54:16 ---> 7c6c2842b908 03:54:16 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 03:54:16 ---> Running in 552628fdb9f9 03:54:18 Still waiting to schedule task 03:54:18 ‘prd-ubuntu20.04-docker-arm64-4c-16g-39491’ is offline 03:54:31 Removing intermediate container 552628fdb9f9 03:54:31 ---> 2fdbf070cff3 03:54:31 Step 11/12 : COPY . . 03:54:31 ---> aabe2dec320b 03:54:31 Step 12/12 : RUN $MAKE 03:54:31 ---> Running in aaf1790520bb 03:54:31 noop 03:54:31 Removing intermediate container aaf1790520bb 03:54:31 ---> 542e45dd7ed7 03:54:31 Successfully built 542e45dd7ed7 03:54:31 Successfully tagged ci-base-image-x86_64:latest [Pipeline] isUnix [Pipeline] sh 03:54:31 + docker inspect -f . ci-base-image-x86_64 03:54:31 . [Pipeline] withDockerContainer 03:54:32 prd-ubuntu20.04-docker-8c-8g-39486 does not seem to be running inside a container 03:54:32 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-182 -v /w/workspace/gexfoundry_device-rest-go_PR-182:/w/workspace/gexfoundry_device-rest-go_PR-182:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-182@tmp:/w/workspace/gexfoundry_device-rest-go_PR-182@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 03:54:32 $ docker top ee3592b2cf943e6d3ed6acc233a6a8952027d5d6ca6b453146a4707bacf83542 -eo pid,comm [Pipeline] { [Pipeline] sh 03:54:32 + go version 03:54:32 go version go1.17.6 linux/amd64 [Pipeline] } 03:54:32 $ docker stop --time=1 ee3592b2cf943e6d3ed6acc233a6a8952027d5d6ca6b453146a4707bacf83542 03:54:34 $ docker rm -f ee3592b2cf943e6d3ed6acc233a6a8952027d5d6ca6b453146a4707bacf83542 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 03:54:34 + docker inspect -f . ci-base-image-x86_64 03:54:34 . [Pipeline] withDockerContainer 03:54:34 prd-ubuntu20.04-docker-8c-8g-39486 does not seem to be running inside a container 03:54:34 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-182 -v /w/workspace/gexfoundry_device-rest-go_PR-182:/w/workspace/gexfoundry_device-rest-go_PR-182:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-182@tmp:/w/workspace/gexfoundry_device-rest-go_PR-182@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 03:54:35 $ docker top 61f76cccc2517cebe8cc040c5e4c24e580739e4605b5e3b19966a0842b5ff372 -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 03:54:35 + make test 03:54:35 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out ./... 03:54:35 ? github.com/edgexfoundry/device-rest-go [no test files] 03:54:45 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 03:54:45 ok github.com/edgexfoundry/device-rest-go/driver 0.015s coverage: 55.2% of statements 03:54:50 CGO_ENABLED=1 GO111MODULE=on go vet ./... 03:54:55 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 03:54:55 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 03:54:55 ./bin/test-attribution-txt.sh [Pipeline] echo 03:54:55 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 03:54:55 $ docker stop --time=1 61f76cccc2517cebe8cc040c5e4c24e580739e4605b5e3b19966a0842b5ff372 03:54:56 $ docker rm -f 61f76cccc2517cebe8cc040c5e4c24e580739e4605b5e3b19966a0842b5ff372 [Pipeline] // withDockerContainer [Pipeline] sh 03:54:57 + sudo chown -R jenkins:jenkins . [Pipeline] stash 03:54:57 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 03:54:58 + sudo chown -R jenkins:jenkins . [Pipeline] sh 03:54:58 + ls -al . 03:54:58 total 172 03:54:58 drwxrwxr-x 9 jenkins jenkins 4096 May 3 03:54 . 03:54:58 drwxrwxr-x 4 jenkins jenkins 4096 May 3 03:53 .. 03:54:58 -rw-rw-r-- 1 jenkins jenkins 151 May 3 03:53 .dockerignore 03:54:58 drwxrwxr-x 8 jenkins jenkins 4096 May 3 03:54 .git 03:54:58 drwxrwxr-x 3 jenkins jenkins 4096 May 3 03:53 .github 03:54:58 -rw-rw-r-- 1 jenkins jenkins 329 May 3 03:53 .gitignore 03:54:58 -rw-rw-r-- 1 jenkins jenkins 41 May 3 03:53 .golangci.yml 03:54:58 drwxr-xr-x 3 jenkins jenkins 4096 May 3 03:54 .semver 03:54:58 -rw-rw-r-- 1 jenkins jenkins 8463 May 3 03:53 Attribution.txt 03:54:58 -rw-rw-r-- 1 jenkins jenkins 7459 May 3 03:53 CHANGELOG.md 03:54:58 -rw-rw-r-- 1 jenkins jenkins 1672 May 3 03:53 Dockerfile 03:54:58 -rw-rw-r-- 1 jenkins jenkins 677 May 3 03:53 GOVERNANCE.md 03:54:58 -rw-rw-r-- 1 jenkins jenkins 680 May 3 03:53 Jenkinsfile 03:54:58 -rw-rw-r-- 1 jenkins jenkins 11340 May 3 03:53 LICENSE 03:54:58 -rw-rw-r-- 1 jenkins jenkins 1977 May 3 03:53 Makefile 03:54:58 -rw-rw-r-- 1 jenkins jenkins 620 May 3 03:53 OWNERS.md 03:54:58 -rw-rw-r-- 1 jenkins jenkins 8246 May 3 03:53 README.md 03:54:58 -rw-rw-r-- 1 jenkins jenkins 5 May 3 03:54 VERSION 03:54:58 drwxrwxr-x 2 jenkins jenkins 4096 May 3 03:53 bin 03:54:58 drwxrwxr-x 3 jenkins jenkins 4096 May 3 03:53 cmd 03:54:58 -rw-r--r-- 1 jenkins jenkins 9355 May 3 03:54 coverage.out 03:54:58 drwxrwxr-x 2 jenkins jenkins 4096 May 3 03:53 driver 03:54:58 -rw-rw-r-- 1 jenkins jenkins 3333 May 3 03:53 go.mod 03:54:58 -rw-rw-r-- 1 jenkins jenkins 35377 May 3 03:53 go.sum 03:54:58 drwxrwxr-x 3 jenkins jenkins 4096 May 3 03:53 snap 03:54:58 -rw-rw-r-- 1 jenkins jenkins 713 May 3 03:53 version.go [Pipeline] isUnix [Pipeline] sh 03:54:58 + 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=0e1e7071f072e9c52fdee87aa4e744db5d45758f --label arch=amd64 --label version=0.0.0 . 03:54:58 Sending build context to Docker daemon 10.62MB 03:54:58 Step 1/25 : ARG BASE=golang:1.17-alpine3.15 03:54:58 Step 2/25 : FROM ${BASE} AS builder 03:54:58 ---> 542e45dd7ed7 03:54:58 Step 3/25 : ARG MAKE='make build' 03:54:58 ---> Running in 44744e761724 03:54:59 Removing intermediate container 44744e761724 03:54:59 ---> 105a79764601 03:54:59 Step 4/25 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 03:54:59 ---> Running in 44d3b67e62e7 03:54:59 Removing intermediate container 44d3b67e62e7 03:54:59 ---> a7d62f381dce 03:54:59 Step 5/25 : ARG ALPINE_PKG_EXTRA="" 03:54:59 ---> Running in ece7f2634dfe 03:54:59 Removing intermediate container ece7f2634dfe 03:54:59 ---> a18ce96379b8 03:54:59 Step 6/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 03:54:59 ---> Running in e1bf76296684 03:55:00 Removing intermediate container e1bf76296684 03:55:00 ---> 7b423d9fffad 03:55:00 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 03:55:00 ---> Running in 52fb35150055 03:55:00 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 03:55:01 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 03:55:01 OK: 224 MiB in 56 packages 03:55:01 Removing intermediate container 52fb35150055 03:55:01 ---> cef92e56a1dd 03:55:01 Step 8/25 : WORKDIR /device-rest-go 03:55:01 ---> Running in 71c09e12e8a0 03:55:01 Removing intermediate container 71c09e12e8a0 03:55:01 ---> 1536631ba4fd 03:55:01 Step 9/25 : COPY go.mod vendor* ./ 03:55:01 ---> 5b46c8b8a526 03:55:01 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 03:55:02 ---> Running in 97adad1ee1c9 03:55:02 Removing intermediate container 97adad1ee1c9 03:55:02 ---> 7c9af33d58cd 03:55:02 Step 11/25 : COPY . . 03:55:02 ---> fefe3d184b1f 03:55:02 Step 12/25 : RUN $MAKE 03:55:02 ---> Running in 9c7d6796b613 03:55:03 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 03:55:21 Removing intermediate container 9c7d6796b613 03:55:21 ---> c366571cbcae 03:55:21 Step 13/25 : FROM alpine:3.14 03:55:21 3.14: Pulling from library/alpine 03:55:21 8663204ce13b: Pulling fs layer 03:55:22 8663204ce13b: Verifying Checksum 03:55:22 8663204ce13b: Download complete 03:55:22 8663204ce13b: Pull complete 03:55:22 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 03:55:22 Status: Downloaded newer image for alpine:3.14 03:55:22 ---> e04c818066af 03:55:22 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' 03:55:22 ---> Running in 17765ed1b4b2 03:55:22 Removing intermediate container 17765ed1b4b2 03:55:22 ---> b0327db70ec2 03:55:22 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 03:55:22 ---> Running in 010bc03f3c8c 03:55:22 Removing intermediate container 010bc03f3c8c 03:55:22 ---> 2a7a7f9248b6 03:55:22 Step 16/25 : RUN apk add --update --no-cache zeromq dumb-init 03:55:22 ---> Running in 5f0ff4cc1c8a 03:55:22 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz 03:55:22 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz 03:55:22 (1/6) Installing dumb-init (1.2.5-r1) 03:55:22 (2/6) Installing libgcc (10.3.1_git20210424-r2) 03:55:22 (3/6) Installing libsodium (1.0.18-r0) 03:55:22 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 03:55:22 (5/6) Installing libzmq (4.3.4-r0) 03:55:22 (6/6) Installing zeromq (4.3.4-r0) 03:55:22 Executing busybox-1.33.1-r7.trigger 03:55:23 OK: 8 MiB in 20 packages 03:55:23 Removing intermediate container 5f0ff4cc1c8a 03:55:23 ---> 18f70314274b 03:55:23 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 03:55:23 ---> f29b3e2fc298 03:55:23 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 03:55:23 ---> 2ef925e1f06c 03:55:23 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 03:55:24 ---> 5f134582122a 03:55:24 Step 20/25 : EXPOSE 59986 03:55:24 ---> Running in 46d03e747546 03:55:24 Removing intermediate container 46d03e747546 03:55:24 ---> b270f278852d 03:55:24 Step 21/25 : ENTRYPOINT ["/device-rest"] 03:55:24 ---> Running in c75f144682e3 03:55:24 Removing intermediate container c75f144682e3 03:55:24 ---> 6191f8ddd8e3 03:55:24 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--confdir=/res", "--registry"] 03:55:24 ---> Running in 56f13287ceb5 03:55:24 Removing intermediate container 56f13287ceb5 03:55:24 ---> 8d66552ba23a 03:55:24 Step 23/25 : LABEL arch=amd64 03:55:24 ---> Running in 5365a7711fa1 03:55:24 Removing intermediate container 5365a7711fa1 03:55:24 ---> 6bfa50260a05 03:55:24 Step 24/25 : LABEL git_sha=0e1e7071f072e9c52fdee87aa4e744db5d45758f 03:55:24 ---> Running in 53738c657235 03:55:24 Removing intermediate container 53738c657235 03:55:24 ---> 22f13965a34a 03:55:24 Step 25/25 : LABEL version=0.0.0 03:55:24 ---> Running in 0f5bc2ca9845 03:55:24 Removing intermediate container 0f5bc2ca9845 03:55:24 ---> 299b38b1a7d2 03:55:24 [Warning] One or more build-args [ARCH] were not consumed 03:55:24 Successfully built 299b38b1a7d2 03:55:24 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 03:55:25 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 03:55:25 03:55:25 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] sh 03:55:25 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 03:55:25 latest: Pulling from edgex-lftools-log-publisher 03:55:25 5eb5b503b376: Pulling fs layer 03:55:25 5c69ac0246d0: Pulling fs layer 03:55:25 ec43610c2a17: Pulling fs layer 03:55:25 3a2ae6a8a46f: Pulling fs layer 03:55:25 33b1e0a273af: Pulling fs layer 03:55:25 5d3b04190fa2: Pulling fs layer 03:55:25 2f39f015ded8: Pulling fs layer 03:55:25 3a2ae6a8a46f: Waiting 03:55:25 5d3b04190fa2: Waiting 03:55:25 2f39f015ded8: Waiting 03:55:25 33b1e0a273af: Waiting 03:55:25 5c69ac0246d0: Download complete 03:55:25 3a2ae6a8a46f: Download complete 03:55:25 ec43610c2a17: Download complete 03:55:25 5d3b04190fa2: Verifying Checksum 03:55:25 5d3b04190fa2: Download complete 03:55:25 33b1e0a273af: Verifying Checksum 03:55:25 33b1e0a273af: Download complete 03:55:25 5eb5b503b376: Verifying Checksum 03:55:25 5eb5b503b376: Download complete 03:55:26 2f39f015ded8: Download complete 03:55:27 5eb5b503b376: Pull complete 03:55:27 5c69ac0246d0: Pull complete 03:55:27 ec43610c2a17: Pull complete 03:55:27 3a2ae6a8a46f: Pull complete 03:55:27 33b1e0a273af: Pull complete 03:55:28 5d3b04190fa2: Pull complete 03:55:32 2f39f015ded8: Pull complete 03:55:32 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 03:55:32 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 03:55:32 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] withDockerContainer 03:55:32 prd-ubuntu20.04-docker-8c-8g-39486 does not seem to be running inside a container 03:55:32 $ 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-182 -v /w/workspace/gexfoundry_device-rest-go_PR-182:/w/workspace/gexfoundry_device-rest-go_PR-182:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-182@tmp:/w/workspace/gexfoundry_device-rest-go_PR-182@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 03:55:33 $ docker top a3332d7684b9a5cffd413c52863cf938541b025efe28157fbaf488a448593c94 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 03:55:34 ---> job-cost.sh 03:55:34 lf-activate-venv: SKIPPING 03:55:34 INFO: No Stack... 03:55:34 INFO: Retrieving Pricing Info for: v3-standard-8 03:55:35 INFO: Archiving Costs [Pipeline] sh 03:55:35 + cat /w/workspace/gexfoundry_device-rest-go_PR-182/archives/cost.csv 03:55:35 + cut -d, -f6 [Pipeline] lock 03:55:35 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-182-2-stack-cost] 03:55:35 Resource [jenkins-edgexfoundry-device-rest-go-PR-182-2-stack-cost] did not exist. Created. 03:55:35 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-182-2-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 03:55:35 + echo total: 0.2199999988079071 [Pipeline] stash 03:55:35 Stashed 1 file(s) [Pipeline] } 03:55:35 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-182-2-stack-cost] [Pipeline] // lock [Pipeline] } 03:55:35 $ docker stop --time=1 a3332d7684b9a5cffd413c52863cf938541b025efe28157fbaf488a448593c94 03:55:37 $ docker rm -f a3332d7684b9a5cffd413c52863cf938541b025efe28157fbaf488a448593c94 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 04:14:57 Running on prd-ubuntu20.04-docker-arm64-4c-16g-40297 in /w/workspace/gexfoundry_device-rest-go_PR-182 [Pipeline] { [Pipeline] ws 04:14:57 Running in /w/workspace/device-rest-go/2 [Pipeline] { [Pipeline] checkout 04:14:57 The recommended git tool is: git 04:15:03 using credential edgex-jenkins-ssh 04:15:03 Cloning the remote Git repository 04:15:03 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 04:15:03 > git init /w/workspace/device-rest-go/2 # timeout=10 04:15:03 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 04:15:03 > git --version # timeout=10 04:15:03 > git --version # 'git version 2.25.1' 04:15:03 using GIT_SSH to set credentials SSH Credentials for GitHub 04:15:03 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 04:15:06 Merging remotes/origin/main commit f0689e2451660e374e54247122f91e779ddae9a5 into PR head commit 0e1e7071f072e9c52fdee87aa4e744db5d45758f 04:15:05 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 04:15:06 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 04:15:06 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 04:15:06 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 04:15:06 using GIT_SSH to set credentials SSH Credentials for GitHub 04:15:06 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/182/head:refs/remotes/origin/PR-182 +refs/heads/main:refs/remotes/origin/main # timeout=10 04:15:06 > git config core.sparsecheckout # timeout=10 04:15:06 Merge succeeded, producing 0e1e7071f072e9c52fdee87aa4e744db5d45758f 04:15:06 Checking out Revision 0e1e7071f072e9c52fdee87aa4e744db5d45758f (PR-182) 04:15:06 > git checkout -f 0e1e7071f072e9c52fdee87aa4e744db5d45758f # timeout=10 04:15:06 > git remote # timeout=10 04:15:06 > git config --get remote.origin.url # timeout=10 04:15:06 using GIT_SSH to set credentials SSH Credentials for GitHub 04:15:06 > git merge f0689e2451660e374e54247122f91e779ddae9a5 # timeout=10 04:15:06 > git rev-parse HEAD^{commit} # timeout=10 04:15:06 > git config core.sparsecheckout # timeout=10 04:15:06 > git checkout -f 0e1e7071f072e9c52fdee87aa4e744db5d45758f # timeout=10 04:15:11 Commit message: "build(deps): Bump github.com/edgexfoundry/go-mod-core-contracts/v2" [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 04:15:12 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 04:15:12 % Total % Received % Xferd Average Speed Time Time Time Current 04:15:12 Dload Upload Total Spent Left Speed 04:15:12 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 11843 100 11843 0 0 210k 0 --:--:-- --:--:-- --:--:-- 214k [Pipeline] sh 04:15:12 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 04:15:13 + sudo tee /etc/docker/daemon.new 04:15:13 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 04:15:13 { 04:15:13 "registry-mirrors": [ 04:15:13 "https://nexus3.edgexfoundry.org:10001" 04:15:13 ], 04:15:13 "bip": "10.250.0.254/24", 04:15:13 "hosts": [ 04:15:13 "tcp://0.0.0.0:5555", 04:15:13 "unix:///var/run/docker.sock" 04:15:13 ], 04:15:13 "mtu": 1458, 04:15:13 "selinux-enabled": true, 04:15:13 "seccomp-profile": "/etc/docker/seccomp.json" 04:15:13 } [Pipeline] sh 04:15:13 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 04:15:14 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 04:15:32 provisioning config files... 04:15:32 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/2@tmp/config3567501831611975436tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 04:15:32 ---> docker-login.sh 04:15:32 nexus3.edgexfoundry.org:10001 04:15:33 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:15:34 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:15:34 Configure a credential helper to remove this warning. See 04:15:34 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:15:34 04:15:34 Login Succeeded 04:15:34 nexus3.edgexfoundry.org:10002 04:15:34 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:15:34 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:15:34 Configure a credential helper to remove this warning. See 04:15:34 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:15:34 04:15:34 Login Succeeded 04:15:34 nexus3.edgexfoundry.org:10003 04:15:35 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:15:35 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:15:35 Configure a credential helper to remove this warning. See 04:15:35 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:15:35 04:15:35 Login Succeeded 04:15:35 nexus3.edgexfoundry.org:10004 04:15:36 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:15:36 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:15:36 Configure a credential helper to remove this warning. See 04:15:36 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:15:36 04:15:36 Login Succeeded 04:15:36 docker.io 04:15:38 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:15:38 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:15:38 Configure a credential helper to remove this warning. See 04:15:38 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:15:38 04:15:38 Login Succeeded 04:15:38 ---> docker-login.sh ends [Pipeline] } 04:15:38 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 04:15:39 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 04:15:39 ========================================================= 04:15:39 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine] 04:15:39 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 04:15:40 + 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 . 04:15:40 Sending build context to Docker daemon 130kB 04:15:41 Step 1/12 : ARG BASE=golang:1.17-alpine3.15 04:15:41 Step 2/12 : FROM ${BASE} AS builder 04:15:41 1.17-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 04:15:41 9b3977197b4f: Pulling fs layer 04:15:41 1a89e8eeedd5: Pulling fs layer 04:15:41 94645a83ff95: Pulling fs layer 04:15:41 3f3a8bcf1eab: Pulling fs layer 04:15:41 0c92f367c5e7: Pulling fs layer 04:15:41 3096ccb668a1: Pulling fs layer 04:15:41 e8cf19c19ddd: Pulling fs layer 04:15:41 a4caa8a26152: Pulling fs layer 04:15:41 3f3a8bcf1eab: Waiting 04:15:41 0c92f367c5e7: Waiting 04:15:41 3096ccb668a1: Waiting 04:15:41 e8cf19c19ddd: Waiting 04:15:41 a4caa8a26152: Waiting 04:15:41 94645a83ff95: Verifying Checksum 04:15:41 94645a83ff95: Download complete 04:15:41 1a89e8eeedd5: Verifying Checksum 04:15:41 1a89e8eeedd5: Download complete 04:15:41 0c92f367c5e7: Download complete 04:15:41 3096ccb668a1: Verifying Checksum 04:15:41 3096ccb668a1: Download complete 04:15:41 9b3977197b4f: Verifying Checksum 04:15:41 9b3977197b4f: Download complete 04:15:41 e8cf19c19ddd: Verifying Checksum 04:15:41 e8cf19c19ddd: Download complete 04:15:42 9b3977197b4f: Pull complete 04:15:44 1a89e8eeedd5: Pull complete 04:15:44 a4caa8a26152: Verifying Checksum 04:15:44 a4caa8a26152: Download complete 04:15:44 94645a83ff95: Pull complete 04:15:45 3f3a8bcf1eab: Verifying Checksum 04:15:45 3f3a8bcf1eab: Download complete 04:16:01 3f3a8bcf1eab: Pull complete 04:16:01 0c92f367c5e7: Pull complete 04:16:01 3096ccb668a1: Pull complete 04:16:01 e8cf19c19ddd: Pull complete 04:16:06 a4caa8a26152: Pull complete 04:16:06 Digest: sha256:b3ad895ecde34a7521bb8912598475bc58d052e1c2c58d00df7f0fe54a102a46 04:16:06 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine 04:16:06 ---> 725f1c02e7f9 04:16:06 Step 3/12 : ARG MAKE='make build' 04:16:08 ---> Running in 3f17f2a60749 04:16:09 Removing intermediate container 3f17f2a60749 04:16:09 ---> ba8740d5c080 04:16:09 Step 4/12 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 04:16:09 ---> Running in d805c9bbf474 04:16:09 Removing intermediate container d805c9bbf474 04:16:09 ---> c0eaa20623c2 04:16:09 Step 5/12 : ARG ALPINE_PKG_EXTRA="" 04:16:09 ---> Running in 15ba71a24282 04:16:10 Removing intermediate container 15ba71a24282 04:16:10 ---> e2b0d30ed009 04:16:10 Step 6/12 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 04:16:10 ---> Running in 52a701947362 04:16:12 Removing intermediate container 52a701947362 04:16:12 ---> f5ed52e429e2 04:16:12 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 04:16:12 ---> Running in 40e9d41933af 04:16:13 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 04:16:14 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 04:16:16 (1/4) Installing openssh-keygen (8.8_p1-r1) 04:16:16 (2/4) Installing libedit (20210910.3.1-r0) 04:16:16 (3/4) Installing openssh-client-common (8.8_p1-r1) 04:16:16 (4/4) Installing openssh-client-default (8.8_p1-r1) 04:16:16 Executing busybox-1.34.1-r3.trigger 04:16:16 OK: 224 MiB in 56 packages 04:16:18 Removing intermediate container 40e9d41933af 04:16:18 ---> a10bf30526bb 04:16:18 Step 8/12 : WORKDIR /device-rest-go 04:16:18 ---> Running in 22c0bd10d890 04:16:18 Removing intermediate container 22c0bd10d890 04:16:18 ---> 49ef1d3d2b2b 04:16:18 Step 9/12 : COPY go.mod vendor* ./ 04:16:19 ---> 1f60142d9f04 04:16:19 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 04:16:19 ---> Running in 9315a140c0bc 04:17:15 Removing intermediate container 9315a140c0bc 04:17:15 ---> fa7419379751 04:17:15 Step 11/12 : COPY . . 04:17:15 ---> 96750611376b 04:17:15 Step 12/12 : RUN $MAKE 04:17:15 ---> Running in 5944e14a7cc0 04:17:15 noop 04:17:15 Removing intermediate container 5944e14a7cc0 04:17:15 ---> 49bb10404e32 04:17:15 Successfully built 49bb10404e32 04:17:15 Successfully tagged ci-base-image-arm64:latest [Pipeline] isUnix [Pipeline] sh 04:17:16 + docker inspect -f . ci-base-image-arm64 04:17:16 . [Pipeline] withDockerContainer 04:17:16 prd-ubuntu20.04-docker-arm64-4c-16g-40297 does not seem to be running inside a container 04:17:16 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/2 -v /w/workspace/device-rest-go/2:/w/workspace/device-rest-go/2:rw,z -v /w/workspace/device-rest-go/2@tmp:/w/workspace/device-rest-go/2@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 04:17:18 $ docker top 226b97fc9ae99c8ea9da5dbe500c41e58b5812579f57cbaa5c87536e30039c5c -eo pid,comm [Pipeline] { [Pipeline] sh 04:17:19 + go version 04:17:19 go version go1.17.6 linux/arm64 [Pipeline] } 04:17:19 $ docker stop --time=1 226b97fc9ae99c8ea9da5dbe500c41e58b5812579f57cbaa5c87536e30039c5c 04:17:20 $ docker rm -f 226b97fc9ae99c8ea9da5dbe500c41e58b5812579f57cbaa5c87536e30039c5c [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 04:17:21 + docker inspect -f . ci-base-image-arm64 04:17:21 . [Pipeline] withDockerContainer 04:17:21 prd-ubuntu20.04-docker-arm64-4c-16g-40297 does not seem to be running inside a container 04:17:21 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/2 -v /w/workspace/device-rest-go/2:/w/workspace/device-rest-go/2:rw,z -v /w/workspace/device-rest-go/2@tmp:/w/workspace/device-rest-go/2@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 04:17:23 $ docker top b8e1e2038106cd4b237f2a488cede7914c1bd82226f8263771cdd140829f58b1 -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 04:17:24 + make test 04:17:24 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out ./... 04:17:26 ? github.com/edgexfoundry/device-rest-go [no test files] 04:19:18 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 04:19:18 ok github.com/edgexfoundry/device-rest-go/driver 0.080s coverage: 55.2% of statements 04:19:18 WARNING: Linting skipped (not on x86_64 or linter not installed) 04:19:18 CGO_ENABLED=1 GO111MODULE=on go vet ./... 04:19:40 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 04:19:40 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 04:19:40 ./bin/test-attribution-txt.sh [Pipeline] echo 04:19:44 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 04:19:44 $ docker stop --time=1 b8e1e2038106cd4b237f2a488cede7914c1bd82226f8263771cdd140829f58b1 04:19:46 $ docker rm -f b8e1e2038106cd4b237f2a488cede7914c1bd82226f8263771cdd140829f58b1 [Pipeline] // withDockerContainer [Pipeline] sh 04:19:47 + sudo chown -R jenkins:jenkins . [Pipeline] stash 04:19:47 Warning: overwriting stash ‘coverage-report’ 04:19:47 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 04:19:48 + sudo chown -R jenkins:jenkins . [Pipeline] sh 04:19:48 + ls -al . 04:19:48 total 168 04:19:48 drwxrwxr-x 8 jenkins jenkins 4096 May 3 04:19 . 04:19:48 drwxrwxr-x 4 jenkins jenkins 4096 May 3 04:15 .. 04:19:48 -rw-rw-r-- 1 jenkins jenkins 151 May 3 04:15 .dockerignore 04:19:48 drwxrwxr-x 8 jenkins jenkins 4096 May 3 04:15 .git 04:19:48 drwxrwxr-x 3 jenkins jenkins 4096 May 3 04:15 .github 04:19:48 -rw-rw-r-- 1 jenkins jenkins 329 May 3 04:15 .gitignore 04:19:48 -rw-rw-r-- 1 jenkins jenkins 41 May 3 04:15 .golangci.yml 04:19:48 -rw-rw-r-- 1 jenkins jenkins 8463 May 3 04:15 Attribution.txt 04:19:48 -rw-rw-r-- 1 jenkins jenkins 7459 May 3 04:15 CHANGELOG.md 04:19:48 -rw-rw-r-- 1 jenkins jenkins 1672 May 3 04:15 Dockerfile 04:19:48 -rw-rw-r-- 1 jenkins jenkins 677 May 3 04:15 GOVERNANCE.md 04:19:48 -rw-rw-r-- 1 jenkins jenkins 680 May 3 04:15 Jenkinsfile 04:19:48 -rw-rw-r-- 1 jenkins jenkins 11340 May 3 04:15 LICENSE 04:19:48 -rw-rw-r-- 1 jenkins jenkins 1977 May 3 04:15 Makefile 04:19:48 -rw-rw-r-- 1 jenkins jenkins 620 May 3 04:15 OWNERS.md 04:19:48 -rw-rw-r-- 1 jenkins jenkins 8246 May 3 04:15 README.md 04:19:48 -rw-rw-r-- 1 jenkins jenkins 5 May 3 03:54 VERSION 04:19:48 drwxrwxr-x 2 jenkins jenkins 4096 May 3 04:15 bin 04:19:48 drwxrwxr-x 3 jenkins jenkins 4096 May 3 04:15 cmd 04:19:48 -rw-r--r-- 1 jenkins jenkins 9355 May 3 04:19 coverage.out 04:19:48 drwxrwxr-x 2 jenkins jenkins 4096 May 3 04:15 driver 04:19:48 -rw-rw-r-- 1 jenkins jenkins 3333 May 3 04:15 go.mod 04:19:48 -rw-rw-r-- 1 jenkins jenkins 35377 May 3 04:15 go.sum 04:19:48 drwxrwxr-x 3 jenkins jenkins 4096 May 3 04:15 snap 04:19:48 -rw-rw-r-- 1 jenkins jenkins 713 May 3 04:15 version.go [Pipeline] isUnix [Pipeline] sh 04:19:48 + 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=0e1e7071f072e9c52fdee87aa4e744db5d45758f --label arch=arm64 --label version=0.0.0 . 04:19:48 Sending build context to Docker daemon 140.3kB 04:19:49 Step 1/25 : ARG BASE=golang:1.17-alpine3.15 04:19:49 Step 2/25 : FROM ${BASE} AS builder 04:19:49 ---> 49bb10404e32 04:19:49 Step 3/25 : ARG MAKE='make build' 04:19:49 ---> Running in df44b35fe9e4 04:19:49 Removing intermediate container df44b35fe9e4 04:19:49 ---> aa4c925f43fe 04:19:49 Step 4/25 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 04:19:49 ---> Running in 49ac8a3c1f1a 04:19:49 Removing intermediate container 49ac8a3c1f1a 04:19:49 ---> d5241b88e1e7 04:19:49 Step 5/25 : ARG ALPINE_PKG_EXTRA="" 04:19:49 ---> Running in db11dd2d823a 04:19:50 Removing intermediate container db11dd2d823a 04:19:50 ---> c2b5c7e7f3a7 04:19:50 Step 6/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 04:19:50 ---> Running in 2490ed4ff156 04:19:51 Removing intermediate container 2490ed4ff156 04:19:51 ---> 92c44ee6394b 04:19:51 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 04:19:52 ---> Running in 147407e08044 04:19:53 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 04:19:54 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 04:19:55 OK: 224 MiB in 56 packages 04:19:55 Removing intermediate container 147407e08044 04:19:55 ---> 334c35cd4a64 04:19:55 Step 8/25 : WORKDIR /device-rest-go 04:19:56 ---> Running in 631b25bf01fc 04:19:56 Removing intermediate container 631b25bf01fc 04:19:56 ---> 256687f92958 04:19:56 Step 9/25 : COPY go.mod vendor* ./ 04:19:57 ---> b0df4211e254 04:19:57 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 04:19:57 ---> Running in 2e9ff36deae2 04:19:58 Removing intermediate container 2e9ff36deae2 04:19:58 ---> 7389e003a057 04:19:58 Step 11/25 : COPY . . 04:19:59 ---> d9129767a8e5 04:19:59 Step 12/25 : RUN $MAKE 04:19:59 ---> Running in 2c36af333c4e 04:20:00 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 04:22:22 Removing intermediate container 2c36af333c4e 04:22:22 ---> 4a7d43084232 04:22:22 Step 13/25 : FROM alpine:3.14 04:22:22 3.14: Pulling from library/alpine 04:22:22 455c02918c45: Pulling fs layer 04:22:22 455c02918c45: Verifying Checksum 04:22:22 455c02918c45: Download complete 04:22:22 455c02918c45: Pull complete 04:22:22 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 04:22:22 Status: Downloaded newer image for alpine:3.14 04:22:22 ---> ac73e934f311 04:22:22 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' 04:22:22 ---> Running in dfb7d8e84e89 04:22:22 Removing intermediate container dfb7d8e84e89 04:22:22 ---> 22959555db5f 04:22:22 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 04:22:22 ---> Running in 59f1337d9201 04:22:22 Removing intermediate container 59f1337d9201 04:22:22 ---> c810a2e8a9f2 04:22:22 Step 16/25 : RUN apk add --update --no-cache zeromq dumb-init 04:22:22 ---> Running in bfc82dede21e 04:22:22 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/aarch64/APKINDEX.tar.gz 04:22:22 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/aarch64/APKINDEX.tar.gz 04:22:23 (1/6) Installing dumb-init (1.2.5-r1) 04:22:23 (2/6) Installing libgcc (10.3.1_git20210424-r2) 04:22:23 (3/6) Installing libsodium (1.0.18-r0) 04:22:23 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 04:22:23 (5/6) Installing libzmq (4.3.4-r0) 04:22:23 (6/6) Installing zeromq (4.3.4-r0) 04:22:23 Executing busybox-1.33.1-r7.trigger 04:22:23 OK: 8 MiB in 20 packages 04:22:24 Removing intermediate container bfc82dede21e 04:22:24 ---> f2b141b3337a 04:22:24 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 04:22:26 ---> ee911e206bec 04:22:26 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 04:22:26 ---> 8d18b4e04f7f 04:22:26 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 04:22:27 ---> 0e4582373c49 04:22:27 Step 20/25 : EXPOSE 59986 04:22:27 ---> Running in a0818260fdb5 04:22:27 Removing intermediate container a0818260fdb5 04:22:27 ---> 6bb046ca99f5 04:22:27 Step 21/25 : ENTRYPOINT ["/device-rest"] 04:22:28 ---> Running in 8052a12461be 04:22:28 Removing intermediate container 8052a12461be 04:22:28 ---> e5f44ccc1a6c 04:22:28 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--confdir=/res", "--registry"] 04:22:28 ---> Running in 25c82f65658f 04:22:28 Removing intermediate container 25c82f65658f 04:22:28 ---> 97db7a57345d 04:22:28 Step 23/25 : LABEL arch=arm64 04:22:28 ---> Running in b970a96eac46 04:22:29 Removing intermediate container b970a96eac46 04:22:29 ---> 85ead7348074 04:22:29 Step 24/25 : LABEL git_sha=0e1e7071f072e9c52fdee87aa4e744db5d45758f 04:22:29 ---> Running in 5294fecc81fd 04:22:29 Removing intermediate container 5294fecc81fd 04:22:29 ---> a589613fe999 04:22:29 Step 25/25 : LABEL version=0.0.0 04:22:29 ---> Running in 7db08858cadf 04:22:30 Removing intermediate container 7db08858cadf 04:22:30 ---> 026a5095fc95 04:22:30 [Warning] One or more build-args [ARCH] were not consumed 04:22:30 Successfully built 026a5095fc95 04:22:30 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 04:22:30 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 04:22:30 04:22:30 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] sh 04:22:30 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 04:22:31 arm64: Pulling from edgex-lftools-log-publisher 04:22:31 8998bd30e6a1: Pulling fs layer 04:22:31 04944245beec: Pulling fs layer 04:22:31 699f458cf7ca: Pulling fs layer 04:22:31 765212b225bb: Pulling fs layer 04:22:31 f23df028b6ca: Pulling fs layer 04:22:31 d65c8cfc05b1: Pulling fs layer 04:22:31 2437ff75d9bd: Pulling fs layer 04:22:31 f23df028b6ca: Waiting 04:22:31 765212b225bb: Waiting 04:22:31 d65c8cfc05b1: Waiting 04:22:31 2437ff75d9bd: Waiting 04:22:31 04944245beec: Verifying Checksum 04:22:31 04944245beec: Download complete 04:22:31 765212b225bb: Verifying Checksum 04:22:31 765212b225bb: Download complete 04:22:31 f23df028b6ca: Verifying Checksum 04:22:31 f23df028b6ca: Download complete 04:22:31 d65c8cfc05b1: Verifying Checksum 04:22:31 d65c8cfc05b1: Download complete 04:22:31 699f458cf7ca: Verifying Checksum 04:22:31 699f458cf7ca: Download complete 04:22:31 8998bd30e6a1: Verifying Checksum 04:22:31 8998bd30e6a1: Download complete 04:22:34 2437ff75d9bd: Verifying Checksum 04:22:34 2437ff75d9bd: Download complete 04:22:35 8998bd30e6a1: Pull complete 04:22:36 04944245beec: Pull complete 04:22:37 699f458cf7ca: Pull complete 04:22:38 765212b225bb: Pull complete 04:22:38 f23df028b6ca: Pull complete 04:22:38 d65c8cfc05b1: Pull complete 04:22:53 2437ff75d9bd: Pull complete 04:22:53 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 04:22:53 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 04:22:53 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] withDockerContainer 04:22:54 prd-ubuntu20.04-docker-arm64-4c-16g-40297 does not seem to be running inside a container 04:22:54 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/device-rest-go/2 -v /w/workspace/device-rest-go/2:/w/workspace/device-rest-go/2:rw,z -v /w/workspace/device-rest-go/2@tmp:/w/workspace/device-rest-go/2@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 04:22:57 $ docker top d6c2ca4d5ad0e6f83ee016ed53b3399dd437f8c50d80fada5a721ec9f3174088 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 04:22:58 ---> job-cost.sh 04:22:58 lf-activate-venv: SKIPPING 04:22:58 INFO: No Stack... 04:22:58 INFO: Retrieving Pricing Info for: v3-standard-4 04:22:59 INFO: Archiving Costs [Pipeline] sh 04:23:00 + cat /w/workspace/device-rest-go/2/archives/cost.csv 04:23:00 + cut -d, -f6 [Pipeline] lock 04:23:00 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-182-2-stack-cost] 04:23:00 Resource [jenkins-edgexfoundry-device-rest-go-PR-182-2-stack-cost] did not exist. Created. 04:23:00 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-182-2-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 04:23:01 /w/workspace/device-rest-go/2@tmp/durable-c51dc70d/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 04:23:01 + echo total: 0.10999999940395355 [Pipeline] stash 04:23:01 Warning: overwriting stash ‘stack-cost’ 04:23:01 Stashed 1 file(s) [Pipeline] } 04:23:01 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-182-2-stack-cost] [Pipeline] // lock [Pipeline] } 04:23:01 $ docker stop --time=1 d6c2ca4d5ad0e6f83ee016ed53b3399dd437f8c50d80fada5a721ec9f3174088 04:23:03 $ docker rm -f d6c2ca4d5ad0e6f83ee016ed53b3399dd437f8c50d80fada5a721ec9f3174088 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // ws [Pipeline] } [Pipeline] // node [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // parallel [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (CodeCov) [Pipeline] unstash [Pipeline] configFileProvider 04:23:03 provisioning config files... 04:23:03 copy managed file [device-rest-go-codecov-token] to file:/w/workspace/gexfoundry_device-rest-go_PR-182@tmp/config2879776646204316367tmp [Pipeline] { [Pipeline] sh 04:23:04 + set +x 04:23:04 + curl -s https://codecov.io/bash 04:23:04 + bash -s -- 04:23:04 04:23:04 _____ _ 04:23:04 / ____| | | 04:23:04 | | ___ __| | ___ ___ _____ __ 04:23:04 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 04:23:04 | |___| (_) | (_| | __/ (_| (_) \ V / 04:23:04 \_____\___/ \__,_|\___|\___\___/ \_/ 04:23:04 Bash-1.0.6 04:23:04 04:23:04 04:23:04 ==> git version 2.25.1 found 04:23:04 ==> curl 7.68.0 (x86_64-pc-linux-gnu) libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3 04:23:04 Release-Date: 2020-01-08 04:23:04 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 04:23:04 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 04:23:04 ==> Jenkins CI detected. 04:23:04 current dir:  /w/workspace/gexfoundry_device-rest-go_PR-182 04:23:04 project root: . 04:23:04 --> token set from env 04:23:04 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 04:23:04 ==> Running gcov in . (disable via -X gcov) 04:23:04 ==> Python coveragepy not found 04:23:04 ==> Searching for coverage reports in: 04:23:04 + . 04:23:04 -> Found 1 reports 04:23:04 ==> Detecting git/mercurial file structure 04:23:04 ==> Reading reports 04:23:04 + ./coverage.out bytes=9355 04:23:04 ==> Appending adjustments 04:23:04 https://docs.codecov.io/docs/fixing-reports 04:23:04 + Found adjustments 04:23:04 ==> Gzipping contents 04:23:04 4.0K /tmp/codecov.1CjoTm.gz 04:23:04 ==> Uploading reports 04:23:04 url: https://codecov.io 04:23:04 query: branch=PR-182&commit=0e1e7071f072e9c52fdee87aa4e744db5d45758f&build=2&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-182%2F2%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=182&job=&cmd_args= 04:23:04 -> Pinging Codecov 04:23:04 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=c51feb23-73ac-4f49-b3d1-d26df23137db&branch=PR-182&commit=0e1e7071f072e9c52fdee87aa4e744db5d45758f&build=2&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-182%2F2%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=182&job=&cmd_args= 04:23:04 -> Uploading to 04:23:04 https://storage.googleapis.com/codecov/v4/raw/2022-05-03/4E5D53B4F1F92C436F7061BF334D961C/0e1e7071f072e9c52fdee87aa4e744db5d45758f/07607941-3ffb-4b90-a435-b9508c9eeb94.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20220503%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20220503T042304Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=12284e61a06d62ed591885650b7d438f48af57258097c9f3fddc175f185c94b1 04:23:04 % Total % Received % Xferd Average Speed Time Time Time Current 04:23:04 Dload Upload Total Spent Left Speed 04:23:05 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 1806 0 0 100 1806 0 8724 --:--:-- --:--:-- --:--:-- 8724 04:23:05 -> Reports have been successfully queued for processing at https://codecov.io/github/edgexfoundry/device-rest-go/commit/0e1e7071f072e9c52fdee87aa4e744db5d45758f [Pipeline] } 04:23:05 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Snyk Dependency Scan) Stage "Snyk Dependency Scan" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Archive Prep) Stage "Archive Prep" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Publish Swagger) Stage "Publish Swagger" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Semver) Stage "Semver" skipped due to when conditional [Pipeline] stage [Pipeline] { (Tag) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Pre-Release Version) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Experimental Tag) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Stable (Named) Tag) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Declarative: Post Actions) [Pipeline] stage [Pipeline] { (LF Post Build Actions) [Pipeline] sh 04:23:05 + [ -d /w/workspace/gexfoundry_device-rest-go_PR-182/archives ] 04:23:05 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-182/archives 04:23:05 total 16 04:23:05 drwxr-xr-x 3 root root 4096 May 3 03:55 . 04:23:05 drwxrwxr-x 10 jenkins jenkins 4096 May 3 03:55 .. 04:23:05 drwxr-xr-x 2 root root 4096 May 3 03:55 cost 04:23:05 -rw-r--r-- 1 root root 85 May 3 03:55 cost.csv 04:23:05 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-rest-go_PR-182/archives 04:23:05 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-182/archives 04:23:05 total 16 04:23:05 drwxr-xr-x 3 jenkins jenkins 4096 May 3 03:55 . 04:23:05 drwxrwxr-x 10 jenkins jenkins 4096 May 3 03:55 .. 04:23:05 drwxr-xr-x 2 jenkins jenkins 4096 May 3 03:55 cost 04:23:05 -rw-r--r-- 1 jenkins jenkins 85 May 3 03:55 cost.csv [Pipeline] libraryResource [Pipeline] sh 04:23:05 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 04:23:06 ---> package-listing.sh 04:23:06 ++ facter osfamily 04:23:06 ++ tr '[:upper:]' '[:lower:]' 04:23:07 + OS_FAMILY=debian 04:23:07 + workspace=/w/workspace/gexfoundry_device-rest-go_PR-182 04:23:07 + START_PACKAGES=/tmp/packages_start.txt 04:23:07 + END_PACKAGES=/tmp/packages_end.txt 04:23:07 + DIFF_PACKAGES=/tmp/packages_diff.txt 04:23:07 + PACKAGES=/tmp/packages_start.txt 04:23:07 + '[' /w/workspace/gexfoundry_device-rest-go_PR-182 ']' 04:23:07 + PACKAGES=/tmp/packages_end.txt 04:23:07 + case "${OS_FAMILY}" in 04:23:07 + dpkg -l 04:23:07 + grep '^ii' 04:23:07 + '[' -f /tmp/packages_start.txt ']' 04:23:07 + '[' -f /tmp/packages_end.txt ']' 04:23:07 + diff /tmp/packages_start.txt /tmp/packages_end.txt 04:23:07 + '[' /w/workspace/gexfoundry_device-rest-go_PR-182 ']' 04:23:07 + mkdir -p /w/workspace/gexfoundry_device-rest-go_PR-182/archives/ 04:23:07 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/gexfoundry_device-rest-go_PR-182/archives/ [Pipeline] echo 04:23:07 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-182/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 04:23:07 + facter operatingsystem [Pipeline] isUnix [Pipeline] sh 04:23:07 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 04:23:07 . [Pipeline] withDockerContainer 04:23:08 prd-ubuntu20.04-docker-8c-8g-39486 does not seem to be running inside a container 04:23:08 $ 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-182/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-182 -v /w/workspace/gexfoundry_device-rest-go_PR-182:/w/workspace/gexfoundry_device-rest-go_PR-182:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-182@tmp:/w/workspace/gexfoundry_device-rest-go_PR-182@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 04:23:08 $ docker top 66fc2780bd3e429a19198bd1cdc6f40f1461b939b6692417e2e2fad28405ae77 -eo pid,comm [Pipeline] { [Pipeline] sh 04:23:08 + touch /tmp/pre-build-complete [Pipeline] sh 04:23:08 + mkdir -p /var/log/sysstat [Pipeline] sh 04:23:09 + ls /var/log/sa-host 04:23:09 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 04:23:09 provisioning config files... 04:23:09 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-182@tmp/config8158665859094516503tmp [Pipeline] { [Pipeline] echo 04:23:09 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 04:23:09 ---> create-netrc.sh [Pipeline] } 04:23:09 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 04:23:09 ---> python-tools-install.sh [Pipeline] echo 04:23:09 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 04:23:10 ---> sudo-logs.sh 04:23:10 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 04:23:10 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 04:23:10 ---> job-cost.sh 04:23:10 lf-activate-venv: SKIPPING 04:23:10 DEBUG: total: 0.2199999988079071 04:23:10 INFO: Retrieving Stack Cost... 04:23:10 INFO: Retrieving Pricing Info for: v3-standard-8 04:23:11 INFO: Archiving Costs [Pipeline] echo 04:23:11 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 04:23:11 ---> logs-deploy.sh 04:23:11 lf-activate-venv: SKIPPING 04:23:11 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-182/2 04:23:11 INFO: archiving workspace using pattern(s): 04:23:12 Archives upload complete. 04:23:12 INFO: archiving logs to Nexus