Pull request #146 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 MonicaisHer for edgexfoundry/device-rest-go Loading trusted files from base branch main at 7759c41568adf15208c0dd5cadcdb8f87895acd8 rather than 0360482d07a1081c93c83dbef0c3950328d2281a Obtained Jenkinsfile from 7759c41568adf15208c0dd5cadcdb8f87895acd8 Running in Durability level: PERFORMANCE_OPTIMIZED 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-ssh6654812792625941430.key > git ls-remote -h -t -- git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Found match: refs/tags/stable revision 686c8e2b17b6b4c6988ddea14cf883eea3c5dfe4 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-ssh5822234638421793482.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 686c8e2b17b6b4c6988ddea14cf883eea3c5dfe4 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-146/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-146/workspace@libs/edgex-global-pipelines@tmp/jenkins-gitclient-ssh2439374028895482110.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision 686c8e2b17b6b4c6988ddea14cf883eea3c5dfe4 (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f 686c8e2b17b6b4c6988ddea14cf883eea3c5dfe4 # timeout=10 Commit message: "Merge pull request #366 from ernestojeda/fix-builder-images-sdk-c" > 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-ssh2355330972489794650.key > git ls-remote -h -- git@github.com:lfit/releng-pipelines.git # timeout=10 Found match: refs/heads/master revision 9bc0e518fca0494fd51682b06eec2da29a326327 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-146/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-146/workspace@libs/lf-pipelines@tmp/jenkins-gitclient-ssh6806624411120402706.key > git fetch --no-tags --progress -- git@github.com:lfit/releng-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10 Checking out Revision 9bc0e518fca0494fd51682b06eec2da29a326327 (master) > git config core.sparsecheckout # timeout=10 > git checkout -f 9bc0e518fca0494fd51682b06eec2da29a326327 # timeout=10 Commit message: "Merge "Fix: Make archiveArtifacts overwriteable in lfJava"" > 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: [[centos7-docker-4c-2g, ubuntu18.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.16 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 ‘centos7-docker-4c-2g’ Running on prd-centos7-docker-4c-2g-951 in /w/workspace/gexfoundry_device-rest-go_PR-146 [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-146 # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git > git --version # timeout=10 > git --version # 'git version 2.24.4' 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 /w/workspace/gexfoundry_device-rest-go_PR-146@tmp/jenkins-gitclient-ssh7184810273220160155.key > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > 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 [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /w/workspace/gexfoundry_device-rest-go_PR-146@tmp/jenkins-gitclient-ssh4887060306051158254.key > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/146/head:refs/remotes/origin/PR-146 +refs/heads/main:refs/remotes/origin/main # timeout=10 Merging remotes/origin/main commit 7759c41568adf15208c0dd5cadcdb8f87895acd8 into PR head commit 0360482d07a1081c93c83dbef0c3950328d2281a Merge succeeded, producing 0360482d07a1081c93c83dbef0c3950328d2281a Checking out Revision 0360482d07a1081c93c83dbef0c3950328d2281a (PR-146) > git config core.sparsecheckout # timeout=10 > git checkout -f 0360482d07a1081c93c83dbef0c3950328d2281a # timeout=10 > git remote # timeout=10 > 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 /w/workspace/gexfoundry_device-rest-go_PR-146@tmp/jenkins-gitclient-ssh46492949464690336.key > git merge 7759c41568adf15208c0dd5cadcdb8f87895acd8 # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 0360482d07a1081c93c83dbef0c3950328d2281a # timeout=10 Commit message: "docs(snap): update snap/README's format" > git rev-list --no-walk 1941e3630abaae09606c5ad1af3cca3f79fef641 # timeout=10 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 11:14:03 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 11:14:03 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 11:14:03 ========================================================= 11:14:03 EdgeX Global Pipelines Version Info 11:14:03 ========================================================= [Pipeline] libraryResource [Pipeline] sh 11:14:05 ------------------- 11:14:05 stable info: 11:14:05 ------------------- 11:14:05 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 11:14:05 Commit SHA: 686c8e2b17b6b4c6988ddea14cf883eea3c5dfe4 11:14:05 Message: update stable to v1.0.215 11:14:06 ------------------- 11:14:06 experimental info: 11:14:06 ------------------- 11:14:06 Commited By: **** collab-it+edgex@linuxfoundation.org 11:14:06 Commit SHA: 686c8e2b17b6b4c6988ddea14cf883eea3c5dfe4 11:14:06 Message: update experimental to v1.0.215 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 11:14:06 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 11:14:06 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 11:14:06 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 11:14:06 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 11:14:06 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 11:14:06 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.16 [Pipeline] echo 11:14:06 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 11:14:06 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 11:14:06 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 11:14:06 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 11:14:06 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 11:14:06 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 11:14:06 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 11:14:06 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 11:14:06 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 11:14:06 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 11:14:06 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 11:14:06 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 11:14:06 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 11:14:06 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 11:14:06 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 11:14:06 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 11:14:06 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 11:14:06 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 11:14:06 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 11:14:06 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 11:14:06 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-146 [Pipeline] echo 11:14:06 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-146 [Pipeline] echo 11:14:06 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-146 [Pipeline] echo 11:14:06 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 0360482d07a1081c93c83dbef0c3950328d2281a [Pipeline] echo 11:14:06 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 0360482 [Pipeline] echo 11:14:06 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 11:14:06 provisioning config files... 11:14:06 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-146@tmp/config5668616407501188775tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 11:14:07 ---> docker-login.sh 11:14:07 nexus3.edgexfoundry.org:10001 11:14:07 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:14:07 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:14:07 Configure a credential helper to remove this warning. See 11:14:07 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:14:07 11:14:07 Login Succeeded 11:14:07 nexus3.edgexfoundry.org:10002 11:14:07 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:14:07 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:14:07 Configure a credential helper to remove this warning. See 11:14:07 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:14:07 11:14:07 Login Succeeded 11:14:07 nexus3.edgexfoundry.org:10003 11:14:07 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:14:07 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:14:07 Configure a credential helper to remove this warning. See 11:14:07 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:14:07 11:14:07 Login Succeeded 11:14:07 nexus3.edgexfoundry.org:10004 11:14:07 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:14:07 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:14:07 Configure a credential helper to remove this warning. See 11:14:07 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:14:07 11:14:07 Login Succeeded 11:14:07 docker.io 11:14:07 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:14:08 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:14:08 Configure a credential helper to remove this warning. See 11:14:08 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:14:08 11:14:08 Login Succeeded 11:14:08 ---> docker-login.sh ends [Pipeline] } 11:14:08 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 11:14:08 + git rev-list -1 --merges 0360482d07a1081c93c83dbef0c3950328d2281a~1..0360482d07a1081c93c83dbef0c3950328d2281a [Pipeline] echo 11:14:08 -----------> git rev-list -1 --merges 0360482d07a1081c93c83dbef0c3950328d2281a~1..0360482d07a1081c93c83dbef0c3950328d2281a 0360482d07a1081c93c83dbef0c3950328d2281a [false] [Pipeline] sh 11:14:09 + git log --format=format:%s -1 0360482d07a1081c93c83dbef0c3950328d2281a [Pipeline] echo 11:14:09 ========================================================= 11:14:09 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 11:14:09 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 11:14:09 + git log --format=format:%s -1 0360482d07a1081c93c83dbef0c3950328d2281a [Pipeline] echo 11:14:09 [semverPrep] GIT_COMMIT: 0360482d07a1081c93c83dbef0c3950328d2281a, Commit Message: docs(snap): update snap/README's format [Pipeline] echo 11:14:09 [semverPrep] This is not a build commit. [Pipeline] isUnix [Pipeline] sh 11:14:09 + docker inspect -f . nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 11:14:09 11:14:09 Error: No such object: nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] isUnix [Pipeline] sh 11:14:10 + docker pull nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 11:14:10 latest: Pulling from edgex-devops/git-semver 11:14:10 a0d0a0d46f8b: Pulling fs layer 11:14:10 3e5f54012d9b: Pulling fs layer 11:14:10 4c7163046ea9: Pulling fs layer 11:14:10 0c2d73faf560: Pulling fs layer 11:14:10 0c2d73faf560: Waiting 11:14:10 3e5f54012d9b: Verifying Checksum 11:14:10 3e5f54012d9b: Download complete 11:14:10 a0d0a0d46f8b: Verifying Checksum 11:14:10 a0d0a0d46f8b: Download complete 11:14:10 0c2d73faf560: Verifying Checksum 11:14:10 0c2d73faf560: Download complete 11:14:10 4c7163046ea9: Verifying Checksum 11:14:10 4c7163046ea9: Download complete 11:14:10 a0d0a0d46f8b: Pull complete 11:14:10 3e5f54012d9b: Pull complete 11:14:10 4c7163046ea9: Pull complete 11:14:10 0c2d73faf560: Pull complete 11:14:10 Digest: sha256:2751de6e655929dcbe46418c7769d9d992331b5b721eb968631a4166222929f9 11:14:10 Status: Downloaded newer image for nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 11:14:10 nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] withDockerContainer 11:14:10 prd-centos7-docker-4c-2g-951 does not seem to be running inside a container 11:14:11 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/gexfoundry_device-rest-go_PR-146 -v /w/workspace/gexfoundry_device-rest-go_PR-146:/w/workspace/gexfoundry_device-rest-go_PR-146:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-146@tmp:/w/workspace/gexfoundry_device-rest-go_PR-146@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest cat 11:14:11 $ docker top a6dd9f1f2658ff6c5697ff775c8a8630ec2f0b1102c8bc66c2c5172f6408986f -eo pid,comm [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 11:14:11 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 11:14:11 [ssh-agent] Looking for ssh-agent implementation... 11:14:11 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 11:14:11 $ docker exec a6dd9f1f2658ff6c5697ff775c8a8630ec2f0b1102c8bc66c2c5172f6408986f ssh-agent 11:14:11 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXMAdcde/agent.14 11:14:11 SSH_AGENT_PID=21 11:14:12 Running ssh-add (command line suppressed) 11:14:12 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-146@tmp/private_key_1322205621936122309.key (/w/workspace/gexfoundry_device-rest-go_PR-146@tmp/private_key_1322205621936122309.key) 11:14:12 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 11:14:12 + git tag --points-at HEAD [Pipeline] } 11:14:12 $ docker exec --env ******** --env ******** a6dd9f1f2658ff6c5697ff775c8a8630ec2f0b1102c8bc66c2c5172f6408986f ssh-agent -k 11:14:12 unset SSH_AUTH_SOCK; 11:14:12 unset SSH_AGENT_PID; 11:14:12 echo Agent pid 21 killed; 11:14:12 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 11:14:12 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 11:14:12 [ssh-agent] Looking for ssh-agent implementation... 11:14:12 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 11:14:12 $ docker exec a6dd9f1f2658ff6c5697ff775c8a8630ec2f0b1102c8bc66c2c5172f6408986f ssh-agent 11:14:12 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXObELgG/agent.54 11:14:12 SSH_AGENT_PID=60 11:14:12 Running ssh-add (command line suppressed) 11:14:12 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-146@tmp/private_key_4298552735322897115.key (/w/workspace/gexfoundry_device-rest-go_PR-146@tmp/private_key_4298552735322897115.key) 11:14:12 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 11:14:13 + git semver init 11:14:13 # -> Open(): unable to determine branch for HEAD 11:14:13 # $GIT_DIR = /w/workspace/gexfoundry_device-rest-go_PR-146/.git 11:14:13 # $GIT_WORK_TREE = /w/workspace/gexfoundry_device-rest-go_PR-146 11:14:13 # $SEMVER_REMOTE_NAME = origin 11:14:13 # $SEMVER_USER_EMAIL = collab-it+edgex@linuxfoundation.org 11:14:13 # $SEMVER_USER_NAME = edgex-jenkins 11:14:13 # $SEMVER_BRANCH = PR-146 11:14:13 # $SEMVER_TEMP = /tmp/semver-831396138 11:14:13 # git clone --branch semver git@github.com:edgexfoundry/device-rest-go.git $SEMVER_TEMP 11:14:13 # -> Clone(): ssh: handshake failed: knownhosts: key mismatch 11:14:13 # git init /tmp/semver-831396138 11:14:13 # '/tmp/semver-831396138' -> '/w/workspace/gexfoundry_device-rest-go_PR-146/.semver' 11:14:13 # -> Force: false 11:14:13 # $SEMVER_DIR = /w/workspace/gexfoundry_device-rest-go_PR-146/.semver [Pipeline] } 11:14:13 $ docker exec --env ******** --env ******** a6dd9f1f2658ff6c5697ff775c8a8630ec2f0b1102c8bc66c2c5172f6408986f ssh-agent -k 11:14:13 unset SSH_AUTH_SOCK; 11:14:13 unset SSH_AGENT_PID; 11:14:13 echo Agent pid 60 killed; 11:14:13 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 11:14:13 + git semver [Pipeline] } 11:14:13 $ docker stop --time=1 a6dd9f1f2658ff6c5697ff775c8a8630ec2f0b1102c8bc66c2c5172f6408986f 11:14:14 $ docker rm -f a6dd9f1f2658ff6c5697ff775c8a8630ec2f0b1102c8bc66c2c5172f6408986f [Pipeline] // withDockerContainer [Pipeline] sh 11:14:15 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 11:14:15 Stashed 1 file(s) [Pipeline] echo 11:14:15 [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] node [Pipeline] node 11:14:30 Still waiting to schedule task 11:14:30 Waiting for next available executor on ‘centos7-docker-4c-2g’ 11:14:30 Still waiting to schedule task 11:14:30 ‘prd-ubuntu18.04-docker-arm64-4c-16g-949’ is offline 11:15:44 Running on prd-centos7-docker-4c-2g-953 in /w/workspace/gexfoundry_device-rest-go_PR-146 [Pipeline] { [Pipeline] ws 11:15:44 Running in /w/workspace/device-rest-go/4 [Pipeline] { [Pipeline] checkout 11:15:44 The recommended git tool is: git 11:15:46 using credential edgex-jenkins-ssh 11:15:46 Cloning the remote Git repository 11:15:45 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 11:15:45 > git init /w/workspace/device-rest-go/4 # timeout=10 11:15:45 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 11:15:45 > git --version # timeout=10 11:15:45 > git --version # 'git version 2.24.4' 11:15:45 using GIT_SSH to set credentials SSH Credentials for GitHub 11:15:45 [INFO] Currently running in a labeled security context 11:15:45 [INFO] Currently SELinux is 'enforcing' on the host 11:15:45 > /usr/bin/chcon --type=ssh_home_t /w/workspace/device-rest-go/4@tmp/jenkins-gitclient-ssh8678695672133366554.key 11:15:45 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 11:15:46 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 11:15:46 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 11:15:46 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 11:15:46 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 11:15:46 using GIT_SSH to set credentials SSH Credentials for GitHub 11:15:46 [INFO] Currently running in a labeled security context 11:15:46 [INFO] Currently SELinux is 'enforcing' on the host 11:15:46 > /usr/bin/chcon --type=ssh_home_t /w/workspace/device-rest-go/4@tmp/jenkins-gitclient-ssh2867791191576525880.key 11:15:46 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/146/head:refs/remotes/origin/PR-146 +refs/heads/main:refs/remotes/origin/main # timeout=10 11:15:47 Merging remotes/origin/main commit 7759c41568adf15208c0dd5cadcdb8f87895acd8 into PR head commit 0360482d07a1081c93c83dbef0c3950328d2281a 11:15:47 Merge succeeded, producing 0360482d07a1081c93c83dbef0c3950328d2281a 11:15:47 Checking out Revision 0360482d07a1081c93c83dbef0c3950328d2281a (PR-146) 11:15:47 > git config core.sparsecheckout # timeout=10 11:15:47 > git checkout -f 0360482d07a1081c93c83dbef0c3950328d2281a # timeout=10 11:15:47 > git remote # timeout=10 11:15:47 > git config --get remote.origin.url # timeout=10 11:15:47 using GIT_SSH to set credentials SSH Credentials for GitHub 11:15:47 [INFO] Currently running in a labeled security context 11:15:47 [INFO] Currently SELinux is 'enforcing' on the host 11:15:47 > /usr/bin/chcon --type=ssh_home_t /w/workspace/device-rest-go/4@tmp/jenkins-gitclient-ssh7601775437476344650.key 11:15:47 > git merge 7759c41568adf15208c0dd5cadcdb8f87895acd8 # timeout=10 11:15:47 > git rev-parse HEAD^{commit} # timeout=10 11:15:47 > git config core.sparsecheckout # timeout=10 11:15:47 > git checkout -f 0360482d07a1081c93c83dbef0c3950328d2281a # timeout=10 11:15:51 Commit message: "docs(snap): update snap/README's format" [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 11:15:51 provisioning config files... 11:15:51 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/4@tmp/config1682019661069454608tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 11:15:52 ---> docker-login.sh 11:15:52 nexus3.edgexfoundry.org:10001 11:15:52 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:15:52 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:15:52 Configure a credential helper to remove this warning. See 11:15:52 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:15:52 11:15:52 Login Succeeded 11:15:52 nexus3.edgexfoundry.org:10002 11:15:52 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:15:52 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:15:52 Configure a credential helper to remove this warning. See 11:15:52 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:15:52 11:15:52 Login Succeeded 11:15:52 nexus3.edgexfoundry.org:10003 11:15:52 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:15:52 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:15:52 Configure a credential helper to remove this warning. See 11:15:52 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:15:52 11:15:52 Login Succeeded 11:15:52 nexus3.edgexfoundry.org:10004 11:15:52 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:15:52 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:15:52 Configure a credential helper to remove this warning. See 11:15:52 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:15:52 11:15:52 Login Succeeded 11:15:52 docker.io 11:15:52 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:15:53 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:15:53 Configure a credential helper to remove this warning. See 11:15:53 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:15:53 11:15:53 Login Succeeded 11:15:53 ---> docker-login.sh ends [Pipeline] } 11:15:53 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 11:15:53 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 11:15:53 ========================================================= 11:15:53 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.16-alpine] 11:15:53 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 11:15:53 + docker build -t ci-base-image-x86_64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.16-alpine --build-arg 'MAKE=echo noop' --target=builder . 11:15:53 Sending build context to Docker daemon 121.9kB 11:15:53 Step 1/11 : ARG BASE=golang:1.16-alpine3.14 11:15:53 Step 2/11 : FROM ${BASE} AS builder 11:15:53 1.16-alpine: Pulling from edgex-devops/edgex-golang-base 11:15:53 a0d0a0d46f8b: Pulling fs layer 11:15:53 31adcdaf11c8: Pulling fs layer 11:15:53 b8b176561691: Pulling fs layer 11:15:53 4527c011a84f: Pulling fs layer 11:15:53 5d74067f8e1e: Pulling fs layer 11:15:53 e0aca202a116: Pulling fs layer 11:15:53 3a43be97a3b4: Pulling fs layer 11:15:53 34cad66bf833: Pulling fs layer 11:15:53 b4e3c513aaa6: Pulling fs layer 11:15:53 e0aca202a116: Waiting 11:15:53 3a43be97a3b4: Waiting 11:15:53 34cad66bf833: Waiting 11:15:53 b4e3c513aaa6: Waiting 11:15:53 4527c011a84f: Waiting 11:15:53 5d74067f8e1e: Waiting 11:15:53 b8b176561691: Verifying Checksum 11:15:53 b8b176561691: Download complete 11:15:53 31adcdaf11c8: Download complete 11:15:53 5d74067f8e1e: Verifying Checksum 11:15:53 5d74067f8e1e: Download complete 11:15:53 e0aca202a116: Verifying Checksum 11:15:53 e0aca202a116: Download complete 11:15:54 a0d0a0d46f8b: Verifying Checksum 11:15:54 a0d0a0d46f8b: Download complete 11:15:54 3a43be97a3b4: Verifying Checksum 11:15:54 3a43be97a3b4: Download complete 11:15:54 34cad66bf833: Verifying Checksum 11:15:54 34cad66bf833: Download complete 11:15:54 a0d0a0d46f8b: Pull complete 11:15:54 4527c011a84f: Verifying Checksum 11:15:54 4527c011a84f: Download complete 11:15:54 b4e3c513aaa6: Verifying Checksum 11:15:54 b4e3c513aaa6: Download complete 11:15:54 31adcdaf11c8: Pull complete 11:15:54 b8b176561691: Pull complete 11:15:58 4527c011a84f: Pull complete 11:15:58 5d74067f8e1e: Pull complete 11:15:58 e0aca202a116: Pull complete 11:15:58 3a43be97a3b4: Pull complete 11:15:58 34cad66bf833: Pull complete 11:16:00 Running on prd-ubuntu18.04-docker-arm64-4c-16g-952 in /w/workspace/gexfoundry_device-rest-go_PR-146 [Pipeline] { [Pipeline] ws 11:16:00 Running in /w/workspace/device-rest-go/4 [Pipeline] { [Pipeline] checkout 11:16:00 The recommended git tool is: git 11:16:01 b4e3c513aaa6: Pull complete 11:16:01 Digest: sha256:75229776e65f3af88907aed05f91058a30c94a2fbbc20266ef4560f68deb3433 11:16:01 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.16-alpine 11:16:01 ---> 9f6097aaca64 11:16:01 Step 3/11 : ARG MAKE='make build' 11:16:04 ---> Running in cddb25c771a9 11:16:04 Removing intermediate container cddb25c771a9 11:16:04 ---> 92b4a45ea6f4 11:16:04 Step 4/11 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 11:16:04 ---> Running in 9fd12aca8e2b 11:16:04 Removing intermediate container 9fd12aca8e2b 11:16:04 ---> f90f93c92463 11:16:04 Step 5/11 : ARG ALPINE_PKG_EXTRA="" 11:16:04 ---> Running in 6e91fdd8f77a 11:16:05 Removing intermediate container 6e91fdd8f77a 11:16:05 ---> bef6176af2d0 11:16:05 Step 6/11 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 11:16:05 ---> Running in 8106b94045d2 11:16:05 Removing intermediate container 8106b94045d2 11:16:05 ---> 6c3951474842 11:16:05 Step 7/11 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 11:16:05 ---> Running in 82682182b057 11:16:05 fetch https://nl.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz 11:16:05 using credential edgex-jenkins-ssh 11:16:06 Cloning the remote Git repository 11:16:06 fetch https://nl.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz 11:16:06 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 11:16:06 > git init /w/workspace/device-rest-go/4 # timeout=10 11:16:06 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 11:16:06 > git --version # timeout=10 11:16:06 > git --version # 'git version 2.17.1' 11:16:06 using GIT_SSH to set credentials SSH Credentials for GitHub 11:16:06 > git fetch --tags --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 11:16:06 (1/4) Installing openssh-keygen (8.6_p1-r3) 11:16:06 (2/4) Installing libedit (20210216.3.1-r0) 11:16:07 (3/4) Installing openssh-client-common (8.6_p1-r3) 11:16:07 (4/4) Installing openssh-client-default (8.6_p1-r3) 11:16:07 Executing busybox-1.33.1-r3.trigger 11:16:07 OK: 224 MiB in 56 packages 11:16:07 Removing intermediate container 82682182b057 11:16:07 ---> d76f81e5a105 11:16:07 Step 8/11 : WORKDIR /device-rest-go 11:16:07 ---> Running in e5c2acb70aac 11:16:07 Removing intermediate container e5c2acb70aac 11:16:07 ---> 1529f92fb5ae 11:16:07 Step 9/11 : COPY . . 11:16:07 ---> e9c732cbbdb7 11:16:07 Step 10/11 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 11:16:07 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 11:16:07 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 11:16:07 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 11:16:08 ---> Running in b226a6fefcad 11:16:08 Merging remotes/origin/main commit 7759c41568adf15208c0dd5cadcdb8f87895acd8 into PR head commit 0360482d07a1081c93c83dbef0c3950328d2281a 11:16:08 Merge succeeded, producing 0360482d07a1081c93c83dbef0c3950328d2281a 11:16:08 Checking out Revision 0360482d07a1081c93c83dbef0c3950328d2281a (PR-146) 11:16:08 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 11:16:08 using GIT_SSH to set credentials SSH Credentials for GitHub 11:16:08 > git fetch --tags --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/146/head:refs/remotes/origin/PR-146 +refs/heads/main:refs/remotes/origin/main # timeout=10 11:16:08 > git config core.sparsecheckout # timeout=10 11:16:08 > git checkout -f 0360482d07a1081c93c83dbef0c3950328d2281a # timeout=10 11:16:08 > git remote # timeout=10 11:16:08 > git config --get remote.origin.url # timeout=10 11:16:08 using GIT_SSH to set credentials SSH Credentials for GitHub 11:16:08 > git merge 7759c41568adf15208c0dd5cadcdb8f87895acd8 # timeout=10 11:16:08 > git rev-parse HEAD^{commit} # timeout=10 11:16:08 > git config core.sparsecheckout # timeout=10 11:16:09 > git checkout -f 0360482d07a1081c93c83dbef0c3950328d2281a # timeout=10 11:16:13 Commit message: "docs(snap): update snap/README's format" [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 11:16:13 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 11:16:13 % Total % Received % Xferd Average Speed Time Time Time Current 11:16:13 Dload Upload Total Spent Left Speed 11:16:13 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 11824 100 11824 0 0 80986 0 --:--:-- --:--:-- --:--:-- 80986 [Pipeline] sh 11:16:14 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 11:16:14 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 11:16:14 + sudo tee /etc/docker/daemon.new 11:16:14 { 11:16:14 "registry-mirrors": [ 11:16:14 "https://nexus3.edgexfoundry.org:10001" 11:16:14 ], 11:16:14 "bip": "10.250.0.254/24", 11:16:14 "hosts": [ 11:16:14 "tcp://0.0.0.0:5555", 11:16:14 "unix:///var/run/docker.sock" 11:16:14 ], 11:16:14 "mtu": 1458, 11:16:14 "selinux-enabled": true, 11:16:14 "seccomp-profile": "/etc/docker/seccomp.json" 11:16:14 } [Pipeline] sh 11:16:15 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 11:16:15 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 11:16:33 provisioning config files... 11:16:33 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/4@tmp/config5827512984375386201tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 11:16:34 ---> docker-login.sh 11:16:34 nexus3.edgexfoundry.org:10001 11:16:34 Removing intermediate container b226a6fefcad 11:16:34 ---> 5f2ca56ad1c7 11:16:34 Step 11/11 : RUN $MAKE 11:16:34 ---> Running in 463ac4b71d85 11:16:34 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:16:34 noop 11:16:35 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:16:35 Configure a credential helper to remove this warning. See 11:16:35 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:16:35 11:16:35 Login Succeeded 11:16:35 nexus3.edgexfoundry.org:10002 11:16:35 Removing intermediate container 463ac4b71d85 11:16:35 ---> 365cc3a7f1f4 11:16:35 Successfully built 365cc3a7f1f4 11:16:35 Successfully tagged ci-base-image-x86_64:latest [Pipeline] isUnix [Pipeline] sh 11:16:35 + docker inspect -f . ci-base-image-x86_64 11:16:35 . [Pipeline] withDockerContainer 11:16:35 prd-centos7-docker-4c-2g-953 does not seem to be running inside a container 11:16:35 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:16:35 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:16:35 Configure a credential helper to remove this warning. See 11:16:35 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:16:35 11:16:35 Login Succeeded 11:16:35 nexus3.edgexfoundry.org:10003 11:16:35 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/4 -v /w/workspace/device-rest-go/4:/w/workspace/device-rest-go/4:rw,z -v /w/workspace/device-rest-go/4@tmp:/w/workspace/device-rest-go/4@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 11:16:35 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:16:36 $ docker top 1ca9e3d9a6c5df29a75b82c9e969a5cca6c3876127ae18683824d2a0ac4bff83 -eo pid,comm [Pipeline] { [Pipeline] sh 11:16:36 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:16:36 Configure a credential helper to remove this warning. See 11:16:36 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:16:36 11:16:36 Login Succeeded 11:16:36 nexus3.edgexfoundry.org:10004 11:16:36 + go version 11:16:36 go version go1.16.8 linux/amd64 [Pipeline] } 11:16:36 $ docker stop --time=1 1ca9e3d9a6c5df29a75b82c9e969a5cca6c3876127ae18683824d2a0ac4bff83 11:16:36 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:16:36 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:16:36 Configure a credential helper to remove this warning. See 11:16:36 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:16:36 11:16:36 Login Succeeded 11:16:36 docker.io 11:16:37 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:16:37 $ docker rm -f 1ca9e3d9a6c5df29a75b82c9e969a5cca6c3876127ae18683824d2a0ac4bff83 11:16:37 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:16:37 Configure a credential helper to remove this warning. See 11:16:37 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:16:37 11:16:37 Login Succeeded 11:16:37 ---> docker-login.sh ends [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] } 11:16:37 Deleting 1 temporary files [Pipeline] // script [Pipeline] // configFileProvider [Pipeline] } [Pipeline] } [Pipeline] // stage [Pipeline] // withEnv [Pipeline] unstash [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 11:16:38 + docker inspect -f . ci-base-image-x86_64 11:16:38 . [Pipeline] withDockerContainer 11:16:38 prd-centos7-docker-4c-2g-953 does not seem to be running inside a container 11:16:38 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/4 -v /w/workspace/device-rest-go/4:/w/workspace/device-rest-go/4:rw,z -v /w/workspace/device-rest-go/4@tmp:/w/workspace/device-rest-go/4@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 11:16:38 $ docker top 15549ffe5ad147f02606ca0846c3f4aadff45a56bea52e8cf205fcb07e63d5f8 -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] echo 11:16:38 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] sh [Pipeline] echo 11:16:38 ========================================================= 11:16:38 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.16-alpine] 11:16:38 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 11:16:38 + make test 11:16:38 CGO_ENABLED=1 GO111MODULE=on go test -coverprofile=coverage.out ./... 11:16:39 + docker build -t ci-base-image-arm64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.16-alpine --build-arg MAKE=echo noop --target=builder . 11:16:39 Sending build context to Docker daemon 121.9kB 11:16:39 ? github.com/edgexfoundry/device-rest-go [no test files] 11:16:39 Step 1/11 : ARG BASE=golang:1.16-alpine3.14 11:16:39 Step 2/11 : FROM ${BASE} AS builder 11:16:39 1.16-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 11:16:39 552d1f2373af: Pulling fs layer 11:16:39 ea3f2d53f512: Pulling fs layer 11:16:39 9e70ebbbe112: Pulling fs layer 11:16:39 7a9cfe048b4a: Pulling fs layer 11:16:39 72dc09318566: Pulling fs layer 11:16:39 f4f7b4309257: Pulling fs layer 11:16:39 0ac9a79272e3: Pulling fs layer 11:16:39 b78e95d17946: Pulling fs layer 11:16:39 f4f7b4309257: Waiting 11:16:39 0ac9a79272e3: Waiting 11:16:39 b78e95d17946: Waiting 11:16:39 7a9cfe048b4a: Waiting 11:16:39 72dc09318566: Waiting 11:16:39 9e70ebbbe112: Verifying Checksum 11:16:39 9e70ebbbe112: Download complete 11:16:39 ea3f2d53f512: Verifying Checksum 11:16:39 ea3f2d53f512: Download complete 11:16:39 72dc09318566: Verifying Checksum 11:16:39 72dc09318566: Download complete 11:16:39 f4f7b4309257: Verifying Checksum 11:16:39 f4f7b4309257: Download complete 11:16:39 552d1f2373af: Verifying Checksum 11:16:39 552d1f2373af: Download complete 11:16:39 0ac9a79272e3: Verifying Checksum 11:16:39 0ac9a79272e3: Download complete 11:16:40 552d1f2373af: Pull complete 11:16:41 ea3f2d53f512: Pull complete 11:16:41 9e70ebbbe112: Pull complete 11:16:41 b78e95d17946: Verifying Checksum 11:16:41 b78e95d17946: Download complete 11:16:42 7a9cfe048b4a: Verifying Checksum 11:16:42 7a9cfe048b4a: Download complete 11:16:52 7a9cfe048b4a: Pull complete 11:16:52 72dc09318566: Pull complete 11:16:52 f4f7b4309257: Pull complete 11:16:53 0ac9a79272e3: Pull complete 11:16:57 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 11:16:57 ok github.com/edgexfoundry/device-rest-go/driver 0.009s coverage: 56.0% of statements 11:16:57 CGO_ENABLED=1 GO111MODULE=on go vet ./... 11:16:58 b78e95d17946: Pull complete 11:16:58 Digest: sha256:8f77ec77db7124c2038421266515449a73d34d95fd7f90866b77fbf8f5a401c7 11:16:58 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.16-alpine 11:16:58 ---> 8b459fc5aaf0 11:16:58 Step 3/11 : ARG MAKE='make build' 11:17:00 ---> Running in f08aaf202347 11:17:00 Removing intermediate container f08aaf202347 11:17:00 ---> 87d63fec8262 11:17:00 Step 4/11 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 11:17:00 ---> Running in ef8ac749d5dd 11:17:00 Removing intermediate container ef8ac749d5dd 11:17:00 ---> 7540fe583773 11:17:00 Step 5/11 : ARG ALPINE_PKG_EXTRA="" 11:17:01 ---> Running in f39d82edbb38 11:17:01 Removing intermediate container f39d82edbb38 11:17:01 ---> 4f2153999c26 11:17:01 Step 6/11 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 11:17:01 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 11:17:01 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 11:17:01 ./bin/test-attribution-txt.sh 11:17:01 ---> Running in 8fb4b4bf2332 [Pipeline] echo 11:17:02 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 11:17:02 $ docker stop --time=1 15549ffe5ad147f02606ca0846c3f4aadff45a56bea52e8cf205fcb07e63d5f8 11:17:03 $ docker rm -f 15549ffe5ad147f02606ca0846c3f4aadff45a56bea52e8cf205fcb07e63d5f8 11:17:03 Removing intermediate container 8fb4b4bf2332 11:17:03 ---> dd759ee48be3 11:17:03 Step 7/11 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 11:17:03 ---> Running in 72610a566c84 [Pipeline] // withDockerContainer [Pipeline] sh 11:17:04 + sudo chown -R jenkins:jenkins . [Pipeline] stash 11:17:04 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 11:17:04 + sudo chown -R jenkins:jenkins . [Pipeline] sh 11:17:05 fetch https://nl.alpinelinux.org/alpine/v3.14/main/aarch64/APKINDEX.tar.gz 11:17:05 + ls -al . 11:17:05 total 148 11:17:05 drwxrwxr-x. 8 jenkins jenkins 4096 Nov 17 11:17 . 11:17:05 drwxrwxr-x. 4 jenkins jenkins 28 Nov 17 11:15 .. 11:17:05 -rw-rw-r--. 1 jenkins jenkins 7095 Nov 17 11:15 Attribution.txt 11:17:05 drwxrwxr-x. 2 jenkins jenkins 37 Nov 17 11:15 bin 11:17:05 -rw-rw-r--. 1 jenkins jenkins 7459 Nov 17 11:15 CHANGELOG.md 11:17:05 drwxrwxr-x. 3 jenkins jenkins 32 Nov 17 11:15 cmd 11:17:05 -rw-r--r--. 1 jenkins jenkins 9215 Nov 17 11:16 coverage.out 11:17:05 -rw-rw-r--. 1 jenkins jenkins 1649 Nov 17 11:15 Dockerfile 11:17:05 -rw-rw-r--. 1 jenkins jenkins 151 Nov 17 11:15 .dockerignore 11:17:05 drwxrwxr-x. 2 jenkins jenkins 76 Nov 17 11:15 driver 11:17:05 drwxrwxr-x. 8 jenkins jenkins 179 Nov 17 11:15 .git 11:17:05 drwxrwxr-x. 2 jenkins jenkins 103 Nov 17 11:15 .github 11:17:05 -rw-rw-r--. 1 jenkins jenkins 329 Nov 17 11:15 .gitignore 11:17:05 -rw-rw-r--. 1 jenkins jenkins 271 Nov 17 11:15 go.mod 11:17:05 -rw-rw-r--. 1 jenkins jenkins 49306 Nov 17 11:15 go.sum 11:17:05 -rw-rw-r--. 1 jenkins jenkins 677 Nov 17 11:15 GOVERNANCE.md 11:17:05 -rw-rw-r--. 1 jenkins jenkins 680 Nov 17 11:15 Jenkinsfile 11:17:05 -rw-rw-r--. 1 jenkins jenkins 11340 Nov 17 11:15 LICENSE 11:17:05 -rw-rw-r--. 1 jenkins jenkins 1078 Nov 17 11:15 Makefile 11:17:05 -rw-rw-r--. 1 jenkins jenkins 620 Nov 17 11:15 OWNERS.md 11:17:05 -rw-rw-r--. 1 jenkins jenkins 8246 Nov 17 11:15 README.md 11:17:05 drwxrwxr-x. 3 jenkins jenkins 58 Nov 17 11:15 snap 11:17:05 -rw-rw-r--. 1 jenkins jenkins 5 Nov 17 11:14 VERSION 11:17:05 -rw-rw-r--. 1 jenkins jenkins 713 Nov 17 11:15 version.go [Pipeline] isUnix [Pipeline] sh 11:17:05 + 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=0360482d07a1081c93c83dbef0c3950328d2281a --label arch=amd64 --label version=0.0.0 . 11:17:05 Sending build context to Docker daemon 131.6kB 11:17:05 Step 1/24 : ARG BASE=golang:1.16-alpine3.14 11:17:05 Step 2/24 : FROM ${BASE} AS builder 11:17:05 ---> 365cc3a7f1f4 11:17:05 Step 3/24 : ARG MAKE='make build' 11:17:05 ---> Running in df821f37689f 11:17:05 Removing intermediate container df821f37689f 11:17:05 ---> 2a0ee9d2ec2b 11:17:05 Step 4/24 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 11:17:05 ---> Running in 6d4b8e566c99 11:17:05 fetch https://nl.alpinelinux.org/alpine/v3.14/community/aarch64/APKINDEX.tar.gz 11:17:05 Removing intermediate container 6d4b8e566c99 11:17:05 ---> 3ad22799757a 11:17:05 Step 5/24 : ARG ALPINE_PKG_EXTRA="" 11:17:05 ---> Running in 379aecfb9781 11:17:05 Removing intermediate container 379aecfb9781 11:17:05 ---> 9f346de3bcd4 11:17:05 Step 6/24 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 11:17:05 ---> Running in 0365809afcf8 11:17:06 Removing intermediate container 0365809afcf8 11:17:06 ---> 691e58066c1f 11:17:06 Step 7/24 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 11:17:06 ---> Running in 324dd660c3a9 11:17:06 fetch https://nl.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz 11:17:06 (1/4) Installing openssh-keygen (8.6_p1-r3) 11:17:06 (2/4) Installing libedit (20210216.3.1-r0) 11:17:06 (3/4) Installing openssh-client-common (8.6_p1-r3) 11:17:06 (4/4) Installing openssh-client-default (8.6_p1-r3) 11:17:06 Executing busybox-1.33.1-r3.trigger 11:17:06 OK: 223 MiB in 56 packages 11:17:07 fetch https://nl.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz 11:17:07 OK: 224 MiB in 56 packages 11:17:07 Removing intermediate container 324dd660c3a9 11:17:07 ---> 7bdc3746d622 11:17:07 Step 8/24 : WORKDIR /device-rest-go 11:17:07 ---> Running in f492e95a49af 11:17:07 Removing intermediate container f492e95a49af 11:17:07 ---> a9e76fb171fa 11:17:07 Step 9/24 : COPY . . 11:17:07 Removing intermediate container 72610a566c84 11:17:07 ---> d87993d01f35 11:17:07 Step 8/11 : WORKDIR /device-rest-go 11:17:08 ---> 55fe4d9bdf52 11:17:08 Step 10/24 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 11:17:08 ---> Running in bfcf7aebf0b4 11:17:08 ---> Running in 0e1d74ceb5c7 11:17:08 Removing intermediate container 0e1d74ceb5c7 11:17:08 ---> 3923d5067e11 11:17:08 Step 9/11 : COPY . . 11:17:08 Removing intermediate container bfcf7aebf0b4 11:17:08 ---> 0d4b7196519a 11:17:08 Step 11/24 : RUN $MAKE 11:17:08 ---> Running in a86410031595 11:17:08 CGO_ENABLED=1 GO111MODULE=on go build -ldflags "-X github.com/edgexfoundry/device-rest-go.Version=0.0.0" -o cmd/device-rest ./cmd 11:17:09 ---> 48dcbb4a6e88 11:17:09 Step 10/11 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 11:17:09 ---> Running in f93dfc0f6828 11:17:21 Removing intermediate container a86410031595 11:17:21 ---> 4d33f97a6e7d 11:17:21 Step 12/24 : FROM alpine:3.14 11:17:21 3.14: Pulling from library/alpine 11:17:21 97518928ae5f: Pulling fs layer 11:17:21 97518928ae5f: Verifying Checksum 11:17:21 97518928ae5f: Download complete 11:17:21 97518928ae5f: Pull complete 11:17:21 Digest: sha256:635f0aa53d99017b38d1a0aa5b2082f7812b03e3cdb299103fe77b5c8a07f1d2 11:17:21 Status: Downloaded newer image for alpine:3.14 11:17:21 ---> 0a97eee8041e 11:17:21 Step 13/24 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' 11:17:21 ---> Running in 087f77bdf5f0 11:17:21 Removing intermediate container 087f77bdf5f0 11:17:21 ---> 9eb6cab07f4f 11:17:21 Step 14/24 : LABEL Name=device-rest-go Version=${VERSION} 11:17:21 ---> Running in 0589a415dc7f 11:17:21 Removing intermediate container 0589a415dc7f 11:17:21 ---> 610f3e34d835 11:17:21 Step 15/24 : RUN apk add --update --no-cache zeromq dumb-init 11:17:21 ---> Running in b66d8894c6e3 11:17:21 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz 11:17:21 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz 11:17:21 (1/6) Installing dumb-init (1.2.5-r1) 11:17:21 (2/6) Installing libgcc (10.3.1_git20210424-r2) 11:17:21 (3/6) Installing libsodium (1.0.18-r0) 11:17:21 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 11:17:21 (5/6) Installing libzmq (4.3.4-r0) 11:17:21 (6/6) Installing zeromq (4.3.4-r0) 11:17:21 Executing busybox-1.33.1-r6.trigger 11:17:21 OK: 8 MiB in 20 packages 11:17:22 Removing intermediate container b66d8894c6e3 11:17:22 ---> 38d4d074e59e 11:17:22 Step 16/24 : COPY --from=builder /device-rest-go/cmd / 11:17:22 ---> 1f9c1268876f 11:17:22 Step 17/24 : COPY --from=builder /device-rest-go/LICENSE / 11:17:22 ---> 54d6861536e8 11:17:22 Step 18/24 : COPY --from=builder /device-rest-go/Attribution.txt / 11:17:22 ---> 8bdfbbfaeb1d 11:17:22 Step 19/24 : EXPOSE 59986 11:17:22 ---> Running in a8f18d5a0b4a 11:17:22 Removing intermediate container a8f18d5a0b4a 11:17:22 ---> d446a4da8749 11:17:22 Step 20/24 : ENTRYPOINT ["/device-rest"] 11:17:22 ---> Running in f2361fad172b 11:17:22 Removing intermediate container f2361fad172b 11:17:22 ---> 960f210ecd6b 11:17:22 Step 21/24 : CMD ["--cp=consul://edgex-core-consul:8500", "--confdir=/res", "--registry"] 11:17:22 ---> Running in 2aefb4b25c8f 11:17:23 Removing intermediate container 2aefb4b25c8f 11:17:23 ---> 75d39b86a985 11:17:23 Step 22/24 : LABEL arch=amd64 11:17:23 ---> Running in 3d20e5703db5 11:17:23 Removing intermediate container 3d20e5703db5 11:17:23 ---> 48ef43e7e94a 11:17:23 Step 23/24 : LABEL git_sha=0360482d07a1081c93c83dbef0c3950328d2281a 11:17:23 ---> Running in 5c28a37a8ed2 11:17:23 Removing intermediate container 5c28a37a8ed2 11:17:23 ---> be82677c8dbd 11:17:23 Step 24/24 : LABEL version=0.0.0 11:17:23 ---> Running in 4d7ce2c03143 11:17:23 Removing intermediate container 4d7ce2c03143 11:17:23 ---> 455416c236ac 11:17:23 [Warning] One or more build-args [ARCH] were not consumed 11:17:23 Successfully built 455416c236ac 11:17:23 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 11:17:24 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 11:17:24 11:17:24 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] sh 11:17:24 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 11:17:24 latest: Pulling from edgex-lftools-log-publisher 11:17:24 b4d181a07f80: Pulling fs layer 11:17:24 a1111a8f2ec3: Pulling fs layer 11:17:24 ed53099fbce6: Pulling fs layer 11:17:24 dc539afda2c1: Pulling fs layer 11:17:24 77bc0d833cb6: Pulling fs layer 11:17:24 9065ff56babe: Pulling fs layer 11:17:24 d287ab97295c: Pulling fs layer 11:17:24 dc539afda2c1: Waiting 11:17:24 77bc0d833cb6: Waiting 11:17:24 9065ff56babe: Waiting 11:17:24 d287ab97295c: Waiting 11:17:24 a1111a8f2ec3: Verifying Checksum 11:17:24 a1111a8f2ec3: Download complete 11:17:24 dc539afda2c1: Verifying Checksum 11:17:24 dc539afda2c1: Download complete 11:17:24 ed53099fbce6: Verifying Checksum 11:17:24 ed53099fbce6: Download complete 11:17:24 9065ff56babe: Verifying Checksum 11:17:24 9065ff56babe: Download complete 11:17:24 77bc0d833cb6: Verifying Checksum 11:17:24 77bc0d833cb6: Download complete 11:17:24 b4d181a07f80: Verifying Checksum 11:17:24 b4d181a07f80: Download complete 11:17:25 d287ab97295c: Verifying Checksum 11:17:25 d287ab97295c: Download complete 11:17:26 b4d181a07f80: Pull complete 11:17:26 a1111a8f2ec3: Pull complete 11:17:26 ed53099fbce6: Pull complete 11:17:26 dc539afda2c1: Pull complete 11:17:27 77bc0d833cb6: Pull complete 11:17:27 9065ff56babe: Pull complete 11:17:32 d287ab97295c: Pull complete 11:17:32 Digest: sha256:0c69325c24349bfb3ea32a3c3cbcab1fb66df42c981276dd8ebcf6aa441257c4 11:17:32 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 11:17:32 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] withDockerContainer 11:17:32 prd-centos7-docker-4c-2g-953 does not seem to be running inside a container 11:17:32 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/device-rest-go/4 -v /w/workspace/device-rest-go/4:/w/workspace/device-rest-go/4:rw,z -v /w/workspace/device-rest-go/4@tmp:/w/workspace/device-rest-go/4@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 11:17:34 $ docker top 4a7e196c40d894e174f5825907deeea64be420069434823afbb41bc98fa2a37d -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 11:17:35 ---> job-cost.sh 11:17:35 lf-activate-venv: SKIPPING 11:17:35 INFO: No Stack... 11:17:35 INFO: Retrieving Pricing Info for: v3-standard-2 11:17:35 INFO: Archiving Costs [Pipeline] sh 11:17:36 + cat /w/workspace/device-rest-go/4/archives/cost.csv 11:17:36 + cut -d, -f6 [Pipeline] lock 11:17:36 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-146-4-stack-cost] 11:17:36 Resource [jenkins-edgexfoundry-device-rest-go-PR-146-4-stack-cost] did not exist. Created. 11:17:36 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-146-4-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 11:17:36 + echo total: 0.05999999865889549 [Pipeline] stash 11:17:36 Stashed 1 file(s) [Pipeline] } 11:17:36 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-146-4-stack-cost] [Pipeline] // lock [Pipeline] } 11:17:36 $ docker stop --time=1 4a7e196c40d894e174f5825907deeea64be420069434823afbb41bc98fa2a37d 11:17:37 $ docker rm -f 4a7e196c40d894e174f5825907deeea64be420069434823afbb41bc98fa2a37d [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // ws [Pipeline] } [Pipeline] // node [Pipeline] } [Pipeline] // stage [Pipeline] } 11:18:31 Removing intermediate container f93dfc0f6828 11:18:31 ---> baddaa932fc6 11:18:31 Step 11/11 : RUN $MAKE 11:18:31 ---> Running in c6bb603437dc 11:18:31 noop 11:18:31 Removing intermediate container c6bb603437dc 11:18:31 ---> ce1ddd4d9fed 11:18:31 Successfully built ce1ddd4d9fed 11:18:31 Successfully tagged ci-base-image-arm64:latest [Pipeline] isUnix [Pipeline] sh 11:18:31 + docker inspect -f . ci-base-image-arm64 11:18:31 . [Pipeline] withDockerContainer 11:18:31 prd-ubuntu18.04-docker-arm64-4c-16g-952 does not seem to be running inside a container 11:18:31 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/4 -v /w/workspace/device-rest-go/4:/w/workspace/device-rest-go/4:rw,z -v /w/workspace/device-rest-go/4@tmp:/w/workspace/device-rest-go/4@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 11:18:33 $ docker top 080770cbdad96e7bc636c4790f00b2c42e57eb2a1cbeda5896a1f3f093e5d908 -eo pid,comm [Pipeline] { [Pipeline] sh 11:18:34 + go version 11:18:34 go version go1.16.8 linux/arm64 [Pipeline] } 11:18:34 $ docker stop --time=1 080770cbdad96e7bc636c4790f00b2c42e57eb2a1cbeda5896a1f3f093e5d908 11:18:36 $ docker rm -f 080770cbdad96e7bc636c4790f00b2c42e57eb2a1cbeda5896a1f3f093e5d908 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 11:18:36 + docker inspect -f . ci-base-image-arm64 11:18:36 . [Pipeline] withDockerContainer 11:18:37 prd-ubuntu18.04-docker-arm64-4c-16g-952 does not seem to be running inside a container 11:18:37 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/4 -v /w/workspace/device-rest-go/4:/w/workspace/device-rest-go/4:rw,z -v /w/workspace/device-rest-go/4@tmp:/w/workspace/device-rest-go/4@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 11:18:38 $ docker top 0b2af450e89bf56edc801c44ed890684c496b806338733ff00cff1cf7cfc2bc5 -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 11:18:39 + make test 11:18:39 CGO_ENABLED=1 GO111MODULE=on go test -coverprofile=coverage.out ./... 11:18:41 ? github.com/edgexfoundry/device-rest-go [no test files] 11:19:37 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 11:19:37 ok github.com/edgexfoundry/device-rest-go/driver 0.052s coverage: 56.0% of statements 11:19:37 CGO_ENABLED=1 GO111MODULE=on go vet ./... 11:19:59 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 11:19:59 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 11:19:59 ./bin/test-attribution-txt.sh [Pipeline] echo 11:20:00 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 11:20:00 $ docker stop --time=1 0b2af450e89bf56edc801c44ed890684c496b806338733ff00cff1cf7cfc2bc5 11:20:02 $ docker rm -f 0b2af450e89bf56edc801c44ed890684c496b806338733ff00cff1cf7cfc2bc5 [Pipeline] // withDockerContainer [Pipeline] sh 11:20:03 + sudo chown -R jenkins:jenkins . [Pipeline] stash 11:20:03 Warning: overwriting stash ‘coverage-report’ 11:20:03 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 11:20:04 + sudo chown -R jenkins:jenkins . [Pipeline] sh 11:20:04 + ls -al . 11:20:04 total 176 11:20:04 drwxrwxr-x 8 jenkins jenkins 4096 Nov 17 11:20 . 11:20:04 drwxrwxr-x 4 jenkins jenkins 4096 Nov 17 11:16 .. 11:20:04 -rw-rw-r-- 1 jenkins jenkins 151 Nov 17 11:16 .dockerignore 11:20:04 drwxrwxr-x 8 jenkins jenkins 4096 Nov 17 11:16 .git 11:20:04 drwxrwxr-x 2 jenkins jenkins 4096 Nov 17 11:16 .github 11:20:04 -rw-rw-r-- 1 jenkins jenkins 329 Nov 17 11:16 .gitignore 11:20:04 -rw-rw-r-- 1 jenkins jenkins 7095 Nov 17 11:16 Attribution.txt 11:20:04 -rw-rw-r-- 1 jenkins jenkins 7459 Nov 17 11:16 CHANGELOG.md 11:20:04 -rw-rw-r-- 1 jenkins jenkins 1649 Nov 17 11:16 Dockerfile 11:20:04 -rw-rw-r-- 1 jenkins jenkins 677 Nov 17 11:16 GOVERNANCE.md 11:20:04 -rw-rw-r-- 1 jenkins jenkins 680 Nov 17 11:16 Jenkinsfile 11:20:04 -rw-rw-r-- 1 jenkins jenkins 11340 Nov 17 11:16 LICENSE 11:20:04 -rw-rw-r-- 1 jenkins jenkins 1078 Nov 17 11:16 Makefile 11:20:04 -rw-rw-r-- 1 jenkins jenkins 620 Nov 17 11:16 OWNERS.md 11:20:04 -rw-rw-r-- 1 jenkins jenkins 8246 Nov 17 11:16 README.md 11:20:04 -rw-rw-r-- 1 jenkins jenkins 5 Nov 17 11:14 VERSION 11:20:04 drwxrwxr-x 2 jenkins jenkins 4096 Nov 17 11:16 bin 11:20:04 drwxrwxr-x 3 jenkins jenkins 4096 Nov 17 11:16 cmd 11:20:04 -rw-r--r-- 1 jenkins jenkins 9215 Nov 17 11:19 coverage.out 11:20:04 drwxrwxr-x 2 jenkins jenkins 4096 Nov 17 11:16 driver 11:20:04 -rw-rw-r-- 1 jenkins jenkins 271 Nov 17 11:16 go.mod 11:20:04 -rw-rw-r-- 1 jenkins jenkins 49306 Nov 17 11:16 go.sum 11:20:04 drwxrwxr-x 3 jenkins jenkins 4096 Nov 17 11:16 snap 11:20:04 -rw-rw-r-- 1 jenkins jenkins 713 Nov 17 11:16 version.go [Pipeline] isUnix [Pipeline] sh 11:20:04 + 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=0360482d07a1081c93c83dbef0c3950328d2281a --label arch=arm64 --label version=0.0.0 . 11:20:04 Sending build context to Docker daemon 131.6kB 11:20:05 Step 1/24 : ARG BASE=golang:1.16-alpine3.14 11:20:05 Step 2/24 : FROM ${BASE} AS builder 11:20:05 ---> ce1ddd4d9fed 11:20:05 Step 3/24 : ARG MAKE='make build' 11:20:05 ---> Running in a2ba5dcae747 11:20:05 Removing intermediate container a2ba5dcae747 11:20:05 ---> c782c8d257ad 11:20:05 Step 4/24 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 11:20:05 ---> Running in fc916f6f3653 11:20:06 Removing intermediate container fc916f6f3653 11:20:06 ---> c370cfd7a782 11:20:06 Step 5/24 : ARG ALPINE_PKG_EXTRA="" 11:20:06 ---> Running in 722679380cde 11:20:06 Removing intermediate container 722679380cde 11:20:06 ---> b7591691c913 11:20:06 Step 6/24 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 11:20:06 ---> Running in 3befbe07f46a 11:20:08 Removing intermediate container 3befbe07f46a 11:20:08 ---> a71c9aacf033 11:20:08 Step 7/24 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 11:20:08 ---> Running in d36ba88bcb1e 11:20:10 fetch https://nl.alpinelinux.org/alpine/v3.14/main/aarch64/APKINDEX.tar.gz 11:20:10 fetch https://nl.alpinelinux.org/alpine/v3.14/community/aarch64/APKINDEX.tar.gz 11:20:11 OK: 223 MiB in 56 packages 11:20:12 Removing intermediate container d36ba88bcb1e 11:20:12 ---> a7084d62f036 11:20:12 Step 8/24 : WORKDIR /device-rest-go 11:20:12 ---> Running in 7bbdad2339ce 11:20:12 Removing intermediate container 7bbdad2339ce 11:20:12 ---> 3007cd68f032 11:20:12 Step 9/24 : COPY . . 11:20:13 ---> 9be3ab642b8f 11:20:13 Step 10/24 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 11:20:13 ---> Running in 247abb1362e0 11:20:16 Removing intermediate container 247abb1362e0 11:20:16 ---> d2584aa8e3b3 11:20:16 Step 11/24 : RUN $MAKE 11:20:16 ---> Running in 1d084977ea61 11:20:17 CGO_ENABLED=1 GO111MODULE=on go build -ldflags "-X github.com/edgexfoundry/device-rest-go.Version=0.0.0" -o cmd/device-rest ./cmd 11:20:56 Removing intermediate container 1d084977ea61 11:20:56 ---> 6f0c16bccf75 11:20:56 Step 12/24 : FROM alpine:3.14 11:20:56 3.14: Pulling from library/alpine 11:20:56 be307f383ecc: Pulling fs layer 11:20:56 be307f383ecc: Download complete 11:20:56 be307f383ecc: Pull complete 11:20:56 Digest: sha256:635f0aa53d99017b38d1a0aa5b2082f7812b03e3cdb299103fe77b5c8a07f1d2 11:20:56 Status: Downloaded newer image for alpine:3.14 11:20:56 ---> 5b8b7b635229 11:20:56 Step 13/24 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' 11:20:56 ---> Running in b8b0668d6daf 11:20:56 Removing intermediate container b8b0668d6daf 11:20:56 ---> f67e3ff3b505 11:20:56 Step 14/24 : LABEL Name=device-rest-go Version=${VERSION} 11:20:56 ---> Running in 346b69b3dc1f 11:20:56 Removing intermediate container 346b69b3dc1f 11:20:56 ---> 0c9a62ee5006 11:20:56 Step 15/24 : RUN apk add --update --no-cache zeromq dumb-init 11:20:56 ---> Running in 922385e0e0d4 11:20:56 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/aarch64/APKINDEX.tar.gz 11:20:56 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/aarch64/APKINDEX.tar.gz 11:20:56 (1/6) Installing dumb-init (1.2.5-r1) 11:20:56 (2/6) Installing libgcc (10.3.1_git20210424-r2) 11:20:56 (3/6) Installing libsodium (1.0.18-r0) 11:20:56 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 11:20:56 (5/6) Installing libzmq (4.3.4-r0) 11:20:56 (6/6) Installing zeromq (4.3.4-r0) 11:20:56 Executing busybox-1.33.1-r6.trigger 11:20:56 OK: 8 MiB in 20 packages 11:20:57 Removing intermediate container 922385e0e0d4 11:20:57 ---> e6450100cb72 11:20:57 Step 16/24 : COPY --from=builder /device-rest-go/cmd / 11:20:58 ---> d5361a7ecc69 11:20:58 Step 17/24 : COPY --from=builder /device-rest-go/LICENSE / 11:20:59 ---> cd52828f3dc3 11:20:59 Step 18/24 : COPY --from=builder /device-rest-go/Attribution.txt / 11:21:00 ---> 458b66ff65be 11:21:00 Step 19/24 : EXPOSE 59986 11:21:00 ---> Running in 339fd423e1c5 11:21:00 Removing intermediate container 339fd423e1c5 11:21:00 ---> 1ff17189c1c4 11:21:00 Step 20/24 : ENTRYPOINT ["/device-rest"] 11:21:00 ---> Running in 7d87c3724c27 11:21:00 Removing intermediate container 7d87c3724c27 11:21:00 ---> 354a40385099 11:21:00 Step 21/24 : CMD ["--cp=consul://edgex-core-consul:8500", "--confdir=/res", "--registry"] 11:21:00 ---> Running in 9f94e11161ef 11:21:01 Removing intermediate container 9f94e11161ef 11:21:01 ---> a2c1a48aac5a 11:21:01 Step 22/24 : LABEL arch=arm64 11:21:01 ---> Running in c8525cc2b252 11:21:01 Removing intermediate container c8525cc2b252 11:21:01 ---> 0a6c56cc32f7 11:21:01 Step 23/24 : LABEL git_sha=0360482d07a1081c93c83dbef0c3950328d2281a 11:21:02 ---> Running in 3782bf23caac 11:21:02 Removing intermediate container 3782bf23caac 11:21:02 ---> 8f95ac301fc2 11:21:02 Step 24/24 : LABEL version=0.0.0 11:21:02 ---> Running in 151dc6470f57 11:21:02 Removing intermediate container 151dc6470f57 11:21:02 ---> 1c6c97f123ad 11:21:02 [Warning] One or more build-args [ARCH] were not consumed 11:21:02 Successfully built 1c6c97f123ad 11:21:02 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 11:21:03 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 11:21:03 11:21:03 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] sh 11:21:03 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 11:21:04 arm64: Pulling from edgex-lftools-log-publisher 11:21:04 448f6bf000e3: Pulling fs layer 11:21:04 f757da607395: Pulling fs layer 11:21:04 05883995daec: Pulling fs layer 11:21:04 8603b9c90790: Pulling fs layer 11:21:04 1560dd03e051: Pulling fs layer 11:21:04 27f5ce0e4adf: Pulling fs layer 11:21:04 c2d8d7efcc4b: Pulling fs layer 11:21:04 1560dd03e051: Waiting 11:21:04 27f5ce0e4adf: Waiting 11:21:04 c2d8d7efcc4b: Waiting 11:21:04 8603b9c90790: Waiting 11:21:04 f757da607395: Verifying Checksum 11:21:04 f757da607395: Download complete 11:21:04 8603b9c90790: Verifying Checksum 11:21:04 8603b9c90790: Download complete 11:21:04 1560dd03e051: Verifying Checksum 11:21:04 1560dd03e051: Download complete 11:21:04 05883995daec: Verifying Checksum 11:21:04 27f5ce0e4adf: Verifying Checksum 11:21:04 27f5ce0e4adf: Download complete 11:21:04 05883995daec: Download complete 11:21:04 448f6bf000e3: Verifying Checksum 11:21:04 448f6bf000e3: Download complete 11:21:07 c2d8d7efcc4b: Verifying Checksum 11:21:07 c2d8d7efcc4b: Download complete 11:21:08 448f6bf000e3: Pull complete 11:21:08 f757da607395: Pull complete 11:21:10 05883995daec: Pull complete 11:21:10 8603b9c90790: Pull complete 11:21:11 1560dd03e051: Pull complete 11:21:11 27f5ce0e4adf: Pull complete 11:21:26 c2d8d7efcc4b: Pull complete 11:21:26 Digest: sha256:42f6a1c33103aa4ecfebf648e29883a20fd84132c0f0d4f855d8bcfd8dd9c454 11:21:26 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 11:21:26 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] withDockerContainer 11:21:27 prd-ubuntu18.04-docker-arm64-4c-16g-952 does not seem to be running inside a container 11:21:27 $ 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/4 -v /w/workspace/device-rest-go/4:/w/workspace/device-rest-go/4:rw,z -v /w/workspace/device-rest-go/4@tmp:/w/workspace/device-rest-go/4@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 11:21:29 $ docker top 7decf97c7890de0731ddba4e1fb3b60622e799708ca8dd29db3916712df10f14 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 11:21:30 ---> job-cost.sh 11:21:30 lf-activate-venv: SKIPPING 11:21:30 INFO: No Stack... 11:21:31 INFO: Retrieving Pricing Info for: v3-standard-4 11:21:31 INFO: Archiving Costs [Pipeline] sh 11:21:32 + cat /w/workspace/device-rest-go/4/archives/cost.csv 11:21:32 + cut -d, -f6 [Pipeline] lock 11:21:32 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-146-4-stack-cost] 11:21:32 Resource [jenkins-edgexfoundry-device-rest-go-PR-146-4-stack-cost] did not exist. Created. 11:21:32 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-146-4-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 11:21:32 /w/workspace/device-rest-go/4@tmp/durable-195d7311/script.sh: 1: /w/workspace/device-rest-go/4@tmp/durable-195d7311/script.sh: Syntax error: Unterminated quoted string [Pipeline] sh 11:21:33 + echo total: 0.10999999940395355 [Pipeline] stash 11:21:33 Warning: overwriting stash ‘stack-cost’ 11:21:33 Stashed 1 file(s) [Pipeline] } 11:21:33 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-146-4-stack-cost] [Pipeline] // lock [Pipeline] } 11:21:33 $ docker stop --time=1 7decf97c7890de0731ddba4e1fb3b60622e799708ca8dd29db3916712df10f14 11:21:35 $ docker rm -f 7decf97c7890de0731ddba4e1fb3b60622e799708ca8dd29db3916712df10f14 [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 11:21:35 provisioning config files... 11:21:35 copy managed file [device-rest-go-codecov-token] to file:/w/workspace/gexfoundry_device-rest-go_PR-146@tmp/config2497378139705965973tmp [Pipeline] { [Pipeline] sh 11:21:36 + set +x 11:21:36 + curl -s https://codecov.io/bash 11:21:36 + bash -s -- 11:21:36 11:21:36 _____ _ 11:21:36 / ____| | | 11:21:36 | | ___ __| | ___ ___ _____ __ 11:21:36 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 11:21:36 | |___| (_) | (_| | __/ (_| (_) \ V / 11:21:36 \_____\___/ \__,_|\___|\___\___/ \_/ 11:21:36 Bash-1.0.6 11:21:36 11:21:36 11:21:36 ==> git version 2.24.4 found 11:21:36 ==> curl 7.29.0 (x86_64-redhat-linux-gnu) libcurl/7.29.0 NSS/3.53.1 zlib/1.2.7 libidn/1.28 libssh2/1.8.0 11:21:36 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp 11:21:36 Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz unix-sockets 11:21:36 ==> Jenkins CI detected. 11:21:36 current dir:  /w/workspace/gexfoundry_device-rest-go_PR-146 11:21:36 project root: . 11:21:36 --> token set from env 11:21:36 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 11:21:36 ==> Running gcov in . (disable via -X gcov) 11:21:36 ==> Python coveragepy not found 11:21:36 ==> Searching for coverage reports in: 11:21:36 + . 11:21:36 -> Found 1 reports 11:21:36 ==> Detecting git/mercurial file structure 11:21:36 ==> Reading reports 11:21:36 + ./coverage.out bytes=9215 11:21:36 ==> Appending adjustments 11:21:36 https://docs.codecov.io/docs/fixing-reports 11:21:36 + Found adjustments 11:21:36 ==> Gzipping contents 11:21:36 4.0K /tmp/codecov.RW1mrQ.gz 11:21:36 ==> Uploading reports 11:21:36 url: https://codecov.io 11:21:36 query: branch=PR-146&commit=0360482d07a1081c93c83dbef0c3950328d2281a&build=4&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-146%2F4%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=146&job=&cmd_args= 11:21:36 -> Pinging Codecov 11:21:36 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=c51feb23-73ac-4f49-b3d1-d26df23137db&branch=PR-146&commit=0360482d07a1081c93c83dbef0c3950328d2281a&build=4&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-146%2F4%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=146&job=&cmd_args= 11:21:36 -> Uploading to 11:21:36 https://storage.googleapis.com/codecov/v4/raw/2021-11-17/4E5D53B4F1F92C436F7061BF334D961C/0360482d07a1081c93c83dbef0c3950328d2281a/6cfa1d41-3022-49c6-93b7-2de800bb327c.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20211117%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20211117T112136Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=a5d4083ab6cdf7d31f290bf6e34fd4c4e2150817073446091a48c1e8b49490e7 11:21:36 % Total % Received % Xferd Average Speed Time Time Time Current 11:21:36 Dload Upload Total Spent Left Speed 11:21:36 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 1805 0 0 100 1805 0 5789 --:--:-- --:--:-- --:--:-- 5803 11:21:36 -> Reports have been successfully queued for processing at https://codecov.io/github/edgexfoundry/device-rest-go/commit/0360482d07a1081c93c83dbef0c3950328d2281a [Pipeline] } 11:21:36 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 11:21:38 + '[' -d /w/workspace/gexfoundry_device-rest-go_PR-146/archives ']' [Pipeline] libraryResource [Pipeline] sh 11:21:38 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 11:21:39 ---> package-listing.sh 11:21:39 ++ facter osfamily 11:21:39 ++ tr '[:upper:]' '[:lower:]' 11:21:39 + OS_FAMILY=redhat 11:21:39 + workspace=/w/workspace/gexfoundry_device-rest-go_PR-146 11:21:39 + START_PACKAGES=/tmp/packages_start.txt 11:21:39 + END_PACKAGES=/tmp/packages_end.txt 11:21:39 + DIFF_PACKAGES=/tmp/packages_diff.txt 11:21:39 + PACKAGES=/tmp/packages_start.txt 11:21:39 + '[' /w/workspace/gexfoundry_device-rest-go_PR-146 ']' 11:21:39 + PACKAGES=/tmp/packages_end.txt 11:21:39 + case "${OS_FAMILY}" in 11:21:39 + rpm -qa 11:21:39 + sort 11:21:39 + '[' -f /tmp/packages_start.txt ']' 11:21:39 + '[' -f /tmp/packages_end.txt ']' 11:21:39 + diff /tmp/packages_start.txt /tmp/packages_end.txt 11:21:39 + '[' /w/workspace/gexfoundry_device-rest-go_PR-146 ']' 11:21:39 + mkdir -p /w/workspace/gexfoundry_device-rest-go_PR-146/archives/ 11:21:39 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/gexfoundry_device-rest-go_PR-146/archives/ [Pipeline] echo 11:21:39 Launching container with: [--privileged -u 0:0 --net host -v /var/log/sa:/var/log/sa-host -v /var/log/secure:/var/log/secure -v /var/log/auth.log:/var/log/auth.log -v /w/workspace/gexfoundry_device-rest-go_PR-146/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 11:21:40 + facter operatingsystem [Pipeline] isUnix [Pipeline] sh 11:21:40 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 11:21:40 11:21:40 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] sh 11:21:41 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 11:21:41 latest: Pulling from edgex-lftools-log-publisher 11:21:41 b4d181a07f80: Pulling fs layer 11:21:41 a1111a8f2ec3: Pulling fs layer 11:21:41 ed53099fbce6: Pulling fs layer 11:21:41 dc539afda2c1: Pulling fs layer 11:21:41 77bc0d833cb6: Pulling fs layer 11:21:41 9065ff56babe: Pulling fs layer 11:21:41 d287ab97295c: Pulling fs layer 11:21:41 dc539afda2c1: Waiting 11:21:41 77bc0d833cb6: Waiting 11:21:41 9065ff56babe: Waiting 11:21:41 d287ab97295c: Waiting 11:21:41 a1111a8f2ec3: Verifying Checksum 11:21:41 a1111a8f2ec3: Download complete 11:21:41 dc539afda2c1: Verifying Checksum 11:21:41 dc539afda2c1: Download complete 11:21:41 ed53099fbce6: Verifying Checksum 11:21:41 ed53099fbce6: Download complete 11:21:41 9065ff56babe: Verifying Checksum 11:21:41 9065ff56babe: Download complete 11:21:41 77bc0d833cb6: Verifying Checksum 11:21:41 77bc0d833cb6: Download complete 11:21:41 b4d181a07f80: Download complete 11:21:41 d287ab97295c: Verifying Checksum 11:21:41 d287ab97295c: Download complete 11:21:42 b4d181a07f80: Pull complete 11:21:42 a1111a8f2ec3: Pull complete 11:21:43 ed53099fbce6: Pull complete 11:21:43 dc539afda2c1: Pull complete 11:21:43 77bc0d833cb6: Pull complete 11:21:44 9065ff56babe: Pull complete 11:21:49 d287ab97295c: Pull complete 11:21:49 Digest: sha256:0c69325c24349bfb3ea32a3c3cbcab1fb66df42c981276dd8ebcf6aa441257c4 11:21:49 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 11:21:49 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] withDockerContainer 11:21:49 prd-centos7-docker-4c-2g-951 does not seem to be running inside a container 11:21:49 $ docker run -t -d -u 1001:1001 --privileged -u 0:0 --net host -v /var/log/sa:/var/log/sa-host -v /var/log/secure:/var/log/secure -v /var/log/auth.log:/var/log/auth.log -v /w/workspace/gexfoundry_device-rest-go_PR-146/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-146 -v /w/workspace/gexfoundry_device-rest-go_PR-146:/w/workspace/gexfoundry_device-rest-go_PR-146:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-146@tmp:/w/workspace/gexfoundry_device-rest-go_PR-146@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 11:21:51 $ docker top 75b2721f1efa92acbb626e9a2a3830e476c628a3912f543ee4103a5654ba29f2 -eo pid,comm [Pipeline] { [Pipeline] sh 11:21:52 + touch /tmp/pre-build-complete [Pipeline] sh 11:21:52 + mkdir -p /var/log/sysstat [Pipeline] sh 11:21:52 + ls /var/log/sa-host 11:21:52 + sadf -c /var/log/sa-host/sa17 11:21:52 file_magic: OK 11:21:52 HZ: Using current value: 100 11:21:52 file_header: OK 11:21:52 file_activity: A_CPU A_PCSW A_SWAP A_PAGE A_IO A_MEMORY A_HUGE A_KTABLES A_QUEUE A_SERIAL A_DISK A_NET_DEV A_NET_EDEV A_NET_NFS A_NET_NFSD A_NET_SOCK OK 11:21:52 Statistics: 11:21:52 HRHnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu... 11:21:52 File successfully converted to sysstat format version 12.0.3 11:21:52 + sadf -c /var/log/sa-host/sa30 11:21:52 file_magic: OK 11:21:52 HZ: Using current value: 100 11:21:52 file_header: OK 11:21:52 file_activity: A_CPU A_PCSW A_SWAP A_PAGE A_IO A_MEMORY A_HUGE A_KTABLES A_QUEUE A_SERIAL A_DISK A_NET_DEV A_NET_EDEV A_NET_NFS A_NET_NFSD A_NET_SOCK OK 11:21:52 Statistics: 11:21:52 Hnuu...uuuununununu...Hnuu...uuuununununu... 11:21:52 File successfully converted to sysstat format version 12.0.3 [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 11:21:52 provisioning config files... 11:21:52 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-146@tmp/config4922906074654793123tmp [Pipeline] { [Pipeline] echo 11:21:52 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 11:21:53 ---> create-netrc.sh [Pipeline] } 11:21:53 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 11:21:53 ---> python-tools-install.sh [Pipeline] echo 11:21:53 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 11:21:53 ---> sudo-logs.sh 11:21:53 Archiving 'sudo' log.. 11:21:53 sudo: unable to resolve host prd-centos7-docker-4c-2g-951.novalocal: Name or service not known 11:21:53 sudo: unable to resolve host prd-centos7-docker-4c-2g-951.novalocal: Name or service not known [Pipeline] unstash [Pipeline] echo 11:21:53 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 11:21:54 ---> job-cost.sh 11:21:54 lf-activate-venv: SKIPPING 11:21:54 DEBUG: total: 0.10999999940395355 11:21:54 INFO: Retrieving Stack Cost... 11:21:54 INFO: Retrieving Pricing Info for: v3-standard-2 11:21:54 INFO: Archiving Costs [Pipeline] echo 11:21:54 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 11:21:54 ---> logs-deploy.sh 11:21:54 lf-activate-venv: SKIPPING 11:21:54 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-146/4 11:21:54 INFO: archiving workspace using pattern(s): 11:21:55 Archives upload complete. 11:21:55 INFO: archiving logs to Nexus