Pull request #202 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 2d7dd7bd9c9b446393cafd64d3a18985a73e6b07 rather than 5129bb747eb0d4e9647a0a00868555b5168ad271 Obtained Jenkinsfile from 2d7dd7bd9c9b446393cafd64d3a18985a73e6b07 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-ssh6278602798420799489.key > git ls-remote -h -t -- git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Found match: refs/tags/stable revision 2c7614b56cb57ece5b5bdf52d827492071d4cc62 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-ssh14100647795630853990.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 2c7614b56cb57ece5b5bdf52d827492071d4cc62 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-202/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82/.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-202/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh2922280607337196407.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision 2c7614b56cb57ece5b5bdf52d827492071d4cc62 (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f 2c7614b56cb57ece5b5bdf52d827492071d4cc62 # timeout=10 Commit message: "Merge pull request #399 from ernestojeda/fix-go-mod-version" > 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 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-ssh9952597005463094256.key > git ls-remote -h -- git@github.com:lfit/releng-pipelines.git # timeout=10 Found match: refs/heads/master revision 0f180ed1236c637af8c254f95ad106931cc77145 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-202/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e/.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-202/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e@tmp/jenkins-gitclient-ssh14245309510920215272.key > git fetch --no-tags --progress -- git@github.com:lfit/releng-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10 Checking out Revision 0f180ed1236c637af8c254f95ad106931cc77145 (master) > git config core.sparsecheckout # timeout=10 > git checkout -f 0f180ed1236c637af8c254f95ad106931cc77145 # timeout=10 Commit message: "Feat: Add initial docker pipelines" > 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 library test code cannot be accessed by Pipelines. To remove this log message, move the test code outside of src/. To restore the previous behavior that allowed access to files in src/test/, pass -Dorg.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.INCLUDE_SRC_TEST_IN_LIBRARIES=true to the java command used to start Jenkins. [Pipeline] Start of Pipeline [Pipeline] echo ========================================================= [edgeXBuildGoApp] RAW Config: [project:device-rest-go] ========================================================= [Pipeline] echo Setting up nodes based on requested architectures [[amd64, arm64]] [Pipeline] echo Nodes requested: [[ubuntu20.04-docker-8c-8g, ubuntu20.04-docker-arm64-4c-16g]] [Pipeline] echo ========================================================= [edgeXBuildGoApp] Pipeline Parameters: ========================================================= [Pipeline] echo MAVEN_SETTINGS: device-rest-go-settings PROJECT: device-rest-go USE_SEMVER: true TEST_SCRIPT: make test BUILD_SCRIPT: make build GO_VERSION: 1.17 USE_ALPINE: true DOCKER_FILE_PATH: Dockerfile DOCKER_BUILD_FILE_PATH: Dockerfile.build DOCKER_BUILD_CONTEXT: . DOCKER_BUILD_IMAGE_TARGET: builder DOCKER_IMAGE_NAME: device-rest DOCKER_REGISTRY_NAMESPACE: DOCKER_NEXUS_REPO: staging BUILD_DOCKER_IMAGE: true PUSH_DOCKER_IMAGE: true BUILD_EXPERIMENTAL_DOCKER_IMAGE: false BUILD_STABLE_DOCKER_IMAGE: false SEMVER_BUMP_LEVEL: pre BUILD_SNAP: false PUBLISH_SWAGGER_DOCS: false SWAGGER_API_FOLDERS: openapi/v1 ARTIFACT_ROOT: archives/bin ARTIFACT_TYPES: docker SHOULD_BUILD: true BUILD_FAILURE_NOTIFY_LIST: edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org SNYK_DEBUG: false [Pipeline] node Still waiting to schedule task All nodes of label ‘ubuntu20.04-docker-8c-8g’ are offline Running on prd-ubuntu20.04-docker-8c-8g-17123 in /w/workspace/gexfoundry_device-rest-go_PR-202 [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-202 # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git > git --version # timeout=10 > git --version # 'git version 2.25.1' using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 Merging remotes/origin/main commit 2d7dd7bd9c9b446393cafd64d3a18985a73e6b07 into PR head commit 5129bb747eb0d4e9647a0a00868555b5168ad271 Merge succeeded, producing 5129bb747eb0d4e9647a0a00868555b5168ad271 Checking out Revision 5129bb747eb0d4e9647a0a00868555b5168ad271 (PR-202) > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/202/head:refs/remotes/origin/PR-202 +refs/heads/main:refs/remotes/origin/main # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 5129bb747eb0d4e9647a0a00868555b5168ad271 # timeout=10 > git remote # timeout=10 > git config --get remote.origin.url # timeout=10 using GIT_SSH to set credentials SSH Credentials for GitHub > git merge 2d7dd7bd9c9b446393cafd64d3a18985a73e6b07 # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 5129bb747eb0d4e9647a0a00868555b5168ad271 # timeout=10 Commit message: "refactor(snap): Update configure .go and install.go" First time build. Skipping changelog. [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 09:31:19 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 09:31:19 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 09:31:19 ========================================================= 09:31:19 EdgeX Global Pipelines Version Info 09:31:19 ========================================================= [Pipeline] libraryResource [Pipeline] sh > git rev-list --no-walk 7d6adb19658aebbdce1e1ab237d480acf111f8fb # timeout=10 09:31:20 ------------------- 09:31:20 stable info: 09:31:20 ------------------- 09:31:20 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 09:31:20 Commit SHA: 2c7614b56cb57ece5b5bdf52d827492071d4cc62 09:31:20 Message: update stable to v1.0.234 09:31:20 ------------------- 09:31:20 experimental info: 09:31:20 ------------------- 09:31:20 Commited By: **** collab-it+edgex@linuxfoundation.org 09:31:20 Commit SHA: bc4e646769b4c5265b7fe03fd8295f2cc8e63760 09:31:20 Message: update experimental to v1.0.235 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 09:31:21 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 09:31:21 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 09:31:21 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 09:31:21 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 09:31:21 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 09:31:21 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.17 [Pipeline] echo 09:31:21 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 09:31:21 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 09:31:21 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 09:31:21 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 09:31:21 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 09:31:21 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 09:31:21 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 09:31:21 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 09:31:21 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 09:31:21 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 09:31:21 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 09:31:21 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 09:31:21 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 09:31:21 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 09:31:21 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 09:31:21 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 09:31:21 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 09:31:21 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 09:31:21 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 09:31:21 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 09:31:21 [edgeXSetupEnvironment]: set envvar SNYK_DEBUG = false [Pipeline] echo 09:31:21 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-202 [Pipeline] echo 09:31:21 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-202 [Pipeline] echo 09:31:21 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-202 [Pipeline] echo 09:31:21 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 5129bb747eb0d4e9647a0a00868555b5168ad271 [Pipeline] echo 09:31:21 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 5129bb7 [Pipeline] echo 09:31:21 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 09:31:21 provisioning config files... 09:31:21 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-202@tmp/config7878071508412424898tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 09:31:21 ---> docker-login.sh 09:31:21 nexus3.edgexfoundry.org:10001 09:31:22 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:31:22 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:31:22 Configure a credential helper to remove this warning. See 09:31:22 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:31:22 09:31:22 Login Succeeded 09:31:22 nexus3.edgexfoundry.org:10002 09:31:22 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:31:22 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:31:22 Configure a credential helper to remove this warning. See 09:31:22 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:31:22 09:31:22 Login Succeeded 09:31:22 nexus3.edgexfoundry.org:10003 09:31:22 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:31:22 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:31:22 Configure a credential helper to remove this warning. See 09:31:22 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:31:22 09:31:22 Login Succeeded 09:31:22 nexus3.edgexfoundry.org:10004 09:31:22 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:31:22 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:31:22 Configure a credential helper to remove this warning. See 09:31:22 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:31:22 09:31:22 Login Succeeded 09:31:22 docker.io 09:31:22 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:31:23 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:31:23 Configure a credential helper to remove this warning. See 09:31:23 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:31:23 09:31:23 Login Succeeded 09:31:23 ---> docker-login.sh ends [Pipeline] } 09:31:23 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 09:31:23 + git rev-list -1 --merges 5129bb747eb0d4e9647a0a00868555b5168ad271~1..5129bb747eb0d4e9647a0a00868555b5168ad271 [Pipeline] echo 09:31:23 -----------> git rev-list -1 --merges 5129bb747eb0d4e9647a0a00868555b5168ad271~1..5129bb747eb0d4e9647a0a00868555b5168ad271 5129bb747eb0d4e9647a0a00868555b5168ad271 [false] [Pipeline] sh 09:31:23 + git log --format=format:%s -1 5129bb747eb0d4e9647a0a00868555b5168ad271 [Pipeline] echo 09:31:24 ========================================================= 09:31:24 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 09:31:24 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 09:31:24 + git log --format=format:%s -1 5129bb747eb0d4e9647a0a00868555b5168ad271 [Pipeline] echo 09:31:24 [semverPrep] GIT_COMMIT: 5129bb747eb0d4e9647a0a00868555b5168ad271, Commit Message: refactor(snap): Update configure .go and install.go [Pipeline] echo 09:31:24 [semverPrep] This is not a build commit. [Pipeline] sh 09:31:24 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 09:31:24 + grep -v github /etc/ssh/ssh_known_hosts 09:31:24 + [ -e /tmp/ssh_known_hosts ] 09:31:24 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 09:31:24 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 09:31:24 + sudo tee -a /etc/ssh/ssh_known_hosts 09:31:24 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 09:31:25 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 09:31:25 09:31:25 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 09:31:25 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 09:31:25 0.1.4: Pulling from edgex-devops/py-git-semver 09:31:25 42c077c10790: Pulling fs layer 09:31:25 f63e77b7563a: Pulling fs layer 09:31:25 bd5fdadae976: Pulling fs layer 09:31:25 205491f53016: Pulling fs layer 09:31:25 df18705c85c3: Pulling fs layer 09:31:25 bdb3f477010e: Pulling fs layer 09:31:25 c8a8fc8e1c8f: Pulling fs layer 09:31:25 2c6e9b1d212d: Pulling fs layer 09:31:25 bdb8f0575790: Pulling fs layer 09:31:25 386e3cb2ff24: Pulling fs layer 09:31:25 2343380bae48: Pulling fs layer 09:31:25 205491f53016: Waiting 09:31:25 2c6e9b1d212d: Waiting 09:31:25 df18705c85c3: Waiting 09:31:25 bdb3f477010e: Waiting 09:31:25 c8a8fc8e1c8f: Waiting 09:31:25 bdb8f0575790: Waiting 09:31:25 386e3cb2ff24: Waiting 09:31:25 2343380bae48: Waiting 09:31:25 f63e77b7563a: Verifying Checksum 09:31:25 f63e77b7563a: Download complete 09:31:25 205491f53016: Verifying Checksum 09:31:25 205491f53016: Download complete 09:31:25 bd5fdadae976: Verifying Checksum 09:31:25 bd5fdadae976: Download complete 09:31:25 df18705c85c3: Verifying Checksum 09:31:25 df18705c85c3: Download complete 09:31:25 bdb3f477010e: Verifying Checksum 09:31:25 bdb3f477010e: Download complete 09:31:25 2c6e9b1d212d: Download complete 09:31:25 bdb8f0575790: Download complete 09:31:25 386e3cb2ff24: Verifying Checksum 09:31:25 386e3cb2ff24: Download complete 09:31:25 2343380bae48: Verifying Checksum 09:31:25 2343380bae48: Download complete 09:31:25 42c077c10790: Verifying Checksum 09:31:25 42c077c10790: Download complete 09:31:25 c8a8fc8e1c8f: Download complete 09:31:27 42c077c10790: Pull complete 09:31:27 f63e77b7563a: Pull complete 09:31:27 bd5fdadae976: Pull complete 09:31:27 205491f53016: Pull complete 09:31:28 df18705c85c3: Pull complete 09:31:28 bdb3f477010e: Pull complete 09:31:30 c8a8fc8e1c8f: Pull complete 09:31:30 2c6e9b1d212d: Pull complete 09:31:30 bdb8f0575790: Pull complete 09:31:30 386e3cb2ff24: Pull complete 09:31:30 2343380bae48: Pull complete 09:31:30 Digest: sha256:c3bf284c02da7271302b7a373f1d48320b54229aa5119b2a29c7f8015e6a9264 09:31:30 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 09:31:30 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 09:31:31 prd-ubuntu20.04-docker-8c-8g-17123 does not seem to be running inside a container 09:31:31 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/gexfoundry_device-rest-go_PR-202 -v /w/workspace/gexfoundry_device-rest-go_PR-202:/w/workspace/gexfoundry_device-rest-go_PR-202:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-202@tmp:/w/workspace/gexfoundry_device-rest-go_PR-202@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 cat 09:31:32 $ docker top 5d45159b1d49ff00f7cbfb5da97b6326d4f55e77ba48a66a4eec074c57bb372a -eo pid,comm 09:31:32 ERROR: The container started but didn't run the expected command. Please double check your ENTRYPOINT does execute the command passed as docker run argument, as required by official docker images (see https://github.com/docker-library/official-images#consistency for entrypoint consistency requirements). 09:31:32 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 09:31:32 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 09:31:32 [ssh-agent] Looking for ssh-agent implementation... 09:31:32 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 09:31:32 $ docker exec 5d45159b1d49ff00f7cbfb5da97b6326d4f55e77ba48a66a4eec074c57bb372a ssh-agent 09:31:32 SSH_AUTH_SOCK=/tmp/ssh-RWBdAiP2cB7d/agent.32 09:31:32 SSH_AGENT_PID=38 09:31:32 Running ssh-add (command line suppressed) 09:31:33 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-202@tmp/private_key_5441893179653620203.key (/w/workspace/gexfoundry_device-rest-go_PR-202@tmp/private_key_5441893179653620203.key) 09:31:33 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 09:31:33 + git tag --points-at HEAD [Pipeline] } 09:31:33 $ docker exec --env ******** --env ******** 5d45159b1d49ff00f7cbfb5da97b6326d4f55e77ba48a66a4eec074c57bb372a ssh-agent -k 09:31:33 unset SSH_AUTH_SOCK; 09:31:33 unset SSH_AGENT_PID; 09:31:33 echo Agent pid 38 killed; 09:31:33 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 09:31:33 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 09:31:33 [ssh-agent] Looking for ssh-agent implementation... 09:31:33 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 09:31:33 $ docker exec 5d45159b1d49ff00f7cbfb5da97b6326d4f55e77ba48a66a4eec074c57bb372a ssh-agent 09:31:33 SSH_AUTH_SOCK=/tmp/ssh-3gsgDXGRpZ0a/agent.71 09:31:33 SSH_AGENT_PID=77 09:31:33 Running ssh-add (command line suppressed) 09:31:33 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-202@tmp/private_key_3614351108845177565.key (/w/workspace/gexfoundry_device-rest-go_PR-202@tmp/private_key_3614351108845177565.key) 09:31:33 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 09:31:34 + git semver init 09:31:34 2022-07-07 09:31:34,457 [run_init] DEBUG init version:0.0.0 force:False 09:31:34 2022-07-07 09:31:34,457 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/gexfoundry_device-rest-go_PR-202/.semver 09:31:34 2022-07-07 09:31:34,458 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-rest-go.git /w/workspace/gexfoundry_device-rest-go_PR-202/.semver 09:31:34 2022-07-07 09:31:34,458 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-rest-go.git', '/w/workspace/gexfoundry_device-rest-go_PR-202/.semver'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-202, universal_newlines=False, shell=None, istream=None) 09:31:35 2022-07-07 09:31:35,348 [append_file] DEBUG append to file:/w/workspace/gexfoundry_device-rest-go_PR-202/.git/info/exclude 09:31:35 2022-07-07 09:31:35,349 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/gexfoundry_device-rest-go_PR-202/.semver/PR-202 with force:False 09:31:35 2022-07-07 09:31:35,349 [write_file] DEBUG write to file:/w/workspace/gexfoundry_device-rest-go_PR-202/.semver/PR-202 09:31:35 2022-07-07 09:31:35,354 [execute] INFO git cat-file --batch-check 09:31:35 2022-07-07 09:31:35,355 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-202/.semver, universal_newlines=False, shell=None, istream=) 09:31:35 2022-07-07 09:31:35,361 [execute] INFO git cat-file --batch 09:31:35 2022-07-07 09:31:35,361 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-202/.semver, universal_newlines=False, shell=None, istream=) 09:31:35 2022-07-07 09:31:35,366 [read_version] DEBUG read version from /w/workspace/gexfoundry_device-rest-go_PR-202/.semver/PR-202 09:31:35 0.0.0 [Pipeline] } 09:31:35 $ docker exec --env ******** --env ******** 5d45159b1d49ff00f7cbfb5da97b6326d4f55e77ba48a66a4eec074c57bb372a ssh-agent -k 09:31:35 unset SSH_AUTH_SOCK; 09:31:35 unset SSH_AGENT_PID; 09:31:35 echo Agent pid 77 killed; 09:31:35 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 09:31:35 + git semver [Pipeline] } 09:31:36 $ docker stop --time=1 5d45159b1d49ff00f7cbfb5da97b6326d4f55e77ba48a66a4eec074c57bb372a 09:31:37 $ docker rm -f 5d45159b1d49ff00f7cbfb5da97b6326d4f55e77ba48a66a4eec074c57bb372a [Pipeline] // withDockerContainer [Pipeline] sh 09:31:37 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 09:31:38 Stashed 1 file(s) [Pipeline] echo 09:31:38 [edgeXSemver]: initialized semver on version 0.0.0 [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] parallel [Pipeline] { (Branch: amd64) [Pipeline] { (Branch: arm64) [Pipeline] stage [Pipeline] { (amd64) [Pipeline] stage [Pipeline] { (arm64) [Pipeline] withEnv [Pipeline] { [Pipeline] node [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 09:31:38 provisioning config files... 09:31:38 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-202@tmp/config5910061688125949033tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 09:31:38 ---> docker-login.sh 09:31:38 nexus3.edgexfoundry.org:10001 09:31:38 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:31:38 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:31:38 Configure a credential helper to remove this warning. See 09:31:38 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:31:38 09:31:38 Login Succeeded 09:31:38 nexus3.edgexfoundry.org:10002 09:31:38 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:31:38 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:31:38 Configure a credential helper to remove this warning. See 09:31:38 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:31:38 09:31:38 Login Succeeded 09:31:38 nexus3.edgexfoundry.org:10003 09:31:38 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:31:38 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:31:38 Configure a credential helper to remove this warning. See 09:31:38 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:31:38 09:31:38 Login Succeeded 09:31:38 nexus3.edgexfoundry.org:10004 09:31:39 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:31:39 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:31:39 Configure a credential helper to remove this warning. See 09:31:39 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:31:39 09:31:39 Login Succeeded 09:31:39 docker.io 09:31:39 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:31:39 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:31:39 Configure a credential helper to remove this warning. See 09:31:39 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:31:39 09:31:39 Login Succeeded 09:31:39 ---> docker-login.sh ends [Pipeline] } 09:31:39 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 09:31:39 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 09:31:39 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 09:31:39 ========================================================= 09:31:39 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine] 09:31:39 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 09:31:39 + docker build -t ci-base-image-x86_64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine --build-arg MAKE=echo noop --target=builder . 09:31:39 Sending build context to Docker daemon 10.68MB 09:31:39 Step 1/12 : ARG BASE=golang:1.17-alpine3.15 09:31:39 Step 2/12 : FROM ${BASE} AS builder 09:31:39 1.17-alpine: Pulling from edgex-devops/edgex-golang-base 09:31:39 59bf1c3509f3: Pulling fs layer 09:31:39 666ba61612fd: Pulling fs layer 09:31:39 8ed8ca486205: Pulling fs layer 09:31:39 cc1cd167ecdc: Pulling fs layer 09:31:39 c516ae0d96e1: Pulling fs layer 09:31:39 684cea983483: Pulling fs layer 09:31:39 dd3240ac7de5: Pulling fs layer 09:31:39 b1e948a4e11c: Pulling fs layer 09:31:39 a8fd76ee1af6: Pulling fs layer 09:31:39 646ad004c059: Pulling fs layer 09:31:39 cc1cd167ecdc: Waiting 09:31:39 dd3240ac7de5: Waiting 09:31:39 c516ae0d96e1: Waiting 09:31:39 684cea983483: Waiting 09:31:39 b1e948a4e11c: Waiting 09:31:39 646ad004c059: Waiting 09:31:39 8ed8ca486205: Verifying Checksum 09:31:39 8ed8ca486205: Download complete 09:31:40 666ba61612fd: Download complete 09:31:40 c516ae0d96e1: Verifying Checksum 09:31:40 c516ae0d96e1: Download complete 09:31:40 684cea983483: Download complete 09:31:40 dd3240ac7de5: Verifying Checksum 09:31:40 dd3240ac7de5: Download complete 09:31:40 59bf1c3509f3: Verifying Checksum 09:31:40 59bf1c3509f3: Download complete 09:31:40 b1e948a4e11c: Verifying Checksum 09:31:40 b1e948a4e11c: Download complete 09:31:40 59bf1c3509f3: Pull complete 09:31:40 666ba61612fd: Pull complete 09:31:40 8ed8ca486205: Pull complete 09:31:40 646ad004c059: Verifying Checksum 09:31:40 646ad004c059: Download complete 09:31:40 cc1cd167ecdc: Download complete 09:31:40 a8fd76ee1af6: Verifying Checksum 09:31:40 a8fd76ee1af6: Download complete 09:31:45 cc1cd167ecdc: Pull complete 09:31:45 c516ae0d96e1: Pull complete 09:31:45 684cea983483: Pull complete 09:31:45 dd3240ac7de5: Pull complete 09:31:45 b1e948a4e11c: Pull complete 09:31:47 a8fd76ee1af6: Pull complete 09:31:47 646ad004c059: Pull complete 09:31:47 Digest: sha256:bc8ce28cadebfaa099e5330588345fe90134e4027cf71364bfd2aff1e7ff8c16 09:31:47 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine 09:31:47 ---> 8f69c11f6b0c 09:31:47 Step 3/12 : ARG MAKE='make build' 09:31:49 ---> Running in 21735f3b27fe 09:31:49 Removing intermediate container 21735f3b27fe 09:31:49 ---> 3cab1db8c7ae 09:31:49 Step 4/12 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 09:31:49 ---> Running in cf7a156eab52 09:31:49 Removing intermediate container cf7a156eab52 09:31:49 ---> bba75a4cf348 09:31:49 Step 5/12 : ARG ALPINE_PKG_EXTRA="" 09:31:49 ---> Running in b1f840e119d7 09:31:49 Removing intermediate container b1f840e119d7 09:31:49 ---> 426b820906f2 09:31:49 Step 6/12 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 09:31:50 ---> Running in 3ee8e684ffef 09:31:50 Removing intermediate container 3ee8e684ffef 09:31:50 ---> 1c36250e1c63 09:31:50 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 09:31:50 ---> Running in 8374e425dbd5 09:31:50 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 09:31:51 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 09:31:52 (1/4) Installing openssh-keygen (8.8_p1-r1) 09:31:52 (2/4) Installing libedit (20210910.3.1-r0) 09:31:52 (3/4) Installing openssh-client-common (8.8_p1-r1) 09:31:52 (4/4) Installing openssh-client-default (8.8_p1-r1) 09:31:52 Executing busybox-1.34.1-r3.trigger 09:31:52 OK: 224 MiB in 56 packages 09:31:52 Removing intermediate container 8374e425dbd5 09:31:52 ---> 2a2d953a6504 09:31:52 Step 8/12 : WORKDIR /device-rest-go 09:31:52 ---> Running in 110eb575c8bb 09:31:52 Removing intermediate container 110eb575c8bb 09:31:52 ---> 1132bde09277 09:31:52 Step 9/12 : COPY go.mod vendor* ./ 09:31:53 ---> 651b82ad0195 09:31:53 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 09:31:53 ---> Running in 9b6c35d92581 09:31:53 Still waiting to schedule task 09:31:53 All nodes of label ‘ubuntu20.04-docker-arm64-4c-16g’ are offline 09:32:15 Removing intermediate container 9b6c35d92581 09:32:15 ---> 5917793f3713 09:32:15 Step 11/12 : COPY . . 09:32:15 ---> c1625ab07a1b 09:32:15 Step 12/12 : RUN $MAKE 09:32:15 ---> Running in 751811d7f224 09:32:15 noop 09:32:15 Removing intermediate container 751811d7f224 09:32:15 ---> 2bf61f24743a 09:32:15 Successfully built 2bf61f24743a 09:32:15 Successfully tagged ci-base-image-x86_64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 09:32:15 + docker inspect -f . ci-base-image-x86_64 09:32:15 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 09:32:15 prd-ubuntu20.04-docker-8c-8g-17123 does not seem to be running inside a container 09:32:15 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-202 -v /w/workspace/gexfoundry_device-rest-go_PR-202:/w/workspace/gexfoundry_device-rest-go_PR-202:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-202@tmp:/w/workspace/gexfoundry_device-rest-go_PR-202@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 09:32:16 $ docker top c22b6ab375987c23531770008f27852a10f82d5a76e46e9e37381b443eb3b604 -eo pid,comm [Pipeline] { [Pipeline] sh 09:32:16 + go version 09:32:16 go version go1.17.7 linux/amd64 [Pipeline] } 09:32:16 $ docker stop --time=1 c22b6ab375987c23531770008f27852a10f82d5a76e46e9e37381b443eb3b604 09:32:17 $ docker rm -f c22b6ab375987c23531770008f27852a10f82d5a76e46e9e37381b443eb3b604 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 09:32:18 + docker inspect -f . ci-base-image-x86_64 09:32:18 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 09:32:18 prd-ubuntu20.04-docker-8c-8g-17123 does not seem to be running inside a container 09:32:18 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-202 -v /w/workspace/gexfoundry_device-rest-go_PR-202:/w/workspace/gexfoundry_device-rest-go_PR-202:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-202@tmp:/w/workspace/gexfoundry_device-rest-go_PR-202@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 09:32:18 $ docker top 90f771f93d24ecee1375fda7c52adb0a5c2e83939ca7e12e9776fa8856b27bb5 -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 09:32:19 + make test 09:32:19 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out ./... 09:32:19 ? github.com/edgexfoundry/device-rest-go [no test files] 09:32:29 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 09:32:29 ok github.com/edgexfoundry/device-rest-go/driver 0.016s coverage: 55.2% of statements 09:32:37 CGO_ENABLED=1 GO111MODULE=on go vet ./... 09:32:40 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 09:32:40 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 09:32:40 ./bin/test-attribution-txt.sh [Pipeline] echo 09:32:40 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 09:32:40 $ docker stop --time=1 90f771f93d24ecee1375fda7c52adb0a5c2e83939ca7e12e9776fa8856b27bb5 09:32:42 $ docker rm -f 90f771f93d24ecee1375fda7c52adb0a5c2e83939ca7e12e9776fa8856b27bb5 [Pipeline] // withDockerContainer [Pipeline] sh 09:32:42 + sudo chown -R jenkins:jenkins . [Pipeline] stash 09:32:42 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 09:32:43 + sudo chown -R jenkins:jenkins . [Pipeline] sh 09:32:43 + ls -al . 09:32:43 total 172 09:32:43 drwxrwxr-x 9 jenkins jenkins 4096 Jul 7 09:32 . 09:32:43 drwxrwxr-x 4 jenkins jenkins 4096 Jul 7 09:31 .. 09:32:43 -rw-rw-r-- 1 jenkins jenkins 151 Jul 7 09:31 .dockerignore 09:32:43 drwxrwxr-x 8 jenkins jenkins 4096 Jul 7 09:31 .git 09:32:43 drwxrwxr-x 3 jenkins jenkins 4096 Jul 7 09:31 .github 09:32:43 -rw-rw-r-- 1 jenkins jenkins 329 Jul 7 09:31 .gitignore 09:32:43 -rw-rw-r-- 1 jenkins jenkins 41 Jul 7 09:31 .golangci.yml 09:32:43 drwxr-xr-x 3 jenkins jenkins 4096 Jul 7 09:31 .semver 09:32:43 -rw-rw-r-- 1 jenkins jenkins 8724 Jul 7 09:31 Attribution.txt 09:32:43 -rw-rw-r-- 1 jenkins jenkins 11736 Jul 7 09:31 CHANGELOG.md 09:32:43 -rw-rw-r-- 1 jenkins jenkins 1672 Jul 7 09:31 Dockerfile 09:32:43 -rw-rw-r-- 1 jenkins jenkins 677 Jul 7 09:31 GOVERNANCE.md 09:32:43 -rw-rw-r-- 1 jenkins jenkins 680 Jul 7 09:31 Jenkinsfile 09:32:43 -rw-rw-r-- 1 jenkins jenkins 11340 Jul 7 09:31 LICENSE 09:32:43 -rw-rw-r-- 1 jenkins jenkins 1977 Jul 7 09:31 Makefile 09:32:43 -rw-rw-r-- 1 jenkins jenkins 620 Jul 7 09:31 OWNERS.md 09:32:43 -rw-rw-r-- 1 jenkins jenkins 8003 Jul 7 09:31 README.md 09:32:43 -rw-rw-r-- 1 jenkins jenkins 5 Jul 7 09:31 VERSION 09:32:43 drwxrwxr-x 2 jenkins jenkins 4096 Jul 7 09:31 bin 09:32:43 drwxrwxr-x 3 jenkins jenkins 4096 Jul 7 09:31 cmd 09:32:43 -rw-r--r-- 1 jenkins jenkins 9355 Jul 7 09:32 coverage.out 09:32:43 drwxrwxr-x 2 jenkins jenkins 4096 Jul 7 09:31 driver 09:32:43 -rw-rw-r-- 1 jenkins jenkins 3338 Jul 7 09:31 go.mod 09:32:43 -rw-rw-r-- 1 jenkins jenkins 36281 Jul 7 09:31 go.sum 09:32:43 drwxrwxr-x 4 jenkins jenkins 4096 Jul 7 09:31 snap 09:32:43 -rw-rw-r-- 1 jenkins jenkins 713 Jul 7 09:31 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 09:32:44 + 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=5129bb747eb0d4e9647a0a00868555b5168ad271 --label arch=amd64 --label version=0.0.0 . 09:32:44 Sending build context to Docker daemon 10.69MB 09:32:44 Step 1/25 : ARG BASE=golang:1.17-alpine3.15 09:32:44 Step 2/25 : FROM ${BASE} AS builder 09:32:44 ---> 2bf61f24743a 09:32:44 Step 3/25 : ARG MAKE='make build' 09:32:44 ---> Running in 638b46ec107d 09:32:44 Removing intermediate container 638b46ec107d 09:32:44 ---> ed7d030669ed 09:32:44 Step 4/25 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 09:32:44 ---> Running in f0eb33e3c266 09:32:44 Removing intermediate container f0eb33e3c266 09:32:44 ---> 9d5a7f807cd3 09:32:44 Step 5/25 : ARG ALPINE_PKG_EXTRA="" 09:32:44 ---> Running in ca30d0dc9aa1 09:32:44 Removing intermediate container ca30d0dc9aa1 09:32:44 ---> 63dffb76a518 09:32:44 Step 6/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 09:32:44 ---> Running in 87d88ad6c087 09:32:45 Removing intermediate container 87d88ad6c087 09:32:45 ---> bf7ce12dfca1 09:32:45 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 09:32:45 ---> Running in 40e1000a695a 09:32:45 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 09:32:46 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 09:32:46 OK: 224 MiB in 56 packages 09:32:47 Removing intermediate container 40e1000a695a 09:32:47 ---> b91eb9fc1ceb 09:32:47 Step 8/25 : WORKDIR /device-rest-go 09:32:47 ---> Running in 4672a35ca496 09:32:47 Removing intermediate container 4672a35ca496 09:32:47 ---> 29787c85b27f 09:32:47 Step 9/25 : COPY go.mod vendor* ./ 09:32:47 ---> f91dac6c0a07 09:32:47 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 09:32:47 ---> Running in 76af32b6fd08 09:32:47 Removing intermediate container 76af32b6fd08 09:32:47 ---> 5beb253fbc1f 09:32:47 Step 11/25 : COPY . . 09:32:48 ---> d7f06276c7d9 09:32:48 Step 12/25 : RUN $MAKE 09:32:48 ---> Running in a4d2d6d40e7d 09:32:48 CGO_ENABLED=1 GO111MODULE=on go build -ldflags "-linkmode=external -X github.com/edgexfoundry/device-rest-go.Version=0.0.0" -trimpath -mod=readonly -buildmode=pie -o cmd/device-rest ./cmd 09:33:10 Removing intermediate container a4d2d6d40e7d 09:33:10 ---> ff769d2b39eb 09:33:10 Step 13/25 : FROM alpine:3.14 09:33:10 3.14: Pulling from library/alpine 09:33:10 8663204ce13b: Pulling fs layer 09:33:10 8663204ce13b: Verifying Checksum 09:33:10 8663204ce13b: Download complete 09:33:10 8663204ce13b: Pull complete 09:33:10 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 09:33:10 Status: Downloaded newer image for alpine:3.14 09:33:10 ---> e04c818066af 09:33:10 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' 09:33:10 ---> Running in 9d62d709365f 09:33:10 Removing intermediate container 9d62d709365f 09:33:10 ---> 022b64465c4d 09:33:10 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 09:33:10 ---> Running in 2d7078c7f0a8 09:33:10 Removing intermediate container 2d7078c7f0a8 09:33:10 ---> 6a40e2962012 09:33:10 Step 16/25 : RUN apk add --update --no-cache zeromq dumb-init 09:33:10 ---> Running in fa513e632495 09:33:10 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz 09:33:10 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz 09:33:10 (1/6) Installing dumb-init (1.2.5-r1) 09:33:10 (2/6) Installing libgcc (10.3.1_git20210424-r2) 09:33:10 (3/6) Installing libsodium (1.0.18-r0) 09:33:10 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 09:33:10 (5/6) Installing libzmq (4.3.4-r0) 09:33:10 (6/6) Installing zeromq (4.3.4-r0) 09:33:10 Executing busybox-1.33.1-r7.trigger 09:33:10 OK: 8 MiB in 20 packages 09:33:10 Removing intermediate container fa513e632495 09:33:10 ---> c000294f0b7e 09:33:10 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 09:33:11 ---> f2bec5a4e95e 09:33:11 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 09:33:11 ---> eb06a24e1d95 09:33:11 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 09:33:11 ---> 25fe2b6658f7 09:33:11 Step 20/25 : EXPOSE 59986 09:33:11 ---> Running in bef000f3d8df 09:33:11 Removing intermediate container bef000f3d8df 09:33:11 ---> b27b01a03420 09:33:11 Step 21/25 : ENTRYPOINT ["/device-rest"] 09:33:11 ---> Running in 600b32f2cd6d 09:33:11 Removing intermediate container 600b32f2cd6d 09:33:11 ---> 1d8feaf9dc90 09:33:11 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--confdir=/res", "--registry"] 09:33:11 ---> Running in 3ca395daeaac 09:33:11 Removing intermediate container 3ca395daeaac 09:33:11 ---> 72eebecdb8c1 09:33:11 Step 23/25 : LABEL arch=amd64 09:33:12 ---> Running in c930e9a61f3b 09:33:12 Removing intermediate container c930e9a61f3b 09:33:12 ---> 3e5fa42e3c48 09:33:12 Step 24/25 : LABEL git_sha=5129bb747eb0d4e9647a0a00868555b5168ad271 09:33:12 ---> Running in 99c0ce9e7e99 09:33:12 Removing intermediate container 99c0ce9e7e99 09:33:12 ---> ee614df2fffc 09:33:12 Step 25/25 : LABEL version=0.0.0 09:33:12 ---> Running in 56ab98b1fff9 09:33:12 Removing intermediate container 56ab98b1fff9 09:33:12 ---> 603c286847e0 09:33:12 [Warning] One or more build-args [ARCH] were not consumed 09:33:12 Successfully built 603c286847e0 09:33:12 Successfully tagged device-rest:latest [Pipeline] } [Pipeline] // withEnv [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] withEnv [Pipeline] { [Pipeline] sh 09:33:12 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 09:33:12 09:33:12 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 09:33:13 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 09:33:13 latest: Pulling from edgex-lftools-log-publisher 09:33:13 5eb5b503b376: Pulling fs layer 09:33:13 5c69ac0246d0: Pulling fs layer 09:33:13 ec43610c2a17: Pulling fs layer 09:33:13 3a2ae6a8a46f: Pulling fs layer 09:33:13 33b1e0a273af: Pulling fs layer 09:33:13 5d3b04190fa2: Pulling fs layer 09:33:13 2f39f015ded8: Pulling fs layer 09:33:13 3a2ae6a8a46f: Waiting 09:33:13 33b1e0a273af: Waiting 09:33:13 2f39f015ded8: Waiting 09:33:13 5c69ac0246d0: Download complete 09:33:13 3a2ae6a8a46f: Verifying Checksum 09:33:13 3a2ae6a8a46f: Download complete 09:33:13 33b1e0a273af: Verifying Checksum 09:33:13 33b1e0a273af: Download complete 09:33:13 5d3b04190fa2: Download complete 09:33:13 ec43610c2a17: Verifying Checksum 09:33:13 5eb5b503b376: Download complete 09:33:14 2f39f015ded8: Download complete 09:33:14 5eb5b503b376: Pull complete 09:33:14 5c69ac0246d0: Pull complete 09:33:15 ec43610c2a17: Pull complete 09:33:15 3a2ae6a8a46f: Pull complete 09:33:15 33b1e0a273af: Pull complete 09:33:15 5d3b04190fa2: Pull complete 09:33:19 2f39f015ded8: Pull complete 09:33:19 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 09:33:19 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 09:33:19 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 09:33:20 prd-ubuntu20.04-docker-8c-8g-17123 does not seem to be running inside a container 09:33:20 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/gexfoundry_device-rest-go_PR-202 -v /w/workspace/gexfoundry_device-rest-go_PR-202:/w/workspace/gexfoundry_device-rest-go_PR-202:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-202@tmp:/w/workspace/gexfoundry_device-rest-go_PR-202@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 09:33:21 $ docker top 0051d27dd20150538e8d60c93247c1b2ea431035d5b3638c483a66d08ec33aaf -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 09:33:22 ---> job-cost.sh 09:33:22 lf-activate-venv: SKIPPING 09:33:22 INFO: No Stack... 09:33:22 INFO: Retrieving Pricing Info for: v3-standard-8 09:33:22 INFO: Archiving Costs [Pipeline] sh 09:33:23 + cat /w/workspace/gexfoundry_device-rest-go_PR-202/archives/cost.csv 09:33:23 + cut -d, -f6 [Pipeline] lock 09:33:23 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-202-5-stack-cost] 09:33:23 Resource [jenkins-edgexfoundry-device-rest-go-PR-202-5-stack-cost] did not exist. Created. 09:33:23 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-202-5-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 09:33:23 + echo total: 0.2199999988079071 [Pipeline] stash 09:33:23 Stashed 1 file(s) [Pipeline] } 09:33:23 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-202-5-stack-cost] [Pipeline] // lock [Pipeline] } 09:33:23 $ docker stop --time=1 0051d27dd20150538e8d60c93247c1b2ea431035d5b3638c483a66d08ec33aaf 09:33:24 $ docker rm -f 0051d27dd20150538e8d60c93247c1b2ea431035d5b3638c483a66d08ec33aaf [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 09:33:28 Running on prd-ubuntu20.04-docker-arm64-4c-16g-17124 in /w/workspace/gexfoundry_device-rest-go_PR-202 [Pipeline] { [Pipeline] ws 09:33:28 Running in /w/workspace/device-rest-go/5 [Pipeline] { [Pipeline] checkout 09:33:28 The recommended git tool is: git 09:33:35 using credential edgex-jenkins-ssh 09:33:35 Cloning the remote Git repository 09:33:35 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 09:33:35 > git init /w/workspace/device-rest-go/5 # timeout=10 09:33:35 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 09:33:35 > git --version # timeout=10 09:33:35 > git --version # 'git version 2.25.1' 09:33:35 using GIT_SSH to set credentials SSH Credentials for GitHub 09:33:35 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 09:33:37 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 09:33:37 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 09:33:37 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 09:33:37 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 09:33:37 using GIT_SSH to set credentials SSH Credentials for GitHub 09:33:37 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/202/head:refs/remotes/origin/PR-202 +refs/heads/main:refs/remotes/origin/main # timeout=10 09:33:37 Merging remotes/origin/main commit 2d7dd7bd9c9b446393cafd64d3a18985a73e6b07 into PR head commit 5129bb747eb0d4e9647a0a00868555b5168ad271 09:33:38 Merge succeeded, producing 5129bb747eb0d4e9647a0a00868555b5168ad271 09:33:38 Checking out Revision 5129bb747eb0d4e9647a0a00868555b5168ad271 (PR-202) 09:33:37 > git config core.sparsecheckout # timeout=10 09:33:38 > git checkout -f 5129bb747eb0d4e9647a0a00868555b5168ad271 # timeout=10 09:33:38 > git remote # timeout=10 09:33:38 > git config --get remote.origin.url # timeout=10 09:33:38 using GIT_SSH to set credentials SSH Credentials for GitHub 09:33:38 > git merge 2d7dd7bd9c9b446393cafd64d3a18985a73e6b07 # timeout=10 09:33:38 > git rev-parse HEAD^{commit} # timeout=10 09:33:38 > git config core.sparsecheckout # timeout=10 09:33:38 > git checkout -f 5129bb747eb0d4e9647a0a00868555b5168ad271 # timeout=10 09:33:42 Commit message: "refactor(snap): Update configure .go and install.go" [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 09:33:43 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 09:33:43 % Total % Received % Xferd Average Speed Time Time Time Current 09:33:43 Dload Upload Total Spent Left Speed 09:33:43 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 12253 100 12253 0 0 88151 0 --:--:-- --:--:-- --:--:-- 88789 [Pipeline] sh 09:33:44 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 09:33:44 + sudo tee /etc/docker/daemon.new 09:33:44 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 09:33:44 { 09:33:44 "registry-mirrors": [ 09:33:44 "https://nexus3.edgexfoundry.org:10001" 09:33:44 ], 09:33:44 "bip": "10.250.0.254/24", 09:33:44 "hosts": [ 09:33:44 "tcp://0.0.0.0:5555", 09:33:44 "unix:///var/run/docker.sock" 09:33:44 ], 09:33:44 "mtu": 1458, 09:33:44 "selinux-enabled": true, 09:33:44 "seccomp-profile": "/etc/docker/seccomp.json" 09:33:44 } [Pipeline] sh 09:33:45 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 09:33:45 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 09:34:03 provisioning config files... 09:34:03 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/5@tmp/config6407468791526558006tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 09:34:04 ---> docker-login.sh 09:34:04 nexus3.edgexfoundry.org:10001 09:34:04 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:34:05 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:34:05 Configure a credential helper to remove this warning. See 09:34:05 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:34:05 09:34:05 Login Succeeded 09:34:05 nexus3.edgexfoundry.org:10002 09:34:05 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:34:05 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:34:05 Configure a credential helper to remove this warning. See 09:34:05 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:34:05 09:34:05 Login Succeeded 09:34:05 nexus3.edgexfoundry.org:10003 09:34:05 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:34:05 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:34:05 Configure a credential helper to remove this warning. See 09:34:05 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:34:05 09:34:05 Login Succeeded 09:34:05 nexus3.edgexfoundry.org:10004 09:34:06 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:34:06 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:34:06 Configure a credential helper to remove this warning. See 09:34:06 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:34:06 09:34:06 Login Succeeded 09:34:06 docker.io 09:34:06 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:34:06 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:34:06 Configure a credential helper to remove this warning. See 09:34:06 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:34:06 09:34:06 Login Succeeded 09:34:06 ---> docker-login.sh ends [Pipeline] } 09:34:07 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 09:34:07 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 09:34:07 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 09:34:07 ========================================================= 09:34:07 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine] 09:34:07 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 09:34:07 + docker build -t ci-base-image-arm64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine --build-arg MAKE=echo noop --target=builder . 09:34:07 Sending build context to Docker daemon 127.5kB 09:34:08 Step 1/12 : ARG BASE=golang:1.17-alpine3.15 09:34:08 Step 2/12 : FROM ${BASE} AS builder 09:34:08 1.17-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 09:34:08 9b3977197b4f: Pulling fs layer 09:34:08 1a89e8eeedd5: Pulling fs layer 09:34:08 94645a83ff95: Pulling fs layer 09:34:08 e6fb740bc735: Pulling fs layer 09:34:08 3a77bd46dcc9: Pulling fs layer 09:34:08 355e64cbe906: Pulling fs layer 09:34:08 63ab81a10011: Pulling fs layer 09:34:08 555d1d1c4555: Pulling fs layer 09:34:08 7d9057610161: Pulling fs layer 09:34:08 355e64cbe906: Waiting 09:34:08 63ab81a10011: Waiting 09:34:08 555d1d1c4555: Waiting 09:34:08 7d9057610161: Waiting 09:34:08 e6fb740bc735: Waiting 09:34:08 3a77bd46dcc9: Waiting 09:34:08 94645a83ff95: Verifying Checksum 09:34:08 94645a83ff95: Download complete 09:34:08 1a89e8eeedd5: Download complete 09:34:08 3a77bd46dcc9: Download complete 09:34:08 355e64cbe906: Verifying Checksum 09:34:08 355e64cbe906: Download complete 09:34:08 63ab81a10011: Download complete 09:34:08 9b3977197b4f: Verifying Checksum 09:34:08 9b3977197b4f: Download complete 09:34:09 9b3977197b4f: Pull complete 09:34:09 7d9057610161: Verifying Checksum 09:34:09 7d9057610161: Download complete 09:34:10 1a89e8eeedd5: Pull complete 09:34:10 94645a83ff95: Pull complete 09:34:10 555d1d1c4555: Download complete 09:34:11 e6fb740bc735: Verifying Checksum 09:34:11 e6fb740bc735: Download complete 09:34:23 e6fb740bc735: Pull complete 09:34:23 3a77bd46dcc9: Pull complete 09:34:23 355e64cbe906: Pull complete 09:34:23 63ab81a10011: Pull complete 09:34:30 555d1d1c4555: Pull complete 09:34:32 7d9057610161: Pull complete 09:34:32 Digest: sha256:2bfe06e9b82483759db2d79553298764cc23e00699169ff1c4d7513112b2d636 09:34:32 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine 09:34:32 ---> 819e984ddca1 09:34:32 Step 3/12 : ARG MAKE='make build' 09:34:33 ---> Running in 4be92f9d2667 09:34:33 Removing intermediate container 4be92f9d2667 09:34:33 ---> bd8d096a90d8 09:34:33 Step 4/12 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 09:34:33 ---> Running in f8d70169008c 09:34:33 Removing intermediate container f8d70169008c 09:34:33 ---> e3b5c08f69ab 09:34:33 Step 5/12 : ARG ALPINE_PKG_EXTRA="" 09:34:34 ---> Running in 82c21c75af19 09:34:34 Removing intermediate container 82c21c75af19 09:34:34 ---> c371133284ac 09:34:34 Step 6/12 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 09:34:34 ---> Running in 128eca8fa055 09:34:37 Removing intermediate container 128eca8fa055 09:34:37 ---> 264d232586ab 09:34:37 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 09:34:37 ---> Running in fa3fe90f8a5a 09:34:38 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 09:34:39 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 09:34:39 (1/4) Installing openssh-keygen (8.8_p1-r1) 09:34:39 (2/4) Installing libedit (20210910.3.1-r0) 09:34:40 (3/4) Installing openssh-client-common (8.8_p1-r1) 09:34:40 (4/4) Installing openssh-client-default (8.8_p1-r1) 09:34:40 Executing busybox-1.34.1-r3.trigger 09:34:40 OK: 224 MiB in 56 packages 09:34:41 Removing intermediate container fa3fe90f8a5a 09:34:41 ---> 3363886adf8b 09:34:41 Step 8/12 : WORKDIR /device-rest-go 09:34:41 ---> Running in 30123f8e760e 09:34:41 Removing intermediate container 30123f8e760e 09:34:41 ---> 3d207c3f9d5d 09:34:41 Step 9/12 : COPY go.mod vendor* ./ 09:34:42 ---> 761ab98495dc 09:34:42 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 09:34:42 ---> Running in 08e0bef57a52 09:35:29 Removing intermediate container 08e0bef57a52 09:35:29 ---> bb69125199c1 09:35:29 Step 11/12 : COPY . . 09:35:29 ---> c7be29f15365 09:35:29 Step 12/12 : RUN $MAKE 09:35:29 ---> Running in 8a7699fe441b 09:35:29 noop 09:35:29 Removing intermediate container 8a7699fe441b 09:35:29 ---> ae4fe729e194 09:35:29 Successfully built ae4fe729e194 09:35:29 Successfully tagged ci-base-image-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 09:35:29 + docker inspect -f . ci-base-image-arm64 09:35:29 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 09:35:29 prd-ubuntu20.04-docker-arm64-4c-16g-17124 does not seem to be running inside a container 09:35:29 $ 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 ******** -e ******** ci-base-image-arm64 cat 09:35:31 $ docker top c6d56a165dbbb8b7674221d848b70d1a414313550fbb8f35233d8f413857419e -eo pid,comm [Pipeline] { [Pipeline] sh 09:35:32 + go version 09:35:32 go version go1.17.7 linux/arm64 [Pipeline] } 09:35:32 $ docker stop --time=1 c6d56a165dbbb8b7674221d848b70d1a414313550fbb8f35233d8f413857419e 09:35:33 $ docker rm -f c6d56a165dbbb8b7674221d848b70d1a414313550fbb8f35233d8f413857419e [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 09:35:34 + docker inspect -f . ci-base-image-arm64 09:35:34 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 09:35:34 prd-ubuntu20.04-docker-arm64-4c-16g-17124 does not seem to be running inside a container 09:35: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 ******** -e ******** -e ******** ci-base-image-arm64 cat 09:35:35 $ docker top dcbab26007062d65dc398691d8a9d1399dc1f0e6e425a01821c3befb1c14a1dc -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 09:35:36 + make test 09:35:36 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out ./... 09:35:38 ? github.com/edgexfoundry/device-rest-go [no test files] 09:37:00 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 09:37:00 ok github.com/edgexfoundry/device-rest-go/driver 0.066s coverage: 55.2% of statements 09:37:00 WARNING: Linting skipped (not on x86_64 or linter not installed) 09:37:00 CGO_ENABLED=1 GO111MODULE=on go vet ./... 09:37:22 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 09:37:22 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 09:37:22 ./bin/test-attribution-txt.sh [Pipeline] echo 09:37:22 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 09:37:22 $ docker stop --time=1 dcbab26007062d65dc398691d8a9d1399dc1f0e6e425a01821c3befb1c14a1dc 09:37:24 $ docker rm -f dcbab26007062d65dc398691d8a9d1399dc1f0e6e425a01821c3befb1c14a1dc [Pipeline] // withDockerContainer [Pipeline] sh 09:37:25 + sudo chown -R jenkins:jenkins . [Pipeline] stash 09:37:25 Warning: overwriting stash ‘coverage-report’ 09:37:25 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 09:37:25 + sudo chown -R jenkins:jenkins . [Pipeline] sh 09:37:26 + ls -al . 09:37:26 total 168 09:37:26 drwxrwxr-x 8 jenkins jenkins 4096 Jul 7 09:37 . 09:37:26 drwxrwxr-x 4 jenkins jenkins 4096 Jul 7 09:33 .. 09:37:26 -rw-rw-r-- 1 jenkins jenkins 151 Jul 7 09:33 .dockerignore 09:37:26 drwxrwxr-x 8 jenkins jenkins 4096 Jul 7 09:33 .git 09:37:26 drwxrwxr-x 3 jenkins jenkins 4096 Jul 7 09:33 .github 09:37:26 -rw-rw-r-- 1 jenkins jenkins 329 Jul 7 09:33 .gitignore 09:37:26 -rw-rw-r-- 1 jenkins jenkins 41 Jul 7 09:33 .golangci.yml 09:37:26 -rw-rw-r-- 1 jenkins jenkins 8724 Jul 7 09:33 Attribution.txt 09:37:26 -rw-rw-r-- 1 jenkins jenkins 11736 Jul 7 09:33 CHANGELOG.md 09:37:26 -rw-rw-r-- 1 jenkins jenkins 1672 Jul 7 09:33 Dockerfile 09:37:26 -rw-rw-r-- 1 jenkins jenkins 677 Jul 7 09:33 GOVERNANCE.md 09:37:26 -rw-rw-r-- 1 jenkins jenkins 680 Jul 7 09:33 Jenkinsfile 09:37:26 -rw-rw-r-- 1 jenkins jenkins 11340 Jul 7 09:33 LICENSE 09:37:26 -rw-rw-r-- 1 jenkins jenkins 1977 Jul 7 09:33 Makefile 09:37:26 -rw-rw-r-- 1 jenkins jenkins 620 Jul 7 09:33 OWNERS.md 09:37:26 -rw-rw-r-- 1 jenkins jenkins 8003 Jul 7 09:33 README.md 09:37:26 -rw-rw-r-- 1 jenkins jenkins 5 Jul 7 09:31 VERSION 09:37:26 drwxrwxr-x 2 jenkins jenkins 4096 Jul 7 09:33 bin 09:37:26 drwxrwxr-x 3 jenkins jenkins 4096 Jul 7 09:33 cmd 09:37:26 -rw-r--r-- 1 jenkins jenkins 9355 Jul 7 09:36 coverage.out 09:37:26 drwxrwxr-x 2 jenkins jenkins 4096 Jul 7 09:33 driver 09:37:26 -rw-rw-r-- 1 jenkins jenkins 3338 Jul 7 09:33 go.mod 09:37:26 -rw-rw-r-- 1 jenkins jenkins 36281 Jul 7 09:33 go.sum 09:37:26 drwxrwxr-x 4 jenkins jenkins 4096 Jul 7 09:33 snap 09:37:26 -rw-rw-r-- 1 jenkins jenkins 713 Jul 7 09:33 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 09:37:26 + 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=5129bb747eb0d4e9647a0a00868555b5168ad271 --label arch=arm64 --label version=0.0.0 . 09:37:26 Sending build context to Docker daemon 137.7kB 09:37:26 Step 1/25 : ARG BASE=golang:1.17-alpine3.15 09:37:26 Step 2/25 : FROM ${BASE} AS builder 09:37:26 ---> ae4fe729e194 09:37:26 Step 3/25 : ARG MAKE='make build' 09:37:27 ---> Running in 58adf9b3281b 09:37:27 Removing intermediate container 58adf9b3281b 09:37:27 ---> afdc6cddfd70 09:37:27 Step 4/25 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 09:37:27 ---> Running in 1a773bc42d8c 09:37:27 Removing intermediate container 1a773bc42d8c 09:37:27 ---> 6beaa9ca31e6 09:37:27 Step 5/25 : ARG ALPINE_PKG_EXTRA="" 09:37:27 ---> Running in 9af1792397ce 09:37:27 Removing intermediate container 9af1792397ce 09:37:27 ---> b9d841088fc8 09:37:27 Step 6/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 09:37:28 ---> Running in 6948b481fdb8 09:37:29 Removing intermediate container 6948b481fdb8 09:37:29 ---> e94873b602e3 09:37:29 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 09:37:29 ---> Running in 6d943b824e41 09:37:30 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 09:37:31 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 09:37:32 OK: 224 MiB in 56 packages 09:37:33 Removing intermediate container 6d943b824e41 09:37:33 ---> 0e954c97655c 09:37:33 Step 8/25 : WORKDIR /device-rest-go 09:37:33 ---> Running in 0ffda17d33b0 09:37:33 Removing intermediate container 0ffda17d33b0 09:37:33 ---> 671a6c8cdcff 09:37:33 Step 9/25 : COPY go.mod vendor* ./ 09:37:34 ---> 040f2880f698 09:37:34 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 09:37:34 ---> Running in 9d9f4f98d72a 09:37:36 Removing intermediate container 9d9f4f98d72a 09:37:36 ---> e909a98edf1d 09:37:36 Step 11/25 : COPY . . 09:37:36 ---> f4feed628874 09:37:36 Step 12/25 : RUN $MAKE 09:37:36 ---> Running in 105ebd4865ff 09:37:37 CGO_ENABLED=1 GO111MODULE=on go build -ldflags "-linkmode=external -X github.com/edgexfoundry/device-rest-go.Version=0.0.0" -trimpath -mod=readonly -buildmode=pie -o cmd/device-rest ./cmd 09:39:44 Removing intermediate container 105ebd4865ff 09:39:44 ---> 1eb2e3db0d19 09:39:44 Step 13/25 : FROM alpine:3.14 09:39:44 3.14: Pulling from library/alpine 09:39:44 455c02918c45: Pulling fs layer 09:39:44 455c02918c45: Download complete 09:39:44 455c02918c45: Pull complete 09:39:44 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 09:39:44 Status: Downloaded newer image for alpine:3.14 09:39:44 ---> ac73e934f311 09:39:44 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' 09:39:44 ---> Running in 61072c78489a 09:39:44 Removing intermediate container 61072c78489a 09:39:44 ---> fe6053cec90c 09:39:44 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 09:39:44 ---> Running in 195fa9e60a0c 09:39:44 Removing intermediate container 195fa9e60a0c 09:39:44 ---> 8c0222638eb4 09:39:44 Step 16/25 : RUN apk add --update --no-cache zeromq dumb-init 09:39:44 ---> Running in 48f2b5f0aaf1 09:39:44 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/aarch64/APKINDEX.tar.gz 09:39:44 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/aarch64/APKINDEX.tar.gz 09:39:44 (1/6) Installing dumb-init (1.2.5-r1) 09:39:44 (2/6) Installing libgcc (10.3.1_git20210424-r2) 09:39:44 (3/6) Installing libsodium (1.0.18-r0) 09:39:44 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 09:39:44 (5/6) Installing libzmq (4.3.4-r0) 09:39:44 (6/6) Installing zeromq (4.3.4-r0) 09:39:44 Executing busybox-1.33.1-r7.trigger 09:39:44 OK: 8 MiB in 20 packages 09:39:44 Removing intermediate container 48f2b5f0aaf1 09:39:44 ---> 81d1c82c44e7 09:39:44 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 09:39:44 ---> d685b0f19b09 09:39:44 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 09:39:44 ---> 82a0b1dd3d7a 09:39:44 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 09:39:44 ---> f11f66ef3fd5 09:39:44 Step 20/25 : EXPOSE 59986 09:39:44 ---> Running in 73d2331deed2 09:39:44 Removing intermediate container 73d2331deed2 09:39:44 ---> a06eefbb0d24 09:39:44 Step 21/25 : ENTRYPOINT ["/device-rest"] 09:39:44 ---> Running in 210ecdca48bf 09:39:44 Removing intermediate container 210ecdca48bf 09:39:44 ---> 225f0fef4820 09:39:44 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--confdir=/res", "--registry"] 09:39:44 ---> Running in e2d3dd315982 09:39:44 Removing intermediate container e2d3dd315982 09:39:44 ---> f9dd7f5e0dd5 09:39:44 Step 23/25 : LABEL arch=arm64 09:39:44 ---> Running in ea13ad0e5bed 09:39:44 Removing intermediate container ea13ad0e5bed 09:39:44 ---> 8b204c294357 09:39:44 Step 24/25 : LABEL git_sha=5129bb747eb0d4e9647a0a00868555b5168ad271 09:39:44 ---> Running in a01abde637cc 09:39:44 Removing intermediate container a01abde637cc 09:39:44 ---> bdc03685abf0 09:39:44 Step 25/25 : LABEL version=0.0.0 09:39:44 ---> Running in 7718ffed7a58 09:39:44 Removing intermediate container 7718ffed7a58 09:39:44 ---> 10a10acce962 09:39:44 [Warning] One or more build-args [ARCH] were not consumed 09:39:44 Successfully built 10a10acce962 09:39:44 Successfully tagged device-rest-arm64:latest [Pipeline] } [Pipeline] // withEnv [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] withEnv [Pipeline] { [Pipeline] sh 09:39:45 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 09:39:45 09:39:45 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 09:39:45 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 09:39:45 arm64: Pulling from edgex-lftools-log-publisher 09:39:45 8998bd30e6a1: Pulling fs layer 09:39:45 04944245beec: Pulling fs layer 09:39:45 699f458cf7ca: Pulling fs layer 09:39:45 765212b225bb: Pulling fs layer 09:39:45 f23df028b6ca: Pulling fs layer 09:39:45 d65c8cfc05b1: Pulling fs layer 09:39:45 2437ff75d9bd: Pulling fs layer 09:39:45 765212b225bb: Waiting 09:39:45 f23df028b6ca: Waiting 09:39:45 d65c8cfc05b1: Waiting 09:39:45 2437ff75d9bd: Waiting 09:39:45 04944245beec: Verifying Checksum 09:39:45 04944245beec: Download complete 09:39:45 765212b225bb: Verifying Checksum 09:39:45 765212b225bb: Download complete 09:39:45 f23df028b6ca: Download complete 09:39:45 d65c8cfc05b1: Verifying Checksum 09:39:45 d65c8cfc05b1: Download complete 09:39:46 699f458cf7ca: Verifying Checksum 09:39:46 699f458cf7ca: Download complete 09:39:46 8998bd30e6a1: Verifying Checksum 09:39:46 8998bd30e6a1: Download complete 09:39:48 2437ff75d9bd: Verifying Checksum 09:39:48 2437ff75d9bd: Download complete 09:39:50 8998bd30e6a1: Pull complete 09:39:51 04944245beec: Pull complete 09:39:52 699f458cf7ca: Pull complete 09:39:52 765212b225bb: Pull complete 09:39:53 f23df028b6ca: Pull complete 09:39:53 d65c8cfc05b1: Pull complete 09:40:08 2437ff75d9bd: Pull complete 09:40:08 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 09:40:08 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 09:40:08 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 09:40:09 prd-ubuntu20.04-docker-arm64-4c-16g-17124 does not seem to be running inside a container 09:40:09 $ 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 ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 09:40:11 $ docker top 39e88e6dff161ae73099061cd07b04abe7a0203c2447c14f53ac23b15eeed1f3 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 09:40:12 ---> job-cost.sh 09:40:12 lf-activate-venv: SKIPPING 09:40:12 INFO: No Stack... 09:40:13 INFO: Retrieving Pricing Info for: v3-standard-4 09:40:14 INFO: Archiving Costs [Pipeline] sh 09:40:15 + + cat /w/workspace/device-rest-go/5/archives/cost.csv 09:40:15 cut -d, -f6 [Pipeline] lock 09:40:15 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-202-5-stack-cost] 09:40:15 Resource [jenkins-edgexfoundry-device-rest-go-PR-202-5-stack-cost] did not exist. Created. 09:40:15 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-202-5-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 09:40:15 /w/workspace/device-rest-go/5@tmp/durable-f94348c8/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 09:40:16 + echo total: 0.10999999940395355 [Pipeline] stash 09:40:16 Warning: overwriting stash ‘stack-cost’ 09:40:16 Stashed 1 file(s) [Pipeline] } 09:40:16 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-202-5-stack-cost] [Pipeline] // lock [Pipeline] } 09:40:16 $ docker stop --time=1 39e88e6dff161ae73099061cd07b04abe7a0203c2447c14f53ac23b15eeed1f3 09:40:18 $ docker rm -f 39e88e6dff161ae73099061cd07b04abe7a0203c2447c14f53ac23b15eeed1f3 [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 09:40:18 provisioning config files... 09:40:18 copy managed file [device-rest-go-codecov-token] to file:/w/workspace/gexfoundry_device-rest-go_PR-202@tmp/config5053431598390164134tmp [Pipeline] { [Pipeline] sh 09:40:18 + set +x 09:40:18 + curl -s https://codecov.io/bash 09:40:18 + bash -s -- 09:40:18 09:40:18 _____ _ 09:40:18 / ____| | | 09:40:18 | | ___ __| | ___ ___ _____ __ 09:40:18 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 09:40:18 | |___| (_) | (_| | __/ (_| (_) \ V / 09:40:18 \_____\___/ \__,_|\___|\___\___/ \_/ 09:40:18 Bash-1.0.6 09:40:18 09:40:18 09:40:18 ==> git version 2.25.1 found 09:40:18 ==> curl 7.68.0 (x86_64-pc-linux-gnu) libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3 09:40:18 Release-Date: 2020-01-08 09:40:18 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 09:40:18 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 09:40:18 ==> Jenkins CI detected. 09:40:18 current dir:  /w/workspace/gexfoundry_device-rest-go_PR-202 09:40:18 project root: . 09:40:18 --> token set from env 09:40:18 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 09:40:18 ==> Running gcov in . (disable via -X gcov) 09:40:18 ==> Python coveragepy not found 09:40:18 ==> Searching for coverage reports in: 09:40:18 + . 09:40:18 -> Found 1 reports 09:40:18 ==> Detecting git/mercurial file structure 09:40:18 ==> Reading reports 09:40:18 + ./coverage.out bytes=9355 09:40:18 ==> Appending adjustments 09:40:18 https://docs.codecov.io/docs/fixing-reports 09:40:19 + Found adjustments 09:40:19 ==> Gzipping contents 09:40:19 4.0K /tmp/codecov.Bf9m5s.gz 09:40:19 ==> Uploading reports 09:40:19 url: https://codecov.io 09:40:19 query: branch=PR-202&commit=5129bb747eb0d4e9647a0a00868555b5168ad271&build=5&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-202%2F5%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=202&job=&cmd_args= 09:40:19 -> Pinging Codecov 09:40:19 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=c51feb23-73ac-4f49-b3d1-d26df23137db&branch=PR-202&commit=5129bb747eb0d4e9647a0a00868555b5168ad271&build=5&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-202%2F5%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=202&job=&cmd_args= 09:40:19 -> Uploading to 09:40:19 https://storage.googleapis.com/codecov/v4/raw/2022-07-07/4E5D53B4F1F92C436F7061BF334D961C/5129bb747eb0d4e9647a0a00868555b5168ad271/2b8adfea-06ee-49fe-ae27-57e38b220381.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1E5YTIQF4NUDJHIPRXCW6SWPNHIWXR6YCTGFLBKZTWXKPGHK3U3FMCQWA%2F20220707%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20220707T094019Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=1681b789903506fc0e6c04dfcf2d653fa2331af41cd51d7521847e028934b2c7 09:40:19 % Total % Received % Xferd Average Speed Time Time Time Current 09:40:19 Dload Upload Total Spent Left Speed 09:40:19 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 1747 0 0 100 1747 0 8279 --:--:-- --:--:-- --:--:-- 8279 09:40:19 -> Reports have been successfully queued for processing at https://codecov.io/github/edgexfoundry/device-rest-go/commit/5129bb747eb0d4e9647a0a00868555b5168ad271 [Pipeline] } 09:40:19 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 09:40:20 + [ -d /w/workspace/gexfoundry_device-rest-go_PR-202/archives ] 09:40:20 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-202/archives 09:40:20 total 16 09:40:20 drwxr-xr-x 3 root root 4096 Jul 7 09:33 . 09:40:20 drwxrwxr-x 10 jenkins jenkins 4096 Jul 7 09:33 .. 09:40:20 drwxr-xr-x 2 root root 4096 Jul 7 09:33 cost 09:40:20 -rw-r--r-- 1 root root 85 Jul 7 09:33 cost.csv 09:40:20 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-rest-go_PR-202/archives 09:40:20 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-202/archives 09:40:20 total 16 09:40:20 drwxr-xr-x 3 jenkins jenkins 4096 Jul 7 09:33 . 09:40:20 drwxrwxr-x 10 jenkins jenkins 4096 Jul 7 09:33 .. 09:40:20 drwxr-xr-x 2 jenkins jenkins 4096 Jul 7 09:33 cost 09:40:20 -rw-r--r-- 1 jenkins jenkins 85 Jul 7 09:33 cost.csv [Pipeline] libraryResource [Pipeline] sh 09:40:20 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 09:40:21 ---> package-listing.sh 09:40:21 ++ facter osfamily 09:40:21 ++ tr '[:upper:]' '[:lower:]' 09:40:21 + OS_FAMILY=debian 09:40:21 + workspace=/w/workspace/gexfoundry_device-rest-go_PR-202 09:40:21 + START_PACKAGES=/tmp/packages_start.txt 09:40:21 + END_PACKAGES=/tmp/packages_end.txt 09:40:21 + DIFF_PACKAGES=/tmp/packages_diff.txt 09:40:21 + PACKAGES=/tmp/packages_start.txt 09:40:21 + '[' /w/workspace/gexfoundry_device-rest-go_PR-202 ']' 09:40:21 + PACKAGES=/tmp/packages_end.txt 09:40:21 + case "${OS_FAMILY}" in 09:40:21 + dpkg -l 09:40:21 + grep '^ii' 09:40:21 + '[' -f /tmp/packages_start.txt ']' 09:40:21 + '[' -f /tmp/packages_end.txt ']' 09:40:21 + diff /tmp/packages_start.txt /tmp/packages_end.txt 09:40:21 + '[' /w/workspace/gexfoundry_device-rest-go_PR-202 ']' 09:40:21 + mkdir -p /w/workspace/gexfoundry_device-rest-go_PR-202/archives/ 09:40:21 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/gexfoundry_device-rest-go_PR-202/archives/ [Pipeline] echo 09:40:21 Launching container with: [--privileged -u 0:0 --net host -v /var/log/sysstat:/var/log/sysstat -v /var/log/secure:/var/log/secure -v /var/log/auth.log:/var/log/auth.log -v /w/workspace/gexfoundry_device-rest-go_PR-202/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 09:40:22 + facter operatingsystem [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 09:40:22 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 09:40:22 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 09:40:22 prd-ubuntu20.04-docker-8c-8g-17123 does not seem to be running inside a container 09:40:22 $ docker run -t -d -u 1001:1001 --privileged -u 0:0 --net host -v /var/log/sysstat:/var/log/sysstat -v /var/log/secure:/var/log/secure -v /var/log/auth.log:/var/log/auth.log -v /w/workspace/gexfoundry_device-rest-go_PR-202/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-202 -v /w/workspace/gexfoundry_device-rest-go_PR-202:/w/workspace/gexfoundry_device-rest-go_PR-202:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-202@tmp:/w/workspace/gexfoundry_device-rest-go_PR-202@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 09:40:22 $ docker top f26e1563dd3edbc13eecc53b4f2f5b77716822be56327f36b1f113250e09c7e9 -eo pid,comm [Pipeline] { [Pipeline] sh 09:40:23 + touch /tmp/pre-build-complete [Pipeline] sh 09:40:23 + mkdir -p /var/log/sysstat [Pipeline] sh 09:40:23 + ls /var/log/sa-host 09:40:23 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 09:40:24 provisioning config files... 09:40:24 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-202@tmp/config4200486688470573233tmp [Pipeline] { [Pipeline] echo 09:40:24 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 09:40:24 ---> create-netrc.sh [Pipeline] } 09:40:24 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 09:40:24 ---> python-tools-install.sh [Pipeline] echo 09:40:24 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 09:40:24 ---> sudo-logs.sh 09:40:24 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 09:40:24 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 09:40:25 ---> job-cost.sh 09:40:25 lf-activate-venv: SKIPPING 09:40:25 DEBUG: total: 0.2199999988079071 09:40:25 INFO: Retrieving Stack Cost... 09:40:25 INFO: Retrieving Pricing Info for: v3-standard-8 09:40:26 INFO: Archiving Costs [Pipeline] echo 09:40:26 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 09:40:26 ---> logs-deploy.sh 09:40:26 lf-activate-venv: SKIPPING 09:40:26 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-202/5 09:40:26 INFO: archiving workspace using pattern(s): 09:40:27 Archives upload complete. 09:40:27 INFO: archiving logs to Nexus