Pull request #308 opened Connecting to https://api.github.com using edgex-jenkins github personal access token Connecting to https://api.github.com to check permissions of obtain list of jumpingliu for edgexfoundry/device-rest-go Loading trusted files from base branch main at 30cba82ac8543dee28be9b53c2ba4ad5f05591fa rather than 1a07bbade9a466f3792e258aa9e84cc16a414ca2 Obtained Jenkinsfile from 30cba82ac8543dee28be9b53c2ba4ad5f05591fa 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-ssh13094901362580517498.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-ssh4155711364383513690.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-308/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-308/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh3252083298976952641.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-308/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh7810458788459956964.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-ssh6106031659374348118.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-308/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-308/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e@tmp/jenkins-gitclient-ssh7231595037421273278.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 on ‘prd-ubuntu20.04-docker-8c-8g-13817’ Running on prd-ubuntu20.04-docker-8c-8g-13820 in /w/workspace/gexfoundry_device-rest-go_PR-308 [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-308 # 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/308/head:refs/remotes/origin/PR-308 +refs/heads/main:refs/remotes/origin/main # timeout=10 Merging remotes/origin/main commit 30cba82ac8543dee28be9b53c2ba4ad5f05591fa into PR head commit 1a07bbade9a466f3792e258aa9e84cc16a414ca2 Merge succeeded, producing 264b061c12f3f208b1af053f2e55e8abd0ccefd0 Checking out Revision 264b061c12f3f208b1af053f2e55e8abd0ccefd0 (PR-308) > git config core.sparsecheckout # timeout=10 > git checkout -f 1a07bbade9a466f3792e258aa9e84cc16a414ca2 # 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 30cba82ac8543dee28be9b53c2ba4ad5f05591fa # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 264b061c12f3f208b1af053f2e55e8abd0ccefd0 # timeout=10 Commit message: "Merge commit '30cba82ac8543dee28be9b53c2ba4ad5f05591fa' into HEAD" 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 05:30:32 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 05:30:32 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 05:30:32 ========================================================= 05:30:32 EdgeX Global Pipelines Version Info 05:30:32 ========================================================= [Pipeline] libraryResource [Pipeline] sh 05:30:33 ------------------- 05:30:33 stable info: 05:30:33 ------------------- 05:30:33 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 05:30:33 Commit SHA: 4fc256d9079ed2258907e613f84b1b8da264a4bd 05:30:33 Message: update stable to v1.0.249 05:30:34 ------------------- 05:30:34 experimental info: 05:30:34 ------------------- 05:30:34 Commited By: **** collab-it+edgex@linuxfoundation.org 05:30:34 Commit SHA: 4fc256d9079ed2258907e613f84b1b8da264a4bd 05:30:34 Message: update experimental to v1.0.249 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 05:30:34 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 05:30:34 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 05:30:34 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 05:30:34 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 05:30:34 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 05:30:34 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.20 [Pipeline] echo 05:30:34 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 05:30:34 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 05:30:34 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 05:30:34 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 05:30:34 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 05:30:34 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 05:30:35 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 05:30:35 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 05:30:35 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 05:30:35 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 05:30:35 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 05:30:35 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 05:30:35 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 05:30:35 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 05:30:35 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 05:30:35 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 05:30:35 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 05:30:35 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 05:30:35 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 05:30:35 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 05:30:35 [edgeXSetupEnvironment]: set envvar SNYK_DEBUG = false [Pipeline] echo 05:30:35 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-308 [Pipeline] echo 05:30:35 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-308 [Pipeline] echo 05:30:35 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-308 [Pipeline] echo 05:30:35 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 264b061c12f3f208b1af053f2e55e8abd0ccefd0 [Pipeline] echo 05:30:35 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 264b061 [Pipeline] echo 05:30:35 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 05:30:35 provisioning config files... 05:30:35 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-308@tmp/config12939966744068565417tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 05:30:36 ---> docker-login.sh 05:30:36 nexus3.edgexfoundry.org:10001 05:30:36 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:30:36 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:30:36 Configure a credential helper to remove this warning. See 05:30:36 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:30:36 05:30:36 Login Succeeded 05:30:36 nexus3.edgexfoundry.org:10002 05:30:36 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:30:36 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:30:36 Configure a credential helper to remove this warning. See 05:30:36 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:30:36 05:30:36 Login Succeeded 05:30:36 nexus3.edgexfoundry.org:10003 05:30:36 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:30:36 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:30:36 Configure a credential helper to remove this warning. See 05:30:36 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:30:36 05:30:36 Login Succeeded 05:30:36 nexus3.edgexfoundry.org:10004 05:30:36 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:30:37 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:30:37 Configure a credential helper to remove this warning. See 05:30:37 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:30:37 05:30:37 Login Succeeded 05:30:37 docker.io 05:30:37 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:30:37 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:30:37 Configure a credential helper to remove this warning. See 05:30:37 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:30:37 05:30:37 Login Succeeded 05:30:37 ---> docker-login.sh ends [Pipeline] } 05:30:37 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 05:30:37 + git rev-list -1 --merges 264b061c12f3f208b1af053f2e55e8abd0ccefd0~1..264b061c12f3f208b1af053f2e55e8abd0ccefd0 [Pipeline] echo 05:30:37 -----------> git rev-list -1 --merges 264b061c12f3f208b1af053f2e55e8abd0ccefd0~1..264b061c12f3f208b1af053f2e55e8abd0ccefd0 264b061c12f3f208b1af053f2e55e8abd0ccefd0 05:30:37 264b061c12f3f208b1af053f2e55e8abd0ccefd0 [false] [Pipeline] sh 05:30:38 + git log --format=format:%s -1 264b061c12f3f208b1af053f2e55e8abd0ccefd0 [Pipeline] echo 05:30:38 ========================================================= 05:30:38 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 05:30:38 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 05:30:38 + git log --format=format:%s -1 264b061c12f3f208b1af053f2e55e8abd0ccefd0 [Pipeline] echo 05:30:38 [semverPrep] GIT_COMMIT: 264b061c12f3f208b1af053f2e55e8abd0ccefd0, Commit Message: Merge commit '30cba82ac8543dee28be9b53c2ba4ad5f05591fa' into HEAD [Pipeline] echo 05:30:38 [semverPrep] This is not a build commit. [Pipeline] sh 05:30:39 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 05:30:39 + grep -v github /etc/ssh/ssh_known_hosts 05:30:39 + [ -e /tmp/ssh_known_hosts ] 05:30:39 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 05:30:39 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 05:30:39 + sudo tee -a /etc/ssh/ssh_known_hosts 05:30:39 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:30:39 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 05:30:39 05:30:39 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:30:39 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 05:30:39 0.1.4: Pulling from edgex-devops/py-git-semver 05:30:39 b85a868b505f: Pulling fs layer 05:30:39 e2be974225ed: Pulling fs layer 05:30:39 339a4e72a1f5: Pulling fs layer 05:30:39 988bab9f4d93: Pulling fs layer 05:30:39 1469e6f7b9e6: Pulling fs layer 05:30:39 eaf3925da568: Pulling fs layer 05:30:39 bab4dde63d76: Pulling fs layer 05:30:39 bde34c3a00c8: Pulling fs layer 05:30:39 b352a97aabf1: Pulling fs layer 05:30:39 4872d77fe225: Pulling fs layer 05:30:39 5851b861e8e6: Pulling fs layer 05:30:39 988bab9f4d93: Waiting 05:30:39 bde34c3a00c8: Waiting 05:30:39 b352a97aabf1: Waiting 05:30:39 bab4dde63d76: Waiting 05:30:39 5851b861e8e6: Waiting 05:30:39 4872d77fe225: Waiting 05:30:39 eaf3925da568: Waiting 05:30:39 1469e6f7b9e6: Waiting 05:30:39 e2be974225ed: Verifying Checksum 05:30:39 e2be974225ed: Download complete 05:30:39 988bab9f4d93: Verifying Checksum 05:30:39 988bab9f4d93: Download complete 05:30:39 1469e6f7b9e6: Verifying Checksum 05:30:39 1469e6f7b9e6: Download complete 05:30:39 eaf3925da568: Download complete 05:30:39 339a4e72a1f5: Verifying Checksum 05:30:39 339a4e72a1f5: Download complete 05:30:40 bde34c3a00c8: Download complete 05:30:40 b352a97aabf1: Verifying Checksum 05:30:40 b352a97aabf1: Download complete 05:30:40 4872d77fe225: Verifying Checksum 05:30:40 4872d77fe225: Download complete 05:30:40 5851b861e8e6: Verifying Checksum 05:30:40 5851b861e8e6: Download complete 05:30:40 b85a868b505f: Verifying Checksum 05:30:40 b85a868b505f: Download complete 05:30:40 bab4dde63d76: Verifying Checksum 05:30:40 bab4dde63d76: Download complete 05:30:41 b85a868b505f: Pull complete 05:30:41 e2be974225ed: Pull complete 05:30:41 339a4e72a1f5: Pull complete 05:30:41 988bab9f4d93: Pull complete 05:30:42 1469e6f7b9e6: Pull complete 05:30:42 eaf3925da568: Pull complete 05:30:44 bab4dde63d76: Pull complete 05:30:44 bde34c3a00c8: Pull complete 05:30:44 b352a97aabf1: Pull complete 05:30:44 4872d77fe225: Pull complete 05:30:44 5851b861e8e6: Pull complete 05:30:44 Digest: sha256:59a28aa3b44c0bc56b9c3d2e9ecabe42e63693d939cc6e425eb8786f29f663d8 05:30:44 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 05:30:44 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 05:30:44 prd-ubuntu20.04-docker-8c-8g-13820 does not seem to be running inside a container 05:30:44 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/gexfoundry_device-rest-go_PR-308 -v /w/workspace/gexfoundry_device-rest-go_PR-308:/w/workspace/gexfoundry_device-rest-go_PR-308:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-308@tmp:/w/workspace/gexfoundry_device-rest-go_PR-308@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 cat 05:30:46 $ docker top 27726402a977a9e25b743c9f679fcdd9562ad21743034b6c9b22282e868c8fff -eo pid,comm 05:30:46 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). 05:30:46 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 05:30:46 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 05:30:46 [ssh-agent] Looking for ssh-agent implementation... 05:30:46 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 05:30:46 $ docker exec 27726402a977a9e25b743c9f679fcdd9562ad21743034b6c9b22282e868c8fff ssh-agent 05:30:46 SSH_AUTH_SOCK=/tmp/ssh-WA9WSmfLFF39/agent.33 05:30:46 SSH_AGENT_PID=39 05:30:46 Running ssh-add (command line suppressed) 05:30:47 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-308@tmp/private_key_15332787077250328185.key (/w/workspace/gexfoundry_device-rest-go_PR-308@tmp/private_key_15332787077250328185.key) 05:30:47 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 05:30:47 + git tag --points-at HEAD [Pipeline] } 05:30:47 $ docker exec --env ******** --env ******** 27726402a977a9e25b743c9f679fcdd9562ad21743034b6c9b22282e868c8fff ssh-agent -k 05:30:47 unset SSH_AUTH_SOCK; 05:30:47 unset SSH_AGENT_PID; 05:30:47 echo Agent pid 39 killed; 05:30:47 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 05:30:47 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 05:30:47 [ssh-agent] Looking for ssh-agent implementation... 05:30:47 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 05:30:47 $ docker exec 27726402a977a9e25b743c9f679fcdd9562ad21743034b6c9b22282e868c8fff ssh-agent 05:30:47 SSH_AUTH_SOCK=/tmp/ssh-Kq1azqMc99kC/agent.71 05:30:47 SSH_AGENT_PID=77 05:30:47 Running ssh-add (command line suppressed) 05:30:47 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-308@tmp/private_key_3420492181972762518.key (/w/workspace/gexfoundry_device-rest-go_PR-308@tmp/private_key_3420492181972762518.key) 05:30:47 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 05:30:48 + git semver init 05:30:48 2023-05-05 05:30:48,439 [run_init] DEBUG init version:0.0.0 force:False 05:30:48 2023-05-05 05:30:48,440 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/gexfoundry_device-rest-go_PR-308/.semver 05:30:48 2023-05-05 05:30:48,440 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-rest-go.git /w/workspace/gexfoundry_device-rest-go_PR-308/.semver 05:30:48 2023-05-05 05:30:48,440 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-rest-go.git', '/w/workspace/gexfoundry_device-rest-go_PR-308/.semver'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-308, universal_newlines=False, shell=None, istream=None) 05:30:49 2023-05-05 05:30:49,389 [append_file] DEBUG append to file:/w/workspace/gexfoundry_device-rest-go_PR-308/.git/info/exclude 05:30:49 2023-05-05 05:30:49,390 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/gexfoundry_device-rest-go_PR-308/.semver/PR-308 with force:False 05:30:49 2023-05-05 05:30:49,390 [write_file] DEBUG write to file:/w/workspace/gexfoundry_device-rest-go_PR-308/.semver/PR-308 05:30:49 2023-05-05 05:30:49,394 [execute] INFO git cat-file --batch-check 05:30:49 2023-05-05 05:30:49,395 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-308/.semver, universal_newlines=False, shell=None, istream=) 05:30:49 2023-05-05 05:30:49,400 [execute] INFO git cat-file --batch 05:30:49 2023-05-05 05:30:49,401 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-308/.semver, universal_newlines=False, shell=None, istream=) 05:30:49 2023-05-05 05:30:49,405 [read_version] DEBUG read version from /w/workspace/gexfoundry_device-rest-go_PR-308/.semver/PR-308 05:30:49 0.0.0 [Pipeline] } 05:30:49 $ docker exec --env ******** --env ******** 27726402a977a9e25b743c9f679fcdd9562ad21743034b6c9b22282e868c8fff ssh-agent -k 05:30:49 unset SSH_AUTH_SOCK; 05:30:49 unset SSH_AGENT_PID; 05:30:49 echo Agent pid 77 killed; 05:30:49 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 05:30:50 + git semver [Pipeline] } 05:30:50 $ docker stop --time=1 27726402a977a9e25b743c9f679fcdd9562ad21743034b6c9b22282e868c8fff 05:30:51 $ docker rm -f --volumes 27726402a977a9e25b743c9f679fcdd9562ad21743034b6c9b22282e868c8fff [Pipeline] // withDockerContainer [Pipeline] sh 05:30:52 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 05:30:52 Stashed 1 file(s) [Pipeline] echo 05:30:52 [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 05:30:52 provisioning config files... 05:30:52 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-308@tmp/config1694579647304264775tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 05:30:53 ---> docker-login.sh 05:30:53 nexus3.edgexfoundry.org:10001 05:30:53 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:30:53 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:30:53 Configure a credential helper to remove this warning. See 05:30:53 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:30:53 05:30:53 Login Succeeded 05:30:53 nexus3.edgexfoundry.org:10002 05:30:53 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:30:53 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:30:53 Configure a credential helper to remove this warning. See 05:30:53 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:30:53 05:30:53 Login Succeeded 05:30:53 nexus3.edgexfoundry.org:10003 05:30:53 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:30:53 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:30:53 Configure a credential helper to remove this warning. See 05:30:53 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:30:53 05:30:53 Login Succeeded 05:30:53 nexus3.edgexfoundry.org:10004 05:30:53 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:30:53 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:30:53 Configure a credential helper to remove this warning. See 05:30:53 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:30:53 05:30:53 Login Succeeded 05:30:53 docker.io 05:30:53 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:30:53 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:30:53 Configure a credential helper to remove this warning. See 05:30:53 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:30:53 05:30:53 Login Succeeded 05:30:53 ---> docker-login.sh ends [Pipeline] } 05:30:53 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 05:30:54 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 05:30:54 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 05:30:54 ========================================================= 05:30:54 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine] 05:30:54 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:30:54 + 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 . 05:30:54 Sending build context to Docker daemon 10.91MB 05:30:54 Step 1/12 : ARG BASE=golang:1.20-alpine3.17 05:30:54 Step 2/12 : FROM ${BASE} AS builder 05:30:54 1.20-alpine: Pulling from edgex-devops/edgex-golang-base 05:30:54 f56be85fc22e: Pulling fs layer 05:30:54 85791d961cd3: Pulling fs layer 05:30:54 d694b5ae8c79: Pulling fs layer 05:30:54 9f32a84ed3da: Pulling fs layer 05:30:54 4d19c01a9841: Pulling fs layer 05:30:54 9325e15d5711: Pulling fs layer 05:30:54 556b6ee489ea: Pulling fs layer 05:30:54 c5a4b2cf53e6: Pulling fs layer 05:30:54 4d19c01a9841: Waiting 05:30:54 9325e15d5711: Waiting 05:30:54 556b6ee489ea: Waiting 05:30:54 c5a4b2cf53e6: Waiting 05:30:54 9f32a84ed3da: Waiting 05:30:54 85791d961cd3: Download complete 05:30:54 9f32a84ed3da: Verifying Checksum 05:30:54 9f32a84ed3da: Download complete 05:30:54 4d19c01a9841: Download complete 05:30:54 f56be85fc22e: Verifying Checksum 05:30:54 f56be85fc22e: Download complete 05:30:54 9325e15d5711: Verifying Checksum 05:30:54 9325e15d5711: Download complete 05:30:54 f56be85fc22e: Pull complete 05:30:55 85791d961cd3: Pull complete 05:30:55 c5a4b2cf53e6: Verifying Checksum 05:30:55 c5a4b2cf53e6: Download complete 05:30:55 d694b5ae8c79: Verifying Checksum 05:30:55 d694b5ae8c79: Download complete 05:30:55 556b6ee489ea: Verifying Checksum 05:30:55 556b6ee489ea: Download complete 05:30:58 d694b5ae8c79: Pull complete 05:30:58 9f32a84ed3da: Pull complete 05:30:58 4d19c01a9841: Pull complete 05:30:58 9325e15d5711: Pull complete 05:31:01 556b6ee489ea: Pull complete 05:31:01 c5a4b2cf53e6: Pull complete 05:31:01 Digest: sha256:cdb650785bd12602035d3ff87499385c169773a4d12d6eaf394b34464d3a0f2b 05:31:01 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine 05:31:01 ---> c4be618373d6 05:31:01 Step 3/12 : ARG ADD_BUILD_TAGS="" 05:31:07 ---> Running in 0cb62640dc4b 05:31:07 Removing intermediate container 0cb62640dc4b 05:31:07 ---> 56db02dacb25 05:31:07 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 05:31:07 ---> Running in bc24ed1de1e4 05:31:07 Removing intermediate container bc24ed1de1e4 05:31:07 ---> bf2cdee4ee04 05:31:07 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 05:31:07 ---> Running in 3ca629a0f78c 05:31:07 Removing intermediate container 3ca629a0f78c 05:31:07 ---> 88eae6f0fa6e 05:31:07 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 05:31:07 ---> Running in f4af402991f1 05:31:07 Removing intermediate container f4af402991f1 05:31:07 ---> 1415722b211a 05:31:07 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 05:31:07 ---> Running in ddb6557bbeb5 05:31:07 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 05:31:07 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 05:31:07 (1/4) Installing openssh-keygen (9.1_p1-r2) 05:31:07 (2/4) Installing libedit (20221030.3.1-r0) 05:31:07 (3/4) Installing openssh-client-common (9.1_p1-r2) 05:31:07 (4/4) Installing openssh-client-default (9.1_p1-r2) 05:31:07 Executing busybox-1.35.0-r29.trigger 05:31:07 OK: 269 MiB in 57 packages 05:31:07 Still waiting to schedule task 05:31:07 Waiting for next available executor on ‘prd-ubuntu20.04-docker-arm64-4c-16g-13818’ 05:31:07 Removing intermediate container ddb6557bbeb5 05:31:07 ---> e5b63e0e1cfe 05:31:07 Step 8/12 : WORKDIR /device-rest-go 05:31:08 ---> Running in a027e3c282c9 05:31:08 Removing intermediate container a027e3c282c9 05:31:08 ---> 5a87c18f9411 05:31:08 Step 9/12 : COPY go.mod vendor* ./ 05:31:08 ---> 9d05970368df 05:31:08 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 05:31:08 ---> Running in 786c03ccc683 05:31:30 Removing intermediate container 786c03ccc683 05:31:30 ---> 7860c9fde7c9 05:31:30 Step 11/12 : COPY . . 05:31:30 ---> 666a3d9ed46f 05:31:30 Step 12/12 : RUN $MAKE 05:31:30 ---> Running in feb3c19357de 05:31:30 noop 05:31:30 Removing intermediate container feb3c19357de 05:31:30 ---> 1ac6e4080bea 05:31:30 Successfully built 1ac6e4080bea 05:31:30 Successfully tagged ci-base-image-x86_64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:31:31 + docker inspect -f . ci-base-image-x86_64 05:31:31 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 05:31:31 prd-ubuntu20.04-docker-8c-8g-13820 does not seem to be running inside a container 05:31:31 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-308 -v /w/workspace/gexfoundry_device-rest-go_PR-308:/w/workspace/gexfoundry_device-rest-go_PR-308:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-308@tmp:/w/workspace/gexfoundry_device-rest-go_PR-308@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 05:31:31 $ docker top 5a4410b37e52dbbe04275c3669cddb21683fe763db50c2ff9249bbd42ef9ad41 -eo pid,comm [Pipeline] { [Pipeline] sh 05:31:32 + go version 05:31:32 go version go1.20.2 linux/amd64 [Pipeline] } 05:31:32 $ docker stop --time=1 5a4410b37e52dbbe04275c3669cddb21683fe763db50c2ff9249bbd42ef9ad41 05:31:33 $ docker rm -f --volumes 5a4410b37e52dbbe04275c3669cddb21683fe763db50c2ff9249bbd42ef9ad41 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:31:34 + docker inspect -f . ci-base-image-x86_64 05:31:34 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 05:31:34 prd-ubuntu20.04-docker-8c-8g-13820 does not seem to be running inside a container 05:31:34 $ 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-308 -v /w/workspace/gexfoundry_device-rest-go_PR-308:/w/workspace/gexfoundry_device-rest-go_PR-308:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-308@tmp:/w/workspace/gexfoundry_device-rest-go_PR-308@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 05:31:34 $ docker top e524ed395747c48f851b97c9492e2b152add6237b253dfeea259c75e8089a2c1 -eo pid,comm [Pipeline] { [Pipeline] sh 05:31:35 + git config --global --add safe.directory /w/workspace/gexfoundry_device-rest-go_PR-308 [Pipeline] fileExists [Pipeline] sh 05:31:35 + make test 05:31:35 go test ./... -coverprofile=coverage.out ./... 05:31:39 ? github.com/edgexfoundry/device-rest-go [no test files] 05:31:49 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 05:31:49 ok github.com/edgexfoundry/device-rest-go/driver 0.014s coverage: 32.2% of statements 05:31:56 go vet ./... 05:31:58 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 05:31:58 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 05:31:58 ./bin/test-attribution-txt.sh [Pipeline] echo 05:31:58 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 05:31:58 $ docker stop --time=1 e524ed395747c48f851b97c9492e2b152add6237b253dfeea259c75e8089a2c1 05:32:01 $ docker rm -f --volumes e524ed395747c48f851b97c9492e2b152add6237b253dfeea259c75e8089a2c1 [Pipeline] // withDockerContainer [Pipeline] sh 05:32:01 + sudo chown -R jenkins:jenkins . [Pipeline] stash 05:32:01 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 05:32:02 + sudo chown -R jenkins:jenkins . [Pipeline] sh 05:32:02 + ls -al . 05:32:02 total 184 05:32:02 drwxrwxr-x 9 jenkins jenkins 4096 May 5 05:31 . 05:32:02 drwxrwxr-x 4 jenkins jenkins 4096 May 5 05:30 .. 05:32:02 -rw-rw-r-- 1 jenkins jenkins 151 May 5 05:30 .dockerignore 05:32:02 drwxrwxr-x 8 jenkins jenkins 4096 May 5 05:30 .git 05:32:02 drwxrwxr-x 3 jenkins jenkins 4096 May 5 05:30 .github 05:32:02 -rw-rw-r-- 1 jenkins jenkins 329 May 5 05:30 .gitignore 05:32:02 -rw-rw-r-- 1 jenkins jenkins 41 May 5 05:30 .golangci.yml 05:32:02 drwxr-xr-x 3 jenkins jenkins 4096 May 5 05:30 .semver 05:32:02 -rw-rw-r-- 1 jenkins jenkins 9331 May 5 05:30 Attribution.txt 05:32:02 -rw-rw-r-- 1 jenkins jenkins 13085 May 5 05:30 CHANGELOG.md 05:32:02 -rw-rw-r-- 1 jenkins jenkins 1578 May 5 05:30 Dockerfile 05:32:02 -rw-rw-r-- 1 jenkins jenkins 677 May 5 05:30 GOVERNANCE.md 05:32:02 -rw-rw-r-- 1 jenkins jenkins 680 May 5 05:30 Jenkinsfile 05:32:02 -rw-rw-r-- 1 jenkins jenkins 11340 May 5 05:30 LICENSE 05:32:02 -rw-rw-r-- 1 jenkins jenkins 1779 May 5 05:30 Makefile 05:32:02 -rw-rw-r-- 1 jenkins jenkins 620 May 5 05:30 OWNERS.md 05:32:02 -rw-rw-r-- 1 jenkins jenkins 15321 May 5 05:30 README.md 05:32:02 -rw-rw-r-- 1 jenkins jenkins 5 May 5 05:30 VERSION 05:32:02 drwxrwxr-x 2 jenkins jenkins 4096 May 5 05:30 bin 05:32:02 drwxrwxr-x 3 jenkins jenkins 4096 May 5 05:30 cmd 05:32:02 -rw-r--r-- 1 jenkins jenkins 14663 May 5 05:31 coverage.out 05:32:02 drwxrwxr-x 2 jenkins jenkins 4096 May 5 05:30 driver 05:32:02 -rw-rw-r-- 1 jenkins jenkins 3402 May 5 05:30 go.mod 05:32:02 -rw-rw-r-- 1 jenkins jenkins 31328 May 5 05:30 go.sum 05:32:02 drwxrwxr-x 4 jenkins jenkins 4096 May 5 05:30 snap 05:32:02 -rw-rw-r-- 1 jenkins jenkins 713 May 5 05:30 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:32:03 + 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=264b061c12f3f208b1af053f2e55e8abd0ccefd0 --label arch=amd64 --label version=0.0.0 . 05:32:03 Sending build context to Docker daemon 10.93MB 05:32:03 Step 1/25 : ARG BASE=golang:1.20-alpine3.17 05:32:03 Step 2/25 : FROM ${BASE} AS builder 05:32:03 ---> 1ac6e4080bea 05:32:03 Step 3/25 : ARG ADD_BUILD_TAGS="" 05:32:03 ---> Running in 9ccdc43f6bfc 05:32:03 Removing intermediate container 9ccdc43f6bfc 05:32:03 ---> 5ddaef94337f 05:32:03 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 05:32:03 ---> Running in 9e43d03d5620 05:32:03 Removing intermediate container 9e43d03d5620 05:32:03 ---> a9780690d371 05:32:03 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 05:32:03 ---> Running in 219cec24f9ef 05:32:03 Removing intermediate container 219cec24f9ef 05:32:03 ---> 05b819df789b 05:32:03 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 05:32:03 ---> Running in 759bc7959066 05:32:03 Removing intermediate container 759bc7959066 05:32:03 ---> a122bb5b27b8 05:32:03 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 05:32:03 ---> Running in 22ca4140538e 05:32:03 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 05:32:03 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 05:32:04 OK: 269 MiB in 57 packages 05:32:04 Removing intermediate container 22ca4140538e 05:32:04 ---> 69bda7f47618 05:32:04 Step 8/25 : WORKDIR /device-rest-go 05:32:04 ---> Running in 620706f52742 05:32:04 Removing intermediate container 620706f52742 05:32:04 ---> 8b2a7ccb46bb 05:32:04 Step 9/25 : COPY go.mod vendor* ./ 05:32:04 ---> 86fe6d2bd645 05:32:04 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 05:32:04 ---> Running in 9ebbb69216a7 05:32:05 Removing intermediate container 9ebbb69216a7 05:32:05 ---> bfb4246fadad 05:32:05 Step 11/25 : COPY . . 05:32:05 ---> 10c6dc0dcaeb 05:32:05 Step 12/25 : RUN $MAKE 05:32:05 ---> Running in 3c45e567b3b5 05:32:06 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 05:32:24 Removing intermediate container 3c45e567b3b5 05:32:24 ---> de5fa05524d2 05:32:24 Step 13/25 : FROM alpine:3.17 05:32:24 3.17: Pulling from library/alpine 05:32:24 f56be85fc22e: Already exists 05:32:24 Digest: sha256:124c7d2707904eea7431fffe91522a01e5a861a624ee31d03372cc1d138a3126 05:32:24 Status: Downloaded newer image for alpine:3.17 05:32:24 ---> 9ed4aefc74f6 05:32:24 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 05:32:24 ---> Running in 72bfac861779 05:32:24 Removing intermediate container 72bfac861779 05:32:24 ---> f1466419d7fe 05:32:24 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 05:32:24 ---> Running in cbd98d4a13ab 05:32:24 Removing intermediate container cbd98d4a13ab 05:32:24 ---> 438238034225 05:32:24 Step 16/25 : RUN apk add --update --no-cache dumb-init 05:32:24 ---> Running in 6cce6cc470a0 05:32:24 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 05:32:24 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 05:32:24 (1/1) Installing dumb-init (1.2.5-r2) 05:32:24 Executing busybox-1.35.0-r29.trigger 05:32:24 OK: 7 MiB in 16 packages 05:32:25 Removing intermediate container 6cce6cc470a0 05:32:25 ---> 0416a99e7620 05:32:25 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 05:32:26 ---> ee4dd6932805 05:32:26 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 05:32:26 ---> aeccd50c3896 05:32:26 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 05:32:26 ---> b6e0ac6fcd0e 05:32:26 Step 20/25 : EXPOSE 59986 05:32:26 ---> Running in 9b4c24f50402 05:32:26 Removing intermediate container 9b4c24f50402 05:32:26 ---> edf214e33d86 05:32:26 Step 21/25 : ENTRYPOINT ["/device-rest"] 05:32:26 ---> Running in ff38254af87f 05:32:26 Removing intermediate container ff38254af87f 05:32:26 ---> cad23b545d49 05:32:26 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 05:32:26 ---> Running in 7c8d5f67b1f2 05:32:26 Removing intermediate container 7c8d5f67b1f2 05:32:26 ---> 9cdedb1091b6 05:32:26 Step 23/25 : LABEL arch=amd64 05:32:26 ---> Running in c6457ec3d453 05:32:26 Removing intermediate container c6457ec3d453 05:32:26 ---> 485d70a0f512 05:32:26 Step 24/25 : LABEL git_sha=264b061c12f3f208b1af053f2e55e8abd0ccefd0 05:32:26 ---> Running in 890541d5a99e 05:32:26 Removing intermediate container 890541d5a99e 05:32:26 ---> d653b876fcc1 05:32:26 Step 25/25 : LABEL version=0.0.0 05:32:26 ---> Running in 5937416014da 05:32:26 Removing intermediate container 5937416014da 05:32:26 ---> 075d369637a2 05:32:26 [Warning] One or more build-args [ARCH] were not consumed 05:32:26 Successfully built 075d369637a2 05:32:26 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 05:32:27 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 05:32:27 05:32:27 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:32:28 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 05:32:28 latest: Pulling from edgex-lftools-log-publisher 05:32:28 5eb5b503b376: Pulling fs layer 05:32:28 5c69ac0246d0: Pulling fs layer 05:32:28 ec43610c2a17: Pulling fs layer 05:32:28 3a2ae6a8a46f: Pulling fs layer 05:32:28 33b1e0a273af: Pulling fs layer 05:32:28 5d3b04190fa2: Pulling fs layer 05:32:28 2f39f015ded8: Pulling fs layer 05:32:28 3a2ae6a8a46f: Waiting 05:32:28 33b1e0a273af: Waiting 05:32:28 5d3b04190fa2: Waiting 05:32:28 2f39f015ded8: Waiting 05:32:28 5c69ac0246d0: Verifying Checksum 05:32:28 5c69ac0246d0: Download complete 05:32:28 3a2ae6a8a46f: Verifying Checksum 05:32:28 3a2ae6a8a46f: Download complete 05:32:28 33b1e0a273af: Verifying Checksum 05:32:28 33b1e0a273af: Download complete 05:32:28 5d3b04190fa2: Verifying Checksum 05:32:28 5d3b04190fa2: Download complete 05:32:28 ec43610c2a17: Verifying Checksum 05:32:28 ec43610c2a17: Download complete 05:32:28 5eb5b503b376: Verifying Checksum 05:32:28 5eb5b503b376: Download complete 05:32:28 2f39f015ded8: Download complete 05:32:29 5eb5b503b376: Pull complete 05:32:29 5c69ac0246d0: Pull complete 05:32:30 ec43610c2a17: Pull complete 05:32:30 3a2ae6a8a46f: Pull complete 05:32:30 33b1e0a273af: Pull complete 05:32:30 5d3b04190fa2: Pull complete 05:32:34 2f39f015ded8: Pull complete 05:32:34 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 05:32:34 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 05:32:34 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 05:32:34 prd-ubuntu20.04-docker-8c-8g-13820 does not seem to be running inside a container 05:32:35 $ 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-308 -v /w/workspace/gexfoundry_device-rest-go_PR-308:/w/workspace/gexfoundry_device-rest-go_PR-308:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-308@tmp:/w/workspace/gexfoundry_device-rest-go_PR-308@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 05:32:38 $ docker top 96e7f7e7361bcd0c2c08f57d71a7ca8348bb71a1a3ba604ae5e015e680e097da -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 05:32:38 ---> job-cost.sh 05:32:38 lf-activate-venv: SKIPPING 05:32:38 INFO: No Stack... 05:32:38 INFO: Retrieving Pricing Info for: v3-standard-8 05:32:39 INFO: Archiving Costs [Pipeline] sh 05:32:39 + cat /w/workspace/gexfoundry_device-rest-go_PR-308/archives/cost.csv 05:32:39 + cut -d, -f6 [Pipeline] lock 05:32:39 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-308-1-stack-cost] 05:32:39 Resource [jenkins-edgexfoundry-device-rest-go-PR-308-1-stack-cost] did not exist. Created. 05:32:39 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-308-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 05:32:39 + echo total: 0.2199999988079071 [Pipeline] stash 05:32:39 Stashed 1 file(s) [Pipeline] } 05:32:39 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-308-1-stack-cost] [Pipeline] // lock [Pipeline] } 05:32:39 $ docker stop --time=1 96e7f7e7361bcd0c2c08f57d71a7ca8348bb71a1a3ba604ae5e015e680e097da 05:32:41 $ docker rm -f --volumes 96e7f7e7361bcd0c2c08f57d71a7ca8348bb71a1a3ba604ae5e015e680e097da [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 05:34:20 Running on prd-ubuntu20.04-docker-arm64-4c-16g-13822 in /w/workspace/gexfoundry_device-rest-go_PR-308 [Pipeline] { [Pipeline] ws 05:34:20 Running in /w/workspace/device-rest-go/1 [Pipeline] { [Pipeline] checkout 05:34:20 The recommended git tool is: git 05:34:26 using credential edgex-jenkins-ssh 05:34:26 Cloning the remote Git repository 05:34:26 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 05:34:26 > git init /w/workspace/device-rest-go/1 # timeout=10 05:34:26 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 05:34:26 > git --version # timeout=10 05:34:26 > git --version # 'git version 2.25.1' 05:34:26 using GIT_SSH to set credentials SSH Credentials for GitHub 05:34:27 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 05:34:29 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 05:34:29 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 05:34:30 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 05:34:30 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 05:34:30 using GIT_SSH to set credentials SSH Credentials for GitHub 05:34:30 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/308/head:refs/remotes/origin/PR-308 +refs/heads/main:refs/remotes/origin/main # timeout=10 05:34:30 Merging remotes/origin/main commit 30cba82ac8543dee28be9b53c2ba4ad5f05591fa into PR head commit 1a07bbade9a466f3792e258aa9e84cc16a414ca2 05:34:31 Merge succeeded, producing 415bc2a654f74eada889bd205929c827d67286e9 05:34:31 Checking out Revision 415bc2a654f74eada889bd205929c827d67286e9 (PR-308) 05:34:30 > git config core.sparsecheckout # timeout=10 05:34:30 > git checkout -f 1a07bbade9a466f3792e258aa9e84cc16a414ca2 # timeout=10 05:34:31 > git remote # timeout=10 05:34:31 > git config --get remote.origin.url # timeout=10 05:34:31 using GIT_SSH to set credentials SSH Credentials for GitHub 05:34:31 > git merge 30cba82ac8543dee28be9b53c2ba4ad5f05591fa # timeout=10 05:34:31 > git rev-parse HEAD^{commit} # timeout=10 05:34:31 > git config core.sparsecheckout # timeout=10 05:34:31 > git checkout -f 415bc2a654f74eada889bd205929c827d67286e9 # timeout=10 05:34:34 Commit message: "Merge commit '30cba82ac8543dee28be9b53c2ba4ad5f05591fa' into HEAD" 05:34:34 First time build. Skipping changelog. 05:34:34 > git --version # timeout=10 05:34:34 > git --version # 'git version 2.25.1' 05:34:34 fatal: bad object 4fc256d9079ed2258907e613f84b1b8da264a4bd [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 05:34:36 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 05:34:36 % Total % Received % Xferd Average Speed Time Time Time Current 05:34:36 Dload Upload Total Spent Left Speed 05:34:36 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 12751 100 12751 0 0 214k 0 --:--:-- --:--:-- --:--:-- 214k [Pipeline] sh 05:34:36 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 05:34:37 + + sudo jqsudo . += {"seccomp-profile": "/etc/docker/seccomp.json"} tee /etc/docker/daemon.json /etc/docker/daemon.new 05:34:37 05:34:37 { 05:34:37 "registry-mirrors": [ 05:34:37 "https://nexus3.edgexfoundry.org:10001" 05:34:37 ], 05:34:37 "bip": "10.250.0.254/24", 05:34:37 "hosts": [ 05:34:37 "tcp://0.0.0.0:5555", 05:34:37 "unix:///var/run/docker.sock" 05:34:37 ], 05:34:37 "mtu": 1458, 05:34:37 "selinux-enabled": true, 05:34:37 "seccomp-profile": "/etc/docker/seccomp.json" 05:34:37 } [Pipeline] sh 05:34:37 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 05:34:38 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 05:34:56 provisioning config files... 05:34:56 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/1@tmp/config15450106556822820615tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 05:34:56 ---> docker-login.sh 05:34:56 nexus3.edgexfoundry.org:10001 05:34:57 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:34:57 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:34:57 Configure a credential helper to remove this warning. See 05:34:57 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:34:57 05:34:57 Login Succeeded 05:34:57 nexus3.edgexfoundry.org:10002 05:34:57 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:34:58 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:34:58 Configure a credential helper to remove this warning. See 05:34:58 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:34:58 05:34:58 Login Succeeded 05:34:58 nexus3.edgexfoundry.org:10003 05:34:58 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:34:58 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:34:58 Configure a credential helper to remove this warning. See 05:34:58 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:34:58 05:34:58 Login Succeeded 05:34:58 nexus3.edgexfoundry.org:10004 05:34:58 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:34:58 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:34:58 Configure a credential helper to remove this warning. See 05:34:58 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:34:58 05:34:58 Login Succeeded 05:34:58 docker.io 05:34:59 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:34:59 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:34:59 Configure a credential helper to remove this warning. See 05:34:59 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:34:59 05:34:59 Login Succeeded 05:34:59 ---> docker-login.sh ends [Pipeline] } 05:34:59 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 05:34:59 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 05:34:59 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 05:34:59 ========================================================= 05:34:59 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine] 05:34:59 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:35:00 + 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 . 05:35:00 Sending build context to Docker daemon 139.3kB 05:35:00 Step 1/12 : ARG BASE=golang:1.20-alpine3.17 05:35:00 Step 2/12 : FROM ${BASE} AS builder 05:35:00 1.20-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 05:35:00 c41833b44d91: Pulling fs layer 05:35:00 ed15518f5707: Pulling fs layer 05:35:00 feae8fd75edb: Pulling fs layer 05:35:00 242c74f7c9fa: Pulling fs layer 05:35:00 3cdef696dda3: Pulling fs layer 05:35:00 2ced38df9373: Pulling fs layer 05:35:00 58f1dce35555: Pulling fs layer 05:35:00 242c74f7c9fa: Waiting 05:35:00 3cdef696dda3: Waiting 05:35:00 2ced38df9373: Waiting 05:35:00 58f1dce35555: Waiting 05:35:00 ed15518f5707: Verifying Checksum 05:35:00 ed15518f5707: Download complete 05:35:00 242c74f7c9fa: Verifying Checksum 05:35:00 242c74f7c9fa: Download complete 05:35:00 3cdef696dda3: Verifying Checksum 05:35:00 3cdef696dda3: Download complete 05:35:00 c41833b44d91: Verifying Checksum 05:35:00 c41833b44d91: Download complete 05:35:02 58f1dce35555: Verifying Checksum 05:35:02 58f1dce35555: Download complete 05:35:02 c41833b44d91: Pull complete 05:35:03 feae8fd75edb: Verifying Checksum 05:35:03 feae8fd75edb: Download complete 05:35:03 2ced38df9373: Verifying Checksum 05:35:03 2ced38df9373: Download complete 05:35:03 ed15518f5707: Pull complete 05:35:15 feae8fd75edb: Pull complete 05:35:15 242c74f7c9fa: Pull complete 05:35:16 3cdef696dda3: Pull complete 05:35:22 2ced38df9373: Pull complete 05:35:25 58f1dce35555: Pull complete 05:35:25 Digest: sha256:3b55595e96c696ae732e8cb20cde5b1ff7282a1fe1423a8de67617af8d15ea1e 05:35:25 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine 05:35:25 ---> fadd8f120f05 05:35:25 Step 3/12 : ARG ADD_BUILD_TAGS="" 05:35:27 ---> Running in 2f131293a9ce 05:35:27 Removing intermediate container 2f131293a9ce 05:35:27 ---> 212fb85cf300 05:35:27 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 05:35:27 ---> Running in 566b39c20ff2 05:35:27 Removing intermediate container 566b39c20ff2 05:35:27 ---> 8dac88ce59cf 05:35:27 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 05:35:28 ---> Running in 07d617a5c14f 05:35:28 Removing intermediate container 07d617a5c14f 05:35:28 ---> a00c38c5926a 05:35:28 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 05:35:28 ---> Running in 32dc0e82fe87 05:35:28 Removing intermediate container 32dc0e82fe87 05:35:28 ---> 7280835913c7 05:35:28 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 05:35:29 ---> Running in 8f817cbd1f21 05:35:30 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 05:35:30 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 05:35:31 (1/4) Installing openssh-keygen (9.1_p1-r2) 05:35:31 (2/4) Installing libedit (20221030.3.1-r0) 05:35:31 (3/4) Installing openssh-client-common (9.1_p1-r2) 05:35:31 (4/4) Installing openssh-client-default (9.1_p1-r2) 05:35:31 Executing busybox-1.35.0-r29.trigger 05:35:31 OK: 268 MiB in 57 packages 05:35:32 Removing intermediate container 8f817cbd1f21 05:35:32 ---> d935252be1d6 05:35:32 Step 8/12 : WORKDIR /device-rest-go 05:35:32 ---> Running in 425d7c7bcae1 05:35:33 Removing intermediate container 425d7c7bcae1 05:35:33 ---> b5a42071c5ed 05:35:33 Step 9/12 : COPY go.mod vendor* ./ 05:35:33 ---> 996d40ea62d4 05:35:33 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 05:35:33 ---> Running in a8e00358c84e 05:36:41 Removing intermediate container a8e00358c84e 05:36:41 ---> fe5a82007cf0 05:36:41 Step 11/12 : COPY . . 05:36:41 ---> fb6ce3bc9b2b 05:36:41 Step 12/12 : RUN $MAKE 05:36:41 ---> Running in 2b582968b32a 05:36:41 noop 05:36:41 Removing intermediate container 2b582968b32a 05:36:41 ---> de86feac8ea7 05:36:41 Successfully built de86feac8ea7 05:36:41 Successfully tagged ci-base-image-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:36:42 + docker inspect -f . ci-base-image-arm64 05:36:42 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 05:36:42 prd-ubuntu20.04-docker-arm64-4c-16g-13822 does not seem to be running inside a container 05:36:42 $ 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 ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 05:36:43 $ docker top 74e461dc335528289c210ce215a667d3469e1ad24d7211bf434af6405a9bddc8 -eo pid,comm [Pipeline] { [Pipeline] sh 05:36:44 + go version 05:36:44 go version go1.20.2 linux/arm64 [Pipeline] } 05:36:44 $ docker stop --time=1 74e461dc335528289c210ce215a667d3469e1ad24d7211bf434af6405a9bddc8 05:36:48 $ docker rm -f --volumes 74e461dc335528289c210ce215a667d3469e1ad24d7211bf434af6405a9bddc8 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:36:48 + docker inspect -f . ci-base-image-arm64 05:36:48 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 05:36:49 prd-ubuntu20.04-docker-arm64-4c-16g-13822 does not seem to be running inside a container 05:36:49 $ 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 ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 05:36:50 $ docker top 3ae237a7fe70c422fef62f4ab450a453da695c9269aa41c79127bc1dbb553b28 -eo pid,comm [Pipeline] { [Pipeline] sh 05:36:51 + git config --global --add safe.directory /w/workspace/device-rest-go/1 [Pipeline] fileExists [Pipeline] sh 05:36:52 + make test 05:36:52 go test ./... -coverprofile=coverage.out ./... 05:37:31 ? github.com/edgexfoundry/device-rest-go [no test files] 05:39:37 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 05:39:39 ok github.com/edgexfoundry/device-rest-go/driver 0.064s coverage: 32.2% of statements 05:39:39 WARNING: Linting skipped (not on x86_64 or linter not installed) 05:39:39 go vet ./... 05:40:06 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 05:40:06 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 05:40:06 ./bin/test-attribution-txt.sh [Pipeline] echo 05:40:06 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 05:40:06 $ docker stop --time=1 3ae237a7fe70c422fef62f4ab450a453da695c9269aa41c79127bc1dbb553b28 05:40:08 $ docker rm -f --volumes 3ae237a7fe70c422fef62f4ab450a453da695c9269aa41c79127bc1dbb553b28 [Pipeline] // withDockerContainer [Pipeline] sh 05:40:09 + sudo chown -R jenkins:jenkins . [Pipeline] stash 05:40:09 Warning: overwriting stash ‘coverage-report’ 05:40:10 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 05:40:10 + sudo chown -R jenkins:jenkins . [Pipeline] sh 05:40:11 + ls -al . 05:40:11 total 180 05:40:11 drwxrwxr-x 8 jenkins jenkins 4096 May 5 05:36 . 05:40:11 drwxrwxr-x 4 jenkins jenkins 4096 May 5 05:34 .. 05:40:11 -rw-rw-r-- 1 jenkins jenkins 151 May 5 05:34 .dockerignore 05:40:11 drwxrwxr-x 8 jenkins jenkins 4096 May 5 05:34 .git 05:40:11 drwxrwxr-x 3 jenkins jenkins 4096 May 5 05:34 .github 05:40:11 -rw-rw-r-- 1 jenkins jenkins 329 May 5 05:34 .gitignore 05:40:11 -rw-rw-r-- 1 jenkins jenkins 41 May 5 05:34 .golangci.yml 05:40:11 -rw-rw-r-- 1 jenkins jenkins 9331 May 5 05:34 Attribution.txt 05:40:11 -rw-rw-r-- 1 jenkins jenkins 13085 May 5 05:34 CHANGELOG.md 05:40:11 -rw-rw-r-- 1 jenkins jenkins 1578 May 5 05:34 Dockerfile 05:40:11 -rw-rw-r-- 1 jenkins jenkins 677 May 5 05:34 GOVERNANCE.md 05:40:11 -rw-rw-r-- 1 jenkins jenkins 680 May 5 05:34 Jenkinsfile 05:40:11 -rw-rw-r-- 1 jenkins jenkins 11340 May 5 05:34 LICENSE 05:40:11 -rw-rw-r-- 1 jenkins jenkins 1779 May 5 05:34 Makefile 05:40:11 -rw-rw-r-- 1 jenkins jenkins 620 May 5 05:34 OWNERS.md 05:40:11 -rw-rw-r-- 1 jenkins jenkins 15321 May 5 05:34 README.md 05:40:11 -rw-rw-r-- 1 jenkins jenkins 5 May 5 05:30 VERSION 05:40:11 drwxrwxr-x 2 jenkins jenkins 4096 May 5 05:34 bin 05:40:11 drwxrwxr-x 3 jenkins jenkins 4096 May 5 05:34 cmd 05:40:11 -rw-r--r-- 1 jenkins jenkins 14663 May 5 05:39 coverage.out 05:40:11 drwxrwxr-x 2 jenkins jenkins 4096 May 5 05:34 driver 05:40:11 -rw-rw-r-- 1 jenkins jenkins 3402 May 5 05:34 go.mod 05:40:11 -rw-rw-r-- 1 jenkins jenkins 31328 May 5 05:34 go.sum 05:40:11 drwxrwxr-x 4 jenkins jenkins 4096 May 5 05:34 snap 05:40:11 -rw-rw-r-- 1 jenkins jenkins 713 May 5 05:34 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:40:11 + 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=415bc2a654f74eada889bd205929c827d67286e9 --label arch=arm64 --label version=0.0.0 . 05:40:11 Sending build context to Docker daemon 154.6kB 05:40:11 Step 1/25 : ARG BASE=golang:1.20-alpine3.17 05:40:11 Step 2/25 : FROM ${BASE} AS builder 05:40:11 ---> de86feac8ea7 05:40:11 Step 3/25 : ARG ADD_BUILD_TAGS="" 05:40:11 ---> Running in 2c68948dff31 05:40:12 Removing intermediate container 2c68948dff31 05:40:12 ---> 8c6d49a7c680 05:40:12 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 05:40:12 ---> Running in 8241038462ad 05:40:12 Removing intermediate container 8241038462ad 05:40:12 ---> 2c779cab323d 05:40:12 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 05:40:12 ---> Running in b392ca4b855a 05:40:13 Removing intermediate container b392ca4b855a 05:40:13 ---> 6671d138cd90 05:40:13 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 05:40:13 ---> Running in c6eb04f20ee7 05:40:13 Removing intermediate container c6eb04f20ee7 05:40:13 ---> 827fe97a01bc 05:40:13 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 05:40:13 ---> Running in de73ab31be32 05:40:14 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 05:40:15 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 05:40:16 OK: 268 MiB in 57 packages 05:40:17 Removing intermediate container de73ab31be32 05:40:17 ---> 2272fbdb9e2c 05:40:17 Step 8/25 : WORKDIR /device-rest-go 05:40:17 ---> Running in 186e82f316c9 05:40:17 Removing intermediate container 186e82f316c9 05:40:17 ---> 92c2c24f9ebe 05:40:17 Step 9/25 : COPY go.mod vendor* ./ 05:40:18 ---> 73c25683e395 05:40:18 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 05:40:19 ---> Running in 30a88cd0522c 05:40:21 Removing intermediate container 30a88cd0522c 05:40:21 ---> 8d31b39a4f77 05:40:21 Step 11/25 : COPY . . 05:40:22 ---> 81ff9b2b7a7f 05:40:22 Step 12/25 : RUN $MAKE 05:40:22 ---> Running in 481d81e2eb3b 05:40:23 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 05:42:44 Removing intermediate container 481d81e2eb3b 05:42:44 ---> c62a8c21f556 05:42:44 Step 13/25 : FROM alpine:3.17 05:42:44 3.17: Pulling from library/alpine 05:42:44 c41833b44d91: Already exists 05:42:44 Digest: sha256:124c7d2707904eea7431fffe91522a01e5a861a624ee31d03372cc1d138a3126 05:42:44 Status: Downloaded newer image for alpine:3.17 05:42:44 ---> 51e60588ff2c 05:42:44 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 05:42:44 ---> Running in f50746b0361b 05:42:44 Removing intermediate container f50746b0361b 05:42:44 ---> c090535648b0 05:42:44 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 05:42:44 ---> Running in f4232360b14d 05:42:44 Removing intermediate container f4232360b14d 05:42:44 ---> f523d5d2312a 05:42:44 Step 16/25 : RUN apk add --update --no-cache dumb-init 05:42:44 ---> Running in e98841b020e4 05:42:44 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 05:42:44 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 05:42:44 (1/1) Installing dumb-init (1.2.5-r2) 05:42:44 Executing busybox-1.35.0-r29.trigger 05:42:44 OK: 8 MiB in 16 packages 05:42:44 Removing intermediate container e98841b020e4 05:42:44 ---> c07f356f159d 05:42:44 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 05:42:45 ---> 61bd353494fe 05:42:45 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 05:42:46 ---> 8a3de5d710e1 05:42:46 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 05:42:46 ---> a3e7312c4b87 05:42:46 Step 20/25 : EXPOSE 59986 05:42:46 ---> Running in 9e45822422bb 05:42:47 Removing intermediate container 9e45822422bb 05:42:47 ---> 970b0ee4c794 05:42:47 Step 21/25 : ENTRYPOINT ["/device-rest"] 05:42:47 ---> Running in e0eeb52263f9 05:42:47 Removing intermediate container e0eeb52263f9 05:42:47 ---> d27acfbe689b 05:42:47 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 05:42:47 ---> Running in ab3bed15f2ab 05:42:47 Removing intermediate container ab3bed15f2ab 05:42:47 ---> 7b61932386fb 05:42:47 Step 23/25 : LABEL arch=arm64 05:42:47 ---> Running in bc551e8e4bb8 05:42:48 Removing intermediate container bc551e8e4bb8 05:42:48 ---> e9915d13fb1b 05:42:48 Step 24/25 : LABEL git_sha=415bc2a654f74eada889bd205929c827d67286e9 05:42:48 ---> Running in c6927530c561 05:42:48 Removing intermediate container c6927530c561 05:42:48 ---> b7fb20fdaba5 05:42:48 Step 25/25 : LABEL version=0.0.0 05:42:48 ---> Running in f39f774fee2e 05:42:49 Removing intermediate container f39f774fee2e 05:42:49 ---> 377b06943659 05:42:49 [Warning] One or more build-args [ARCH] were not consumed 05:42:49 Successfully built 377b06943659 05:42:49 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 05:42:49 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 05:42:49 05:42:49 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:42:50 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 05:42:50 arm64: Pulling from edgex-lftools-log-publisher 05:42:50 8998bd30e6a1: Pulling fs layer 05:42:50 04944245beec: Pulling fs layer 05:42:50 699f458cf7ca: Pulling fs layer 05:42:50 765212b225bb: Pulling fs layer 05:42:50 f23df028b6ca: Pulling fs layer 05:42:50 d65c8cfc05b1: Pulling fs layer 05:42:50 2437ff75d9bd: Pulling fs layer 05:42:50 765212b225bb: Waiting 05:42:50 f23df028b6ca: Waiting 05:42:50 d65c8cfc05b1: Waiting 05:42:50 2437ff75d9bd: Waiting 05:42:50 04944245beec: Verifying Checksum 05:42:50 04944245beec: Download complete 05:42:50 765212b225bb: Verifying Checksum 05:42:50 765212b225bb: Download complete 05:42:50 f23df028b6ca: Verifying Checksum 05:42:50 f23df028b6ca: Download complete 05:42:50 d65c8cfc05b1: Verifying Checksum 05:42:50 d65c8cfc05b1: Download complete 05:42:50 699f458cf7ca: Verifying Checksum 05:42:50 699f458cf7ca: Download complete 05:42:51 8998bd30e6a1: Verifying Checksum 05:42:51 8998bd30e6a1: Download complete 05:42:54 2437ff75d9bd: Verifying Checksum 05:42:54 2437ff75d9bd: Download complete 05:42:56 8998bd30e6a1: Pull complete 05:42:56 04944245beec: Pull complete 05:42:58 699f458cf7ca: Pull complete 05:42:58 765212b225bb: Pull complete 05:42:59 f23df028b6ca: Pull complete 05:42:59 d65c8cfc05b1: Pull complete 05:43:14 2437ff75d9bd: Pull complete 05:43:14 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 05:43:14 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 05:43:14 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 05:43:14 prd-ubuntu20.04-docker-arm64-4c-16g-13822 does not seem to be running inside a container 05:43:14 $ 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 ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 05:43:17 $ docker top d219cca1c1b58d19c2cd3c84422507cc4cf1c06313fcd83a5ff6a018acbf7d8f -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 05:43:18 ---> job-cost.sh 05:43:18 lf-activate-venv: SKIPPING 05:43:18 INFO: No Stack... 05:43:18 INFO: Retrieving Pricing Info for: v3-standard-4 05:43:19 INFO: Archiving Costs [Pipeline] sh 05:43:20 + cat /w/workspace/device-rest-go/1/archives/cost.csv 05:43:20 + cut -d, -f6 [Pipeline] lock 05:43:20 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-308-1-stack-cost] 05:43:20 Resource [jenkins-edgexfoundry-device-rest-go-PR-308-1-stack-cost] did not exist. Created. 05:43:20 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-308-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 05:43:21 /w/workspace/device-rest-go/1@tmp/durable-679f07cd/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 05:43:21 + echo total: 0.10999999940395355 [Pipeline] stash 05:43:21 Warning: overwriting stash ‘stack-cost’ 05:43:22 Stashed 1 file(s) [Pipeline] } 05:43:22 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-308-1-stack-cost] [Pipeline] // lock [Pipeline] } 05:43:22 $ docker stop --time=1 d219cca1c1b58d19c2cd3c84422507cc4cf1c06313fcd83a5ff6a018acbf7d8f 05:43:23 $ docker rm -f --volumes d219cca1c1b58d19c2cd3c84422507cc4cf1c06313fcd83a5ff6a018acbf7d8f [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 05:43:24 provisioning config files... 05:43:24 copy managed file [device-rest-go-codecov-token] to file:/w/workspace/gexfoundry_device-rest-go_PR-308@tmp/config11600069199614321572tmp [Pipeline] { [Pipeline] sh 05:43:24 + set +x 05:43:24 + curl -s https://codecov.io/bash 05:43:24 + bash -s -- 05:43:24 05:43:24 _____ _ 05:43:24 / ____| | | 05:43:24 | | ___ __| | ___ ___ _____ __ 05:43:24 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 05:43:24 | |___| (_) | (_| | __/ (_| (_) \ V / 05:43:24 \_____\___/ \__,_|\___|\___\___/ \_/ 05:43:24 Bash-1.0.6 05:43:24 05:43:24 05:43:24 ==> git version 2.25.1 found 05:43:24 ==> 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 05:43:24 Release-Date: 2020-01-08 05:43:24 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 05:43:24 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 05:43:24 ==> Jenkins CI detected. 05:43:24 current dir:  /w/workspace/gexfoundry_device-rest-go_PR-308 05:43:24 project root: . 05:43:24 --> token set from env 05:43:24 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 05:43:24 ==> Running gcov in . (disable via -X gcov) 05:43:24 ==> Python coveragepy not found 05:43:24 ==> Searching for coverage reports in: 05:43:24 + . 05:43:24 -> Found 1 reports 05:43:24 ==> Detecting git/mercurial file structure 05:43:24 ==> Reading reports 05:43:24 + ./coverage.out bytes=14663 05:43:24 ==> Appending adjustments 05:43:24 https://docs.codecov.io/docs/fixing-reports 05:43:25 + Found adjustments 05:43:25 ==> Gzipping contents 05:43:25 4.0K /tmp/codecov.ZIpNkq.gz 05:43:25 ==> Uploading reports 05:43:25 url: https://codecov.io 05:43:25 query: branch=PR-308&commit=264b061c12f3f208b1af053f2e55e8abd0ccefd0&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-308%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=308&job=&cmd_args= 05:43:25 -> Pinging Codecov 05:43:25 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=c51feb23-73ac-4f49-b3d1-d26df23137db&branch=PR-308&commit=264b061c12f3f208b1af053f2e55e8abd0ccefd0&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-308%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=308&job=&cmd_args= 05:43:25 -> Uploading to 05:43:25 https://storage.googleapis.com/codecov/v4/raw/2023-05-05/4E5D53B4F1F92C436F7061BF334D961C/264b061c12f3f208b1af053f2e55e8abd0ccefd0/83fa93de-1a43-48ba-8ff0-398241ae2bf1.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20230505%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20230505T054325Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=021efce51e4b53f4637849e0fbd321f8dea7d768d3ce6dba17870d7aa134801a 05:43:25 % Total % Received % Xferd Average Speed Time Time Time Current 05:43:25 Dload Upload Total Spent Left Speed 05:43:25 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 2510 0 0 100 2510 0 12364 --:--:-- --:--:-- --:--:-- 12303 100 2510 0 0 100 2510 0 11839 --:--:-- --:--:-- --:--:-- 11784 05:43:25 -> Reports have been successfully queued for processing at https://app.codecov.io/github/edgexfoundry/device-rest-go/commit/264b061c12f3f208b1af053f2e55e8abd0ccefd0 [Pipeline] } 05:43:25 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 05:43:26 + [ -d /w/workspace/gexfoundry_device-rest-go_PR-308/archives ] 05:43:26 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-308/archives 05:43:26 total 16 05:43:26 drwxr-xr-x 3 root root 4096 May 5 05:32 . 05:43:26 drwxrwxr-x 10 jenkins jenkins 4096 May 5 05:32 .. 05:43:26 drwxr-xr-x 2 root root 4096 May 5 05:32 cost 05:43:26 -rw-r--r-- 1 root root 86 May 5 05:32 cost.csv 05:43:26 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-rest-go_PR-308/archives 05:43:26 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-308/archives 05:43:26 total 16 05:43:26 drwxr-xr-x 3 jenkins jenkins 4096 May 5 05:32 . 05:43:26 drwxrwxr-x 10 jenkins jenkins 4096 May 5 05:32 .. 05:43:26 drwxr-xr-x 2 jenkins jenkins 4096 May 5 05:32 cost 05:43:26 -rw-r--r-- 1 jenkins jenkins 86 May 5 05:32 cost.csv [Pipeline] libraryResource [Pipeline] sh 05:43:27 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 05:43:28 ---> package-listing.sh 05:43:28 ++ tr '[:upper:]' '[:lower:]' 05:43:28 ++ facter osfamily 05:43:28 + OS_FAMILY=debian 05:43:28 + workspace=/w/workspace/gexfoundry_device-rest-go_PR-308 05:43:28 + START_PACKAGES=/tmp/packages_start.txt 05:43:28 + END_PACKAGES=/tmp/packages_end.txt 05:43:28 + DIFF_PACKAGES=/tmp/packages_diff.txt 05:43:28 + PACKAGES=/tmp/packages_start.txt 05:43:28 + '[' /w/workspace/gexfoundry_device-rest-go_PR-308 ']' 05:43:28 + PACKAGES=/tmp/packages_end.txt 05:43:28 + case "${OS_FAMILY}" in 05:43:28 + dpkg -l 05:43:28 + grep '^ii' 05:43:28 + '[' -f /tmp/packages_start.txt ']' 05:43:28 + '[' -f /tmp/packages_end.txt ']' 05:43:28 + diff /tmp/packages_start.txt /tmp/packages_end.txt 05:43:28 + '[' /w/workspace/gexfoundry_device-rest-go_PR-308 ']' 05:43:28 + mkdir -p /w/workspace/gexfoundry_device-rest-go_PR-308/archives/ 05:43:28 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/gexfoundry_device-rest-go_PR-308/archives/ [Pipeline] echo 05:43:28 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-308/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 05:43:28 + facter operatingsystem [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:43:29 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 05:43:29 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 05:43:29 prd-ubuntu20.04-docker-8c-8g-13820 does not seem to be running inside a container 05:43:29 $ 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-308/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-308 -v /w/workspace/gexfoundry_device-rest-go_PR-308:/w/workspace/gexfoundry_device-rest-go_PR-308:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-308@tmp:/w/workspace/gexfoundry_device-rest-go_PR-308@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 05:43:29 $ docker top 19aa663f383dcee521570e87cd6eeb20757be45257308c3c8f04f4033df3c3dc -eo pid,comm [Pipeline] { [Pipeline] sh 05:43:30 + touch /tmp/pre-build-complete [Pipeline] sh 05:43:30 + mkdir -p /var/log/sysstat [Pipeline] sh 05:43:30 + ls /var/log/sa-host 05:43:30 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 05:43:30 provisioning config files... 05:43:30 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-308@tmp/config148352353772475216tmp [Pipeline] { [Pipeline] echo 05:43:30 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 05:43:31 ---> create-netrc.sh [Pipeline] } 05:43:31 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 05:43:31 ---> python-tools-install.sh [Pipeline] echo 05:43:31 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 05:43:32 ---> sudo-logs.sh 05:43:32 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 05:43:32 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 05:43:32 ---> job-cost.sh 05:43:32 lf-activate-venv: SKIPPING 05:43:32 DEBUG: total: 0.2199999988079071 05:43:32 INFO: Retrieving Stack Cost... 05:43:33 INFO: Retrieving Pricing Info for: v3-standard-8 05:43:33 INFO: Archiving Costs [Pipeline] echo 05:43:33 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 05:43:33 ---> logs-deploy.sh 05:43:33 lf-activate-venv: SKIPPING 05:43:33 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-308/1 05:43:33 INFO: archiving workspace using pattern(s): 05:43:34 Archives upload complete. 05:43:34 INFO: archiving logs to Nexus