Pull request #286 opened Connecting to https://api.github.com using edgex-jenkins github personal access token Obtained Jenkinsfile from 28a8f33eed167af87626f36d0e3c7882023b7045+dd806b2640e0f0c8aa2f3a1f9570b634bbfd46b9 (6c4800351ec8d0da1d79841f652313023058f79b) 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-ssh11523352858033919704.key > git ls-remote -h -t -- git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Found match: refs/tags/stable revision 66200e8eedfc470904d6b329e562ec5b45423d6a 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-ssh8744192766160410054.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 66200e8eedfc470904d6b329e562ec5b45423d6a 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-286/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-286/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh1021155719108388451.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-286/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh1282169688272104787.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision 66200e8eedfc470904d6b329e562ec5b45423d6a (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f 66200e8eedfc470904d6b329e562ec5b45423d6a # timeout=10 Commit message: "feat: add capability to use golang 1.20 (#427)" > 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-ssh13660622072881595401.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-286/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-286/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e@tmp/jenkins-gitclient-ssh17400878971519109834.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 66200e8eedfc470904d6b329e562ec5b45423d6a 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 All nodes of label ‘ubuntu20.04-docker-8c-8g’ are offline Running on prd-ubuntu20.04-docker-8c-8g-7029 in /w/workspace/gexfoundry_device-rest-go_PR-286 [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-286 # 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/286/head:refs/remotes/origin/PR-286 +refs/heads/main:refs/remotes/origin/main # timeout=10 Merging remotes/origin/main commit dd806b2640e0f0c8aa2f3a1f9570b634bbfd46b9 into PR head commit 28a8f33eed167af87626f36d0e3c7882023b7045 Merge succeeded, producing 28a8f33eed167af87626f36d0e3c7882023b7045 Checking out Revision 28a8f33eed167af87626f36d0e3c7882023b7045 (PR-286) Commit message: "build(deps): Bump github.com/edgexfoundry/device-sdk-go/v3" First time build. Skipping changelog. > git --version # timeout=10 > git --version # 'git version 2.25.1' fatal: bad object 66200e8eedfc470904d6b329e562ec5b45423d6a [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { > git config core.sparsecheckout # timeout=10 > git checkout -f 28a8f33eed167af87626f36d0e3c7882023b7045 # 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 dd806b2640e0f0c8aa2f3a1f9570b634bbfd46b9 # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 28a8f33eed167af87626f36d0e3c7882023b7045 # timeout=10 [Pipeline] timeout 20:58:11 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 20:58:11 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 20:58:11 ========================================================= 20:58:11 EdgeX Global Pipelines Version Info 20:58:11 ========================================================= [Pipeline] libraryResource [Pipeline] sh 20:58:12 ------------------- 20:58:12 stable info: 20:58:12 ------------------- 20:58:12 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 20:58:12 Commit SHA: 66200e8eedfc470904d6b329e562ec5b45423d6a 20:58:12 Message: update stable to v1.0.245 20:58:12 ------------------- 20:58:12 experimental info: 20:58:12 ------------------- 20:58:12 Commited By: **** collab-it+edgex@linuxfoundation.org 20:58:12 Commit SHA: 046ad6d0e2e636d38ea4daf53c055316476b9501 20:58:12 Message: update experimental to v1.0.247 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 20:58:12 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 20:58:12 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 20:58:13 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 20:58:13 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 20:58:13 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 20:58:13 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.20 [Pipeline] echo 20:58:13 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 20:58:13 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 20:58:13 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 20:58:13 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 20:58:13 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 20:58:13 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 20:58:13 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 20:58:13 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 20:58:13 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 20:58:13 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 20:58:13 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 20:58:13 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 20:58:13 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 20:58:13 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 20:58:13 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 20:58:13 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 20:58:13 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 20:58:13 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 20:58:13 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 20:58:13 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 20:58:13 [edgeXSetupEnvironment]: set envvar SNYK_DEBUG = false [Pipeline] echo 20:58:14 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-286 [Pipeline] echo 20:58:14 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-286 [Pipeline] echo 20:58:14 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-286 [Pipeline] echo 20:58:14 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 28a8f33eed167af87626f36d0e3c7882023b7045 [Pipeline] echo 20:58:14 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 28a8f33 [Pipeline] echo 20:58:14 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 20:58:14 provisioning config files... 20:58:14 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-286@tmp/config418907755091559789tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:58:14 ---> docker-login.sh 20:58:14 nexus3.edgexfoundry.org:10001 20:58:14 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:58:14 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:58:14 Configure a credential helper to remove this warning. See 20:58:14 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:58:14 20:58:14 Login Succeeded 20:58:15 nexus3.edgexfoundry.org:10002 20:58:15 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:58:15 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:58:15 Configure a credential helper to remove this warning. See 20:58:15 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:58:15 20:58:15 Login Succeeded 20:58:15 nexus3.edgexfoundry.org:10003 20:58:15 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:58:15 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:58:15 Configure a credential helper to remove this warning. See 20:58:15 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:58:15 20:58:15 Login Succeeded 20:58:15 nexus3.edgexfoundry.org:10004 20:58:15 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:58:15 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:58:15 Configure a credential helper to remove this warning. See 20:58:15 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:58:15 20:58:15 Login Succeeded 20:58:15 docker.io 20:58:15 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:58:15 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:58:15 Configure a credential helper to remove this warning. See 20:58:15 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:58:15 20:58:15 Login Succeeded 20:58:15 ---> docker-login.sh ends [Pipeline] } 20:58:15 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 20:58:16 + git rev-list -1 --merges 28a8f33eed167af87626f36d0e3c7882023b7045~1..28a8f33eed167af87626f36d0e3c7882023b7045 [Pipeline] echo 20:58:16 -----------> git rev-list -1 --merges 28a8f33eed167af87626f36d0e3c7882023b7045~1..28a8f33eed167af87626f36d0e3c7882023b7045 28a8f33eed167af87626f36d0e3c7882023b7045 [false] [Pipeline] sh 20:58:16 + git log --format=format:%s -1 28a8f33eed167af87626f36d0e3c7882023b7045 [Pipeline] echo 20:58:16 ========================================================= 20:58:16 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 20:58:16 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 20:58:17 + git log --format=format:%s -1 28a8f33eed167af87626f36d0e3c7882023b7045 [Pipeline] echo 20:58:17 [semverPrep] GIT_COMMIT: 28a8f33eed167af87626f36d0e3c7882023b7045, Commit Message: build(deps): Bump github.com/edgexfoundry/device-sdk-go/v3 [Pipeline] echo 20:58:17 [semverPrep] This is not a build commit. [Pipeline] sh 20:58:17 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 20:58:17 + grep -v github /etc/ssh/ssh_known_hosts 20:58:17 + [ -e /tmp/ssh_known_hosts ] 20:58:17 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 20:58:17 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 20:58:17 + sudo tee -a /etc/ssh/ssh_known_hosts 20:58:17 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:58:18 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 20:58:18 20:58:18 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:58:18 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 20:58:18 0.1.4: Pulling from edgex-devops/py-git-semver 20:58:18 b85a868b505f: Pulling fs layer 20:58:18 e2be974225ed: Pulling fs layer 20:58:18 339a4e72a1f5: Pulling fs layer 20:58:18 988bab9f4d93: Pulling fs layer 20:58:18 1469e6f7b9e6: Pulling fs layer 20:58:18 eaf3925da568: Pulling fs layer 20:58:18 bab4dde63d76: Pulling fs layer 20:58:18 bde34c3a00c8: Pulling fs layer 20:58:18 b352a97aabf1: Pulling fs layer 20:58:18 4872d77fe225: Pulling fs layer 20:58:18 5851b861e8e6: Pulling fs layer 20:58:18 988bab9f4d93: Waiting 20:58:18 bab4dde63d76: Waiting 20:58:18 bde34c3a00c8: Waiting 20:58:18 b352a97aabf1: Waiting 20:58:18 1469e6f7b9e6: Waiting 20:58:18 4872d77fe225: Waiting 20:58:18 eaf3925da568: Waiting 20:58:18 5851b861e8e6: Waiting 20:58:18 e2be974225ed: Verifying Checksum 20:58:18 e2be974225ed: Download complete 20:58:18 988bab9f4d93: Verifying Checksum 20:58:18 988bab9f4d93: Download complete 20:58:18 339a4e72a1f5: Verifying Checksum 20:58:18 339a4e72a1f5: Download complete 20:58:18 1469e6f7b9e6: Verifying Checksum 20:58:18 1469e6f7b9e6: Download complete 20:58:18 eaf3925da568: Download complete 20:58:18 bde34c3a00c8: Verifying Checksum 20:58:18 bde34c3a00c8: Download complete 20:58:18 b352a97aabf1: Download complete 20:58:18 4872d77fe225: Download complete 20:58:18 5851b861e8e6: Download complete 20:58:18 b85a868b505f: Verifying Checksum 20:58:18 b85a868b505f: Download complete 20:58:19 bab4dde63d76: Verifying Checksum 20:58:19 bab4dde63d76: Download complete 20:58:20 b85a868b505f: Pull complete 20:58:20 e2be974225ed: Pull complete 20:58:20 339a4e72a1f5: Pull complete 20:58:20 988bab9f4d93: Pull complete 20:58:21 1469e6f7b9e6: Pull complete 20:58:21 eaf3925da568: Pull complete 20:58:23 bab4dde63d76: Pull complete 20:58:23 bde34c3a00c8: Pull complete 20:58:23 b352a97aabf1: Pull complete 20:58:23 4872d77fe225: Pull complete 20:58:23 5851b861e8e6: Pull complete 20:58:23 Digest: sha256:59a28aa3b44c0bc56b9c3d2e9ecabe42e63693d939cc6e425eb8786f29f663d8 20:58:23 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 20:58:23 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 20:58:23 prd-ubuntu20.04-docker-8c-8g-7029 does not seem to be running inside a container 20:58:23 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/gexfoundry_device-rest-go_PR-286 -v /w/workspace/gexfoundry_device-rest-go_PR-286:/w/workspace/gexfoundry_device-rest-go_PR-286:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-286@tmp:/w/workspace/gexfoundry_device-rest-go_PR-286@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 cat 20:58:25 $ docker top 6be645d883c7001a3d4e58a0ff5b66489f0ce343a3f37ab273cfa7782630ea08 -eo pid,comm 20:58:25 ERROR: The container started but didn't run the expected command. Please double check your ENTRYPOINT does execute the command passed as docker run argument, as required by official docker images (see https://github.com/docker-library/official-images#consistency for entrypoint consistency requirements). 20:58:25 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 20:58:25 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 20:58:25 [ssh-agent] Looking for ssh-agent implementation... 20:58:25 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 20:58:25 $ docker exec 6be645d883c7001a3d4e58a0ff5b66489f0ce343a3f37ab273cfa7782630ea08 ssh-agent 20:58:25 SSH_AUTH_SOCK=/tmp/ssh-AuHjq6c8QR6J/agent.32 20:58:25 SSH_AGENT_PID=38 20:58:25 Running ssh-add (command line suppressed) 20:58:25 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-286@tmp/private_key_6845004857088137521.key (/w/workspace/gexfoundry_device-rest-go_PR-286@tmp/private_key_6845004857088137521.key) 20:58:25 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 20:58:26 + git tag --points-at HEAD [Pipeline] } 20:58:26 $ docker exec --env ******** --env ******** 6be645d883c7001a3d4e58a0ff5b66489f0ce343a3f37ab273cfa7782630ea08 ssh-agent -k 20:58:26 unset SSH_AUTH_SOCK; 20:58:26 unset SSH_AGENT_PID; 20:58:26 echo Agent pid 38 killed; 20:58:26 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 20:58:26 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 20:58:26 [ssh-agent] Looking for ssh-agent implementation... 20:58:26 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 20:58:26 $ docker exec 6be645d883c7001a3d4e58a0ff5b66489f0ce343a3f37ab273cfa7782630ea08 ssh-agent 20:58:26 SSH_AUTH_SOCK=/tmp/ssh-MRXSvCry2Zy3/agent.70 20:58:26 SSH_AGENT_PID=76 20:58:26 Running ssh-add (command line suppressed) 20:58:26 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-286@tmp/private_key_5553152181148864541.key (/w/workspace/gexfoundry_device-rest-go_PR-286@tmp/private_key_5553152181148864541.key) 20:58:26 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 20:58:27 + git semver init 20:58:27 2023-04-06 20:58:27,282 [run_init] DEBUG init version:0.0.0 force:False 20:58:27 2023-04-06 20:58:27,283 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/gexfoundry_device-rest-go_PR-286/.semver 20:58:27 2023-04-06 20:58:27,284 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-rest-go.git /w/workspace/gexfoundry_device-rest-go_PR-286/.semver 20:58:27 2023-04-06 20:58:27,284 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-rest-go.git', '/w/workspace/gexfoundry_device-rest-go_PR-286/.semver'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-286, universal_newlines=False, shell=None, istream=None) 20:58:28 2023-04-06 20:58:28,190 [append_file] DEBUG append to file:/w/workspace/gexfoundry_device-rest-go_PR-286/.git/info/exclude 20:58:28 2023-04-06 20:58:28,190 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/gexfoundry_device-rest-go_PR-286/.semver/PR-286 with force:False 20:58:28 2023-04-06 20:58:28,190 [write_file] DEBUG write to file:/w/workspace/gexfoundry_device-rest-go_PR-286/.semver/PR-286 20:58:28 2023-04-06 20:58:28,195 [execute] INFO git cat-file --batch-check 20:58:28 2023-04-06 20:58:28,195 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-286/.semver, universal_newlines=False, shell=None, istream=) 20:58:28 2023-04-06 20:58:28,201 [execute] INFO git cat-file --batch 20:58:28 2023-04-06 20:58:28,201 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-286/.semver, universal_newlines=False, shell=None, istream=) 20:58:28 2023-04-06 20:58:28,207 [read_version] DEBUG read version from /w/workspace/gexfoundry_device-rest-go_PR-286/.semver/PR-286 20:58:28 0.0.0 [Pipeline] } 20:58:28 $ docker exec --env ******** --env ******** 6be645d883c7001a3d4e58a0ff5b66489f0ce343a3f37ab273cfa7782630ea08 ssh-agent -k 20:58:28 unset SSH_AUTH_SOCK; 20:58:28 unset SSH_AGENT_PID; 20:58:28 echo Agent pid 76 killed; 20:58:28 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 20:58:28 + git semver [Pipeline] } 20:58:29 $ docker stop --time=1 6be645d883c7001a3d4e58a0ff5b66489f0ce343a3f37ab273cfa7782630ea08 20:58:30 $ docker rm -f --volumes 6be645d883c7001a3d4e58a0ff5b66489f0ce343a3f37ab273cfa7782630ea08 [Pipeline] // withDockerContainer [Pipeline] sh 20:58:30 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 20:58:31 Stashed 1 file(s) [Pipeline] echo 20:58:31 [edgeXSemver]: initialized semver on version 0.0.0 [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] parallel [Pipeline] { (Branch: amd64) [Pipeline] { (Branch: arm64) [Pipeline] stage [Pipeline] { (amd64) [Pipeline] stage [Pipeline] { (arm64) [Pipeline] withEnv [Pipeline] { [Pipeline] node [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 20:58:31 provisioning config files... 20:58:31 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-286@tmp/config8811315718690188965tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:58:32 ---> docker-login.sh 20:58:32 nexus3.edgexfoundry.org:10001 20:58:32 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:58:32 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:58:32 Configure a credential helper to remove this warning. See 20:58:32 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:58:32 20:58:32 Login Succeeded 20:58:32 nexus3.edgexfoundry.org:10002 20:58:32 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:58:32 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:58:32 Configure a credential helper to remove this warning. See 20:58:32 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:58:32 20:58:32 Login Succeeded 20:58:32 nexus3.edgexfoundry.org:10003 20:58:32 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:58:32 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:58:32 Configure a credential helper to remove this warning. See 20:58:32 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:58:32 20:58:32 Login Succeeded 20:58:32 nexus3.edgexfoundry.org:10004 20:58:32 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:58:32 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:58:32 Configure a credential helper to remove this warning. See 20:58:32 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:58:32 20:58:32 Login Succeeded 20:58:32 docker.io 20:58:32 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:58:32 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:58:32 Configure a credential helper to remove this warning. See 20:58:32 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:58:32 20:58:32 Login Succeeded 20:58:32 ---> docker-login.sh ends [Pipeline] } 20:58:32 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 20:58:32 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 20:58:32 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 20:58:33 ========================================================= 20:58:33 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine] 20:58:33 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:58:33 + docker build -t ci-base-image-x86_64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine --build-arg MAKE=echo noop --target=builder . 20:58:33 Sending build context to Docker daemon 10.88MB 20:58:33 Step 1/12 : ARG BASE=golang:1.20-alpine3.17 20:58:33 Step 2/12 : FROM ${BASE} AS builder 20:58:33 1.20-alpine: Pulling from edgex-devops/edgex-golang-base 20:58:33 63b65145d645: Pulling fs layer 20:58:33 a2d21d5440eb: Pulling fs layer 20:58:33 935e6c44a52c: Pulling fs layer 20:58:33 94cc34f8dd06: Pulling fs layer 20:58:33 30dea6a524f1: Pulling fs layer 20:58:33 a2aff8979fd8: Pulling fs layer 20:58:33 6808be2612f2: Pulling fs layer 20:58:33 f25807f1079a: Pulling fs layer 20:58:33 94cc34f8dd06: Waiting 20:58:33 30dea6a524f1: Waiting 20:58:33 a2aff8979fd8: Waiting 20:58:33 6808be2612f2: Waiting 20:58:33 f25807f1079a: Waiting 20:58:33 a2d21d5440eb: Download complete 20:58:33 94cc34f8dd06: Verifying Checksum 20:58:33 94cc34f8dd06: Download complete 20:58:33 30dea6a524f1: Verifying Checksum 20:58:33 30dea6a524f1: Download complete 20:58:33 63b65145d645: Verifying Checksum 20:58:33 63b65145d645: Download complete 20:58:33 a2aff8979fd8: Verifying Checksum 20:58:33 a2aff8979fd8: Download complete 20:58:33 63b65145d645: Pull complete 20:58:34 a2d21d5440eb: Pull complete 20:58:34 f25807f1079a: Verifying Checksum 20:58:34 f25807f1079a: Download complete 20:58:34 935e6c44a52c: Verifying Checksum 20:58:34 935e6c44a52c: Download complete 20:58:34 6808be2612f2: Verifying Checksum 20:58:34 6808be2612f2: Download complete 20:58:37 935e6c44a52c: Pull complete 20:58:38 94cc34f8dd06: Pull complete 20:58:38 30dea6a524f1: Pull complete 20:58:38 a2aff8979fd8: Pull complete 20:58:40 6808be2612f2: Pull complete 20:58:41 f25807f1079a: Pull complete 20:58:41 Digest: sha256:106942793af8b5907f587008084bb0888cadbc76d86ebd37d4d3227fb0f1e438 20:58:41 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine 20:58:41 ---> 3b553350e43f 20:58:41 Step 3/12 : ARG ADD_BUILD_TAGS="" 20:58:43 ---> Running in 5c5d9ffdf4b1 20:58:43 Removing intermediate container 5c5d9ffdf4b1 20:58:43 ---> 01a8c493fc1f 20:58:43 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 20:58:43 ---> Running in 2d5ada69035a 20:58:43 Removing intermediate container 2d5ada69035a 20:58:43 ---> 602e9ab636a7 20:58:43 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 20:58:43 ---> Running in b9a744cfd701 20:58:43 Removing intermediate container b9a744cfd701 20:58:43 ---> 6c58d6c65c22 20:58:43 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 20:58:43 ---> Running in 78095088478a 20:58:43 Removing intermediate container 78095088478a 20:58:43 ---> 5c9e9d3924bb 20:58:43 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 20:58:43 ---> Running in 4ca85d4e4974 20:58:43 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 20:58:44 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 20:58:44 (1/4) Installing openssh-keygen (9.1_p1-r2) 20:58:44 (2/4) Installing libedit (20221030.3.1-r0) 20:58:44 (3/4) Installing openssh-client-common (9.1_p1-r2) 20:58:44 (4/4) Installing openssh-client-default (9.1_p1-r2) 20:58:44 Executing busybox-1.35.0-r29.trigger 20:58:44 OK: 269 MiB in 57 packages 20:58:45 Removing intermediate container 4ca85d4e4974 20:58:45 ---> fd6cff3eac66 20:58:45 Step 8/12 : WORKDIR /device-rest-go 20:58:45 ---> Running in a097e69ea740 20:58:45 Removing intermediate container a097e69ea740 20:58:45 ---> 5b292d65d06c 20:58:45 Step 9/12 : COPY go.mod vendor* ./ 20:58:45 ---> f9397180f20d 20:58:45 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 20:58:45 ---> Running in 3149140b3bda 20:58:46 Still waiting to schedule task 20:58:46 All nodes of label ‘ubuntu20.04-docker-arm64-4c-16g’ are offline 20:59:11 Removing intermediate container 3149140b3bda 20:59:11 ---> f3718eba93ce 20:59:11 Step 11/12 : COPY . . 20:59:11 ---> ae4ce4cc5c1a 20:59:11 Step 12/12 : RUN $MAKE 20:59:11 ---> Running in d75d5534701b 20:59:11 noop 20:59:11 Removing intermediate container d75d5534701b 20:59:11 ---> d81ab14565d1 20:59:11 Successfully built d81ab14565d1 20:59:11 Successfully tagged ci-base-image-x86_64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:59:12 + docker inspect -f . ci-base-image-x86_64 20:59:12 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 20:59:12 prd-ubuntu20.04-docker-8c-8g-7029 does not seem to be running inside a container 20:59:12 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-286 -v /w/workspace/gexfoundry_device-rest-go_PR-286:/w/workspace/gexfoundry_device-rest-go_PR-286:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-286@tmp:/w/workspace/gexfoundry_device-rest-go_PR-286@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 20:59:12 $ docker top 7ccc602e994d3bb4d0fcbdaf2a87c603440b7afb0a9a9a66118f4f3c754b8b86 -eo pid,comm [Pipeline] { [Pipeline] sh 20:59:13 + go version 20:59:13 go version go1.20.2 linux/amd64 [Pipeline] } 20:59:13 $ docker stop --time=1 7ccc602e994d3bb4d0fcbdaf2a87c603440b7afb0a9a9a66118f4f3c754b8b86 20:59:14 $ docker rm -f --volumes 7ccc602e994d3bb4d0fcbdaf2a87c603440b7afb0a9a9a66118f4f3c754b8b86 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:59:15 + docker inspect -f . ci-base-image-x86_64 20:59:15 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 20:59:15 prd-ubuntu20.04-docker-8c-8g-7029 does not seem to be running inside a container 20:59:15 $ 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-286 -v /w/workspace/gexfoundry_device-rest-go_PR-286:/w/workspace/gexfoundry_device-rest-go_PR-286:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-286@tmp:/w/workspace/gexfoundry_device-rest-go_PR-286@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 20:59:16 $ docker top 61723788a00b97cd8a4526acedd64efde4e7b3856bb31c8ca8f509bb91ceb70b -eo pid,comm [Pipeline] { [Pipeline] sh 20:59:16 + git config --global --add safe.directory /w/workspace/gexfoundry_device-rest-go_PR-286 [Pipeline] fileExists [Pipeline] sh 20:59:16 + make test 20:59:16 go test ./... -coverprofile=coverage.out ./... 20:59:22 ? github.com/edgexfoundry/device-rest-go [no test files] 20:59:32 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 20:59:32 ok github.com/edgexfoundry/device-rest-go/driver 0.013s coverage: 33.0% of statements 20:59:38 go vet ./... 20:59:41 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 20:59:41 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 20:59:41 ./bin/test-attribution-txt.sh 20:59:41 An attribution for github.com/go-jose/go-jose/v3 is missing from Attribution.txt, please add [Pipeline] echo 20:59:41 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 20:59:41 $ docker stop --time=1 61723788a00b97cd8a4526acedd64efde4e7b3856bb31c8ca8f509bb91ceb70b 20:59:44 $ docker rm -f --volumes 61723788a00b97cd8a4526acedd64efde4e7b3856bb31c8ca8f509bb91ceb70b [Pipeline] // withDockerContainer [Pipeline] sh 20:59:44 + sudo chown -R jenkins:jenkins . [Pipeline] stash 20:59:44 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 20:59:45 + sudo chown -R jenkins:jenkins . [Pipeline] sh 20:59:45 + ls -al . 20:59:45 total 184 20:59:45 drwxrwxr-x 9 jenkins jenkins 4096 Apr 6 20:59 . 20:59:45 drwxrwxr-x 4 jenkins jenkins 4096 Apr 6 20:58 .. 20:59:45 -rw-rw-r-- 1 jenkins jenkins 151 Apr 6 20:58 .dockerignore 20:59:45 drwxrwxr-x 8 jenkins jenkins 4096 Apr 6 20:58 .git 20:59:45 drwxrwxr-x 3 jenkins jenkins 4096 Apr 6 20:58 .github 20:59:45 -rw-rw-r-- 1 jenkins jenkins 329 Apr 6 20:58 .gitignore 20:59:45 -rw-rw-r-- 1 jenkins jenkins 41 Apr 6 20:58 .golangci.yml 20:59:45 drwxr-xr-x 3 jenkins jenkins 4096 Apr 6 20:58 .semver 20:59:45 -rw-rw-r-- 1 jenkins jenkins 9202 Apr 6 20:58 Attribution.txt 20:59:45 -rw-rw-r-- 1 jenkins jenkins 13085 Apr 6 20:58 CHANGELOG.md 20:59:45 -rw-rw-r-- 1 jenkins jenkins 1578 Apr 6 20:58 Dockerfile 20:59:45 -rw-rw-r-- 1 jenkins jenkins 677 Apr 6 20:58 GOVERNANCE.md 20:59:45 -rw-rw-r-- 1 jenkins jenkins 680 Apr 6 20:58 Jenkinsfile 20:59:45 -rw-rw-r-- 1 jenkins jenkins 11340 Apr 6 20:58 LICENSE 20:59:45 -rw-rw-r-- 1 jenkins jenkins 1779 Apr 6 20:58 Makefile 20:59:45 -rw-rw-r-- 1 jenkins jenkins 620 Apr 6 20:58 OWNERS.md 20:59:45 -rw-rw-r-- 1 jenkins jenkins 15321 Apr 6 20:58 README.md 20:59:45 -rw-rw-r-- 1 jenkins jenkins 5 Apr 6 20:58 VERSION 20:59:45 drwxrwxr-x 2 jenkins jenkins 4096 Apr 6 20:58 bin 20:59:45 drwxrwxr-x 3 jenkins jenkins 4096 Apr 6 20:58 cmd 20:59:45 -rw-r--r-- 1 jenkins jenkins 14200 Apr 6 20:59 coverage.out 20:59:45 drwxrwxr-x 2 jenkins jenkins 4096 Apr 6 20:58 driver 20:59:45 -rw-rw-r-- 1 jenkins jenkins 3402 Apr 6 20:58 go.mod 20:59:45 -rw-rw-r-- 1 jenkins jenkins 31553 Apr 6 20:58 go.sum 20:59:45 drwxrwxr-x 4 jenkins jenkins 4096 Apr 6 20:58 snap 20:59:45 -rw-rw-r-- 1 jenkins jenkins 713 Apr 6 20:58 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:59:46 + 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=28a8f33eed167af87626f36d0e3c7882023b7045 --label arch=amd64 --label version=0.0.0 . 20:59:46 Sending build context to Docker daemon 10.89MB 20:59:46 Step 1/25 : ARG BASE=golang:1.20-alpine3.17 20:59:46 Step 2/25 : FROM ${BASE} AS builder 20:59:46 ---> d81ab14565d1 20:59:46 Step 3/25 : ARG ADD_BUILD_TAGS="" 20:59:46 ---> Running in c924b41a8acc 20:59:46 Removing intermediate container c924b41a8acc 20:59:46 ---> 59412e6c6b3c 20:59:46 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 20:59:46 ---> Running in 479a081c9aa2 20:59:46 Removing intermediate container 479a081c9aa2 20:59:46 ---> 15712ffe187b 20:59:46 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 20:59:46 ---> Running in b35c371e1335 20:59:46 Removing intermediate container b35c371e1335 20:59:46 ---> 944cf51e6340 20:59:46 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 20:59:46 ---> Running in 333ba0872fb2 20:59:46 Removing intermediate container 333ba0872fb2 20:59:46 ---> ae796b1a3315 20:59:46 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 20:59:46 ---> Running in 34679f0d484a 20:59:46 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 20:59:47 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 20:59:47 OK: 269 MiB in 57 packages 20:59:47 Removing intermediate container 34679f0d484a 20:59:47 ---> 20a0e7cb486e 20:59:47 Step 8/25 : WORKDIR /device-rest-go 20:59:47 ---> Running in af760556da67 20:59:47 Removing intermediate container af760556da67 20:59:47 ---> 587fe4328ad9 20:59:47 Step 9/25 : COPY go.mod vendor* ./ 20:59:47 ---> 92db418e8641 20:59:47 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 20:59:47 ---> Running in 35dfb1a8538b 20:59:48 Removing intermediate container 35dfb1a8538b 20:59:48 ---> ff027a856800 20:59:48 Step 11/25 : COPY . . 20:59:49 ---> f0523b9f0cae 20:59:49 Step 12/25 : RUN $MAKE 20:59:49 ---> Running in 31e657034959 20:59:49 CGO_ENABLED=0 go build -tags "" -ldflags "-X github.com/edgexfoundry/device-rest-go.Version=0.0.0" -trimpath -mod=readonly -o cmd/device-rest ./cmd 21:00:07 Removing intermediate container 31e657034959 21:00:07 ---> 7878891da58e 21:00:07 Step 13/25 : FROM alpine:3.17 21:00:08 3.17: Pulling from library/alpine 21:00:08 f56be85fc22e: Pulling fs layer 21:00:08 f56be85fc22e: Verifying Checksum 21:00:08 f56be85fc22e: Download complete 21:00:08 f56be85fc22e: Pull complete 21:00:08 Digest: sha256:124c7d2707904eea7431fffe91522a01e5a861a624ee31d03372cc1d138a3126 21:00:08 Status: Downloaded newer image for alpine:3.17 21:00:08 ---> 9ed4aefc74f6 21:00:08 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 21:00:08 ---> Running in c22d8870c265 21:00:08 Removing intermediate container c22d8870c265 21:00:08 ---> 31a767bc5eb9 21:00:08 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 21:00:08 ---> Running in 88df50eaa716 21:00:08 Removing intermediate container 88df50eaa716 21:00:08 ---> c9cb3a7ef6bd 21:00:08 Step 16/25 : RUN apk add --update --no-cache dumb-init 21:00:09 ---> Running in 48bc2cd334d1 21:00:09 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 21:00:09 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 21:00:09 (1/1) Installing dumb-init (1.2.5-r2) 21:00:09 Executing busybox-1.35.0-r29.trigger 21:00:09 OK: 7 MiB in 16 packages 21:00:10 Removing intermediate container 48bc2cd334d1 21:00:10 ---> 89971635f8b1 21:00:10 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 21:00:10 ---> 3377fae86212 21:00:10 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 21:00:10 ---> 3b1f5fc9aa34 21:00:10 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 21:00:10 ---> 06fe22e4567b 21:00:10 Step 20/25 : EXPOSE 59986 21:00:10 ---> Running in e976332f59ac 21:00:11 Removing intermediate container e976332f59ac 21:00:11 ---> 15da25eaaee6 21:00:11 Step 21/25 : ENTRYPOINT ["/device-rest"] 21:00:11 ---> Running in 3d8ecc0cfd9b 21:00:11 Removing intermediate container 3d8ecc0cfd9b 21:00:11 ---> cb41e1a2bf23 21:00:11 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 21:00:11 ---> Running in 84b8de1f1ffd 21:00:11 Removing intermediate container 84b8de1f1ffd 21:00:11 ---> ce36153c779c 21:00:11 Step 23/25 : LABEL arch=amd64 21:00:11 ---> Running in e3c96bc48a7d 21:00:11 Removing intermediate container e3c96bc48a7d 21:00:11 ---> 553d0a84f092 21:00:11 Step 24/25 : LABEL git_sha=28a8f33eed167af87626f36d0e3c7882023b7045 21:00:11 ---> Running in 37ac3b2297d9 21:00:11 Removing intermediate container 37ac3b2297d9 21:00:11 ---> 0abf42447832 21:00:11 Step 25/25 : LABEL version=0.0.0 21:00:11 ---> Running in b6c0ee7a5589 21:00:11 Removing intermediate container b6c0ee7a5589 21:00:11 ---> e0326fb38719 21:00:11 [Warning] One or more build-args [ARCH] were not consumed 21:00:11 Successfully built e0326fb38719 21:00:11 Successfully tagged device-rest:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Docker Push) Stage "Docker Push" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Snap) Stage "Snap" skipped due to when conditional [Pipeline] } [Pipeline] // stage Post stage [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 21:00:12 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 21:00:12 21:00:12 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 21:00:13 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 21:00:13 latest: Pulling from edgex-lftools-log-publisher 21:00:13 5eb5b503b376: Pulling fs layer 21:00:13 5c69ac0246d0: Pulling fs layer 21:00:13 ec43610c2a17: Pulling fs layer 21:00:13 3a2ae6a8a46f: Pulling fs layer 21:00:13 33b1e0a273af: Pulling fs layer 21:00:13 5d3b04190fa2: Pulling fs layer 21:00:13 2f39f015ded8: Pulling fs layer 21:00:13 33b1e0a273af: Waiting 21:00:13 5d3b04190fa2: Waiting 21:00:13 5c69ac0246d0: Verifying Checksum 21:00:13 5c69ac0246d0: Download complete 21:00:13 3a2ae6a8a46f: Download complete 21:00:13 33b1e0a273af: Verifying Checksum 21:00:13 33b1e0a273af: Download complete 21:00:13 5d3b04190fa2: Verifying Checksum 21:00:13 5d3b04190fa2: Download complete 21:00:13 ec43610c2a17: Verifying Checksum 21:00:13 ec43610c2a17: Download complete 21:00:13 5eb5b503b376: Verifying Checksum 21:00:13 5eb5b503b376: Download complete 21:00:14 2f39f015ded8: Verifying Checksum 21:00:14 5eb5b503b376: Pull complete 21:00:14 5c69ac0246d0: Pull complete 21:00:15 ec43610c2a17: Pull complete 21:00:15 3a2ae6a8a46f: Pull complete 21:00:15 33b1e0a273af: Pull complete 21:00:15 5d3b04190fa2: Pull complete 21:00:16 Running on prd-ubuntu20.04-docker-arm64-4c-16g-7030 in /w/workspace/gexfoundry_device-rest-go_PR-286 [Pipeline] { [Pipeline] ws 21:00:16 Running in /w/workspace/device-rest-go/1 [Pipeline] { [Pipeline] checkout 21:00:16 The recommended git tool is: git 21:00:19 2f39f015ded8: Pull complete 21:00:19 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 21:00:19 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 21:00:19 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 21:00:19 prd-ubuntu20.04-docker-8c-8g-7029 does not seem to be running inside a container 21:00:19 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/gexfoundry_device-rest-go_PR-286 -v /w/workspace/gexfoundry_device-rest-go_PR-286:/w/workspace/gexfoundry_device-rest-go_PR-286:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-286@tmp:/w/workspace/gexfoundry_device-rest-go_PR-286@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 21:00:21 $ docker top 7ae7a12a2b1ac0d9faaf546dead9178a4b8a20d64bfc85702b04a7276027cb14 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 21:00:22 using credential edgex-jenkins-ssh 21:00:22 Cloning the remote Git repository 21:00:22 ---> job-cost.sh 21:00:22 lf-activate-venv: SKIPPING 21:00:22 INFO: No Stack... 21:00:22 INFO: Retrieving Pricing Info for: v3-standard-8 21:00:22 INFO: Archiving Costs [Pipeline] sh 21:00:22 + cut -d, -f6 21:00:22 + cat /w/workspace/gexfoundry_device-rest-go_PR-286/archives/cost.csv [Pipeline] lock 21:00:23 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-286-1-stack-cost] 21:00:22 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 21:00:22 > git init /w/workspace/device-rest-go/1 # timeout=10 21:00:22 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 21:00:22 > git --version # timeout=10 21:00:22 > git --version # 'git version 2.25.1' 21:00:22 using GIT_SSH to set credentials SSH Credentials for GitHub 21:00:22 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 21:00:23 Resource [jenkins-edgexfoundry-device-rest-go-PR-286-1-stack-cost] did not exist. Created. 21:00:23 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-286-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 21:00:23 + echo total: 0.2199999988079071 [Pipeline] stash 21:00:23 Stashed 1 file(s) [Pipeline] } 21:00:23 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-286-1-stack-cost] [Pipeline] // lock [Pipeline] } 21:00:23 $ docker stop --time=1 7ae7a12a2b1ac0d9faaf546dead9178a4b8a20d64bfc85702b04a7276027cb14 21:00:24 $ docker rm -f --volumes 7ae7a12a2b1ac0d9faaf546dead9178a4b8a20d64bfc85702b04a7276027cb14 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 21:00:24 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 21:00:24 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 21:00:25 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 21:00:25 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 21:00:25 using GIT_SSH to set credentials SSH Credentials for GitHub 21:00:25 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/286/head:refs/remotes/origin/PR-286 +refs/heads/main:refs/remotes/origin/main # timeout=10 21:00:25 Merging remotes/origin/main commit dd806b2640e0f0c8aa2f3a1f9570b634bbfd46b9 into PR head commit 28a8f33eed167af87626f36d0e3c7882023b7045 21:00:26 Merge succeeded, producing 28a8f33eed167af87626f36d0e3c7882023b7045 21:00:26 Checking out Revision 28a8f33eed167af87626f36d0e3c7882023b7045 (PR-286) 21:00:26 Commit message: "build(deps): Bump github.com/edgexfoundry/device-sdk-go/v3" 21:00:26 > git --version # timeout=10 21:00:26 > git --version # 'git version 2.25.1' 21:00:26 fatal: bad object 66200e8eedfc470904d6b329e562ec5b45423d6a 21:00:25 > git config core.sparsecheckout # timeout=10 21:00:25 > git checkout -f 28a8f33eed167af87626f36d0e3c7882023b7045 # timeout=10 21:00:26 > git remote # timeout=10 21:00:26 > git config --get remote.origin.url # timeout=10 21:00:26 using GIT_SSH to set credentials SSH Credentials for GitHub 21:00:26 > git merge dd806b2640e0f0c8aa2f3a1f9570b634bbfd46b9 # timeout=10 21:00:26 > git rev-parse HEAD^{commit} # timeout=10 21:00:26 > git config core.sparsecheckout # timeout=10 21:00:26 > git checkout -f 28a8f33eed167af87626f36d0e3c7882023b7045 # timeout=10 [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 21:00:27 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 21:00:27 % Total % Received % Xferd Average Speed Time Time Time Current 21:00:27 Dload Upload Total Spent Left Speed 21:00:28 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 12751 100 12751 0 0 50800 0 --:--:-- --:--:-- --:--:-- 50800 [Pipeline] sh 21:00:28 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 21:00:29 + sudo tee /etc/docker/daemon.new 21:00:29 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 21:00:29 { 21:00:29 "registry-mirrors": [ 21:00:29 "https://nexus3.edgexfoundry.org:10001" 21:00:29 ], 21:00:29 "bip": "10.250.0.254/24", 21:00:29 "hosts": [ 21:00:29 "tcp://0.0.0.0:5555", 21:00:29 "unix:///var/run/docker.sock" 21:00:29 ], 21:00:29 "mtu": 1458, 21:00:29 "selinux-enabled": true, 21:00:29 "seccomp-profile": "/etc/docker/seccomp.json" 21:00:29 } [Pipeline] sh 21:00:29 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 21:00:29 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 21:00:48 provisioning config files... 21:00:48 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/1@tmp/config14778054024391388802tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 21:00:48 ---> docker-login.sh 21:00:48 nexus3.edgexfoundry.org:10001 21:00:48 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 21:00:49 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 21:00:49 Configure a credential helper to remove this warning. See 21:00:49 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 21:00:49 21:00:49 Login Succeeded 21:00:49 nexus3.edgexfoundry.org:10002 21:00:49 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 21:00:49 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 21:00:49 Configure a credential helper to remove this warning. See 21:00:49 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 21:00:49 21:00:49 Login Succeeded 21:00:49 nexus3.edgexfoundry.org:10003 21:00:49 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 21:00:49 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 21:00:49 Configure a credential helper to remove this warning. See 21:00:49 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 21:00:49 21:00:49 Login Succeeded 21:00:49 nexus3.edgexfoundry.org:10004 21:00:49 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 21:00:50 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 21:00:50 Configure a credential helper to remove this warning. See 21:00:50 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 21:00:50 21:00:50 Login Succeeded 21:00:50 docker.io 21:00:50 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 21:00:50 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 21:00:50 Configure a credential helper to remove this warning. See 21:00:50 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 21:00:50 21:00:50 Login Succeeded 21:00:50 ---> docker-login.sh ends [Pipeline] } 21:00:50 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 21:00:51 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 21:00:51 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 21:00:51 ========================================================= 21:00:51 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine] 21:00:51 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 21:00:51 + docker build -t ci-base-image-arm64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine --build-arg MAKE=echo noop --target=builder . 21:00:51 Sending build context to Docker daemon 137.2kB 21:00:51 Step 1/12 : ARG BASE=golang:1.20-alpine3.17 21:00:51 Step 2/12 : FROM ${BASE} AS builder 21:00:53 1.20-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 21:00:53 af6eaf76a39c: Pulling fs layer 21:00:53 55522c791124: Pulling fs layer 21:00:53 ce5c4a1c91eb: Pulling fs layer 21:00:53 169dfbe0d373: Pulling fs layer 21:00:53 e1ff8fa3b103: Pulling fs layer 21:00:53 52ebb69f0ebf: Pulling fs layer 21:00:53 5abe8eddf0d5: Pulling fs layer 21:00:53 e1ff8fa3b103: Waiting 21:00:53 52ebb69f0ebf: Waiting 21:00:53 169dfbe0d373: Waiting 21:00:53 5abe8eddf0d5: Waiting 21:00:53 55522c791124: Verifying Checksum 21:00:53 55522c791124: Download complete 21:00:53 169dfbe0d373: Verifying Checksum 21:00:53 169dfbe0d373: Download complete 21:00:53 e1ff8fa3b103: Verifying Checksum 21:00:53 e1ff8fa3b103: Download complete 21:00:53 af6eaf76a39c: Download complete 21:00:54 af6eaf76a39c: Pull complete 21:00:54 5abe8eddf0d5: Verifying Checksum 21:00:54 5abe8eddf0d5: Download complete 21:00:55 55522c791124: Pull complete 21:00:56 52ebb69f0ebf: Verifying Checksum 21:00:56 52ebb69f0ebf: Download complete 21:00:56 ce5c4a1c91eb: Verifying Checksum 21:00:56 ce5c4a1c91eb: Download complete 21:01:08 ce5c4a1c91eb: Pull complete 21:01:08 169dfbe0d373: Pull complete 21:01:08 e1ff8fa3b103: Pull complete 21:01:15 52ebb69f0ebf: Pull complete 21:01:17 5abe8eddf0d5: Pull complete 21:01:17 Digest: sha256:978cc1420e451f27bd88fdeece3ad01a9109ec773b62f165dfc696fd516b3d8f 21:01:17 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine 21:01:17 ---> 6cb57ee374ae 21:01:17 Step 3/12 : ARG ADD_BUILD_TAGS="" 21:01:18 ---> Running in 9e241de04de3 21:01:18 Removing intermediate container 9e241de04de3 21:01:18 ---> 04a4e9f14a86 21:01:18 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 21:01:18 ---> Running in 14758ebf61fa 21:01:18 Removing intermediate container 14758ebf61fa 21:01:18 ---> e92bfefde939 21:01:18 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 21:01:18 ---> Running in 6e758ec12402 21:01:18 Removing intermediate container 6e758ec12402 21:01:18 ---> 65b931d38ac2 21:01:18 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 21:01:18 ---> Running in 83dd3ebc1dda 21:01:19 Removing intermediate container 83dd3ebc1dda 21:01:19 ---> 44a77d38c056 21:01:19 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 21:01:19 ---> Running in 86df15b6c393 21:01:20 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 21:01:21 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 21:01:22 (1/4) Installing openssh-keygen (9.1_p1-r2) 21:01:22 (2/4) Installing libedit (20221030.3.1-r0) 21:01:22 (3/4) Installing openssh-client-common (9.1_p1-r2) 21:01:22 (4/4) Installing openssh-client-default (9.1_p1-r2) 21:01:22 Executing busybox-1.35.0-r29.trigger 21:01:22 OK: 268 MiB in 57 packages 21:01:23 Removing intermediate container 86df15b6c393 21:01:23 ---> 474b37af7054 21:01:23 Step 8/12 : WORKDIR /device-rest-go 21:01:23 ---> Running in 6f134140b5d0 21:01:23 Removing intermediate container 6f134140b5d0 21:01:23 ---> 55a86a11f298 21:01:23 Step 9/12 : COPY go.mod vendor* ./ 21:01:24 ---> 78904c550255 21:01:24 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 21:01:24 ---> Running in 49376242f5d7 21:02:31 Removing intermediate container 49376242f5d7 21:02:31 ---> beb8916de76d 21:02:31 Step 11/12 : COPY . . 21:02:31 ---> 0eb8ffef880a 21:02:31 Step 12/12 : RUN $MAKE 21:02:31 ---> Running in a7cdfac48648 21:02:31 noop 21:02:31 Removing intermediate container a7cdfac48648 21:02:31 ---> 959d3398bc67 21:02:31 Successfully built 959d3398bc67 21:02:31 Successfully tagged ci-base-image-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 21:02:32 + docker inspect -f . ci-base-image-arm64 21:02:32 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 21:02:32 prd-ubuntu20.04-docker-arm64-4c-16g-7030 does not seem to be running inside a container 21:02:32 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/1 -v /w/workspace/device-rest-go/1:/w/workspace/device-rest-go/1:rw,z -v /w/workspace/device-rest-go/1@tmp:/w/workspace/device-rest-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 21:02:34 $ docker top 7a715ca570b3f0829672857ccb1292e63c4549c0b717a1acc02550a5e27facac -eo pid,comm [Pipeline] { [Pipeline] sh 21:02:34 + go version 21:02:34 go version go1.20.2 linux/arm64 [Pipeline] } 21:02:35 $ docker stop --time=1 7a715ca570b3f0829672857ccb1292e63c4549c0b717a1acc02550a5e27facac 21:02:36 $ docker rm -f --volumes 7a715ca570b3f0829672857ccb1292e63c4549c0b717a1acc02550a5e27facac [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 21:02:37 + docker inspect -f . ci-base-image-arm64 21:02:37 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 21:02:37 prd-ubuntu20.04-docker-arm64-4c-16g-7030 does not seem to be running inside a container 21:02:37 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged -v /var/run/docker.sock:/var/run/docker.sock -w /w/workspace/device-rest-go/1 -v /w/workspace/device-rest-go/1:/w/workspace/device-rest-go/1:rw,z -v /w/workspace/device-rest-go/1@tmp:/w/workspace/device-rest-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 21:02:39 $ docker top b438f7df4fdd3f151e3cbe53cec475c3fc80d6eee69edd898fe5af65c483fe50 -eo pid,comm [Pipeline] { [Pipeline] sh 21:02:39 + git config --global --add safe.directory /w/workspace/device-rest-go/1 [Pipeline] fileExists [Pipeline] sh 21:02:40 + make test 21:02:40 go test ./... -coverprofile=coverage.out ./... 21:03:12 ? github.com/edgexfoundry/device-rest-go [no test files] 21:05:04 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 21:05:04 ok github.com/edgexfoundry/device-rest-go/driver 0.099s coverage: 33.0% of statements 21:05:04 WARNING: Linting skipped (not on x86_64 or linter not installed) 21:05:04 go vet ./... 21:05:36 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 21:05:36 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 21:05:36 ./bin/test-attribution-txt.sh 21:05:36 An attribution for github.com/go-jose/go-jose/v3 is missing from Attribution.txt, please add [Pipeline] echo 21:05:36 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 21:05:36 $ docker stop --time=1 b438f7df4fdd3f151e3cbe53cec475c3fc80d6eee69edd898fe5af65c483fe50 21:05:39 $ docker rm -f --volumes b438f7df4fdd3f151e3cbe53cec475c3fc80d6eee69edd898fe5af65c483fe50 [Pipeline] // withDockerContainer [Pipeline] sh 21:05:40 + sudo chown -R jenkins:jenkins . [Pipeline] stash 21:05:40 Warning: overwriting stash ‘coverage-report’ 21:05:40 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 21:05:41 + sudo chown -R jenkins:jenkins . [Pipeline] sh 21:05:41 + ls -al . 21:05:41 total 180 21:05:41 drwxrwxr-x 8 jenkins jenkins 4096 Apr 6 21:02 . 21:05:41 drwxrwxr-x 4 jenkins jenkins 4096 Apr 6 21:00 .. 21:05:41 -rw-rw-r-- 1 jenkins jenkins 151 Apr 6 21:00 .dockerignore 21:05:41 drwxrwxr-x 8 jenkins jenkins 4096 Apr 6 21:00 .git 21:05:41 drwxrwxr-x 3 jenkins jenkins 4096 Apr 6 21:00 .github 21:05:41 -rw-rw-r-- 1 jenkins jenkins 329 Apr 6 21:00 .gitignore 21:05:41 -rw-rw-r-- 1 jenkins jenkins 41 Apr 6 21:00 .golangci.yml 21:05:41 -rw-rw-r-- 1 jenkins jenkins 9202 Apr 6 21:00 Attribution.txt 21:05:41 -rw-rw-r-- 1 jenkins jenkins 13085 Apr 6 21:00 CHANGELOG.md 21:05:41 -rw-rw-r-- 1 jenkins jenkins 1578 Apr 6 21:00 Dockerfile 21:05:41 -rw-rw-r-- 1 jenkins jenkins 677 Apr 6 21:00 GOVERNANCE.md 21:05:41 -rw-rw-r-- 1 jenkins jenkins 680 Apr 6 21:00 Jenkinsfile 21:05:41 -rw-rw-r-- 1 jenkins jenkins 11340 Apr 6 21:00 LICENSE 21:05:41 -rw-rw-r-- 1 jenkins jenkins 1779 Apr 6 21:00 Makefile 21:05:41 -rw-rw-r-- 1 jenkins jenkins 620 Apr 6 21:00 OWNERS.md 21:05:41 -rw-rw-r-- 1 jenkins jenkins 15321 Apr 6 21:00 README.md 21:05:41 -rw-rw-r-- 1 jenkins jenkins 5 Apr 6 20:58 VERSION 21:05:41 drwxrwxr-x 2 jenkins jenkins 4096 Apr 6 21:00 bin 21:05:41 drwxrwxr-x 3 jenkins jenkins 4096 Apr 6 21:00 cmd 21:05:41 -rw-r--r-- 1 jenkins jenkins 14200 Apr 6 21:05 coverage.out 21:05:41 drwxrwxr-x 2 jenkins jenkins 4096 Apr 6 21:00 driver 21:05:41 -rw-rw-r-- 1 jenkins jenkins 3402 Apr 6 21:00 go.mod 21:05:41 -rw-rw-r-- 1 jenkins jenkins 31553 Apr 6 21:00 go.sum 21:05:41 drwxrwxr-x 4 jenkins jenkins 4096 Apr 6 21:00 snap 21:05:41 -rw-rw-r-- 1 jenkins jenkins 713 Apr 6 21:00 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 21:05:42 + 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=28a8f33eed167af87626f36d0e3c7882023b7045 --label arch=arm64 --label version=0.0.0 . 21:05:42 Sending build context to Docker daemon 152.1kB 21:05:42 Step 1/25 : ARG BASE=golang:1.20-alpine3.17 21:05:42 Step 2/25 : FROM ${BASE} AS builder 21:05:42 ---> 959d3398bc67 21:05:42 Step 3/25 : ARG ADD_BUILD_TAGS="" 21:05:42 ---> Running in c338261d001d 21:05:43 Removing intermediate container c338261d001d 21:05:43 ---> 8fed474bfc11 21:05:43 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 21:05:43 ---> Running in 421de0f6d57a 21:05:43 Removing intermediate container 421de0f6d57a 21:05:43 ---> ac642d52fab2 21:05:43 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 21:05:43 ---> Running in 86dba4c116fe 21:05:44 Removing intermediate container 86dba4c116fe 21:05:44 ---> e2d9c95bd852 21:05:44 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 21:05:44 ---> Running in 075c98dd65ac 21:05:44 Removing intermediate container 075c98dd65ac 21:05:44 ---> 7404944f2d9b 21:05:44 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 21:05:44 ---> Running in db447e1fd1a6 21:05:46 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 21:05:46 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 21:05:48 OK: 268 MiB in 57 packages 21:05:48 Removing intermediate container db447e1fd1a6 21:05:48 ---> a5341d7bf269 21:05:48 Step 8/25 : WORKDIR /device-rest-go 21:05:48 ---> Running in 341cc470a2fa 21:05:49 Removing intermediate container 341cc470a2fa 21:05:49 ---> a7569c6808e6 21:05:49 Step 9/25 : COPY go.mod vendor* ./ 21:05:49 ---> 0e884ef06d64 21:05:49 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 21:05:49 ---> Running in 19b6b2e51e22 21:05:52 Removing intermediate container 19b6b2e51e22 21:05:52 ---> 06a96e097069 21:05:52 Step 11/25 : COPY . . 21:05:52 ---> 8a604c73141c 21:05:52 Step 12/25 : RUN $MAKE 21:05:54 ---> Running in f893b157b264 21:05:55 CGO_ENABLED=0 go build -tags "" -ldflags "-X github.com/edgexfoundry/device-rest-go.Version=0.0.0" -trimpath -mod=readonly -o cmd/device-rest ./cmd 21:08:02 Removing intermediate container f893b157b264 21:08:02 ---> 09e219267f77 21:08:02 Step 13/25 : FROM alpine:3.17 21:08:02 3.17: Pulling from library/alpine 21:08:02 c41833b44d91: Pulling fs layer 21:08:02 c41833b44d91: Download complete 21:08:02 c41833b44d91: Pull complete 21:08:02 Digest: sha256:124c7d2707904eea7431fffe91522a01e5a861a624ee31d03372cc1d138a3126 21:08:02 Status: Downloaded newer image for alpine:3.17 21:08:02 ---> 51e60588ff2c 21:08:02 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 21:08:02 ---> Running in 147b6ab5afe1 21:08:02 Removing intermediate container 147b6ab5afe1 21:08:02 ---> c43deffb812a 21:08:02 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 21:08:02 ---> Running in fe19ec801558 21:08:02 Removing intermediate container fe19ec801558 21:08:02 ---> 8b0b909d156c 21:08:02 Step 16/25 : RUN apk add --update --no-cache dumb-init 21:08:02 ---> Running in fb7c8015ae74 21:08:02 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 21:08:02 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 21:08:02 (1/1) Installing dumb-init (1.2.5-r2) 21:08:02 Executing busybox-1.35.0-r29.trigger 21:08:02 OK: 8 MiB in 16 packages 21:08:02 Removing intermediate container fb7c8015ae74 21:08:02 ---> 7b659b68fd13 21:08:02 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 21:08:04 ---> ef040310e25b 21:08:04 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 21:08:04 ---> 6691bc1e82db 21:08:04 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 21:08:07 ---> d0f2f1f023c3 21:08:07 Step 20/25 : EXPOSE 59986 21:08:07 ---> Running in b3d51c2e7822 21:08:07 Removing intermediate container b3d51c2e7822 21:08:07 ---> 234ecdc4c810 21:08:07 Step 21/25 : ENTRYPOINT ["/device-rest"] 21:08:07 ---> Running in b88f73114117 21:08:08 Removing intermediate container b88f73114117 21:08:08 ---> 74285bd34577 21:08:08 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 21:08:08 ---> Running in ecf5a8c5a307 21:08:08 Removing intermediate container ecf5a8c5a307 21:08:08 ---> 016044f7765b 21:08:08 Step 23/25 : LABEL arch=arm64 21:08:08 ---> Running in 00845219bbd8 21:08:08 Removing intermediate container 00845219bbd8 21:08:08 ---> 8efc790d1a02 21:08:08 Step 24/25 : LABEL git_sha=28a8f33eed167af87626f36d0e3c7882023b7045 21:08:08 ---> Running in 847e37f722df 21:08:09 Removing intermediate container 847e37f722df 21:08:09 ---> c8ee349048ed 21:08:09 Step 25/25 : LABEL version=0.0.0 21:08:09 ---> Running in b6bdadbd5477 21:08:09 Removing intermediate container b6bdadbd5477 21:08:09 ---> 19ec41fbcf25 21:08:09 [Warning] One or more build-args [ARCH] were not consumed 21:08:09 Successfully built 19ec41fbcf25 21:08:09 Successfully tagged device-rest-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Docker Push) Stage "Docker Push" skipped due to when conditional [Pipeline] } [Pipeline] // stage Post stage [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 21:08:10 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 21:08:10 21:08:10 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 21:08:10 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 21:08:10 arm64: Pulling from edgex-lftools-log-publisher 21:08:10 8998bd30e6a1: Pulling fs layer 21:08:10 04944245beec: Pulling fs layer 21:08:10 699f458cf7ca: Pulling fs layer 21:08:10 765212b225bb: Pulling fs layer 21:08:10 f23df028b6ca: Pulling fs layer 21:08:10 d65c8cfc05b1: Pulling fs layer 21:08:10 2437ff75d9bd: Pulling fs layer 21:08:10 f23df028b6ca: Waiting 21:08:10 d65c8cfc05b1: Waiting 21:08:10 2437ff75d9bd: Waiting 21:08:10 765212b225bb: Waiting 21:08:11 04944245beec: Verifying Checksum 21:08:11 04944245beec: Download complete 21:08:11 765212b225bb: Verifying Checksum 21:08:11 765212b225bb: Download complete 21:08:11 f23df028b6ca: Verifying Checksum 21:08:11 f23df028b6ca: Download complete 21:08:11 d65c8cfc05b1: Verifying Checksum 21:08:11 d65c8cfc05b1: Download complete 21:08:11 699f458cf7ca: Verifying Checksum 21:08:11 699f458cf7ca: Download complete 21:08:11 8998bd30e6a1: Verifying Checksum 21:08:11 8998bd30e6a1: Download complete 21:08:13 2437ff75d9bd: Verifying Checksum 21:08:13 2437ff75d9bd: Download complete 21:08:15 8998bd30e6a1: Pull complete 21:08:15 04944245beec: Pull complete 21:08:17 699f458cf7ca: Pull complete 21:08:17 765212b225bb: Pull complete 21:08:18 f23df028b6ca: Pull complete 21:08:18 d65c8cfc05b1: Pull complete 21:08:33 2437ff75d9bd: Pull complete 21:08:33 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 21:08:33 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 21:08:33 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 21:08:33 prd-ubuntu20.04-docker-arm64-4c-16g-7030 does not seem to be running inside a container 21:08:33 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/device-rest-go/1 -v /w/workspace/device-rest-go/1:/w/workspace/device-rest-go/1:rw,z -v /w/workspace/device-rest-go/1@tmp:/w/workspace/device-rest-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 21:08:36 $ docker top c0e8e8683aa6d95a0b2010d7784f6d448d5318a6780c34ec876d4844dbc5f089 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 21:08:36 ---> job-cost.sh 21:08:36 lf-activate-venv: SKIPPING 21:08:36 INFO: No Stack... 21:08:37 INFO: Retrieving Pricing Info for: v3-standard-4 21:08:38 INFO: Archiving Costs [Pipeline] sh 21:08:38 + cat /w/workspace/device-rest-go/1/archives/cost.csv 21:08:38 + cut -d, -f6 [Pipeline] lock 21:08:38 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-286-1-stack-cost] 21:08:38 Resource [jenkins-edgexfoundry-device-rest-go-PR-286-1-stack-cost] did not exist. Created. 21:08:38 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-286-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 21:08:39 /w/workspace/device-rest-go/1@tmp/durable-0697f015/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 21:08:39 + echo total: 0.10999999940395355 [Pipeline] stash 21:08:39 Warning: overwriting stash ‘stack-cost’ 21:08:40 Stashed 1 file(s) [Pipeline] } 21:08:40 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-286-1-stack-cost] [Pipeline] // lock [Pipeline] } 21:08:40 $ docker stop --time=1 c0e8e8683aa6d95a0b2010d7784f6d448d5318a6780c34ec876d4844dbc5f089 21:08:41 $ docker rm -f --volumes c0e8e8683aa6d95a0b2010d7784f6d448d5318a6780c34ec876d4844dbc5f089 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // ws [Pipeline] } [Pipeline] // node [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // parallel [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (CodeCov) [Pipeline] unstash [Pipeline] configFileProvider 21:08:42 provisioning config files... 21:08:42 copy managed file [device-rest-go-codecov-token] to file:/w/workspace/gexfoundry_device-rest-go_PR-286@tmp/config14031213688058294935tmp [Pipeline] { [Pipeline] sh 21:08:43 + set +x 21:08:43 + curl -s https://codecov.io/bash 21:08:43 + bash -s -- 21:08:43 21:08:43 _____ _ 21:08:43 / ____| | | 21:08:43 | | ___ __| | ___ ___ _____ __ 21:08:43 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 21:08:43 | |___| (_) | (_| | __/ (_| (_) \ V / 21:08:43 \_____\___/ \__,_|\___|\___\___/ \_/ 21:08:43 Bash-1.0.6 21:08:43 21:08:43 21:08:43 ==> git version 2.25.1 found 21:08:43 ==> curl 7.68.0 (x86_64-pc-linux-gnu) libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3 21:08:43 Release-Date: 2020-01-08 21:08:43 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 21:08:43 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 21:08:43 ==> Jenkins CI detected. 21:08:43 current dir:  /w/workspace/gexfoundry_device-rest-go_PR-286 21:08:43 project root: . 21:08:43 --> token set from env 21:08:43 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 21:08:43 ==> Running gcov in . (disable via -X gcov) 21:08:43 ==> Python coveragepy not found 21:08:43 ==> Searching for coverage reports in: 21:08:43 + . 21:08:43 -> Found 1 reports 21:08:43 ==> Detecting git/mercurial file structure 21:08:43 ==> Reading reports 21:08:43 + ./coverage.out bytes=14200 21:08:43 ==> Appending adjustments 21:08:43 https://docs.codecov.io/docs/fixing-reports 21:08:43 + Found adjustments 21:08:43 ==> Gzipping contents 21:08:43 4.0K /tmp/codecov.3HkFmI.gz 21:08:43 ==> Uploading reports 21:08:43 url: https://codecov.io 21:08:43 query: branch=PR-286&commit=28a8f33eed167af87626f36d0e3c7882023b7045&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-286%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=286&job=&cmd_args= 21:08:43 -> Pinging Codecov 21:08:43 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=c51feb23-73ac-4f49-b3d1-d26df23137db&branch=PR-286&commit=28a8f33eed167af87626f36d0e3c7882023b7045&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-286%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=286&job=&cmd_args= 21:08:43 -> Uploading to 21:08:43 https://storage.googleapis.com/codecov/v4/raw/2023-04-06/4E5D53B4F1F92C436F7061BF334D961C/28a8f33eed167af87626f36d0e3c7882023b7045/800c564f-5414-419c-97c8-4d96a549e20e.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20230406%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20230406T210843Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=83243af7bc756e610e0cbb5934e84aeccda2bdd5ab04d40916d95a57575f105e 21:08:43 % Total % Received % Xferd Average Speed Time Time Time Current 21:08:43 Dload Upload Total Spent Left Speed 21:08:44 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 2437 0 0 100 2437 0 9196 --:--:-- --:--:-- --:--:-- 9196 21:08:44 -> Reports have been successfully queued for processing at https://app.codecov.io/github/edgexfoundry/device-rest-go/commit/28a8f33eed167af87626f36d0e3c7882023b7045 [Pipeline] } 21:08:44 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Snyk Dependency Scan) Stage "Snyk Dependency Scan" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Archive Prep) Stage "Archive Prep" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Publish Swagger) Stage "Publish Swagger" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Semver) Stage "Semver" skipped due to when conditional [Pipeline] stage [Pipeline] { (Tag) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Pre-Release Version) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Experimental Tag) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Stable (Named) Tag) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Declarative: Post Actions) [Pipeline] stage [Pipeline] { (LF Post Build Actions) [Pipeline] sh 21:08:45 + [ -d /w/workspace/gexfoundry_device-rest-go_PR-286/archives ] 21:08:45 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-286/archives 21:08:45 total 16 21:08:45 drwxr-xr-x 3 root root 4096 Apr 6 21:00 . 21:08:45 drwxrwxr-x 10 jenkins jenkins 4096 Apr 6 21:00 .. 21:08:45 drwxr-xr-x 2 root root 4096 Apr 6 21:00 cost 21:08:45 -rw-r--r-- 1 root root 86 Apr 6 21:00 cost.csv 21:08:45 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-rest-go_PR-286/archives 21:08:45 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-286/archives 21:08:45 total 16 21:08:45 drwxr-xr-x 3 jenkins jenkins 4096 Apr 6 21:00 . 21:08:45 drwxrwxr-x 10 jenkins jenkins 4096 Apr 6 21:00 .. 21:08:45 drwxr-xr-x 2 jenkins jenkins 4096 Apr 6 21:00 cost 21:08:45 -rw-r--r-- 1 jenkins jenkins 86 Apr 6 21:00 cost.csv [Pipeline] libraryResource [Pipeline] sh 21:08:46 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 21:08:46 ---> package-listing.sh 21:08:46 ++ facter osfamily 21:08:46 ++ tr '[:upper:]' '[:lower:]' 21:08:47 + OS_FAMILY=debian 21:08:47 + workspace=/w/workspace/gexfoundry_device-rest-go_PR-286 21:08:47 + START_PACKAGES=/tmp/packages_start.txt 21:08:47 + END_PACKAGES=/tmp/packages_end.txt 21:08:47 + DIFF_PACKAGES=/tmp/packages_diff.txt 21:08:47 + PACKAGES=/tmp/packages_start.txt 21:08:47 + '[' /w/workspace/gexfoundry_device-rest-go_PR-286 ']' 21:08:47 + PACKAGES=/tmp/packages_end.txt 21:08:47 + case "${OS_FAMILY}" in 21:08:47 + dpkg -l 21:08:47 + grep '^ii' 21:08:47 + '[' -f /tmp/packages_start.txt ']' 21:08:47 + '[' -f /tmp/packages_end.txt ']' 21:08:47 + diff /tmp/packages_start.txt /tmp/packages_end.txt 21:08:47 + '[' /w/workspace/gexfoundry_device-rest-go_PR-286 ']' 21:08:47 + mkdir -p /w/workspace/gexfoundry_device-rest-go_PR-286/archives/ 21:08:47 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/gexfoundry_device-rest-go_PR-286/archives/ [Pipeline] echo 21:08:47 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-286/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 21:08:47 + facter operatingsystem [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 21:08:48 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 21:08:48 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 21:08:48 prd-ubuntu20.04-docker-8c-8g-7029 does not seem to be running inside a container 21:08:48 $ 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-286/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-286 -v /w/workspace/gexfoundry_device-rest-go_PR-286:/w/workspace/gexfoundry_device-rest-go_PR-286:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-286@tmp:/w/workspace/gexfoundry_device-rest-go_PR-286@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 21:08:51 $ docker top ce44329a199e7fefe5d8b50b77564807c45ad4d5adae73c951da2cd8a7b64200 -eo pid,comm [Pipeline] { [Pipeline] sh 21:08:52 + touch /tmp/pre-build-complete [Pipeline] sh 21:08:52 + mkdir -p /var/log/sysstat [Pipeline] sh 21:08:53 + ls /var/log/sa-host 21:08:53 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 21:08:53 provisioning config files... 21:08:53 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-286@tmp/config14426142539307079233tmp [Pipeline] { [Pipeline] echo 21:08:53 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 21:08:53 ---> create-netrc.sh [Pipeline] } 21:08:53 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 21:08:54 ---> python-tools-install.sh [Pipeline] echo 21:08:54 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 21:08:54 ---> sudo-logs.sh 21:08:54 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 21:08:54 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 21:08:54 ---> job-cost.sh 21:08:54 lf-activate-venv: SKIPPING 21:08:54 DEBUG: total: 0.2199999988079071 21:08:54 INFO: Retrieving Stack Cost... 21:08:55 INFO: Retrieving Pricing Info for: v3-standard-8 21:08:55 INFO: Archiving Costs [Pipeline] echo 21:08:55 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 21:08:56 ---> logs-deploy.sh 21:08:56 lf-activate-venv: SKIPPING 21:08:56 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-286/1 21:08:56 INFO: archiving workspace using pattern(s): 21:08:56 Archives upload complete. 21:08:56 INFO: archiving logs to Nexus