Pull request #337 opened Connecting to https://api.github.com using edgex-jenkins github personal access token Obtained Jenkinsfile from 5b10af917403d11f083c9e6f632079bdea01628c+57a7e4fe794bb86fec7da1c819e454c45e75ed90 (9262e42da2e51f61124f41a39bfa14570ed78b1e) 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-ssh18094947453015495041.key > git ls-remote -h -t -- git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Found match: refs/tags/stable revision a0327f913308fcf13875ae7a2d6e6099471c5ff1 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-ssh9099980087965697497.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 a0327f913308fcf13875ae7a2d6e6099471c5ff1 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-337/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-337/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh9131799510036523360.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-337/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh4483626986267042753.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision a0327f913308fcf13875ae7a2d6e6099471c5ff1 (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f a0327f913308fcf13875ae7a2d6e6099471c5ff1 # timeout=10 Commit message: "fix: dry-run use case (#441)" > 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-ssh14252804279115553874.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-337/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-337/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e@tmp/jenkins-gitclient-ssh2109013284980302145.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 a0327f913308fcf13875ae7a2d6e6099471c5ff1 Excluding src/test/ from checkout of git git@github.com:lfit/releng-pipelines.git so that library test code cannot be accessed by Pipelines. To remove this log message, move the test code outside of src/. To restore the previous behavior that allowed access to files in src/test/, pass -Dorg.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.INCLUDE_SRC_TEST_IN_LIBRARIES=true to the java command used to start Jenkins. [Pipeline] Start of Pipeline [Pipeline] echo ========================================================= [edgeXBuildGoApp] RAW Config: [project:device-rest-go] ========================================================= [Pipeline] echo Setting up nodes based on requested architectures [[amd64, arm64]] [Pipeline] echo Nodes requested: [[ubuntu20.04-docker-8c-8g, ubuntu20.04-docker-arm64-4c-16g]] [Pipeline] echo ========================================================= [edgeXBuildGoApp] Pipeline Parameters: ========================================================= [Pipeline] echo MAVEN_SETTINGS: device-rest-go-settings PROJECT: device-rest-go USE_SEMVER: true TEST_SCRIPT: make test BUILD_SCRIPT: make build GO_VERSION: 1.20 USE_ALPINE: true DOCKER_FILE_PATH: Dockerfile DOCKER_BUILD_FILE_PATH: Dockerfile.build DOCKER_BUILD_CONTEXT: . DOCKER_BUILD_IMAGE_TARGET: builder DOCKER_IMAGE_NAME: device-rest DOCKER_REGISTRY_NAMESPACE: DOCKER_NEXUS_REPO: staging BUILD_DOCKER_IMAGE: true PUSH_DOCKER_IMAGE: true BUILD_EXPERIMENTAL_DOCKER_IMAGE: false BUILD_STABLE_DOCKER_IMAGE: false SEMVER_BUMP_LEVEL: pre BUILD_SNAP: false PUBLISH_SWAGGER_DOCS: false SWAGGER_API_FOLDERS: openapi/v1 ARTIFACT_ROOT: archives/bin ARTIFACT_TYPES: docker SHOULD_BUILD: true BUILD_FAILURE_NOTIFY_LIST: edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org SNYK_DEBUG: false [Pipeline] node Still waiting to schedule task Waiting for next available executor on ‘prd-ubuntu20.04-docker-8c-8g-5480’ Running on prd-ubuntu20.04-docker-8c-8g-5482 in /w/workspace/gexfoundry_device-rest-go_PR-337 [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-337 # 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 57a7e4fe794bb86fec7da1c819e454c45e75ed90 into PR head commit 5b10af917403d11f083c9e6f632079bdea01628c Merge succeeded, producing 5b10af917403d11f083c9e6f632079bdea01628c Checking out Revision 5b10af917403d11f083c9e6f632079bdea01628c (PR-337) 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 a0327f913308fcf13875ae7a2d6e6099471c5ff1 [Pipeline] } > 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/337/head:refs/remotes/origin/PR-337 +refs/heads/main:refs/remotes/origin/main # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 5b10af917403d11f083c9e6f632079bdea01628c # 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 57a7e4fe794bb86fec7da1c819e454c45e75ed90 # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 5b10af917403d11f083c9e6f632079bdea01628c # timeout=10 [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 20:49:07 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 20:49:07 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 20:49:07 ========================================================= 20:49:07 EdgeX Global Pipelines Version Info 20:49:07 ========================================================= [Pipeline] libraryResource [Pipeline] sh 20:49:08 ------------------- 20:49:08 stable info: 20:49:08 ------------------- 20:49:08 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 20:49:08 Commit SHA: a0327f913308fcf13875ae7a2d6e6099471c5ff1 20:49:08 Message: update stable to v1.0.253 20:49:08 ------------------- 20:49:08 experimental info: 20:49:08 ------------------- 20:49:08 Commited By: **** collab-it+edgex@linuxfoundation.org 20:49:08 Commit SHA: a0327f913308fcf13875ae7a2d6e6099471c5ff1 20:49:08 Message: update experimental to v1.0.253 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 20:49:09 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 20:49:09 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 20:49:09 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 20:49:09 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 20:49:09 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 20:49:09 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.20 [Pipeline] echo 20:49:09 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 20:49:09 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 20:49:09 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 20:49:09 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 20:49:09 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 20:49:09 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 20:49:09 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 20:49:09 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 20:49:09 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 20:49:09 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 20:49:09 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 20:49:09 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 20:49:09 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 20:49:09 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 20:49:09 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 20:49:09 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 20:49:10 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 20:49:10 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 20:49:10 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 20:49:10 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 20:49:10 [edgeXSetupEnvironment]: set envvar SNYK_DEBUG = false [Pipeline] echo 20:49:10 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-337 [Pipeline] echo 20:49:10 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-337 [Pipeline] echo 20:49:10 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-337 [Pipeline] echo 20:49:10 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 5b10af917403d11f083c9e6f632079bdea01628c [Pipeline] echo 20:49:10 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 5b10af9 [Pipeline] echo 20:49:10 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 20:49:10 provisioning config files... 20:49:10 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-337@tmp/config14694702926707062846tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:49:10 ---> docker-login.sh 20:49:10 nexus3.edgexfoundry.org:10001 20:49:11 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:49:11 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:49:11 Configure a credential helper to remove this warning. See 20:49:11 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:49:11 20:49:11 Login Succeeded 20:49:11 nexus3.edgexfoundry.org:10002 20:49:11 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:49:11 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:49:11 Configure a credential helper to remove this warning. See 20:49:11 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:49:11 20:49:11 Login Succeeded 20:49:11 nexus3.edgexfoundry.org:10003 20:49:11 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:49:11 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:49:11 Configure a credential helper to remove this warning. See 20:49:11 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:49:11 20:49:11 Login Succeeded 20:49:11 nexus3.edgexfoundry.org:10004 20:49:11 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:49:11 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:49:11 Configure a credential helper to remove this warning. See 20:49:11 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:49:11 20:49:11 Login Succeeded 20:49:11 docker.io 20:49:11 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:49:11 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:49:11 Configure a credential helper to remove this warning. See 20:49:11 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:49:11 20:49:11 Login Succeeded 20:49:11 ---> docker-login.sh ends [Pipeline] } 20:49:11 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 20:49:12 + git rev-list -1 --merges 5b10af917403d11f083c9e6f632079bdea01628c~1..5b10af917403d11f083c9e6f632079bdea01628c [Pipeline] echo 20:49:12 -----------> git rev-list -1 --merges 5b10af917403d11f083c9e6f632079bdea01628c~1..5b10af917403d11f083c9e6f632079bdea01628c 5b10af917403d11f083c9e6f632079bdea01628c [false] [Pipeline] sh 20:49:12 + git log --format=format:%s -1 5b10af917403d11f083c9e6f632079bdea01628c [Pipeline] echo 20:49:12 ========================================================= 20:49:12 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 20:49:12 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 20:49:13 + git log --format=format:%s -1 5b10af917403d11f083c9e6f632079bdea01628c [Pipeline] echo 20:49:13 [semverPrep] GIT_COMMIT: 5b10af917403d11f083c9e6f632079bdea01628c, Commit Message: build(deps): Bump github.com/edgexfoundry/device-sdk-go/v3 [Pipeline] echo 20:49:13 [semverPrep] This is not a build commit. [Pipeline] sh 20:49:13 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 20:49:13 + grep -v github /etc/ssh/ssh_known_hosts 20:49:13 + [ -e /tmp/ssh_known_hosts ] 20:49:13 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 20:49:13 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 20:49:13 + sudo tee -a /etc/ssh/ssh_known_hosts 20:49:13 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:49:14 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 20:49:14 20:49:14 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:49:14 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 20:49:14 0.1.4: Pulling from edgex-devops/py-git-semver 20:49:14 b85a868b505f: Pulling fs layer 20:49:14 e2be974225ed: Pulling fs layer 20:49:14 339a4e72a1f5: Pulling fs layer 20:49:14 988bab9f4d93: Pulling fs layer 20:49:14 1469e6f7b9e6: Pulling fs layer 20:49:14 eaf3925da568: Pulling fs layer 20:49:14 bab4dde63d76: Pulling fs layer 20:49:14 bde34c3a00c8: Pulling fs layer 20:49:14 b352a97aabf1: Pulling fs layer 20:49:14 4872d77fe225: Pulling fs layer 20:49:14 5851b861e8e6: Pulling fs layer 20:49:14 988bab9f4d93: Waiting 20:49:14 1469e6f7b9e6: Waiting 20:49:14 eaf3925da568: Waiting 20:49:14 b352a97aabf1: Waiting 20:49:14 bab4dde63d76: Waiting 20:49:14 bde34c3a00c8: Waiting 20:49:14 4872d77fe225: Waiting 20:49:14 5851b861e8e6: Waiting 20:49:14 e2be974225ed: Download complete 20:49:14 1469e6f7b9e6: Verifying Checksum 20:49:14 1469e6f7b9e6: Download complete 20:49:14 eaf3925da568: Download complete 20:49:14 339a4e72a1f5: Verifying Checksum 20:49:14 339a4e72a1f5: Download complete 20:49:14 bde34c3a00c8: Verifying Checksum 20:49:14 bde34c3a00c8: Download complete 20:49:14 b352a97aabf1: Verifying Checksum 20:49:14 b352a97aabf1: Download complete 20:49:14 4872d77fe225: Verifying Checksum 20:49:14 4872d77fe225: Download complete 20:49:14 5851b861e8e6: Download complete 20:49:14 b85a868b505f: Download complete 20:49:15 bab4dde63d76: Verifying Checksum 20:49:15 bab4dde63d76: Download complete 20:49:16 b85a868b505f: Pull complete 20:49:16 e2be974225ed: Pull complete 20:49:16 339a4e72a1f5: Pull complete 20:49:17 988bab9f4d93: Pull complete 20:49:17 1469e6f7b9e6: Pull complete 20:49:17 eaf3925da568: Pull complete 20:49:19 bab4dde63d76: Pull complete 20:49:19 bde34c3a00c8: Pull complete 20:49:19 b352a97aabf1: Pull complete 20:49:19 4872d77fe225: Pull complete 20:49:19 5851b861e8e6: Pull complete 20:49:19 Digest: sha256:59a28aa3b44c0bc56b9c3d2e9ecabe42e63693d939cc6e425eb8786f29f663d8 20:49:19 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 20:49:19 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 20:49:19 prd-ubuntu20.04-docker-8c-8g-5482 does not seem to be running inside a container 20:49:19 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/gexfoundry_device-rest-go_PR-337 -v /w/workspace/gexfoundry_device-rest-go_PR-337:/w/workspace/gexfoundry_device-rest-go_PR-337:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-337@tmp:/w/workspace/gexfoundry_device-rest-go_PR-337@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:49:22 $ docker top 37e7797c63e64a562c2a4bc3175645f637570b36f72b174cac67e0852913ff54 -eo pid,comm 20:49:22 ERROR: The container started but didn't run the expected command. Please double check your ENTRYPOINT does execute the command passed as docker run argument, as required by official docker images (see https://github.com/docker-library/official-images#consistency for entrypoint consistency requirements). 20:49:22 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 20:49:22 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 20:49:22 [ssh-agent] Looking for ssh-agent implementation... 20:49:22 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 20:49:22 $ docker exec 37e7797c63e64a562c2a4bc3175645f637570b36f72b174cac67e0852913ff54 ssh-agent 20:49:23 SSH_AUTH_SOCK=/tmp/ssh-LR1PNAeNLp4A/agent.32 20:49:23 SSH_AGENT_PID=38 20:49:23 Running ssh-add (command line suppressed) 20:49:23 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-337@tmp/private_key_851582215129208307.key (/w/workspace/gexfoundry_device-rest-go_PR-337@tmp/private_key_851582215129208307.key) 20:49:23 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 20:49:23 + git tag --points-at HEAD [Pipeline] } 20:49:23 $ docker exec --env ******** --env ******** 37e7797c63e64a562c2a4bc3175645f637570b36f72b174cac67e0852913ff54 ssh-agent -k 20:49:23 unset SSH_AUTH_SOCK; 20:49:23 unset SSH_AGENT_PID; 20:49:23 echo Agent pid 38 killed; 20:49:23 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 20:49:23 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 20:49:23 [ssh-agent] Looking for ssh-agent implementation... 20:49:23 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 20:49:23 $ docker exec 37e7797c63e64a562c2a4bc3175645f637570b36f72b174cac67e0852913ff54 ssh-agent 20:49:23 SSH_AUTH_SOCK=/tmp/ssh-zC8SXlH2gmTM/agent.71 20:49:23 SSH_AGENT_PID=77 20:49:23 Running ssh-add (command line suppressed) 20:49:24 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-337@tmp/private_key_6262902982410046319.key (/w/workspace/gexfoundry_device-rest-go_PR-337@tmp/private_key_6262902982410046319.key) 20:49:24 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 20:49:24 + git semver init 20:49:24 2023-09-06 20:49:24,611 [run_init] DEBUG init version:0.0.0 force:False 20:49:24 2023-09-06 20:49:24,612 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/gexfoundry_device-rest-go_PR-337/.semver 20:49:24 2023-09-06 20:49:24,612 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-rest-go.git /w/workspace/gexfoundry_device-rest-go_PR-337/.semver 20:49:24 2023-09-06 20:49:24,612 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-rest-go.git', '/w/workspace/gexfoundry_device-rest-go_PR-337/.semver'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-337, universal_newlines=False, shell=None, istream=None) 20:49:25 2023-09-06 20:49:25,612 [append_file] DEBUG append to file:/w/workspace/gexfoundry_device-rest-go_PR-337/.git/info/exclude 20:49:25 2023-09-06 20:49:25,613 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/gexfoundry_device-rest-go_PR-337/.semver/PR-337 with force:False 20:49:25 2023-09-06 20:49:25,613 [write_file] DEBUG write to file:/w/workspace/gexfoundry_device-rest-go_PR-337/.semver/PR-337 20:49:25 2023-09-06 20:49:25,618 [execute] INFO git cat-file --batch-check 20:49:25 2023-09-06 20:49:25,618 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-337/.semver, universal_newlines=False, shell=None, istream=) 20:49:25 2023-09-06 20:49:25,624 [execute] INFO git cat-file --batch 20:49:25 2023-09-06 20:49:25,624 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-337/.semver, universal_newlines=False, shell=None, istream=) 20:49:25 2023-09-06 20:49:25,629 [read_version] DEBUG read version from /w/workspace/gexfoundry_device-rest-go_PR-337/.semver/PR-337 20:49:25 0.0.0 [Pipeline] } 20:49:25 $ docker exec --env ******** --env ******** 37e7797c63e64a562c2a4bc3175645f637570b36f72b174cac67e0852913ff54 ssh-agent -k 20:49:26 unset SSH_AUTH_SOCK; 20:49:26 unset SSH_AGENT_PID; 20:49:26 echo Agent pid 77 killed; 20:49:26 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 20:49:26 + git semver [Pipeline] } 20:49:26 $ docker stop --time=1 37e7797c63e64a562c2a4bc3175645f637570b36f72b174cac67e0852913ff54 20:49:28 $ docker rm -f --volumes 37e7797c63e64a562c2a4bc3175645f637570b36f72b174cac67e0852913ff54 [Pipeline] // withDockerContainer [Pipeline] sh 20:49:28 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 20:49:28 Stashed 1 file(s) [Pipeline] echo 20:49:28 [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:49:29 provisioning config files... 20:49:29 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-337@tmp/config8610611602207434988tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:49:29 ---> docker-login.sh 20:49:29 nexus3.edgexfoundry.org:10001 20:49:29 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:49:29 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:49:29 Configure a credential helper to remove this warning. See 20:49:29 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:49:29 20:49:29 Login Succeeded 20:49:29 nexus3.edgexfoundry.org:10002 20:49:29 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:49:29 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:49:29 Configure a credential helper to remove this warning. See 20:49:29 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:49:29 20:49:29 Login Succeeded 20:49:29 nexus3.edgexfoundry.org:10003 20:49:29 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:49:29 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:49:29 Configure a credential helper to remove this warning. See 20:49:29 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:49:29 20:49:29 Login Succeeded 20:49:29 nexus3.edgexfoundry.org:10004 20:49:29 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:49:29 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:49:29 Configure a credential helper to remove this warning. See 20:49:29 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:49:29 20:49:29 Login Succeeded 20:49:29 docker.io 20:49:30 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:49:30 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:49:30 Configure a credential helper to remove this warning. See 20:49:30 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:49:30 20:49:30 Login Succeeded 20:49:30 ---> docker-login.sh ends [Pipeline] } 20:49:30 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 20:49:30 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 20:49:30 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 20:49:30 ========================================================= 20:49:30 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine] 20:49:30 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:49:31 + 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:49:31 Sending build context to Docker daemon 10.93MB 20:49:31 Step 1/12 : ARG BASE=golang:1.20-alpine3.17 20:49:31 Step 2/12 : FROM ${BASE} AS builder 20:49:31 1.20-alpine: Pulling from edgex-devops/edgex-golang-base 20:49:31 4db1b89c0bd1: Pulling fs layer 20:49:31 6911f1a30b25: Pulling fs layer 20:49:31 e194b8c5c2a9: Pulling fs layer 20:49:31 6863d3e3a2b1: Pulling fs layer 20:49:31 ec0bb842ea78: Pulling fs layer 20:49:31 6863d3e3a2b1: Waiting 20:49:31 40a00589a448: Pulling fs layer 20:49:31 6c08303d61cc: Pulling fs layer 20:49:31 798269fcf238: Pulling fs layer 20:49:31 ec0bb842ea78: Waiting 20:49:31 40a00589a448: Waiting 20:49:31 6c08303d61cc: Waiting 20:49:31 798269fcf238: Waiting 20:49:31 6911f1a30b25: Download complete 20:49:31 6863d3e3a2b1: Verifying Checksum 20:49:31 6863d3e3a2b1: Download complete 20:49:31 ec0bb842ea78: Verifying Checksum 20:49:31 ec0bb842ea78: Download complete 20:49:31 4db1b89c0bd1: Verifying Checksum 20:49:31 4db1b89c0bd1: Download complete 20:49:31 40a00589a448: Verifying Checksum 20:49:31 40a00589a448: Download complete 20:49:31 4db1b89c0bd1: Pull complete 20:49:31 6911f1a30b25: Pull complete 20:49:31 798269fcf238: Verifying Checksum 20:49:31 798269fcf238: Download complete 20:49:31 e194b8c5c2a9: Verifying Checksum 20:49:31 e194b8c5c2a9: Download complete 20:49:32 6c08303d61cc: Verifying Checksum 20:49:32 6c08303d61cc: Download complete 20:49:35 e194b8c5c2a9: Pull complete 20:49:35 6863d3e3a2b1: Pull complete 20:49:35 ec0bb842ea78: Pull complete 20:49:35 40a00589a448: Pull complete 20:49:37 6c08303d61cc: Pull complete 20:49:38 798269fcf238: Pull complete 20:49:38 Digest: sha256:68752d3c5041900b879808a9c232fa800f64c2352b9991beceed63c007ae5301 20:49:38 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine 20:49:38 ---> ec979cd7f677 20:49:38 Step 3/12 : ARG ADD_BUILD_TAGS="" 20:49:44 ---> Running in e29426970e19 20:49:44 Removing intermediate container e29426970e19 20:49:44 ---> 20dba8ba7f32 20:49:44 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 20:49:44 ---> Running in 49274a485fc1 20:49:44 Removing intermediate container 49274a485fc1 20:49:44 ---> 830658f6ebda 20:49:44 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 20:49:44 ---> Running in 93a9416deb7d 20:49:44 Removing intermediate container 93a9416deb7d 20:49:44 ---> fc919aba6957 20:49:44 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 20:49:44 Still waiting to schedule task 20:49:44 Waiting for next available executor on ‘prd-ubuntu20.04-docker-arm64-4c-16g-5481’ 20:49:44 ---> Running in f8e13ad4fc51 20:49:44 Removing intermediate container f8e13ad4fc51 20:49:44 ---> 55cb8ade9f09 20:49:44 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 20:49:44 ---> Running in c96f35fe6068 20:49:44 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 20:49:44 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 20:49:45 (1/4) Installing openssh-keygen (9.1_p1-r4) 20:49:45 (2/4) Installing libedit (20221030.3.1-r0) 20:49:45 (3/4) Installing openssh-client-common (9.1_p1-r4) 20:49:45 (4/4) Installing openssh-client-default (9.1_p1-r4) 20:49:45 Executing busybox-1.35.0-r29.trigger 20:49:45 OK: 269 MiB in 57 packages 20:49:45 Removing intermediate container c96f35fe6068 20:49:45 ---> d9836c4877eb 20:49:45 Step 8/12 : WORKDIR /device-rest-go 20:49:45 ---> Running in 659f9b51014f 20:49:45 Removing intermediate container 659f9b51014f 20:49:45 ---> 6d10ddd0c21b 20:49:45 Step 9/12 : COPY go.mod vendor* ./ 20:49:45 ---> 364da942abd6 20:49:45 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 20:49:45 ---> Running in fa6cf367e395 20:50:18 Removing intermediate container fa6cf367e395 20:50:18 ---> 5abdd568a94b 20:50:18 Step 11/12 : COPY . . 20:50:18 ---> 7ac698444101 20:50:18 Step 12/12 : RUN $MAKE 20:50:18 ---> Running in b76a314b1c0f 20:50:18 noop 20:50:18 Removing intermediate container b76a314b1c0f 20:50:18 ---> 8c3300d09ff3 20:50:18 Successfully built 8c3300d09ff3 20:50:18 Successfully tagged ci-base-image-x86_64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:50:19 + docker inspect -f . ci-base-image-x86_64 20:50:19 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 20:50:19 prd-ubuntu20.04-docker-8c-8g-5482 does not seem to be running inside a container 20:50:19 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-337 -v /w/workspace/gexfoundry_device-rest-go_PR-337:/w/workspace/gexfoundry_device-rest-go_PR-337:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-337@tmp:/w/workspace/gexfoundry_device-rest-go_PR-337@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:50:19 $ docker top 141750ece4153671ee0081fcb9794d676bfc46f43c6ade8012ed96fa6f19fdfc -eo pid,comm [Pipeline] { [Pipeline] sh 20:50:20 + go version 20:50:20 go version go1.20.6 linux/amd64 [Pipeline] } 20:50:20 $ docker stop --time=1 141750ece4153671ee0081fcb9794d676bfc46f43c6ade8012ed96fa6f19fdfc 20:50:21 $ docker rm -f --volumes 141750ece4153671ee0081fcb9794d676bfc46f43c6ade8012ed96fa6f19fdfc [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:50:22 + docker inspect -f . ci-base-image-x86_64 20:50:22 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 20:50:22 prd-ubuntu20.04-docker-8c-8g-5482 does not seem to be running inside a container 20:50:22 $ 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-337 -v /w/workspace/gexfoundry_device-rest-go_PR-337:/w/workspace/gexfoundry_device-rest-go_PR-337:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-337@tmp:/w/workspace/gexfoundry_device-rest-go_PR-337@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:50:22 $ docker top d75d89723b06753058dafa955bd798fc97e41237a6d80c378365441a8258ae05 -eo pid,comm [Pipeline] { [Pipeline] sh 20:50:23 + git config --global --add safe.directory /w/workspace/gexfoundry_device-rest-go_PR-337 [Pipeline] fileExists [Pipeline] sh 20:50:23 + make test 20:50:23 go test ./... -coverprofile=coverage.out ./... 20:50:28 ? github.com/edgexfoundry/device-rest-go [no test files] 20:50:40 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 20:50:40 ok github.com/edgexfoundry/device-rest-go/driver 0.015s coverage: 33.2% of statements 20:50:47 go vet ./... 20:50:50 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 20:50:50 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 20:50:50 ./bin/test-attribution-txt.sh [Pipeline] echo 20:50:50 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 20:50:50 $ docker stop --time=1 d75d89723b06753058dafa955bd798fc97e41237a6d80c378365441a8258ae05 20:50:54 $ docker rm -f --volumes d75d89723b06753058dafa955bd798fc97e41237a6d80c378365441a8258ae05 [Pipeline] // withDockerContainer [Pipeline] sh 20:50:55 + sudo chown -R jenkins:jenkins . [Pipeline] stash 20:50:55 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 20:50:55 + sudo chown -R jenkins:jenkins . [Pipeline] sh 20:50:56 + ls -al . 20:50:56 total 188 20:50:56 drwxrwxr-x 9 jenkins jenkins 4096 Sep 6 20:50 . 20:50:56 drwxrwxr-x 4 jenkins jenkins 4096 Sep 6 20:49 .. 20:50:56 -rw-rw-r-- 1 jenkins jenkins 151 Sep 6 20:49 .dockerignore 20:50:56 drwxrwxr-x 8 jenkins jenkins 4096 Sep 6 20:49 .git 20:50:56 drwxrwxr-x 3 jenkins jenkins 4096 Sep 6 20:49 .github 20:50:56 -rw-rw-r-- 1 jenkins jenkins 329 Sep 6 20:49 .gitignore 20:50:56 -rw-rw-r-- 1 jenkins jenkins 41 Sep 6 20:49 .golangci.yml 20:50:56 drwxr-xr-x 3 jenkins jenkins 4096 Sep 6 20:49 .semver 20:50:56 -rw-rw-r-- 1 jenkins jenkins 10300 Sep 6 20:49 Attribution.txt 20:50:56 -rw-rw-r-- 1 jenkins jenkins 15709 Sep 6 20:49 CHANGELOG.md 20:50:56 -rw-rw-r-- 1 jenkins jenkins 1578 Sep 6 20:49 Dockerfile 20:50:56 -rw-rw-r-- 1 jenkins jenkins 677 Sep 6 20:49 GOVERNANCE.md 20:50:56 -rw-rw-r-- 1 jenkins jenkins 680 Sep 6 20:49 Jenkinsfile 20:50:56 -rw-rw-r-- 1 jenkins jenkins 11340 Sep 6 20:49 LICENSE 20:50:56 -rw-rw-r-- 1 jenkins jenkins 2010 Sep 6 20:49 Makefile 20:50:56 -rw-rw-r-- 1 jenkins jenkins 620 Sep 6 20:49 OWNERS.md 20:50:56 -rw-rw-r-- 1 jenkins jenkins 15827 Sep 6 20:49 README.md 20:50:56 -rw-rw-r-- 1 jenkins jenkins 5 Sep 6 20:49 VERSION 20:50:56 drwxrwxr-x 2 jenkins jenkins 4096 Sep 6 20:49 bin 20:50:56 drwxrwxr-x 3 jenkins jenkins 4096 Sep 6 20:49 cmd 20:50:56 -rw-r--r-- 1 jenkins jenkins 14499 Sep 6 20:50 coverage.out 20:50:56 drwxrwxr-x 2 jenkins jenkins 4096 Sep 6 20:49 driver 20:50:56 -rw-rw-r-- 1 jenkins jenkins 3889 Sep 6 20:49 go.mod 20:50:56 -rw-rw-r-- 1 jenkins jenkins 34092 Sep 6 20:49 go.sum 20:50:56 drwxrwxr-x 4 jenkins jenkins 4096 Sep 6 20:49 snap 20:50:56 -rw-rw-r-- 1 jenkins jenkins 713 Sep 6 20:49 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:50:56 + 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=5b10af917403d11f083c9e6f632079bdea01628c --label arch=amd64 --label version=0.0.0 . 20:50:56 Sending build context to Docker daemon 10.94MB 20:50:56 Step 1/25 : ARG BASE=golang:1.20-alpine3.17 20:50:56 Step 2/25 : FROM ${BASE} AS builder 20:50:56 ---> 8c3300d09ff3 20:50:56 Step 3/25 : ARG ADD_BUILD_TAGS="" 20:50:56 ---> Running in f7c25c838cb7 20:50:56 Removing intermediate container f7c25c838cb7 20:50:56 ---> 13c748c438be 20:50:56 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 20:50:56 ---> Running in 2699853b5542 20:50:56 Removing intermediate container 2699853b5542 20:50:56 ---> 19f67ac546d6 20:50:56 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 20:50:56 ---> Running in bfbb7179af74 20:50:56 Removing intermediate container bfbb7179af74 20:50:56 ---> 2bc2f4efcae6 20:50:56 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 20:50:56 ---> Running in 31368c11ab3f 20:50:57 Removing intermediate container 31368c11ab3f 20:50:57 ---> 2b02ce74fdc1 20:50:57 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 20:50:57 ---> Running in 648381258c09 20:50:57 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 20:50:57 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 20:50:58 OK: 269 MiB in 57 packages 20:50:58 Removing intermediate container 648381258c09 20:50:58 ---> 53b02f3ce96d 20:50:58 Step 8/25 : WORKDIR /device-rest-go 20:50:58 ---> Running in f85f63475e8d 20:50:58 Removing intermediate container f85f63475e8d 20:50:58 ---> e5b62ec98d13 20:50:58 Step 9/25 : COPY go.mod vendor* ./ 20:50:58 ---> 3f292358b350 20:50:58 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 20:50:58 ---> Running in 220d00080417 20:50:59 Removing intermediate container 220d00080417 20:50:59 ---> 793eb63fa221 20:50:59 Step 11/25 : COPY . . 20:50:59 ---> db5f521295ed 20:50:59 Step 12/25 : RUN $MAKE 20:50:59 ---> Running in bd639f68538b 20:50:59 CGO_ENABLED=0 go build -tags "" -ldflags "-X github.com/edgexfoundry/device-rest-go.Version=0.0.0 -X github.com/edgexfoundry/device-sdk-go/v3/internal/common.SDKVersion=v3.1.0-dev.19" -trimpath -mod=readonly -o cmd/device-rest ./cmd 20:51:21 Removing intermediate container bd639f68538b 20:51:21 ---> 1137a7882e96 20:51:21 Step 13/25 : FROM alpine:3.17 20:51:21 3.17: Pulling from library/alpine 20:51:21 9398808236ff: Pulling fs layer 20:51:21 9398808236ff: Verifying Checksum 20:51:21 9398808236ff: Download complete 20:51:21 9398808236ff: Pull complete 20:51:21 Digest: sha256:f71a5f071694a785e064f05fed657bf8277f1b2113a8ed70c90ad486d6ee54dc 20:51:21 Status: Downloaded newer image for alpine:3.17 20:51:21 ---> 1e0b8b5322fc 20:51:21 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 20:51:21 ---> Running in f7a5a49c6c5e 20:51:22 Removing intermediate container f7a5a49c6c5e 20:51:22 ---> 5ed1a69d0e62 20:51:22 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 20:51:22 ---> Running in 42d5cb266576 20:51:22 Removing intermediate container 42d5cb266576 20:51:22 ---> 523b44e0f61f 20:51:22 Step 16/25 : RUN apk add --update --no-cache dumb-init 20:51:22 ---> Running in 65a1e0ea8a10 20:51:22 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 20:51:22 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 20:51:22 (1/1) Installing dumb-init (1.2.5-r2) 20:51:22 Executing busybox-1.35.0-r29.trigger 20:51:22 OK: 7 MiB in 16 packages 20:51:23 Removing intermediate container 65a1e0ea8a10 20:51:23 ---> fc9962fc61c5 20:51:23 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 20:51:24 ---> ca3dee712e63 20:51:24 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 20:51:24 ---> 72602658da2e 20:51:24 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 20:51:24 ---> be565bd25767 20:51:24 Step 20/25 : EXPOSE 59986 20:51:24 ---> Running in d165e041f5b2 20:51:24 Removing intermediate container d165e041f5b2 20:51:24 ---> e61aace87ca3 20:51:24 Step 21/25 : ENTRYPOINT ["/device-rest"] 20:51:24 ---> Running in 591860b7761d 20:51:24 Removing intermediate container 591860b7761d 20:51:24 ---> 19586b6b2615 20:51:24 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 20:51:24 ---> Running in 5c160a1c2250 20:51:24 Removing intermediate container 5c160a1c2250 20:51:24 ---> 7a597dbb97ef 20:51:24 Step 23/25 : LABEL arch=amd64 20:51:24 ---> Running in dd9e8b79c965 20:51:25 Removing intermediate container dd9e8b79c965 20:51:25 ---> 71847b981d10 20:51:25 Step 24/25 : LABEL git_sha=5b10af917403d11f083c9e6f632079bdea01628c 20:51:25 ---> Running in 9fd65f0d9f32 20:51:25 Removing intermediate container 9fd65f0d9f32 20:51:25 ---> 2a1d095b13d6 20:51:25 Step 25/25 : LABEL version=0.0.0 20:51:25 ---> Running in 1a68ed19c6f2 20:51:25 Removing intermediate container 1a68ed19c6f2 20:51:25 ---> e991271947aa 20:51:25 [Warning] One or more build-args [ARCH] were not consumed 20:51:25 Successfully built e991271947aa 20:51:25 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:51:26 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 20:51:26 20:51:26 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:51:26 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 20:51:26 latest: Pulling from edgex-lftools-log-publisher 20:51:26 5eb5b503b376: Pulling fs layer 20:51:26 5c69ac0246d0: Pulling fs layer 20:51:26 ec43610c2a17: Pulling fs layer 20:51:26 3a2ae6a8a46f: Pulling fs layer 20:51:26 33b1e0a273af: Pulling fs layer 20:51:26 5d3b04190fa2: Pulling fs layer 20:51:26 2f39f015ded8: Pulling fs layer 20:51:26 3a2ae6a8a46f: Waiting 20:51:26 2f39f015ded8: Waiting 20:51:26 33b1e0a273af: Waiting 20:51:26 5d3b04190fa2: Waiting 20:51:26 5c69ac0246d0: Download complete 20:51:26 3a2ae6a8a46f: Verifying Checksum 20:51:26 3a2ae6a8a46f: Download complete 20:51:26 33b1e0a273af: Verifying Checksum 20:51:26 33b1e0a273af: Download complete 20:51:26 5d3b04190fa2: Verifying Checksum 20:51:26 5d3b04190fa2: Download complete 20:51:26 ec43610c2a17: Verifying Checksum 20:51:26 ec43610c2a17: Download complete 20:51:26 5eb5b503b376: Verifying Checksum 20:51:26 5eb5b503b376: Download complete 20:51:27 2f39f015ded8: Download complete 20:51:28 5eb5b503b376: Pull complete 20:51:28 5c69ac0246d0: Pull complete 20:51:28 ec43610c2a17: Pull complete 20:51:28 3a2ae6a8a46f: Pull complete 20:51:28 33b1e0a273af: Pull complete 20:51:28 5d3b04190fa2: Pull complete 20:51:33 2f39f015ded8: Pull complete 20:51:33 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 20:51:33 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 20:51:33 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 20:51:33 prd-ubuntu20.04-docker-8c-8g-5482 does not seem to be running inside a container 20:51:33 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/gexfoundry_device-rest-go_PR-337 -v /w/workspace/gexfoundry_device-rest-go_PR-337:/w/workspace/gexfoundry_device-rest-go_PR-337:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-337@tmp:/w/workspace/gexfoundry_device-rest-go_PR-337@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:51:39 $ docker top 37c350802fca48191ea04f64caeb215069f1c75f8f6a16bf7f091f607be605d8 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:51:39 ---> job-cost.sh 20:51:39 lf-activate-venv: SKIPPING 20:51:39 INFO: No Stack... 20:51:40 INFO: Retrieving Pricing Info for: v3-standard-8 20:51:40 INFO: Archiving Costs [Pipeline] sh 20:51:40 + + cut -d, -f6 20:51:40 cat /w/workspace/gexfoundry_device-rest-go_PR-337/archives/cost.csv [Pipeline] lock 20:51:40 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-337-1-stack-cost] 20:51:40 Resource [jenkins-edgexfoundry-device-rest-go-PR-337-1-stack-cost] did not exist. Created. 20:51:40 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-337-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 20:51:41 + echo total: 0.2199999988079071 [Pipeline] stash 20:51:41 Stashed 1 file(s) [Pipeline] } 20:51:41 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-337-1-stack-cost] [Pipeline] // lock [Pipeline] } 20:51:41 $ docker stop --time=1 37c350802fca48191ea04f64caeb215069f1c75f8f6a16bf7f091f607be605d8 20:51:42 $ docker rm -f --volumes 37c350802fca48191ea04f64caeb215069f1c75f8f6a16bf7f091f607be605d8 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 20:53:12 Running on prd-ubuntu20.04-docker-arm64-4c-16g-5483 in /w/workspace/gexfoundry_device-rest-go_PR-337 [Pipeline] { [Pipeline] ws 20:53:12 Running in /w/workspace/device-rest-go/1 [Pipeline] { [Pipeline] checkout 20:53:12 The recommended git tool is: git 20:53:18 using credential edgex-jenkins-ssh 20:53:18 Cloning the remote Git repository 20:53:18 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 20:53:18 > git init /w/workspace/device-rest-go/1 # timeout=10 20:53:18 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 20:53:18 > git --version # timeout=10 20:53:18 > git --version # 'git version 2.25.1' 20:53:18 using GIT_SSH to set credentials SSH Credentials for GitHub 20:53:18 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 20:53:20 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 20:53:20 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 20:53:21 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 20:53:21 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 20:53:21 using GIT_SSH to set credentials SSH Credentials for GitHub 20:53:21 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/337/head:refs/remotes/origin/PR-337 +refs/heads/main:refs/remotes/origin/main # timeout=10 20:53:21 Merging remotes/origin/main commit 57a7e4fe794bb86fec7da1c819e454c45e75ed90 into PR head commit 5b10af917403d11f083c9e6f632079bdea01628c 20:53:22 Merge succeeded, producing 5b10af917403d11f083c9e6f632079bdea01628c 20:53:22 Checking out Revision 5b10af917403d11f083c9e6f632079bdea01628c (PR-337) 20:53:22 Commit message: "build(deps): Bump github.com/edgexfoundry/device-sdk-go/v3" 20:53:22 > git --version # timeout=10 20:53:22 > git --version # 'git version 2.25.1' 20:53:22 fatal: bad object a0327f913308fcf13875ae7a2d6e6099471c5ff1 20:53:21 > git config core.sparsecheckout # timeout=10 20:53:21 > git checkout -f 5b10af917403d11f083c9e6f632079bdea01628c # timeout=10 20:53:22 > git remote # timeout=10 20:53:22 > git config --get remote.origin.url # timeout=10 20:53:22 using GIT_SSH to set credentials SSH Credentials for GitHub 20:53:22 > git merge 57a7e4fe794bb86fec7da1c819e454c45e75ed90 # timeout=10 20:53:22 > git rev-parse HEAD^{commit} # timeout=10 20:53:22 > git config core.sparsecheckout # timeout=10 20:53:22 > git checkout -f 5b10af917403d11f083c9e6f632079bdea01628c # timeout=10 [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 20:53:23 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 20:53:23 % Total % Received % Xferd Average Speed Time Time Time Current 20:53:23 Dload Upload Total Spent Left Speed 20:53:23 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 12751 100 12751 0 0 109k 0 --:--:-- --:--:-- --:--:-- 109k [Pipeline] sh 20:53:24 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 20:53:24 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 20:53:24 + sudo tee /etc/docker/daemon.new 20:53:24 { 20:53:24 "registry-mirrors": [ 20:53:24 "https://nexus3.edgexfoundry.org:10001" 20:53:24 ], 20:53:24 "bip": "10.250.0.254/24", 20:53:24 "hosts": [ 20:53:24 "tcp://0.0.0.0:5555", 20:53:24 "unix:///var/run/docker.sock" 20:53:24 ], 20:53:24 "mtu": 1458, 20:53:24 "selinux-enabled": true, 20:53:24 "seccomp-profile": "/etc/docker/seccomp.json" 20:53:24 } [Pipeline] sh 20:53:24 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 20:53:25 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 20:53:43 provisioning config files... 20:53:43 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/1@tmp/config5650319615515830590tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:53:44 ---> docker-login.sh 20:53:44 nexus3.edgexfoundry.org:10001 20:53:44 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:53:44 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:53:44 Configure a credential helper to remove this warning. See 20:53:44 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:53:44 20:53:44 Login Succeeded 20:53:44 nexus3.edgexfoundry.org:10002 20:53:44 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:53:44 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:53:44 Configure a credential helper to remove this warning. See 20:53:44 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:53:44 20:53:44 Login Succeeded 20:53:45 nexus3.edgexfoundry.org:10003 20:53:45 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:53:45 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:53:45 Configure a credential helper to remove this warning. See 20:53:45 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:53:45 20:53:45 Login Succeeded 20:53:45 nexus3.edgexfoundry.org:10004 20:53:45 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:53:45 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:53:45 Configure a credential helper to remove this warning. See 20:53:45 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:53:45 20:53:45 Login Succeeded 20:53:45 docker.io 20:53:45 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:53:46 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:53:46 Configure a credential helper to remove this warning. See 20:53:46 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:53:46 20:53:46 Login Succeeded 20:53:46 ---> docker-login.sh ends [Pipeline] } 20:53:46 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 20:53:46 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 20:53:46 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 20:53:46 ========================================================= 20:53:46 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine] 20:53:46 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:53:47 + 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:53:47 Sending build context to Docker daemon 143.4kB 20:53:47 Step 1/12 : ARG BASE=golang:1.20-alpine3.17 20:53:47 Step 2/12 : FROM ${BASE} AS builder 20:53:47 1.20-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 20:53:47 edb6bdbacee9: Pulling fs layer 20:53:47 5f9638ab2659: Pulling fs layer 20:53:47 8d51d6327a98: Pulling fs layer 20:53:47 8b374f2dd631: Pulling fs layer 20:53:47 ec14aa9079de: Pulling fs layer 20:53:47 2f466654f4bb: Pulling fs layer 20:53:47 554e91adad29: Pulling fs layer 20:53:47 2f466654f4bb: Waiting 20:53:47 8b374f2dd631: Waiting 20:53:47 ec14aa9079de: Waiting 20:53:47 554e91adad29: Waiting 20:53:47 5f9638ab2659: Verifying Checksum 20:53:47 5f9638ab2659: Download complete 20:53:47 8b374f2dd631: Download complete 20:53:47 ec14aa9079de: Verifying Checksum 20:53:47 ec14aa9079de: Download complete 20:53:47 edb6bdbacee9: Verifying Checksum 20:53:48 edb6bdbacee9: Pull complete 20:53:48 554e91adad29: Verifying Checksum 20:53:48 554e91adad29: Download complete 20:53:49 5f9638ab2659: Pull complete 20:53:50 2f466654f4bb: Verifying Checksum 20:53:50 2f466654f4bb: Download complete 20:53:50 8d51d6327a98: Verifying Checksum 20:53:50 8d51d6327a98: Download complete 20:54:02 8d51d6327a98: Pull complete 20:54:02 8b374f2dd631: Pull complete 20:54:02 ec14aa9079de: Pull complete 20:54:08 2f466654f4bb: Pull complete 20:54:10 554e91adad29: Pull complete 20:54:10 Digest: sha256:f4f79e0ab507ec6f613cbb0f842a80f635fe1a72038f554d66df6ea3828f3663 20:54:10 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine 20:54:10 ---> 1e15ea492957 20:54:10 Step 3/12 : ARG ADD_BUILD_TAGS="" 20:54:12 ---> Running in e7c2360f9f98 20:54:12 Removing intermediate container e7c2360f9f98 20:54:12 ---> 205dbb75ebb3 20:54:12 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 20:54:12 ---> Running in d40bf53b6584 20:54:12 Removing intermediate container d40bf53b6584 20:54:12 ---> 959d06f09cfc 20:54:12 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 20:54:13 ---> Running in 4a51368a61a2 20:54:13 Removing intermediate container 4a51368a61a2 20:54:13 ---> f56da42e1113 20:54:13 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 20:54:13 ---> Running in c5c28fc19bd0 20:54:13 Removing intermediate container c5c28fc19bd0 20:54:13 ---> f9131c0b99d3 20:54:13 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 20:54:13 ---> Running in 7e76f4410b00 20:54:14 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 20:54:15 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 20:54:16 (1/4) Installing openssh-keygen (9.1_p1-r4) 20:54:16 (2/4) Installing libedit (20221030.3.1-r0) 20:54:16 (3/4) Installing openssh-client-common (9.1_p1-r4) 20:54:16 (4/4) Installing openssh-client-default (9.1_p1-r4) 20:54:16 Executing busybox-1.35.0-r29.trigger 20:54:16 OK: 268 MiB in 57 packages 20:54:17 Removing intermediate container 7e76f4410b00 20:54:17 ---> 9c89902accda 20:54:17 Step 8/12 : WORKDIR /device-rest-go 20:54:17 ---> Running in 73c46e1c30f8 20:54:17 Removing intermediate container 73c46e1c30f8 20:54:17 ---> c816898adb3a 20:54:17 Step 9/12 : COPY go.mod vendor* ./ 20:54:18 ---> a6bbc0839df4 20:54:18 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 20:54:18 ---> Running in e0e073798369 20:55:26 Removing intermediate container e0e073798369 20:55:26 ---> 91e280b8e0c1 20:55:26 Step 11/12 : COPY . . 20:55:26 ---> ba4f5983e891 20:55:26 Step 12/12 : RUN $MAKE 20:55:26 ---> Running in bf41fbfdb03c 20:55:26 noop 20:55:26 Removing intermediate container bf41fbfdb03c 20:55:26 ---> c3785f326ee1 20:55:26 Successfully built c3785f326ee1 20:55:26 Successfully tagged ci-base-image-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:55:26 + docker inspect -f . ci-base-image-arm64 20:55:26 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 20:55:26 prd-ubuntu20.04-docker-arm64-4c-16g-5483 does not seem to be running inside a container 20:55:26 $ 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:55:28 $ docker top 2765f8cddf04181e5e648ce759b54b3a581fc83c5cc87a1efcd02263b7cd117b -eo pid,comm [Pipeline] { [Pipeline] sh 20:55:28 + go version 20:55:28 go version go1.20.6 linux/arm64 [Pipeline] } 20:55:28 $ docker stop --time=1 2765f8cddf04181e5e648ce759b54b3a581fc83c5cc87a1efcd02263b7cd117b 20:55:33 $ docker rm -f --volumes 2765f8cddf04181e5e648ce759b54b3a581fc83c5cc87a1efcd02263b7cd117b [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:55:33 + docker inspect -f . ci-base-image-arm64 20:55:33 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 20:55:34 prd-ubuntu20.04-docker-arm64-4c-16g-5483 does not seem to be running inside a container 20:55:34 $ 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:55:35 $ docker top 86f7af741c18a71551ac3cb0e7f55593a868bb2caa8f899cfd8080d91d130cd5 -eo pid,comm [Pipeline] { [Pipeline] sh 20:55:36 + git config --global --add safe.directory /w/workspace/device-rest-go/1 [Pipeline] fileExists [Pipeline] sh 20:55:36 + make test 20:55:36 go test ./... -coverprofile=coverage.out ./... 20:56:08 ? github.com/edgexfoundry/device-rest-go [no test files] 20:58:00 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 20:58:02 ok github.com/edgexfoundry/device-rest-go/driver 0.068s coverage: 33.2% of statements 20:58:03 WARNING: Linting skipped (not on x86_64 or linter not installed) 20:58:03 go vet ./... 20:58:35 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 20:58:35 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 20:58:35 ./bin/test-attribution-txt.sh [Pipeline] echo 20:58:35 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 20:58:35 $ docker stop --time=1 86f7af741c18a71551ac3cb0e7f55593a868bb2caa8f899cfd8080d91d130cd5 20:58:37 $ docker rm -f --volumes 86f7af741c18a71551ac3cb0e7f55593a868bb2caa8f899cfd8080d91d130cd5 [Pipeline] // withDockerContainer [Pipeline] sh 20:58:38 + sudo chown -R jenkins:jenkins . [Pipeline] stash 20:58:38 Warning: overwriting stash ‘coverage-report’ 20:58:39 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 20:58:39 + sudo chown -R jenkins:jenkins . [Pipeline] sh 20:58:40 + ls -al . 20:58:40 total 184 20:58:40 drwxrwxr-x 8 jenkins jenkins 4096 Sep 6 20:55 . 20:58:40 drwxrwxr-x 4 jenkins jenkins 4096 Sep 6 20:53 .. 20:58:40 -rw-rw-r-- 1 jenkins jenkins 151 Sep 6 20:53 .dockerignore 20:58:40 drwxrwxr-x 8 jenkins jenkins 4096 Sep 6 20:53 .git 20:58:40 drwxrwxr-x 3 jenkins jenkins 4096 Sep 6 20:53 .github 20:58:40 -rw-rw-r-- 1 jenkins jenkins 329 Sep 6 20:53 .gitignore 20:58:40 -rw-rw-r-- 1 jenkins jenkins 41 Sep 6 20:53 .golangci.yml 20:58:40 -rw-rw-r-- 1 jenkins jenkins 10300 Sep 6 20:53 Attribution.txt 20:58:40 -rw-rw-r-- 1 jenkins jenkins 15709 Sep 6 20:53 CHANGELOG.md 20:58:40 -rw-rw-r-- 1 jenkins jenkins 1578 Sep 6 20:53 Dockerfile 20:58:40 -rw-rw-r-- 1 jenkins jenkins 677 Sep 6 20:53 GOVERNANCE.md 20:58:40 -rw-rw-r-- 1 jenkins jenkins 680 Sep 6 20:53 Jenkinsfile 20:58:40 -rw-rw-r-- 1 jenkins jenkins 11340 Sep 6 20:53 LICENSE 20:58:40 -rw-rw-r-- 1 jenkins jenkins 2010 Sep 6 20:53 Makefile 20:58:40 -rw-rw-r-- 1 jenkins jenkins 620 Sep 6 20:53 OWNERS.md 20:58:40 -rw-rw-r-- 1 jenkins jenkins 15827 Sep 6 20:53 README.md 20:58:40 -rw-rw-r-- 1 jenkins jenkins 5 Sep 6 20:49 VERSION 20:58:40 drwxrwxr-x 2 jenkins jenkins 4096 Sep 6 20:53 bin 20:58:40 drwxrwxr-x 3 jenkins jenkins 4096 Sep 6 20:53 cmd 20:58:40 -rw-r--r-- 1 jenkins jenkins 14499 Sep 6 20:58 coverage.out 20:58:40 drwxrwxr-x 2 jenkins jenkins 4096 Sep 6 20:53 driver 20:58:40 -rw-rw-r-- 1 jenkins jenkins 3889 Sep 6 20:53 go.mod 20:58:40 -rw-rw-r-- 1 jenkins jenkins 34092 Sep 6 20:53 go.sum 20:58:40 drwxrwxr-x 4 jenkins jenkins 4096 Sep 6 20:53 snap 20:58:40 -rw-rw-r-- 1 jenkins jenkins 713 Sep 6 20:53 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:58:40 + 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=5b10af917403d11f083c9e6f632079bdea01628c --label arch=arm64 --label version=0.0.0 . 20:58:40 Sending build context to Docker daemon 158.7kB 20:58:40 Step 1/25 : ARG BASE=golang:1.20-alpine3.17 20:58:40 Step 2/25 : FROM ${BASE} AS builder 20:58:40 ---> c3785f326ee1 20:58:40 Step 3/25 : ARG ADD_BUILD_TAGS="" 20:58:40 ---> Running in c0ae6cced647 20:58:41 Removing intermediate container c0ae6cced647 20:58:41 ---> fe6790e4c429 20:58:41 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 20:58:41 ---> Running in e6a57c32336f 20:58:41 Removing intermediate container e6a57c32336f 20:58:41 ---> fb1868fd4763 20:58:41 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 20:58:41 ---> Running in 29f5d8ecbad1 20:58:41 Removing intermediate container 29f5d8ecbad1 20:58:41 ---> d8211787f429 20:58:41 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 20:58:41 ---> Running in 822c6ff269b7 20:58:42 Removing intermediate container 822c6ff269b7 20:58:42 ---> 9c8b11e9c296 20:58:42 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 20:58:42 ---> Running in 03dc1ff7ea6b 20:58:43 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 20:58:43 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 20:58:44 OK: 268 MiB in 57 packages 20:58:45 Removing intermediate container 03dc1ff7ea6b 20:58:45 ---> 545720584825 20:58:45 Step 8/25 : WORKDIR /device-rest-go 20:58:45 ---> Running in cedafc24db36 20:58:45 Removing intermediate container cedafc24db36 20:58:45 ---> f3a00e126881 20:58:45 Step 9/25 : COPY go.mod vendor* ./ 20:58:46 ---> 9ac1e47c68b7 20:58:46 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 20:58:46 ---> Running in c17b5f39d59b 20:58:48 Removing intermediate container c17b5f39d59b 20:58:48 ---> b17fa2ff5604 20:58:48 Step 11/25 : COPY . . 20:58:48 ---> f17207ad0e0d 20:58:48 Step 12/25 : RUN $MAKE 20:58:48 ---> Running in 7f655608df0a 20:58:49 CGO_ENABLED=0 go build -tags "" -ldflags "-X github.com/edgexfoundry/device-rest-go.Version=0.0.0 -X github.com/edgexfoundry/device-sdk-go/v3/internal/common.SDKVersion=v3.1.0-dev.19" -trimpath -mod=readonly -o cmd/device-rest ./cmd 21:00:56 Removing intermediate container 7f655608df0a 21:00:56 ---> b43929e08b96 21:00:56 Step 13/25 : FROM alpine:3.17 21:00:56 3.17: Pulling from library/alpine 21:00:56 4060ece20d7a: Pulling fs layer 21:00:56 4060ece20d7a: Verifying Checksum 21:00:56 4060ece20d7a: Download complete 21:00:56 4060ece20d7a: Pull complete 21:00:56 Digest: sha256:f71a5f071694a785e064f05fed657bf8277f1b2113a8ed70c90ad486d6ee54dc 21:00:56 Status: Downloaded newer image for alpine:3.17 21:00:56 ---> 8650cd65339b 21:00:56 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 21:00:56 ---> Running in e877a16076ce 21:00:56 Removing intermediate container e877a16076ce 21:00:56 ---> 1ad66bf90370 21:00:56 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 21:00:56 ---> Running in 37d59f20750d 21:00:56 Removing intermediate container 37d59f20750d 21:00:56 ---> c14887c2b537 21:00:56 Step 16/25 : RUN apk add --update --no-cache dumb-init 21:00:56 ---> Running in 0b5d1409f121 21:00:57 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 21:00:58 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 21:00:59 (1/1) Installing dumb-init (1.2.5-r2) 21:00:59 Executing busybox-1.35.0-r29.trigger 21:00:59 OK: 8 MiB in 16 packages 21:00:59 Removing intermediate container 0b5d1409f121 21:00:59 ---> 70b503e85302 21:00:59 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 21:01:01 ---> 60e5dc7001ff 21:01:01 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 21:01:01 ---> 8ff64412fc63 21:01:01 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 21:01:02 ---> d3cbf10e7855 21:01:02 Step 20/25 : EXPOSE 59986 21:01:02 ---> Running in caca70a0116e 21:01:02 Removing intermediate container caca70a0116e 21:01:02 ---> 6db0d9701fe5 21:01:02 Step 21/25 : ENTRYPOINT ["/device-rest"] 21:01:02 ---> Running in ba6d651cc4d5 21:01:02 Removing intermediate container ba6d651cc4d5 21:01:02 ---> 880bbc34464b 21:01:02 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 21:01:02 ---> Running in f242fc43ce72 21:01:03 Removing intermediate container f242fc43ce72 21:01:03 ---> c9b628f352b9 21:01:03 Step 23/25 : LABEL arch=arm64 21:01:03 ---> Running in 459206dc05d3 21:01:03 Removing intermediate container 459206dc05d3 21:01:03 ---> e312198ae73d 21:01:03 Step 24/25 : LABEL git_sha=5b10af917403d11f083c9e6f632079bdea01628c 21:01:03 ---> Running in 498b9f838a30 21:01:03 Removing intermediate container 498b9f838a30 21:01:03 ---> 19dd972fa505 21:01:03 Step 25/25 : LABEL version=0.0.0 21:01:03 ---> Running in 32a95483fa85 21:01:04 Removing intermediate container 32a95483fa85 21:01:04 ---> d82724e46506 21:01:04 [Warning] One or more build-args [ARCH] were not consumed 21:01:04 Successfully built d82724e46506 21:01: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 21:01:04 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 21:01:04 21:01:04 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 21:01:05 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 21:01:05 arm64: Pulling from edgex-lftools-log-publisher 21:01:05 8998bd30e6a1: Pulling fs layer 21:01:05 04944245beec: Pulling fs layer 21:01:05 699f458cf7ca: Pulling fs layer 21:01:05 765212b225bb: Pulling fs layer 21:01:05 f23df028b6ca: Pulling fs layer 21:01:05 d65c8cfc05b1: Pulling fs layer 21:01:05 2437ff75d9bd: Pulling fs layer 21:01:05 765212b225bb: Waiting 21:01:05 f23df028b6ca: Waiting 21:01:05 d65c8cfc05b1: Waiting 21:01:05 2437ff75d9bd: Waiting 21:01:05 04944245beec: Verifying Checksum 21:01:05 04944245beec: Download complete 21:01:05 765212b225bb: Verifying Checksum 21:01:05 765212b225bb: Download complete 21:01:05 f23df028b6ca: Download complete 21:01:05 d65c8cfc05b1: Verifying Checksum 21:01:05 d65c8cfc05b1: Download complete 21:01:05 699f458cf7ca: Verifying Checksum 21:01:05 699f458cf7ca: Download complete 21:01:06 8998bd30e6a1: Verifying Checksum 21:01:06 8998bd30e6a1: Download complete 21:01:08 2437ff75d9bd: Verifying Checksum 21:01:08 2437ff75d9bd: Download complete 21:01:10 8998bd30e6a1: Pull complete 21:01:10 04944245beec: Pull complete 21:01:11 699f458cf7ca: Pull complete 21:01:12 765212b225bb: Pull complete 21:01:12 f23df028b6ca: Pull complete 21:01:12 d65c8cfc05b1: Pull complete 21:01:28 2437ff75d9bd: Pull complete 21:01:28 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 21:01:28 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 21:01:28 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 21:01:28 prd-ubuntu20.04-docker-arm64-4c-16g-5483 does not seem to be running inside a container 21:01:28 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/device-rest-go/1 -v /w/workspace/device-rest-go/1:/w/workspace/device-rest-go/1:rw,z -v /w/workspace/device-rest-go/1@tmp:/w/workspace/device-rest-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 21:01:30 $ docker top e6d5cc3b50a29fe43aa53447519127276239f33960a2a3243b10c8d931efb1d1 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 21:01:31 ---> job-cost.sh 21:01:31 lf-activate-venv: SKIPPING 21:01:31 INFO: No Stack... 21:01:31 INFO: Retrieving Pricing Info for: v3-standard-4 21:01:32 INFO: Archiving Costs [Pipeline] sh 21:01:33 + cat /w/workspace/device-rest-go/1/archives/cost.csv+ 21:01:33 cut -d, -f6 [Pipeline] lock 21:01:33 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-337-1-stack-cost] 21:01:33 Resource [jenkins-edgexfoundry-device-rest-go-PR-337-1-stack-cost] did not exist. Created. 21:01:33 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-337-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 21:01:33 /w/workspace/device-rest-go/1@tmp/durable-74516c97/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 21:01:34 + echo total: 0.10999999940395355 [Pipeline] stash 21:01:34 Warning: overwriting stash ‘stack-cost’ 21:01:34 Stashed 1 file(s) [Pipeline] } 21:01:34 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-337-1-stack-cost] [Pipeline] // lock [Pipeline] } 21:01:34 $ docker stop --time=1 e6d5cc3b50a29fe43aa53447519127276239f33960a2a3243b10c8d931efb1d1 21:01:35 $ docker rm -f --volumes e6d5cc3b50a29fe43aa53447519127276239f33960a2a3243b10c8d931efb1d1 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // ws [Pipeline] } [Pipeline] // node [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // parallel [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (CodeCov) [Pipeline] unstash [Pipeline] configFileProvider 21:01:36 provisioning config files... 21:01:36 copy managed file [device-rest-go-codecov-token] to file:/w/workspace/gexfoundry_device-rest-go_PR-337@tmp/config1042431038056130070tmp [Pipeline] { [Pipeline] sh 21:01:37 + set +x 21:01:37 + curl -s https://codecov.io/bash 21:01:37 + bash -s -- 21:01:37 21:01:37 _____ _ 21:01:37 / ____| | | 21:01:37 | | ___ __| | ___ ___ _____ __ 21:01:37 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 21:01:37 | |___| (_) | (_| | __/ (_| (_) \ V / 21:01:37 \_____\___/ \__,_|\___|\___\___/ \_/ 21:01:37 Bash-1.0.6 21:01:37 21:01:37 21:01:37 ==> git version 2.25.1 found 21:01: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 21:01:37 Release-Date: 2020-01-08 21:01: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 21:01:37 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 21:01:37 ==> Jenkins CI detected. 21:01:37 current dir:  /w/workspace/gexfoundry_device-rest-go_PR-337 21:01:37 project root: . 21:01:37 --> token set from env 21:01:37 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 21:01:37 ==> Running gcov in . (disable via -X gcov) 21:01:37 ==> Python coveragepy not found 21:01:37 ==> Searching for coverage reports in: 21:01:37 + . 21:01:37 -> Found 1 reports 21:01:37 ==> Detecting git/mercurial file structure 21:01:37 ==> Reading reports 21:01:37 + ./coverage.out bytes=14499 21:01:37 ==> Appending adjustments 21:01:37 https://docs.codecov.io/docs/fixing-reports 21:01:37 + Found adjustments 21:01:37 ==> Gzipping contents 21:01:37 4.0K /tmp/codecov.SYqNvT.gz 21:01:37 ==> Uploading reports 21:01:37 url: https://codecov.io 21:01:37 query: branch=PR-337&commit=5b10af917403d11f083c9e6f632079bdea01628c&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-337%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=337&job=&cmd_args= 21:01:37 -> Pinging Codecov 21:01:37 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=c51feb23-73ac-4f49-b3d1-d26df23137db&branch=PR-337&commit=5b10af917403d11f083c9e6f632079bdea01628c&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-337%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=337&job=&cmd_args= 21:01:37 -> Uploading to 21:01:37 https://storage.googleapis.com/codecov/v4/raw/2023-09-06/4E5D53B4F1F92C436F7061BF334D961C/5b10af917403d11f083c9e6f632079bdea01628c/327b0a00-cf87-417d-8fc9-1867f4e4f383.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20230906%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20230906T210137Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=10219ef5b29a4fe3930a35ceccab3a93af880d5720edbbaa73878f4c3e9c3976 21:01:37 % Total % Received % Xferd Average Speed Time Time Time Current 21:01:37 Dload Upload Total Spent Left Speed 21:01:37 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 2493 0 0 100 2493 0 12527 --:--:-- --:--:-- --:--:-- 12527 21:01:37 -> Reports have been successfully queued for processing at https://app.codecov.io/github/edgexfoundry/device-rest-go/commit/5b10af917403d11f083c9e6f632079bdea01628c [Pipeline] } 21:01:37 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Snyk Dependency Scan) Stage "Snyk Dependency Scan" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Archive Prep) Stage "Archive Prep" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Publish Swagger) Stage "Publish Swagger" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Semver) Stage "Semver" skipped due to when conditional [Pipeline] stage [Pipeline] { (Tag) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Pre-Release Version) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Experimental Tag) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Stable (Named) Tag) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Declarative: Post Actions) [Pipeline] stage [Pipeline] { (LF Post Build Actions) [Pipeline] sh 21:01:39 + [ -d /w/workspace/gexfoundry_device-rest-go_PR-337/archives ] 21:01:39 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-337/archives 21:01:39 total 16 21:01:39 drwxr-xr-x 3 root root 4096 Sep 6 20:51 . 21:01:39 drwxrwxr-x 10 jenkins jenkins 4096 Sep 6 20:51 .. 21:01:39 drwxr-xr-x 2 root root 4096 Sep 6 20:51 cost 21:01:39 -rw-r--r-- 1 root root 86 Sep 6 20:51 cost.csv 21:01:39 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-rest-go_PR-337/archives 21:01:39 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-337/archives 21:01:39 total 16 21:01:39 drwxr-xr-x 3 jenkins jenkins 4096 Sep 6 20:51 . 21:01:39 drwxrwxr-x 10 jenkins jenkins 4096 Sep 6 20:51 .. 21:01:39 drwxr-xr-x 2 jenkins jenkins 4096 Sep 6 20:51 cost 21:01:39 -rw-r--r-- 1 jenkins jenkins 86 Sep 6 20:51 cost.csv [Pipeline] libraryResource [Pipeline] sh 21:01:39 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 21:01:40 ---> package-listing.sh 21:01:40 ++ facter osfamily 21:01:40 ++ tr '[:upper:]' '[:lower:]' 21:01:40 + OS_FAMILY=debian 21:01:40 + workspace=/w/workspace/gexfoundry_device-rest-go_PR-337 21:01:40 + START_PACKAGES=/tmp/packages_start.txt 21:01:40 + END_PACKAGES=/tmp/packages_end.txt 21:01:40 + DIFF_PACKAGES=/tmp/packages_diff.txt 21:01:40 + PACKAGES=/tmp/packages_start.txt 21:01:40 + '[' /w/workspace/gexfoundry_device-rest-go_PR-337 ']' 21:01:40 + PACKAGES=/tmp/packages_end.txt 21:01:40 + case "${OS_FAMILY}" in 21:01:40 + dpkg -l 21:01:40 + grep '^ii' 21:01:40 + '[' -f /tmp/packages_start.txt ']' 21:01:40 + '[' -f /tmp/packages_end.txt ']' 21:01:40 + diff /tmp/packages_start.txt /tmp/packages_end.txt 21:01:40 + '[' /w/workspace/gexfoundry_device-rest-go_PR-337 ']' 21:01:40 + mkdir -p /w/workspace/gexfoundry_device-rest-go_PR-337/archives/ 21:01:40 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/gexfoundry_device-rest-go_PR-337/archives/ [Pipeline] echo 21:01:40 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-337/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 21:01:41 + facter operatingsystem [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 21:01:41 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 21:01:41 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 21:01:41 prd-ubuntu20.04-docker-8c-8g-5482 does not seem to be running inside a container 21:01:41 $ 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-337/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-337 -v /w/workspace/gexfoundry_device-rest-go_PR-337:/w/workspace/gexfoundry_device-rest-go_PR-337:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-337@tmp:/w/workspace/gexfoundry_device-rest-go_PR-337@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 21:01:42 $ docker top 1a1248239164e9c62bc50b3f120df3795794fb290abf41aeeafaae5af7be1cb8 -eo pid,comm [Pipeline] { [Pipeline] sh 21:01:42 + touch /tmp/pre-build-complete [Pipeline] sh 21:01:42 + mkdir -p /var/log/sysstat [Pipeline] sh 21:01:43 + ls /var/log/sa-host 21:01:43 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 21:01:43 provisioning config files... 21:01:43 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-337@tmp/config8906783766080817239tmp [Pipeline] { [Pipeline] echo 21:01:43 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 21:01:43 ---> create-netrc.sh [Pipeline] } 21:01:43 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 21:01:44 ---> python-tools-install.sh [Pipeline] echo 21:01:44 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 21:01:44 ---> sudo-logs.sh 21:01:44 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 21:01:44 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 21:01:44 ---> job-cost.sh 21:01:44 lf-activate-venv: SKIPPING 21:01:44 DEBUG: total: 0.2199999988079071 21:01:44 INFO: Retrieving Stack Cost... 21:01:45 INFO: Retrieving Pricing Info for: v3-standard-8 21:01:45 INFO: Archiving Costs [Pipeline] echo 21:01:45 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 21:01:45 ---> logs-deploy.sh 21:01:45 lf-activate-venv: SKIPPING 21:01:45 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-337/1 21:01:45 INFO: archiving workspace using pattern(s): 21:01:46 Archives upload complete. 21:01:46 INFO: archiving logs to Nexus