Branch indexing Connecting to https://api.github.com using edgex-jenkins github personal access token Obtained Jenkinsfile from db9efb490de7778646f037f9e3397b71150b5e7b+d6c3e216c08ed71da48c9c499bb0b6c9a0701dd9 (2f89eabc1ead2d3bfff60eba8f5e7317e3299b61) 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-ssh9333175151165735653.key > git ls-remote -h -t -- git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Found match: refs/tags/stable revision 8d11186b4ecddd371e5d69e8bc5262dee0d7f4a1 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-ssh7023018418388815370.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 8d11186b4ecddd371e5d69e8bc5262dee0d7f4a1 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-297/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-297/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh3459724666568724396.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision 8d11186b4ecddd371e5d69e8bc5262dee0d7f4a1 (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f 8d11186b4ecddd371e5d69e8bc5262dee0d7f4a1 # timeout=10 Commit message: "fix: bug with isLTS relying on env.GIT_BRANCH inside cd-management repo (#429)" > 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-ssh15854435513635359796.key > git ls-remote -h -- git@github.com:lfit/releng-pipelines.git # timeout=10 Found match: refs/heads/master revision 65355178549468b165f8106641c96c3190b1d843 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-297/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-297/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e@tmp/jenkins-gitclient-ssh244278045145862345.key > git fetch --no-tags --progress -- git@github.com:lfit/releng-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10 Checking out Revision 65355178549468b165f8106641c96c3190b1d843 (master) > git config core.sparsecheckout # timeout=10 > git checkout -f 65355178549468b165f8106641c96c3190b1d843 # timeout=10 Commit message: "Fix: Add S3 URL in href to ship logs" > 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.20 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 Waiting for next available executor on ‘prd-ubuntu20.04-docker-8c-8g-10837’ Running on prd-ubuntu20.04-docker-8c-8g-10840 in /w/workspace/gexfoundry_device-rest-go_PR-297 [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-297 # 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 > 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 Merging remotes/origin/main commit d6c3e216c08ed71da48c9c499bb0b6c9a0701dd9 into PR head commit db9efb490de7778646f037f9e3397b71150b5e7b Merge succeeded, producing 522741b4d7c581134c1b14f65ebc95c0caa49787 Checking out Revision 522741b4d7c581134c1b14f65ebc95c0caa49787 (PR-297) > 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/297/head:refs/remotes/origin/PR-297 +refs/heads/main:refs/remotes/origin/main # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f db9efb490de7778646f037f9e3397b71150b5e7b # 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 d6c3e216c08ed71da48c9c499bb0b6c9a0701dd9 # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 522741b4d7c581134c1b14f65ebc95c0caa49787 # timeout=10 Commit message: "Merge commit 'd6c3e216c08ed71da48c9c499bb0b6c9a0701dd9' into HEAD" > git rev-list --no-walk db9efb490de7778646f037f9e3397b71150b5e7b # timeout=10 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 15:09:27 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 15:09:27 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 15:09:27 ========================================================= 15:09:27 EdgeX Global Pipelines Version Info 15:09:27 ========================================================= [Pipeline] libraryResource [Pipeline] sh 15:09:27 ------------------- 15:09:27 stable info: 15:09:27 ------------------- 15:09:27 Commited By: Bill Mahoney bill.mahoney@intel.com 15:09:27 Commit SHA: 8d11186b4ecddd371e5d69e8bc5262dee0d7f4a1 15:09:27 Message: update stable to v1.0.248 15:09:28 ------------------- 15:09:28 experimental info: 15:09:28 ------------------- 15:09:28 Commited By: **** collab-it+edgex@linuxfoundation.org 15:09:28 Commit SHA: 8d11186b4ecddd371e5d69e8bc5262dee0d7f4a1 15:09:28 Message: update experimental to v1.0.248 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 15:09:28 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 15:09:28 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 15:09:28 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 15:09:28 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 15:09:28 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 15:09:28 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.20 [Pipeline] echo 15:09:28 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 15:09:28 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 15:09:28 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 15:09:28 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 15:09:28 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 15:09:28 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 15:09:28 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 15:09:28 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 15:09:28 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 15:09:28 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 15:09:28 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 15:09:28 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 15:09:28 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 15:09:28 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 15:09:28 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 15:09:28 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 15:09:28 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 15:09:28 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 15:09:28 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 15:09:28 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 15:09:28 [edgeXSetupEnvironment]: set envvar SNYK_DEBUG = false [Pipeline] echo 15:09:28 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-297 [Pipeline] echo 15:09:28 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-297 [Pipeline] echo 15:09:28 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-297 [Pipeline] echo 15:09:28 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 522741b4d7c581134c1b14f65ebc95c0caa49787 [Pipeline] echo 15:09:29 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 522741b [Pipeline] echo 15:09:29 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 15:09:29 provisioning config files... 15:09:29 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-297@tmp/config10659646666358919393tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 15:09:29 ---> docker-login.sh 15:09:29 nexus3.edgexfoundry.org:10001 15:09:29 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 15:09:29 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 15:09:29 Configure a credential helper to remove this warning. See 15:09:29 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 15:09:29 15:09:29 Login Succeeded 15:09:29 nexus3.edgexfoundry.org:10002 15:09:29 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 15:09:29 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 15:09:29 Configure a credential helper to remove this warning. See 15:09:29 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 15:09:29 15:09:29 Login Succeeded 15:09:29 nexus3.edgexfoundry.org:10003 15:09:29 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 15:09:29 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 15:09:29 Configure a credential helper to remove this warning. See 15:09:29 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 15:09:29 15:09:29 Login Succeeded 15:09:29 nexus3.edgexfoundry.org:10004 15:09:29 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 15:09:29 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 15:09:29 Configure a credential helper to remove this warning. See 15:09:29 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 15:09:29 15:09:30 Login Succeeded 15:09:30 docker.io 15:09:30 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 15:09:30 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 15:09:30 Configure a credential helper to remove this warning. See 15:09:30 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 15:09:30 15:09:30 Login Succeeded 15:09:30 ---> docker-login.sh ends [Pipeline] } 15:09:30 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 15:09:30 + git rev-list -1 --merges 522741b4d7c581134c1b14f65ebc95c0caa49787~1..522741b4d7c581134c1b14f65ebc95c0caa49787 [Pipeline] echo 15:09:30 -----------> git rev-list -1 --merges 522741b4d7c581134c1b14f65ebc95c0caa49787~1..522741b4d7c581134c1b14f65ebc95c0caa49787 522741b4d7c581134c1b14f65ebc95c0caa49787 15:09:30 522741b4d7c581134c1b14f65ebc95c0caa49787 [false] [Pipeline] sh 15:09:31 + git log --format=format:%s -1 522741b4d7c581134c1b14f65ebc95c0caa49787 [Pipeline] echo 15:09:31 ========================================================= 15:09:31 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 15:09:31 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 15:09:31 + git log --format=format:%s -1 522741b4d7c581134c1b14f65ebc95c0caa49787 [Pipeline] echo 15:09:31 [semverPrep] GIT_COMMIT: 522741b4d7c581134c1b14f65ebc95c0caa49787, Commit Message: Merge commit 'd6c3e216c08ed71da48c9c499bb0b6c9a0701dd9' into HEAD [Pipeline] echo 15:09:31 [semverPrep] This is not a build commit. [Pipeline] sh 15:09:31 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 15:09:31 + grep -v github /etc/ssh/ssh_known_hosts 15:09:31 + [ -e /tmp/ssh_known_hosts ] 15:09:31 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 15:09:31 + + echosudo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= tee 15:09:31 -a /etc/ssh/ssh_known_hosts 15:09:31 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 15:09:32 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 15:09:32 15:09:32 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 15:09:32 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 15:09:32 0.1.4: Pulling from edgex-devops/py-git-semver 15:09:32 b85a868b505f: Pulling fs layer 15:09:32 e2be974225ed: Pulling fs layer 15:09:32 339a4e72a1f5: Pulling fs layer 15:09:32 988bab9f4d93: Pulling fs layer 15:09:32 1469e6f7b9e6: Pulling fs layer 15:09:32 eaf3925da568: Pulling fs layer 15:09:32 bab4dde63d76: Pulling fs layer 15:09:32 bde34c3a00c8: Pulling fs layer 15:09:32 b352a97aabf1: Pulling fs layer 15:09:32 4872d77fe225: Pulling fs layer 15:09:32 5851b861e8e6: Pulling fs layer 15:09:32 b352a97aabf1: Waiting 15:09:32 5851b861e8e6: Waiting 15:09:32 988bab9f4d93: Waiting 15:09:32 1469e6f7b9e6: Waiting 15:09:32 eaf3925da568: Waiting 15:09:32 bab4dde63d76: Waiting 15:09:32 bde34c3a00c8: Waiting 15:09:32 4872d77fe225: Waiting 15:09:32 e2be974225ed: Download complete 15:09:32 988bab9f4d93: Verifying Checksum 15:09:32 988bab9f4d93: Download complete 15:09:32 1469e6f7b9e6: Verifying Checksum 15:09:32 1469e6f7b9e6: Download complete 15:09:32 eaf3925da568: Download complete 15:09:32 339a4e72a1f5: Verifying Checksum 15:09:32 339a4e72a1f5: Download complete 15:09:32 bde34c3a00c8: Download complete 15:09:32 b352a97aabf1: Download complete 15:09:32 4872d77fe225: Verifying Checksum 15:09:32 4872d77fe225: Download complete 15:09:32 5851b861e8e6: Download complete 15:09:32 b85a868b505f: Download complete 15:09:33 bab4dde63d76: Verifying Checksum 15:09:33 bab4dde63d76: Download complete 15:09:33 b85a868b505f: Pull complete 15:09:34 e2be974225ed: Pull complete 15:09:34 339a4e72a1f5: Pull complete 15:09:34 988bab9f4d93: Pull complete 15:09:35 1469e6f7b9e6: Pull complete 15:09:35 eaf3925da568: Pull complete 15:09:36 bab4dde63d76: Pull complete 15:09:36 bde34c3a00c8: Pull complete 15:09:37 b352a97aabf1: Pull complete 15:09:37 4872d77fe225: Pull complete 15:09:37 5851b861e8e6: Pull complete 15:09:37 Digest: sha256:59a28aa3b44c0bc56b9c3d2e9ecabe42e63693d939cc6e425eb8786f29f663d8 15:09:37 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 15:09:37 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 15:09:37 prd-ubuntu20.04-docker-8c-8g-10840 does not seem to be running inside a container 15:09:37 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/gexfoundry_device-rest-go_PR-297 -v /w/workspace/gexfoundry_device-rest-go_PR-297:/w/workspace/gexfoundry_device-rest-go_PR-297:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-297@tmp:/w/workspace/gexfoundry_device-rest-go_PR-297@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 cat 15:09:40 $ docker top c737d42204e57df8266c2cb59bd47913fe361e1fe8f505db6819319072c05624 -eo pid,comm 15:09:40 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). 15:09:40 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 15:09:40 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 15:09:40 [ssh-agent] Looking for ssh-agent implementation... 15:09:40 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 15:09:40 $ docker exec c737d42204e57df8266c2cb59bd47913fe361e1fe8f505db6819319072c05624 ssh-agent 15:09:40 SSH_AUTH_SOCK=/tmp/ssh-qQt715wqCZNT/agent.33 15:09:40 SSH_AGENT_PID=39 15:09:40 Running ssh-add (command line suppressed) 15:09:40 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-297@tmp/private_key_9403374630153015293.key (/w/workspace/gexfoundry_device-rest-go_PR-297@tmp/private_key_9403374630153015293.key) 15:09:40 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 15:09:40 + git tag --points-at HEAD [Pipeline] } 15:09:40 $ docker exec --env ******** --env ******** c737d42204e57df8266c2cb59bd47913fe361e1fe8f505db6819319072c05624 ssh-agent -k 15:09:40 unset SSH_AUTH_SOCK; 15:09:40 unset SSH_AGENT_PID; 15:09:40 echo Agent pid 39 killed; 15:09:41 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 15:09:41 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 15:09:41 [ssh-agent] Looking for ssh-agent implementation... 15:09:41 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 15:09:41 $ docker exec c737d42204e57df8266c2cb59bd47913fe361e1fe8f505db6819319072c05624 ssh-agent 15:09:41 SSH_AUTH_SOCK=/tmp/ssh-iYGKG3ugqRGj/agent.71 15:09:41 SSH_AGENT_PID=77 15:09:41 Running ssh-add (command line suppressed) 15:09:41 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-297@tmp/private_key_2508606498031205040.key (/w/workspace/gexfoundry_device-rest-go_PR-297@tmp/private_key_2508606498031205040.key) 15:09:41 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 15:09:41 + git semver init 15:09:41 2023-04-25 15:09:41,890 [run_init] DEBUG init version:0.0.0 force:False 15:09:41 2023-04-25 15:09:41,891 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/gexfoundry_device-rest-go_PR-297/.semver 15:09:41 2023-04-25 15:09:41,892 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-rest-go.git /w/workspace/gexfoundry_device-rest-go_PR-297/.semver 15:09:41 2023-04-25 15:09:41,892 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-rest-go.git', '/w/workspace/gexfoundry_device-rest-go_PR-297/.semver'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-297, universal_newlines=False, shell=None, istream=None) 15:09:43 2023-04-25 15:09:42,903 [append_file] DEBUG append to file:/w/workspace/gexfoundry_device-rest-go_PR-297/.git/info/exclude 15:09:43 2023-04-25 15:09:42,903 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/gexfoundry_device-rest-go_PR-297/.semver/PR-297 with force:False 15:09:43 2023-04-25 15:09:42,903 [write_file] DEBUG write to file:/w/workspace/gexfoundry_device-rest-go_PR-297/.semver/PR-297 15:09:43 2023-04-25 15:09:42,906 [execute] INFO git cat-file --batch-check 15:09:43 2023-04-25 15:09:42,907 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-297/.semver, universal_newlines=False, shell=None, istream=) 15:09:43 2023-04-25 15:09:42,913 [execute] INFO git cat-file --batch 15:09:43 2023-04-25 15:09:42,914 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-297/.semver, universal_newlines=False, shell=None, istream=) 15:09:43 2023-04-25 15:09:42,919 [read_version] DEBUG read version from /w/workspace/gexfoundry_device-rest-go_PR-297/.semver/PR-297 15:09:43 0.0.0 [Pipeline] } 15:09:43 $ docker exec --env ******** --env ******** c737d42204e57df8266c2cb59bd47913fe361e1fe8f505db6819319072c05624 ssh-agent -k 15:09:43 unset SSH_AUTH_SOCK; 15:09:43 unset SSH_AGENT_PID; 15:09:43 echo Agent pid 77 killed; 15:09:43 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 15:09:43 + git semver [Pipeline] } 15:09:44 $ docker stop --time=1 c737d42204e57df8266c2cb59bd47913fe361e1fe8f505db6819319072c05624 15:09:45 $ docker rm -f --volumes c737d42204e57df8266c2cb59bd47913fe361e1fe8f505db6819319072c05624 [Pipeline] // withDockerContainer [Pipeline] sh 15:09:45 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 15:09:45 Stashed 1 file(s) [Pipeline] echo 15:09:45 [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 15:09:46 provisioning config files... 15:09:46 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-297@tmp/config12899690981971396860tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 15:09:46 ---> docker-login.sh 15:09:46 nexus3.edgexfoundry.org:10001 15:09:46 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 15:09:46 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 15:09:46 Configure a credential helper to remove this warning. See 15:09:46 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 15:09:46 15:09:46 Login Succeeded 15:09:46 nexus3.edgexfoundry.org:10002 15:09:46 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 15:09:46 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 15:09:46 Configure a credential helper to remove this warning. See 15:09:46 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 15:09:46 15:09:46 Login Succeeded 15:09:46 nexus3.edgexfoundry.org:10003 15:09:46 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 15:09:46 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 15:09:46 Configure a credential helper to remove this warning. See 15:09:46 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 15:09:46 15:09:46 Login Succeeded 15:09:46 nexus3.edgexfoundry.org:10004 15:09:46 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 15:09:46 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 15:09:46 Configure a credential helper to remove this warning. See 15:09:46 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 15:09:46 15:09:46 Login Succeeded 15:09:46 docker.io 15:09:46 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 15:09:46 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 15:09:46 Configure a credential helper to remove this warning. See 15:09:46 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 15:09:46 15:09:46 Login Succeeded 15:09:46 ---> docker-login.sh ends [Pipeline] } 15:09:46 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 15:09:46 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 15:09:46 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 15:09:47 ========================================================= 15:09:47 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine] 15:09:47 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 15:09:47 + docker build -t ci-base-image-x86_64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine --build-arg MAKE=echo noop --target=builder . 15:09:47 Sending build context to Docker daemon 10.91MB 15:09:47 Step 1/12 : ARG BASE=golang:1.20-alpine3.17 15:09:47 Step 2/12 : FROM ${BASE} AS builder 15:09:47 1.20-alpine: Pulling from edgex-devops/edgex-golang-base 15:09:47 f56be85fc22e: Pulling fs layer 15:09:47 85791d961cd3: Pulling fs layer 15:09:47 d694b5ae8c79: Pulling fs layer 15:09:47 9f32a84ed3da: Pulling fs layer 15:09:47 4d19c01a9841: Pulling fs layer 15:09:47 9325e15d5711: Pulling fs layer 15:09:47 556b6ee489ea: Pulling fs layer 15:09:47 c5a4b2cf53e6: Pulling fs layer 15:09:47 9f32a84ed3da: Waiting 15:09:47 4d19c01a9841: Waiting 15:09:47 9325e15d5711: Waiting 15:09:47 556b6ee489ea: Waiting 15:09:47 c5a4b2cf53e6: Waiting 15:09:47 85791d961cd3: Download complete 15:09:47 9f32a84ed3da: Verifying Checksum 15:09:47 9f32a84ed3da: Download complete 15:09:47 4d19c01a9841: Download complete 15:09:47 f56be85fc22e: Verifying Checksum 15:09:47 f56be85fc22e: Download complete 15:09:47 9325e15d5711: Verifying Checksum 15:09:47 9325e15d5711: Download complete 15:09:47 f56be85fc22e: Pull complete 15:09:47 85791d961cd3: Pull complete 15:09:48 c5a4b2cf53e6: Verifying Checksum 15:09:48 c5a4b2cf53e6: Download complete 15:09:48 d694b5ae8c79: Verifying Checksum 15:09:48 d694b5ae8c79: Download complete 15:09:48 556b6ee489ea: Verifying Checksum 15:09:48 556b6ee489ea: Download complete 15:09:51 d694b5ae8c79: Pull complete 15:09:51 9f32a84ed3da: Pull complete 15:09:51 4d19c01a9841: Pull complete 15:09:51 9325e15d5711: Pull complete 15:09:55 556b6ee489ea: Pull complete 15:09:55 c5a4b2cf53e6: Pull complete 15:09:55 Digest: sha256:cdb650785bd12602035d3ff87499385c169773a4d12d6eaf394b34464d3a0f2b 15:09:55 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine 15:09:55 ---> c4be618373d6 15:09:55 Step 3/12 : ARG ADD_BUILD_TAGS="" 15:10:00 ---> Running in 0bc2685c682d 15:10:00 Removing intermediate container 0bc2685c682d 15:10:00 ---> 96e74555a7e0 15:10:00 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 15:10:00 ---> Running in 44095452d26d 15:10:00 Removing intermediate container 44095452d26d 15:10:00 ---> 342753a02516 15:10:00 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 15:10:00 ---> Running in 29ed8dc8fe05 15:10:00 Removing intermediate container 29ed8dc8fe05 15:10:00 ---> ac44bea28691 15:10:00 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 15:10:00 ---> Running in cbac9f9e3afa 15:10:00 Removing intermediate container cbac9f9e3afa 15:10:00 ---> ab4054b57da3 15:10:00 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 15:10:00 ---> Running in 41b52a66bef2 15:10:00 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 15:10:00 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 15:10:00 (1/4) Installing openssh-keygen (9.1_p1-r2) 15:10:00 (2/4) Installing libedit (20221030.3.1-r0) 15:10:00 (3/4) Installing openssh-client-common (9.1_p1-r2) 15:10:00 (4/4) Installing openssh-client-default (9.1_p1-r2) 15:10:00 Executing busybox-1.35.0-r29.trigger 15:10:00 OK: 269 MiB in 57 packages 15:10:01 Still waiting to schedule task 15:10:01 Waiting for next available executor on ‘prd-ubuntu20.04-docker-arm64-4c-16g-10838’ 15:10:01 Removing intermediate container 41b52a66bef2 15:10:01 ---> 8335eb5f5d9e 15:10:01 Step 8/12 : WORKDIR /device-rest-go 15:10:01 ---> Running in a62bdc3babcd 15:10:01 Removing intermediate container a62bdc3babcd 15:10:01 ---> 9982a8240b06 15:10:01 Step 9/12 : COPY go.mod vendor* ./ 15:10:01 ---> 5c5402cd3501 15:10:01 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 15:10:01 ---> Running in 1899c12a51b8 15:10:33 Removing intermediate container 1899c12a51b8 15:10:33 ---> 5ed348c45a67 15:10:33 Step 11/12 : COPY . . 15:10:33 ---> c9d0b764c2f6 15:10:33 Step 12/12 : RUN $MAKE 15:10:33 ---> Running in 9f61601e7233 15:10:33 noop 15:10:33 Removing intermediate container 9f61601e7233 15:10:33 ---> b4491c99fa60 15:10:33 Successfully built b4491c99fa60 15:10:33 Successfully tagged ci-base-image-x86_64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 15:10:33 + docker inspect -f . ci-base-image-x86_64 15:10:33 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 15:10:33 prd-ubuntu20.04-docker-8c-8g-10840 does not seem to be running inside a container 15:10:33 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-297 -v /w/workspace/gexfoundry_device-rest-go_PR-297:/w/workspace/gexfoundry_device-rest-go_PR-297:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-297@tmp:/w/workspace/gexfoundry_device-rest-go_PR-297@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 ******** ci-base-image-x86_64 cat 15:10:34 $ docker top 8176add937b52283d929bf61341f17a84176157221e6af97281868d6edb0d21d -eo pid,comm [Pipeline] { [Pipeline] sh 15:10:34 + go version 15:10:34 go version go1.20.2 linux/amd64 [Pipeline] } 15:10:34 $ docker stop --time=1 8176add937b52283d929bf61341f17a84176157221e6af97281868d6edb0d21d 15:10:35 $ docker rm -f --volumes 8176add937b52283d929bf61341f17a84176157221e6af97281868d6edb0d21d [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 15:10:36 + docker inspect -f . ci-base-image-x86_64 15:10:36 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 15:10:36 prd-ubuntu20.04-docker-8c-8g-10840 does not seem to be running inside a container 15:10:36 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged -v /var/run/docker.sock:/var/run/docker.sock -w /w/workspace/gexfoundry_device-rest-go_PR-297 -v /w/workspace/gexfoundry_device-rest-go_PR-297:/w/workspace/gexfoundry_device-rest-go_PR-297:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-297@tmp:/w/workspace/gexfoundry_device-rest-go_PR-297@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 ******** ci-base-image-x86_64 cat 15:10:36 $ docker top 20a90924c499a7f65b3c577629807b772a43baca2a9a8adbba507ade43bfae12 -eo pid,comm [Pipeline] { [Pipeline] sh 15:10:37 + git config --global --add safe.directory /w/workspace/gexfoundry_device-rest-go_PR-297 [Pipeline] fileExists [Pipeline] sh 15:10:37 + make test 15:10:37 go test ./... -coverprofile=coverage.out ./... 15:10:42 ? github.com/edgexfoundry/device-rest-go [no test files] 15:10:54 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 15:10:54 ok github.com/edgexfoundry/device-rest-go/driver 0.011s coverage: 32.2% of statements 15:11:00 go vet ./... 15:11:04 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 15:11:04 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 15:11:04 ./bin/test-attribution-txt.sh [Pipeline] echo 15:11:04 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 15:11:04 $ docker stop --time=1 20a90924c499a7f65b3c577629807b772a43baca2a9a8adbba507ade43bfae12 15:11:07 $ docker rm -f --volumes 20a90924c499a7f65b3c577629807b772a43baca2a9a8adbba507ade43bfae12 [Pipeline] // withDockerContainer [Pipeline] sh 15:11:07 + sudo chown -R jenkins:jenkins . [Pipeline] stash 15:11:07 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 15:11:08 + sudo chown -R jenkins:jenkins . [Pipeline] sh 15:11:08 + ls -al . 15:11:08 total 184 15:11:08 drwxrwxr-x 9 jenkins jenkins 4096 Apr 25 15:10 . 15:11:08 drwxrwxr-x 4 jenkins jenkins 4096 Apr 25 15:09 .. 15:11:08 -rw-rw-r-- 1 jenkins jenkins 151 Apr 25 15:09 .dockerignore 15:11:08 drwxrwxr-x 8 jenkins jenkins 4096 Apr 25 15:09 .git 15:11:08 drwxrwxr-x 3 jenkins jenkins 4096 Apr 25 15:09 .github 15:11:08 -rw-rw-r-- 1 jenkins jenkins 329 Apr 25 15:09 .gitignore 15:11:08 -rw-rw-r-- 1 jenkins jenkins 41 Apr 25 15:09 .golangci.yml 15:11:08 drwxr-xr-x 3 jenkins jenkins 4096 Apr 25 15:09 .semver 15:11:08 -rw-rw-r-- 1 jenkins jenkins 9331 Apr 25 15:09 Attribution.txt 15:11:08 -rw-rw-r-- 1 jenkins jenkins 13085 Apr 25 15:09 CHANGELOG.md 15:11:08 -rw-rw-r-- 1 jenkins jenkins 1578 Apr 25 15:09 Dockerfile 15:11:08 -rw-rw-r-- 1 jenkins jenkins 677 Apr 25 15:09 GOVERNANCE.md 15:11:08 -rw-rw-r-- 1 jenkins jenkins 680 Apr 25 15:09 Jenkinsfile 15:11:08 -rw-rw-r-- 1 jenkins jenkins 11340 Apr 25 15:09 LICENSE 15:11:08 -rw-rw-r-- 1 jenkins jenkins 1779 Apr 25 15:09 Makefile 15:11:08 -rw-rw-r-- 1 jenkins jenkins 620 Apr 25 15:09 OWNERS.md 15:11:08 -rw-rw-r-- 1 jenkins jenkins 15321 Apr 25 15:09 README.md 15:11:08 -rw-rw-r-- 1 jenkins jenkins 5 Apr 25 15:09 VERSION 15:11:08 drwxrwxr-x 2 jenkins jenkins 4096 Apr 25 15:09 bin 15:11:08 drwxrwxr-x 3 jenkins jenkins 4096 Apr 25 15:09 cmd 15:11:08 -rw-r--r-- 1 jenkins jenkins 14663 Apr 25 15:10 coverage.out 15:11:08 drwxrwxr-x 2 jenkins jenkins 4096 Apr 25 15:09 driver 15:11:08 -rw-rw-r-- 1 jenkins jenkins 3402 Apr 25 15:09 go.mod 15:11:08 -rw-rw-r-- 1 jenkins jenkins 31443 Apr 25 15:09 go.sum 15:11:08 drwxrwxr-x 4 jenkins jenkins 4096 Apr 25 15:09 snap 15:11:08 -rw-rw-r-- 1 jenkins jenkins 713 Apr 25 15:09 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 15:11:09 + 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=522741b4d7c581134c1b14f65ebc95c0caa49787 --label arch=amd64 --label version=0.0.0 . 15:11:09 Sending build context to Docker daemon 10.92MB 15:11:09 Step 1/25 : ARG BASE=golang:1.20-alpine3.17 15:11:09 Step 2/25 : FROM ${BASE} AS builder 15:11:09 ---> b4491c99fa60 15:11:09 Step 3/25 : ARG ADD_BUILD_TAGS="" 15:11:09 ---> Running in 519507eb9aa5 15:11:09 Removing intermediate container 519507eb9aa5 15:11:09 ---> b09c18397f44 15:11:09 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 15:11:09 ---> Running in 1729abd3d27a 15:11:09 Removing intermediate container 1729abd3d27a 15:11:09 ---> 5313e78f6561 15:11:09 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 15:11:09 ---> Running in 2bf45bc0ceb6 15:11:09 Removing intermediate container 2bf45bc0ceb6 15:11:09 ---> ce7b4d4a25fb 15:11:09 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 15:11:09 ---> Running in def10f150fc6 15:11:09 Removing intermediate container def10f150fc6 15:11:09 ---> be5ec7f0c22f 15:11:09 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 15:11:09 ---> Running in 1368fd3662d9 15:11:09 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 15:11:10 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 15:11:10 OK: 269 MiB in 57 packages 15:11:10 Removing intermediate container 1368fd3662d9 15:11:10 ---> f534dda96a18 15:11:10 Step 8/25 : WORKDIR /device-rest-go 15:11:10 ---> Running in f48ad39b4f0a 15:11:10 Removing intermediate container f48ad39b4f0a 15:11:10 ---> 8111bb23c4f4 15:11:10 Step 9/25 : COPY go.mod vendor* ./ 15:11:10 ---> cb4d6b8fb547 15:11:10 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 15:11:10 ---> Running in b33c3c910dae 15:11:11 Removing intermediate container b33c3c910dae 15:11:11 ---> c70e9b0eddc7 15:11:11 Step 11/25 : COPY . . 15:11:12 ---> 3101588d197f 15:11:12 Step 12/25 : RUN $MAKE 15:11:12 ---> Running in e9ed3bfba9c4 15:11:12 CGO_ENABLED=0 go build -tags "" -ldflags "-X github.com/edgexfoundry/device-rest-go.Version=0.0.0" -trimpath -mod=readonly -o cmd/device-rest ./cmd 15:11:34 Removing intermediate container e9ed3bfba9c4 15:11:34 ---> b1e2f7126ca2 15:11:34 Step 13/25 : FROM alpine:3.17 15:11:34 3.17: Pulling from library/alpine 15:11:34 f56be85fc22e: Already exists 15:11:34 Digest: sha256:124c7d2707904eea7431fffe91522a01e5a861a624ee31d03372cc1d138a3126 15:11:34 Status: Downloaded newer image for alpine:3.17 15:11:34 ---> 9ed4aefc74f6 15:11:34 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 15:11:34 ---> Running in 74b6ac35580a 15:11:34 Removing intermediate container 74b6ac35580a 15:11:34 ---> de0c46caf45c 15:11:34 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 15:11:34 ---> Running in a1eb73266a54 15:11:34 Removing intermediate container a1eb73266a54 15:11:34 ---> c1d5388e490a 15:11:34 Step 16/25 : RUN apk add --update --no-cache dumb-init 15:11:34 ---> Running in 1d8eef837adc 15:11:34 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 15:11:34 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 15:11:34 (1/1) Installing dumb-init (1.2.5-r2) 15:11:34 Executing busybox-1.35.0-r29.trigger 15:11:34 OK: 7 MiB in 16 packages 15:11:34 Removing intermediate container 1d8eef837adc 15:11:34 ---> f89c2884166f 15:11:34 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 15:11:35 ---> 8845f1a1292c 15:11:35 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 15:11:35 ---> aa8322521457 15:11:35 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 15:11:35 ---> 275a1d5c8c16 15:11:35 Step 20/25 : EXPOSE 59986 15:11:35 ---> Running in e99a03fd5435 15:11:36 Removing intermediate container e99a03fd5435 15:11:36 ---> 51c154578074 15:11:36 Step 21/25 : ENTRYPOINT ["/device-rest"] 15:11:36 ---> Running in 7c849831264f 15:11:36 Removing intermediate container 7c849831264f 15:11:36 ---> c4e0f7212856 15:11:36 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 15:11:36 ---> Running in 5f7db2905783 15:11:36 Removing intermediate container 5f7db2905783 15:11:36 ---> a4eba237a074 15:11:36 Step 23/25 : LABEL arch=amd64 15:11:36 ---> Running in 64f5ed05f570 15:11:36 Removing intermediate container 64f5ed05f570 15:11:36 ---> 60061a07406e 15:11:36 Step 24/25 : LABEL git_sha=522741b4d7c581134c1b14f65ebc95c0caa49787 15:11:36 ---> Running in 3deae6dc5f2e 15:11:36 Removing intermediate container 3deae6dc5f2e 15:11:36 ---> 3a0d3e227934 15:11:36 Step 25/25 : LABEL version=0.0.0 15:11:36 ---> Running in 93d34a4e5d77 15:11:36 Removing intermediate container 93d34a4e5d77 15:11:36 ---> eb8e9aaa2266 15:11:36 [Warning] One or more build-args [ARCH] were not consumed 15:11:36 Successfully built eb8e9aaa2266 15:11:36 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 15:11:36 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 15:11:36 15:11:36 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 15:11:37 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 15:11:37 latest: Pulling from edgex-lftools-log-publisher 15:11:37 5eb5b503b376: Pulling fs layer 15:11:37 5c69ac0246d0: Pulling fs layer 15:11:37 ec43610c2a17: Pulling fs layer 15:11:37 3a2ae6a8a46f: Pulling fs layer 15:11:37 33b1e0a273af: Pulling fs layer 15:11:37 5d3b04190fa2: Pulling fs layer 15:11:37 2f39f015ded8: Pulling fs layer 15:11:37 3a2ae6a8a46f: Waiting 15:11:37 33b1e0a273af: Waiting 15:11:37 5d3b04190fa2: Waiting 15:11:37 2f39f015ded8: Waiting 15:11:37 5c69ac0246d0: Verifying Checksum 15:11:37 5c69ac0246d0: Download complete 15:11:37 3a2ae6a8a46f: Verifying Checksum 15:11:37 3a2ae6a8a46f: Download complete 15:11:37 33b1e0a273af: Verifying Checksum 15:11:37 33b1e0a273af: Download complete 15:11:37 5d3b04190fa2: Verifying Checksum 15:11:37 5d3b04190fa2: Download complete 15:11:37 ec43610c2a17: Verifying Checksum 15:11:37 5eb5b503b376: Verifying Checksum 15:11:37 5eb5b503b376: Download complete 15:11:37 2f39f015ded8: Download complete 15:11:38 5eb5b503b376: Pull complete 15:11:38 5c69ac0246d0: Pull complete 15:11:39 ec43610c2a17: Pull complete 15:11:39 3a2ae6a8a46f: Pull complete 15:11:39 33b1e0a273af: Pull complete 15:11:39 5d3b04190fa2: Pull complete 15:11:44 2f39f015ded8: Pull complete 15:11:44 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 15:11:44 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 15:11:44 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 15:11:44 prd-ubuntu20.04-docker-8c-8g-10840 does not seem to be running inside a container 15:11:44 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/gexfoundry_device-rest-go_PR-297 -v /w/workspace/gexfoundry_device-rest-go_PR-297:/w/workspace/gexfoundry_device-rest-go_PR-297:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-297@tmp:/w/workspace/gexfoundry_device-rest-go_PR-297@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 15:11:48 $ docker top 20c5ffc55385d8b97cff508816907970c9808f78d6be52f26a23615da022615b -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 15:11:49 ---> job-cost.sh 15:11:49 lf-activate-venv: SKIPPING 15:11:49 INFO: No Stack... 15:11:49 INFO: Retrieving Pricing Info for: v3-standard-8 15:11:49 INFO: Archiving Costs [Pipeline] sh 15:11:50 + cat /w/workspace/gexfoundry_device-rest-go_PR-297/archives/cost.csv 15:11:50 + cut -d, -f6 [Pipeline] lock 15:11:50 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-297-3-stack-cost] 15:11:50 Resource [jenkins-edgexfoundry-device-rest-go-PR-297-3-stack-cost] did not exist. Created. 15:11:50 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-297-3-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 15:11:50 + echo total: 0.2199999988079071 [Pipeline] stash 15:11:50 Stashed 1 file(s) [Pipeline] } 15:11:50 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-297-3-stack-cost] [Pipeline] // lock [Pipeline] } 15:11:50 $ docker stop --time=1 20c5ffc55385d8b97cff508816907970c9808f78d6be52f26a23615da022615b 15:11:51 $ docker rm -f --volumes 20c5ffc55385d8b97cff508816907970c9808f78d6be52f26a23615da022615b [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 15:12:49 Running on prd-ubuntu20.04-docker-arm64-4c-16g-10842 in /w/workspace/gexfoundry_device-rest-go_PR-297 [Pipeline] { [Pipeline] ws 15:12:49 Running in /w/workspace/device-rest-go/3 [Pipeline] { [Pipeline] checkout 15:12:49 The recommended git tool is: git 15:12:59 using credential edgex-jenkins-ssh 15:12:59 Cloning the remote Git repository 15:12:59 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 15:12:59 > git init /w/workspace/device-rest-go/3 # timeout=10 15:13:00 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 15:13:00 > git --version # timeout=10 15:13:00 > git --version # 'git version 2.25.1' 15:13:00 using GIT_SSH to set credentials SSH Credentials for GitHub 15:13:00 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 15:13:05 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 15:13:05 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 15:13:07 Merging remotes/origin/main commit d6c3e216c08ed71da48c9c499bb0b6c9a0701dd9 into PR head commit db9efb490de7778646f037f9e3397b71150b5e7b 15:13:08 Merge succeeded, producing 5511ac92e2fcf5f245a8f21a8886f55307cd9ba8 15:13:08 Checking out Revision 5511ac92e2fcf5f245a8f21a8886f55307cd9ba8 (PR-297) 15:13:07 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 15:13:07 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 15:13:07 using GIT_SSH to set credentials SSH Credentials for GitHub 15:13:07 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/297/head:refs/remotes/origin/PR-297 +refs/heads/main:refs/remotes/origin/main # timeout=10 15:13:07 > git config core.sparsecheckout # timeout=10 15:13:07 > git checkout -f db9efb490de7778646f037f9e3397b71150b5e7b # timeout=10 15:13:07 > git remote # timeout=10 15:13:07 > git config --get remote.origin.url # timeout=10 15:13:08 using GIT_SSH to set credentials SSH Credentials for GitHub 15:13:08 > git merge d6c3e216c08ed71da48c9c499bb0b6c9a0701dd9 # timeout=10 15:13:08 > git rev-parse HEAD^{commit} # timeout=10 15:13:08 > git config core.sparsecheckout # timeout=10 15:13:08 > git checkout -f 5511ac92e2fcf5f245a8f21a8886f55307cd9ba8 # timeout=10 15:13:11 Commit message: "Merge commit 'd6c3e216c08ed71da48c9c499bb0b6c9a0701dd9' into HEAD" 15:13:11 > git rev-list --no-walk db9efb490de7778646f037f9e3397b71150b5e7b # timeout=10 [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 15:13:12 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 15:13:12 % Total % Received % Xferd Average Speed Time Time Time Current 15:13:12 Dload Upload Total Spent Left Speed 15:13:12 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 12751 100 12751 0 0 73281 0 --:--:-- --:--:-- --:--:-- 73281 [Pipeline] sh 15:13:13 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 15:13:13 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json+ 15:13:13 sudo tee /etc/docker/daemon.new 15:13:13 { 15:13:13 "registry-mirrors": [ 15:13:13 "https://nexus3.edgexfoundry.org:10001" 15:13:13 ], 15:13:13 "bip": "10.250.0.254/24", 15:13:13 "hosts": [ 15:13:13 "tcp://0.0.0.0:5555", 15:13:13 "unix:///var/run/docker.sock" 15:13:13 ], 15:13:13 "mtu": 1458, 15:13:13 "selinux-enabled": true, 15:13:13 "seccomp-profile": "/etc/docker/seccomp.json" 15:13:13 } [Pipeline] sh 15:13:14 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 15:13:14 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 15:13:32 provisioning config files... 15:13:32 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/3@tmp/config6610800207100896435tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 15:13:33 ---> docker-login.sh 15:13:33 nexus3.edgexfoundry.org:10001 15:13:33 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 15:13:33 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 15:13:33 Configure a credential helper to remove this warning. See 15:13:33 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 15:13:33 15:13:33 Login Succeeded 15:13:33 nexus3.edgexfoundry.org:10002 15:13:34 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 15:13:34 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 15:13:34 Configure a credential helper to remove this warning. See 15:13:34 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 15:13:34 15:13:34 Login Succeeded 15:13:34 nexus3.edgexfoundry.org:10003 15:13:34 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 15:13:34 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 15:13:34 Configure a credential helper to remove this warning. See 15:13:34 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 15:13:34 15:13:34 Login Succeeded 15:13:34 nexus3.edgexfoundry.org:10004 15:13:34 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 15:13:35 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 15:13:35 Configure a credential helper to remove this warning. See 15:13:35 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 15:13:35 15:13:35 Login Succeeded 15:13:35 docker.io 15:13:35 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 15:13:35 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 15:13:35 Configure a credential helper to remove this warning. See 15:13:35 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 15:13:35 15:13:35 Login Succeeded 15:13:35 ---> docker-login.sh ends [Pipeline] } 15:13:35 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 15:13:35 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 15:13:35 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 15:13:36 ========================================================= 15:13:36 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine] 15:13:36 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 15:13:36 + docker build -t ci-base-image-arm64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine --build-arg MAKE=echo noop --target=builder . 15:13:36 Sending build context to Docker daemon 138.8kB 15:13:36 Step 1/12 : ARG BASE=golang:1.20-alpine3.17 15:13:36 Step 2/12 : FROM ${BASE} AS builder 15:13:36 1.20-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 15:13:36 c41833b44d91: Pulling fs layer 15:13:36 ed15518f5707: Pulling fs layer 15:13:36 feae8fd75edb: Pulling fs layer 15:13:36 242c74f7c9fa: Pulling fs layer 15:13:36 3cdef696dda3: Pulling fs layer 15:13:36 2ced38df9373: Pulling fs layer 15:13:36 58f1dce35555: Pulling fs layer 15:13:36 242c74f7c9fa: Waiting 15:13:36 3cdef696dda3: Waiting 15:13:36 58f1dce35555: Waiting 15:13:36 2ced38df9373: Waiting 15:13:36 ed15518f5707: Download complete 15:13:36 242c74f7c9fa: Verifying Checksum 15:13:36 242c74f7c9fa: Download complete 15:13:36 3cdef696dda3: Download complete 15:13:36 c41833b44d91: Verifying Checksum 15:13:38 c41833b44d91: Pull complete 15:13:38 58f1dce35555: Verifying Checksum 15:13:38 58f1dce35555: Download complete 15:13:38 ed15518f5707: Pull complete 15:13:39 2ced38df9373: Verifying Checksum 15:13:39 2ced38df9373: Download complete 15:13:39 feae8fd75edb: Verifying Checksum 15:13:39 feae8fd75edb: Download complete 15:13:49 feae8fd75edb: Pull complete 15:13:50 242c74f7c9fa: Pull complete 15:13:50 3cdef696dda3: Pull complete 15:13:56 2ced38df9373: Pull complete 15:13:59 58f1dce35555: Pull complete 15:13:59 Digest: sha256:3b55595e96c696ae732e8cb20cde5b1ff7282a1fe1423a8de67617af8d15ea1e 15:13:59 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine 15:13:59 ---> fadd8f120f05 15:13:59 Step 3/12 : ARG ADD_BUILD_TAGS="" 15:14:01 ---> Running in 2680e481b0fb 15:14:01 Removing intermediate container 2680e481b0fb 15:14:01 ---> 24bcf39d7143 15:14:01 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 15:14:01 ---> Running in ac77df8fcc10 15:14:02 Removing intermediate container ac77df8fcc10 15:14:02 ---> 138928d36a16 15:14:02 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 15:14:02 ---> Running in 8d39e6274485 15:14:02 Removing intermediate container 8d39e6274485 15:14:02 ---> e363e5827685 15:14:02 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 15:14:02 ---> Running in ea8d6250b5d2 15:14:02 Removing intermediate container ea8d6250b5d2 15:14:02 ---> 391749895373 15:14:02 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 15:14:02 ---> Running in a971cf5b3814 15:14:03 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 15:14:04 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 15:14:05 (1/4) Installing openssh-keygen (9.1_p1-r2) 15:14:05 (2/4) Installing libedit (20221030.3.1-r0) 15:14:05 (3/4) Installing openssh-client-common (9.1_p1-r2) 15:14:05 (4/4) Installing openssh-client-default (9.1_p1-r2) 15:14:05 Executing busybox-1.35.0-r29.trigger 15:14:05 OK: 268 MiB in 57 packages 15:14:06 Removing intermediate container a971cf5b3814 15:14:06 ---> 15a1c1b4887f 15:14:06 Step 8/12 : WORKDIR /device-rest-go 15:14:06 ---> Running in 1e1eeefd25f0 15:14:06 Removing intermediate container 1e1eeefd25f0 15:14:06 ---> b66c682072f7 15:14:06 Step 9/12 : COPY go.mod vendor* ./ 15:14:07 ---> f2818c556d8b 15:14:07 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 15:14:07 ---> Running in 72c787ad4e1d 15:15:15 Removing intermediate container 72c787ad4e1d 15:15:15 ---> 8b62e7b4ef2a 15:15:15 Step 11/12 : COPY . . 15:15:15 ---> 3145241b1807 15:15:15 Step 12/12 : RUN $MAKE 15:15:15 ---> Running in 577b192a1bdf 15:15:15 noop 15:15:15 Removing intermediate container 577b192a1bdf 15:15:15 ---> 399f8067f197 15:15:15 Successfully built 399f8067f197 15:15:15 Successfully tagged ci-base-image-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 15:15:15 + docker inspect -f . ci-base-image-arm64 15:15:15 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 15:15:15 prd-ubuntu20.04-docker-arm64-4c-16g-10842 does not seem to be running inside a container 15:15:16 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/3 -v /w/workspace/device-rest-go/3:/w/workspace/device-rest-go/3:rw,z -v /w/workspace/device-rest-go/3@tmp:/w/workspace/device-rest-go/3@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 ******** ci-base-image-arm64 cat 15:15:17 $ docker top 31598909c0a2b98fb242f304d745a875b162c3b9bff00deb2ecea7fc3a080761 -eo pid,comm [Pipeline] { [Pipeline] sh 15:15:18 + go version 15:15:18 go version go1.20.2 linux/arm64 [Pipeline] } 15:15:18 $ docker stop --time=1 31598909c0a2b98fb242f304d745a875b162c3b9bff00deb2ecea7fc3a080761 15:15:22 $ docker rm -f --volumes 31598909c0a2b98fb242f304d745a875b162c3b9bff00deb2ecea7fc3a080761 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 15:15:23 + docker inspect -f . ci-base-image-arm64 15:15:23 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 15:15:23 prd-ubuntu20.04-docker-arm64-4c-16g-10842 does not seem to be running inside a container 15:15:23 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged -v /var/run/docker.sock:/var/run/docker.sock -w /w/workspace/device-rest-go/3 -v /w/workspace/device-rest-go/3:/w/workspace/device-rest-go/3:rw,z -v /w/workspace/device-rest-go/3@tmp:/w/workspace/device-rest-go/3@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 ******** ci-base-image-arm64 cat 15:15:24 $ docker top 90d8dc328fb75b9d8ae236b048168298eb169e5cfd1bb4894e00091d7cfe4964 -eo pid,comm [Pipeline] { [Pipeline] sh 15:15:25 + git config --global --add safe.directory /w/workspace/device-rest-go/3 [Pipeline] fileExists [Pipeline] sh 15:15:26 + make test 15:15:26 go test ./... -coverprofile=coverage.out ./... 15:16:05 ? github.com/edgexfoundry/device-rest-go [no test files] 15:17:57 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 15:17:57 ok github.com/edgexfoundry/device-rest-go/driver 0.063s coverage: 32.2% of statements 15:17:57 WARNING: Linting skipped (not on x86_64 or linter not installed) 15:17:57 go vet ./... 15:18:19 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 15:18:19 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 15:18:19 ./bin/test-attribution-txt.sh [Pipeline] echo 15:18:19 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 15:18:19 $ docker stop --time=1 90d8dc328fb75b9d8ae236b048168298eb169e5cfd1bb4894e00091d7cfe4964 15:18:21 $ docker rm -f --volumes 90d8dc328fb75b9d8ae236b048168298eb169e5cfd1bb4894e00091d7cfe4964 [Pipeline] // withDockerContainer [Pipeline] sh 15:18:22 + sudo chown -R jenkins:jenkins . [Pipeline] stash 15:18:22 Warning: overwriting stash ‘coverage-report’ 15:18:22 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 15:18:23 + sudo chown -R jenkins:jenkins . [Pipeline] sh 15:18:23 + ls -al . 15:18:23 total 180 15:18:23 drwxrwxr-x 8 jenkins jenkins 4096 Apr 25 15:15 . 15:18:23 drwxrwxr-x 4 jenkins jenkins 4096 Apr 25 15:13 .. 15:18:23 -rw-rw-r-- 1 jenkins jenkins 151 Apr 25 15:13 .dockerignore 15:18:23 drwxrwxr-x 8 jenkins jenkins 4096 Apr 25 15:13 .git 15:18:23 drwxrwxr-x 3 jenkins jenkins 4096 Apr 25 15:13 .github 15:18:23 -rw-rw-r-- 1 jenkins jenkins 329 Apr 25 15:13 .gitignore 15:18:23 -rw-rw-r-- 1 jenkins jenkins 41 Apr 25 15:13 .golangci.yml 15:18:23 -rw-rw-r-- 1 jenkins jenkins 9331 Apr 25 15:13 Attribution.txt 15:18:23 -rw-rw-r-- 1 jenkins jenkins 13085 Apr 25 15:13 CHANGELOG.md 15:18:23 -rw-rw-r-- 1 jenkins jenkins 1578 Apr 25 15:13 Dockerfile 15:18:23 -rw-rw-r-- 1 jenkins jenkins 677 Apr 25 15:13 GOVERNANCE.md 15:18:23 -rw-rw-r-- 1 jenkins jenkins 680 Apr 25 15:13 Jenkinsfile 15:18:23 -rw-rw-r-- 1 jenkins jenkins 11340 Apr 25 15:13 LICENSE 15:18:23 -rw-rw-r-- 1 jenkins jenkins 1779 Apr 25 15:13 Makefile 15:18:23 -rw-rw-r-- 1 jenkins jenkins 620 Apr 25 15:13 OWNERS.md 15:18:23 -rw-rw-r-- 1 jenkins jenkins 15321 Apr 25 15:13 README.md 15:18:23 -rw-rw-r-- 1 jenkins jenkins 5 Apr 25 15:09 VERSION 15:18:23 drwxrwxr-x 2 jenkins jenkins 4096 Apr 25 15:13 bin 15:18:23 drwxrwxr-x 3 jenkins jenkins 4096 Apr 25 15:13 cmd 15:18:23 -rw-r--r-- 1 jenkins jenkins 14663 Apr 25 15:17 coverage.out 15:18:23 drwxrwxr-x 2 jenkins jenkins 4096 Apr 25 15:13 driver 15:18:23 -rw-rw-r-- 1 jenkins jenkins 3402 Apr 25 15:13 go.mod 15:18:23 -rw-rw-r-- 1 jenkins jenkins 31443 Apr 25 15:13 go.sum 15:18:23 drwxrwxr-x 4 jenkins jenkins 4096 Apr 25 15:13 snap 15:18:23 -rw-rw-r-- 1 jenkins jenkins 713 Apr 25 15:13 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 15:18:24 + 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=5511ac92e2fcf5f245a8f21a8886f55307cd9ba8 --label arch=arm64 --label version=0.0.0 . 15:18:24 Sending build context to Docker daemon 154.1kB 15:18:24 Step 1/25 : ARG BASE=golang:1.20-alpine3.17 15:18:24 Step 2/25 : FROM ${BASE} AS builder 15:18:24 ---> 399f8067f197 15:18:24 Step 3/25 : ARG ADD_BUILD_TAGS="" 15:18:24 ---> Running in 86494c9524d3 15:18:24 Removing intermediate container 86494c9524d3 15:18:24 ---> f2af328295b5 15:18:24 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 15:18:24 ---> Running in 5da70b61915d 15:18:25 Removing intermediate container 5da70b61915d 15:18:25 ---> 46a915751a4d 15:18:25 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 15:18:25 ---> Running in e23a3955d275 15:18:25 Removing intermediate container e23a3955d275 15:18:25 ---> 32846df82918 15:18:25 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 15:18:25 ---> Running in a3dfdd8421c4 15:18:25 Removing intermediate container a3dfdd8421c4 15:18:25 ---> a763f115e9b9 15:18:25 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 15:18:25 ---> Running in cf908db611a8 15:18:26 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 15:18:27 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 15:18:28 OK: 268 MiB in 57 packages 15:18:29 Removing intermediate container cf908db611a8 15:18:29 ---> f74ff7636929 15:18:29 Step 8/25 : WORKDIR /device-rest-go 15:18:29 ---> Running in cf79edfec166 15:18:29 Removing intermediate container cf79edfec166 15:18:29 ---> 87d7e7a43fbd 15:18:29 Step 9/25 : COPY go.mod vendor* ./ 15:18:30 ---> 3a3730f0574d 15:18:30 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 15:18:30 ---> Running in a3359927aee7 15:18:32 Removing intermediate container a3359927aee7 15:18:32 ---> c91b418a3520 15:18:32 Step 11/25 : COPY . . 15:18:33 ---> f0ba321187c9 15:18:33 Step 12/25 : RUN $MAKE 15:18:33 ---> Running in 6ae422b1cbdc 15:18:34 CGO_ENABLED=0 go build -tags "" -ldflags "-X github.com/edgexfoundry/device-rest-go.Version=0.0.0" -trimpath -mod=readonly -o cmd/device-rest ./cmd 15:20:56 Removing intermediate container 6ae422b1cbdc 15:20:56 ---> 1c3214bddbc9 15:20:56 Step 13/25 : FROM alpine:3.17 15:20:56 3.17: Pulling from library/alpine 15:20:56 c41833b44d91: Already exists 15:20:56 Digest: sha256:124c7d2707904eea7431fffe91522a01e5a861a624ee31d03372cc1d138a3126 15:20:56 Status: Downloaded newer image for alpine:3.17 15:20:56 ---> 51e60588ff2c 15:20:56 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 15:20:56 ---> Running in 6a666c6b9116 15:20:56 Removing intermediate container 6a666c6b9116 15:20:56 ---> e30a81d9f202 15:20:56 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 15:20:56 ---> Running in 348b7f648b03 15:20:56 Removing intermediate container 348b7f648b03 15:20:56 ---> d81f86e80cfb 15:20:56 Step 16/25 : RUN apk add --update --no-cache dumb-init 15:20:56 ---> Running in 7a1656d78b52 15:20:56 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 15:20:56 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 15:20:56 (1/1) Installing dumb-init (1.2.5-r2) 15:20:56 Executing busybox-1.35.0-r29.trigger 15:20:56 OK: 8 MiB in 16 packages 15:20:56 Removing intermediate container 7a1656d78b52 15:20:56 ---> 9d7983264fd5 15:20:56 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 15:20:56 ---> 22723fa759c1 15:20:56 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 15:20:56 ---> 3ddf0e1ebadb 15:20:56 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 15:20:56 ---> c669bf2142dc 15:20:56 Step 20/25 : EXPOSE 59986 15:20:56 ---> Running in caccb75a207f 15:20:56 Removing intermediate container caccb75a207f 15:20:56 ---> aea3da35488c 15:20:56 Step 21/25 : ENTRYPOINT ["/device-rest"] 15:20:56 ---> Running in a7bca24eded6 15:20:56 Removing intermediate container a7bca24eded6 15:20:56 ---> 5f943b2434d1 15:20:56 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 15:20:56 ---> Running in a3f54cfbf07e 15:20:56 Removing intermediate container a3f54cfbf07e 15:20:56 ---> 730d47deec09 15:20:56 Step 23/25 : LABEL arch=arm64 15:20:56 ---> Running in fb80beb9b59e 15:20:56 Removing intermediate container fb80beb9b59e 15:20:56 ---> 352f28ec56fe 15:20:56 Step 24/25 : LABEL git_sha=5511ac92e2fcf5f245a8f21a8886f55307cd9ba8 15:20:56 ---> Running in 6ad16ec92c97 15:20:56 Removing intermediate container 6ad16ec92c97 15:20:56 ---> 8781bca874cb 15:20:56 Step 25/25 : LABEL version=0.0.0 15:20:56 ---> Running in f525e4de2cc6 15:20:56 Removing intermediate container f525e4de2cc6 15:20:56 ---> e9e900d97082 15:20:56 [Warning] One or more build-args [ARCH] were not consumed 15:20:56 Successfully built e9e900d97082 15:20:56 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 15:20:56 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 15:20:56 15:20:56 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 15:20:56 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 15:20:56 arm64: Pulling from edgex-lftools-log-publisher 15:20:56 8998bd30e6a1: Pulling fs layer 15:20:56 04944245beec: Pulling fs layer 15:20:56 699f458cf7ca: Pulling fs layer 15:20:56 765212b225bb: Pulling fs layer 15:20:56 f23df028b6ca: Pulling fs layer 15:20:56 d65c8cfc05b1: Pulling fs layer 15:20:56 2437ff75d9bd: Pulling fs layer 15:20:56 765212b225bb: Waiting 15:20:56 f23df028b6ca: Waiting 15:20:56 d65c8cfc05b1: Waiting 15:20:56 2437ff75d9bd: Waiting 15:20:57 04944245beec: Verifying Checksum 15:20:57 04944245beec: Download complete 15:20:57 765212b225bb: Verifying Checksum 15:20:57 765212b225bb: Download complete 15:20:57 f23df028b6ca: Verifying Checksum 15:20:57 f23df028b6ca: Download complete 15:20:57 d65c8cfc05b1: Verifying Checksum 15:20:57 d65c8cfc05b1: Download complete 15:20:57 699f458cf7ca: Verifying Checksum 15:20:57 699f458cf7ca: Download complete 15:20:57 8998bd30e6a1: Verifying Checksum 15:20:57 8998bd30e6a1: Download complete 15:20:59 2437ff75d9bd: Verifying Checksum 15:20:59 2437ff75d9bd: Download complete 15:21:01 8998bd30e6a1: Pull complete 15:21:01 04944245beec: Pull complete 15:21:03 699f458cf7ca: Pull complete 15:21:03 765212b225bb: Pull complete 15:21:03 f23df028b6ca: Pull complete 15:21:04 d65c8cfc05b1: Pull complete 15:21:19 2437ff75d9bd: Pull complete 15:21:19 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 15:21:19 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 15:21:19 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 15:21:19 prd-ubuntu20.04-docker-arm64-4c-16g-10842 does not seem to be running inside a container 15:21:19 $ 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/3 -v /w/workspace/device-rest-go/3:/w/workspace/device-rest-go/3:rw,z -v /w/workspace/device-rest-go/3@tmp:/w/workspace/device-rest-go/3@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 15:21:22 $ docker top 7990bf7013d2ab385b0dd7f33b22b8dee637267a6879fb13a7ae7ea2404b86e5 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 15:21:23 ---> job-cost.sh 15:21:23 lf-activate-venv: SKIPPING 15:21:23 INFO: No Stack... 15:21:23 INFO: Retrieving Pricing Info for: v3-standard-4 15:21:24 INFO: Archiving Costs [Pipeline] sh 15:21:24 + + cut -d, -f6cat 15:21:24 /w/workspace/device-rest-go/3/archives/cost.csv [Pipeline] lock 15:21:25 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-297-3-stack-cost] 15:21:25 Resource [jenkins-edgexfoundry-device-rest-go-PR-297-3-stack-cost] did not exist. Created. 15:21:25 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-297-3-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 15:21:25 /w/workspace/device-rest-go/3@tmp/durable-a5938192/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 15:21:25 + echo total: 0.10999999940395355 [Pipeline] stash 15:21:25 Warning: overwriting stash ‘stack-cost’ 15:21:25 Stashed 1 file(s) [Pipeline] } 15:21:25 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-297-3-stack-cost] [Pipeline] // lock [Pipeline] } 15:21:25 $ docker stop --time=1 7990bf7013d2ab385b0dd7f33b22b8dee637267a6879fb13a7ae7ea2404b86e5 15:21:27 $ docker rm -f --volumes 7990bf7013d2ab385b0dd7f33b22b8dee637267a6879fb13a7ae7ea2404b86e5 [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 15:21:27 provisioning config files... 15:21:27 copy managed file [device-rest-go-codecov-token] to file:/w/workspace/gexfoundry_device-rest-go_PR-297@tmp/config3526159598972818362tmp [Pipeline] { [Pipeline] sh 15:21:27 + set +x 15:21:27 + + curl -s https://codecov.io/bashbash 15:21:27 -s -- 15:21:27 15:21:27 _____ _ 15:21:27 / ____| | | 15:21:27 | | ___ __| | ___ ___ _____ __ 15:21:27 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 15:21:27 | |___| (_) | (_| | __/ (_| (_) \ V / 15:21:27 \_____\___/ \__,_|\___|\___\___/ \_/ 15:21:27 Bash-1.0.6 15:21:27 15:21:27 15:21:27 ==> git version 2.25.1 found 15:21:27 ==> 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 15:21:27 Release-Date: 2020-01-08 15:21:27 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 15:21:27 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 15:21:27 ==> Jenkins CI detected. 15:21:27 current dir:  /w/workspace/gexfoundry_device-rest-go_PR-297 15:21:27 project root: . 15:21:27 --> token set from env 15:21:27 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 15:21:27 ==> Running gcov in . (disable via -X gcov) 15:21:27 ==> Python coveragepy not found 15:21:27 ==> Searching for coverage reports in: 15:21:27 + . 15:21:27 -> Found 1 reports 15:21:27 ==> Detecting git/mercurial file structure 15:21:27 ==> Reading reports 15:21:27 + ./coverage.out bytes=14663 15:21:27 ==> Appending adjustments 15:21:27 https://docs.codecov.io/docs/fixing-reports 15:21:28 + Found adjustments 15:21:28 ==> Gzipping contents 15:21:28 4.0K /tmp/codecov.kobbsn.gz 15:21:28 ==> Uploading reports 15:21:28 url: https://codecov.io 15:21:28 query: branch=PR-297&commit=522741b4d7c581134c1b14f65ebc95c0caa49787&build=3&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-297%2F3%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=297&job=&cmd_args= 15:21:28 -> Pinging Codecov 15:21:28 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=c51feb23-73ac-4f49-b3d1-d26df23137db&branch=PR-297&commit=522741b4d7c581134c1b14f65ebc95c0caa49787&build=3&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-297%2F3%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=297&job=&cmd_args= 15:21:28 -> Uploading to 15:21:28 https://storage.googleapis.com/codecov/v4/raw/2023-04-25/4E5D53B4F1F92C436F7061BF334D961C/522741b4d7c581134c1b14f65ebc95c0caa49787/4f4b01f8-b0e2-404b-9be4-aa5f584b30fe.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20230425%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20230425T152128Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=8e4fe961bf85e00ebdccd46774a22e03edaf6e5c8847d57b817289ac80b40777 15:21:28 % Total % Received % Xferd Average Speed Time Time Time Current 15:21:28 Dload Upload Total Spent Left Speed 15:21:28 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 2510 0 0 100 2510 0 9365 --:--:-- --:--:-- --:--:-- 9365 15:21:28 -> Reports have been successfully queued for processing at https://app.codecov.io/github/edgexfoundry/device-rest-go/commit/522741b4d7c581134c1b14f65ebc95c0caa49787 [Pipeline] } 15:21:28 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 15:21:29 + [ -d /w/workspace/gexfoundry_device-rest-go_PR-297/archives ] 15:21:29 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-297/archives 15:21:29 total 16 15:21:29 drwxr-xr-x 3 root root 4096 Apr 25 15:11 . 15:21:29 drwxrwxr-x 10 jenkins jenkins 4096 Apr 25 15:11 .. 15:21:29 drwxr-xr-x 2 root root 4096 Apr 25 15:11 cost 15:21:29 -rw-r--r-- 1 root root 86 Apr 25 15:11 cost.csv 15:21:29 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-rest-go_PR-297/archives 15:21:29 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-297/archives 15:21:29 total 16 15:21:29 drwxr-xr-x 3 jenkins jenkins 4096 Apr 25 15:11 . 15:21:29 drwxrwxr-x 10 jenkins jenkins 4096 Apr 25 15:11 .. 15:21:29 drwxr-xr-x 2 jenkins jenkins 4096 Apr 25 15:11 cost 15:21:29 -rw-r--r-- 1 jenkins jenkins 86 Apr 25 15:11 cost.csv [Pipeline] libraryResource [Pipeline] sh 15:21:29 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 15:21:30 ---> package-listing.sh 15:21:30 ++ facter osfamily 15:21:30 ++ tr '[:upper:]' '[:lower:]' 15:21:30 + OS_FAMILY=debian 15:21:30 + workspace=/w/workspace/gexfoundry_device-rest-go_PR-297 15:21:30 + START_PACKAGES=/tmp/packages_start.txt 15:21:30 + END_PACKAGES=/tmp/packages_end.txt 15:21:30 + DIFF_PACKAGES=/tmp/packages_diff.txt 15:21:30 + PACKAGES=/tmp/packages_start.txt 15:21:30 + '[' /w/workspace/gexfoundry_device-rest-go_PR-297 ']' 15:21:30 + PACKAGES=/tmp/packages_end.txt 15:21:30 + case "${OS_FAMILY}" in 15:21:30 + dpkg -l 15:21:30 + grep '^ii' 15:21:30 + '[' -f /tmp/packages_start.txt ']' 15:21:30 + '[' -f /tmp/packages_end.txt ']' 15:21:30 + diff /tmp/packages_start.txt /tmp/packages_end.txt 15:21:30 + '[' /w/workspace/gexfoundry_device-rest-go_PR-297 ']' 15:21:30 + mkdir -p /w/workspace/gexfoundry_device-rest-go_PR-297/archives/ 15:21:30 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/gexfoundry_device-rest-go_PR-297/archives/ [Pipeline] echo 15:21:30 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-297/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 15:21:31 + facter operatingsystem [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 15:21:31 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 15:21:31 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 15:21:31 prd-ubuntu20.04-docker-8c-8g-10840 does not seem to be running inside a container 15:21:31 $ 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-297/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-297 -v /w/workspace/gexfoundry_device-rest-go_PR-297:/w/workspace/gexfoundry_device-rest-go_PR-297:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-297@tmp:/w/workspace/gexfoundry_device-rest-go_PR-297@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 15:21:31 $ docker top e5ffc5f5fb8ef845375b6cdaadc38fcea339058e14edc37cccb33bcdb5e226d3 -eo pid,comm [Pipeline] { [Pipeline] sh 15:21:32 + touch /tmp/pre-build-complete [Pipeline] sh 15:21:32 + mkdir -p /var/log/sysstat [Pipeline] sh 15:21:32 + ls /var/log/sa-host 15:21:32 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 15:21:32 provisioning config files... 15:21:32 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-297@tmp/config18299846398830669839tmp [Pipeline] { [Pipeline] echo 15:21:33 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 15:21:33 ---> create-netrc.sh [Pipeline] } 15:21:33 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 15:21:33 ---> python-tools-install.sh [Pipeline] echo 15:21:33 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 15:21:33 ---> sudo-logs.sh 15:21:33 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 15:21:33 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 15:21:34 ---> job-cost.sh 15:21:34 lf-activate-venv: SKIPPING 15:21:34 DEBUG: total: 0.2199999988079071 15:21:34 INFO: Retrieving Stack Cost... 15:21:34 INFO: Retrieving Pricing Info for: v3-standard-8 15:21:35 INFO: Archiving Costs [Pipeline] echo 15:21:35 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 15:21:35 ---> logs-deploy.sh 15:21:35 lf-activate-venv: SKIPPING 15:21:35 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-297/3 15:21:35 INFO: archiving workspace using pattern(s): 15:21:36 Archives upload complete. 15:21:36 INFO: archiving logs to Nexus