Pull request #185 updated Connecting to https://api.github.com using edgex-jenkins github personal access token Connecting to https://api.github.com to check permissions of obtain list of jpwhitemn for edgexfoundry/device-rest-go Obtained Jenkinsfile from cb582138bc70d2802fb3d94b01a10ce47840d4ce+1b7989097685cbbb7d11325d5e96f20d406e46c7 (1915c10bc127ffd63e37ca4dfa0c1139762778a1) 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-ssh5866237538116487303.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-ssh15768748252864932614.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-185/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-185/workspace@libs/edgex-global-pipelines@tmp/jenkins-gitclient-ssh3992512495003802204.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-ssh9976134688330779736.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-185/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-185/workspace@libs/lf-pipelines@tmp/jenkins-gitclient-ssh9343091255725960412.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 Waiting for next available executor on ‘ubuntu20.04-docker-8c-8g’ Running on prd-ubuntu20.04-docker-8c-8g-41439 in /w/workspace/gexfoundry_device-rest-go_PR-185 [Pipeline] { [Pipeline] stage [Pipeline] { (Declarative: Checkout SCM) [Pipeline] checkout The recommended git tool is: git using credential edgex-jenkins-ssh Cloning the remote Git repository Cloning repository git@github.com:edgexfoundry/device-rest-go.git > git init /w/workspace/gexfoundry_device-rest-go_PR-185 # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git > git --version # timeout=10 > git --version # 'git version 2.25.1' using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 Merging remotes/origin/main commit 1b7989097685cbbb7d11325d5e96f20d406e46c7 into PR head commit cb582138bc70d2802fb3d94b01a10ce47840d4ce Merge succeeded, producing cb582138bc70d2802fb3d94b01a10ce47840d4ce Checking out Revision cb582138bc70d2802fb3d94b01a10ce47840d4ce (PR-185) > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/185/head:refs/remotes/origin/PR-185 +refs/heads/main:refs/remotes/origin/main # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f cb582138bc70d2802fb3d94b01a10ce47840d4ce # timeout=10 > git remote # timeout=10 > git config --get remote.origin.url # timeout=10 using GIT_SSH to set credentials SSH Credentials for GitHub > git merge 1b7989097685cbbb7d11325d5e96f20d406e46c7 # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f cb582138bc70d2802fb3d94b01a10ce47840d4ce # timeout=10 Commit message: "docs: additions to CHANGELOG" > git rev-list --no-walk 7cdae81832caa7ff51aa672536335ab33271aca3 # timeout=10 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 01:18:48 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 01:18:48 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 01:18:48 ========================================================= 01:18:48 EdgeX Global Pipelines Version Info 01:18:48 ========================================================= [Pipeline] libraryResource [Pipeline] sh 01:18:49 ------------------- 01:18:49 stable info: 01:18:49 ------------------- 01:18:49 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 01:18:49 Commit SHA: 61d3a14f5ee21304eadc9c25f102bcac80e1a589 01:18:49 Message: update stable to v1.0.227 01:18:50 ------------------- 01:18:50 experimental info: 01:18:50 ------------------- 01:18:50 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 01:18:50 Commit SHA: 821e2ffd3fa43eddc5db18cf710cdace1a36094c 01:18:50 Message: update experimental to v1.0.229 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 01:18:50 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 01:18:50 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 01:18:50 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 01:18:50 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 01:18:50 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 01:18:50 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.17 [Pipeline] echo 01:18:50 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 01:18:50 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 01:18:50 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 01:18:50 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 01:18:50 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 01:18:50 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 01:18:50 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 01:18:50 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 01:18:50 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 01:18:50 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 01:18:50 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 01:18:50 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 01:18:50 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 01:18:50 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 01:18:50 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 01:18:50 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 01:18:50 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 01:18:50 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 01:18:50 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 01:18:50 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 01:18:50 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-185 [Pipeline] echo 01:18:50 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-185 [Pipeline] echo 01:18:50 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-185 [Pipeline] echo 01:18:50 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = cb582138bc70d2802fb3d94b01a10ce47840d4ce [Pipeline] echo 01:18:50 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = cb58213 [Pipeline] echo 01:18:50 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 01:18:50 provisioning config files... 01:18:50 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-185@tmp/config1455250795918096645tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 01:18:51 ---> docker-login.sh 01:18:51 nexus3.edgexfoundry.org:10001 01:18:51 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 01:18:51 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 01:18:51 Configure a credential helper to remove this warning. See 01:18:51 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 01:18:51 01:18:51 Login Succeeded 01:18:51 nexus3.edgexfoundry.org:10002 01:18:51 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 01:18:51 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 01:18:51 Configure a credential helper to remove this warning. See 01:18:51 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 01:18:51 01:18:51 Login Succeeded 01:18:51 nexus3.edgexfoundry.org:10003 01:18:51 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 01:18:51 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 01:18:51 Configure a credential helper to remove this warning. See 01:18:51 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 01:18:51 01:18:51 Login Succeeded 01:18:51 nexus3.edgexfoundry.org:10004 01:18:51 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 01:18:51 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 01:18:51 Configure a credential helper to remove this warning. See 01:18:51 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 01:18:51 01:18:51 Login Succeeded 01:18:51 docker.io 01:18:52 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 01:18:52 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 01:18:52 Configure a credential helper to remove this warning. See 01:18:52 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 01:18:52 01:18:52 Login Succeeded 01:18:52 ---> docker-login.sh ends [Pipeline] } 01:18:52 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 01:18:52 + git rev-list -1 --merges cb582138bc70d2802fb3d94b01a10ce47840d4ce~1..cb582138bc70d2802fb3d94b01a10ce47840d4ce [Pipeline] echo 01:18:52 -----------> git rev-list -1 --merges cb582138bc70d2802fb3d94b01a10ce47840d4ce~1..cb582138bc70d2802fb3d94b01a10ce47840d4ce cb582138bc70d2802fb3d94b01a10ce47840d4ce [false] [Pipeline] sh 01:18:53 + git log --format=format:%s -1 cb582138bc70d2802fb3d94b01a10ce47840d4ce [Pipeline] echo 01:18:53 ========================================================= 01:18:53 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 01:18:53 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 01:18:53 + git log --format=format:%s -1 cb582138bc70d2802fb3d94b01a10ce47840d4ce [Pipeline] echo 01:18:53 [semverPrep] GIT_COMMIT: cb582138bc70d2802fb3d94b01a10ce47840d4ce, Commit Message: docs: additions to CHANGELOG [Pipeline] echo 01:18:53 [semverPrep] This is not a build commit. [Pipeline] sh 01:18:54 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 01:18:54 + grep -v github /etc/ssh/ssh_known_hosts 01:18:54 + [ -e /tmp/ssh_known_hosts ] 01:18:54 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 01:18:54 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 01:18:54 + sudo tee -a /etc/ssh/ssh_known_hosts 01:18:54 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] sh 01:18:54 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest 01:18:54 01:18:54 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest [Pipeline] isUnix [Pipeline] sh 01:18:54 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest 01:18:54 latest: Pulling from edgex-devops/py-git-semver 01:18:54 1fe172e4850f: Pulling fs layer 01:18:54 caf521ccaac6: Pulling fs layer 01:18:54 3ead6fa29328: Pulling fs layer 01:18:54 5c2a1cbceb83: Pulling fs layer 01:18:54 a8d5f1318db7: Pulling fs layer 01:18:54 c427282e49a2: Pulling fs layer 01:18:54 1827001aaf11: Pulling fs layer 01:18:54 0714d37db230: Pulling fs layer 01:18:54 ac28cf19c067: Pulling fs layer 01:18:54 ca983d60f3e2: Pulling fs layer 01:18:54 9f894cec8388: Pulling fs layer 01:18:54 5c2a1cbceb83: Waiting 01:18:54 ca983d60f3e2: Waiting 01:18:54 0714d37db230: Waiting 01:18:54 9f894cec8388: Waiting 01:18:54 ac28cf19c067: Waiting 01:18:54 c427282e49a2: Waiting 01:18:54 a8d5f1318db7: Waiting 01:18:54 1827001aaf11: Waiting 01:18:54 caf521ccaac6: Verifying Checksum 01:18:54 caf521ccaac6: Download complete 01:18:54 5c2a1cbceb83: Verifying Checksum 01:18:54 5c2a1cbceb83: Download complete 01:18:54 a8d5f1318db7: Verifying Checksum 01:18:54 a8d5f1318db7: Download complete 01:18:54 3ead6fa29328: Verifying Checksum 01:18:54 3ead6fa29328: Download complete 01:18:54 c427282e49a2: Download complete 01:18:54 0714d37db230: Download complete 01:18:54 ac28cf19c067: Verifying Checksum 01:18:54 ac28cf19c067: Download complete 01:18:54 ca983d60f3e2: Verifying Checksum 01:18:54 ca983d60f3e2: Download complete 01:18:54 9f894cec8388: Download complete 01:18:54 1fe172e4850f: Verifying Checksum 01:18:54 1fe172e4850f: Download complete 01:18:55 1827001aaf11: Verifying Checksum 01:18:55 1827001aaf11: Download complete 01:18:56 1fe172e4850f: Pull complete 01:18:56 caf521ccaac6: Pull complete 01:18:57 3ead6fa29328: Pull complete 01:18:57 5c2a1cbceb83: Pull complete 01:18:57 a8d5f1318db7: Pull complete 01:18:57 c427282e49a2: Pull complete 01:18:59 1827001aaf11: Pull complete 01:18:59 0714d37db230: Pull complete 01:18:59 ac28cf19c067: Pull complete 01:19:00 ca983d60f3e2: Pull complete 01:19:00 9f894cec8388: Pull complete 01:19:00 Digest: sha256:90e63904a1edc574c23a580e5fc31fbcdccad1501625621f67a6be262171cfee 01:19:00 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest 01:19:00 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest [Pipeline] withDockerContainer 01:19:00 prd-ubuntu20.04-docker-8c-8g-41439 does not seem to be running inside a container 01:19:00 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/gexfoundry_device-rest-go_PR-185 -v /w/workspace/gexfoundry_device-rest-go_PR-185:/w/workspace/gexfoundry_device-rest-go_PR-185:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-185@tmp:/w/workspace/gexfoundry_device-rest-go_PR-185@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest cat 01:19:01 $ docker top 2bf3def2449bd57b5af37fde0a0600308587b0f50201d734cd7a90165a958ca3 -eo pid,comm 01:19:02 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). 01:19:02 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 01:19:02 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 01:19:02 [ssh-agent] Looking for ssh-agent implementation... 01:19:02 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 01:19:02 $ docker exec 2bf3def2449bd57b5af37fde0a0600308587b0f50201d734cd7a90165a958ca3 ssh-agent 01:19:02 SSH_AUTH_SOCK=/tmp/ssh-nBEhQ9zoVbed/agent.33 01:19:02 SSH_AGENT_PID=39 01:19:02 Running ssh-add (command line suppressed) 01:19:02 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-185@tmp/private_key_6757027760335755264.key (/w/workspace/gexfoundry_device-rest-go_PR-185@tmp/private_key_6757027760335755264.key) 01:19:02 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 01:19:02 + git tag --points-at HEAD [Pipeline] } 01:19:02 $ docker exec --env ******** --env ******** 2bf3def2449bd57b5af37fde0a0600308587b0f50201d734cd7a90165a958ca3 ssh-agent -k 01:19:02 unset SSH_AUTH_SOCK; 01:19:02 unset SSH_AGENT_PID; 01:19:02 echo Agent pid 39 killed; 01:19:02 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 01:19:02 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 01:19:02 [ssh-agent] Looking for ssh-agent implementation... 01:19:03 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 01:19:03 $ docker exec 2bf3def2449bd57b5af37fde0a0600308587b0f50201d734cd7a90165a958ca3 ssh-agent 01:19:03 SSH_AUTH_SOCK=/tmp/ssh-1WTuZcC3gOnB/agent.71 01:19:03 SSH_AGENT_PID=77 01:19:03 Running ssh-add (command line suppressed) 01:19:03 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-185@tmp/private_key_3159106226787449290.key (/w/workspace/gexfoundry_device-rest-go_PR-185@tmp/private_key_3159106226787449290.key) 01:19:03 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 01:19:03 + git semver init 01:19:03 2022-05-08 01:19:03,938 [run_init] DEBUG init version:0.0.0 force:False 01:19:03 2022-05-08 01:19:03,939 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/gexfoundry_device-rest-go_PR-185/.semver 01:19:03 2022-05-08 01:19:03,939 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-rest-go.git /w/workspace/gexfoundry_device-rest-go_PR-185/.semver 01:19:03 2022-05-08 01:19:03,940 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-rest-go.git', '/w/workspace/gexfoundry_device-rest-go_PR-185/.semver'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-185, universal_newlines=False, shell=None, istream=None) 01:19:05 2022-05-08 01:19:05,142 [append_file] DEBUG append to file:/w/workspace/gexfoundry_device-rest-go_PR-185/.git/info/exclude 01:19:05 2022-05-08 01:19:05,143 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/gexfoundry_device-rest-go_PR-185/.semver/PR-185 with force:False 01:19:05 2022-05-08 01:19:05,143 [write_file] DEBUG write to file:/w/workspace/gexfoundry_device-rest-go_PR-185/.semver/PR-185 01:19:05 2022-05-08 01:19:05,149 [execute] INFO git cat-file --batch-check 01:19:05 2022-05-08 01:19:05,149 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-185/.semver, universal_newlines=False, shell=None, istream=) 01:19:05 2022-05-08 01:19:05,157 [execute] INFO git cat-file --batch 01:19:05 2022-05-08 01:19:05,158 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-185/.semver, universal_newlines=False, shell=None, istream=) 01:19:05 2022-05-08 01:19:05,164 [read_version] DEBUG read version from /w/workspace/gexfoundry_device-rest-go_PR-185/.semver/PR-185 01:19:05 0.0.0 [Pipeline] } 01:19:05 $ docker exec --env ******** --env ******** 2bf3def2449bd57b5af37fde0a0600308587b0f50201d734cd7a90165a958ca3 ssh-agent -k 01:19:05 unset SSH_AUTH_SOCK; 01:19:05 unset SSH_AGENT_PID; 01:19:05 echo Agent pid 77 killed; 01:19:05 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 01:19:05 + git semver [Pipeline] } 01:19:06 $ docker stop --time=1 2bf3def2449bd57b5af37fde0a0600308587b0f50201d734cd7a90165a958ca3 01:19:07 $ docker rm -f 2bf3def2449bd57b5af37fde0a0600308587b0f50201d734cd7a90165a958ca3 [Pipeline] // withDockerContainer [Pipeline] sh 01:19:07 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 01:19:08 Stashed 1 file(s) [Pipeline] echo 01:19:08 [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 01:19:08 provisioning config files... 01:19:08 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-185@tmp/config576111916493315478tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 01:19:08 ---> docker-login.sh 01:19:08 nexus3.edgexfoundry.org:10001 01:19:08 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 01:19:08 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 01:19:08 Configure a credential helper to remove this warning. See 01:19:08 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 01:19:08 01:19:08 Login Succeeded 01:19:08 nexus3.edgexfoundry.org:10002 01:19:08 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 01:19:08 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 01:19:08 Configure a credential helper to remove this warning. See 01:19:08 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 01:19:08 01:19:08 Login Succeeded 01:19:08 nexus3.edgexfoundry.org:10003 01:19:08 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 01:19:08 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 01:19:08 Configure a credential helper to remove this warning. See 01:19:08 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 01:19:08 01:19:08 Login Succeeded 01:19:08 nexus3.edgexfoundry.org:10004 01:19:09 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 01:19:09 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 01:19:09 Configure a credential helper to remove this warning. See 01:19:09 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 01:19:09 01:19:09 Login Succeeded 01:19:09 docker.io 01:19:09 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 01:19:09 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 01:19:09 Configure a credential helper to remove this warning. See 01:19:09 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 01:19:09 01:19:09 Login Succeeded 01:19:09 ---> docker-login.sh ends [Pipeline] } 01:19:09 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 01:19:09 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 01:19:09 ========================================================= 01:19:09 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine] 01:19:09 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 01:19:09 + 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 . 01:19:09 Sending build context to Docker daemon 10.62MB 01:19:09 Step 1/12 : ARG BASE=golang:1.17-alpine3.15 01:19:09 Step 2/12 : FROM ${BASE} AS builder 01:19:09 1.17-alpine: Pulling from edgex-devops/edgex-golang-base 01:19:09 59bf1c3509f3: Pulling fs layer 01:19:09 666ba61612fd: Pulling fs layer 01:19:09 8ed8ca486205: Pulling fs layer 01:19:09 4fe6c5a15a65: Pulling fs layer 01:19:09 22a0e8bec74d: Pulling fs layer 01:19:09 ca2b28591e48: Pulling fs layer 01:19:09 a51346096db8: Pulling fs layer 01:19:09 daebc70d1ce1: Pulling fs layer 01:19:09 0e18a0eac166: Pulling fs layer 01:19:09 ca2b28591e48: Waiting 01:19:09 a51346096db8: Waiting 01:19:09 4fe6c5a15a65: Waiting 01:19:10 8ed8ca486205: Verifying Checksum 01:19:10 8ed8ca486205: Download complete 01:19:10 666ba61612fd: Download complete 01:19:10 22a0e8bec74d: Verifying Checksum 01:19:10 22a0e8bec74d: Download complete 01:19:10 ca2b28591e48: Verifying Checksum 01:19:10 ca2b28591e48: Download complete 01:19:10 a51346096db8: Download complete 01:19:10 59bf1c3509f3: Verifying Checksum 01:19:10 59bf1c3509f3: Download complete 01:19:10 daebc70d1ce1: Verifying Checksum 01:19:10 daebc70d1ce1: Download complete 01:19:10 59bf1c3509f3: Pull complete 01:19:10 666ba61612fd: Pull complete 01:19:10 8ed8ca486205: Pull complete 01:19:10 0e18a0eac166: Verifying Checksum 01:19:10 0e18a0eac166: Download complete 01:19:11 4fe6c5a15a65: Verifying Checksum 01:19:11 4fe6c5a15a65: Download complete 01:19:15 4fe6c5a15a65: Pull complete 01:19:15 22a0e8bec74d: Pull complete 01:19:15 ca2b28591e48: Pull complete 01:19:15 a51346096db8: Pull complete 01:19:15 daebc70d1ce1: Pull complete 01:19:17 0e18a0eac166: Pull complete 01:19:17 Digest: sha256:5cf2d0a306c5171eb5b3008c4b83cc7b6044f1808c238cb17927cddb93576120 01:19:17 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine 01:19:17 ---> f018257e8ee9 01:19:17 Step 3/12 : ARG MAKE='make build' 01:19:19 ---> Running in 3bd6d5dcc7ed 01:19:19 Removing intermediate container 3bd6d5dcc7ed 01:19:19 ---> 53015db57493 01:19:19 Step 4/12 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 01:19:19 ---> Running in 4125f3ce4c33 01:19:19 Removing intermediate container 4125f3ce4c33 01:19:19 ---> d3e98672cc5a 01:19:19 Step 5/12 : ARG ALPINE_PKG_EXTRA="" 01:19:19 ---> Running in 066606c00aa6 01:19:19 Removing intermediate container 066606c00aa6 01:19:19 ---> 50304123907e 01:19:19 Step 6/12 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 01:19:19 ---> Running in 120c2f487962 01:19:20 Removing intermediate container 120c2f487962 01:19:20 ---> 32a1e29360c6 01:19:20 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 01:19:20 ---> Running in e826d040e149 01:19:20 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 01:19:21 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 01:19:21 (1/4) Installing openssh-keygen (8.8_p1-r1) 01:19:22 (2/4) Installing libedit (20210910.3.1-r0) 01:19:22 (3/4) Installing openssh-client-common (8.8_p1-r1) 01:19:22 (4/4) Installing openssh-client-default (8.8_p1-r1) 01:19:22 Executing busybox-1.34.1-r3.trigger 01:19:22 OK: 224 MiB in 56 packages 01:19:22 Removing intermediate container e826d040e149 01:19:22 ---> 83554e3b242b 01:19:22 Step 8/12 : WORKDIR /device-rest-go 01:19:22 ---> Running in b5d9040722aa 01:19:22 Removing intermediate container b5d9040722aa 01:19:22 ---> 27f0d1d3cd39 01:19:22 Step 9/12 : COPY go.mod vendor* ./ 01:19:23 ---> 9111526d5fe0 01:19:23 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 01:19:23 ---> Running in 3675d6b4191d 01:19:23 Still waiting to schedule task 01:19:23 Waiting for next available executor on ‘ubuntu20.04-docker-arm64-4c-16g’ 01:19:38 Removing intermediate container 3675d6b4191d 01:19:38 ---> 00381ec7b2b9 01:19:38 Step 11/12 : COPY . . 01:19:38 ---> 366253b4d7e5 01:19:38 Step 12/12 : RUN $MAKE 01:19:38 ---> Running in 864ae2e1e654 01:19:38 noop 01:19:38 Removing intermediate container 864ae2e1e654 01:19:38 ---> 639851b5fdb2 01:19:38 Successfully built 639851b5fdb2 01:19:38 Successfully tagged ci-base-image-x86_64:latest [Pipeline] isUnix [Pipeline] sh 01:19:38 + docker inspect -f . ci-base-image-x86_64 01:19:38 . [Pipeline] withDockerContainer 01:19:38 prd-ubuntu20.04-docker-8c-8g-41439 does not seem to be running inside a container 01:19:39 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-185 -v /w/workspace/gexfoundry_device-rest-go_PR-185:/w/workspace/gexfoundry_device-rest-go_PR-185:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-185@tmp:/w/workspace/gexfoundry_device-rest-go_PR-185@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 01:19:39 $ docker top 008a566df359f2ac557a8d641575c4f911bbfe1b36d95300b012988315240bbf -eo pid,comm [Pipeline] { [Pipeline] sh 01:19:39 + go version 01:19:39 go version go1.17.6 linux/amd64 [Pipeline] } 01:19:39 $ docker stop --time=1 008a566df359f2ac557a8d641575c4f911bbfe1b36d95300b012988315240bbf 01:19:41 $ docker rm -f 008a566df359f2ac557a8d641575c4f911bbfe1b36d95300b012988315240bbf [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 01:19:41 + docker inspect -f . ci-base-image-x86_64 01:19:41 . [Pipeline] withDockerContainer 01:19:41 prd-ubuntu20.04-docker-8c-8g-41439 does not seem to be running inside a container 01:19:41 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-185 -v /w/workspace/gexfoundry_device-rest-go_PR-185:/w/workspace/gexfoundry_device-rest-go_PR-185:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-185@tmp:/w/workspace/gexfoundry_device-rest-go_PR-185@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 01:19:42 $ docker top 49cc634854fb78034c36ebab581ad52c753d762d8b84dca7515d8d3f2f6571dc -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 01:19:42 + make test 01:19:42 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out ./... 01:19:42 ? github.com/edgexfoundry/device-rest-go [no test files] 01:19:52 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 01:19:52 ok github.com/edgexfoundry/device-rest-go/driver 0.016s coverage: 55.2% of statements 01:20:00 CGO_ENABLED=1 GO111MODULE=on go vet ./... 01:20:04 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 01:20:04 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 01:20:04 ./bin/test-attribution-txt.sh [Pipeline] echo 01:20:04 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 01:20:04 $ docker stop --time=1 49cc634854fb78034c36ebab581ad52c753d762d8b84dca7515d8d3f2f6571dc 01:20:05 $ docker rm -f 49cc634854fb78034c36ebab581ad52c753d762d8b84dca7515d8d3f2f6571dc [Pipeline] // withDockerContainer [Pipeline] sh 01:20:06 + sudo chown -R jenkins:jenkins . [Pipeline] stash 01:20:06 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 01:20:07 + sudo chown -R jenkins:jenkins . [Pipeline] sh 01:20:07 + ls -al . 01:20:07 total 172 01:20:07 drwxrwxr-x 9 jenkins jenkins 4096 May 8 01:20 . 01:20:07 drwxrwxr-x 4 jenkins jenkins 4096 May 8 01:18 .. 01:20:07 -rw-rw-r-- 1 jenkins jenkins 151 May 8 01:18 .dockerignore 01:20:07 drwxrwxr-x 8 jenkins jenkins 4096 May 8 01:19 .git 01:20:07 drwxrwxr-x 3 jenkins jenkins 4096 May 8 01:18 .github 01:20:07 -rw-rw-r-- 1 jenkins jenkins 329 May 8 01:18 .gitignore 01:20:07 -rw-rw-r-- 1 jenkins jenkins 41 May 8 01:18 .golangci.yml 01:20:07 drwxr-xr-x 3 jenkins jenkins 4096 May 8 01:19 .semver 01:20:07 -rw-rw-r-- 1 jenkins jenkins 8463 May 8 01:18 Attribution.txt 01:20:07 -rw-rw-r-- 1 jenkins jenkins 11736 May 8 01:18 CHANGELOG.md 01:20:07 -rw-rw-r-- 1 jenkins jenkins 1672 May 8 01:18 Dockerfile 01:20:07 -rw-rw-r-- 1 jenkins jenkins 677 May 8 01:18 GOVERNANCE.md 01:20:07 -rw-rw-r-- 1 jenkins jenkins 680 May 8 01:18 Jenkinsfile 01:20:07 -rw-rw-r-- 1 jenkins jenkins 11340 May 8 01:18 LICENSE 01:20:07 -rw-rw-r-- 1 jenkins jenkins 1977 May 8 01:18 Makefile 01:20:07 -rw-rw-r-- 1 jenkins jenkins 620 May 8 01:18 OWNERS.md 01:20:07 -rw-rw-r-- 1 jenkins jenkins 8003 May 8 01:18 README.md 01:20:07 -rw-rw-r-- 1 jenkins jenkins 5 May 8 01:19 VERSION 01:20:07 drwxrwxr-x 2 jenkins jenkins 4096 May 8 01:18 bin 01:20:07 drwxrwxr-x 3 jenkins jenkins 4096 May 8 01:18 cmd 01:20:07 -rw-r--r-- 1 jenkins jenkins 9355 May 8 01:19 coverage.out 01:20:07 drwxrwxr-x 2 jenkins jenkins 4096 May 8 01:18 driver 01:20:07 -rw-rw-r-- 1 jenkins jenkins 3333 May 8 01:18 go.mod 01:20:07 -rw-rw-r-- 1 jenkins jenkins 35259 May 8 01:18 go.sum 01:20:07 drwxrwxr-x 3 jenkins jenkins 4096 May 8 01:18 snap 01:20:07 -rw-rw-r-- 1 jenkins jenkins 713 May 8 01:18 version.go [Pipeline] isUnix [Pipeline] sh 01:20:07 + 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=cb582138bc70d2802fb3d94b01a10ce47840d4ce --label arch=amd64 --label version=0.0.0 . 01:20:07 Sending build context to Docker daemon 10.63MB 01:20:07 Step 1/25 : ARG BASE=golang:1.17-alpine3.15 01:20:07 Step 2/25 : FROM ${BASE} AS builder 01:20:07 ---> 639851b5fdb2 01:20:07 Step 3/25 : ARG MAKE='make build' 01:20:07 ---> Running in af8e529ecc36 01:20:07 Removing intermediate container af8e529ecc36 01:20:07 ---> 40984d3df3ff 01:20:07 Step 4/25 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 01:20:08 ---> Running in b9a8b5fde2e6 01:20:08 Removing intermediate container b9a8b5fde2e6 01:20:08 ---> d7aa584fb81a 01:20:08 Step 5/25 : ARG ALPINE_PKG_EXTRA="" 01:20:08 ---> Running in 32cc79e22e34 01:20:08 Removing intermediate container 32cc79e22e34 01:20:08 ---> e20f9c49613d 01:20:08 Step 6/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 01:20:08 ---> Running in 23fbc7bd90f0 01:20:09 Removing intermediate container 23fbc7bd90f0 01:20:09 ---> c763656fd262 01:20:09 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 01:20:09 ---> Running in fd5507f07829 01:20:09 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 01:20:10 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 01:20:10 OK: 224 MiB in 56 packages 01:20:10 Removing intermediate container fd5507f07829 01:20:10 ---> 79143d4f5953 01:20:10 Step 8/25 : WORKDIR /device-rest-go 01:20:11 ---> Running in 637933b0e7c8 01:20:11 Removing intermediate container 637933b0e7c8 01:20:11 ---> a49913db031c 01:20:11 Step 9/25 : COPY go.mod vendor* ./ 01:20:11 ---> 2f237ad342f3 01:20:11 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 01:20:11 ---> Running in e3ba88a6a8b2 01:20:11 Removing intermediate container e3ba88a6a8b2 01:20:11 ---> 53c3bbe5f600 01:20:11 Step 11/25 : COPY . . 01:20:12 ---> 81b52ee268be 01:20:12 Step 12/25 : RUN $MAKE 01:20:12 ---> Running in ef02e23e07c1 01:20:12 CGO_ENABLED=1 GO111MODULE=on go build -ldflags "-linkmode=external -X github.com/edgexfoundry/device-rest-go.Version=0.0.0" -trimpath -mod=readonly -buildmode=pie -o cmd/device-rest ./cmd 01:20:34 Removing intermediate container ef02e23e07c1 01:20:34 ---> 9a6a9f61fa55 01:20:34 Step 13/25 : FROM alpine:3.14 01:20:34 3.14: Pulling from library/alpine 01:20:34 8663204ce13b: Pulling fs layer 01:20:34 8663204ce13b: Download complete 01:20:34 8663204ce13b: Pull complete 01:20:34 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 01:20:34 Status: Downloaded newer image for alpine:3.14 01:20:34 ---> e04c818066af 01:20:34 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' 01:20:34 ---> Running in 6b1c8f690a08 01:20:34 Removing intermediate container 6b1c8f690a08 01:20:34 ---> 3d454d8a020b 01:20:34 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 01:20:34 ---> Running in 436cc68825cd 01:20:34 Removing intermediate container 436cc68825cd 01:20:34 ---> 78eaaa125f18 01:20:34 Step 16/25 : RUN apk add --update --no-cache zeromq dumb-init 01:20:34 ---> Running in 201506ce4a8e 01:20:34 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz 01:20:34 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz 01:20:34 (1/6) Installing dumb-init (1.2.5-r1) 01:20:34 (2/6) Installing libgcc (10.3.1_git20210424-r2) 01:20:34 (3/6) Installing libsodium (1.0.18-r0) 01:20:34 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 01:20:34 (5/6) Installing libzmq (4.3.4-r0) 01:20:34 (6/6) Installing zeromq (4.3.4-r0) 01:20:34 Executing busybox-1.33.1-r7.trigger 01:20:34 OK: 8 MiB in 20 packages 01:20:34 Removing intermediate container 201506ce4a8e 01:20:34 ---> 7939a86e0700 01:20:34 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 01:20:34 ---> 8ac8e66779f4 01:20:34 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 01:20:35 ---> af39b4bc7d9c 01:20:35 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 01:20:35 ---> 5de6c9ad1501 01:20:35 Step 20/25 : EXPOSE 59986 01:20:35 ---> Running in 8cedf62680ec 01:20:35 Removing intermediate container 8cedf62680ec 01:20:35 ---> 61e9402edb56 01:20:35 Step 21/25 : ENTRYPOINT ["/device-rest"] 01:20:35 ---> Running in ff0ae44effb6 01:20:35 Removing intermediate container ff0ae44effb6 01:20:35 ---> a2c731176dab 01:20:35 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--confdir=/res", "--registry"] 01:20:35 ---> Running in e30b83478a2f 01:20:35 Removing intermediate container e30b83478a2f 01:20:35 ---> 7d171c88e6d7 01:20:35 Step 23/25 : LABEL arch=amd64 01:20:35 ---> Running in c0e359c82b30 01:20:35 Removing intermediate container c0e359c82b30 01:20:35 ---> 1e7571062c17 01:20:35 Step 24/25 : LABEL git_sha=cb582138bc70d2802fb3d94b01a10ce47840d4ce 01:20:35 ---> Running in cd931c155a8c 01:20:35 Removing intermediate container cd931c155a8c 01:20:35 ---> edf1919c5bdf 01:20:35 Step 25/25 : LABEL version=0.0.0 01:20:35 ---> Running in ba33b7d55abb 01:20:35 Removing intermediate container ba33b7d55abb 01:20:35 ---> 853d37b81610 01:20:35 [Warning] One or more build-args [ARCH] were not consumed 01:20:35 Successfully built 853d37b81610 01:20:35 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 01:20:36 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 01:20:36 01:20:36 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] sh 01:20:36 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 01:20:36 latest: Pulling from edgex-lftools-log-publisher 01:20:36 5eb5b503b376: Pulling fs layer 01:20:36 5c69ac0246d0: Pulling fs layer 01:20:36 ec43610c2a17: Pulling fs layer 01:20:36 3a2ae6a8a46f: Pulling fs layer 01:20:36 33b1e0a273af: Pulling fs layer 01:20:36 5d3b04190fa2: Pulling fs layer 01:20:36 2f39f015ded8: Pulling fs layer 01:20:36 5d3b04190fa2: Waiting 01:20:36 2f39f015ded8: Waiting 01:20:36 33b1e0a273af: Waiting 01:20:36 5c69ac0246d0: Download complete 01:20:36 33b1e0a273af: Verifying Checksum 01:20:36 33b1e0a273af: Download complete 01:20:36 ec43610c2a17: Verifying Checksum 01:20:36 ec43610c2a17: Download complete 01:20:36 5d3b04190fa2: Verifying Checksum 01:20:36 5d3b04190fa2: Download complete 01:20:36 5eb5b503b376: Verifying Checksum 01:20:36 5eb5b503b376: Download complete 01:20:37 2f39f015ded8: Verifying Checksum 01:20:37 2f39f015ded8: Download complete 01:20:38 5eb5b503b376: Pull complete 01:20:38 5c69ac0246d0: Pull complete 01:20:38 ec43610c2a17: Pull complete 01:20:38 3a2ae6a8a46f: Pull complete 01:20:39 33b1e0a273af: Pull complete 01:20:39 5d3b04190fa2: Pull complete 01:20:44 2f39f015ded8: Pull complete 01:20:44 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 01:20:44 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 01:20:44 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] withDockerContainer 01:20:44 prd-ubuntu20.04-docker-8c-8g-41439 does not seem to be running inside a container 01:20:44 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/gexfoundry_device-rest-go_PR-185 -v /w/workspace/gexfoundry_device-rest-go_PR-185:/w/workspace/gexfoundry_device-rest-go_PR-185:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-185@tmp:/w/workspace/gexfoundry_device-rest-go_PR-185@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 01:20:46 $ docker top 051859c0e70f2ee9fa0359c8393e4576fc099faa5e27a9239772dc37ea10c8ea -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 01:20:46 ---> job-cost.sh 01:20:46 lf-activate-venv: SKIPPING 01:20:46 INFO: No Stack... 01:20:47 INFO: Retrieving Pricing Info for: v3-standard-8 01:20:47 INFO: Archiving Costs [Pipeline] sh 01:20:47 + cat /w/workspace/gexfoundry_device-rest-go_PR-185/archives/cost.csv 01:20:47 + cut -d, -f6 [Pipeline] lock 01:20:47 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-185-2-stack-cost] 01:20:47 Resource [jenkins-edgexfoundry-device-rest-go-PR-185-2-stack-cost] did not exist. Created. 01:20:47 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-185-2-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 01:20:48 + echo total: 0.2199999988079071 [Pipeline] stash 01:20:48 Stashed 1 file(s) [Pipeline] } 01:20:48 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-185-2-stack-cost] [Pipeline] // lock [Pipeline] } 01:20:48 $ docker stop --time=1 051859c0e70f2ee9fa0359c8393e4576fc099faa5e27a9239772dc37ea10c8ea 01:20:49 $ docker rm -f 051859c0e70f2ee9fa0359c8393e4576fc099faa5e27a9239772dc37ea10c8ea [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 01:21:48 Running on prd-ubuntu20.04-docker-arm64-4c-16g-41440 in /w/workspace/gexfoundry_device-rest-go_PR-185 [Pipeline] { [Pipeline] ws 01:21:48 Running in /w/workspace/device-rest-go/2 [Pipeline] { [Pipeline] checkout 01:21:48 The recommended git tool is: git 01:21:55 using credential edgex-jenkins-ssh 01:21:55 Cloning the remote Git repository 01:21:55 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 01:21:55 > git init /w/workspace/device-rest-go/2 # timeout=10 01:21:55 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 01:21:55 > git --version # timeout=10 01:21:55 > git --version # 'git version 2.25.1' 01:21:55 using GIT_SSH to set credentials SSH Credentials for GitHub 01:21:55 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 01:21:58 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 01:21:58 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 01:21:58 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 01:21:58 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 01:21:58 using GIT_SSH to set credentials SSH Credentials for GitHub 01:21:58 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/185/head:refs/remotes/origin/PR-185 +refs/heads/main:refs/remotes/origin/main # timeout=10 01:21:58 Merging remotes/origin/main commit 1b7989097685cbbb7d11325d5e96f20d406e46c7 into PR head commit cb582138bc70d2802fb3d94b01a10ce47840d4ce 01:21:58 Merge succeeded, producing cb582138bc70d2802fb3d94b01a10ce47840d4ce 01:21:58 Checking out Revision cb582138bc70d2802fb3d94b01a10ce47840d4ce (PR-185) 01:21:58 > git config core.sparsecheckout # timeout=10 01:21:58 > git checkout -f cb582138bc70d2802fb3d94b01a10ce47840d4ce # timeout=10 01:21:58 > git remote # timeout=10 01:21:58 > git config --get remote.origin.url # timeout=10 01:21:58 using GIT_SSH to set credentials SSH Credentials for GitHub 01:21:58 > git merge 1b7989097685cbbb7d11325d5e96f20d406e46c7 # timeout=10 01:21:58 > git rev-parse HEAD^{commit} # timeout=10 01:21:58 > git config core.sparsecheckout # timeout=10 01:21:58 > git checkout -f cb582138bc70d2802fb3d94b01a10ce47840d4ce # timeout=10 01:22:03 Commit message: "docs: additions to CHANGELOG" [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 01:22:04 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 01:22:04 % Total % Received % Xferd Average Speed Time Time Time Current 01:22:04 Dload Upload Total Spent Left Speed 01:22:04 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 11843 100 11843 0 0 125k 0 --:--:-- --:--:-- --:--:-- 125k [Pipeline] sh 01:22:04 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 01:22:05 + sudo+ jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 01:22:05 sudo tee /etc/docker/daemon.new 01:22:05 { 01:22:05 "registry-mirrors": [ 01:22:05 "https://nexus3.edgexfoundry.org:10001" 01:22:05 ], 01:22:05 "bip": "10.250.0.254/24", 01:22:05 "hosts": [ 01:22:05 "tcp://0.0.0.0:5555", 01:22:05 "unix:///var/run/docker.sock" 01:22:05 ], 01:22:05 "mtu": 1458, 01:22:05 "selinux-enabled": true, 01:22:05 "seccomp-profile": "/etc/docker/seccomp.json" 01:22:05 } [Pipeline] sh 01:22:05 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 01:22:05 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 01:22:24 provisioning config files... 01:22:24 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/2@tmp/config7920575270326001816tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 01:22:24 ---> docker-login.sh 01:22:24 nexus3.edgexfoundry.org:10001 01:22:25 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 01:22:25 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 01:22:25 Configure a credential helper to remove this warning. See 01:22:25 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 01:22:25 01:22:25 Login Succeeded 01:22:25 nexus3.edgexfoundry.org:10002 01:22:26 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 01:22:26 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 01:22:26 Configure a credential helper to remove this warning. See 01:22:26 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 01:22:26 01:22:26 Login Succeeded 01:22:26 nexus3.edgexfoundry.org:10003 01:22:26 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 01:22:26 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 01:22:26 Configure a credential helper to remove this warning. See 01:22:26 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 01:22:26 01:22:26 Login Succeeded 01:22:26 nexus3.edgexfoundry.org:10004 01:22:26 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 01:22:26 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 01:22:26 Configure a credential helper to remove this warning. See 01:22:26 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 01:22:26 01:22:26 Login Succeeded 01:22:26 docker.io 01:22:27 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 01:22:27 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 01:22:27 Configure a credential helper to remove this warning. See 01:22:27 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 01:22:27 01:22:27 Login Succeeded 01:22:27 ---> docker-login.sh ends [Pipeline] } 01:22:27 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 01:22:28 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 01:22:28 ========================================================= 01:22:28 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine] 01:22:28 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 01:22:28 + 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 . 01:22:28 Sending build context to Docker daemon 128.5kB 01:22:28 Step 1/12 : ARG BASE=golang:1.17-alpine3.15 01:22:28 Step 2/12 : FROM ${BASE} AS builder 01:22:29 1.17-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 01:22:29 9b3977197b4f: Pulling fs layer 01:22:29 1a89e8eeedd5: Pulling fs layer 01:22:29 94645a83ff95: Pulling fs layer 01:22:29 3f3a8bcf1eab: Pulling fs layer 01:22:29 0c92f367c5e7: Pulling fs layer 01:22:29 3096ccb668a1: Pulling fs layer 01:22:29 e8cf19c19ddd: Pulling fs layer 01:22:29 a4caa8a26152: Pulling fs layer 01:22:29 3f3a8bcf1eab: Waiting 01:22:29 0c92f367c5e7: Waiting 01:22:29 e8cf19c19ddd: Waiting 01:22:29 a4caa8a26152: Waiting 01:22:29 94645a83ff95: Verifying Checksum 01:22:29 94645a83ff95: Download complete 01:22:29 1a89e8eeedd5: Verifying Checksum 01:22:29 1a89e8eeedd5: Download complete 01:22:29 0c92f367c5e7: Download complete 01:22:29 3096ccb668a1: Verifying Checksum 01:22:29 3096ccb668a1: Download complete 01:22:29 9b3977197b4f: Verifying Checksum 01:22:29 e8cf19c19ddd: Verifying Checksum 01:22:29 e8cf19c19ddd: Download complete 01:22:30 9b3977197b4f: Pull complete 01:22:30 1a89e8eeedd5: Pull complete 01:22:31 94645a83ff95: Pull complete 01:22:31 a4caa8a26152: Verifying Checksum 01:22:31 a4caa8a26152: Download complete 01:22:32 3f3a8bcf1eab: Verifying Checksum 01:22:32 3f3a8bcf1eab: Download complete 01:22:44 3f3a8bcf1eab: Pull complete 01:22:44 0c92f367c5e7: Pull complete 01:22:44 3096ccb668a1: Pull complete 01:22:44 e8cf19c19ddd: Pull complete 01:22:51 a4caa8a26152: Pull complete 01:22:51 Digest: sha256:b3ad895ecde34a7521bb8912598475bc58d052e1c2c58d00df7f0fe54a102a46 01:22:51 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine 01:22:51 ---> 725f1c02e7f9 01:22:51 Step 3/12 : ARG MAKE='make build' 01:22:51 ---> Running in 92994a9a8a33 01:22:51 Removing intermediate container 92994a9a8a33 01:22:51 ---> 7ddf95e1d6ee 01:22:51 Step 4/12 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 01:22:51 ---> Running in b125a651a3dd 01:22:52 Removing intermediate container b125a651a3dd 01:22:52 ---> 50130983ef17 01:22:52 Step 5/12 : ARG ALPINE_PKG_EXTRA="" 01:22:52 ---> Running in 8fa7976d6d49 01:22:52 Removing intermediate container 8fa7976d6d49 01:22:52 ---> b846df665079 01:22:52 Step 6/12 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 01:22:52 ---> Running in 74cacf2b78e2 01:22:54 Removing intermediate container 74cacf2b78e2 01:22:54 ---> c19b68f6c672 01:22:54 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 01:22:54 ---> Running in 3ba81b2dc9ff 01:22:56 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 01:22:57 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 01:22:58 (1/4) Installing openssh-keygen (8.8_p1-r1) 01:22:58 (2/4) Installing libedit (20210910.3.1-r0) 01:22:58 (3/4) Installing openssh-client-common (8.8_p1-r1) 01:22:58 (4/4) Installing openssh-client-default (8.8_p1-r1) 01:22:58 Executing busybox-1.34.1-r3.trigger 01:22:58 OK: 224 MiB in 56 packages 01:22:59 Removing intermediate container 3ba81b2dc9ff 01:22:59 ---> 804075fa6595 01:22:59 Step 8/12 : WORKDIR /device-rest-go 01:23:00 ---> Running in aad91d88d3ca 01:23:00 Removing intermediate container aad91d88d3ca 01:23:00 ---> 9f9a2d212b52 01:23:00 Step 9/12 : COPY go.mod vendor* ./ 01:23:00 ---> 9bc5745e18cf 01:23:00 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 01:23:00 ---> Running in 3482e2a6ce52 01:23:47 Removing intermediate container 3482e2a6ce52 01:23:47 ---> 4024d4ad217d 01:23:47 Step 11/12 : COPY . . 01:23:47 ---> 6866e301658c 01:23:47 Step 12/12 : RUN $MAKE 01:23:47 ---> Running in 1ac6219cb924 01:23:47 noop 01:23:47 Removing intermediate container 1ac6219cb924 01:23:47 ---> 93083965ab51 01:23:47 Successfully built 93083965ab51 01:23:47 Successfully tagged ci-base-image-arm64:latest [Pipeline] isUnix [Pipeline] sh 01:23:48 + docker inspect -f . ci-base-image-arm64 01:23:48 . [Pipeline] withDockerContainer 01:23:48 prd-ubuntu20.04-docker-arm64-4c-16g-41440 does not seem to be running inside a container 01:23:48 $ 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 ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 01:23:49 $ docker top 64ca584a95e0e02cd2404046961e92674dec9990abf0803beeb4527cd9f47644 -eo pid,comm [Pipeline] { [Pipeline] sh 01:23:50 + go version 01:23:50 go version go1.17.6 linux/arm64 [Pipeline] } 01:23:50 $ docker stop --time=1 64ca584a95e0e02cd2404046961e92674dec9990abf0803beeb4527cd9f47644 01:23:52 $ docker rm -f 64ca584a95e0e02cd2404046961e92674dec9990abf0803beeb4527cd9f47644 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 01:23:52 + docker inspect -f . ci-base-image-arm64 01:23:52 . [Pipeline] withDockerContainer 01:23:53 prd-ubuntu20.04-docker-arm64-4c-16g-41440 does not seem to be running inside a container 01:23:53 $ 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 ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 01:23:54 $ docker top 0a6346f5c80484a4aacd55f248450ab38fc6aacd76ab2d82b4952aec81b829fe -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 01:23:55 + make test 01:23:55 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out ./... 01:23:56 ? github.com/edgexfoundry/device-rest-go [no test files] 01:25:33 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 01:25:33 ok github.com/edgexfoundry/device-rest-go/driver 0.069s coverage: 55.2% of statements 01:25:33 WARNING: Linting skipped (not on x86_64 or linter not installed) 01:25:33 CGO_ENABLED=1 GO111MODULE=on go vet ./... 01:25:48 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 01:25:48 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 01:25:48 ./bin/test-attribution-txt.sh [Pipeline] echo 01:25:52 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 01:25:52 $ docker stop --time=1 0a6346f5c80484a4aacd55f248450ab38fc6aacd76ab2d82b4952aec81b829fe 01:25:54 $ docker rm -f 0a6346f5c80484a4aacd55f248450ab38fc6aacd76ab2d82b4952aec81b829fe [Pipeline] // withDockerContainer [Pipeline] sh 01:25:55 + sudo chown -R jenkins:jenkins . [Pipeline] stash 01:25:55 Warning: overwriting stash ‘coverage-report’ 01:25:55 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 01:25:56 + sudo chown -R jenkins:jenkins . [Pipeline] sh 01:25:56 + ls -al . 01:25:56 total 168 01:25:56 drwxrwxr-x 8 jenkins jenkins 4096 May 8 01:25 . 01:25:56 drwxrwxr-x 4 jenkins jenkins 4096 May 8 01:21 .. 01:25:56 -rw-rw-r-- 1 jenkins jenkins 151 May 8 01:21 .dockerignore 01:25:56 drwxrwxr-x 8 jenkins jenkins 4096 May 8 01:22 .git 01:25:56 drwxrwxr-x 3 jenkins jenkins 4096 May 8 01:21 .github 01:25:56 -rw-rw-r-- 1 jenkins jenkins 329 May 8 01:21 .gitignore 01:25:56 -rw-rw-r-- 1 jenkins jenkins 41 May 8 01:21 .golangci.yml 01:25:56 -rw-rw-r-- 1 jenkins jenkins 8463 May 8 01:21 Attribution.txt 01:25:56 -rw-rw-r-- 1 jenkins jenkins 11736 May 8 01:21 CHANGELOG.md 01:25:56 -rw-rw-r-- 1 jenkins jenkins 1672 May 8 01:21 Dockerfile 01:25:56 -rw-rw-r-- 1 jenkins jenkins 677 May 8 01:21 GOVERNANCE.md 01:25:56 -rw-rw-r-- 1 jenkins jenkins 680 May 8 01:21 Jenkinsfile 01:25:56 -rw-rw-r-- 1 jenkins jenkins 11340 May 8 01:21 LICENSE 01:25:56 -rw-rw-r-- 1 jenkins jenkins 1977 May 8 01:21 Makefile 01:25:56 -rw-rw-r-- 1 jenkins jenkins 620 May 8 01:21 OWNERS.md 01:25:56 -rw-rw-r-- 1 jenkins jenkins 8003 May 8 01:21 README.md 01:25:56 -rw-rw-r-- 1 jenkins jenkins 5 May 8 01:19 VERSION 01:25:56 drwxrwxr-x 2 jenkins jenkins 4096 May 8 01:21 bin 01:25:56 drwxrwxr-x 3 jenkins jenkins 4096 May 8 01:21 cmd 01:25:56 -rw-r--r-- 1 jenkins jenkins 9355 May 8 01:25 coverage.out 01:25:56 drwxrwxr-x 2 jenkins jenkins 4096 May 8 01:21 driver 01:25:56 -rw-rw-r-- 1 jenkins jenkins 3333 May 8 01:21 go.mod 01:25:56 -rw-rw-r-- 1 jenkins jenkins 35259 May 8 01:21 go.sum 01:25:56 drwxrwxr-x 3 jenkins jenkins 4096 May 8 01:21 snap 01:25:56 -rw-rw-r-- 1 jenkins jenkins 713 May 8 01:21 version.go [Pipeline] isUnix [Pipeline] sh 01:25:56 + 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=cb582138bc70d2802fb3d94b01a10ce47840d4ce --label arch=arm64 --label version=0.0.0 . 01:25:56 Sending build context to Docker daemon 138.8kB 01:25:56 Step 1/25 : ARG BASE=golang:1.17-alpine3.15 01:25:56 Step 2/25 : FROM ${BASE} AS builder 01:25:56 ---> 93083965ab51 01:25:56 Step 3/25 : ARG MAKE='make build' 01:25:57 ---> Running in 4308c64fdfd5 01:25:57 Removing intermediate container 4308c64fdfd5 01:25:57 ---> 94fba07516d2 01:25:57 Step 4/25 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 01:25:57 ---> Running in 49478d630280 01:25:57 Removing intermediate container 49478d630280 01:25:57 ---> b299035ec30c 01:25:57 Step 5/25 : ARG ALPINE_PKG_EXTRA="" 01:25:58 ---> Running in ba323edfdd86 01:25:58 Removing intermediate container ba323edfdd86 01:25:58 ---> ddef968a8404 01:25:58 Step 6/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 01:25:58 ---> Running in 75f0c42340dd 01:26:00 Removing intermediate container 75f0c42340dd 01:26:00 ---> 4f011d413f93 01:26:00 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 01:26:00 ---> Running in 05b1189edfad 01:26:00 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 01:26:01 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 01:26:02 OK: 224 MiB in 56 packages 01:26:03 Removing intermediate container 05b1189edfad 01:26:03 ---> 20fdcb23d954 01:26:03 Step 8/25 : WORKDIR /device-rest-go 01:26:03 ---> Running in 9fa747f7f7eb 01:26:04 Removing intermediate container 9fa747f7f7eb 01:26:04 ---> bcc3eb90c0b8 01:26:04 Step 9/25 : COPY go.mod vendor* ./ 01:26:04 ---> faa5b0c6428f 01:26:04 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 01:26:04 ---> Running in 3e61ea88fe6e 01:26:06 Removing intermediate container 3e61ea88fe6e 01:26:06 ---> b5b173933d59 01:26:06 Step 11/25 : COPY . . 01:26:07 ---> e98f7fa5b04f 01:26:07 Step 12/25 : RUN $MAKE 01:26:07 ---> Running in 741f5ce3671c 01:26:08 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 01:28:15 Removing intermediate container 741f5ce3671c 01:28:15 ---> 0a3e13815851 01:28:15 Step 13/25 : FROM alpine:3.14 01:28:15 3.14: Pulling from library/alpine 01:28:15 455c02918c45: Pulling fs layer 01:28:15 455c02918c45: Download complete 01:28:15 455c02918c45: Pull complete 01:28:15 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 01:28:15 Status: Downloaded newer image for alpine:3.14 01:28:15 ---> ac73e934f311 01:28:15 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' 01:28:15 ---> Running in ad0f7c230ee7 01:28:15 Removing intermediate container ad0f7c230ee7 01:28:15 ---> 2496979e5ab9 01:28:15 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 01:28:15 ---> Running in 7390121a9c36 01:28:15 Removing intermediate container 7390121a9c36 01:28:15 ---> 153220c241c6 01:28:15 Step 16/25 : RUN apk add --update --no-cache zeromq dumb-init 01:28:15 ---> Running in 8adcbceb39dd 01:28:16 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/aarch64/APKINDEX.tar.gz 01:28:17 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/aarch64/APKINDEX.tar.gz 01:28:18 (1/6) Installing dumb-init (1.2.5-r1) 01:28:18 (2/6) Installing libgcc (10.3.1_git20210424-r2) 01:28:18 (3/6) Installing libsodium (1.0.18-r0) 01:28:18 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 01:28:18 (5/6) Installing libzmq (4.3.4-r0) 01:28:18 (6/6) Installing zeromq (4.3.4-r0) 01:28:18 Executing busybox-1.33.1-r7.trigger 01:28:18 OK: 8 MiB in 20 packages 01:28:19 Removing intermediate container 8adcbceb39dd 01:28:19 ---> 4e919e53497b 01:28:19 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 01:28:20 ---> 0ede5ee4f969 01:28:20 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 01:28:21 ---> e5c9434b1dc4 01:28:21 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 01:28:21 ---> 7d931b8f43df 01:28:21 Step 20/25 : EXPOSE 59986 01:28:21 ---> Running in df48d5d0abbb 01:28:21 Removing intermediate container df48d5d0abbb 01:28:21 ---> f39b3e6d122d 01:28:21 Step 21/25 : ENTRYPOINT ["/device-rest"] 01:28:21 ---> Running in cf9f57fbe567 01:28:22 Removing intermediate container cf9f57fbe567 01:28:22 ---> f2c8bdf76283 01:28:22 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--confdir=/res", "--registry"] 01:28:22 ---> Running in 8e07531f961a 01:28:22 Removing intermediate container 8e07531f961a 01:28:22 ---> 931a91274f65 01:28:22 Step 23/25 : LABEL arch=arm64 01:28:22 ---> Running in f8354defea50 01:28:23 Removing intermediate container f8354defea50 01:28:23 ---> 44387fce88a9 01:28:23 Step 24/25 : LABEL git_sha=cb582138bc70d2802fb3d94b01a10ce47840d4ce 01:28:23 ---> Running in 2f1c3fdde20a 01:28:23 Removing intermediate container 2f1c3fdde20a 01:28:23 ---> ab1ba9b95695 01:28:23 Step 25/25 : LABEL version=0.0.0 01:28:23 ---> Running in 40fcda787fb4 01:28:23 Removing intermediate container 40fcda787fb4 01:28:23 ---> 8e9584835e1f 01:28:23 [Warning] One or more build-args [ARCH] were not consumed 01:28:23 Successfully built 8e9584835e1f 01:28:23 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 01:28:24 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 01:28:24 01:28:24 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] sh 01:28:24 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 01:28:25 arm64: Pulling from edgex-lftools-log-publisher 01:28:25 8998bd30e6a1: Pulling fs layer 01:28:25 04944245beec: Pulling fs layer 01:28:25 699f458cf7ca: Pulling fs layer 01:28:25 765212b225bb: Pulling fs layer 01:28:25 f23df028b6ca: Pulling fs layer 01:28:25 d65c8cfc05b1: Pulling fs layer 01:28:25 2437ff75d9bd: Pulling fs layer 01:28:25 d65c8cfc05b1: Waiting 01:28:25 2437ff75d9bd: Waiting 01:28:25 765212b225bb: Waiting 01:28:25 f23df028b6ca: Waiting 01:28:25 04944245beec: Verifying Checksum 01:28:25 04944245beec: Download complete 01:28:25 765212b225bb: Verifying Checksum 01:28:25 765212b225bb: Download complete 01:28:25 f23df028b6ca: Verifying Checksum 01:28:25 f23df028b6ca: Download complete 01:28:25 d65c8cfc05b1: Verifying Checksum 01:28:25 d65c8cfc05b1: Download complete 01:28:25 699f458cf7ca: Verifying Checksum 01:28:25 699f458cf7ca: Download complete 01:28:25 8998bd30e6a1: Verifying Checksum 01:28:25 8998bd30e6a1: Download complete 01:28:28 2437ff75d9bd: Verifying Checksum 01:28:28 2437ff75d9bd: Download complete 01:28:29 8998bd30e6a1: Pull complete 01:28:30 04944245beec: Pull complete 01:28:31 699f458cf7ca: Pull complete 01:28:32 765212b225bb: Pull complete 01:28:32 f23df028b6ca: Pull complete 01:28:32 d65c8cfc05b1: Pull complete 01:28:47 2437ff75d9bd: Pull complete 01:28:47 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 01:28:47 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 01:28:47 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] withDockerContainer 01:28:48 prd-ubuntu20.04-docker-arm64-4c-16g-41440 does not seem to be running inside a container 01:28:48 $ 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 ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 01:28:50 $ docker top caa5de4f8095d0cfbc2d048acc937cb6e223ebb4332dc0a4d57d4d069de45c5d -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 01:28:51 ---> job-cost.sh 01:28:51 lf-activate-venv: SKIPPING 01:28:51 INFO: No Stack... 01:28:52 INFO: Retrieving Pricing Info for: v3-standard-4 01:28:52 INFO: Archiving Costs [Pipeline] sh 01:28:53 + + catcut /w/workspace/device-rest-go/2/archives/cost.csv 01:28:53 -d, -f6 [Pipeline] lock 01:28:53 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-185-2-stack-cost] 01:28:53 Resource [jenkins-edgexfoundry-device-rest-go-PR-185-2-stack-cost] did not exist. Created. 01:28:53 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-185-2-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 01:28:54 /w/workspace/device-rest-go/2@tmp/durable-2f8d52d0/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 01:28:55 + echo total: 0.10999999940395355 [Pipeline] stash 01:28:55 Warning: overwriting stash ‘stack-cost’ 01:28:55 Stashed 1 file(s) [Pipeline] } 01:28:55 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-185-2-stack-cost] [Pipeline] // lock [Pipeline] } 01:28:55 $ docker stop --time=1 caa5de4f8095d0cfbc2d048acc937cb6e223ebb4332dc0a4d57d4d069de45c5d 01:28:56 $ docker rm -f caa5de4f8095d0cfbc2d048acc937cb6e223ebb4332dc0a4d57d4d069de45c5d [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 01:28:57 provisioning config files... 01:28:57 copy managed file [device-rest-go-codecov-token] to file:/w/workspace/gexfoundry_device-rest-go_PR-185@tmp/config8494072249757345826tmp [Pipeline] { [Pipeline] sh 01:28:57 + set +x 01:28:57 + curl -s https://codecov.io/bash 01:28:57 + bash -s -- 01:28:57 01:28:57 _____ _ 01:28:57 / ____| | | 01:28:57 | | ___ __| | ___ ___ _____ __ 01:28:57 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 01:28:57 | |___| (_) | (_| | __/ (_| (_) \ V / 01:28:57 \_____\___/ \__,_|\___|\___\___/ \_/ 01:28:57 Bash-1.0.6 01:28:57 01:28:57 01:28:57 ==> git version 2.25.1 found 01:28:57 ==> 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 01:28:57 Release-Date: 2020-01-08 01:28:57 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 01:28:57 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 01:28:57 ==> Jenkins CI detected. 01:28:57 current dir:  /w/workspace/gexfoundry_device-rest-go_PR-185 01:28:57 project root: . 01:28:57 --> token set from env 01:28:57 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 01:28:57 ==> Running gcov in . (disable via -X gcov) 01:28:57 ==> Python coveragepy not found 01:28:57 ==> Searching for coverage reports in: 01:28:57 + . 01:28:57 -> Found 1 reports 01:28:57 ==> Detecting git/mercurial file structure 01:28:57 ==> Reading reports 01:28:57 + ./coverage.out bytes=9355 01:28:57 ==> Appending adjustments 01:28:57 https://docs.codecov.io/docs/fixing-reports 01:28:57 + Found adjustments 01:28:57 ==> Gzipping contents 01:28:57 4.0K /tmp/codecov.G4gBZl.gz 01:28:57 ==> Uploading reports 01:28:57 url: https://codecov.io 01:28:57 query: branch=PR-185&commit=cb582138bc70d2802fb3d94b01a10ce47840d4ce&build=2&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-185%2F2%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=185&job=&cmd_args= 01:28:57 -> Pinging Codecov 01:28:57 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=c51feb23-73ac-4f49-b3d1-d26df23137db&branch=PR-185&commit=cb582138bc70d2802fb3d94b01a10ce47840d4ce&build=2&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-185%2F2%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=185&job=&cmd_args= 01:28:58 -> Uploading to 01:28:58 https://storage.googleapis.com/codecov/v4/raw/2022-05-08/4E5D53B4F1F92C436F7061BF334D961C/cb582138bc70d2802fb3d94b01a10ce47840d4ce/646dce4c-48b6-4e5d-8abe-c7e7923c6cf5.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20220508%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20220508T012857Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=6103a9a53fce259f947df286988ac400824b45d19d16d77970e8ac050c25ae62 01:28:58 % Total % Received % Xferd Average Speed Time Time Time Current 01:28:58 Dload Upload Total Spent Left Speed 01:28:58 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 1806 0 0 100 1806 0 8518 --:--:-- --:--:-- --:--:-- 8518 01:28:58 -> Reports have been successfully queued for processing at https://codecov.io/github/edgexfoundry/device-rest-go/commit/cb582138bc70d2802fb3d94b01a10ce47840d4ce [Pipeline] } 01:28:58 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 01:28:59 + [ -d /w/workspace/gexfoundry_device-rest-go_PR-185/archives ] 01:28:59 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-185/archives 01:28:59 total 16 01:28:59 drwxr-xr-x 3 root root 4096 May 8 01:20 . 01:28:59 drwxrwxr-x 10 jenkins jenkins 4096 May 8 01:20 .. 01:28:59 drwxr-xr-x 2 root root 4096 May 8 01:20 cost 01:28:59 -rw-r--r-- 1 root root 85 May 8 01:20 cost.csv 01:28:59 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-rest-go_PR-185/archives 01:28:59 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-185/archives 01:28:59 total 16 01:28:59 drwxr-xr-x 3 jenkins jenkins 4096 May 8 01:20 . 01:28:59 drwxrwxr-x 10 jenkins jenkins 4096 May 8 01:20 .. 01:28:59 drwxr-xr-x 2 jenkins jenkins 4096 May 8 01:20 cost 01:28:59 -rw-r--r-- 1 jenkins jenkins 85 May 8 01:20 cost.csv [Pipeline] libraryResource [Pipeline] sh 01:28:59 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 01:29:00 ---> package-listing.sh 01:29:00 ++ facter osfamily 01:29:00 ++ tr '[:upper:]' '[:lower:]' 01:29:00 + OS_FAMILY=debian 01:29:00 + workspace=/w/workspace/gexfoundry_device-rest-go_PR-185 01:29:00 + START_PACKAGES=/tmp/packages_start.txt 01:29:00 + END_PACKAGES=/tmp/packages_end.txt 01:29:00 + DIFF_PACKAGES=/tmp/packages_diff.txt 01:29:00 + PACKAGES=/tmp/packages_start.txt 01:29:00 + '[' /w/workspace/gexfoundry_device-rest-go_PR-185 ']' 01:29:00 + PACKAGES=/tmp/packages_end.txt 01:29:00 + case "${OS_FAMILY}" in 01:29:00 + dpkg -l 01:29:00 + grep '^ii' 01:29:00 + '[' -f /tmp/packages_start.txt ']' 01:29:00 + '[' -f /tmp/packages_end.txt ']' 01:29:00 + diff /tmp/packages_start.txt /tmp/packages_end.txt 01:29:00 + '[' /w/workspace/gexfoundry_device-rest-go_PR-185 ']' 01:29:00 + mkdir -p /w/workspace/gexfoundry_device-rest-go_PR-185/archives/ 01:29:00 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/gexfoundry_device-rest-go_PR-185/archives/ [Pipeline] echo 01:29:00 Launching container with: [--privileged -u 0:0 --net host -v /var/log/sysstat:/var/log/sysstat -v /var/log/secure:/var/log/secure -v /var/log/auth.log:/var/log/auth.log -v /w/workspace/gexfoundry_device-rest-go_PR-185/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 01:29:00 + facter operatingsystem [Pipeline] isUnix [Pipeline] sh 01:29:01 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 01:29:01 . [Pipeline] withDockerContainer 01:29:01 prd-ubuntu20.04-docker-8c-8g-41439 does not seem to be running inside a container 01:29:01 $ docker run -t -d -u 1001:1001 --privileged -u 0:0 --net host -v /var/log/sysstat:/var/log/sysstat -v /var/log/secure:/var/log/secure -v /var/log/auth.log:/var/log/auth.log -v /w/workspace/gexfoundry_device-rest-go_PR-185/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/gexfoundry_device-rest-go_PR-185 -v /w/workspace/gexfoundry_device-rest-go_PR-185:/w/workspace/gexfoundry_device-rest-go_PR-185:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-185@tmp:/w/workspace/gexfoundry_device-rest-go_PR-185@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 01:29:01 $ docker top 3e5023f5453d60ac2d510d45458cac4f7bcb12972bf6e4c824d97149e0c5e17f -eo pid,comm [Pipeline] { [Pipeline] sh 01:29:02 + touch /tmp/pre-build-complete [Pipeline] sh 01:29:02 + mkdir -p /var/log/sysstat [Pipeline] sh 01:29:02 + ls /var/log/sa-host 01:29:02 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 01:29:02 provisioning config files... 01:29:02 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-185@tmp/config6492478124755994213tmp [Pipeline] { [Pipeline] echo 01:29:02 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 01:29:03 ---> create-netrc.sh [Pipeline] } 01:29:03 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 01:29:03 ---> python-tools-install.sh [Pipeline] echo 01:29:03 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 01:29:03 ---> sudo-logs.sh 01:29:03 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 01:29:03 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 01:29:03 ---> job-cost.sh 01:29:03 lf-activate-venv: SKIPPING 01:29:03 DEBUG: total: 0.2199999988079071 01:29:03 INFO: Retrieving Stack Cost... 01:29:04 INFO: Retrieving Pricing Info for: v3-standard-8 01:29:04 INFO: Archiving Costs [Pipeline] echo 01:29:04 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 01:29:05 ---> logs-deploy.sh 01:29:05 lf-activate-venv: SKIPPING 01:29:05 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-185/2 01:29:05 INFO: archiving workspace using pattern(s): 01:29:06 Archives upload complete. 01:29:06 INFO: archiving logs to Nexus