Pull request #322 opened Connecting to https://api.github.com using edgex-jenkins github personal access token Obtained Jenkinsfile from b7a532f10f65a37a16fe5b5df099a14b732e137e+b9b57828cb91c1ed80a64c0f12d73d3d38017d14 (a0f1f3a7d1e21870060fc2d0fa97c1de89c6bdcc) 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-ssh1428904798296177131.key > git ls-remote -h -t -- git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Found match: refs/tags/stable revision 4fc256d9079ed2258907e613f84b1b8da264a4bd 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-ssh941966413755531542.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 4fc256d9079ed2258907e613f84b1b8da264a4bd The recommended git tool is: git using credential edgex-jenkins-ssh Cloning the remote Git repository Cloning with configured refspecs honoured and with tags Cloning repository git@github.com:edgexfoundry/edgex-global-pipelines.git > git init /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-322/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82 # timeout=10 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-322/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh16823470763692769632.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 > git config --add remote.origin.fetch +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 > 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 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-322/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh7088128807396650089.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision 4fc256d9079ed2258907e613f84b1b8da264a4bd (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f 4fc256d9079ed2258907e613f84b1b8da264a4bd # timeout=10 Commit message: "Merge pull request #430 from ernestojeda/release-lock" > 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 > git --version # timeout=10 > git --version # 'git version 2.16.6' 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-ssh8180941141500591266.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 Cloning the remote Git repository Cloning with configured refspecs honoured and without tags Cloning repository git@github.com:lfit/releng-pipelines.git > git init /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-322/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e # timeout=10 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-322/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e@tmp/jenkins-gitclient-ssh3759376451362840195.key > git fetch --no-tags --progress -- git@github.com:lfit/releng-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:lfit/releng-pipelines.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 Avoid second fetch 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 > git --version # timeout=10 > git --version # 'git version 2.16.6' fatal: bad object 4fc256d9079ed2258907e613f84b1b8da264a4bd 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 Running on prd-ubuntu20.04-docker-8c-8g-16134 in /w/workspace/gexfoundry_device-rest-go_PR-322 [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-322 # 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 > 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/322/head:refs/remotes/origin/PR-322 +refs/heads/main:refs/remotes/origin/main # timeout=10 Merging remotes/origin/main commit b9b57828cb91c1ed80a64c0f12d73d3d38017d14 into PR head commit b7a532f10f65a37a16fe5b5df099a14b732e137e Merge succeeded, producing b7a532f10f65a37a16fe5b5df099a14b732e137e Checking out Revision b7a532f10f65a37a16fe5b5df099a14b732e137e (PR-322) Commit message: "build(deps): Bump github.com/stretchr/testify from 1.8.2 to 1.8.3" First time build. Skipping changelog. > git --version # timeout=10 > git --version # 'git version 2.25.1' fatal: bad object 4fc256d9079ed2258907e613f84b1b8da264a4bd [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 20:58:27 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) > git config core.sparsecheckout # timeout=10 > git checkout -f b7a532f10f65a37a16fe5b5df099a14b732e137e # 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 b9b57828cb91c1ed80a64c0f12d73d3d38017d14 # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f b7a532f10f65a37a16fe5b5df099a14b732e137e # timeout=10 [Pipeline] script [Pipeline] { [Pipeline] withCredentials 20:58:27 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 20:58:27 ========================================================= 20:58:27 EdgeX Global Pipelines Version Info 20:58:27 ========================================================= [Pipeline] libraryResource [Pipeline] sh 20:58:28 ------------------- 20:58:28 stable info: 20:58:28 ------------------- 20:58:28 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 20:58:28 Commit SHA: 4fc256d9079ed2258907e613f84b1b8da264a4bd 20:58:28 Message: update stable to v1.0.249 20:58:29 ------------------- 20:58:29 experimental info: 20:58:29 ------------------- 20:58:29 Commited By: **** collab-it+edgex@linuxfoundation.org 20:58:29 Commit SHA: 4fc256d9079ed2258907e613f84b1b8da264a4bd 20:58:29 Message: update experimental to v1.0.249 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 20:58:29 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 20:58:29 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 20:58:29 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 20:58:29 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 20:58:29 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 20:58:29 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.20 [Pipeline] echo 20:58:29 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 20:58:29 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 20:58:29 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 20:58:29 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 20:58:30 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 20:58:30 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 20:58:30 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 20:58:30 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 20:58:30 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 20:58:30 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 20:58:30 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 20:58:30 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 20:58:30 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 20:58:30 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 20:58:30 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 20:58:30 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 20:58:30 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 20:58:30 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 20:58:30 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 20:58:30 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 20:58:30 [edgeXSetupEnvironment]: set envvar SNYK_DEBUG = false [Pipeline] echo 20:58:30 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-322 [Pipeline] echo 20:58:30 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-322 [Pipeline] echo 20:58:30 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-322 [Pipeline] echo 20:58:30 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = b7a532f10f65a37a16fe5b5df099a14b732e137e [Pipeline] echo 20:58:30 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = b7a532f [Pipeline] echo 20:58:30 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 20:58:31 provisioning config files... 20:58:31 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-322@tmp/config15040605792699523449tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:58:31 ---> docker-login.sh 20:58:31 nexus3.edgexfoundry.org:10001 20:58:31 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:58:32 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:58:32 Configure a credential helper to remove this warning. See 20:58:32 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:58:32 20:58:32 Login Succeeded 20:58:32 nexus3.edgexfoundry.org:10002 20:58:32 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:58:32 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:58:32 Configure a credential helper to remove this warning. See 20:58:32 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:58:32 20:58:32 Login Succeeded 20:58:32 nexus3.edgexfoundry.org:10003 20:58:32 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:58:32 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:58:32 Configure a credential helper to remove this warning. See 20:58:32 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:58:32 20:58:32 Login Succeeded 20:58:32 nexus3.edgexfoundry.org:10004 20:58:32 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:58:32 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:58:32 Configure a credential helper to remove this warning. See 20:58:32 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:58:32 20:58:32 Login Succeeded 20:58:32 docker.io 20:58:32 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:58:32 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:58:32 Configure a credential helper to remove this warning. See 20:58:32 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:58:32 20:58:32 Login Succeeded 20:58:32 ---> docker-login.sh ends [Pipeline] } 20:58:32 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 20:58:33 + git rev-list -1 --merges b7a532f10f65a37a16fe5b5df099a14b732e137e~1..b7a532f10f65a37a16fe5b5df099a14b732e137e [Pipeline] echo 20:58:33 -----------> git rev-list -1 --merges b7a532f10f65a37a16fe5b5df099a14b732e137e~1..b7a532f10f65a37a16fe5b5df099a14b732e137e b7a532f10f65a37a16fe5b5df099a14b732e137e [false] [Pipeline] sh 20:58:33 + git log --format=format:%s -1 b7a532f10f65a37a16fe5b5df099a14b732e137e [Pipeline] echo 20:58:33 ========================================================= 20:58:33 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 20:58:33 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 20:58:34 + git log --format=format:%s -1 b7a532f10f65a37a16fe5b5df099a14b732e137e [Pipeline] echo 20:58:34 [semverPrep] GIT_COMMIT: b7a532f10f65a37a16fe5b5df099a14b732e137e, Commit Message: build(deps): Bump github.com/stretchr/testify from 1.8.2 to 1.8.3 [Pipeline] echo 20:58:34 [semverPrep] This is not a build commit. [Pipeline] sh 20:58:34 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 20:58:34 + grep -v github /etc/ssh/ssh_known_hosts 20:58:34 + [ -e /tmp/ssh_known_hosts ] 20:58:34 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 20:58:34 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 20:58:34 + sudo tee -a /etc/ssh/ssh_known_hosts 20:58:34 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:58:34 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 20:58:34 20:58:34 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:58:35 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 20:58:35 0.1.4: Pulling from edgex-devops/py-git-semver 20:58:35 b85a868b505f: Pulling fs layer 20:58:35 e2be974225ed: Pulling fs layer 20:58:35 339a4e72a1f5: Pulling fs layer 20:58:35 988bab9f4d93: Pulling fs layer 20:58:35 1469e6f7b9e6: Pulling fs layer 20:58:35 eaf3925da568: Pulling fs layer 20:58:35 bab4dde63d76: Pulling fs layer 20:58:35 bde34c3a00c8: Pulling fs layer 20:58:35 b352a97aabf1: Pulling fs layer 20:58:35 4872d77fe225: Pulling fs layer 20:58:35 5851b861e8e6: Pulling fs layer 20:58:35 bde34c3a00c8: Waiting 20:58:35 eaf3925da568: Waiting 20:58:35 b352a97aabf1: Waiting 20:58:35 4872d77fe225: Waiting 20:58:35 988bab9f4d93: Waiting 20:58:35 1469e6f7b9e6: Waiting 20:58:35 bab4dde63d76: Waiting 20:58:35 e2be974225ed: Verifying Checksum 20:58:35 e2be974225ed: Download complete 20:58:35 988bab9f4d93: Verifying Checksum 20:58:35 988bab9f4d93: Download complete 20:58:35 1469e6f7b9e6: Verifying Checksum 20:58:35 1469e6f7b9e6: Download complete 20:58:35 eaf3925da568: Verifying Checksum 20:58:35 eaf3925da568: Download complete 20:58:35 339a4e72a1f5: Verifying Checksum 20:58:35 339a4e72a1f5: Download complete 20:58:35 bde34c3a00c8: Download complete 20:58:35 b352a97aabf1: Verifying Checksum 20:58:35 b352a97aabf1: Download complete 20:58:35 4872d77fe225: Verifying Checksum 20:58:35 4872d77fe225: Download complete 20:58:35 5851b861e8e6: Verifying Checksum 20:58:35 5851b861e8e6: Download complete 20:58:35 b85a868b505f: Verifying Checksum 20:58:35 b85a868b505f: Download complete 20:58:35 bab4dde63d76: Verifying Checksum 20:58:35 bab4dde63d76: Download complete 20:58:36 b85a868b505f: Pull complete 20:58:37 e2be974225ed: Pull complete 20:58:37 339a4e72a1f5: Pull complete 20:58:37 988bab9f4d93: Pull complete 20:58:37 1469e6f7b9e6: Pull complete 20:58:37 eaf3925da568: Pull complete 20:58:39 bab4dde63d76: Pull complete 20:58:39 bde34c3a00c8: Pull complete 20:58:39 b352a97aabf1: Pull complete 20:58:39 4872d77fe225: Pull complete 20:58:39 5851b861e8e6: Pull complete 20:58:40 Digest: sha256:59a28aa3b44c0bc56b9c3d2e9ecabe42e63693d939cc6e425eb8786f29f663d8 20:58:40 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 20:58:40 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 20:58:40 prd-ubuntu20.04-docker-8c-8g-16134 does not seem to be running inside a container 20:58:40 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/gexfoundry_device-rest-go_PR-322 -v /w/workspace/gexfoundry_device-rest-go_PR-322:/w/workspace/gexfoundry_device-rest-go_PR-322:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-322@tmp:/w/workspace/gexfoundry_device-rest-go_PR-322@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 ******** nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 cat 20:58:41 $ docker top 9ae5b94f2bde9fb0cee4ed0550f271551cceb6424fa839d25e3c36f321eb63ef -eo pid,comm 20:58:41 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). 20:58:41 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 20:58:41 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 20:58:41 [ssh-agent] Looking for ssh-agent implementation... 20:58:42 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 20:58:42 $ docker exec 9ae5b94f2bde9fb0cee4ed0550f271551cceb6424fa839d25e3c36f321eb63ef ssh-agent 20:58:42 SSH_AUTH_SOCK=/tmp/ssh-ipAHTnLFXAIk/agent.32 20:58:42 SSH_AGENT_PID=38 20:58:42 Running ssh-add (command line suppressed) 20:58:42 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-322@tmp/private_key_10535810442686291607.key (/w/workspace/gexfoundry_device-rest-go_PR-322@tmp/private_key_10535810442686291607.key) 20:58:42 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 20:58:42 + git tag --points-at HEAD [Pipeline] } 20:58:42 $ docker exec --env ******** --env ******** 9ae5b94f2bde9fb0cee4ed0550f271551cceb6424fa839d25e3c36f321eb63ef ssh-agent -k 20:58:42 unset SSH_AUTH_SOCK; 20:58:42 unset SSH_AGENT_PID; 20:58:42 echo Agent pid 38 killed; 20:58:42 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 20:58:42 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 20:58:42 [ssh-agent] Looking for ssh-agent implementation... 20:58:43 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 20:58:43 $ docker exec 9ae5b94f2bde9fb0cee4ed0550f271551cceb6424fa839d25e3c36f321eb63ef ssh-agent 20:58:43 SSH_AUTH_SOCK=/tmp/ssh-J3m2UvoNNduR/agent.71 20:58:43 SSH_AGENT_PID=77 20:58:43 Running ssh-add (command line suppressed) 20:58:43 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-322@tmp/private_key_15086133537289483737.key (/w/workspace/gexfoundry_device-rest-go_PR-322@tmp/private_key_15086133537289483737.key) 20:58:43 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 20:58:43 + git semver init 20:58:43 2023-05-19 20:58:43,846 [run_init] DEBUG init version:0.0.0 force:False 20:58:43 2023-05-19 20:58:43,847 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/gexfoundry_device-rest-go_PR-322/.semver 20:58:43 2023-05-19 20:58:43,848 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-rest-go.git /w/workspace/gexfoundry_device-rest-go_PR-322/.semver 20:58:43 2023-05-19 20:58:43,848 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-rest-go.git', '/w/workspace/gexfoundry_device-rest-go_PR-322/.semver'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-322, universal_newlines=False, shell=None, istream=None) 20:58:44 2023-05-19 20:58:44,758 [append_file] DEBUG append to file:/w/workspace/gexfoundry_device-rest-go_PR-322/.git/info/exclude 20:58:44 2023-05-19 20:58:44,759 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/gexfoundry_device-rest-go_PR-322/.semver/PR-322 with force:False 20:58:44 2023-05-19 20:58:44,759 [write_file] DEBUG write to file:/w/workspace/gexfoundry_device-rest-go_PR-322/.semver/PR-322 20:58:44 2023-05-19 20:58:44,763 [execute] INFO git cat-file --batch-check 20:58:44 2023-05-19 20:58:44,763 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-322/.semver, universal_newlines=False, shell=None, istream=) 20:58:44 2023-05-19 20:58:44,769 [execute] INFO git cat-file --batch 20:58:44 2023-05-19 20:58:44,769 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-322/.semver, universal_newlines=False, shell=None, istream=) 20:58:44 2023-05-19 20:58:44,774 [read_version] DEBUG read version from /w/workspace/gexfoundry_device-rest-go_PR-322/.semver/PR-322 20:58:44 0.0.0 [Pipeline] } 20:58:44 $ docker exec --env ******** --env ******** 9ae5b94f2bde9fb0cee4ed0550f271551cceb6424fa839d25e3c36f321eb63ef ssh-agent -k 20:58:44 unset SSH_AUTH_SOCK; 20:58:44 unset SSH_AGENT_PID; 20:58:44 echo Agent pid 77 killed; 20:58:44 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 20:58:45 + git semver [Pipeline] } 20:58:45 $ docker stop --time=1 9ae5b94f2bde9fb0cee4ed0550f271551cceb6424fa839d25e3c36f321eb63ef 20:58:46 $ docker rm -f --volumes 9ae5b94f2bde9fb0cee4ed0550f271551cceb6424fa839d25e3c36f321eb63ef [Pipeline] // withDockerContainer [Pipeline] sh 20:58:47 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 20:58:47 Stashed 1 file(s) [Pipeline] echo 20:58:47 [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 20:58:48 provisioning config files... 20:58:48 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-322@tmp/config2029415805681593333tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:58:48 ---> docker-login.sh 20:58:48 nexus3.edgexfoundry.org:10001 20:58:48 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:58:48 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:58:48 Configure a credential helper to remove this warning. See 20:58:48 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:58:48 20:58:48 Login Succeeded 20:58:48 nexus3.edgexfoundry.org:10002 20:58:48 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:58:48 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:58:48 Configure a credential helper to remove this warning. See 20:58:48 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:58:48 20:58:48 Login Succeeded 20:58:48 nexus3.edgexfoundry.org:10003 20:58:48 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:58:48 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:58:48 Configure a credential helper to remove this warning. See 20:58:48 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:58:48 20:58:48 Login Succeeded 20:58:48 nexus3.edgexfoundry.org:10004 20:58:48 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:58:48 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:58:48 Configure a credential helper to remove this warning. See 20:58:48 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:58:48 20:58:48 Login Succeeded 20:58:48 docker.io 20:58:48 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:58:49 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:58:49 Configure a credential helper to remove this warning. See 20:58:49 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:58:49 20:58:49 Login Succeeded 20:58:49 ---> docker-login.sh ends [Pipeline] } 20:58:49 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 20:58:49 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 20:58:49 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 20:58:49 ========================================================= 20:58:49 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine] 20:58:49 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:58:49 + 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 . 20:58:49 Sending build context to Docker daemon 10.93MB 20:58:49 Step 1/12 : ARG BASE=golang:1.20-alpine3.17 20:58:49 Step 2/12 : FROM ${BASE} AS builder 20:58:49 1.20-alpine: Pulling from edgex-devops/edgex-golang-base 20:58:49 f56be85fc22e: Pulling fs layer 20:58:49 85791d961cd3: Pulling fs layer 20:58:49 d694b5ae8c79: Pulling fs layer 20:58:49 9f32a84ed3da: Pulling fs layer 20:58:49 4d19c01a9841: Pulling fs layer 20:58:49 9325e15d5711: Pulling fs layer 20:58:49 556b6ee489ea: Pulling fs layer 20:58:49 c5a4b2cf53e6: Pulling fs layer 20:58:49 556b6ee489ea: Waiting 20:58:49 9f32a84ed3da: Waiting 20:58:49 9325e15d5711: Waiting 20:58:49 c5a4b2cf53e6: Waiting 20:58:49 4d19c01a9841: Waiting 20:58:49 85791d961cd3: Download complete 20:58:49 9f32a84ed3da: Verifying Checksum 20:58:49 9f32a84ed3da: Download complete 20:58:49 4d19c01a9841: Verifying Checksum 20:58:49 4d19c01a9841: Download complete 20:58:50 f56be85fc22e: Verifying Checksum 20:58:50 f56be85fc22e: Download complete 20:58:50 9325e15d5711: Verifying Checksum 20:58:50 9325e15d5711: Download complete 20:58:50 f56be85fc22e: Pull complete 20:58:50 85791d961cd3: Pull complete 20:58:50 d694b5ae8c79: Verifying Checksum 20:58:50 d694b5ae8c79: Download complete 20:58:50 c5a4b2cf53e6: Verifying Checksum 20:58:50 c5a4b2cf53e6: Download complete 20:58:50 556b6ee489ea: Verifying Checksum 20:58:50 556b6ee489ea: Download complete 20:58:54 d694b5ae8c79: Pull complete 20:58:54 9f32a84ed3da: Pull complete 20:58:54 4d19c01a9841: Pull complete 20:58:54 9325e15d5711: Pull complete 20:58:56 556b6ee489ea: Pull complete 20:58:57 c5a4b2cf53e6: Pull complete 20:58:57 Digest: sha256:cdb650785bd12602035d3ff87499385c169773a4d12d6eaf394b34464d3a0f2b 20:58:57 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine 20:58:57 ---> c4be618373d6 20:58:57 Step 3/12 : ARG ADD_BUILD_TAGS="" 20:58:59 ---> Running in 8e7a4ec209a9 20:58:59 Removing intermediate container 8e7a4ec209a9 20:58:59 ---> 1b64cd3d841d 20:58:59 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 20:58:59 ---> Running in 5bfd1bb026ea 20:58:59 Removing intermediate container 5bfd1bb026ea 20:58:59 ---> a0ea7a377bf3 20:58:59 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 20:58:59 ---> Running in 190233001f6e 20:58:59 Removing intermediate container 190233001f6e 20:58:59 ---> 57071b552b4d 20:58:59 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 20:58:59 ---> Running in e5c8fab0eb93 20:58:59 Removing intermediate container e5c8fab0eb93 20:58:59 ---> 7d701c1ca231 20:58:59 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 20:58:59 ---> Running in 6645e58875e7 20:58:59 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 20:58:59 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 20:59:00 (1/4) Installing openssh-keygen (9.1_p1-r3) 20:59:00 (2/4) Installing libedit (20221030.3.1-r0) 20:59:00 (3/4) Installing openssh-client-common (9.1_p1-r3) 20:59:00 (4/4) Installing openssh-client-default (9.1_p1-r3) 20:59:00 Executing busybox-1.35.0-r29.trigger 20:59:00 OK: 269 MiB in 57 packages 20:59:00 Removing intermediate container 6645e58875e7 20:59:00 ---> 6f16a39217b8 20:59:00 Step 8/12 : WORKDIR /device-rest-go 20:59:00 ---> Running in 540b6f34bce0 20:59:00 Removing intermediate container 540b6f34bce0 20:59:00 ---> fd1e212b451d 20:59:00 Step 9/12 : COPY go.mod vendor* ./ 20:59:00 ---> 4114b7a7cd51 20:59:00 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 20:59:00 ---> Running in 7f2259797b99 20:59:03 Still waiting to schedule task 20:59:03 All nodes of label ‘ubuntu20.04-docker-arm64-4c-16g’ are offline 20:59:27 Removing intermediate container 7f2259797b99 20:59:27 ---> c1d2b13ad68b 20:59:27 Step 11/12 : COPY . . 20:59:27 ---> bc2ac7ec7446 20:59:27 Step 12/12 : RUN $MAKE 20:59:27 ---> Running in 86f132613041 20:59:27 noop 20:59:27 Removing intermediate container 86f132613041 20:59:27 ---> 98ac6f2018a2 20:59:27 Successfully built 98ac6f2018a2 20:59:27 Successfully tagged ci-base-image-x86_64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:59:27 + docker inspect -f . ci-base-image-x86_64 20:59:27 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 20:59:27 prd-ubuntu20.04-docker-8c-8g-16134 does not seem to be running inside a container 20:59:27 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-322 -v /w/workspace/gexfoundry_device-rest-go_PR-322:/w/workspace/gexfoundry_device-rest-go_PR-322:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-322@tmp:/w/workspace/gexfoundry_device-rest-go_PR-322@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 ******** ci-base-image-x86_64 cat 20:59:28 $ docker top a6c33a8cd88c0557fb3f006e79a28a614c6029f1cc411bf0cfb5ed19fc2d8268 -eo pid,comm [Pipeline] { [Pipeline] sh 20:59:28 + go version 20:59:28 go version go1.20.2 linux/amd64 [Pipeline] } 20:59:28 $ docker stop --time=1 a6c33a8cd88c0557fb3f006e79a28a614c6029f1cc411bf0cfb5ed19fc2d8268 20:59:29 $ docker rm -f --volumes a6c33a8cd88c0557fb3f006e79a28a614c6029f1cc411bf0cfb5ed19fc2d8268 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:59:30 + docker inspect -f . ci-base-image-x86_64 20:59:30 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 20:59:30 prd-ubuntu20.04-docker-8c-8g-16134 does not seem to be running inside a container 20:59:30 $ 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-322 -v /w/workspace/gexfoundry_device-rest-go_PR-322:/w/workspace/gexfoundry_device-rest-go_PR-322:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-322@tmp:/w/workspace/gexfoundry_device-rest-go_PR-322@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 ******** ci-base-image-x86_64 cat 20:59:31 $ docker top 40a9a6da84c97880d9f6bb62d6ce358217481ce6e475a1ddc65eabc76a340af9 -eo pid,comm [Pipeline] { [Pipeline] sh 20:59:31 + git config --global --add safe.directory /w/workspace/gexfoundry_device-rest-go_PR-322 [Pipeline] fileExists [Pipeline] sh 20:59:31 + make test 20:59:31 go test ./... -coverprofile=coverage.out ./... 20:59:37 ? github.com/edgexfoundry/device-rest-go [no test files] 20:59:47 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 20:59:47 ok github.com/edgexfoundry/device-rest-go/driver 0.009s coverage: 32.2% of statements 20:59:53 go vet ./... 20:59:57 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 20:59:57 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 20:59:57 ./bin/test-attribution-txt.sh [Pipeline] echo 20:59:58 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 20:59:58 $ docker stop --time=1 40a9a6da84c97880d9f6bb62d6ce358217481ce6e475a1ddc65eabc76a340af9 21:00:00 $ docker rm -f --volumes 40a9a6da84c97880d9f6bb62d6ce358217481ce6e475a1ddc65eabc76a340af9 [Pipeline] // withDockerContainer [Pipeline] sh 21:00:00 + sudo chown -R jenkins:jenkins . [Pipeline] stash 21:00:01 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 21:00:01 + sudo chown -R jenkins:jenkins . [Pipeline] sh 21:00:02 + ls -al . 21:00:02 total 184 21:00:02 drwxrwxr-x 9 jenkins jenkins 4096 May 19 20:59 . 21:00:02 drwxrwxr-x 4 jenkins jenkins 4096 May 19 20:58 .. 21:00:02 -rw-rw-r-- 1 jenkins jenkins 151 May 19 20:58 .dockerignore 21:00:02 drwxrwxr-x 8 jenkins jenkins 4096 May 19 20:58 .git 21:00:02 drwxrwxr-x 3 jenkins jenkins 4096 May 19 20:58 .github 21:00:02 -rw-rw-r-- 1 jenkins jenkins 329 May 19 20:58 .gitignore 21:00:02 -rw-rw-r-- 1 jenkins jenkins 41 May 19 20:58 .golangci.yml 21:00:02 drwxr-xr-x 3 jenkins jenkins 4096 May 19 20:58 .semver 21:00:02 -rw-rw-r-- 1 jenkins jenkins 9331 May 19 20:58 Attribution.txt 21:00:02 -rw-rw-r-- 1 jenkins jenkins 13085 May 19 20:58 CHANGELOG.md 21:00:02 -rw-rw-r-- 1 jenkins jenkins 1578 May 19 20:58 Dockerfile 21:00:02 -rw-rw-r-- 1 jenkins jenkins 677 May 19 20:58 GOVERNANCE.md 21:00:02 -rw-rw-r-- 1 jenkins jenkins 680 May 19 20:58 Jenkinsfile 21:00:02 -rw-rw-r-- 1 jenkins jenkins 11340 May 19 20:58 LICENSE 21:00:02 -rw-rw-r-- 1 jenkins jenkins 1779 May 19 20:58 Makefile 21:00:02 -rw-rw-r-- 1 jenkins jenkins 620 May 19 20:58 OWNERS.md 21:00:02 -rw-rw-r-- 1 jenkins jenkins 15827 May 19 20:58 README.md 21:00:02 -rw-rw-r-- 1 jenkins jenkins 5 May 19 20:58 VERSION 21:00:02 drwxrwxr-x 2 jenkins jenkins 4096 May 19 20:58 bin 21:00:02 drwxrwxr-x 3 jenkins jenkins 4096 May 19 20:58 cmd 21:00:02 -rw-r--r-- 1 jenkins jenkins 14663 May 19 20:59 coverage.out 21:00:02 drwxrwxr-x 2 jenkins jenkins 4096 May 19 20:58 driver 21:00:02 -rw-rw-r-- 1 jenkins jenkins 3402 May 19 20:58 go.mod 21:00:02 -rw-rw-r-- 1 jenkins jenkins 31418 May 19 20:58 go.sum 21:00:02 drwxrwxr-x 4 jenkins jenkins 4096 May 19 20:58 snap 21:00:02 -rw-rw-r-- 1 jenkins jenkins 713 May 19 20:58 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 21:00:02 + 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=b7a532f10f65a37a16fe5b5df099a14b732e137e --label arch=amd64 --label version=0.0.0 . 21:00:02 Sending build context to Docker daemon 10.95MB 21:00:02 Step 1/25 : ARG BASE=golang:1.20-alpine3.17 21:00:02 Step 2/25 : FROM ${BASE} AS builder 21:00:02 ---> 98ac6f2018a2 21:00:02 Step 3/25 : ARG ADD_BUILD_TAGS="" 21:00:02 ---> Running in bae598734605 21:00:02 Removing intermediate container bae598734605 21:00:02 ---> 53e358baf464 21:00:02 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 21:00:02 ---> Running in 9dd85d3861a5 21:00:02 Removing intermediate container 9dd85d3861a5 21:00:02 ---> 02353f8b8edb 21:00:02 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 21:00:02 ---> Running in c51558f01f2f 21:00:02 Removing intermediate container c51558f01f2f 21:00:02 ---> 43d336db29e4 21:00:02 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 21:00:03 ---> Running in 0467cc4f5928 21:00:03 Removing intermediate container 0467cc4f5928 21:00:03 ---> 5d095473a477 21:00:03 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 21:00:03 ---> Running in c757a25695f0 21:00:03 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 21:00:03 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 21:00:03 OK: 269 MiB in 57 packages 21:00:04 Removing intermediate container c757a25695f0 21:00:04 ---> f45de051b259 21:00:04 Step 8/25 : WORKDIR /device-rest-go 21:00:04 ---> Running in 231d9090016c 21:00:04 Removing intermediate container 231d9090016c 21:00:04 ---> 25a181f04af3 21:00:04 Step 9/25 : COPY go.mod vendor* ./ 21:00:04 ---> 1ac9a6a004bb 21:00:04 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 21:00:04 ---> Running in 960453dd1cb9 21:00:05 Removing intermediate container 960453dd1cb9 21:00:05 ---> a93a90949c21 21:00:05 Step 11/25 : COPY . . 21:00:05 ---> 86caa853c4a7 21:00:05 Step 12/25 : RUN $MAKE 21:00:05 ---> Running in 626075bcb5f6 21:00:05 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 21:00:23 Removing intermediate container 626075bcb5f6 21:00:23 ---> 579ddfed3ebb 21:00:23 Step 13/25 : FROM alpine:3.17 21:00:23 3.17: Pulling from library/alpine 21:00:23 f56be85fc22e: Already exists 21:00:24 Digest: sha256:124c7d2707904eea7431fffe91522a01e5a861a624ee31d03372cc1d138a3126 21:00:24 Status: Downloaded newer image for alpine:3.17 21:00:24 ---> 9ed4aefc74f6 21:00:24 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 21:00:24 ---> Running in 49e6f281b979 21:00:24 Removing intermediate container 49e6f281b979 21:00:24 ---> 88b41cd5f7b6 21:00:24 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 21:00:24 ---> Running in 5f54f8d707c5 21:00:24 Removing intermediate container 5f54f8d707c5 21:00:24 ---> b33cf6921ebe 21:00:24 Step 16/25 : RUN apk add --update --no-cache dumb-init 21:00:24 ---> Running in 3307aea63fb4 21:00:24 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 21:00:24 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 21:00:25 (1/1) Installing dumb-init (1.2.5-r2) 21:00:25 Executing busybox-1.35.0-r29.trigger 21:00:25 OK: 7 MiB in 16 packages 21:00:25 Removing intermediate container 3307aea63fb4 21:00:25 ---> 34b7fd14a8c9 21:00:25 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 21:00:26 ---> 8716d569ed8d 21:00:26 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 21:00:26 ---> eb3bad22b9b0 21:00:26 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 21:00:26 ---> 19e42676e00e 21:00:26 Step 20/25 : EXPOSE 59986 21:00:26 ---> Running in 6d3b8328b100 21:00:26 Removing intermediate container 6d3b8328b100 21:00:26 ---> c4c6ff470164 21:00:26 Step 21/25 : ENTRYPOINT ["/device-rest"] 21:00:26 ---> Running in ae3489833516 21:00:26 Removing intermediate container ae3489833516 21:00:26 ---> e04db8a2725c 21:00:26 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 21:00:26 ---> Running in 4e097e73c001 21:00:26 Removing intermediate container 4e097e73c001 21:00:26 ---> 4161d5419713 21:00:26 Step 23/25 : LABEL arch=amd64 21:00:26 ---> Running in 5020ee4f742c 21:00:26 Removing intermediate container 5020ee4f742c 21:00:26 ---> db0441494935 21:00:26 Step 24/25 : LABEL git_sha=b7a532f10f65a37a16fe5b5df099a14b732e137e 21:00:26 ---> Running in 5c964ed20667 21:00:26 Removing intermediate container 5c964ed20667 21:00:26 ---> 1baddc447833 21:00:26 Step 25/25 : LABEL version=0.0.0 21:00:26 ---> Running in 98e45ad621ee 21:00:27 Removing intermediate container 98e45ad621ee 21:00:27 ---> a53be93c9306 21:00:27 [Warning] One or more build-args [ARCH] were not consumed 21:00:27 Successfully built a53be93c9306 21:00:27 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 21:00:27 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 21:00:27 21:00:27 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 21:00:28 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 21:00:28 latest: Pulling from edgex-lftools-log-publisher 21:00:28 5eb5b503b376: Pulling fs layer 21:00:28 5c69ac0246d0: Pulling fs layer 21:00:28 ec43610c2a17: Pulling fs layer 21:00:28 3a2ae6a8a46f: Pulling fs layer 21:00:28 33b1e0a273af: Pulling fs layer 21:00:28 3a2ae6a8a46f: Waiting 21:00:28 5d3b04190fa2: Pulling fs layer 21:00:28 2f39f015ded8: Pulling fs layer 21:00:28 5d3b04190fa2: Waiting 21:00:28 2f39f015ded8: Waiting 21:00:28 33b1e0a273af: Waiting 21:00:28 5c69ac0246d0: Verifying Checksum 21:00:28 5c69ac0246d0: Download complete 21:00:28 3a2ae6a8a46f: Verifying Checksum 21:00:28 3a2ae6a8a46f: Download complete 21:00:28 33b1e0a273af: Verifying Checksum 21:00:28 33b1e0a273af: Download complete 21:00:28 5d3b04190fa2: Verifying Checksum 21:00:28 5d3b04190fa2: Download complete 21:00:28 ec43610c2a17: Verifying Checksum 21:00:28 ec43610c2a17: Download complete 21:00:28 5eb5b503b376: Verifying Checksum 21:00:28 5eb5b503b376: Download complete 21:00:29 2f39f015ded8: Verifying Checksum 21:00:29 2f39f015ded8: Download complete 21:00:29 5eb5b503b376: Pull complete 21:00:29 5c69ac0246d0: Pull complete 21:00:29 ec43610c2a17: Pull complete 21:00:30 3a2ae6a8a46f: Pull complete 21:00:30 33b1e0a273af: Pull complete 21:00:30 5d3b04190fa2: Pull complete 21:00:34 2f39f015ded8: Pull complete 21:00:34 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 21:00:34 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 21:00:34 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 21:00:34 prd-ubuntu20.04-docker-8c-8g-16134 does not seem to be running inside a container 21:00:34 $ 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-322 -v /w/workspace/gexfoundry_device-rest-go_PR-322:/w/workspace/gexfoundry_device-rest-go_PR-322:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-322@tmp:/w/workspace/gexfoundry_device-rest-go_PR-322@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-lftools-log-publisher:latest cat 21:00:37 $ docker top e05fbb6747470dfd66bed9f8383581ee8ba758756c8c4e32931aa5e2a78d9389 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 21:00:37 ---> job-cost.sh 21:00:37 lf-activate-venv: SKIPPING 21:00:37 INFO: No Stack... 21:00:37 INFO: Retrieving Pricing Info for: v3-standard-8 21:00:38 INFO: Archiving Costs [Pipeline] sh 21:00:38 Running on prd-ubuntu20.04-docker-arm64-4c-16g-16135 in /w/workspace/gexfoundry_device-rest-go_PR-322 [Pipeline] { [Pipeline] ws 21:00:38 Running in /w/workspace/device-rest-go/1 [Pipeline] { [Pipeline] checkout 21:00:38 + cat /w/workspace/gexfoundry_device-rest-go_PR-322/archives/cost.csv 21:00:38 + cut -d, -f6 21:00:38 The recommended git tool is: git [Pipeline] lock 21:00:38 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-322-1-stack-cost] 21:00:38 Resource [jenkins-edgexfoundry-device-rest-go-PR-322-1-stack-cost] did not exist. Created. 21:00:38 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-322-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 21:00:38 + echo total: 0.2199999988079071 [Pipeline] stash 21:00:39 Stashed 1 file(s) [Pipeline] } 21:00:39 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-322-1-stack-cost] [Pipeline] // lock [Pipeline] } 21:00:39 $ docker stop --time=1 e05fbb6747470dfd66bed9f8383581ee8ba758756c8c4e32931aa5e2a78d9389 21:00:40 $ docker rm -f --volumes e05fbb6747470dfd66bed9f8383581ee8ba758756c8c4e32931aa5e2a78d9389 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 21:00:44 using credential edgex-jenkins-ssh 21:00:44 Cloning the remote Git repository 21:00:44 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 21:00:45 > git init /w/workspace/device-rest-go/1 # timeout=10 21:00:45 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 21:00:45 > git --version # timeout=10 21:00:45 > git --version # 'git version 2.25.1' 21:00:45 using GIT_SSH to set credentials SSH Credentials for GitHub 21:00:45 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 21:00:47 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 21:00:47 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 21:00:48 Merging remotes/origin/main commit b9b57828cb91c1ed80a64c0f12d73d3d38017d14 into PR head commit b7a532f10f65a37a16fe5b5df099a14b732e137e 21:00:48 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 21:00:48 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 21:00:48 using GIT_SSH to set credentials SSH Credentials for GitHub 21:00:48 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/322/head:refs/remotes/origin/PR-322 +refs/heads/main:refs/remotes/origin/main # timeout=10 21:00:48 > git config core.sparsecheckout # timeout=10 21:00:49 Merge succeeded, producing b7a532f10f65a37a16fe5b5df099a14b732e137e 21:00:49 Checking out Revision b7a532f10f65a37a16fe5b5df099a14b732e137e (PR-322) 21:00:49 Commit message: "build(deps): Bump github.com/stretchr/testify from 1.8.2 to 1.8.3" 21:00:49 > git --version # timeout=10 21:00:49 > git --version # 'git version 2.25.1' 21:00:49 fatal: bad object 4fc256d9079ed2258907e613f84b1b8da264a4bd [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) 21:00:48 > git checkout -f b7a532f10f65a37a16fe5b5df099a14b732e137e # timeout=10 21:00:48 > git remote # timeout=10 21:00:48 > git config --get remote.origin.url # timeout=10 21:00:48 using GIT_SSH to set credentials SSH Credentials for GitHub 21:00:49 > git merge b9b57828cb91c1ed80a64c0f12d73d3d38017d14 # timeout=10 21:00:49 > git rev-parse HEAD^{commit} # timeout=10 21:00:49 > git config core.sparsecheckout # timeout=10 21:00:49 > git checkout -f b7a532f10f65a37a16fe5b5df099a14b732e137e # timeout=10 [Pipeline] script [Pipeline] { [Pipeline] sh 21:00:50 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 21:00:50 % Total % Received % Xferd Average Speed Time Time Time Current 21:00:50 Dload Upload Total Spent Left Speed 21:00:50 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 12751 100 12751 0 0 90432 0 --:--:-- --:--:-- --:--:-- 91078 [Pipeline] sh 21:00:51 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 21:00:51 + sudo tee /etc/docker/daemon.new 21:00:51 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 21:00:51 { 21:00:51 "registry-mirrors": [ 21:00:51 "https://nexus3.edgexfoundry.org:10001" 21:00:51 ], 21:00:51 "bip": "10.250.0.254/24", 21:00:51 "hosts": [ 21:00:51 "tcp://0.0.0.0:5555", 21:00:51 "unix:///var/run/docker.sock" 21:00:51 ], 21:00:51 "mtu": 1458, 21:00:51 "selinux-enabled": true, 21:00:51 "seccomp-profile": "/etc/docker/seccomp.json" 21:00:51 } [Pipeline] sh 21:00:52 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 21:00:52 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 21:01:10 provisioning config files... 21:01:10 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/1@tmp/config3907287463098120828tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 21:01:11 ---> docker-login.sh 21:01:11 nexus3.edgexfoundry.org:10001 21:01:11 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 21:01:11 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 21:01:11 Configure a credential helper to remove this warning. See 21:01:11 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 21:01:11 21:01:11 Login Succeeded 21:01:11 nexus3.edgexfoundry.org:10002 21:01:12 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 21:01:12 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 21:01:12 Configure a credential helper to remove this warning. See 21:01:12 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 21:01:12 21:01:12 Login Succeeded 21:01:12 nexus3.edgexfoundry.org:10003 21:01:12 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 21:01:12 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 21:01:12 Configure a credential helper to remove this warning. See 21:01:12 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 21:01:12 21:01:12 Login Succeeded 21:01:12 nexus3.edgexfoundry.org:10004 21:01:13 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 21:01:13 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 21:01:13 Configure a credential helper to remove this warning. See 21:01:13 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 21:01:13 21:01:13 Login Succeeded 21:01:13 docker.io 21:01:13 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 21:01:13 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 21:01:13 Configure a credential helper to remove this warning. See 21:01:13 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 21:01:13 21:01:13 Login Succeeded 21:01:13 ---> docker-login.sh ends [Pipeline] } 21:01:13 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 21:01:13 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 21:01:13 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 21:01:14 ========================================================= 21:01:14 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine] 21:01:14 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 21:01:14 + 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 . 21:01:14 Sending build context to Docker daemon 139.3kB 21:01:14 Step 1/12 : ARG BASE=golang:1.20-alpine3.17 21:01:14 Step 2/12 : FROM ${BASE} AS builder 21:01:14 1.20-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 21:01:14 c41833b44d91: Pulling fs layer 21:01:14 ed15518f5707: Pulling fs layer 21:01:14 feae8fd75edb: Pulling fs layer 21:01:14 242c74f7c9fa: Pulling fs layer 21:01:14 3cdef696dda3: Pulling fs layer 21:01:14 2ced38df9373: Pulling fs layer 21:01:14 58f1dce35555: Pulling fs layer 21:01:14 242c74f7c9fa: Waiting 21:01:14 3cdef696dda3: Waiting 21:01:14 2ced38df9373: Waiting 21:01:15 ed15518f5707: Verifying Checksum 21:01:15 ed15518f5707: Download complete 21:01:15 242c74f7c9fa: Verifying Checksum 21:01:15 242c74f7c9fa: Download complete 21:01:15 3cdef696dda3: Verifying Checksum 21:01:15 3cdef696dda3: Download complete 21:01:15 c41833b44d91: Verifying Checksum 21:01:15 c41833b44d91: Download complete 21:01:16 c41833b44d91: Pull complete 21:01:16 58f1dce35555: Verifying Checksum 21:01:16 58f1dce35555: Download complete 21:01:16 ed15518f5707: Pull complete 21:01:17 feae8fd75edb: Download complete 21:01:17 2ced38df9373: Verifying Checksum 21:01:17 2ced38df9373: Download complete 21:01:30 feae8fd75edb: Pull complete 21:01:30 242c74f7c9fa: Pull complete 21:01:30 3cdef696dda3: Pull complete 21:01:40 2ced38df9373: Pull complete 21:01:41 58f1dce35555: Pull complete 21:01:41 Digest: sha256:3b55595e96c696ae732e8cb20cde5b1ff7282a1fe1423a8de67617af8d15ea1e 21:01:41 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine 21:01:41 ---> fadd8f120f05 21:01:41 Step 3/12 : ARG ADD_BUILD_TAGS="" 21:01:43 ---> Running in 125dcc540111 21:01:43 Removing intermediate container 125dcc540111 21:01:43 ---> 21447413fe2c 21:01:43 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 21:01:43 ---> Running in 0cf12fd44b43 21:01:43 Removing intermediate container 0cf12fd44b43 21:01:43 ---> 017ec699101e 21:01:43 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 21:01:43 ---> Running in a32a829d0292 21:01:44 Removing intermediate container a32a829d0292 21:01:44 ---> 8c3189dfbd18 21:01:44 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 21:01:44 ---> Running in d3036c993a5c 21:01:44 Removing intermediate container d3036c993a5c 21:01:44 ---> 81e83b7c3cae 21:01:44 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 21:01:44 ---> Running in 237c864bdc2d 21:01:45 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 21:01:46 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 21:01:47 (1/4) Installing openssh-keygen (9.1_p1-r3) 21:01:47 (2/4) Installing libedit (20221030.3.1-r0) 21:01:47 (3/4) Installing openssh-client-common (9.1_p1-r3) 21:01:47 (4/4) Installing openssh-client-default (9.1_p1-r3) 21:01:47 Executing busybox-1.35.0-r29.trigger 21:01:47 OK: 268 MiB in 57 packages 21:01:48 Removing intermediate container 237c864bdc2d 21:01:48 ---> 8a7bd9ce0c0e 21:01:48 Step 8/12 : WORKDIR /device-rest-go 21:01:48 ---> Running in d633e04a8f43 21:01:48 Removing intermediate container d633e04a8f43 21:01:48 ---> 03fdc1fc7292 21:01:48 Step 9/12 : COPY go.mod vendor* ./ 21:01:49 ---> f8e638daeab1 21:01:49 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 21:01:49 ---> Running in 62c657737115 21:02:57 Removing intermediate container 62c657737115 21:02:57 ---> 37055d57d469 21:02:57 Step 11/12 : COPY . . 21:02:57 ---> 83d6ea762ba3 21:02:57 Step 12/12 : RUN $MAKE 21:02:57 ---> Running in ba60cc08499c 21:02:57 noop 21:02:57 Removing intermediate container ba60cc08499c 21:02:57 ---> bd6fc7d9e6f2 21:02:57 Successfully built bd6fc7d9e6f2 21:02:57 Successfully tagged ci-base-image-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 21:02:57 + docker inspect -f . ci-base-image-arm64 21:02:57 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 21:02:57 prd-ubuntu20.04-docker-arm64-4c-16g-16135 does not seem to be running inside a container 21:02:57 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/1 -v /w/workspace/device-rest-go/1:/w/workspace/device-rest-go/1:rw,z -v /w/workspace/device-rest-go/1@tmp:/w/workspace/device-rest-go/1@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 ******** ci-base-image-arm64 cat 21:02:59 $ docker top 5b80e54f30d55bf1d4c7dd7e2f4164f7a7a230a13a4382cfd4c7317338736d87 -eo pid,comm [Pipeline] { [Pipeline] sh 21:02:59 + go version 21:02:59 go version go1.20.2 linux/arm64 [Pipeline] } 21:03:00 $ docker stop --time=1 5b80e54f30d55bf1d4c7dd7e2f4164f7a7a230a13a4382cfd4c7317338736d87 21:03:02 $ docker rm -f --volumes 5b80e54f30d55bf1d4c7dd7e2f4164f7a7a230a13a4382cfd4c7317338736d87 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 21:03:03 + docker inspect -f . ci-base-image-arm64 21:03:03 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 21:03:03 prd-ubuntu20.04-docker-arm64-4c-16g-16135 does not seem to be running inside a container 21:03:03 $ 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/1 -v /w/workspace/device-rest-go/1:/w/workspace/device-rest-go/1:rw,z -v /w/workspace/device-rest-go/1@tmp:/w/workspace/device-rest-go/1@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 ******** ci-base-image-arm64 cat 21:03:04 $ docker top b0afdd03eaa609cd24b0bee15cf645c93459cad2a3aee99bb4a296045ddf16eb -eo pid,comm [Pipeline] { [Pipeline] sh 21:03:05 + git config --global --add safe.directory /w/workspace/device-rest-go/1 [Pipeline] fileExists [Pipeline] sh 21:03:05 + make test 21:03:05 go test ./... -coverprofile=coverage.out ./... 21:03:37 ? github.com/edgexfoundry/device-rest-go [no test files] 21:05:44 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 21:05:44 ok github.com/edgexfoundry/device-rest-go/driver 0.061s coverage: 32.2% of statements 21:05:44 WARNING: Linting skipped (not on x86_64 or linter not installed) 21:05:44 go vet ./... 21:06:11 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 21:06:11 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 21:06:11 ./bin/test-attribution-txt.sh [Pipeline] echo 21:06:11 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 21:06:11 $ docker stop --time=1 b0afdd03eaa609cd24b0bee15cf645c93459cad2a3aee99bb4a296045ddf16eb 21:06:13 $ docker rm -f --volumes b0afdd03eaa609cd24b0bee15cf645c93459cad2a3aee99bb4a296045ddf16eb [Pipeline] // withDockerContainer [Pipeline] sh 21:06:14 + sudo chown -R jenkins:jenkins . [Pipeline] stash 21:06:14 Warning: overwriting stash ‘coverage-report’ 21:06:15 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 21:06:15 + sudo chown -R jenkins:jenkins . [Pipeline] sh 21:06:16 + ls -al . 21:06:16 total 180 21:06:16 drwxrwxr-x 8 jenkins jenkins 4096 May 19 21:03 . 21:06:16 drwxrwxr-x 4 jenkins jenkins 4096 May 19 21:00 .. 21:06:16 -rw-rw-r-- 1 jenkins jenkins 151 May 19 21:00 .dockerignore 21:06:16 drwxrwxr-x 8 jenkins jenkins 4096 May 19 21:00 .git 21:06:16 drwxrwxr-x 3 jenkins jenkins 4096 May 19 21:00 .github 21:06:16 -rw-rw-r-- 1 jenkins jenkins 329 May 19 21:00 .gitignore 21:06:16 -rw-rw-r-- 1 jenkins jenkins 41 May 19 21:00 .golangci.yml 21:06:16 -rw-rw-r-- 1 jenkins jenkins 9331 May 19 21:00 Attribution.txt 21:06:16 -rw-rw-r-- 1 jenkins jenkins 13085 May 19 21:00 CHANGELOG.md 21:06:16 -rw-rw-r-- 1 jenkins jenkins 1578 May 19 21:00 Dockerfile 21:06:16 -rw-rw-r-- 1 jenkins jenkins 677 May 19 21:00 GOVERNANCE.md 21:06:16 -rw-rw-r-- 1 jenkins jenkins 680 May 19 21:00 Jenkinsfile 21:06:16 -rw-rw-r-- 1 jenkins jenkins 11340 May 19 21:00 LICENSE 21:06:16 -rw-rw-r-- 1 jenkins jenkins 1779 May 19 21:00 Makefile 21:06:16 -rw-rw-r-- 1 jenkins jenkins 620 May 19 21:00 OWNERS.md 21:06:16 -rw-rw-r-- 1 jenkins jenkins 15827 May 19 21:00 README.md 21:06:16 -rw-rw-r-- 1 jenkins jenkins 5 May 19 20:58 VERSION 21:06:16 drwxrwxr-x 2 jenkins jenkins 4096 May 19 21:00 bin 21:06:16 drwxrwxr-x 3 jenkins jenkins 4096 May 19 21:00 cmd 21:06:16 -rw-r--r-- 1 jenkins jenkins 14663 May 19 21:05 coverage.out 21:06:16 drwxrwxr-x 2 jenkins jenkins 4096 May 19 21:00 driver 21:06:16 -rw-rw-r-- 1 jenkins jenkins 3402 May 19 21:00 go.mod 21:06:16 -rw-rw-r-- 1 jenkins jenkins 31418 May 19 21:00 go.sum 21:06:16 drwxrwxr-x 4 jenkins jenkins 4096 May 19 21:00 snap 21:06:16 -rw-rw-r-- 1 jenkins jenkins 713 May 19 21:00 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 21:06:16 + 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=b7a532f10f65a37a16fe5b5df099a14b732e137e --label arch=arm64 --label version=0.0.0 . 21:06:16 Sending build context to Docker daemon 154.6kB 21:06:16 Step 1/25 : ARG BASE=golang:1.20-alpine3.17 21:06:16 Step 2/25 : FROM ${BASE} AS builder 21:06:16 ---> bd6fc7d9e6f2 21:06:16 Step 3/25 : ARG ADD_BUILD_TAGS="" 21:06:16 ---> Running in 82438e7cf5ea 21:06:17 Removing intermediate container 82438e7cf5ea 21:06:17 ---> 51317ae58236 21:06:17 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 21:06:17 ---> Running in 8f30b0b19f71 21:06:17 Removing intermediate container 8f30b0b19f71 21:06:17 ---> 8e1904dda3ab 21:06:17 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 21:06:17 ---> Running in 7bd2f38b5bb7 21:06:17 Removing intermediate container 7bd2f38b5bb7 21:06:17 ---> 4da8dba1bf76 21:06:17 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 21:06:18 ---> Running in 4153426a7021 21:06:18 Removing intermediate container 4153426a7021 21:06:18 ---> 3f149f77313f 21:06:18 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 21:06:18 ---> Running in 84e7b4dc317f 21:06:19 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 21:06:20 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 21:06:21 OK: 268 MiB in 57 packages 21:06:22 Removing intermediate container 84e7b4dc317f 21:06:22 ---> d27a43ea229e 21:06:22 Step 8/25 : WORKDIR /device-rest-go 21:06:22 ---> Running in 9cff8079a970 21:06:22 Removing intermediate container 9cff8079a970 21:06:22 ---> f3771f8faf31 21:06:22 Step 9/25 : COPY go.mod vendor* ./ 21:06:26 ---> ae2ad18a4898 21:06:26 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 21:06:26 ---> Running in 5ed9bfc1d9d3 21:06:28 Removing intermediate container 5ed9bfc1d9d3 21:06:28 ---> d71a085dec03 21:06:28 Step 11/25 : COPY . . 21:06:29 ---> 8dcecdcc27a6 21:06:29 Step 12/25 : RUN $MAKE 21:06:29 ---> Running in 43214a3e1048 21:06:30 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 21:08:36 Removing intermediate container 43214a3e1048 21:08:36 ---> b5c3b90f5013 21:08:36 Step 13/25 : FROM alpine:3.17 21:08:36 3.17: Pulling from library/alpine 21:08:36 c41833b44d91: Already exists 21:08:36 Digest: sha256:124c7d2707904eea7431fffe91522a01e5a861a624ee31d03372cc1d138a3126 21:08:36 Status: Downloaded newer image for alpine:3.17 21:08:36 ---> 51e60588ff2c 21:08:36 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 21:08:36 ---> Running in cb30317c62d5 21:08:37 Removing intermediate container cb30317c62d5 21:08:37 ---> 9459db103ad7 21:08:37 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 21:08:37 ---> Running in 1a0e14e6e826 21:08:37 Removing intermediate container 1a0e14e6e826 21:08:37 ---> dd77d1ea2825 21:08:37 Step 16/25 : RUN apk add --update --no-cache dumb-init 21:08:37 ---> Running in 72066b2cc41b 21:08:38 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 21:08:39 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 21:08:40 (1/1) Installing dumb-init (1.2.5-r2) 21:08:40 Executing busybox-1.35.0-r29.trigger 21:08:40 OK: 8 MiB in 16 packages 21:08:41 Removing intermediate container 72066b2cc41b 21:08:41 ---> 656e83a6b114 21:08:41 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 21:08:42 ---> c6341f951ec6 21:08:42 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 21:08:43 ---> 1298e743a587 21:08:43 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 21:08:43 ---> 13ca66db768c 21:08:43 Step 20/25 : EXPOSE 59986 21:08:43 ---> Running in 70e5ba79a1b0 21:08:44 Removing intermediate container 70e5ba79a1b0 21:08:44 ---> dad834a6b1d7 21:08:44 Step 21/25 : ENTRYPOINT ["/device-rest"] 21:08:44 ---> Running in 8fe8053d57b7 21:08:44 Removing intermediate container 8fe8053d57b7 21:08:44 ---> a1a6091ead07 21:08:44 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 21:08:44 ---> Running in 74bffb892d71 21:08:44 Removing intermediate container 74bffb892d71 21:08:44 ---> fc1a2a7db2a0 21:08:44 Step 23/25 : LABEL arch=arm64 21:08:44 ---> Running in 4b5993bd707d 21:08:45 Removing intermediate container 4b5993bd707d 21:08:45 ---> 50df5de8638b 21:08:45 Step 24/25 : LABEL git_sha=b7a532f10f65a37a16fe5b5df099a14b732e137e 21:08:45 ---> Running in 49351b2077d1 21:08:45 Removing intermediate container 49351b2077d1 21:08:45 ---> 6b6d73934e48 21:08:45 Step 25/25 : LABEL version=0.0.0 21:08:45 ---> Running in ac4adea73d07 21:08:45 Removing intermediate container ac4adea73d07 21:08:45 ---> 751deb8cd3d8 21:08:45 [Warning] One or more build-args [ARCH] were not consumed 21:08:45 Successfully built 751deb8cd3d8 21:08:45 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 21:08:46 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 21:08:46 21:08:46 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 21:08:47 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 21:08:47 arm64: Pulling from edgex-lftools-log-publisher 21:08:47 8998bd30e6a1: Pulling fs layer 21:08:47 04944245beec: Pulling fs layer 21:08:47 699f458cf7ca: Pulling fs layer 21:08:47 765212b225bb: Pulling fs layer 21:08:47 f23df028b6ca: Pulling fs layer 21:08:47 d65c8cfc05b1: Pulling fs layer 21:08:47 2437ff75d9bd: Pulling fs layer 21:08:47 f23df028b6ca: Waiting 21:08:47 d65c8cfc05b1: Waiting 21:08:47 2437ff75d9bd: Waiting 21:08:47 765212b225bb: Waiting 21:08:47 04944245beec: Verifying Checksum 21:08:47 04944245beec: Download complete 21:08:47 765212b225bb: Verifying Checksum 21:08:47 765212b225bb: Download complete 21:08:47 f23df028b6ca: Verifying Checksum 21:08:47 f23df028b6ca: Download complete 21:08:47 d65c8cfc05b1: Verifying Checksum 21:08:47 d65c8cfc05b1: Download complete 21:08:47 699f458cf7ca: Verifying Checksum 21:08:47 699f458cf7ca: Download complete 21:08:48 8998bd30e6a1: Verifying Checksum 21:08:48 8998bd30e6a1: Download complete 21:08:50 2437ff75d9bd: Download complete 21:08:52 8998bd30e6a1: Pull complete 21:08:52 04944245beec: Pull complete 21:08:54 699f458cf7ca: Pull complete 21:08:56 765212b225bb: Pull complete 21:08:57 f23df028b6ca: Pull complete 21:08:57 d65c8cfc05b1: Pull complete 21:09:12 2437ff75d9bd: Pull complete 21:09:12 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 21:09:12 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 21:09:12 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 21:09:13 prd-ubuntu20.04-docker-arm64-4c-16g-16135 does not seem to be running inside a container 21:09:13 $ 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/1 -v /w/workspace/device-rest-go/1:/w/workspace/device-rest-go/1:rw,z -v /w/workspace/device-rest-go/1@tmp:/w/workspace/device-rest-go/1@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-lftools-log-publisher:arm64 cat 21:09:15 $ docker top 84d286f9e61f047fafecc7ca90bbf15f6fe929f1cdfcee788c6c81c18e8b9d89 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 21:09:16 ---> job-cost.sh 21:09:16 lf-activate-venv: SKIPPING 21:09:16 INFO: No Stack... 21:09:16 INFO: Retrieving Pricing Info for: v3-standard-4 21:09:17 INFO: Archiving Costs [Pipeline] sh 21:09:18 + cat /w/workspace/device-rest-go/1/archives/cost.csv 21:09:18 + cut -d, -f6 [Pipeline] lock 21:09:18 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-322-1-stack-cost] 21:09:18 Resource [jenkins-edgexfoundry-device-rest-go-PR-322-1-stack-cost] did not exist. Created. 21:09:18 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-322-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 21:09:19 /w/workspace/device-rest-go/1@tmp/durable-bc7f6386/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 21:09:19 + echo total: 0.10999999940395355 [Pipeline] stash 21:09:19 Warning: overwriting stash ‘stack-cost’ 21:09:19 Stashed 1 file(s) [Pipeline] } 21:09:19 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-322-1-stack-cost] [Pipeline] // lock [Pipeline] } 21:09:19 $ docker stop --time=1 84d286f9e61f047fafecc7ca90bbf15f6fe929f1cdfcee788c6c81c18e8b9d89 21:09:21 $ docker rm -f --volumes 84d286f9e61f047fafecc7ca90bbf15f6fe929f1cdfcee788c6c81c18e8b9d89 [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 21:09:22 provisioning config files... 21:09:22 copy managed file [device-rest-go-codecov-token] to file:/w/workspace/gexfoundry_device-rest-go_PR-322@tmp/config18271703502057599245tmp [Pipeline] { [Pipeline] sh 21:09:22 + set +x 21:09:22 + curl -s https://codecov.io/bash 21:09:22 + bash -s -- 21:09:22 21:09:22 _____ _ 21:09:22 / ____| | | 21:09:22 | | ___ __| | ___ ___ _____ __ 21:09:22 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 21:09:22 | |___| (_) | (_| | __/ (_| (_) \ V / 21:09:22 \_____\___/ \__,_|\___|\___\___/ \_/ 21:09:22 Bash-1.0.6 21:09:22 21:09:22 21:09:22 ==> git version 2.25.1 found 21:09:22 ==> 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 21:09:22 Release-Date: 2020-01-08 21:09:22 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 21:09:22 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 21:09:22 ==> Jenkins CI detected. 21:09:22 current dir:  /w/workspace/gexfoundry_device-rest-go_PR-322 21:09:22 project root: . 21:09:22 --> token set from env 21:09:22 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 21:09:22 ==> Running gcov in . (disable via -X gcov) 21:09:22 ==> Python coveragepy not found 21:09:22 ==> Searching for coverage reports in: 21:09:22 + . 21:09:22 -> Found 1 reports 21:09:22 ==> Detecting git/mercurial file structure 21:09:22 ==> Reading reports 21:09:22 + ./coverage.out bytes=14663 21:09:22 ==> Appending adjustments 21:09:22 https://docs.codecov.io/docs/fixing-reports 21:09:22 + Found adjustments 21:09:22 ==> Gzipping contents 21:09:22 4.0K /tmp/codecov.nU7ev6.gz 21:09:22 ==> Uploading reports 21:09:22 url: https://codecov.io 21:09:22 query: branch=PR-322&commit=b7a532f10f65a37a16fe5b5df099a14b732e137e&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-322%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=322&job=&cmd_args= 21:09:22 -> Pinging Codecov 21:09:22 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=c51feb23-73ac-4f49-b3d1-d26df23137db&branch=PR-322&commit=b7a532f10f65a37a16fe5b5df099a14b732e137e&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-322%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=322&job=&cmd_args= 21:09:22 -> Uploading to 21:09:22 https://storage.googleapis.com/codecov/v4/raw/2023-05-19/4E5D53B4F1F92C436F7061BF334D961C/b7a532f10f65a37a16fe5b5df099a14b732e137e/b567a4f6-4c75-4703-bb5a-398b631abe99.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20230519%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20230519T210922Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=f3cb82d057265cc561cd8c12f8db0e21c9220cf552b2dfb843ccb5c6839ab53f 21:09:22 % Total % Received % Xferd Average Speed Time Time Time Current 21:09:22 Dload Upload Total Spent Left Speed 21:09:22 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 2510 0 0 100 2510 0 10635 --:--:-- --:--:-- --:--:-- 10635 21:09:23 -> Reports have been successfully queued for processing at https://app.codecov.io/github/edgexfoundry/device-rest-go/commit/b7a532f10f65a37a16fe5b5df099a14b732e137e [Pipeline] } 21:09:23 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 21:09:24 + [ -d /w/workspace/gexfoundry_device-rest-go_PR-322/archives ] 21:09:24 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-322/archives 21:09:24 total 16 21:09:24 drwxr-xr-x 3 root root 4096 May 19 21:00 . 21:09:24 drwxrwxr-x 10 jenkins jenkins 4096 May 19 21:00 .. 21:09:24 drwxr-xr-x 2 root root 4096 May 19 21:00 cost 21:09:24 -rw-r--r-- 1 root root 86 May 19 21:00 cost.csv 21:09:24 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-rest-go_PR-322/archives 21:09:24 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-322/archives 21:09:24 total 16 21:09:24 drwxr-xr-x 3 jenkins jenkins 4096 May 19 21:00 . 21:09:24 drwxrwxr-x 10 jenkins jenkins 4096 May 19 21:00 .. 21:09:24 drwxr-xr-x 2 jenkins jenkins 4096 May 19 21:00 cost 21:09:24 -rw-r--r-- 1 jenkins jenkins 86 May 19 21:00 cost.csv [Pipeline] libraryResource [Pipeline] sh 21:09:25 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 21:09:26 ---> package-listing.sh 21:09:26 ++ facter osfamily 21:09:26 ++ tr '[:upper:]' '[:lower:]' 21:09:26 + OS_FAMILY=debian 21:09:26 + workspace=/w/workspace/gexfoundry_device-rest-go_PR-322 21:09:26 + START_PACKAGES=/tmp/packages_start.txt 21:09:26 + END_PACKAGES=/tmp/packages_end.txt 21:09:26 + DIFF_PACKAGES=/tmp/packages_diff.txt 21:09:26 + PACKAGES=/tmp/packages_start.txt 21:09:26 + '[' /w/workspace/gexfoundry_device-rest-go_PR-322 ']' 21:09:26 + PACKAGES=/tmp/packages_end.txt 21:09:26 + case "${OS_FAMILY}" in 21:09:26 + dpkg -l 21:09:26 + grep '^ii' 21:09:26 + '[' -f /tmp/packages_start.txt ']' 21:09:26 + '[' -f /tmp/packages_end.txt ']' 21:09:26 + diff /tmp/packages_start.txt /tmp/packages_end.txt 21:09:26 + '[' /w/workspace/gexfoundry_device-rest-go_PR-322 ']' 21:09:26 + mkdir -p /w/workspace/gexfoundry_device-rest-go_PR-322/archives/ 21:09:26 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/gexfoundry_device-rest-go_PR-322/archives/ [Pipeline] echo 21:09:26 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-322/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 21:09:26 + facter operatingsystem [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 21:09:27 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 21:09:27 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 21:09:27 prd-ubuntu20.04-docker-8c-8g-16134 does not seem to be running inside a container 21:09:27 $ 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-322/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-322 -v /w/workspace/gexfoundry_device-rest-go_PR-322:/w/workspace/gexfoundry_device-rest-go_PR-322:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-322@tmp:/w/workspace/gexfoundry_device-rest-go_PR-322@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 ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 21:09:27 $ docker top eed7e7c28eeca24adc27bf55c29540f3f7fbfb3764be61e4719e3eef9fcd3b4d -eo pid,comm [Pipeline] { [Pipeline] sh 21:09:28 + touch /tmp/pre-build-complete [Pipeline] sh 21:09:28 + mkdir -p /var/log/sysstat [Pipeline] sh 21:09:28 + ls /var/log/sa-host 21:09:28 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 21:09:28 provisioning config files... 21:09:28 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-322@tmp/config16395262265338981673tmp [Pipeline] { [Pipeline] echo 21:09:28 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 21:09:29 ---> create-netrc.sh [Pipeline] } 21:09:29 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 21:09:29 ---> python-tools-install.sh [Pipeline] echo 21:09:29 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 21:09:30 ---> sudo-logs.sh 21:09:30 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 21:09:30 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 21:09:30 ---> job-cost.sh 21:09:30 lf-activate-venv: SKIPPING 21:09:30 DEBUG: total: 0.2199999988079071 21:09:30 INFO: Retrieving Stack Cost... 21:09:30 INFO: Retrieving Pricing Info for: v3-standard-8 21:09:31 INFO: Archiving Costs [Pipeline] echo 21:09:31 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 21:09:31 ---> logs-deploy.sh 21:09:31 lf-activate-venv: SKIPPING 21:09:31 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-322/1 21:09:31 INFO: archiving workspace using pattern(s): 21:09:32 Archives upload complete. 21:09:32 INFO: archiving logs to Nexus 21:09:33 ---> uname -a: 21:09:33 Linux prd-ubuntu20-04-docker-8c-8g-16134 5.4.0-126-generic #142-Ubuntu SMP Fri Aug 26 12:12:57 UTC 2022 x86_64 GNU/Linux 21:09:33 21:09:33