Pull request #294 opened Connecting to https://api.github.com using edgex-jenkins github personal access token Obtained Jenkinsfile from d113e70528a9acbdce16d1e5b1279bb33f7249f1+0c5eec98d3be44e3458d60972803f48ebbd423fa (86357393c9e2eac820690cc270e2eeff3fa6dbf7) 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-ssh14871613543077762814.key > git ls-remote -h -t -- git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Found match: refs/tags/stable revision 8d11186b4ecddd371e5d69e8bc5262dee0d7f4a1 Resolving tag commit... (remote references may be a lightweight tag or an annotated tag) > git rev-parse --resolve-git-dir /var/lib/jenkins/caches/git-95b00d7e16de695d9f4849f078f37a0f/.git # timeout=10 Setting origin to git@github.com:edgexfoundry/edgex-global-pipelines.git > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Fetching origin... Fetching upstream changes from origin > git --version # timeout=10 > git --version # 'git version 2.16.6' > git config --get remote.origin.url # timeout=10 using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/caches/git-95b00d7e16de695d9f4849f078f37a0f@tmp/jenkins-gitclient-ssh13603691066233091125.key > git fetch --tags --progress -- origin +refs/heads/*:refs/remotes/origin/* # timeout=10 > git rev-parse refs/tags/stable^{commit} # timeout=10 Resolved tag stable revision 8d11186b4ecddd371e5d69e8bc5262dee0d7f4a1 The recommended git tool is: git using credential edgex-jenkins-ssh 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-294/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-294/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh13313629086634693524.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-294/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh6186499776158133561.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision 8d11186b4ecddd371e5d69e8bc5262dee0d7f4a1 (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f 8d11186b4ecddd371e5d69e8bc5262dee0d7f4a1 # timeout=10 Commit message: "fix: bug with isLTS relying on env.GIT_BRANCH inside cd-management repo (#429)" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 > 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-ssh14655307664213664607.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-294/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-294/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e@tmp/jenkins-gitclient-ssh138175760697273781.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 8d11186b4ecddd371e5d69e8bc5262dee0d7f4a1 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 Running on prd-ubuntu20.04-docker-8c-8g-8972 in /w/workspace/gexfoundry_device-rest-go_PR-294 [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-294 # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git > git --version # timeout=10 > git --version # 'git version 2.25.1' using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 Merging remotes/origin/main commit 0c5eec98d3be44e3458d60972803f48ebbd423fa into PR head commit d113e70528a9acbdce16d1e5b1279bb33f7249f1 Merge succeeded, producing d113e70528a9acbdce16d1e5b1279bb33f7249f1 Checking out Revision d113e70528a9acbdce16d1e5b1279bb33f7249f1 (PR-294) 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 8d11186b4ecddd371e5d69e8bc5262dee0d7f4a1 [Pipeline] } [Pipeline] // stage > 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/294/head:refs/remotes/origin/PR-294 +refs/heads/main:refs/remotes/origin/main # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f d113e70528a9acbdce16d1e5b1279bb33f7249f1 # 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 0c5eec98d3be44e3458d60972803f48ebbd423fa # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f d113e70528a9acbdce16d1e5b1279bb33f7249f1 # timeout=10 [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 20:12:59 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 20:12:59 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 20:12:59 ========================================================= 20:12:59 EdgeX Global Pipelines Version Info 20:12:59 ========================================================= [Pipeline] libraryResource [Pipeline] sh 20:13:00 ------------------- 20:13:00 stable info: 20:13:00 ------------------- 20:13:00 Commited By: Bill Mahoney bill.mahoney@intel.com 20:13:00 Commit SHA: 8d11186b4ecddd371e5d69e8bc5262dee0d7f4a1 20:13:00 Message: update stable to v1.0.248 20:13:01 ------------------- 20:13:01 experimental info: 20:13:01 ------------------- 20:13:01 Commited By: **** collab-it+edgex@linuxfoundation.org 20:13:01 Commit SHA: 8d11186b4ecddd371e5d69e8bc5262dee0d7f4a1 20:13:01 Message: update experimental to v1.0.248 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 20:13:01 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 20:13:01 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 20:13:01 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 20:13:01 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 20:13:01 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 20:13:01 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.20 [Pipeline] echo 20:13:01 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 20:13:01 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 20:13:01 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 20:13:01 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 20:13:02 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 20:13:02 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 20:13:02 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 20:13:02 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 20:13:02 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 20:13:02 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 20:13:02 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 20:13:02 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 20:13:02 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 20:13:02 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 20:13:02 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 20:13:02 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 20:13:02 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 20:13:02 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 20:13:02 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 20:13:02 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 20:13:02 [edgeXSetupEnvironment]: set envvar SNYK_DEBUG = false [Pipeline] echo 20:13:02 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-294 [Pipeline] echo 20:13:02 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-294 [Pipeline] echo 20:13:02 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-294 [Pipeline] echo 20:13:02 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = d113e70528a9acbdce16d1e5b1279bb33f7249f1 [Pipeline] echo 20:13:02 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = d113e70 [Pipeline] echo 20:13:02 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 20:13:02 provisioning config files... 20:13:02 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-294@tmp/config7550487689541028011tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:13:03 ---> docker-login.sh 20:13:03 nexus3.edgexfoundry.org:10001 20:13:03 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:13:03 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:13:03 Configure a credential helper to remove this warning. See 20:13:03 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:13:03 20:13:03 Login Succeeded 20:13:03 nexus3.edgexfoundry.org:10002 20:13:03 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:13:03 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:13:03 Configure a credential helper to remove this warning. See 20:13:03 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:13:03 20:13:03 Login Succeeded 20:13:03 nexus3.edgexfoundry.org:10003 20:13:03 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:13:03 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:13:03 Configure a credential helper to remove this warning. See 20:13:03 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:13:03 20:13:03 Login Succeeded 20:13:03 nexus3.edgexfoundry.org:10004 20:13:03 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:13:03 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:13:03 Configure a credential helper to remove this warning. See 20:13:03 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:13:03 20:13:03 Login Succeeded 20:13:03 docker.io 20:13:03 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:13:03 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:13:03 Configure a credential helper to remove this warning. See 20:13:03 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:13:03 20:13:03 Login Succeeded 20:13:03 ---> docker-login.sh ends [Pipeline] } 20:13:04 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 20:13:04 + git rev-list -1 --merges d113e70528a9acbdce16d1e5b1279bb33f7249f1~1..d113e70528a9acbdce16d1e5b1279bb33f7249f1 [Pipeline] echo 20:13:04 -----------> git rev-list -1 --merges d113e70528a9acbdce16d1e5b1279bb33f7249f1~1..d113e70528a9acbdce16d1e5b1279bb33f7249f1 d113e70528a9acbdce16d1e5b1279bb33f7249f1 [false] [Pipeline] sh 20:13:04 + git log --format=format:%s -1 d113e70528a9acbdce16d1e5b1279bb33f7249f1 [Pipeline] echo 20:13:05 ========================================================= 20:13:05 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 20:13:05 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 20:13:05 + git log --format=format:%s -1 d113e70528a9acbdce16d1e5b1279bb33f7249f1 [Pipeline] echo 20:13:05 [semverPrep] GIT_COMMIT: d113e70528a9acbdce16d1e5b1279bb33f7249f1, Commit Message: build(deps): Bump github.com/edgexfoundry/device-sdk-go/v3 [Pipeline] echo 20:13:05 [semverPrep] This is not a build commit. [Pipeline] sh 20:13:05 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 20:13:05 + grep -v github /etc/ssh/ssh_known_hosts 20:13:05 + [ -e /tmp/ssh_known_hosts ] 20:13:05 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 20:13:05 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 20:13:05 + sudo tee -a /etc/ssh/ssh_known_hosts 20:13:05 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:13:06 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 20:13:06 20:13:06 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:13:06 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 20:13:06 0.1.4: Pulling from edgex-devops/py-git-semver 20:13:06 b85a868b505f: Pulling fs layer 20:13:06 e2be974225ed: Pulling fs layer 20:13:06 339a4e72a1f5: Pulling fs layer 20:13:06 988bab9f4d93: Pulling fs layer 20:13:06 1469e6f7b9e6: Pulling fs layer 20:13:06 eaf3925da568: Pulling fs layer 20:13:06 bab4dde63d76: Pulling fs layer 20:13:06 bde34c3a00c8: Pulling fs layer 20:13:06 b352a97aabf1: Pulling fs layer 20:13:06 4872d77fe225: Pulling fs layer 20:13:06 5851b861e8e6: Pulling fs layer 20:13:06 988bab9f4d93: Waiting 20:13:06 1469e6f7b9e6: Waiting 20:13:06 eaf3925da568: Waiting 20:13:06 bab4dde63d76: Waiting 20:13:06 bde34c3a00c8: Waiting 20:13:06 b352a97aabf1: Waiting 20:13:06 4872d77fe225: Waiting 20:13:06 5851b861e8e6: Waiting 20:13:06 e2be974225ed: Verifying Checksum 20:13:06 e2be974225ed: Download complete 20:13:06 988bab9f4d93: Download complete 20:13:06 1469e6f7b9e6: Verifying Checksum 20:13:06 1469e6f7b9e6: Download complete 20:13:07 eaf3925da568: Verifying Checksum 20:13:07 eaf3925da568: Download complete 20:13:07 339a4e72a1f5: Verifying Checksum 20:13:07 339a4e72a1f5: Download complete 20:13:07 bde34c3a00c8: Download complete 20:13:07 b352a97aabf1: Download complete 20:13:07 b85a868b505f: Verifying Checksum 20:13:07 b85a868b505f: Download complete 20:13:07 4872d77fe225: Verifying Checksum 20:13:07 4872d77fe225: Download complete 20:13:07 5851b861e8e6: Verifying Checksum 20:13:07 5851b861e8e6: Download complete 20:13:07 bab4dde63d76: Verifying Checksum 20:13:07 bab4dde63d76: Download complete 20:13:08 b85a868b505f: Pull complete 20:13:08 e2be974225ed: Pull complete 20:13:08 339a4e72a1f5: Pull complete 20:13:09 988bab9f4d93: Pull complete 20:13:09 1469e6f7b9e6: Pull complete 20:13:09 eaf3925da568: Pull complete 20:13:11 bab4dde63d76: Pull complete 20:13:11 bde34c3a00c8: Pull complete 20:13:11 b352a97aabf1: Pull complete 20:13:11 4872d77fe225: Pull complete 20:13:11 5851b861e8e6: Pull complete 20:13:11 Digest: sha256:59a28aa3b44c0bc56b9c3d2e9ecabe42e63693d939cc6e425eb8786f29f663d8 20:13:11 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 20:13:11 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 20:13:12 prd-ubuntu20.04-docker-8c-8g-8972 does not seem to be running inside a container 20:13:12 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/gexfoundry_device-rest-go_PR-294 -v /w/workspace/gexfoundry_device-rest-go_PR-294:/w/workspace/gexfoundry_device-rest-go_PR-294:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-294@tmp:/w/workspace/gexfoundry_device-rest-go_PR-294@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 ******** nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 cat 20:13:13 $ docker top 3d5da4e289dfca1c0b5365cb5b55c9a3a99b5044679f3a8ca33de3c8444c26a5 -eo pid,comm [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 20:13:13 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 20:13:13 [ssh-agent] Looking for ssh-agent implementation... 20:13:13 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 20:13:13 $ docker exec 3d5da4e289dfca1c0b5365cb5b55c9a3a99b5044679f3a8ca33de3c8444c26a5 ssh-agent 20:13:13 SSH_AUTH_SOCK=/tmp/ssh-wZpIZPEnkz8z/agent.32 20:13:13 SSH_AGENT_PID=38 20:13:13 Running ssh-add (command line suppressed) 20:13:13 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-294@tmp/private_key_3948055754842543056.key (/w/workspace/gexfoundry_device-rest-go_PR-294@tmp/private_key_3948055754842543056.key) 20:13:13 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 20:13:13 + git tag --points-at HEAD [Pipeline] } 20:13:13 $ docker exec --env ******** --env ******** 3d5da4e289dfca1c0b5365cb5b55c9a3a99b5044679f3a8ca33de3c8444c26a5 ssh-agent -k 20:13:14 unset SSH_AUTH_SOCK; 20:13:14 unset SSH_AGENT_PID; 20:13:14 echo Agent pid 38 killed; 20:13:14 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 20:13:14 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 20:13:14 [ssh-agent] Looking for ssh-agent implementation... 20:13:14 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 20:13:14 $ docker exec 3d5da4e289dfca1c0b5365cb5b55c9a3a99b5044679f3a8ca33de3c8444c26a5 ssh-agent 20:13:14 SSH_AUTH_SOCK=/tmp/ssh-s9lD0gsqqYv0/agent.70 20:13:14 SSH_AGENT_PID=76 20:13:14 Running ssh-add (command line suppressed) 20:13:14 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-294@tmp/private_key_693265548596412556.key (/w/workspace/gexfoundry_device-rest-go_PR-294@tmp/private_key_693265548596412556.key) 20:13:14 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 20:13:14 + git semver init 20:13:15 2023-04-18 20:13:15,006 [run_init] DEBUG init version:0.0.0 force:False 20:13:15 2023-04-18 20:13:15,007 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/gexfoundry_device-rest-go_PR-294/.semver 20:13:15 2023-04-18 20:13:15,007 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-rest-go.git /w/workspace/gexfoundry_device-rest-go_PR-294/.semver 20:13:15 2023-04-18 20:13:15,007 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-rest-go.git', '/w/workspace/gexfoundry_device-rest-go_PR-294/.semver'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-294, universal_newlines=False, shell=None, istream=None) 20:13:16 2023-04-18 20:13:15,980 [append_file] DEBUG append to file:/w/workspace/gexfoundry_device-rest-go_PR-294/.git/info/exclude 20:13:16 2023-04-18 20:13:15,981 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/gexfoundry_device-rest-go_PR-294/.semver/PR-294 with force:False 20:13:16 2023-04-18 20:13:15,981 [write_file] DEBUG write to file:/w/workspace/gexfoundry_device-rest-go_PR-294/.semver/PR-294 20:13:16 2023-04-18 20:13:15,986 [execute] INFO git cat-file --batch-check 20:13:16 2023-04-18 20:13:15,987 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-294/.semver, universal_newlines=False, shell=None, istream=) 20:13:16 2023-04-18 20:13:15,994 [execute] INFO git cat-file --batch 20:13:16 2023-04-18 20:13:15,994 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-294/.semver, universal_newlines=False, shell=None, istream=) 20:13:16 2023-04-18 20:13:16,000 [read_version] DEBUG read version from /w/workspace/gexfoundry_device-rest-go_PR-294/.semver/PR-294 20:13:16 0.0.0 [Pipeline] } 20:13:16 $ docker exec --env ******** --env ******** 3d5da4e289dfca1c0b5365cb5b55c9a3a99b5044679f3a8ca33de3c8444c26a5 ssh-agent -k 20:13:16 unset SSH_AUTH_SOCK; 20:13:16 unset SSH_AGENT_PID; 20:13:16 echo Agent pid 76 killed; 20:13:16 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 20:13:16 + git semver [Pipeline] } 20:13:16 $ docker stop --time=1 3d5da4e289dfca1c0b5365cb5b55c9a3a99b5044679f3a8ca33de3c8444c26a5 20:13:18 $ docker rm -f --volumes 3d5da4e289dfca1c0b5365cb5b55c9a3a99b5044679f3a8ca33de3c8444c26a5 [Pipeline] // withDockerContainer [Pipeline] sh 20:13:18 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 20:13:18 Stashed 1 file(s) [Pipeline] echo 20:13:19 [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:13:19 provisioning config files... 20:13:19 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-294@tmp/config18140102222305100372tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:13:20 ---> docker-login.sh 20:13:20 nexus3.edgexfoundry.org:10001 20:13:20 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:13:20 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:13:20 Configure a credential helper to remove this warning. See 20:13:20 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:13:20 20:13:20 Login Succeeded 20:13:20 nexus3.edgexfoundry.org:10002 20:13:20 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:13:20 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:13:20 Configure a credential helper to remove this warning. See 20:13:20 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:13:20 20:13:20 Login Succeeded 20:13:20 nexus3.edgexfoundry.org:10003 20:13:20 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:13:20 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:13:20 Configure a credential helper to remove this warning. See 20:13:20 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:13:20 20:13:20 Login Succeeded 20:13:20 nexus3.edgexfoundry.org:10004 20:13:20 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:13:20 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:13:20 Configure a credential helper to remove this warning. See 20:13:20 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:13:20 20:13:20 Login Succeeded 20:13:20 docker.io 20:13:20 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:13:20 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:13:20 Configure a credential helper to remove this warning. See 20:13:20 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:13:20 20:13:20 Login Succeeded 20:13:20 ---> docker-login.sh ends [Pipeline] } 20:13:20 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 20:13:20 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 20:13:20 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 20:13:20 ========================================================= 20:13:20 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine] 20:13:20 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:13:21 + 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:13:21 Sending build context to Docker daemon 10.9MB 20:13:21 Step 1/12 : ARG BASE=golang:1.20-alpine3.17 20:13:21 Step 2/12 : FROM ${BASE} AS builder 20:13:21 1.20-alpine: Pulling from edgex-devops/edgex-golang-base 20:13:21 63b65145d645: Pulling fs layer 20:13:21 a2d21d5440eb: Pulling fs layer 20:13:21 935e6c44a52c: Pulling fs layer 20:13:21 94cc34f8dd06: Pulling fs layer 20:13:21 30dea6a524f1: Pulling fs layer 20:13:21 a2aff8979fd8: Pulling fs layer 20:13:21 6808be2612f2: Pulling fs layer 20:13:21 f25807f1079a: Pulling fs layer 20:13:21 94cc34f8dd06: Waiting 20:13:21 a2aff8979fd8: Waiting 20:13:21 6808be2612f2: Waiting 20:13:21 f25807f1079a: Waiting 20:13:21 30dea6a524f1: Waiting 20:13:21 a2d21d5440eb: Verifying Checksum 20:13:21 a2d21d5440eb: Download complete 20:13:21 94cc34f8dd06: Verifying Checksum 20:13:21 94cc34f8dd06: Download complete 20:13:21 30dea6a524f1: Verifying Checksum 20:13:21 30dea6a524f1: Download complete 20:13:21 63b65145d645: Verifying Checksum 20:13:21 63b65145d645: Download complete 20:13:21 a2aff8979fd8: Verifying Checksum 20:13:21 a2aff8979fd8: Download complete 20:13:21 63b65145d645: Pull complete 20:13:21 a2d21d5440eb: Pull complete 20:13:22 f25807f1079a: Verifying Checksum 20:13:22 f25807f1079a: Download complete 20:13:22 935e6c44a52c: Verifying Checksum 20:13:22 935e6c44a52c: Download complete 20:13:22 6808be2612f2: Verifying Checksum 20:13:22 6808be2612f2: Download complete 20:13:25 935e6c44a52c: Pull complete 20:13:25 94cc34f8dd06: Pull complete 20:13:25 30dea6a524f1: Pull complete 20:13:25 a2aff8979fd8: Pull complete 20:13:28 6808be2612f2: Pull complete 20:13:29 f25807f1079a: Pull complete 20:13:29 Digest: sha256:106942793af8b5907f587008084bb0888cadbc76d86ebd37d4d3227fb0f1e438 20:13:29 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine 20:13:29 ---> 3b553350e43f 20:13:29 Step 3/12 : ARG ADD_BUILD_TAGS="" 20:13:30 ---> Running in 37efb48a4934 20:13:30 Removing intermediate container 37efb48a4934 20:13:30 ---> b98ac2979470 20:13:30 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 20:13:30 ---> Running in ef2cdc623037 20:13:30 Removing intermediate container ef2cdc623037 20:13:30 ---> e2c5a1b0b15f 20:13:30 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 20:13:30 ---> Running in 6c0644906de2 20:13:30 Removing intermediate container 6c0644906de2 20:13:30 ---> b9d098dc1905 20:13:30 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 20:13:30 ---> Running in 1b69c98a082b 20:13:30 Removing intermediate container 1b69c98a082b 20:13:30 ---> 80ec1348fd04 20:13:30 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 20:13:30 ---> Running in 523e52f093ac 20:13:31 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 20:13:31 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 20:13:31 (1/4) Installing openssh-keygen (9.1_p1-r2) 20:13:31 (2/4) Installing libedit (20221030.3.1-r0) 20:13:31 (3/4) Installing openssh-client-common (9.1_p1-r2) 20:13:31 (4/4) Installing openssh-client-default (9.1_p1-r2) 20:13:31 Executing busybox-1.35.0-r29.trigger 20:13:31 OK: 269 MiB in 57 packages 20:13:31 Removing intermediate container 523e52f093ac 20:13:31 ---> 8c942d7a81dc 20:13:31 Step 8/12 : WORKDIR /device-rest-go 20:13:32 ---> Running in 4cf06a1874db 20:13:32 Removing intermediate container 4cf06a1874db 20:13:32 ---> d5e385068b0b 20:13:32 Step 9/12 : COPY go.mod vendor* ./ 20:13:32 ---> 4ee2a7b241a5 20:13:32 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 20:13:32 ---> Running in a1b95fcc48dd 20:13:34 Still waiting to schedule task 20:13:34 All nodes of label ‘ubuntu20.04-docker-arm64-4c-16g’ are offline 20:13:54 Removing intermediate container a1b95fcc48dd 20:13:54 ---> 22d988fdd748 20:13:54 Step 11/12 : COPY . . 20:13:54 ---> 954bd27e319a 20:13:54 Step 12/12 : RUN $MAKE 20:13:54 ---> Running in 1debd66ffd12 20:13:54 noop 20:13:55 Removing intermediate container 1debd66ffd12 20:13:55 ---> 2814418f27df 20:13:55 Successfully built 2814418f27df 20:13:55 Successfully tagged ci-base-image-x86_64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:13:55 + docker inspect -f . ci-base-image-x86_64 20:13:55 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 20:13:55 prd-ubuntu20.04-docker-8c-8g-8972 does not seem to be running inside a container 20:13:55 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-294 -v /w/workspace/gexfoundry_device-rest-go_PR-294:/w/workspace/gexfoundry_device-rest-go_PR-294:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-294@tmp:/w/workspace/gexfoundry_device-rest-go_PR-294@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 ******** ci-base-image-x86_64 cat 20:13:56 $ docker top 647a778edd796ece17de4907cf660c8b37e5b6dbe7df0e22f75b822072dcd12b -eo pid,comm [Pipeline] { [Pipeline] sh 20:13:56 + go version 20:13:56 go version go1.20.2 linux/amd64 [Pipeline] } 20:13:56 $ docker stop --time=1 647a778edd796ece17de4907cf660c8b37e5b6dbe7df0e22f75b822072dcd12b 20:13:58 $ docker rm -f --volumes 647a778edd796ece17de4907cf660c8b37e5b6dbe7df0e22f75b822072dcd12b [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:13:58 + docker inspect -f . ci-base-image-x86_64 20:13:58 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 20:13:58 prd-ubuntu20.04-docker-8c-8g-8972 does not seem to be running inside a container 20:13:58 $ 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-294 -v /w/workspace/gexfoundry_device-rest-go_PR-294:/w/workspace/gexfoundry_device-rest-go_PR-294:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-294@tmp:/w/workspace/gexfoundry_device-rest-go_PR-294@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 ******** ci-base-image-x86_64 cat 20:13:59 $ docker top 42bd392dc57c1a2d3144079e8417fe1432a0ff2f794a66fa97df9b833eccbc85 -eo pid,comm [Pipeline] { [Pipeline] sh 20:13:59 + git config --global --add safe.directory /w/workspace/gexfoundry_device-rest-go_PR-294 [Pipeline] fileExists [Pipeline] sh 20:14:00 + make test 20:14:00 go test ./... -coverprofile=coverage.out ./... 20:14:05 ? github.com/edgexfoundry/device-rest-go [no test files] 20:14:17 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 20:14:17 ok github.com/edgexfoundry/device-rest-go/driver 0.014s coverage: 32.2% of statements 20:14:24 go vet ./... 20:14:27 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 20:14:27 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 20:14:27 ./bin/test-attribution-txt.sh [Pipeline] echo 20:14:27 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 20:14:27 $ docker stop --time=1 42bd392dc57c1a2d3144079e8417fe1432a0ff2f794a66fa97df9b833eccbc85 20:14:29 $ docker rm -f --volumes 42bd392dc57c1a2d3144079e8417fe1432a0ff2f794a66fa97df9b833eccbc85 [Pipeline] // withDockerContainer [Pipeline] sh 20:14:29 + sudo chown -R jenkins:jenkins . [Pipeline] stash 20:14:30 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 20:14:30 + sudo chown -R jenkins:jenkins . [Pipeline] sh 20:14:31 + ls -al . 20:14:31 total 184 20:14:31 drwxrwxr-x 9 jenkins jenkins 4096 Apr 18 20:14 . 20:14:31 drwxrwxr-x 4 jenkins jenkins 4096 Apr 18 20:12 .. 20:14:31 -rw-rw-r-- 1 jenkins jenkins 151 Apr 18 20:12 .dockerignore 20:14:31 drwxrwxr-x 8 jenkins jenkins 4096 Apr 18 20:13 .git 20:14:31 drwxrwxr-x 3 jenkins jenkins 4096 Apr 18 20:12 .github 20:14:31 -rw-rw-r-- 1 jenkins jenkins 329 Apr 18 20:12 .gitignore 20:14:31 -rw-rw-r-- 1 jenkins jenkins 41 Apr 18 20:12 .golangci.yml 20:14:31 drwxr-xr-x 3 jenkins jenkins 4096 Apr 18 20:13 .semver 20:14:31 -rw-rw-r-- 1 jenkins jenkins 9331 Apr 18 20:12 Attribution.txt 20:14:31 -rw-rw-r-- 1 jenkins jenkins 13085 Apr 18 20:12 CHANGELOG.md 20:14:31 -rw-rw-r-- 1 jenkins jenkins 1578 Apr 18 20:12 Dockerfile 20:14:31 -rw-rw-r-- 1 jenkins jenkins 677 Apr 18 20:12 GOVERNANCE.md 20:14:31 -rw-rw-r-- 1 jenkins jenkins 680 Apr 18 20:12 Jenkinsfile 20:14:31 -rw-rw-r-- 1 jenkins jenkins 11340 Apr 18 20:12 LICENSE 20:14:31 -rw-rw-r-- 1 jenkins jenkins 1779 Apr 18 20:12 Makefile 20:14:31 -rw-rw-r-- 1 jenkins jenkins 620 Apr 18 20:12 OWNERS.md 20:14:31 -rw-rw-r-- 1 jenkins jenkins 15321 Apr 18 20:12 README.md 20:14:31 -rw-rw-r-- 1 jenkins jenkins 5 Apr 18 20:13 VERSION 20:14:31 drwxrwxr-x 2 jenkins jenkins 4096 Apr 18 20:12 bin 20:14:31 drwxrwxr-x 3 jenkins jenkins 4096 Apr 18 20:12 cmd 20:14:31 -rw-r--r-- 1 jenkins jenkins 14663 Apr 18 20:14 coverage.out 20:14:31 drwxrwxr-x 2 jenkins jenkins 4096 Apr 18 20:12 driver 20:14:31 -rw-rw-r-- 1 jenkins jenkins 3402 Apr 18 20:12 go.mod 20:14:31 -rw-rw-r-- 1 jenkins jenkins 31443 Apr 18 20:12 go.sum 20:14:31 drwxrwxr-x 4 jenkins jenkins 4096 Apr 18 20:12 snap 20:14:31 -rw-rw-r-- 1 jenkins jenkins 713 Apr 18 20:12 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:14:31 + 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=d113e70528a9acbdce16d1e5b1279bb33f7249f1 --label arch=amd64 --label version=0.0.0 . 20:14:31 Sending build context to Docker daemon 10.91MB 20:14:31 Step 1/25 : ARG BASE=golang:1.20-alpine3.17 20:14:31 Step 2/25 : FROM ${BASE} AS builder 20:14:31 ---> 2814418f27df 20:14:31 Step 3/25 : ARG ADD_BUILD_TAGS="" 20:14:31 ---> Running in 85ac4138c3a8 20:14:31 Removing intermediate container 85ac4138c3a8 20:14:31 ---> 6a50c24bf287 20:14:31 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 20:14:31 ---> Running in 11da54a075e5 20:14:31 Removing intermediate container 11da54a075e5 20:14:31 ---> 2779fc198898 20:14:31 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 20:14:31 ---> Running in d6d3e0445819 20:14:31 Removing intermediate container d6d3e0445819 20:14:31 ---> d9ce16b9e916 20:14:31 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 20:14:31 ---> Running in 826f661ec75d 20:14:31 Removing intermediate container 826f661ec75d 20:14:31 ---> dddce4e77373 20:14:31 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 20:14:31 ---> Running in 83b8d1a1b999 20:14:32 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 20:14:32 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 20:14:32 OK: 269 MiB in 57 packages 20:14:33 Removing intermediate container 83b8d1a1b999 20:14:33 ---> 331b8ccba92c 20:14:33 Step 8/25 : WORKDIR /device-rest-go 20:14:33 ---> Running in 7f42aed8787e 20:14:33 Removing intermediate container 7f42aed8787e 20:14:33 ---> b49c14d7b2fd 20:14:33 Step 9/25 : COPY go.mod vendor* ./ 20:14:33 ---> f8a44fadca18 20:14:33 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 20:14:33 ---> Running in c9b742058bf0 20:14:33 Removing intermediate container c9b742058bf0 20:14:33 ---> 42578b1633ae 20:14:33 Step 11/25 : COPY . . 20:14:34 ---> e222cbf14e0e 20:14:34 Step 12/25 : RUN $MAKE 20:14:34 ---> Running in df28d249f01f 20:14:34 CGO_ENABLED=0 go build -tags "" -ldflags "-X github.com/edgexfoundry/device-rest-go.Version=0.0.0" -trimpath -mod=readonly -o cmd/device-rest ./cmd 20:14:52 Removing intermediate container df28d249f01f 20:14:52 ---> 3eb349011522 20:14:52 Step 13/25 : FROM alpine:3.17 20:14:53 3.17: Pulling from library/alpine 20:14:53 f56be85fc22e: Pulling fs layer 20:14:53 f56be85fc22e: Download complete 20:14:53 f56be85fc22e: Pull complete 20:14:53 Digest: sha256:124c7d2707904eea7431fffe91522a01e5a861a624ee31d03372cc1d138a3126 20:14:53 Status: Downloaded newer image for alpine:3.17 20:14:53 ---> 9ed4aefc74f6 20:14:53 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 20:14:53 ---> Running in 4731c354dcc4 20:14:53 Removing intermediate container 4731c354dcc4 20:14:53 ---> 5f7fc8932d1e 20:14:53 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 20:14:53 ---> Running in 8c654e05c527 20:14:53 Removing intermediate container 8c654e05c527 20:14:53 ---> 2e2f3f80b498 20:14:53 Step 16/25 : RUN apk add --update --no-cache dumb-init 20:14:53 ---> Running in 2cca28a2ced7 20:14:54 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 20:14:54 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 20:14:54 (1/1) Installing dumb-init (1.2.5-r2) 20:14:54 Executing busybox-1.35.0-r29.trigger 20:14:54 OK: 7 MiB in 16 packages 20:14:54 Removing intermediate container 2cca28a2ced7 20:14:54 ---> 7950ceba70b8 20:14:54 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 20:14:55 ---> ab05035287d4 20:14:55 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 20:14:55 ---> 34fe20738096 20:14:55 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 20:14:55 ---> cfada91b0036 20:14:55 Step 20/25 : EXPOSE 59986 20:14:55 ---> Running in 968e91304eef 20:14:55 Removing intermediate container 968e91304eef 20:14:55 ---> 45a3321a8fde 20:14:55 Step 21/25 : ENTRYPOINT ["/device-rest"] 20:14:55 ---> Running in feae3892c9e9 20:14:56 Removing intermediate container feae3892c9e9 20:14:56 ---> b5f6b5415727 20:14:56 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 20:14:56 ---> Running in 42099a70410f 20:14:56 Removing intermediate container 42099a70410f 20:14:56 ---> a62c02d88105 20:14:56 Step 23/25 : LABEL arch=amd64 20:14:56 ---> Running in 6b3d6d878b2f 20:14:56 Removing intermediate container 6b3d6d878b2f 20:14:56 ---> 67baeeb5aa64 20:14:56 Step 24/25 : LABEL git_sha=d113e70528a9acbdce16d1e5b1279bb33f7249f1 20:14:56 ---> Running in 37714a6e7104 20:14:56 Removing intermediate container 37714a6e7104 20:14:56 ---> 49c36e284391 20:14:56 Step 25/25 : LABEL version=0.0.0 20:14:56 ---> Running in 2e38d148cfdd 20:14:56 Removing intermediate container 2e38d148cfdd 20:14:56 ---> b049c5d1910b 20:14:56 [Warning] One or more build-args [ARCH] were not consumed 20:14:56 Successfully built b049c5d1910b 20:14:56 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 20:14:57 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 20:14:57 20:14:57 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:14:57 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 20:14:57 latest: Pulling from edgex-lftools-log-publisher 20:14:57 5eb5b503b376: Pulling fs layer 20:14:57 5c69ac0246d0: Pulling fs layer 20:14:57 ec43610c2a17: Pulling fs layer 20:14:57 3a2ae6a8a46f: Pulling fs layer 20:14:57 33b1e0a273af: Pulling fs layer 20:14:57 5d3b04190fa2: Pulling fs layer 20:14:57 2f39f015ded8: Pulling fs layer 20:14:57 2f39f015ded8: Waiting 20:14:57 3a2ae6a8a46f: Waiting 20:14:57 33b1e0a273af: Waiting 20:14:57 5d3b04190fa2: Waiting 20:14:57 5c69ac0246d0: Download complete 20:14:57 3a2ae6a8a46f: Verifying Checksum 20:14:57 3a2ae6a8a46f: Download complete 20:14:57 33b1e0a273af: Verifying Checksum 20:14:57 33b1e0a273af: Download complete 20:14:57 5d3b04190fa2: Verifying Checksum 20:14:57 5d3b04190fa2: Download complete 20:14:57 ec43610c2a17: Verifying Checksum 20:14:57 ec43610c2a17: Download complete 20:14:57 5eb5b503b376: Verifying Checksum 20:14:57 5eb5b503b376: Download complete 20:14:58 2f39f015ded8: Download complete 20:14:59 5eb5b503b376: Pull complete 20:14:59 5c69ac0246d0: Pull complete 20:14:59 ec43610c2a17: Pull complete 20:14:59 3a2ae6a8a46f: Pull complete 20:15:00 33b1e0a273af: Pull complete 20:15:00 5d3b04190fa2: Pull complete 20:15:05 2f39f015ded8: Pull complete 20:15:05 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 20:15:05 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 20:15:05 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 20:15:05 prd-ubuntu20.04-docker-8c-8g-8972 does not seem to be running inside a container 20:15:05 $ 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-294 -v /w/workspace/gexfoundry_device-rest-go_PR-294:/w/workspace/gexfoundry_device-rest-go_PR-294:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-294@tmp:/w/workspace/gexfoundry_device-rest-go_PR-294@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 20:15:07 $ docker top 65598760929a97825da181e8acd82f2d53634504b848b544d4d0059371f6098e -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:15:07 ---> job-cost.sh 20:15:07 lf-activate-venv: SKIPPING 20:15:07 INFO: No Stack... 20:15:07 INFO: Retrieving Pricing Info for: v3-standard-8 20:15:08 INFO: Archiving Costs [Pipeline] sh 20:15:08 + cat /w/workspace/gexfoundry_device-rest-go_PR-294/archives/cost.csv 20:15:08 + cut -d, -f6 [Pipeline] lock 20:15:08 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-294-1-stack-cost] 20:15:08 Resource [jenkins-edgexfoundry-device-rest-go-PR-294-1-stack-cost] did not exist. Created. 20:15:08 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-294-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 20:15:09 + echo total: 0.4399999976158142 [Pipeline] stash 20:15:09 Stashed 1 file(s) [Pipeline] } 20:15:09 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-294-1-stack-cost] [Pipeline] // lock [Pipeline] } 20:15:09 $ docker stop --time=1 65598760929a97825da181e8acd82f2d53634504b848b544d4d0059371f6098e 20:15:10 $ docker rm -f --volumes 65598760929a97825da181e8acd82f2d53634504b848b544d4d0059371f6098e [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 20:15:12 Running on prd-ubuntu20.04-docker-arm64-4c-16g-8982 in /w/workspace/gexfoundry_device-rest-go_PR-294 [Pipeline] { [Pipeline] ws 20:15:12 Running in /w/workspace/device-rest-go/1 [Pipeline] { [Pipeline] checkout 20:15:12 The recommended git tool is: git 20:15:18 using credential edgex-jenkins-ssh 20:15:18 Cloning the remote Git repository 20:15:18 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 20:15:19 > git init /w/workspace/device-rest-go/1 # timeout=10 20:15:19 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 20:15:19 > git --version # timeout=10 20:15:19 > git --version # 'git version 2.25.1' 20:15:19 using GIT_SSH to set credentials SSH Credentials for GitHub 20:15:19 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 20:15:21 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 20:15:21 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 20:15:22 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 20:15:22 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 20:15:22 using GIT_SSH to set credentials SSH Credentials for GitHub 20:15:22 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/294/head:refs/remotes/origin/PR-294 +refs/heads/main:refs/remotes/origin/main # timeout=10 20:15:22 Merging remotes/origin/main commit 0c5eec98d3be44e3458d60972803f48ebbd423fa into PR head commit d113e70528a9acbdce16d1e5b1279bb33f7249f1 20:15:22 Merge succeeded, producing d113e70528a9acbdce16d1e5b1279bb33f7249f1 20:15:22 Checking out Revision d113e70528a9acbdce16d1e5b1279bb33f7249f1 (PR-294) 20:15:23 Commit message: "build(deps): Bump github.com/edgexfoundry/device-sdk-go/v3" 20:15:23 > git --version # timeout=10 20:15:23 > git --version # 'git version 2.25.1' 20:15:23 fatal: bad object 8d11186b4ecddd371e5d69e8bc5262dee0d7f4a1 20:15:22 > git config core.sparsecheckout # timeout=10 20:15:22 > git checkout -f d113e70528a9acbdce16d1e5b1279bb33f7249f1 # timeout=10 20:15:22 > git remote # timeout=10 20:15:22 > git config --get remote.origin.url # timeout=10 20:15:22 using GIT_SSH to set credentials SSH Credentials for GitHub 20:15:22 > git merge 0c5eec98d3be44e3458d60972803f48ebbd423fa # timeout=10 20:15:22 > git rev-parse HEAD^{commit} # timeout=10 20:15:22 > git config core.sparsecheckout # timeout=10 20:15:22 > git checkout -f d113e70528a9acbdce16d1e5b1279bb33f7249f1 # timeout=10 [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 20:15:24 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 20:15:24 % Total % Received % Xferd Average Speed Time Time Time Current 20:15:24 Dload Upload Total Spent Left Speed 20:15:24 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 12751 100 12751 0 0 80702 0 --:--:-- --:--:-- --:--:-- 80702 [Pipeline] sh 20:15:25 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 20:15:25 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 20:15:25 + sudo tee /etc/docker/daemon.new 20:15:25 { 20:15:25 "registry-mirrors": [ 20:15:25 "https://nexus3.edgexfoundry.org:10001" 20:15:25 ], 20:15:25 "bip": "10.250.0.254/24", 20:15:25 "hosts": [ 20:15:25 "tcp://0.0.0.0:5555", 20:15:25 "unix:///var/run/docker.sock" 20:15:25 ], 20:15:25 "mtu": 1458, 20:15:25 "selinux-enabled": true, 20:15:25 "seccomp-profile": "/etc/docker/seccomp.json" 20:15:25 } [Pipeline] sh 20:15:25 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 20:15:26 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 20:15:48 provisioning config files... 20:15:48 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/1@tmp/config3561248579878190480tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:15:48 ---> docker-login.sh 20:15:48 nexus3.edgexfoundry.org:10001 20:15:49 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:15:49 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:15:49 Configure a credential helper to remove this warning. See 20:15:49 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:15:49 20:15:49 Login Succeeded 20:15:49 nexus3.edgexfoundry.org:10002 20:15:49 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:15:49 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:15:49 Configure a credential helper to remove this warning. See 20:15:49 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:15:49 20:15:49 Login Succeeded 20:15:49 nexus3.edgexfoundry.org:10003 20:15:49 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:15:50 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:15:50 Configure a credential helper to remove this warning. See 20:15:50 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:15:50 20:15:50 Login Succeeded 20:15:50 nexus3.edgexfoundry.org:10004 20:15:50 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:15:50 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:15:50 Configure a credential helper to remove this warning. See 20:15:50 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:15:50 20:15:50 Login Succeeded 20:15:50 docker.io 20:15:50 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:15:50 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:15:50 Configure a credential helper to remove this warning. See 20:15:50 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:15:50 20:15:50 Login Succeeded 20:15:50 ---> docker-login.sh ends [Pipeline] } 20:15:51 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 20:15:51 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 20:15:51 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 20:15:51 ========================================================= 20:15:51 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine] 20:15:51 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:15:52 + 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 . 20:15:52 Sending build context to Docker daemon 138.8kB 20:15:52 Step 1/12 : ARG BASE=golang:1.20-alpine3.17 20:15:52 Step 2/12 : FROM ${BASE} AS builder 20:15:52 1.20-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 20:15:52 af6eaf76a39c: Pulling fs layer 20:15:52 55522c791124: Pulling fs layer 20:15:52 ce5c4a1c91eb: Pulling fs layer 20:15:52 169dfbe0d373: Pulling fs layer 20:15:52 e1ff8fa3b103: Pulling fs layer 20:15:52 52ebb69f0ebf: Pulling fs layer 20:15:52 5abe8eddf0d5: Pulling fs layer 20:15:52 169dfbe0d373: Waiting 20:15:52 e1ff8fa3b103: Waiting 20:15:52 52ebb69f0ebf: Waiting 20:15:52 5abe8eddf0d5: Waiting 20:15:52 55522c791124: Verifying Checksum 20:15:52 55522c791124: Download complete 20:15:52 169dfbe0d373: Verifying Checksum 20:15:52 169dfbe0d373: Download complete 20:15:52 e1ff8fa3b103: Verifying Checksum 20:15:52 e1ff8fa3b103: Download complete 20:15:52 af6eaf76a39c: Verifying Checksum 20:15:52 af6eaf76a39c: Download complete 20:15:53 af6eaf76a39c: Pull complete 20:15:53 5abe8eddf0d5: Verifying Checksum 20:15:53 5abe8eddf0d5: Download complete 20:15:54 55522c791124: Pull complete 20:15:54 ce5c4a1c91eb: Verifying Checksum 20:15:54 ce5c4a1c91eb: Download complete 20:15:54 52ebb69f0ebf: Verifying Checksum 20:15:54 52ebb69f0ebf: Download complete 20:16:07 ce5c4a1c91eb: Pull complete 20:16:07 169dfbe0d373: Pull complete 20:16:07 e1ff8fa3b103: Pull complete 20:16:12 52ebb69f0ebf: Pull complete 20:16:14 5abe8eddf0d5: Pull complete 20:16:14 Digest: sha256:978cc1420e451f27bd88fdeece3ad01a9109ec773b62f165dfc696fd516b3d8f 20:16:14 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine 20:16:14 ---> 6cb57ee374ae 20:16:14 Step 3/12 : ARG ADD_BUILD_TAGS="" 20:16:16 ---> Running in 56d598508720 20:16:16 Removing intermediate container 56d598508720 20:16:16 ---> ee4361020c9a 20:16:16 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 20:16:16 ---> Running in ef6eb152a133 20:16:16 Removing intermediate container ef6eb152a133 20:16:16 ---> 80f2d12b067a 20:16:16 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 20:16:16 ---> Running in 76bdc56005f9 20:16:17 Removing intermediate container 76bdc56005f9 20:16:17 ---> 680cc03dfe70 20:16:17 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 20:16:17 ---> Running in 4c1bbaaa1d0e 20:16:17 Removing intermediate container 4c1bbaaa1d0e 20:16:17 ---> 98038ae8a6ce 20:16:17 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 20:16:17 ---> Running in 72b4a387eb50 20:16:18 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 20:16:19 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 20:16:20 (1/4) Installing openssh-keygen (9.1_p1-r2) 20:16:20 (2/4) Installing libedit (20221030.3.1-r0) 20:16:20 (3/4) Installing openssh-client-common (9.1_p1-r2) 20:16:20 (4/4) Installing openssh-client-default (9.1_p1-r2) 20:16:20 Executing busybox-1.35.0-r29.trigger 20:16:20 OK: 268 MiB in 57 packages 20:16:24 Removing intermediate container 72b4a387eb50 20:16:24 ---> 57ec1fe1b8bd 20:16:24 Step 8/12 : WORKDIR /device-rest-go 20:16:24 ---> Running in 84042979d122 20:16:24 Removing intermediate container 84042979d122 20:16:24 ---> e958020b2026 20:16:24 Step 9/12 : COPY go.mod vendor* ./ 20:16:24 ---> 9b3c3fcb320a 20:16:24 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 20:16:24 ---> Running in 243cdd38a4f2 20:17:32 Removing intermediate container 243cdd38a4f2 20:17:32 ---> 433fce04fd6a 20:17:32 Step 11/12 : COPY . . 20:17:32 ---> df449fda6c6e 20:17:32 Step 12/12 : RUN $MAKE 20:17:32 ---> Running in ffb0f04ba84b 20:17:32 noop 20:17:32 Removing intermediate container ffb0f04ba84b 20:17:32 ---> 879e89a6db9f 20:17:32 Successfully built 879e89a6db9f 20:17:32 Successfully tagged ci-base-image-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:17:33 + docker inspect -f . ci-base-image-arm64 20:17:33 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 20:17:33 prd-ubuntu20.04-docker-arm64-4c-16g-8982 does not seem to be running inside a container 20:17:33 $ 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 20:17:34 $ docker top 1236ffa593d8d1a23f9e1defe5726c33820b637fceb2e74819400dbecf5c776b -eo pid,comm [Pipeline] { [Pipeline] sh 20:17:35 + go version 20:17:35 go version go1.20.2 linux/arm64 [Pipeline] } 20:17:35 $ docker stop --time=1 1236ffa593d8d1a23f9e1defe5726c33820b637fceb2e74819400dbecf5c776b 20:17:37 $ docker rm -f --volumes 1236ffa593d8d1a23f9e1defe5726c33820b637fceb2e74819400dbecf5c776b [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:17:38 + docker inspect -f . ci-base-image-arm64 20:17:38 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 20:17:38 prd-ubuntu20.04-docker-arm64-4c-16g-8982 does not seem to be running inside a container 20:17:38 $ 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 20:17:39 $ docker top e4fbbdfdc73b69c173783f3e4cccc4aa4fe853546d1912b4a43248a9b6d54f88 -eo pid,comm [Pipeline] { [Pipeline] sh 20:17:40 + git config --global --add safe.directory /w/workspace/device-rest-go/1 [Pipeline] fileExists [Pipeline] sh 20:17:40 + make test 20:17:40 go test ./... -coverprofile=coverage.out ./... 20:18:12 ? github.com/edgexfoundry/device-rest-go [no test files] 20:20:05 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 20:20:05 ok github.com/edgexfoundry/device-rest-go/driver 0.063s coverage: 32.2% of statements 20:20:05 WARNING: Linting skipped (not on x86_64 or linter not installed) 20:20:05 go vet ./... 20:20:32 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 20:20:32 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 20:20:32 ./bin/test-attribution-txt.sh [Pipeline] echo 20:20:32 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 20:20:32 $ docker stop --time=1 e4fbbdfdc73b69c173783f3e4cccc4aa4fe853546d1912b4a43248a9b6d54f88 20:20:35 $ docker rm -f --volumes e4fbbdfdc73b69c173783f3e4cccc4aa4fe853546d1912b4a43248a9b6d54f88 [Pipeline] // withDockerContainer [Pipeline] sh 20:20:36 + sudo chown -R jenkins:jenkins . [Pipeline] stash 20:20:36 Warning: overwriting stash ‘coverage-report’ 20:20:36 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 20:20:37 + sudo chown -R jenkins:jenkins . [Pipeline] sh 20:20:37 + ls -al . 20:20:37 total 180 20:20:37 drwxrwxr-x 8 jenkins jenkins 4096 Apr 18 20:17 . 20:20:37 drwxrwxr-x 4 jenkins jenkins 4096 Apr 18 20:15 .. 20:20:37 -rw-rw-r-- 1 jenkins jenkins 151 Apr 18 20:15 .dockerignore 20:20:37 drwxrwxr-x 8 jenkins jenkins 4096 Apr 18 20:15 .git 20:20:37 drwxrwxr-x 3 jenkins jenkins 4096 Apr 18 20:15 .github 20:20:37 -rw-rw-r-- 1 jenkins jenkins 329 Apr 18 20:15 .gitignore 20:20:37 -rw-rw-r-- 1 jenkins jenkins 41 Apr 18 20:15 .golangci.yml 20:20:37 -rw-rw-r-- 1 jenkins jenkins 9331 Apr 18 20:15 Attribution.txt 20:20:37 -rw-rw-r-- 1 jenkins jenkins 13085 Apr 18 20:15 CHANGELOG.md 20:20:37 -rw-rw-r-- 1 jenkins jenkins 1578 Apr 18 20:15 Dockerfile 20:20:37 -rw-rw-r-- 1 jenkins jenkins 677 Apr 18 20:15 GOVERNANCE.md 20:20:37 -rw-rw-r-- 1 jenkins jenkins 680 Apr 18 20:15 Jenkinsfile 20:20:37 -rw-rw-r-- 1 jenkins jenkins 11340 Apr 18 20:15 LICENSE 20:20:37 -rw-rw-r-- 1 jenkins jenkins 1779 Apr 18 20:15 Makefile 20:20:37 -rw-rw-r-- 1 jenkins jenkins 620 Apr 18 20:15 OWNERS.md 20:20:37 -rw-rw-r-- 1 jenkins jenkins 15321 Apr 18 20:15 README.md 20:20:37 -rw-rw-r-- 1 jenkins jenkins 5 Apr 18 20:13 VERSION 20:20:37 drwxrwxr-x 2 jenkins jenkins 4096 Apr 18 20:15 bin 20:20:37 drwxrwxr-x 3 jenkins jenkins 4096 Apr 18 20:15 cmd 20:20:37 -rw-r--r-- 1 jenkins jenkins 14663 Apr 18 20:19 coverage.out 20:20:37 drwxrwxr-x 2 jenkins jenkins 4096 Apr 18 20:15 driver 20:20:37 -rw-rw-r-- 1 jenkins jenkins 3402 Apr 18 20:15 go.mod 20:20:37 -rw-rw-r-- 1 jenkins jenkins 31443 Apr 18 20:15 go.sum 20:20:37 drwxrwxr-x 4 jenkins jenkins 4096 Apr 18 20:15 snap 20:20:37 -rw-rw-r-- 1 jenkins jenkins 713 Apr 18 20:15 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:20:38 + 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=d113e70528a9acbdce16d1e5b1279bb33f7249f1 --label arch=arm64 --label version=0.0.0 . 20:20:38 Sending build context to Docker daemon 154.1kB 20:20:38 Step 1/25 : ARG BASE=golang:1.20-alpine3.17 20:20:38 Step 2/25 : FROM ${BASE} AS builder 20:20:38 ---> 879e89a6db9f 20:20:38 Step 3/25 : ARG ADD_BUILD_TAGS="" 20:20:38 ---> Running in ced96523f8ba 20:20:38 Removing intermediate container ced96523f8ba 20:20:38 ---> d907b1c0892e 20:20:38 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 20:20:38 ---> Running in 5b703fa28cc0 20:20:39 Removing intermediate container 5b703fa28cc0 20:20:39 ---> 730f8c78fa7b 20:20:39 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 20:20:39 ---> Running in 2fbede4dc39c 20:20:39 Removing intermediate container 2fbede4dc39c 20:20:39 ---> fae58484707e 20:20:39 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 20:20:39 ---> Running in cb891d49b5a4 20:20:39 Removing intermediate container cb891d49b5a4 20:20:39 ---> 59e63f8c9920 20:20:39 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 20:20:39 ---> Running in 30cc52350fe1 20:20:40 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 20:20:41 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 20:20:42 OK: 268 MiB in 57 packages 20:20:43 Removing intermediate container 30cc52350fe1 20:20:43 ---> ad6b8a86da7d 20:20:43 Step 8/25 : WORKDIR /device-rest-go 20:20:43 ---> Running in 77f3698a5e94 20:20:43 Removing intermediate container 77f3698a5e94 20:20:43 ---> 49a0f6c7a0c5 20:20:43 Step 9/25 : COPY go.mod vendor* ./ 20:20:44 ---> 0788af08103e 20:20:44 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 20:20:44 ---> Running in c67c5c742c26 20:20:49 Removing intermediate container c67c5c742c26 20:20:49 ---> 817e90b05b77 20:20:49 Step 11/25 : COPY . . 20:20:49 ---> 3bb6c7b54278 20:20:49 Step 12/25 : RUN $MAKE 20:20:49 ---> Running in f8fc8494429c 20:20:50 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 20:22:57 Removing intermediate container f8fc8494429c 20:22:57 ---> 96d7b70065f7 20:22:57 Step 13/25 : FROM alpine:3.17 20:22:57 3.17: Pulling from library/alpine 20:22:57 c41833b44d91: Pulling fs layer 20:22:57 c41833b44d91: Download complete 20:22:57 c41833b44d91: Pull complete 20:22:57 Digest: sha256:124c7d2707904eea7431fffe91522a01e5a861a624ee31d03372cc1d138a3126 20:22:57 Status: Downloaded newer image for alpine:3.17 20:22:57 ---> 51e60588ff2c 20:22:57 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 20:22:57 ---> Running in 0548a22e13c8 20:22:57 Removing intermediate container 0548a22e13c8 20:22:57 ---> 67bc0f885f19 20:22:57 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 20:22:57 ---> Running in b1070d1f64c3 20:22:57 Removing intermediate container b1070d1f64c3 20:22:57 ---> 48085b4dfb10 20:22:57 Step 16/25 : RUN apk add --update --no-cache dumb-init 20:22:57 ---> Running in e4d27c80e6a2 20:22:57 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 20:22:57 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 20:22:57 (1/1) Installing dumb-init (1.2.5-r2) 20:22:57 Executing busybox-1.35.0-r29.trigger 20:22:57 OK: 8 MiB in 16 packages 20:23:00 Removing intermediate container e4d27c80e6a2 20:23:00 ---> 90e156bf7945 20:23:00 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 20:23:01 ---> 9b4864c93717 20:23:01 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 20:23:02 ---> b06f61c679dd 20:23:02 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 20:23:02 ---> 7a7d34f34578 20:23:02 Step 20/25 : EXPOSE 59986 20:23:02 ---> Running in cf6cc1c8ad1d 20:23:02 Removing intermediate container cf6cc1c8ad1d 20:23:02 ---> 9c731feeb7d9 20:23:02 Step 21/25 : ENTRYPOINT ["/device-rest"] 20:23:03 ---> Running in eae6200b455e 20:23:03 Removing intermediate container eae6200b455e 20:23:03 ---> 4ef061d0349c 20:23:03 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 20:23:03 ---> Running in 70c03f06fbc3 20:23:03 Removing intermediate container 70c03f06fbc3 20:23:03 ---> e5aafc50793e 20:23:03 Step 23/25 : LABEL arch=arm64 20:23:03 ---> Running in 1226a99181e6 20:23:03 Removing intermediate container 1226a99181e6 20:23:03 ---> 48234c005434 20:23:03 Step 24/25 : LABEL git_sha=d113e70528a9acbdce16d1e5b1279bb33f7249f1 20:23:03 ---> Running in 9d559e95dce0 20:23:04 Removing intermediate container 9d559e95dce0 20:23:04 ---> e2f93c3ef1d6 20:23:04 Step 25/25 : LABEL version=0.0.0 20:23:04 ---> Running in 0daa75cdab9d 20:23:04 Removing intermediate container 0daa75cdab9d 20:23:04 ---> d3d5be2efd78 20:23:04 [Warning] One or more build-args [ARCH] were not consumed 20:23:04 Successfully built d3d5be2efd78 20:23:04 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 20:23:05 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 20:23:05 20:23:05 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:23:05 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 20:23:05 arm64: Pulling from edgex-lftools-log-publisher 20:23:05 8998bd30e6a1: Pulling fs layer 20:23:05 04944245beec: Pulling fs layer 20:23:05 699f458cf7ca: Pulling fs layer 20:23:05 765212b225bb: Pulling fs layer 20:23:05 f23df028b6ca: Pulling fs layer 20:23:05 d65c8cfc05b1: Pulling fs layer 20:23:05 2437ff75d9bd: Pulling fs layer 20:23:05 765212b225bb: Waiting 20:23:05 f23df028b6ca: Waiting 20:23:05 d65c8cfc05b1: Waiting 20:23:05 2437ff75d9bd: Waiting 20:23:05 04944245beec: Verifying Checksum 20:23:05 04944245beec: Download complete 20:23:05 765212b225bb: Verifying Checksum 20:23:05 765212b225bb: Download complete 20:23:05 f23df028b6ca: Verifying Checksum 20:23:05 f23df028b6ca: Download complete 20:23:05 d65c8cfc05b1: Verifying Checksum 20:23:05 d65c8cfc05b1: Download complete 20:23:05 699f458cf7ca: Verifying Checksum 20:23:05 699f458cf7ca: Download complete 20:23:06 8998bd30e6a1: Verifying Checksum 20:23:06 8998bd30e6a1: Download complete 20:23:08 2437ff75d9bd: Verifying Checksum 20:23:08 2437ff75d9bd: Download complete 20:23:10 8998bd30e6a1: Pull complete 20:23:10 04944245beec: Pull complete 20:23:13 699f458cf7ca: Pull complete 20:23:13 765212b225bb: Pull complete 20:23:13 f23df028b6ca: Pull complete 20:23:13 d65c8cfc05b1: Pull complete 20:23:28 2437ff75d9bd: Pull complete 20:23:28 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 20:23:28 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 20:23:28 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 20:23:29 prd-ubuntu20.04-docker-arm64-4c-16g-8982 does not seem to be running inside a container 20:23:29 $ 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 20:23:31 $ docker top 99297d5e2a48ed472ac204a44c06c41a69a31c2327f8edd4fd3ebd5ac8cda44a -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:23:32 ---> job-cost.sh 20:23:32 lf-activate-venv: SKIPPING 20:23:32 INFO: No Stack... 20:23:33 INFO: Retrieving Pricing Info for: v3-standard-4 20:23:33 INFO: Archiving Costs [Pipeline] sh 20:23:34 + cat /w/workspace/device-rest-go/1/archives/cost.csv 20:23:34 + cut -d, -f6 [Pipeline] lock 20:23:34 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-294-1-stack-cost] 20:23:34 Resource [jenkins-edgexfoundry-device-rest-go-PR-294-1-stack-cost] did not exist. Created. 20:23:34 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-294-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 20:23:34 /w/workspace/device-rest-go/1@tmp/durable-c0429a96/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 20:23:34 + echo total: 0.10999999940395355 [Pipeline] stash 20:23:34 Warning: overwriting stash ‘stack-cost’ 20:23:34 Stashed 1 file(s) [Pipeline] } 20:23:34 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-294-1-stack-cost] [Pipeline] // lock [Pipeline] } 20:23:35 $ docker stop --time=1 99297d5e2a48ed472ac204a44c06c41a69a31c2327f8edd4fd3ebd5ac8cda44a 20:23:36 $ docker rm -f --volumes 99297d5e2a48ed472ac204a44c06c41a69a31c2327f8edd4fd3ebd5ac8cda44a [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 20:23:37 provisioning config files... 20:23:37 copy managed file [device-rest-go-codecov-token] to file:/w/workspace/gexfoundry_device-rest-go_PR-294@tmp/config11371234657444845541tmp [Pipeline] { [Pipeline] sh 20:23:37 + set +x 20:23:37 + curl -s https://codecov.io/bash 20:23:37 + bash -s -- 20:23:37 20:23:37 _____ _ 20:23:37 / ____| | | 20:23:37 | | ___ __| | ___ ___ _____ __ 20:23:37 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 20:23:37 | |___| (_) | (_| | __/ (_| (_) \ V / 20:23:37 \_____\___/ \__,_|\___|\___\___/ \_/ 20:23:37 Bash-1.0.6 20:23:37 20:23:37 20:23:37 ==> git version 2.25.1 found 20:23:37 ==> 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 20:23:37 Release-Date: 2020-01-08 20:23:37 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 20:23:37 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 20:23:37 ==> Jenkins CI detected. 20:23:37 current dir:  /w/workspace/gexfoundry_device-rest-go_PR-294 20:23:37 project root: . 20:23:37 --> token set from env 20:23:37 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 20:23:37 ==> Running gcov in . (disable via -X gcov) 20:23:37 ==> Python coveragepy not found 20:23:37 ==> Searching for coverage reports in: 20:23:37 + . 20:23:37 -> Found 1 reports 20:23:37 ==> Detecting git/mercurial file structure 20:23:38 ==> Reading reports 20:23:38 + ./coverage.out bytes=14663 20:23:38 ==> Appending adjustments 20:23:38 https://docs.codecov.io/docs/fixing-reports 20:23:38 + Found adjustments 20:23:38 ==> Gzipping contents 20:23:38 4.0K /tmp/codecov.TJjSUl.gz 20:23:38 ==> Uploading reports 20:23:38 url: https://codecov.io 20:23:38 query: branch=PR-294&commit=d113e70528a9acbdce16d1e5b1279bb33f7249f1&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-294%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=294&job=&cmd_args= 20:23:38 -> Pinging Codecov 20:23:38 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=c51feb23-73ac-4f49-b3d1-d26df23137db&branch=PR-294&commit=d113e70528a9acbdce16d1e5b1279bb33f7249f1&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-294%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=294&job=&cmd_args= 20:23:38 -> Uploading to 20:23:38 https://storage.googleapis.com/codecov/v4/raw/2023-04-18/4E5D53B4F1F92C436F7061BF334D961C/d113e70528a9acbdce16d1e5b1279bb33f7249f1/19651fb2-337c-46cb-a973-818ce872e262.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20230418%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20230418T202337Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=2756d46914936de8b3b93cf904fa8a64d616186d2b89b9a9bb938f5413e1ae8e 20:23:38 % Total % Received % Xferd Average Speed Time Time Time Current 20:23:38 Dload Upload Total Spent Left Speed 20:23:38 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 2510 0 0 100 2510 0 10203 --:--:-- --:--:-- --:--:-- 10203 20:23:38 -> Reports have been successfully queued for processing at https://app.codecov.io/github/edgexfoundry/device-rest-go/commit/d113e70528a9acbdce16d1e5b1279bb33f7249f1 [Pipeline] } 20:23:38 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 20:23:40 + [ -d /w/workspace/gexfoundry_device-rest-go_PR-294/archives ] 20:23:40 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-294/archives 20:23:40 total 16 20:23:40 drwxr-xr-x 3 root root 4096 Apr 18 20:15 . 20:23:40 drwxrwxr-x 10 jenkins jenkins 4096 Apr 18 20:15 .. 20:23:40 drwxr-xr-x 2 root root 4096 Apr 18 20:15 cost 20:23:40 -rw-r--r-- 1 root root 87 Apr 18 20:15 cost.csv 20:23:40 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-rest-go_PR-294/archives 20:23:40 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-294/archives 20:23:40 total 16 20:23:40 drwxr-xr-x 3 jenkins jenkins 4096 Apr 18 20:15 . 20:23:40 drwxrwxr-x 10 jenkins jenkins 4096 Apr 18 20:15 .. 20:23:40 drwxr-xr-x 2 jenkins jenkins 4096 Apr 18 20:15 cost 20:23:40 -rw-r--r-- 1 jenkins jenkins 87 Apr 18 20:15 cost.csv [Pipeline] libraryResource [Pipeline] sh 20:23:40 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 20:23:41 ---> package-listing.sh 20:23:41 ++ facter osfamily 20:23:41 ++ tr '[:upper:]' '[:lower:]' 20:23:41 + OS_FAMILY=debian 20:23:41 + workspace=/w/workspace/gexfoundry_device-rest-go_PR-294 20:23:41 + START_PACKAGES=/tmp/packages_start.txt 20:23:41 + END_PACKAGES=/tmp/packages_end.txt 20:23:41 + DIFF_PACKAGES=/tmp/packages_diff.txt 20:23:41 + PACKAGES=/tmp/packages_start.txt 20:23:41 + '[' /w/workspace/gexfoundry_device-rest-go_PR-294 ']' 20:23:41 + PACKAGES=/tmp/packages_end.txt 20:23:41 + case "${OS_FAMILY}" in 20:23:41 + dpkg -l 20:23:41 + grep '^ii' 20:23:41 + '[' -f /tmp/packages_start.txt ']' 20:23:41 + '[' -f /tmp/packages_end.txt ']' 20:23:41 + diff /tmp/packages_start.txt /tmp/packages_end.txt 20:23:41 + '[' /w/workspace/gexfoundry_device-rest-go_PR-294 ']' 20:23:41 + mkdir -p /w/workspace/gexfoundry_device-rest-go_PR-294/archives/ 20:23:41 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/gexfoundry_device-rest-go_PR-294/archives/ [Pipeline] echo 20:23:41 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-294/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 20:23:41 + facter operatingsystem [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:23:42 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 20:23:42 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 20:23:42 prd-ubuntu20.04-docker-8c-8g-8972 does not seem to be running inside a container 20:23:42 $ 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-294/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-294 -v /w/workspace/gexfoundry_device-rest-go_PR-294:/w/workspace/gexfoundry_device-rest-go_PR-294:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-294@tmp:/w/workspace/gexfoundry_device-rest-go_PR-294@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 ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 20:23:42 $ docker top 48cab7d25b4d199f86c24946a0d35211cb107da71cf46344d27207b533d9f5e6 -eo pid,comm [Pipeline] { [Pipeline] sh 20:23:43 + touch /tmp/pre-build-complete [Pipeline] sh 20:23:43 + mkdir -p /var/log/sysstat [Pipeline] sh 20:23:43 + ls /var/log/sa-host 20:23:43 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 20:23:44 provisioning config files... 20:23:44 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-294@tmp/config3653032106085862980tmp [Pipeline] { [Pipeline] echo 20:23:44 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 20:23:44 ---> create-netrc.sh [Pipeline] } 20:23:44 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 20:23:44 ---> python-tools-install.sh [Pipeline] echo 20:23:45 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 20:23:45 ---> sudo-logs.sh 20:23:45 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 20:23:45 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 20:23:45 ---> job-cost.sh 20:23:45 lf-activate-venv: SKIPPING 20:23:45 DEBUG: total: 0.4399999976158142 20:23:45 INFO: Retrieving Stack Cost... 20:23:45 INFO: Retrieving Pricing Info for: v3-standard-8 20:23:46 INFO: Archiving Costs [Pipeline] echo 20:23:46 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 20:23:46 ---> logs-deploy.sh 20:23:46 lf-activate-venv: SKIPPING 20:23:46 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-294/1 20:23:46 INFO: archiving workspace using pattern(s): 20:23:47 Archives upload complete. 20:23:47 INFO: archiving logs to Nexus