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 7435c4dcfd7fab1fb97167049a99f90a51d42f95 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-ssh8345100504902586011.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-ssh7721428996003956389.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-ssh1645498989743482391.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-ssh923103512427217343.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-ssh7811120751208087139.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-954 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-ssh5886231330240198707.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-ssh2898975755999161051.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 7435c4dcfd7fab1fb97167049a99f90a51d42f95 Merge succeeded, producing 7435c4dcfd7fab1fb97167049a99f90a51d42f95 Checking out Revision 7435c4dcfd7fab1fb97167049a99f90a51d42f95 (PR-146) > git config core.sparsecheckout # timeout=10 > git checkout -f 7435c4dcfd7fab1fb97167049a99f90a51d42f95 # 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-ssh6277562199153144642.key > git merge 7759c41568adf15208c0dd5cadcdb8f87895acd8 # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 7435c4dcfd7fab1fb97167049a99f90a51d42f95 # timeout=10 Commit message: "build(snap): update `base` to core20" > git rev-list --no-walk 0360482d07a1081c93c83dbef0c3950328d2281a # timeout=10 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 11:19:36 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 11:19:36 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 11:19:36 ========================================================= 11:19:36 EdgeX Global Pipelines Version Info 11:19:36 ========================================================= [Pipeline] libraryResource [Pipeline] sh 11:19:37 ------------------- 11:19:37 stable info: 11:19:37 ------------------- 11:19:37 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 11:19:37 Commit SHA: 686c8e2b17b6b4c6988ddea14cf883eea3c5dfe4 11:19:37 Message: update stable to v1.0.215 11:19:37 ------------------- 11:19:37 experimental info: 11:19:37 ------------------- 11:19:37 Commited By: **** collab-it+edgex@linuxfoundation.org 11:19:37 Commit SHA: 686c8e2b17b6b4c6988ddea14cf883eea3c5dfe4 11:19:37 Message: update experimental to v1.0.215 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 11:19:38 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 11:19:38 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 11:19:38 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 11:19:38 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 11:19:38 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 11:19:38 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.16 [Pipeline] echo 11:19:38 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 11:19:38 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 11:19:38 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 11:19:38 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 11:19:38 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 11:19:38 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 11:19:38 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 11:19:38 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 11:19:38 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 11:19:38 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 11:19:38 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 11:19:38 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 11:19:38 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 11:19:38 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 11:19:38 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 11:19:38 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 11:19:38 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 11:19:38 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 11:19:38 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 11:19:38 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 11:19:38 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-146 [Pipeline] echo 11:19:38 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-146 [Pipeline] echo 11:19:38 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-146 [Pipeline] echo 11:19:38 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 7435c4dcfd7fab1fb97167049a99f90a51d42f95 [Pipeline] echo 11:19:38 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 7435c4d [Pipeline] echo 11:19:38 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 11:19:38 provisioning config files... 11:19:38 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-146@tmp/config4852119551279361312tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 11:19:38 ---> docker-login.sh 11:19:38 nexus3.edgexfoundry.org:10001 11:19:38 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:19:39 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:19:39 Configure a credential helper to remove this warning. See 11:19:39 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:19:39 11:19:39 Login Succeeded 11:19:39 nexus3.edgexfoundry.org:10002 11:19:39 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:19:39 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:19:39 Configure a credential helper to remove this warning. See 11:19:39 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:19:39 11:19:39 Login Succeeded 11:19:39 nexus3.edgexfoundry.org:10003 11:19:39 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:19:39 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:19:39 Configure a credential helper to remove this warning. See 11:19:39 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:19:39 11:19:39 Login Succeeded 11:19:39 nexus3.edgexfoundry.org:10004 11:19:39 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:19:39 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:19:39 Configure a credential helper to remove this warning. See 11:19:39 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:19:39 11:19:39 Login Succeeded 11:19:39 docker.io 11:19:39 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:19:39 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:19:39 Configure a credential helper to remove this warning. See 11:19:39 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:19:39 11:19:39 Login Succeeded 11:19:39 ---> docker-login.sh ends [Pipeline] } 11:19:39 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 11:19:40 + git rev-list -1 --merges 7435c4dcfd7fab1fb97167049a99f90a51d42f95~1..7435c4dcfd7fab1fb97167049a99f90a51d42f95 [Pipeline] echo 11:19:40 -----------> git rev-list -1 --merges 7435c4dcfd7fab1fb97167049a99f90a51d42f95~1..7435c4dcfd7fab1fb97167049a99f90a51d42f95 7435c4dcfd7fab1fb97167049a99f90a51d42f95 [false] [Pipeline] sh 11:19:40 + git log --format=format:%s -1 7435c4dcfd7fab1fb97167049a99f90a51d42f95 [Pipeline] echo 11:19:40 ========================================================= 11:19:40 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 11:19:40 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 11:19:40 + git log --format=format:%s -1 7435c4dcfd7fab1fb97167049a99f90a51d42f95 [Pipeline] echo 11:19:40 [semverPrep] GIT_COMMIT: 7435c4dcfd7fab1fb97167049a99f90a51d42f95, Commit Message: build(snap): update `base` to core20 [Pipeline] echo 11:19:41 [semverPrep] This is not a build commit. [Pipeline] isUnix [Pipeline] sh 11:19:41 + docker inspect -f . nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 11:19:41 11:19:41 Error: No such object: nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] isUnix [Pipeline] sh 11:19:41 + docker pull nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 11:19:41 latest: Pulling from edgex-devops/git-semver 11:19:41 a0d0a0d46f8b: Pulling fs layer 11:19:41 3e5f54012d9b: Pulling fs layer 11:19:41 4c7163046ea9: Pulling fs layer 11:19:41 0c2d73faf560: Pulling fs layer 11:19:41 0c2d73faf560: Waiting 11:19:41 3e5f54012d9b: Verifying Checksum 11:19:41 3e5f54012d9b: Download complete 11:19:41 a0d0a0d46f8b: Verifying Checksum 11:19:41 a0d0a0d46f8b: Download complete 11:19:41 0c2d73faf560: Verifying Checksum 11:19:41 0c2d73faf560: Download complete 11:19:42 4c7163046ea9: Verifying Checksum 11:19:42 4c7163046ea9: Download complete 11:19:42 a0d0a0d46f8b: Pull complete 11:19:42 3e5f54012d9b: Pull complete 11:19:42 4c7163046ea9: Pull complete 11:19:42 0c2d73faf560: Pull complete 11:19:42 Digest: sha256:2751de6e655929dcbe46418c7769d9d992331b5b721eb968631a4166222929f9 11:19:42 Status: Downloaded newer image for nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 11:19:42 nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] withDockerContainer 11:19:42 prd-centos7-docker-4c-2g-954 does not seem to be running inside a container 11:19:42 $ 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 ******** nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest cat 11:19:43 $ docker top 3605a419fde0844c31d45a4110b671a91ce41408d4c7140dd0e7c24c948665df -eo pid,comm [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 11:19:43 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 11:19:43 [ssh-agent] Looking for ssh-agent implementation... 11:19:43 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 11:19:43 $ docker exec 3605a419fde0844c31d45a4110b671a91ce41408d4c7140dd0e7c24c948665df ssh-agent 11:19:43 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXbmkLmO/agent.13 11:19:43 SSH_AGENT_PID=20 11:19:43 Running ssh-add (command line suppressed) 11:19:43 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-146@tmp/private_key_7696071965209119769.key (/w/workspace/gexfoundry_device-rest-go_PR-146@tmp/private_key_7696071965209119769.key) 11:19:43 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 11:19:43 + git tag --points-at HEAD [Pipeline] } 11:19:43 $ docker exec --env ******** --env ******** 3605a419fde0844c31d45a4110b671a91ce41408d4c7140dd0e7c24c948665df ssh-agent -k 11:19:44 unset SSH_AUTH_SOCK; 11:19:44 unset SSH_AGENT_PID; 11:19:44 echo Agent pid 20 killed; 11:19:44 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 11:19:44 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 11:19:44 [ssh-agent] Looking for ssh-agent implementation... 11:19:44 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 11:19:44 $ docker exec 3605a419fde0844c31d45a4110b671a91ce41408d4c7140dd0e7c24c948665df ssh-agent 11:19:44 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXmiEPHM/agent.53 11:19:44 SSH_AGENT_PID=60 11:19:44 Running ssh-add (command line suppressed) 11:19:44 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-146@tmp/private_key_2839296533798992784.key (/w/workspace/gexfoundry_device-rest-go_PR-146@tmp/private_key_2839296533798992784.key) 11:19:44 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 11:19:44 + git semver init 11:19:44 # -> Open(): unable to determine branch for HEAD 11:19:44 # $GIT_DIR = /w/workspace/gexfoundry_device-rest-go_PR-146/.git 11:19:44 # $GIT_WORK_TREE = /w/workspace/gexfoundry_device-rest-go_PR-146 11:19:44 # $SEMVER_REMOTE_NAME = origin 11:19:44 # $SEMVER_USER_EMAIL = collab-it+edgex@linuxfoundation.org 11:19:44 # $SEMVER_USER_NAME = edgex-jenkins 11:19:44 # $SEMVER_BRANCH = PR-146 11:19:44 # $SEMVER_TEMP = /tmp/semver-336379440 11:19:44 # git clone --branch semver git@github.com:edgexfoundry/device-rest-go.git $SEMVER_TEMP 11:19:44 # -> Clone(): ssh: handshake failed: knownhosts: key mismatch 11:19:44 # git init /tmp/semver-336379440 11:19:44 # '/tmp/semver-336379440' -> '/w/workspace/gexfoundry_device-rest-go_PR-146/.semver' 11:19:44 # -> Force: false 11:19:44 # $SEMVER_DIR = /w/workspace/gexfoundry_device-rest-go_PR-146/.semver [Pipeline] } 11:19:44 $ docker exec --env ******** --env ******** 3605a419fde0844c31d45a4110b671a91ce41408d4c7140dd0e7c24c948665df ssh-agent -k 11:19:44 unset SSH_AUTH_SOCK; 11:19:44 unset SSH_AGENT_PID; 11:19:44 echo Agent pid 60 killed; 11:19:44 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 11:19:45 + git semver [Pipeline] } 11:19:45 $ docker stop --time=1 3605a419fde0844c31d45a4110b671a91ce41408d4c7140dd0e7c24c948665df 11:19:46 $ docker rm -f 3605a419fde0844c31d45a4110b671a91ce41408d4c7140dd0e7c24c948665df [Pipeline] // withDockerContainer [Pipeline] sh 11:19:46 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 11:19:46 Stashed 1 file(s) [Pipeline] echo 11:19:46 [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:20:02 Still waiting to schedule task 11:20:02 Waiting for next available executor on ‘centos7-docker-4c-2g’ 11:20:02 Still waiting to schedule task 11:20:02 Waiting for next available executor on ‘prd-ubuntu18.04-docker-arm64-4c-16g-952’ 11:21:55 Running on prd-centos7-docker-4c-2g-955 in /w/workspace/gexfoundry_device-rest-go_PR-146 [Pipeline] { [Pipeline] ws 11:21:55 Running in /w/workspace/device-rest-go/5 [Pipeline] { [Pipeline] checkout 11:21:55 The recommended git tool is: git 11:21:57 using credential edgex-jenkins-ssh 11:21:57 Cloning the remote Git repository 11:21:57 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 11:21:57 > git init /w/workspace/device-rest-go/5 # timeout=10 11:21:57 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 11:21:57 > git --version # timeout=10 11:21:57 > git --version # 'git version 2.24.4' 11:21:57 using GIT_SSH to set credentials SSH Credentials for GitHub 11:21:57 [INFO] Currently running in a labeled security context 11:21:57 [INFO] Currently SELinux is 'enforcing' on the host 11:21:57 > /usr/bin/chcon --type=ssh_home_t /w/workspace/device-rest-go/5@tmp/jenkins-gitclient-ssh8480238868419359859.key 11:21:57 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 11:21:58 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 11:21:58 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 11:21:58 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 11:21:58 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 11:21:58 using GIT_SSH to set credentials SSH Credentials for GitHub 11:21:58 [INFO] Currently running in a labeled security context 11:21:58 [INFO] Currently SELinux is 'enforcing' on the host 11:21:58 > /usr/bin/chcon --type=ssh_home_t /w/workspace/device-rest-go/5@tmp/jenkins-gitclient-ssh5509475475883276682.key 11:21:58 > 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:21:59 Merging remotes/origin/main commit 7759c41568adf15208c0dd5cadcdb8f87895acd8 into PR head commit 7435c4dcfd7fab1fb97167049a99f90a51d42f95 11:21:59 Merge succeeded, producing 7435c4dcfd7fab1fb97167049a99f90a51d42f95 11:21:59 Checking out Revision 7435c4dcfd7fab1fb97167049a99f90a51d42f95 (PR-146) 11:21:58 > git config core.sparsecheckout # timeout=10 11:21:58 > git checkout -f 7435c4dcfd7fab1fb97167049a99f90a51d42f95 # timeout=10 11:21:58 > git remote # timeout=10 11:21:58 > git config --get remote.origin.url # timeout=10 11:21:58 using GIT_SSH to set credentials SSH Credentials for GitHub 11:21:58 [INFO] Currently running in a labeled security context 11:21:58 [INFO] Currently SELinux is 'enforcing' on the host 11:21:58 > /usr/bin/chcon --type=ssh_home_t /w/workspace/device-rest-go/5@tmp/jenkins-gitclient-ssh7445830437881677065.key 11:21:58 > git merge 7759c41568adf15208c0dd5cadcdb8f87895acd8 # timeout=10 11:21:58 > git rev-parse HEAD^{commit} # timeout=10 11:21:58 > git config core.sparsecheckout # timeout=10 11:21:58 > git checkout -f 7435c4dcfd7fab1fb97167049a99f90a51d42f95 # timeout=10 11:22:02 Commit message: "build(snap): update `base` to core20" [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 11:22:03 provisioning config files... 11:22:03 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/5@tmp/config7578050304848754696tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 11:22:03 ---> docker-login.sh 11:22:03 nexus3.edgexfoundry.org:10001 11:22:03 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:22:03 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:22:03 Configure a credential helper to remove this warning. See 11:22:03 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:22:03 11:22:03 Login Succeeded 11:22:03 nexus3.edgexfoundry.org:10002 11:22:03 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:22:03 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:22:03 Configure a credential helper to remove this warning. See 11:22:03 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:22:03 11:22:03 Login Succeeded 11:22:03 nexus3.edgexfoundry.org:10003 11:22:03 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:22:03 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:22:03 Configure a credential helper to remove this warning. See 11:22:03 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:22:03 11:22:03 Login Succeeded 11:22:03 nexus3.edgexfoundry.org:10004 11:22:04 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:22:04 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:22:04 Configure a credential helper to remove this warning. See 11:22:04 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:22:04 11:22:04 Login Succeeded 11:22:04 docker.io 11:22:04 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:22:04 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:22:04 Configure a credential helper to remove this warning. See 11:22:04 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:22:04 11:22:04 Login Succeeded 11:22:04 ---> docker-login.sh ends [Pipeline] } 11:22:04 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 11:22:04 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 11:22:04 ========================================================= 11:22:04 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.16-alpine] 11:22:04 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 11:22:04 + 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:22:04 Sending build context to Docker daemon 121.9kB 11:22:04 Step 1/11 : ARG BASE=golang:1.16-alpine3.14 11:22:04 Step 2/11 : FROM ${BASE} AS builder 11:22:04 1.16-alpine: Pulling from edgex-devops/edgex-golang-base 11:22:04 a0d0a0d46f8b: Pulling fs layer 11:22:04 31adcdaf11c8: Pulling fs layer 11:22:04 b8b176561691: Pulling fs layer 11:22:04 4527c011a84f: Pulling fs layer 11:22:04 5d74067f8e1e: Pulling fs layer 11:22:04 e0aca202a116: Pulling fs layer 11:22:04 3a43be97a3b4: Pulling fs layer 11:22:04 34cad66bf833: Pulling fs layer 11:22:04 b4e3c513aaa6: Pulling fs layer 11:22:04 4527c011a84f: Waiting 11:22:04 5d74067f8e1e: Waiting 11:22:04 e0aca202a116: Waiting 11:22:04 3a43be97a3b4: Waiting 11:22:04 34cad66bf833: Waiting 11:22:04 b4e3c513aaa6: Waiting 11:22:04 b8b176561691: Verifying Checksum 11:22:04 b8b176561691: Download complete 11:22:04 31adcdaf11c8: Verifying Checksum 11:22:04 31adcdaf11c8: Download complete 11:22:04 5d74067f8e1e: Verifying Checksum 11:22:04 5d74067f8e1e: Download complete 11:22:04 e0aca202a116: Verifying Checksum 11:22:04 e0aca202a116: Download complete 11:22:04 3a43be97a3b4: Verifying Checksum 11:22:04 3a43be97a3b4: Download complete 11:22:04 a0d0a0d46f8b: Verifying Checksum 11:22:04 a0d0a0d46f8b: Download complete 11:22:05 34cad66bf833: Verifying Checksum 11:22:05 34cad66bf833: Download complete 11:22:05 a0d0a0d46f8b: Pull complete 11:22:05 b4e3c513aaa6: Verifying Checksum 11:22:05 b4e3c513aaa6: Download complete 11:22:05 4527c011a84f: Verifying Checksum 11:22:05 4527c011a84f: Download complete 11:22:05 31adcdaf11c8: Pull complete 11:22:05 b8b176561691: Pull complete 11:22:09 4527c011a84f: Pull complete 11:22:09 5d74067f8e1e: Pull complete 11:22:09 e0aca202a116: Pull complete 11:22:09 3a43be97a3b4: Pull complete 11:22:09 34cad66bf833: Pull complete 11:22:11 b4e3c513aaa6: Pull complete 11:22:11 Digest: sha256:75229776e65f3af88907aed05f91058a30c94a2fbbc20266ef4560f68deb3433 11:22:11 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.16-alpine 11:22:11 ---> 9f6097aaca64 11:22:11 Step 3/11 : ARG MAKE='make build' 11:22:15 ---> Running in 0f80cfb7ac6d 11:22:15 Removing intermediate container 0f80cfb7ac6d 11:22:15 ---> 012dd19435c4 11:22:15 Step 4/11 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 11:22:15 ---> Running in c5727385011e 11:22:15 Removing intermediate container c5727385011e 11:22:15 ---> a26b9b7f1e90 11:22:15 Step 5/11 : ARG ALPINE_PKG_EXTRA="" 11:22:15 ---> Running in e8fd04a084df 11:22:15 Removing intermediate container e8fd04a084df 11:22:15 ---> e07dcbaea3e9 11:22:15 Step 6/11 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 11:22:15 ---> Running in 3e389525f4c3 11:22:15 Removing intermediate container 3e389525f4c3 11:22:15 ---> 2274c33fb2e6 11:22:15 Step 7/11 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 11:22:15 ---> Running in ce0354bea33a 11:22:15 fetch https://nl.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz 11:22:16 fetch https://nl.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz 11:22:17 (1/4) Installing openssh-keygen (8.6_p1-r3) 11:22:17 (2/4) Installing libedit (20210216.3.1-r0) 11:22:17 (3/4) Installing openssh-client-common (8.6_p1-r3) 11:22:17 (4/4) Installing openssh-client-default (8.6_p1-r3) 11:22:17 Executing busybox-1.33.1-r3.trigger 11:22:17 OK: 224 MiB in 56 packages 11:22:17 Removing intermediate container ce0354bea33a 11:22:17 ---> a3fc0a0301bb 11:22:17 Step 8/11 : WORKDIR /device-rest-go 11:22:17 ---> Running in 59dc5d367696 11:22:17 Removing intermediate container 59dc5d367696 11:22:17 ---> 04a5d474ca43 11:22:17 Step 9/11 : COPY . . 11:22:17 ---> 78fe7e444d37 11:22:17 Step 10/11 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 11:22:18 ---> Running in d5047fa158be 11:22:44 Removing intermediate container d5047fa158be 11:22:44 ---> 8b13560e93b1 11:22:44 Step 11/11 : RUN $MAKE 11:22:44 ---> Running in 7a49dcf38dec 11:22:44 noop 11:22:44 Removing intermediate container 7a49dcf38dec 11:22:44 ---> 973de18f2d9d 11:22:44 Successfully built 973de18f2d9d 11:22:44 Successfully tagged ci-base-image-x86_64:latest [Pipeline] isUnix [Pipeline] sh 11:22:45 + docker inspect -f . ci-base-image-x86_64 11:22:45 . [Pipeline] withDockerContainer 11:22:45 prd-centos7-docker-4c-2g-955 does not seem to be running inside a container 11:22:45 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/5 -v /w/workspace/device-rest-go/5:/w/workspace/device-rest-go/5:rw,z -v /w/workspace/device-rest-go/5@tmp:/w/workspace/device-rest-go/5@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-x86_64 cat 11:22:45 $ docker top 3c374fdc22ed6454462dfba4c60fa656300f9b62a75e1189c2ee1b5dba17298d -eo pid,comm [Pipeline] { [Pipeline] sh 11:22:46 + go version 11:22:46 go version go1.16.8 linux/amd64 [Pipeline] } 11:22:46 $ docker stop --time=1 3c374fdc22ed6454462dfba4c60fa656300f9b62a75e1189c2ee1b5dba17298d 11:22:47 $ docker rm -f 3c374fdc22ed6454462dfba4c60fa656300f9b62a75e1189c2ee1b5dba17298d [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 11:22:47 + docker inspect -f . ci-base-image-x86_64 11:22:47 . [Pipeline] withDockerContainer 11:22:47 prd-centos7-docker-4c-2g-955 does not seem to be running inside a container 11:22:47 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/5 -v /w/workspace/device-rest-go/5:/w/workspace/device-rest-go/5:rw,z -v /w/workspace/device-rest-go/5@tmp:/w/workspace/device-rest-go/5@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-x86_64 cat 11:22:48 $ docker top 66b3e14de8bd85b293cb414589524bf98b81603e30c79a12dad6c5672d0f6582 -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 11:22:48 + make test 11:22:48 CGO_ENABLED=1 GO111MODULE=on go test -coverprofile=coverage.out ./... 11:22:48 ? github.com/edgexfoundry/device-rest-go [no test files] 11:23:03 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 11:23:04 ok github.com/edgexfoundry/device-rest-go/driver 0.013s coverage: 56.0% of statements 11:23:04 CGO_ENABLED=1 GO111MODULE=on go vet ./... 11:23:10 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 11:23:10 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 11:23:10 ./bin/test-attribution-txt.sh [Pipeline] echo 11:23:10 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 11:23:10 $ docker stop --time=1 66b3e14de8bd85b293cb414589524bf98b81603e30c79a12dad6c5672d0f6582 11:23:12 $ docker rm -f 66b3e14de8bd85b293cb414589524bf98b81603e30c79a12dad6c5672d0f6582 [Pipeline] // withDockerContainer [Pipeline] sh 11:23:12 + sudo chown -R jenkins:jenkins . [Pipeline] stash 11:23:12 Running on prd-ubuntu18.04-docker-arm64-4c-16g-956 in /w/workspace/gexfoundry_device-rest-go_PR-146 [Pipeline] { [Pipeline] ws 11:23:12 Running in /w/workspace/device-rest-go/5 [Pipeline] { 11:23:12 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] checkout [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) 11:23:13 The recommended git tool is: git [Pipeline] sh 11:23:14 + sudo chown -R jenkins:jenkins . [Pipeline] sh 11:23:14 + ls -al . 11:23:14 total 148 11:23:14 drwxrwxr-x. 8 jenkins jenkins 4096 Nov 17 11:23 . 11:23:14 drwxrwxr-x. 4 jenkins jenkins 28 Nov 17 11:21 .. 11:23:14 -rw-rw-r--. 1 jenkins jenkins 7095 Nov 17 11:21 Attribution.txt 11:23:14 drwxrwxr-x. 2 jenkins jenkins 37 Nov 17 11:21 bin 11:23:14 -rw-rw-r--. 1 jenkins jenkins 7459 Nov 17 11:21 CHANGELOG.md 11:23:14 drwxrwxr-x. 3 jenkins jenkins 32 Nov 17 11:21 cmd 11:23:14 -rw-r--r--. 1 jenkins jenkins 9215 Nov 17 11:23 coverage.out 11:23:14 -rw-rw-r--. 1 jenkins jenkins 1649 Nov 17 11:21 Dockerfile 11:23:14 -rw-rw-r--. 1 jenkins jenkins 151 Nov 17 11:21 .dockerignore 11:23:14 drwxrwxr-x. 2 jenkins jenkins 76 Nov 17 11:21 driver 11:23:14 drwxrwxr-x. 8 jenkins jenkins 179 Nov 17 11:22 .git 11:23:14 drwxrwxr-x. 2 jenkins jenkins 103 Nov 17 11:21 .github 11:23:14 -rw-rw-r--. 1 jenkins jenkins 329 Nov 17 11:21 .gitignore 11:23:14 -rw-rw-r--. 1 jenkins jenkins 271 Nov 17 11:21 go.mod 11:23:14 -rw-rw-r--. 1 jenkins jenkins 49306 Nov 17 11:21 go.sum 11:23:14 -rw-rw-r--. 1 jenkins jenkins 677 Nov 17 11:21 GOVERNANCE.md 11:23:14 -rw-rw-r--. 1 jenkins jenkins 680 Nov 17 11:21 Jenkinsfile 11:23:14 -rw-rw-r--. 1 jenkins jenkins 11340 Nov 17 11:21 LICENSE 11:23:14 -rw-rw-r--. 1 jenkins jenkins 1078 Nov 17 11:21 Makefile 11:23:14 -rw-rw-r--. 1 jenkins jenkins 620 Nov 17 11:21 OWNERS.md 11:23:14 -rw-rw-r--. 1 jenkins jenkins 8246 Nov 17 11:21 README.md 11:23:14 drwxrwxr-x. 3 jenkins jenkins 58 Nov 17 11:21 snap 11:23:14 -rw-rw-r--. 1 jenkins jenkins 5 Nov 17 11:19 VERSION 11:23:14 -rw-rw-r--. 1 jenkins jenkins 713 Nov 17 11:21 version.go [Pipeline] isUnix [Pipeline] sh 11:23:14 + 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=7435c4dcfd7fab1fb97167049a99f90a51d42f95 --label arch=amd64 --label version=0.0.0 . 11:23:14 Sending build context to Docker daemon 131.6kB 11:23:14 Step 1/24 : ARG BASE=golang:1.16-alpine3.14 11:23:14 Step 2/24 : FROM ${BASE} AS builder 11:23:14 ---> 973de18f2d9d 11:23:14 Step 3/24 : ARG MAKE='make build' 11:23:14 ---> Running in 7f94ac9ea0ba 11:23:14 Removing intermediate container 7f94ac9ea0ba 11:23:14 ---> f897a2e32231 11:23:14 Step 4/24 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 11:23:14 ---> Running in 86668e1cf59a 11:23:14 Removing intermediate container 86668e1cf59a 11:23:14 ---> b6f3581e47f1 11:23:14 Step 5/24 : ARG ALPINE_PKG_EXTRA="" 11:23:14 ---> Running in f827104f7c06 11:23:14 Removing intermediate container f827104f7c06 11:23:14 ---> 8e66b2aa49ae 11:23:14 Step 6/24 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 11:23:14 ---> Running in da0e81afec91 11:23:15 Removing intermediate container da0e81afec91 11:23:15 ---> 1f2bb38ef152 11:23:15 Step 7/24 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 11:23:15 ---> Running in 07db0a2300d4 11:23:15 fetch https://nl.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz 11:23:16 fetch https://nl.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz 11:23:16 OK: 224 MiB in 56 packages 11:23:16 Removing intermediate container 07db0a2300d4 11:23:16 ---> 219ea05a0294 11:23:16 Step 8/24 : WORKDIR /device-rest-go 11:23:17 ---> Running in c55df6ddf758 11:23:17 Removing intermediate container c55df6ddf758 11:23:17 ---> 07b1c0f8a076 11:23:17 Step 9/24 : COPY . . 11:23:17 ---> d83c246e9c71 11:23:17 Step 10/24 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 11:23:17 ---> Running in 222bb1e3b35f 11:23:18 Removing intermediate container 222bb1e3b35f 11:23:18 ---> 8f78983648d1 11:23:18 Step 11/24 : RUN $MAKE 11:23:18 ---> Running in cb96f0b468c4 11:23:18 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:23:18 using credential edgex-jenkins-ssh 11:23:18 Cloning the remote Git repository 11:23:18 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 11:23:18 > git init /w/workspace/device-rest-go/5 # timeout=10 11:23:18 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 11:23:18 > git --version # timeout=10 11:23:18 > git --version # 'git version 2.17.1' 11:23:18 using GIT_SSH to set credentials SSH Credentials for GitHub 11:23:18 > git fetch --tags --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 11:23:22 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 11:23:22 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 11:23:22 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 11:23:22 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 11:23:22 using GIT_SSH to set credentials SSH Credentials for GitHub 11:23:22 > 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:23:23 Merging remotes/origin/main commit 7759c41568adf15208c0dd5cadcdb8f87895acd8 into PR head commit 7435c4dcfd7fab1fb97167049a99f90a51d42f95 11:23:23 Merge succeeded, producing 7435c4dcfd7fab1fb97167049a99f90a51d42f95 11:23:23 Checking out Revision 7435c4dcfd7fab1fb97167049a99f90a51d42f95 (PR-146) 11:23:23 > git config core.sparsecheckout # timeout=10 11:23:23 > git checkout -f 7435c4dcfd7fab1fb97167049a99f90a51d42f95 # timeout=10 11:23:23 > git remote # timeout=10 11:23:23 > git config --get remote.origin.url # timeout=10 11:23:23 using GIT_SSH to set credentials SSH Credentials for GitHub 11:23:23 > git merge 7759c41568adf15208c0dd5cadcdb8f87895acd8 # timeout=10 11:23:23 > git rev-parse HEAD^{commit} # timeout=10 11:23:23 > git config core.sparsecheckout # timeout=10 11:23:23 > git checkout -f 7435c4dcfd7fab1fb97167049a99f90a51d42f95 # timeout=10 11:23:27 Commit message: "build(snap): update `base` to core20" [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 11:23:28 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 11:23:28 % Total % Received % Xferd Average Speed Time Time Time Current 11:23:28 Dload Upload Total Spent Left Speed 11:23:28 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 11824 100 11824 0 0 88902 0 --:--:-- --:--:-- --:--:-- 88902 [Pipeline] sh 11:23:29 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 11:23:29 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 11:23:29 + sudo tee /etc/docker/daemon.new 11:23:29 { 11:23:29 "registry-mirrors": [ 11:23:29 "https://nexus3.edgexfoundry.org:10001" 11:23:29 ], 11:23:29 "bip": "10.250.0.254/24", 11:23:29 "hosts": [ 11:23:29 "tcp://0.0.0.0:5555", 11:23:29 "unix:///var/run/docker.sock" 11:23:29 ], 11:23:29 "mtu": 1458, 11:23:29 "selinux-enabled": true, 11:23:29 "seccomp-profile": "/etc/docker/seccomp.json" 11:23:29 } [Pipeline] sh 11:23:29 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 11:23:30 + sudo service docker restart 11:23:30 Removing intermediate container cb96f0b468c4 11:23:30 ---> f2259538087f 11:23:30 Step 12/24 : FROM alpine:3.14 11:23:30 3.14: Pulling from library/alpine 11:23:30 97518928ae5f: Pulling fs layer 11:23:30 97518928ae5f: Verifying Checksum 11:23:30 97518928ae5f: Download complete 11:23:30 97518928ae5f: Pull complete 11:23:30 Digest: sha256:635f0aa53d99017b38d1a0aa5b2082f7812b03e3cdb299103fe77b5c8a07f1d2 11:23:30 Status: Downloaded newer image for alpine:3.14 11:23:30 ---> 0a97eee8041e 11:23:30 Step 13/24 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' 11:23:30 ---> Running in 022aeac8c091 11:23:30 Removing intermediate container 022aeac8c091 11:23:30 ---> 802a85c1224c 11:23:30 Step 14/24 : LABEL Name=device-rest-go Version=${VERSION} 11:23:30 ---> Running in eb5b507a2c9a 11:23:30 Removing intermediate container eb5b507a2c9a 11:23:30 ---> 65e0e28ec66a 11:23:30 Step 15/24 : RUN apk add --update --no-cache zeromq dumb-init 11:23:30 ---> Running in 4b7ee9f5ee13 11:23:30 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz 11:23:30 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz 11:23:31 (1/6) Installing dumb-init (1.2.5-r1) 11:23:31 (2/6) Installing libgcc (10.3.1_git20210424-r2) 11:23:31 (3/6) Installing libsodium (1.0.18-r0) 11:23:31 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 11:23:31 (5/6) Installing libzmq (4.3.4-r0) 11:23:31 (6/6) Installing zeromq (4.3.4-r0) 11:23:31 Executing busybox-1.33.1-r6.trigger 11:23:31 OK: 8 MiB in 20 packages 11:23:31 Removing intermediate container 4b7ee9f5ee13 11:23:31 ---> 69f36facdf26 11:23:31 Step 16/24 : COPY --from=builder /device-rest-go/cmd / 11:23:31 ---> 27d423eed9db 11:23:31 Step 17/24 : COPY --from=builder /device-rest-go/LICENSE / 11:23:31 ---> b72ac9881d0d 11:23:31 Step 18/24 : COPY --from=builder /device-rest-go/Attribution.txt / 11:23:31 ---> 214b67ab91aa 11:23:31 Step 19/24 : EXPOSE 59986 11:23:31 ---> Running in b69c0ad7813c 11:23:31 Removing intermediate container b69c0ad7813c 11:23:31 ---> b3b5be18213d 11:23:31 Step 20/24 : ENTRYPOINT ["/device-rest"] 11:23:32 ---> Running in ff29a831e482 11:23:32 Removing intermediate container ff29a831e482 11:23:32 ---> 5f6aca85cf3c 11:23:32 Step 21/24 : CMD ["--cp=consul://edgex-core-consul:8500", "--confdir=/res", "--registry"] 11:23:32 ---> Running in 21a304925efb 11:23:32 Removing intermediate container 21a304925efb 11:23:32 ---> 465e4fedbf51 11:23:32 Step 22/24 : LABEL arch=amd64 11:23:32 ---> Running in 14b605971cf5 11:23:32 Removing intermediate container 14b605971cf5 11:23:32 ---> 7138022329c8 11:23:32 Step 23/24 : LABEL git_sha=7435c4dcfd7fab1fb97167049a99f90a51d42f95 11:23:32 ---> Running in 44b8f430a615 11:23:32 Removing intermediate container 44b8f430a615 11:23:32 ---> 3ccb2b6f46cd 11:23:32 Step 24/24 : LABEL version=0.0.0 11:23:32 ---> Running in 3bbbef73d69a 11:23:32 Removing intermediate container 3bbbef73d69a 11:23:32 ---> be3a6d6f1021 11:23:32 [Warning] One or more build-args [ARCH] were not consumed 11:23:32 Successfully built be3a6d6f1021 11:23:32 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:23:33 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 11:23:33 11:23:33 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] sh 11:23:33 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 11:23:33 latest: Pulling from edgex-lftools-log-publisher 11:23:33 b4d181a07f80: Pulling fs layer 11:23:33 a1111a8f2ec3: Pulling fs layer 11:23:33 ed53099fbce6: Pulling fs layer 11:23:33 dc539afda2c1: Pulling fs layer 11:23:33 77bc0d833cb6: Pulling fs layer 11:23:33 9065ff56babe: Pulling fs layer 11:23:33 d287ab97295c: Pulling fs layer 11:23:33 dc539afda2c1: Waiting 11:23:33 77bc0d833cb6: Waiting 11:23:33 9065ff56babe: Waiting 11:23:33 d287ab97295c: Waiting 11:23:33 a1111a8f2ec3: Verifying Checksum 11:23:33 a1111a8f2ec3: Download complete 11:23:33 dc539afda2c1: Verifying Checksum 11:23:33 dc539afda2c1: Download complete 11:23:33 ed53099fbce6: Verifying Checksum 11:23:33 ed53099fbce6: Download complete 11:23:33 b4d181a07f80: Download complete 11:23:33 77bc0d833cb6: Verifying Checksum 11:23:33 77bc0d833cb6: Download complete 11:23:33 9065ff56babe: Verifying Checksum 11:23:33 9065ff56babe: Download complete 11:23:34 d287ab97295c: Verifying Checksum 11:23:34 d287ab97295c: Download complete 11:23:35 b4d181a07f80: Pull complete 11:23:35 a1111a8f2ec3: Pull complete 11:23:35 ed53099fbce6: Pull complete 11:23:35 dc539afda2c1: Pull complete 11:23:36 77bc0d833cb6: Pull complete 11:23:36 9065ff56babe: Pull complete 11:23:41 d287ab97295c: Pull complete 11:23:41 Digest: sha256:0c69325c24349bfb3ea32a3c3cbcab1fb66df42c981276dd8ebcf6aa441257c4 11:23:41 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 11:23:41 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] withDockerContainer 11:23:41 prd-centos7-docker-4c-2g-955 does not seem to be running inside a container 11:23:41 $ 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/5 -v /w/workspace/device-rest-go/5:/w/workspace/device-rest-go/5:rw,z -v /w/workspace/device-rest-go/5@tmp:/w/workspace/device-rest-go/5@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:latest cat 11:23:44 $ docker top e52d3b94107581dc221ccd409255b3833ab1b1a1fa249a14431e3123f2aafd56 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 11:23:44 ---> job-cost.sh 11:23:44 lf-activate-venv: SKIPPING 11:23:44 INFO: No Stack... 11:23:44 INFO: Retrieving Pricing Info for: v3-standard-2 11:23:45 INFO: Archiving Costs [Pipeline] sh 11:23:45 + cat /w/workspace/device-rest-go/5/archives/cost.csv 11:23:45 + cut -d, -f6 [Pipeline] lock 11:23:45 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-146-5-stack-cost] 11:23:45 Resource [jenkins-edgexfoundry-device-rest-go-PR-146-5-stack-cost] did not exist. Created. 11:23:45 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-146-5-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 11:23:45 + echo total: 0.05999999865889549 [Pipeline] stash 11:23:45 Stashed 1 file(s) [Pipeline] } 11:23:45 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-146-5-stack-cost] [Pipeline] // lock [Pipeline] } 11:23:45 $ docker stop --time=1 e52d3b94107581dc221ccd409255b3833ab1b1a1fa249a14431e3123f2aafd56 11:23:46 $ docker rm -f e52d3b94107581dc221ccd409255b3833ab1b1a1fa249a14431e3123f2aafd56 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // ws [Pipeline] } [Pipeline] // node [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 11:23:48 provisioning config files... 11:23:48 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/5@tmp/config2999651142444458132tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 11:23:49 ---> docker-login.sh 11:23:49 nexus3.edgexfoundry.org:10001 11:23:49 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:23:49 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:23:49 Configure a credential helper to remove this warning. See 11:23:49 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:23:49 11:23:49 Login Succeeded 11:23:49 nexus3.edgexfoundry.org:10002 11:23:50 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:23:50 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:23:50 Configure a credential helper to remove this warning. See 11:23:50 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:23:50 11:23:50 Login Succeeded 11:23:50 nexus3.edgexfoundry.org:10003 11:23:51 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:23:51 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:23:51 Configure a credential helper to remove this warning. See 11:23:51 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:23:51 11:23:51 Login Succeeded 11:23:51 nexus3.edgexfoundry.org:10004 11:23:51 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:23:51 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:23:51 Configure a credential helper to remove this warning. See 11:23:51 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:23:51 11:23:51 Login Succeeded 11:23:51 docker.io 11:23:51 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:23:52 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:23:52 Configure a credential helper to remove this warning. See 11:23:52 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:23:52 11:23:52 Login Succeeded 11:23:52 ---> docker-login.sh ends [Pipeline] } 11:23:52 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 11:23:53 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 11:23:53 ========================================================= 11:23:53 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.16-alpine] 11:23:53 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 11:23:53 + 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:23:53 Sending build context to Docker daemon 121.9kB 11:23:53 Step 1/11 : ARG BASE=golang:1.16-alpine3.14 11:23:53 Step 2/11 : FROM ${BASE} AS builder 11:23:54 1.16-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 11:23:54 552d1f2373af: Pulling fs layer 11:23:54 ea3f2d53f512: Pulling fs layer 11:23:54 9e70ebbbe112: Pulling fs layer 11:23:54 7a9cfe048b4a: Pulling fs layer 11:23:54 72dc09318566: Pulling fs layer 11:23:54 f4f7b4309257: Pulling fs layer 11:23:54 0ac9a79272e3: Pulling fs layer 11:23:54 b78e95d17946: Pulling fs layer 11:23:54 7a9cfe048b4a: Waiting 11:23:54 72dc09318566: Waiting 11:23:54 f4f7b4309257: Waiting 11:23:54 0ac9a79272e3: Waiting 11:23:54 b78e95d17946: Waiting 11:23:54 9e70ebbbe112: Download complete 11:23:54 ea3f2d53f512: Verifying Checksum 11:23:54 ea3f2d53f512: Download complete 11:23:54 72dc09318566: Verifying Checksum 11:23:54 72dc09318566: Download complete 11:23:54 f4f7b4309257: Verifying Checksum 11:23:54 f4f7b4309257: Download complete 11:23:54 552d1f2373af: Verifying Checksum 11:23:54 0ac9a79272e3: Verifying Checksum 11:23:54 0ac9a79272e3: Download complete 11:23:55 552d1f2373af: Pull complete 11:23:55 ea3f2d53f512: Pull complete 11:23:55 9e70ebbbe112: Pull complete 11:23:56 b78e95d17946: Verifying Checksum 11:23:56 b78e95d17946: Download complete 11:23:56 7a9cfe048b4a: Verifying Checksum 11:23:56 7a9cfe048b4a: Download complete 11:24:06 7a9cfe048b4a: Pull complete 11:24:06 72dc09318566: Pull complete 11:24:07 f4f7b4309257: Pull complete 11:24:07 0ac9a79272e3: Pull complete 11:24:12 b78e95d17946: Pull complete 11:24:13 Digest: sha256:8f77ec77db7124c2038421266515449a73d34d95fd7f90866b77fbf8f5a401c7 11:24:13 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.16-alpine 11:24:13 ---> 8b459fc5aaf0 11:24:13 Step 3/11 : ARG MAKE='make build' 11:24:14 ---> Running in 3ea0ca010d0d 11:24:15 Removing intermediate container 3ea0ca010d0d 11:24:15 ---> 829ea4c2bd66 11:24:15 Step 4/11 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 11:24:15 ---> Running in af855a23a322 11:24:15 Removing intermediate container af855a23a322 11:24:15 ---> 8c7e667df69c 11:24:15 Step 5/11 : ARG ALPINE_PKG_EXTRA="" 11:24:15 ---> Running in 6020119aaeec 11:24:15 Removing intermediate container 6020119aaeec 11:24:15 ---> d21e57b86f05 11:24:15 Step 6/11 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 11:24:16 ---> Running in 409574bac05a 11:24:18 Removing intermediate container 409574bac05a 11:24:18 ---> dda6d0509f22 11:24:18 Step 7/11 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 11:24:18 ---> Running in 9f4d9d648651 11:24:19 fetch https://nl.alpinelinux.org/alpine/v3.14/main/aarch64/APKINDEX.tar.gz 11:24:20 fetch https://nl.alpinelinux.org/alpine/v3.14/community/aarch64/APKINDEX.tar.gz 11:24:21 (1/4) Installing openssh-keygen (8.6_p1-r3) 11:24:21 (2/4) Installing libedit (20210216.3.1-r0) 11:24:21 (3/4) Installing openssh-client-common (8.6_p1-r3) 11:24:21 (4/4) Installing openssh-client-default (8.6_p1-r3) 11:24:21 Executing busybox-1.33.1-r3.trigger 11:24:21 OK: 223 MiB in 56 packages 11:24:22 Removing intermediate container 9f4d9d648651 11:24:22 ---> 50e9190777eb 11:24:22 Step 8/11 : WORKDIR /device-rest-go 11:24:22 ---> Running in 1771344034a6 11:24:23 Removing intermediate container 1771344034a6 11:24:23 ---> a463a2e30f2e 11:24:23 Step 9/11 : COPY . . 11:24:23 ---> ab11bd4539b9 11:24:23 Step 10/11 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 11:24:23 ---> Running in 0f3787c2449d 11:25:32 Removing intermediate container 0f3787c2449d 11:25:32 ---> 1ee863fa9511 11:25:32 Step 11/11 : RUN $MAKE 11:25:32 ---> Running in c593c00094d4 11:25:33 noop 11:25:34 Removing intermediate container c593c00094d4 11:25:34 ---> d806e21971d0 11:25:34 Successfully built d806e21971d0 11:25:34 Successfully tagged ci-base-image-arm64:latest [Pipeline] isUnix [Pipeline] sh 11:25:34 + docker inspect -f . ci-base-image-arm64 11:25:34 . [Pipeline] withDockerContainer 11:25:34 prd-ubuntu18.04-docker-arm64-4c-16g-956 does not seem to be running inside a container 11:25:34 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/5 -v /w/workspace/device-rest-go/5:/w/workspace/device-rest-go/5:rw,z -v /w/workspace/device-rest-go/5@tmp:/w/workspace/device-rest-go/5@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-arm64 cat 11:25:36 $ docker top 4da38a3d1a7ed10d3e1a4fc10a05156d74d25569215eaf936139f9d0c30dd055 -eo pid,comm [Pipeline] { [Pipeline] sh 11:25:37 + go version 11:25:37 go version go1.16.8 linux/arm64 [Pipeline] } 11:25:37 $ docker stop --time=1 4da38a3d1a7ed10d3e1a4fc10a05156d74d25569215eaf936139f9d0c30dd055 11:25:39 $ docker rm -f 4da38a3d1a7ed10d3e1a4fc10a05156d74d25569215eaf936139f9d0c30dd055 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 11:25:39 + docker inspect -f . ci-base-image-arm64 11:25:39 . [Pipeline] withDockerContainer 11:25:40 prd-ubuntu18.04-docker-arm64-4c-16g-956 does not seem to be running inside a container 11:25:40 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/5 -v /w/workspace/device-rest-go/5:/w/workspace/device-rest-go/5:rw,z -v /w/workspace/device-rest-go/5@tmp:/w/workspace/device-rest-go/5@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-arm64 cat 11:25:41 $ docker top 486f5b95e648e006f6df2de8981f2b28f982e5caef61b17a563033be9fc0f905 -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 11:25:42 + make test 11:25:42 CGO_ENABLED=1 GO111MODULE=on go test -coverprofile=coverage.out ./... 11:25:43 ? github.com/edgexfoundry/device-rest-go [no test files] 11:26:40 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 11:26:40 ok github.com/edgexfoundry/device-rest-go/driver 0.055s coverage: 56.0% of statements 11:26:40 CGO_ENABLED=1 GO111MODULE=on go vet ./... 11:27:02 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 11:27:02 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 11:27:02 ./bin/test-attribution-txt.sh [Pipeline] echo 11:27:04 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 11:27:04 $ docker stop --time=1 486f5b95e648e006f6df2de8981f2b28f982e5caef61b17a563033be9fc0f905 11:27:05 $ docker rm -f 486f5b95e648e006f6df2de8981f2b28f982e5caef61b17a563033be9fc0f905 [Pipeline] // withDockerContainer [Pipeline] sh 11:27:06 + sudo chown -R jenkins:jenkins . [Pipeline] stash 11:27:06 Warning: overwriting stash ‘coverage-report’ 11:27:07 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 11:27:07 + sudo chown -R jenkins:jenkins . [Pipeline] sh 11:27:08 + ls -al . 11:27:08 total 176 11:27:08 drwxrwxr-x 8 jenkins jenkins 4096 Nov 17 11:27 . 11:27:08 drwxrwxr-x 4 jenkins jenkins 4096 Nov 17 11:23 .. 11:27:08 -rw-rw-r-- 1 jenkins jenkins 151 Nov 17 11:23 .dockerignore 11:27:08 drwxrwxr-x 8 jenkins jenkins 4096 Nov 17 11:23 .git 11:27:08 drwxrwxr-x 2 jenkins jenkins 4096 Nov 17 11:23 .github 11:27:08 -rw-rw-r-- 1 jenkins jenkins 329 Nov 17 11:23 .gitignore 11:27:08 -rw-rw-r-- 1 jenkins jenkins 7095 Nov 17 11:23 Attribution.txt 11:27:08 -rw-rw-r-- 1 jenkins jenkins 7459 Nov 17 11:23 CHANGELOG.md 11:27:08 -rw-rw-r-- 1 jenkins jenkins 1649 Nov 17 11:23 Dockerfile 11:27:08 -rw-rw-r-- 1 jenkins jenkins 677 Nov 17 11:23 GOVERNANCE.md 11:27:08 -rw-rw-r-- 1 jenkins jenkins 680 Nov 17 11:23 Jenkinsfile 11:27:08 -rw-rw-r-- 1 jenkins jenkins 11340 Nov 17 11:23 LICENSE 11:27:08 -rw-rw-r-- 1 jenkins jenkins 1078 Nov 17 11:23 Makefile 11:27:08 -rw-rw-r-- 1 jenkins jenkins 620 Nov 17 11:23 OWNERS.md 11:27:08 -rw-rw-r-- 1 jenkins jenkins 8246 Nov 17 11:23 README.md 11:27:08 -rw-rw-r-- 1 jenkins jenkins 5 Nov 17 11:19 VERSION 11:27:08 drwxrwxr-x 2 jenkins jenkins 4096 Nov 17 11:23 bin 11:27:08 drwxrwxr-x 3 jenkins jenkins 4096 Nov 17 11:23 cmd 11:27:08 -rw-r--r-- 1 jenkins jenkins 9215 Nov 17 11:26 coverage.out 11:27:08 drwxrwxr-x 2 jenkins jenkins 4096 Nov 17 11:23 driver 11:27:08 -rw-rw-r-- 1 jenkins jenkins 271 Nov 17 11:23 go.mod 11:27:08 -rw-rw-r-- 1 jenkins jenkins 49306 Nov 17 11:23 go.sum 11:27:08 drwxrwxr-x 3 jenkins jenkins 4096 Nov 17 11:23 snap 11:27:08 -rw-rw-r-- 1 jenkins jenkins 713 Nov 17 11:23 version.go [Pipeline] isUnix [Pipeline] sh 11:27:08 + 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=7435c4dcfd7fab1fb97167049a99f90a51d42f95 --label arch=arm64 --label version=0.0.0 . 11:27:08 Sending build context to Docker daemon 131.6kB 11:27:08 Step 1/24 : ARG BASE=golang:1.16-alpine3.14 11:27:08 Step 2/24 : FROM ${BASE} AS builder 11:27:08 ---> d806e21971d0 11:27:08 Step 3/24 : ARG MAKE='make build' 11:27:09 ---> Running in d10bf4ee535f 11:27:09 Removing intermediate container d10bf4ee535f 11:27:09 ---> 89c8807f8172 11:27:09 Step 4/24 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 11:27:09 ---> Running in 8e9ea4ece567 11:27:09 Removing intermediate container 8e9ea4ece567 11:27:09 ---> e02ffda844d4 11:27:09 Step 5/24 : ARG ALPINE_PKG_EXTRA="" 11:27:10 ---> Running in 8e90c64c328c 11:27:10 Removing intermediate container 8e90c64c328c 11:27:10 ---> 9256a891efcf 11:27:10 Step 6/24 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 11:27:10 ---> Running in d3b1fdd061d3 11:27:12 Removing intermediate container d3b1fdd061d3 11:27:12 ---> 3abdeb4f2efc 11:27:12 Step 7/24 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 11:27:12 ---> Running in 81e3687f530f 11:27:13 fetch https://nl.alpinelinux.org/alpine/v3.14/main/aarch64/APKINDEX.tar.gz 11:27:14 fetch https://nl.alpinelinux.org/alpine/v3.14/community/aarch64/APKINDEX.tar.gz 11:27:15 OK: 223 MiB in 56 packages 11:27:16 Removing intermediate container 81e3687f530f 11:27:16 ---> ca5defb50460 11:27:16 Step 8/24 : WORKDIR /device-rest-go 11:27:16 ---> Running in 7d288d76bbfb 11:27:16 Removing intermediate container 7d288d76bbfb 11:27:16 ---> 83e200136d73 11:27:16 Step 9/24 : COPY . . 11:27:17 ---> 01797d1773d7 11:27:17 Step 10/24 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 11:27:17 ---> Running in e570c0f4c2c3 11:27:20 Removing intermediate container e570c0f4c2c3 11:27:20 ---> 1cbeed9a23e8 11:27:20 Step 11/24 : RUN $MAKE 11:27:20 ---> Running in ba077bf94439 11:27:21 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:28:00 Removing intermediate container ba077bf94439 11:28:00 ---> 3d8492065688 11:28:00 Step 12/24 : FROM alpine:3.14 11:28:00 3.14: Pulling from library/alpine 11:28:00 be307f383ecc: Pulling fs layer 11:28:00 be307f383ecc: Verifying Checksum 11:28:00 be307f383ecc: Download complete 11:28:00 be307f383ecc: Pull complete 11:28:00 Digest: sha256:635f0aa53d99017b38d1a0aa5b2082f7812b03e3cdb299103fe77b5c8a07f1d2 11:28:00 Status: Downloaded newer image for alpine:3.14 11:28:00 ---> 5b8b7b635229 11:28:00 Step 13/24 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' 11:28:00 ---> Running in 005d69ed80d4 11:28:00 Removing intermediate container 005d69ed80d4 11:28:00 ---> df78c85a6b6a 11:28:00 Step 14/24 : LABEL Name=device-rest-go Version=${VERSION} 11:28:00 ---> Running in 659dbf428c12 11:28:00 Removing intermediate container 659dbf428c12 11:28:00 ---> e1d6cc2d3bdf 11:28:00 Step 15/24 : RUN apk add --update --no-cache zeromq dumb-init 11:28:00 ---> Running in 2caafc56c897 11:28:00 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/aarch64/APKINDEX.tar.gz 11:28:00 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/aarch64/APKINDEX.tar.gz 11:28:01 (1/6) Installing dumb-init (1.2.5-r1) 11:28:01 (2/6) Installing libgcc (10.3.1_git20210424-r2) 11:28:01 (3/6) Installing libsodium (1.0.18-r0) 11:28:01 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 11:28:01 (5/6) Installing libzmq (4.3.4-r0) 11:28:01 (6/6) Installing zeromq (4.3.4-r0) 11:28:01 Executing busybox-1.33.1-r6.trigger 11:28:01 OK: 8 MiB in 20 packages 11:28:01 Removing intermediate container 2caafc56c897 11:28:01 ---> 776fff3ce25c 11:28:01 Step 16/24 : COPY --from=builder /device-rest-go/cmd / 11:28:03 ---> 78f7b8284fb0 11:28:03 Step 17/24 : COPY --from=builder /device-rest-go/LICENSE / 11:28:03 ---> 474d537734b0 11:28:03 Step 18/24 : COPY --from=builder /device-rest-go/Attribution.txt / 11:28:04 ---> 7cb2079cb641 11:28:04 Step 19/24 : EXPOSE 59986 11:28:04 ---> Running in a4cc4bfb1e69 11:28:04 Removing intermediate container a4cc4bfb1e69 11:28:04 ---> 369c6cce466b 11:28:04 Step 20/24 : ENTRYPOINT ["/device-rest"] 11:28:05 ---> Running in 83b876838ae0 11:28:05 Removing intermediate container 83b876838ae0 11:28:05 ---> e23667c3d588 11:28:05 Step 21/24 : CMD ["--cp=consul://edgex-core-consul:8500", "--confdir=/res", "--registry"] 11:28:05 ---> Running in 8ab11e58e779 11:28:06 Removing intermediate container 8ab11e58e779 11:28:06 ---> 89838088583a 11:28:06 Step 22/24 : LABEL arch=arm64 11:28:06 ---> Running in 688006b9cf2a 11:28:06 Removing intermediate container 688006b9cf2a 11:28:06 ---> 66c7de1dc1e2 11:28:06 Step 23/24 : LABEL git_sha=7435c4dcfd7fab1fb97167049a99f90a51d42f95 11:28:06 ---> Running in 58a22d73e01d 11:28:06 Removing intermediate container 58a22d73e01d 11:28:06 ---> 221ae74f53c8 11:28:06 Step 24/24 : LABEL version=0.0.0 11:28:06 ---> Running in 80116cbf9dec 11:28:07 Removing intermediate container 80116cbf9dec 11:28:07 ---> edefe30c2f62 11:28:07 [Warning] One or more build-args [ARCH] were not consumed 11:28:07 Successfully built edefe30c2f62 11:28:07 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:28:08 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 11:28:08 11:28:08 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] sh 11:28:08 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 11:28:08 arm64: Pulling from edgex-lftools-log-publisher 11:28:08 448f6bf000e3: Pulling fs layer 11:28:08 f757da607395: Pulling fs layer 11:28:08 05883995daec: Pulling fs layer 11:28:08 8603b9c90790: Pulling fs layer 11:28:08 1560dd03e051: Pulling fs layer 11:28:08 27f5ce0e4adf: Pulling fs layer 11:28:08 c2d8d7efcc4b: Pulling fs layer 11:28:08 1560dd03e051: Waiting 11:28:08 8603b9c90790: Waiting 11:28:08 c2d8d7efcc4b: Waiting 11:28:08 f757da607395: Verifying Checksum 11:28:08 f757da607395: Download complete 11:28:08 8603b9c90790: Verifying Checksum 11:28:08 8603b9c90790: Download complete 11:28:08 1560dd03e051: Verifying Checksum 11:28:08 1560dd03e051: Download complete 11:28:09 27f5ce0e4adf: Download complete 11:28:09 05883995daec: Verifying Checksum 11:28:09 05883995daec: Download complete 11:28:09 448f6bf000e3: Verifying Checksum 11:28:09 448f6bf000e3: Download complete 11:28:12 c2d8d7efcc4b: Verifying Checksum 11:28:12 c2d8d7efcc4b: Download complete 11:28:13 448f6bf000e3: Pull complete 11:28:13 f757da607395: Pull complete 11:28:15 05883995daec: Pull complete 11:28:15 8603b9c90790: Pull complete 11:28:16 1560dd03e051: Pull complete 11:28:16 27f5ce0e4adf: Pull complete 11:28:31 c2d8d7efcc4b: Pull complete 11:28:31 Digest: sha256:42f6a1c33103aa4ecfebf648e29883a20fd84132c0f0d4f855d8bcfd8dd9c454 11:28:31 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 11:28:31 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] withDockerContainer 11:28:31 prd-ubuntu18.04-docker-arm64-4c-16g-956 does not seem to be running inside a container 11:28: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/5 -v /w/workspace/device-rest-go/5:/w/workspace/device-rest-go/5:rw,z -v /w/workspace/device-rest-go/5@tmp:/w/workspace/device-rest-go/5@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:arm64 cat 11:28:34 $ docker top a3f4255b0393564640e490a124f7a36bf127fdbda842de29bd89d40b10a2c33d -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 11:28:35 ---> job-cost.sh 11:28:35 lf-activate-venv: SKIPPING 11:28:35 INFO: No Stack... 11:28:36 INFO: Retrieving Pricing Info for: v3-standard-4 11:28:36 INFO: Archiving Costs [Pipeline] sh 11:28:37 + + cutcat -d, /w/workspace/device-rest-go/5/archives/cost.csv 11:28:37 -f6 [Pipeline] lock 11:28:37 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-146-5-stack-cost] 11:28:37 Resource [jenkins-edgexfoundry-device-rest-go-PR-146-5-stack-cost] did not exist. Created. 11:28:37 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-146-5-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 11:28:38 /w/workspace/device-rest-go/5@tmp/durable-abfc3046/script.sh: 1: /w/workspace/device-rest-go/5@tmp/durable-abfc3046/script.sh: Syntax error: Unterminated quoted string [Pipeline] sh 11:28:38 + echo total: 0.10999999940395355 [Pipeline] stash 11:28:38 Warning: overwriting stash ‘stack-cost’ 11:28:38 Stashed 1 file(s) [Pipeline] } 11:28:38 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-146-5-stack-cost] [Pipeline] // lock [Pipeline] } 11:28:38 $ docker stop --time=1 a3f4255b0393564640e490a124f7a36bf127fdbda842de29bd89d40b10a2c33d 11:28:40 $ docker rm -f a3f4255b0393564640e490a124f7a36bf127fdbda842de29bd89d40b10a2c33d [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:28:41 provisioning config files... 11:28:41 copy managed file [device-rest-go-codecov-token] to file:/w/workspace/gexfoundry_device-rest-go_PR-146@tmp/config768206521759270276tmp [Pipeline] { [Pipeline] sh 11:28:42 + set +x 11:28:42 + curl -s https://codecov.io/bash 11:28:42 + bash -s -- 11:28:42 11:28:42 _____ _ 11:28:42 / ____| | | 11:28:42 | | ___ __| | ___ ___ _____ __ 11:28:42 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 11:28:42 | |___| (_) | (_| | __/ (_| (_) \ V / 11:28:42 \_____\___/ \__,_|\___|\___\___/ \_/ 11:28:42 Bash-1.0.6 11:28:42 11:28:42 11:28:42 ==> git version 2.24.4 found 11:28:42 ==> 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:28:42 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp 11:28:42 Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz unix-sockets 11:28:42 ==> Jenkins CI detected. 11:28:42 current dir:  /w/workspace/gexfoundry_device-rest-go_PR-146 11:28:42 project root: . 11:28:42 --> token set from env 11:28:42 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 11:28:42 ==> Running gcov in . (disable via -X gcov) 11:28:42 ==> Python coveragepy not found 11:28:42 ==> Searching for coverage reports in: 11:28:42 + . 11:28:42 -> Found 1 reports 11:28:42 ==> Detecting git/mercurial file structure 11:28:42 ==> Reading reports 11:28:42 + ./coverage.out bytes=9215 11:28:42 ==> Appending adjustments 11:28:42 https://docs.codecov.io/docs/fixing-reports 11:28:42 + Found adjustments 11:28:42 ==> Gzipping contents 11:28:42 4.0K /tmp/codecov.Znj8jL.gz 11:28:42 ==> Uploading reports 11:28:42 url: https://codecov.io 11:28:42 query: branch=PR-146&commit=7435c4dcfd7fab1fb97167049a99f90a51d42f95&build=5&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-146%2F5%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=146&job=&cmd_args= 11:28:42 -> Pinging Codecov 11:28:42 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=7435c4dcfd7fab1fb97167049a99f90a51d42f95&build=5&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-146%2F5%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=146&job=&cmd_args= 11:28:42 -> Uploading to 11:28:42 https://storage.googleapis.com/codecov/v4/raw/2021-11-17/4E5D53B4F1F92C436F7061BF334D961C/7435c4dcfd7fab1fb97167049a99f90a51d42f95/88d6907f-9840-4955-8956-8108b3f1c51d.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20211117%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20211117T112842Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=eac128c5c28964af50a6c9a2918e080de1cbe4a3106bca5ecceb290bd40c239d 11:28:42 % Total % Received % Xferd Average Speed Time Time Time Current 11:28:42 Dload Upload Total Spent Left Speed 11:28:43 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 1805 0 0 100 1805 0 5846 --:--:-- --:--:-- --:--:-- 5860 11:28:43 -> Reports have been successfully queued for processing at https://codecov.io/github/edgexfoundry/device-rest-go/commit/7435c4dcfd7fab1fb97167049a99f90a51d42f95 [Pipeline] } 11:28:43 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:28:44 + '[' -d /w/workspace/gexfoundry_device-rest-go_PR-146/archives ']' [Pipeline] libraryResource [Pipeline] sh 11:28:44 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 11:28:45 ---> package-listing.sh 11:28:45 ++ tr '[:upper:]' '[:lower:]' 11:28:45 ++ facter osfamily 11:28:45 + OS_FAMILY=redhat 11:28:45 + workspace=/w/workspace/gexfoundry_device-rest-go_PR-146 11:28:45 + START_PACKAGES=/tmp/packages_start.txt 11:28:45 + END_PACKAGES=/tmp/packages_end.txt 11:28:45 + DIFF_PACKAGES=/tmp/packages_diff.txt 11:28:45 + PACKAGES=/tmp/packages_start.txt 11:28:45 + '[' /w/workspace/gexfoundry_device-rest-go_PR-146 ']' 11:28:45 + PACKAGES=/tmp/packages_end.txt 11:28:45 + case "${OS_FAMILY}" in 11:28:45 + sort 11:28:45 + rpm -qa 11:28:45 + '[' -f /tmp/packages_start.txt ']' 11:28:45 + '[' -f /tmp/packages_end.txt ']' 11:28:45 + diff /tmp/packages_start.txt /tmp/packages_end.txt 11:28:45 + '[' /w/workspace/gexfoundry_device-rest-go_PR-146 ']' 11:28:45 + mkdir -p /w/workspace/gexfoundry_device-rest-go_PR-146/archives/ 11:28:45 + 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:28:45 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:28:46 + facter operatingsystem [Pipeline] isUnix [Pipeline] sh 11:28:46 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 11:28:46 11:28:46 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] sh 11:28:47 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 11:28:47 latest: Pulling from edgex-lftools-log-publisher 11:28:47 b4d181a07f80: Pulling fs layer 11:28:47 a1111a8f2ec3: Pulling fs layer 11:28:47 ed53099fbce6: Pulling fs layer 11:28:47 dc539afda2c1: Pulling fs layer 11:28:47 77bc0d833cb6: Pulling fs layer 11:28:47 9065ff56babe: Pulling fs layer 11:28:47 d287ab97295c: Pulling fs layer 11:28:47 77bc0d833cb6: Waiting 11:28:47 9065ff56babe: Waiting 11:28:47 d287ab97295c: Waiting 11:28:47 dc539afda2c1: Waiting 11:28:47 a1111a8f2ec3: Verifying Checksum 11:28:47 a1111a8f2ec3: Download complete 11:28:47 dc539afda2c1: Verifying Checksum 11:28:47 dc539afda2c1: Download complete 11:28:47 77bc0d833cb6: Verifying Checksum 11:28:47 77bc0d833cb6: Download complete 11:28:47 ed53099fbce6: Verifying Checksum 11:28:47 ed53099fbce6: Download complete 11:28:47 9065ff56babe: Verifying Checksum 11:28:47 9065ff56babe: Download complete 11:28:47 b4d181a07f80: Verifying Checksum 11:28:47 b4d181a07f80: Download complete 11:28:47 d287ab97295c: Verifying Checksum 11:28:47 d287ab97295c: Download complete 11:28:48 b4d181a07f80: Pull complete 11:28:48 a1111a8f2ec3: Pull complete 11:28:49 ed53099fbce6: Pull complete 11:28:49 dc539afda2c1: Pull complete 11:28:49 77bc0d833cb6: Pull complete 11:28:49 9065ff56babe: Pull complete 11:28:55 d287ab97295c: Pull complete 11:28:55 Digest: sha256:0c69325c24349bfb3ea32a3c3cbcab1fb66df42c981276dd8ebcf6aa441257c4 11:28:55 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 11:28:55 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] withDockerContainer 11:28:55 prd-centos7-docker-4c-2g-954 does not seem to be running inside a container 11:28:55 $ 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 ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 11:28:57 $ docker top ff062a82a227b42462cd6ac724ba8cd9e0dcbc59abef772684eca33cf6059106 -eo pid,comm [Pipeline] { [Pipeline] sh 11:28:58 + touch /tmp/pre-build-complete [Pipeline] sh 11:28:58 + mkdir -p /var/log/sysstat [Pipeline] sh 11:28:58 + ls /var/log/sa-host 11:28:58 + sadf -c /var/log/sa-host/sa17 11:28:58 file_magic: OK 11:28:58 HZ: Using current value: 100 11:28:58 file_header: OK 11:28:58 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:28:58 Statistics: 11:28:58 HRHnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu...Hnuu...uuuununununu... 11:28:58 File successfully converted to sysstat format version 12.0.3 11:28:58 + sadf -c /var/log/sa-host/sa30 11:28:58 file_magic: OK 11:28:58 HZ: Using current value: 100 11:28:58 file_header: OK 11:28:58 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:28:58 Statistics: 11:28:58 Hnuu...uuuununununu...Hnuu...uuuununununu... 11:28:58 File successfully converted to sysstat format version 12.0.3 [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 11:28:58 provisioning config files... 11:28:58 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-146@tmp/config1329694330256212778tmp [Pipeline] { [Pipeline] echo 11:28:58 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 11:28:59 ---> create-netrc.sh [Pipeline] } 11:28:59 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 11:28:59 ---> python-tools-install.sh [Pipeline] echo 11:28:59 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 11:28:59 ---> sudo-logs.sh 11:28:59 Archiving 'sudo' log.. 11:28:59 sudo: unable to resolve host prd-centos7-docker-4c-2g-954.novalocal: Name or service not known 11:28:59 sudo: unable to resolve host prd-centos7-docker-4c-2g-954.novalocal: Name or service not known [Pipeline] unstash [Pipeline] echo 11:28:59 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 11:29:00 ---> job-cost.sh 11:29:00 lf-activate-venv: SKIPPING 11:29:00 DEBUG: total: 0.10999999940395355 11:29:00 INFO: Retrieving Stack Cost... 11:29:00 INFO: Retrieving Pricing Info for: v3-standard-2 11:29:00 INFO: Archiving Costs [Pipeline] echo 11:29:00 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 11:29:00 ---> logs-deploy.sh 11:29:00 lf-activate-venv: SKIPPING 11:29:00 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-146/5 11:29:00 INFO: archiving workspace using pattern(s): 11:29:01 Archives upload complete. 11:29:01 INFO: archiving logs to Nexus