Pull request #318 event Connecting to https://api.github.com using edgex-jenkins github personal access token Obtained Jenkinsfile from 6879e16c9873b7ee47a0ce6feb41051dd9546c53+47b604616574ded3ba804dffb2a679ce0d70252d (da5f7f46d461c20771fdb7ec607697eeff07b0c6) 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-ssh13375099595745765829.key > git ls-remote -h -t -- git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Found match: refs/tags/stable revision 4fc256d9079ed2258907e613f84b1b8da264a4bd Resolving tag commit... (remote references may be a lightweight tag or an annotated tag) > git rev-parse --resolve-git-dir /var/lib/jenkins/caches/git-95b00d7e16de695d9f4849f078f37a0f/.git # timeout=10 Setting origin to git@github.com:edgexfoundry/edgex-global-pipelines.git > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Fetching origin... Fetching upstream changes from origin > git --version # timeout=10 > git --version # 'git version 2.16.6' > git config --get remote.origin.url # timeout=10 using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/caches/git-95b00d7e16de695d9f4849f078f37a0f@tmp/jenkins-gitclient-ssh5964084645568708875.key > git fetch --tags --progress -- origin +refs/heads/*:refs/remotes/origin/* # timeout=10 > git rev-parse refs/tags/stable^{commit} # timeout=10 Resolved tag stable revision 4fc256d9079ed2258907e613f84b1b8da264a4bd The recommended git tool is: git using credential edgex-jenkins-ssh > git rev-parse --resolve-git-dir /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-318/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82/.git # timeout=10 Fetching changes from the remote Git repository > 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 > 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-318/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh16263995094132018750.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision 4fc256d9079ed2258907e613f84b1b8da264a4bd (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f 4fc256d9079ed2258907e613f84b1b8da264a4bd # timeout=10 Commit message: "Merge pull request #430 from ernestojeda/release-lock" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 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-ssh711784910172516340.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 > git rev-parse --resolve-git-dir /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-318/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e/.git # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url git@github.com:lfit/releng-pipelines.git # timeout=10 Fetching without tags 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-318/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e@tmp/jenkins-gitclient-ssh16954353860356367990.key > git fetch --no-tags --progress -- git@github.com:lfit/releng-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10 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 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 ‘ubuntu20.04-docker-8c-8g’ Running on prd-ubuntu20.04-docker-8c-8g-15789 in /w/workspace/gexfoundry_device-rest-go_PR-318 [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-318 # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git > git --version # timeout=10 > git --version # 'git version 2.25.1' using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/318/head:refs/remotes/origin/PR-318 +refs/heads/main:refs/remotes/origin/main # timeout=10 Merging remotes/origin/main commit 47b604616574ded3ba804dffb2a679ce0d70252d into PR head commit 6879e16c9873b7ee47a0ce6feb41051dd9546c53 Merge succeeded, producing 6879e16c9873b7ee47a0ce6feb41051dd9546c53 Checking out Revision 6879e16c9873b7ee47a0ce6feb41051dd9546c53 (PR-318) Commit message: "build(deps): Bump github.com/spf13/cast from 1.5.0 to 1.5.1" First time build. Skipping changelog. [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 22:21:20 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 22:21:20 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 22:21:20 ========================================================= 22:21:20 EdgeX Global Pipelines Version Info 22:21:20 ========================================================= [Pipeline] libraryResource [Pipeline] sh > git config core.sparsecheckout # timeout=10 > git checkout -f 6879e16c9873b7ee47a0ce6feb41051dd9546c53 # 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 47b604616574ded3ba804dffb2a679ce0d70252d # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 6879e16c9873b7ee47a0ce6feb41051dd9546c53 # timeout=10 > git rev-list --no-walk d77b7000d1580bcb21c45df50801c805a9283008 # timeout=10 22:21:21 ------------------- 22:21:21 stable info: 22:21:21 ------------------- 22:21:21 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 22:21:21 Commit SHA: 4fc256d9079ed2258907e613f84b1b8da264a4bd 22:21:21 Message: update stable to v1.0.249 22:21:21 ------------------- 22:21:21 experimental info: 22:21:21 ------------------- 22:21:21 Commited By: **** collab-it+edgex@linuxfoundation.org 22:21:21 Commit SHA: 4fc256d9079ed2258907e613f84b1b8da264a4bd 22:21:21 Message: update experimental to v1.0.249 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 22:21:22 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 22:21:22 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 22:21:22 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 22:21:22 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 22:21:22 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 22:21:22 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.20 [Pipeline] echo 22:21:22 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 22:21:22 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 22:21:22 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 22:21:22 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 22:21:22 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 22:21:22 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 22:21:22 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 22:21:22 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 22:21:22 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 22:21:22 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 22:21:22 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 22:21:22 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 22:21:22 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 22:21:22 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 22:21:22 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 22:21:22 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 22:21:22 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 22:21:22 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 22:21:22 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 22:21:22 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 22:21:22 [edgeXSetupEnvironment]: set envvar SNYK_DEBUG = false [Pipeline] echo 22:21:22 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-318 [Pipeline] echo 22:21:22 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-318 [Pipeline] echo 22:21:22 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-318 [Pipeline] echo 22:21:22 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 6879e16c9873b7ee47a0ce6feb41051dd9546c53 [Pipeline] echo 22:21:22 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 6879e16 [Pipeline] echo 22:21:22 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 22:21:22 provisioning config files... 22:21:22 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-318@tmp/config7401009878670648153tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 22:21:22 ---> docker-login.sh 22:21:22 nexus3.edgexfoundry.org:10001 22:21:23 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:21:23 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:21:23 Configure a credential helper to remove this warning. See 22:21:23 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:21:23 22:21:23 Login Succeeded 22:21:23 nexus3.edgexfoundry.org:10002 22:21:23 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:21:23 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:21:23 Configure a credential helper to remove this warning. See 22:21:23 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:21:23 22:21:23 Login Succeeded 22:21:23 nexus3.edgexfoundry.org:10003 22:21:23 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:21:23 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:21:23 Configure a credential helper to remove this warning. See 22:21:23 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:21:23 22:21:23 Login Succeeded 22:21:23 nexus3.edgexfoundry.org:10004 22:21:23 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:21:23 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:21:23 Configure a credential helper to remove this warning. See 22:21:23 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:21:23 22:21:23 Login Succeeded 22:21:23 docker.io 22:21:23 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:21:23 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:21:23 Configure a credential helper to remove this warning. See 22:21:23 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:21:23 22:21:23 Login Succeeded 22:21:23 ---> docker-login.sh ends [Pipeline] } 22:21:23 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 22:21:24 + git rev-list -1 --merges 6879e16c9873b7ee47a0ce6feb41051dd9546c53~1..6879e16c9873b7ee47a0ce6feb41051dd9546c53 [Pipeline] echo 22:21:24 -----------> git rev-list -1 --merges 6879e16c9873b7ee47a0ce6feb41051dd9546c53~1..6879e16c9873b7ee47a0ce6feb41051dd9546c53 6879e16c9873b7ee47a0ce6feb41051dd9546c53 [false] [Pipeline] sh 22:21:24 + git log --format=format:%s -1 6879e16c9873b7ee47a0ce6feb41051dd9546c53 [Pipeline] echo 22:21:24 ========================================================= 22:21:24 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 22:21:24 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 22:21:24 + git log --format=format:%s -1 6879e16c9873b7ee47a0ce6feb41051dd9546c53 [Pipeline] echo 22:21:24 [semverPrep] GIT_COMMIT: 6879e16c9873b7ee47a0ce6feb41051dd9546c53, Commit Message: build(deps): Bump github.com/spf13/cast from 1.5.0 to 1.5.1 [Pipeline] echo 22:21:24 [semverPrep] This is not a build commit. [Pipeline] sh 22:21:25 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 22:21:25 + grep -v github /etc/ssh/ssh_known_hosts 22:21:25 + [ -e /tmp/ssh_known_hosts ] 22:21:25 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 22:21:25 + echo+ github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 22:21:25 sudo tee -a /etc/ssh/ssh_known_hosts 22:21:25 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 22:21:25 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 22:21:25 22:21:25 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 22:21:25 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 22:21:25 0.1.4: Pulling from edgex-devops/py-git-semver 22:21:25 b85a868b505f: Pulling fs layer 22:21:25 e2be974225ed: Pulling fs layer 22:21:25 339a4e72a1f5: Pulling fs layer 22:21:25 988bab9f4d93: Pulling fs layer 22:21:25 1469e6f7b9e6: Pulling fs layer 22:21:25 eaf3925da568: Pulling fs layer 22:21:25 bab4dde63d76: Pulling fs layer 22:21:25 bde34c3a00c8: Pulling fs layer 22:21:25 b352a97aabf1: Pulling fs layer 22:21:25 4872d77fe225: Pulling fs layer 22:21:25 5851b861e8e6: Pulling fs layer 22:21:25 bab4dde63d76: Waiting 22:21:25 4872d77fe225: Waiting 22:21:25 b352a97aabf1: Waiting 22:21:25 bde34c3a00c8: Waiting 22:21:25 1469e6f7b9e6: Waiting 22:21:25 eaf3925da568: Waiting 22:21:25 5851b861e8e6: Waiting 22:21:25 988bab9f4d93: Waiting 22:21:25 e2be974225ed: Verifying Checksum 22:21:25 e2be974225ed: Download complete 22:21:25 988bab9f4d93: Verifying Checksum 22:21:25 988bab9f4d93: Download complete 22:21:25 1469e6f7b9e6: Verifying Checksum 22:21:25 1469e6f7b9e6: Download complete 22:21:26 eaf3925da568: Verifying Checksum 22:21:26 eaf3925da568: Download complete 22:21:26 339a4e72a1f5: Verifying Checksum 22:21:26 339a4e72a1f5: Download complete 22:21:26 bde34c3a00c8: Download complete 22:21:26 b352a97aabf1: Verifying Checksum 22:21:26 b352a97aabf1: Download complete 22:21:26 4872d77fe225: Download complete 22:21:26 5851b861e8e6: Verifying Checksum 22:21:26 5851b861e8e6: Download complete 22:21:26 b85a868b505f: Verifying Checksum 22:21:26 b85a868b505f: Download complete 22:21:26 bab4dde63d76: Verifying Checksum 22:21:26 bab4dde63d76: Download complete 22:21:27 b85a868b505f: Pull complete 22:21:27 e2be974225ed: Pull complete 22:21:27 339a4e72a1f5: Pull complete 22:21:27 988bab9f4d93: Pull complete 22:21:28 1469e6f7b9e6: Pull complete 22:21:28 eaf3925da568: Pull complete 22:21:30 bab4dde63d76: Pull complete 22:21:30 bde34c3a00c8: Pull complete 22:21:30 b352a97aabf1: Pull complete 22:21:30 4872d77fe225: Pull complete 22:21:30 5851b861e8e6: Pull complete 22:21:30 Digest: sha256:59a28aa3b44c0bc56b9c3d2e9ecabe42e63693d939cc6e425eb8786f29f663d8 22:21:30 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 22:21:30 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 22:21:30 prd-ubuntu20.04-docker-8c-8g-15789 does not seem to be running inside a container 22:21:30 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/gexfoundry_device-rest-go_PR-318 -v /w/workspace/gexfoundry_device-rest-go_PR-318:/w/workspace/gexfoundry_device-rest-go_PR-318:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-318@tmp:/w/workspace/gexfoundry_device-rest-go_PR-318@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-devops/py-git-semver:0.1.4 cat 22:21:32 $ docker top 3a4dcb4c6843ba8cef2efa5ed65c8a0fab50c4b477d916d0d0bb2d836074ad69 -eo pid,comm 22:21:32 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). 22:21:32 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 22:21:32 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 22:21:32 [ssh-agent] Looking for ssh-agent implementation... 22:21:32 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 22:21:32 $ docker exec 3a4dcb4c6843ba8cef2efa5ed65c8a0fab50c4b477d916d0d0bb2d836074ad69 ssh-agent 22:21:32 SSH_AUTH_SOCK=/tmp/ssh-iJaEMKHDteCl/agent.33 22:21:32 SSH_AGENT_PID=40 22:21:32 Running ssh-add (command line suppressed) 22:21:33 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-318@tmp/private_key_14119725146619788976.key (/w/workspace/gexfoundry_device-rest-go_PR-318@tmp/private_key_14119725146619788976.key) 22:21:33 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 22:21:33 + git tag --points-at HEAD [Pipeline] } 22:21:33 $ docker exec --env ******** --env ******** 3a4dcb4c6843ba8cef2efa5ed65c8a0fab50c4b477d916d0d0bb2d836074ad69 ssh-agent -k 22:21:33 unset SSH_AUTH_SOCK; 22:21:33 unset SSH_AGENT_PID; 22:21:33 echo Agent pid 40 killed; 22:21:33 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 22:21:33 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 22:21:33 [ssh-agent] Looking for ssh-agent implementation... 22:21:33 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 22:21:33 $ docker exec 3a4dcb4c6843ba8cef2efa5ed65c8a0fab50c4b477d916d0d0bb2d836074ad69 ssh-agent 22:21:33 SSH_AUTH_SOCK=/tmp/ssh-uGKap8xObZ49/agent.73 22:21:33 SSH_AGENT_PID=80 22:21:33 Running ssh-add (command line suppressed) 22:21:33 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-318@tmp/private_key_7528206800331655522.key (/w/workspace/gexfoundry_device-rest-go_PR-318@tmp/private_key_7528206800331655522.key) 22:21:33 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 22:21:34 + git semver init 22:21:34 2023-05-16 22:21:34,355 [run_init] DEBUG init version:0.0.0 force:False 22:21:34 2023-05-16 22:21:34,356 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/gexfoundry_device-rest-go_PR-318/.semver 22:21:34 2023-05-16 22:21:34,356 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-rest-go.git /w/workspace/gexfoundry_device-rest-go_PR-318/.semver 22:21:34 2023-05-16 22:21:34,357 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-rest-go.git', '/w/workspace/gexfoundry_device-rest-go_PR-318/.semver'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-318, universal_newlines=False, shell=None, istream=None) 22:21:35 2023-05-16 22:21:35,300 [append_file] DEBUG append to file:/w/workspace/gexfoundry_device-rest-go_PR-318/.git/info/exclude 22:21:35 2023-05-16 22:21:35,301 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/gexfoundry_device-rest-go_PR-318/.semver/PR-318 with force:False 22:21:35 2023-05-16 22:21:35,301 [write_file] DEBUG write to file:/w/workspace/gexfoundry_device-rest-go_PR-318/.semver/PR-318 22:21:35 2023-05-16 22:21:35,305 [execute] INFO git cat-file --batch-check 22:21:35 2023-05-16 22:21:35,305 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-318/.semver, universal_newlines=False, shell=None, istream=) 22:21:35 2023-05-16 22:21:35,312 [execute] INFO git cat-file --batch 22:21:35 2023-05-16 22:21:35,312 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-318/.semver, universal_newlines=False, shell=None, istream=) 22:21:35 2023-05-16 22:21:35,317 [read_version] DEBUG read version from /w/workspace/gexfoundry_device-rest-go_PR-318/.semver/PR-318 22:21:35 0.0.0 [Pipeline] } 22:21:35 $ docker exec --env ******** --env ******** 3a4dcb4c6843ba8cef2efa5ed65c8a0fab50c4b477d916d0d0bb2d836074ad69 ssh-agent -k 22:21:35 unset SSH_AUTH_SOCK; 22:21:35 unset SSH_AGENT_PID; 22:21:35 echo Agent pid 80 killed; 22:21:35 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 22:21:35 + git semver [Pipeline] } 22:21:36 $ docker stop --time=1 3a4dcb4c6843ba8cef2efa5ed65c8a0fab50c4b477d916d0d0bb2d836074ad69 22:21:37 $ docker rm -f --volumes 3a4dcb4c6843ba8cef2efa5ed65c8a0fab50c4b477d916d0d0bb2d836074ad69 [Pipeline] // withDockerContainer [Pipeline] sh 22:21:37 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 22:21:37 Stashed 1 file(s) [Pipeline] echo 22:21:37 [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 22:21:38 provisioning config files... 22:21:38 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-318@tmp/config10457025314084988129tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 22:21:38 ---> docker-login.sh 22:21:38 nexus3.edgexfoundry.org:10001 22:21:38 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:21:38 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:21:38 Configure a credential helper to remove this warning. See 22:21:38 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:21:38 22:21:38 Login Succeeded 22:21:38 nexus3.edgexfoundry.org:10002 22:21:38 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:21:38 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:21:38 Configure a credential helper to remove this warning. See 22:21:38 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:21:38 22:21:38 Login Succeeded 22:21:38 nexus3.edgexfoundry.org:10003 22:21:38 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:21:38 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:21:38 Configure a credential helper to remove this warning. See 22:21:38 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:21:38 22:21:38 Login Succeeded 22:21:38 nexus3.edgexfoundry.org:10004 22:21:38 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:21:38 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:21:38 Configure a credential helper to remove this warning. See 22:21:38 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:21:38 22:21:38 Login Succeeded 22:21:38 docker.io 22:21:38 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:21:38 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:21:38 Configure a credential helper to remove this warning. See 22:21:38 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:21:38 22:21:38 Login Succeeded 22:21:38 ---> docker-login.sh ends [Pipeline] } 22:21:38 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 22:21:38 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 22:21:38 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 22:21:38 ========================================================= 22:21:38 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine] 22:21:38 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 22:21:39 + 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 . 22:21:39 Sending build context to Docker daemon 10.93MB 22:21:39 Step 1/12 : ARG BASE=golang:1.20-alpine3.17 22:21:39 Step 2/12 : FROM ${BASE} AS builder 22:21:39 1.20-alpine: Pulling from edgex-devops/edgex-golang-base 22:21:39 f56be85fc22e: Pulling fs layer 22:21:39 85791d961cd3: Pulling fs layer 22:21:39 d694b5ae8c79: Pulling fs layer 22:21:39 9f32a84ed3da: Pulling fs layer 22:21:39 4d19c01a9841: Pulling fs layer 22:21:39 9325e15d5711: Pulling fs layer 22:21:39 556b6ee489ea: Pulling fs layer 22:21:39 c5a4b2cf53e6: Pulling fs layer 22:21:39 9f32a84ed3da: Waiting 22:21:39 c5a4b2cf53e6: Waiting 22:21:39 4d19c01a9841: Waiting 22:21:39 85791d961cd3: Download complete 22:21:39 9f32a84ed3da: Verifying Checksum 22:21:39 9f32a84ed3da: Download complete 22:21:41 4d19c01a9841: Download complete 22:21:41 f56be85fc22e: Verifying Checksum 22:21:41 f56be85fc22e: Download complete 22:21:41 9325e15d5711: Verifying Checksum 22:21:41 9325e15d5711: Download complete 22:21:41 f56be85fc22e: Pull complete 22:21:41 85791d961cd3: Pull complete 22:21:41 c5a4b2cf53e6: Verifying Checksum 22:21:41 c5a4b2cf53e6: Download complete 22:21:41 d694b5ae8c79: Verifying Checksum 22:21:41 d694b5ae8c79: Download complete 22:21:41 556b6ee489ea: Verifying Checksum 22:21:41 556b6ee489ea: Download complete 22:21:45 d694b5ae8c79: Pull complete 22:21:45 9f32a84ed3da: Pull complete 22:21:45 4d19c01a9841: Pull complete 22:21:45 9325e15d5711: Pull complete 22:21:47 556b6ee489ea: Pull complete 22:21:48 c5a4b2cf53e6: Pull complete 22:21:48 Digest: sha256:cdb650785bd12602035d3ff87499385c169773a4d12d6eaf394b34464d3a0f2b 22:21:48 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine 22:21:48 ---> c4be618373d6 22:21:48 Step 3/12 : ARG ADD_BUILD_TAGS="" 22:21:50 ---> Running in b6e67ae298aa 22:21:50 Removing intermediate container b6e67ae298aa 22:21:50 ---> ecaf92cd74ba 22:21:50 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 22:21:51 ---> Running in ee3b1bbbaa33 22:21:51 Removing intermediate container ee3b1bbbaa33 22:21:51 ---> 54186f30b7cf 22:21:51 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 22:21:51 ---> Running in 1bf996d411fe 22:21:51 Removing intermediate container 1bf996d411fe 22:21:51 ---> f46803dcdba2 22:21:51 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 22:21:51 ---> Running in 9bb00691a4ee 22:21:51 Removing intermediate container 9bb00691a4ee 22:21:51 ---> 747d40e413c0 22:21:51 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 22:21:51 ---> Running in b313293878a2 22:21:51 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 22:21:51 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 22:21:51 (1/4) Installing openssh-keygen (9.1_p1-r3) 22:21:51 (2/4) Installing libedit (20221030.3.1-r0) 22:21:51 (3/4) Installing openssh-client-common (9.1_p1-r3) 22:21:51 (4/4) Installing openssh-client-default (9.1_p1-r3) 22:21:51 Executing busybox-1.35.0-r29.trigger 22:21:51 OK: 269 MiB in 57 packages 22:21:52 Removing intermediate container b313293878a2 22:21:52 ---> 3c13ab864c0e 22:21:52 Step 8/12 : WORKDIR /device-rest-go 22:21:52 ---> Running in b989d114284f 22:21:52 Removing intermediate container b989d114284f 22:21:52 ---> 98c4562dd160 22:21:52 Step 9/12 : COPY go.mod vendor* ./ 22:21:52 ---> b951212fa0a5 22:21:52 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 22:21:52 ---> Running in 5379eba3cd49 22:21:53 Still waiting to schedule task 22:21:53 Waiting for next available executor on ‘prd-ubuntu20.04-docker-arm64-4c-16g-15786’ 22:22:19 Removing intermediate container 5379eba3cd49 22:22:19 ---> b62b0bbe06c6 22:22:19 Step 11/12 : COPY . . 22:22:19 ---> ab16cba55acd 22:22:19 Step 12/12 : RUN $MAKE 22:22:19 ---> Running in d94ea0254785 22:22:19 noop 22:22:19 Removing intermediate container d94ea0254785 22:22:19 ---> a6160e32ad53 22:22:19 Successfully built a6160e32ad53 22:22:19 Successfully tagged ci-base-image-x86_64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 22:22:19 + docker inspect -f . ci-base-image-x86_64 22:22:19 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 22:22:19 prd-ubuntu20.04-docker-8c-8g-15789 does not seem to be running inside a container 22:22:19 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-318 -v /w/workspace/gexfoundry_device-rest-go_PR-318:/w/workspace/gexfoundry_device-rest-go_PR-318:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-318@tmp:/w/workspace/gexfoundry_device-rest-go_PR-318@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 22:22:19 $ docker top 08e972f58d2a80f82191e9293ec2e9d4535fc1f046ee523e0b210edba6947571 -eo pid,comm [Pipeline] { [Pipeline] sh 22:22:20 + go version 22:22:20 go version go1.20.2 linux/amd64 [Pipeline] } 22:22:20 $ docker stop --time=1 08e972f58d2a80f82191e9293ec2e9d4535fc1f046ee523e0b210edba6947571 22:22:21 $ docker rm -f --volumes 08e972f58d2a80f82191e9293ec2e9d4535fc1f046ee523e0b210edba6947571 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 22:22:21 + docker inspect -f . ci-base-image-x86_64 22:22:21 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 22:22:21 prd-ubuntu20.04-docker-8c-8g-15789 does not seem to be running inside a container 22:22: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-318 -v /w/workspace/gexfoundry_device-rest-go_PR-318:/w/workspace/gexfoundry_device-rest-go_PR-318:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-318@tmp:/w/workspace/gexfoundry_device-rest-go_PR-318@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 22:22:22 $ docker top a02591557ecce4e3aa3240231a036902815b1351a4a64dc2ad4fc6a0d76c22ef -eo pid,comm [Pipeline] { [Pipeline] sh 22:22:22 + git config --global --add safe.directory /w/workspace/gexfoundry_device-rest-go_PR-318 [Pipeline] fileExists [Pipeline] sh 22:22:23 + make test 22:22:23 go test ./... -coverprofile=coverage.out ./... 22:22:28 ? github.com/edgexfoundry/device-rest-go [no test files] 22:22:38 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 22:22:38 ok github.com/edgexfoundry/device-rest-go/driver 0.012s coverage: 32.2% of statements 22:22:44 go vet ./... 22:22:49 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 22:22:49 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 22:22:49 ./bin/test-attribution-txt.sh [Pipeline] echo 22:22:49 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 22:22:49 $ docker stop --time=1 a02591557ecce4e3aa3240231a036902815b1351a4a64dc2ad4fc6a0d76c22ef 22:22:51 $ docker rm -f --volumes a02591557ecce4e3aa3240231a036902815b1351a4a64dc2ad4fc6a0d76c22ef [Pipeline] // withDockerContainer [Pipeline] sh 22:22:52 + sudo chown -R jenkins:jenkins . [Pipeline] stash 22:22:52 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 22:22:52 + sudo chown -R jenkins:jenkins . [Pipeline] sh 22:22:53 + ls -al . 22:22:53 total 184 22:22:53 drwxrwxr-x 9 jenkins jenkins 4096 May 16 22:22 . 22:22:53 drwxrwxr-x 4 jenkins jenkins 4096 May 16 22:21 .. 22:22:53 -rw-rw-r-- 1 jenkins jenkins 151 May 16 22:21 .dockerignore 22:22:53 drwxrwxr-x 8 jenkins jenkins 4096 May 16 22:21 .git 22:22:53 drwxrwxr-x 3 jenkins jenkins 4096 May 16 22:21 .github 22:22:53 -rw-rw-r-- 1 jenkins jenkins 329 May 16 22:21 .gitignore 22:22:53 -rw-rw-r-- 1 jenkins jenkins 41 May 16 22:21 .golangci.yml 22:22:53 drwxr-xr-x 3 jenkins jenkins 4096 May 16 22:21 .semver 22:22:53 -rw-rw-r-- 1 jenkins jenkins 9331 May 16 22:21 Attribution.txt 22:22:53 -rw-rw-r-- 1 jenkins jenkins 13085 May 16 22:21 CHANGELOG.md 22:22:53 -rw-rw-r-- 1 jenkins jenkins 1578 May 16 22:21 Dockerfile 22:22:53 -rw-rw-r-- 1 jenkins jenkins 677 May 16 22:21 GOVERNANCE.md 22:22:53 -rw-rw-r-- 1 jenkins jenkins 680 May 16 22:21 Jenkinsfile 22:22:53 -rw-rw-r-- 1 jenkins jenkins 11340 May 16 22:21 LICENSE 22:22:53 -rw-rw-r-- 1 jenkins jenkins 1779 May 16 22:21 Makefile 22:22:53 -rw-rw-r-- 1 jenkins jenkins 620 May 16 22:21 OWNERS.md 22:22:53 -rw-rw-r-- 1 jenkins jenkins 15827 May 16 22:21 README.md 22:22:53 -rw-rw-r-- 1 jenkins jenkins 5 May 16 22:21 VERSION 22:22:53 drwxrwxr-x 2 jenkins jenkins 4096 May 16 22:21 bin 22:22:53 drwxrwxr-x 3 jenkins jenkins 4096 May 16 22:21 cmd 22:22:53 -rw-r--r-- 1 jenkins jenkins 14663 May 16 22:22 coverage.out 22:22:53 drwxrwxr-x 2 jenkins jenkins 4096 May 16 22:21 driver 22:22:53 -rw-rw-r-- 1 jenkins jenkins 3402 May 16 22:21 go.mod 22:22:53 -rw-rw-r-- 1 jenkins jenkins 31328 May 16 22:21 go.sum 22:22:53 drwxrwxr-x 4 jenkins jenkins 4096 May 16 22:21 snap 22:22:53 -rw-rw-r-- 1 jenkins jenkins 713 May 16 22:21 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 22:22:53 + 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=6879e16c9873b7ee47a0ce6feb41051dd9546c53 --label arch=amd64 --label version=0.0.0 . 22:22:53 Sending build context to Docker daemon 10.95MB 22:22:53 Step 1/25 : ARG BASE=golang:1.20-alpine3.17 22:22:53 Step 2/25 : FROM ${BASE} AS builder 22:22:53 ---> a6160e32ad53 22:22:53 Step 3/25 : ARG ADD_BUILD_TAGS="" 22:22:53 ---> Running in 4edc1147d537 22:22:53 Removing intermediate container 4edc1147d537 22:22:53 ---> 16c565229855 22:22:53 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 22:22:53 ---> Running in 1c36c312c68e 22:22:53 Removing intermediate container 1c36c312c68e 22:22:53 ---> a6e8ff97dee7 22:22:53 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 22:22:53 ---> Running in 30115476029e 22:22:53 Removing intermediate container 30115476029e 22:22:53 ---> 3ace0600a630 22:22:53 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 22:22:54 ---> Running in 01a82983eb28 22:22:54 Removing intermediate container 01a82983eb28 22:22:54 ---> d21217278e69 22:22:54 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 22:22:54 ---> Running in c8a37509d008 22:22:54 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 22:22:54 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 22:22:54 OK: 269 MiB in 57 packages 22:22:55 Removing intermediate container c8a37509d008 22:22:55 ---> f56699639c4b 22:22:55 Step 8/25 : WORKDIR /device-rest-go 22:22:55 ---> Running in 7ed015ea6a1e 22:22:55 Removing intermediate container 7ed015ea6a1e 22:22:55 ---> 4a990547fd29 22:22:55 Step 9/25 : COPY go.mod vendor* ./ 22:22:55 ---> bde0688dc7bd 22:22:55 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 22:22:55 ---> Running in 70d908a8bd66 22:22:56 Removing intermediate container 70d908a8bd66 22:22:56 ---> ce7040562dc6 22:22:56 Step 11/25 : COPY . . 22:22:56 ---> 4d8d0b39e7c2 22:22:56 Step 12/25 : RUN $MAKE 22:22:56 ---> Running in 722e655d3936 22:22:56 CGO_ENABLED=0 go build -tags "" -ldflags "-X github.com/edgexfoundry/device-rest-go.Version=0.0.0" -trimpath -mod=readonly -o cmd/device-rest ./cmd 22:23:18 Removing intermediate container 722e655d3936 22:23:18 ---> 810cbac10c87 22:23:18 Step 13/25 : FROM alpine:3.17 22:23:18 3.17: Pulling from library/alpine 22:23:18 f56be85fc22e: Already exists 22:23:18 Digest: sha256:124c7d2707904eea7431fffe91522a01e5a861a624ee31d03372cc1d138a3126 22:23:18 Status: Downloaded newer image for alpine:3.17 22:23:18 ---> 9ed4aefc74f6 22:23:18 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 22:23:18 ---> Running in a99532f840d9 22:23:18 Removing intermediate container a99532f840d9 22:23:18 ---> a61a8059d398 22:23:18 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 22:23:18 ---> Running in 88bee505253a 22:23:18 Removing intermediate container 88bee505253a 22:23:18 ---> 4e5846e4aee8 22:23:18 Step 16/25 : RUN apk add --update --no-cache dumb-init 22:23:18 ---> Running in a60789baa211 22:23:18 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 22:23:18 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 22:23:18 (1/1) Installing dumb-init (1.2.5-r2) 22:23:18 Executing busybox-1.35.0-r29.trigger 22:23:18 OK: 7 MiB in 16 packages 22:23:18 Removing intermediate container a60789baa211 22:23:18 ---> e5461eea69e7 22:23:18 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 22:23:18 ---> 0beccc0e0735 22:23:18 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 22:23:18 ---> 012ae1b79b6d 22:23:18 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 22:23:18 ---> a9423100bb77 22:23:18 Step 20/25 : EXPOSE 59986 22:23:18 ---> Running in a97610e33cde 22:23:18 Removing intermediate container a97610e33cde 22:23:18 ---> 4b212f3b25a7 22:23:18 Step 21/25 : ENTRYPOINT ["/device-rest"] 22:23:18 ---> Running in f4feccecf390 22:23:18 Removing intermediate container f4feccecf390 22:23:18 ---> 398c8fabf155 22:23:18 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 22:23:18 ---> Running in fdf1b7123c2b 22:23:18 Removing intermediate container fdf1b7123c2b 22:23:18 ---> dfc7dbe8cb67 22:23:18 Step 23/25 : LABEL arch=amd64 22:23:18 ---> Running in 1101cbcd4aad 22:23:18 Removing intermediate container 1101cbcd4aad 22:23:18 ---> dd80cf12fa02 22:23:18 Step 24/25 : LABEL git_sha=6879e16c9873b7ee47a0ce6feb41051dd9546c53 22:23:18 ---> Running in abd97b964699 22:23:18 Removing intermediate container abd97b964699 22:23:18 ---> d153082384c1 22:23:18 Step 25/25 : LABEL version=0.0.0 22:23:18 ---> Running in 893108a1f6d9 22:23:19 Removing intermediate container 893108a1f6d9 22:23:19 ---> 8ba57c395ee5 22:23:19 [Warning] One or more build-args [ARCH] were not consumed 22:23:19 Successfully built 8ba57c395ee5 22:23:19 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 22:23:19 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 22:23:19 22:23:19 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 22:23:19 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 22:23:19 latest: Pulling from edgex-lftools-log-publisher 22:23:19 5eb5b503b376: Pulling fs layer 22:23:19 5c69ac0246d0: Pulling fs layer 22:23:19 ec43610c2a17: Pulling fs layer 22:23:19 3a2ae6a8a46f: Pulling fs layer 22:23:19 33b1e0a273af: Pulling fs layer 22:23:19 5d3b04190fa2: Pulling fs layer 22:23:19 2f39f015ded8: Pulling fs layer 22:23:19 5d3b04190fa2: Waiting 22:23:19 33b1e0a273af: Waiting 22:23:19 2f39f015ded8: Waiting 22:23:19 3a2ae6a8a46f: Waiting 22:23:19 5c69ac0246d0: Download complete 22:23:19 3a2ae6a8a46f: Verifying Checksum 22:23:19 3a2ae6a8a46f: Download complete 22:23:19 33b1e0a273af: Verifying Checksum 22:23:19 33b1e0a273af: Download complete 22:23:20 5d3b04190fa2: Verifying Checksum 22:23:20 5d3b04190fa2: Download complete 22:23:20 ec43610c2a17: Verifying Checksum 22:23:20 ec43610c2a17: Download complete 22:23:20 5eb5b503b376: Verifying Checksum 22:23:20 5eb5b503b376: Download complete 22:23:20 2f39f015ded8: Download complete 22:23:21 5eb5b503b376: Pull complete 22:23:21 5c69ac0246d0: Pull complete 22:23:22 ec43610c2a17: Pull complete 22:23:22 3a2ae6a8a46f: Pull complete 22:23:22 33b1e0a273af: Pull complete 22:23:22 5d3b04190fa2: Pull complete 22:23:27 2f39f015ded8: Pull complete 22:23:27 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 22:23:27 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 22:23:27 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 22:23:27 prd-ubuntu20.04-docker-8c-8g-15789 does not seem to be running inside a container 22:23:27 $ 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-318 -v /w/workspace/gexfoundry_device-rest-go_PR-318:/w/workspace/gexfoundry_device-rest-go_PR-318:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-318@tmp:/w/workspace/gexfoundry_device-rest-go_PR-318@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 22:23:31 $ docker top d064b404d057bbade979effae637a8cc52badb162220a9a4d0977f4d51512800 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 22:23:31 ---> job-cost.sh 22:23:31 lf-activate-venv: SKIPPING 22:23:31 INFO: No Stack... 22:23:32 INFO: Retrieving Pricing Info for: v3-standard-8 22:23:32 INFO: Archiving Costs [Pipeline] sh 22:23:32 + cat /w/workspace/gexfoundry_device-rest-go_PR-318/archives/cost.csv 22:23:32 + cut -d, -f6 [Pipeline] lock 22:23:32 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-318-4-stack-cost] 22:23:32 Resource [jenkins-edgexfoundry-device-rest-go-PR-318-4-stack-cost] did not exist. Created. 22:23:32 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-318-4-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 22:23:33 + echo total: 0.2199999988079071 [Pipeline] stash 22:23:33 Stashed 1 file(s) [Pipeline] } 22:23:33 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-318-4-stack-cost] [Pipeline] // lock [Pipeline] } 22:23:33 $ docker stop --time=1 d064b404d057bbade979effae637a8cc52badb162220a9a4d0977f4d51512800 22:23:34 $ docker rm -f --volumes d064b404d057bbade979effae637a8cc52badb162220a9a4d0977f4d51512800 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 22:24:27 Running on prd-ubuntu20.04-docker-arm64-4c-16g-15792 in /w/workspace/gexfoundry_device-rest-go_PR-318 [Pipeline] { [Pipeline] ws 22:24:27 Running in /w/workspace/device-rest-go/4 [Pipeline] { [Pipeline] checkout 22:24:28 The recommended git tool is: git 22:24:35 using credential edgex-jenkins-ssh 22:24:35 Cloning the remote Git repository 22:24:35 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 22:24:35 > git init /w/workspace/device-rest-go/4 # timeout=10 22:24:35 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 22:24:35 > git --version # timeout=10 22:24:35 > git --version # 'git version 2.25.1' 22:24:35 using GIT_SSH to set credentials SSH Credentials for GitHub 22:24:35 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 22:24:37 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 22:24:37 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 22:24:39 Merging remotes/origin/main commit 47b604616574ded3ba804dffb2a679ce0d70252d into PR head commit 6879e16c9873b7ee47a0ce6feb41051dd9546c53 22:24:39 Merge succeeded, producing 6879e16c9873b7ee47a0ce6feb41051dd9546c53 22:24:39 Checking out Revision 6879e16c9873b7ee47a0ce6feb41051dd9546c53 (PR-318) 22:24:38 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 22:24:38 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 22:24:38 using GIT_SSH to set credentials SSH Credentials for GitHub 22:24:38 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/318/head:refs/remotes/origin/PR-318 +refs/heads/main:refs/remotes/origin/main # timeout=10 22:24:39 > git config core.sparsecheckout # timeout=10 22:24:39 > git checkout -f 6879e16c9873b7ee47a0ce6feb41051dd9546c53 # timeout=10 22:24:39 > git remote # timeout=10 22:24:39 > git config --get remote.origin.url # timeout=10 22:24:39 using GIT_SSH to set credentials SSH Credentials for GitHub 22:24:39 > git merge 47b604616574ded3ba804dffb2a679ce0d70252d # timeout=10 22:24:39 > git rev-parse HEAD^{commit} # timeout=10 22:24:39 > git config core.sparsecheckout # timeout=10 22:24:39 > git checkout -f 6879e16c9873b7ee47a0ce6feb41051dd9546c53 # timeout=10 22:24:40 Commit message: "build(deps): Bump github.com/spf13/cast from 1.5.0 to 1.5.1" [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 22:24:41 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 22:24:41 % Total % Received % Xferd Average Speed Time Time Time Current 22:24:41 Dload Upload Total Spent Left Speed 22:24:41 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 12751 100 12751 0 0 200k 0 --:--:-- --:--:-- --:--:-- 200k [Pipeline] sh 22:24:42 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 22:24:42 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 22:24:42 + sudo tee /etc/docker/daemon.new 22:24:42 { 22:24:42 "registry-mirrors": [ 22:24:42 "https://nexus3.edgexfoundry.org:10001" 22:24:42 ], 22:24:42 "bip": "10.250.0.254/24", 22:24:42 "hosts": [ 22:24:42 "tcp://0.0.0.0:5555", 22:24:42 "unix:///var/run/docker.sock" 22:24:42 ], 22:24:42 "mtu": 1458, 22:24:42 "selinux-enabled": true, 22:24:42 "seccomp-profile": "/etc/docker/seccomp.json" 22:24:42 } [Pipeline] sh 22:24:42 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 22:24:43 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 22:25:01 provisioning config files... 22:25:01 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/4@tmp/config17501639891644061529tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 22:25:01 ---> docker-login.sh 22:25:01 nexus3.edgexfoundry.org:10001 22:25:02 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:25:02 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:25:02 Configure a credential helper to remove this warning. See 22:25:02 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:25:02 22:25:02 Login Succeeded 22:25:02 nexus3.edgexfoundry.org:10002 22:25:02 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:25:02 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:25:02 Configure a credential helper to remove this warning. See 22:25:02 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:25:02 22:25:02 Login Succeeded 22:25:02 nexus3.edgexfoundry.org:10003 22:25:03 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:25:03 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:25:03 Configure a credential helper to remove this warning. See 22:25:03 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:25:03 22:25:03 Login Succeeded 22:25:03 nexus3.edgexfoundry.org:10004 22:25:03 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:25:03 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:25:03 Configure a credential helper to remove this warning. See 22:25:03 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:25:03 22:25:03 Login Succeeded 22:25:03 docker.io 22:25:04 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:25:04 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:25:04 Configure a credential helper to remove this warning. See 22:25:04 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:25:04 22:25:04 Login Succeeded 22:25:04 ---> docker-login.sh ends [Pipeline] } 22:25:04 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 22:25:04 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 22:25:04 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 22:25:04 ========================================================= 22:25:04 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine] 22:25:04 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 22:25:05 + 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 . 22:25:05 Sending build context to Docker daemon 139.3kB 22:25:05 Step 1/12 : ARG BASE=golang:1.20-alpine3.17 22:25:05 Step 2/12 : FROM ${BASE} AS builder 22:25:05 1.20-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 22:25:05 c41833b44d91: Pulling fs layer 22:25:05 ed15518f5707: Pulling fs layer 22:25:05 feae8fd75edb: Pulling fs layer 22:25:05 242c74f7c9fa: Pulling fs layer 22:25:05 3cdef696dda3: Pulling fs layer 22:25:05 2ced38df9373: Pulling fs layer 22:25:05 58f1dce35555: Pulling fs layer 22:25:05 242c74f7c9fa: Waiting 22:25:05 3cdef696dda3: Waiting 22:25:05 2ced38df9373: Waiting 22:25:05 58f1dce35555: Waiting 22:25:05 ed15518f5707: Verifying Checksum 22:25:05 ed15518f5707: Download complete 22:25:05 242c74f7c9fa: Verifying Checksum 22:25:05 242c74f7c9fa: Download complete 22:25:05 3cdef696dda3: Verifying Checksum 22:25:05 3cdef696dda3: Download complete 22:25:05 c41833b44d91: Verifying Checksum 22:25:05 c41833b44d91: Download complete 22:25:06 c41833b44d91: Pull complete 22:25:07 58f1dce35555: Verifying Checksum 22:25:07 58f1dce35555: Download complete 22:25:07 ed15518f5707: Pull complete 22:25:08 feae8fd75edb: Verifying Checksum 22:25:08 feae8fd75edb: Download complete 22:25:08 2ced38df9373: Verifying Checksum 22:25:08 2ced38df9373: Download complete 22:25:20 feae8fd75edb: Pull complete 22:25:20 242c74f7c9fa: Pull complete 22:25:20 3cdef696dda3: Pull complete 22:25:27 2ced38df9373: Pull complete 22:25:29 58f1dce35555: Pull complete 22:25:29 Digest: sha256:3b55595e96c696ae732e8cb20cde5b1ff7282a1fe1423a8de67617af8d15ea1e 22:25:29 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine 22:25:29 ---> fadd8f120f05 22:25:29 Step 3/12 : ARG ADD_BUILD_TAGS="" 22:25:31 ---> Running in dcb8c00eb48f 22:25:31 Removing intermediate container dcb8c00eb48f 22:25:31 ---> fd21786d51fe 22:25:31 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 22:25:31 ---> Running in 571d4bcf3771 22:25:31 Removing intermediate container 571d4bcf3771 22:25:31 ---> 111c630c436f 22:25:31 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 22:25:31 ---> Running in 86912c3e2c64 22:25:32 Removing intermediate container 86912c3e2c64 22:25:32 ---> ecf967315e0b 22:25:32 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 22:25:32 ---> Running in d10f617bc517 22:25:32 Removing intermediate container d10f617bc517 22:25:32 ---> a3d162df87ed 22:25:32 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 22:25:32 ---> Running in 102c76359b8e 22:25:34 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 22:25:34 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 22:25:36 (1/4) Installing openssh-keygen (9.1_p1-r3) 22:25:36 (2/4) Installing libedit (20221030.3.1-r0) 22:25:36 (3/4) Installing openssh-client-common (9.1_p1-r3) 22:25:36 (4/4) Installing openssh-client-default (9.1_p1-r3) 22:25:36 Executing busybox-1.35.0-r29.trigger 22:25:36 OK: 268 MiB in 57 packages 22:25:38 Removing intermediate container 102c76359b8e 22:25:38 ---> 22bb76e570cb 22:25:38 Step 8/12 : WORKDIR /device-rest-go 22:25:38 ---> Running in 7e3f676fe57f 22:25:38 Removing intermediate container 7e3f676fe57f 22:25:38 ---> 0d5704ee638b 22:25:38 Step 9/12 : COPY go.mod vendor* ./ 22:25:39 ---> 491f38660b7c 22:25:39 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 22:25:39 ---> Running in a3e050edc453 22:26:47 Removing intermediate container a3e050edc453 22:26:47 ---> 4f1493dfc265 22:26:47 Step 11/12 : COPY . . 22:26:47 ---> 8ea61c9975d9 22:26:47 Step 12/12 : RUN $MAKE 22:26:47 ---> Running in b5c448b09213 22:26:48 noop 22:26:49 Removing intermediate container b5c448b09213 22:26:49 ---> adadd97c7fe9 22:26:49 Successfully built adadd97c7fe9 22:26:49 Successfully tagged ci-base-image-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 22:26:50 + docker inspect -f . ci-base-image-arm64 22:26:50 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 22:26:50 prd-ubuntu20.04-docker-arm64-4c-16g-15792 does not seem to be running inside a container 22:26:50 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/4 -v /w/workspace/device-rest-go/4:/w/workspace/device-rest-go/4:rw,z -v /w/workspace/device-rest-go/4@tmp:/w/workspace/device-rest-go/4@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 22:26:51 $ docker top cac793ccc54c8718fb9684fc601a86386233b329e95c3411d2b4e9281877a531 -eo pid,comm [Pipeline] { [Pipeline] sh 22:26:52 + go version 22:26:52 go version go1.20.2 linux/arm64 [Pipeline] } 22:26:52 $ docker stop --time=1 cac793ccc54c8718fb9684fc601a86386233b329e95c3411d2b4e9281877a531 22:26:54 $ docker rm -f --volumes cac793ccc54c8718fb9684fc601a86386233b329e95c3411d2b4e9281877a531 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 22:26:54 + docker inspect -f . ci-base-image-arm64 22:26:54 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 22:26:55 prd-ubuntu20.04-docker-arm64-4c-16g-15792 does not seem to be running inside a container 22:26:55 $ 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/4 -v /w/workspace/device-rest-go/4:/w/workspace/device-rest-go/4:rw,z -v /w/workspace/device-rest-go/4@tmp:/w/workspace/device-rest-go/4@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 22:26:56 $ docker top 3b5ec4b4a3ec98dc73449e5043def921193f6b24d8e31774a7d2039c2776ad4b -eo pid,comm [Pipeline] { [Pipeline] sh 22:26:57 + git config --global --add safe.directory /w/workspace/device-rest-go/4 [Pipeline] fileExists [Pipeline] sh 22:26:58 + make test 22:26:58 go test ./... -coverprofile=coverage.out ./... 22:27:36 ? github.com/edgexfoundry/device-rest-go [no test files] 22:29:43 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 22:29:47 ok github.com/edgexfoundry/device-rest-go/driver 0.068s coverage: 32.2% of statements 22:29:48 WARNING: Linting skipped (not on x86_64 or linter not installed) 22:29:48 go vet ./... 22:30:20 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 22:30:20 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 22:30:20 ./bin/test-attribution-txt.sh [Pipeline] echo 22:30:20 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 22:30:20 $ docker stop --time=1 3b5ec4b4a3ec98dc73449e5043def921193f6b24d8e31774a7d2039c2776ad4b 22:30:22 $ docker rm -f --volumes 3b5ec4b4a3ec98dc73449e5043def921193f6b24d8e31774a7d2039c2776ad4b [Pipeline] // withDockerContainer [Pipeline] sh 22:30:23 + sudo chown -R jenkins:jenkins . [Pipeline] stash 22:30:23 Warning: overwriting stash ‘coverage-report’ 22:30:24 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 22:30:24 + sudo chown -R jenkins:jenkins . [Pipeline] sh 22:30:24 + ls -al . 22:30:24 total 180 22:30:24 drwxrwxr-x 8 jenkins jenkins 4096 May 16 22:27 . 22:30:24 drwxrwxr-x 4 jenkins jenkins 4096 May 16 22:24 .. 22:30:24 -rw-rw-r-- 1 jenkins jenkins 151 May 16 22:24 .dockerignore 22:30:24 drwxrwxr-x 8 jenkins jenkins 4096 May 16 22:24 .git 22:30:24 drwxrwxr-x 3 jenkins jenkins 4096 May 16 22:24 .github 22:30:24 -rw-rw-r-- 1 jenkins jenkins 329 May 16 22:24 .gitignore 22:30:24 -rw-rw-r-- 1 jenkins jenkins 41 May 16 22:24 .golangci.yml 22:30:24 -rw-rw-r-- 1 jenkins jenkins 9331 May 16 22:24 Attribution.txt 22:30:24 -rw-rw-r-- 1 jenkins jenkins 13085 May 16 22:24 CHANGELOG.md 22:30:24 -rw-rw-r-- 1 jenkins jenkins 1578 May 16 22:24 Dockerfile 22:30:24 -rw-rw-r-- 1 jenkins jenkins 677 May 16 22:24 GOVERNANCE.md 22:30:24 -rw-rw-r-- 1 jenkins jenkins 680 May 16 22:24 Jenkinsfile 22:30:24 -rw-rw-r-- 1 jenkins jenkins 11340 May 16 22:24 LICENSE 22:30:24 -rw-rw-r-- 1 jenkins jenkins 1779 May 16 22:24 Makefile 22:30:24 -rw-rw-r-- 1 jenkins jenkins 620 May 16 22:24 OWNERS.md 22:30:24 -rw-rw-r-- 1 jenkins jenkins 15827 May 16 22:24 README.md 22:30:24 -rw-rw-r-- 1 jenkins jenkins 5 May 16 22:21 VERSION 22:30:24 drwxrwxr-x 2 jenkins jenkins 4096 May 16 22:24 bin 22:30:24 drwxrwxr-x 3 jenkins jenkins 4096 May 16 22:24 cmd 22:30:24 -rw-r--r-- 1 jenkins jenkins 14663 May 16 22:29 coverage.out 22:30:24 drwxrwxr-x 2 jenkins jenkins 4096 May 16 22:24 driver 22:30:24 -rw-rw-r-- 1 jenkins jenkins 3402 May 16 22:24 go.mod 22:30:24 -rw-rw-r-- 1 jenkins jenkins 31328 May 16 22:24 go.sum 22:30:24 drwxrwxr-x 4 jenkins jenkins 4096 May 16 22:24 snap 22:30:24 -rw-rw-r-- 1 jenkins jenkins 713 May 16 22:24 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 22:30:25 + 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=6879e16c9873b7ee47a0ce6feb41051dd9546c53 --label arch=arm64 --label version=0.0.0 . 22:30:25 Sending build context to Docker daemon 154.6kB 22:30:25 Step 1/25 : ARG BASE=golang:1.20-alpine3.17 22:30:25 Step 2/25 : FROM ${BASE} AS builder 22:30:25 ---> adadd97c7fe9 22:30:25 Step 3/25 : ARG ADD_BUILD_TAGS="" 22:30:25 ---> Running in 65374ef4eb61 22:30:25 Removing intermediate container 65374ef4eb61 22:30:25 ---> ac80efbc96e9 22:30:25 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 22:30:26 ---> Running in 353de271ab8d 22:30:26 Removing intermediate container 353de271ab8d 22:30:26 ---> 9c070e090df3 22:30:26 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 22:30:26 ---> Running in 4978770175da 22:30:26 Removing intermediate container 4978770175da 22:30:26 ---> 7a8ac39db774 22:30:26 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 22:30:26 ---> Running in 9cf7453869df 22:30:27 Removing intermediate container 9cf7453869df 22:30:27 ---> bcbfb2fac6f6 22:30:27 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 22:30:27 ---> Running in 1f61a8801c7c 22:30:28 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 22:30:29 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 22:30:30 OK: 268 MiB in 57 packages 22:30:31 Removing intermediate container 1f61a8801c7c 22:30:31 ---> c289de86a5e2 22:30:31 Step 8/25 : WORKDIR /device-rest-go 22:30:31 ---> Running in 5d1dcd92bf1d 22:30:31 Removing intermediate container 5d1dcd92bf1d 22:30:31 ---> e8c7789b5e7b 22:30:31 Step 9/25 : COPY go.mod vendor* ./ 22:30:32 ---> 2f2d7314f456 22:30:32 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 22:30:32 ---> Running in a2feb5327e79 22:30:34 Removing intermediate container a2feb5327e79 22:30:34 ---> 69fc7e4c8db6 22:30:34 Step 11/25 : COPY . . 22:30:35 ---> 641f3bf9f570 22:30:35 Step 12/25 : RUN $MAKE 22:30:35 ---> Running in ac574641d9c4 22:30:36 CGO_ENABLED=0 go build -tags "" -ldflags "-X github.com/edgexfoundry/device-rest-go.Version=0.0.0" -trimpath -mod=readonly -o cmd/device-rest ./cmd 22:32:58 Removing intermediate container ac574641d9c4 22:32:58 ---> 27043fe3c7d8 22:32:58 Step 13/25 : FROM alpine:3.17 22:32:58 3.17: Pulling from library/alpine 22:32:58 c41833b44d91: Already exists 22:32:58 Digest: sha256:124c7d2707904eea7431fffe91522a01e5a861a624ee31d03372cc1d138a3126 22:32:58 Status: Downloaded newer image for alpine:3.17 22:32:58 ---> 51e60588ff2c 22:32:58 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 22:32:58 ---> Running in e8b5c5df722d 22:32:58 Removing intermediate container e8b5c5df722d 22:32:58 ---> c79550153411 22:32:58 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 22:32:58 ---> Running in f501db52e6a9 22:32:58 Removing intermediate container f501db52e6a9 22:32:58 ---> d1f6734f0331 22:32:58 Step 16/25 : RUN apk add --update --no-cache dumb-init 22:32:58 ---> Running in 4ae6fc021f63 22:32:58 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 22:32:58 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 22:32:58 (1/1) Installing dumb-init (1.2.5-r2) 22:32:58 Executing busybox-1.35.0-r29.trigger 22:32:58 OK: 8 MiB in 16 packages 22:32:58 Removing intermediate container 4ae6fc021f63 22:32:58 ---> 5cd65c213d12 22:32:58 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 22:32:58 ---> 2830bb5931a5 22:32:58 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 22:32:58 ---> f4eb39972f26 22:32:58 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 22:32:58 ---> 51f3efb8852e 22:32:58 Step 20/25 : EXPOSE 59986 22:32:58 ---> Running in c9ea1b51c6d3 22:32:58 Removing intermediate container c9ea1b51c6d3 22:32:58 ---> 8f7186a6b5b6 22:32:58 Step 21/25 : ENTRYPOINT ["/device-rest"] 22:32:58 ---> Running in 630b60cfe2d1 22:32:58 Removing intermediate container 630b60cfe2d1 22:32:58 ---> 9b9d01f066e3 22:32:58 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 22:32:58 ---> Running in 5b6e2fedcec6 22:32:58 Removing intermediate container 5b6e2fedcec6 22:32:58 ---> c70adbe3e571 22:32:58 Step 23/25 : LABEL arch=arm64 22:32:58 ---> Running in 2390bbab9709 22:32:58 Removing intermediate container 2390bbab9709 22:32:58 ---> bf25430ff38a 22:32:58 Step 24/25 : LABEL git_sha=6879e16c9873b7ee47a0ce6feb41051dd9546c53 22:32:58 ---> Running in c583ff75b4b9 22:32:58 Removing intermediate container c583ff75b4b9 22:32:58 ---> a22549113a4d 22:32:58 Step 25/25 : LABEL version=0.0.0 22:32:58 ---> Running in 73b40746f70d 22:32:58 Removing intermediate container 73b40746f70d 22:32:58 ---> 6cf7fab7221d 22:32:58 [Warning] One or more build-args [ARCH] were not consumed 22:32:58 Successfully built 6cf7fab7221d 22:32:58 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 22:32:58 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 22:32:58 22:32:58 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 22:32:59 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 22:32:59 arm64: Pulling from edgex-lftools-log-publisher 22:32:59 8998bd30e6a1: Pulling fs layer 22:32:59 04944245beec: Pulling fs layer 22:32:59 699f458cf7ca: Pulling fs layer 22:32:59 765212b225bb: Pulling fs layer 22:32:59 f23df028b6ca: Pulling fs layer 22:32:59 d65c8cfc05b1: Pulling fs layer 22:32:59 2437ff75d9bd: Pulling fs layer 22:32:59 765212b225bb: Waiting 22:32:59 f23df028b6ca: Waiting 22:32:59 d65c8cfc05b1: Waiting 22:32:59 2437ff75d9bd: Waiting 22:32:59 04944245beec: Verifying Checksum 22:32:59 04944245beec: Download complete 22:32:59 765212b225bb: Verifying Checksum 22:32:59 765212b225bb: Download complete 22:32:59 f23df028b6ca: Verifying Checksum 22:32:59 f23df028b6ca: Download complete 22:32:59 d65c8cfc05b1: Verifying Checksum 22:32:59 d65c8cfc05b1: Download complete 22:32:59 699f458cf7ca: Verifying Checksum 22:32:59 699f458cf7ca: Download complete 22:33:00 8998bd30e6a1: Verifying Checksum 22:33:00 8998bd30e6a1: Download complete 22:33:02 2437ff75d9bd: Verifying Checksum 22:33:02 2437ff75d9bd: Download complete 22:33:04 8998bd30e6a1: Pull complete 22:33:04 04944245beec: Pull complete 22:33:06 699f458cf7ca: Pull complete 22:33:06 765212b225bb: Pull complete 22:33:07 f23df028b6ca: Pull complete 22:33:07 d65c8cfc05b1: Pull complete 22:33:22 2437ff75d9bd: Pull complete 22:33:22 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 22:33:22 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 22:33:22 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 22:33:22 prd-ubuntu20.04-docker-arm64-4c-16g-15792 does not seem to be running inside a container 22:33:22 $ 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/4 -v /w/workspace/device-rest-go/4:/w/workspace/device-rest-go/4:rw,z -v /w/workspace/device-rest-go/4@tmp:/w/workspace/device-rest-go/4@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 22:33:25 $ docker top 13bee5d2a2ac0c6d2439676e58a3cec34a89d0b44bfce7de8973ac49201ce069 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 22:33:25 ---> job-cost.sh 22:33:26 lf-activate-venv: SKIPPING 22:33:26 INFO: No Stack... 22:33:26 INFO: Retrieving Pricing Info for: v3-standard-4 22:33:27 INFO: Archiving Costs [Pipeline] sh 22:33:27 + cat /w/workspace/device-rest-go/4/archives/cost.csv 22:33:27 + cut -d, -f6 [Pipeline] lock 22:33:27 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-318-4-stack-cost] 22:33:27 Resource [jenkins-edgexfoundry-device-rest-go-PR-318-4-stack-cost] did not exist. Created. 22:33:27 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-318-4-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 22:33:28 /w/workspace/device-rest-go/4@tmp/durable-ac51b4fb/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 22:33:28 + echo total: 0.10999999940395355 [Pipeline] stash 22:33:28 Warning: overwriting stash ‘stack-cost’ 22:33:28 Stashed 1 file(s) [Pipeline] } 22:33:28 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-318-4-stack-cost] [Pipeline] // lock [Pipeline] } 22:33:28 $ docker stop --time=1 13bee5d2a2ac0c6d2439676e58a3cec34a89d0b44bfce7de8973ac49201ce069 22:33:30 $ docker rm -f --volumes 13bee5d2a2ac0c6d2439676e58a3cec34a89d0b44bfce7de8973ac49201ce069 [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 22:33:30 provisioning config files... 22:33:30 copy managed file [device-rest-go-codecov-token] to file:/w/workspace/gexfoundry_device-rest-go_PR-318@tmp/config11813044635683450150tmp [Pipeline] { [Pipeline] sh 22:33:31 + set +x 22:33:31 + curl -s https://codecov.io/bash 22:33:31 + bash -s -- 22:33:31 22:33:31 _____ _ 22:33:31 / ____| | | 22:33:31 | | ___ __| | ___ ___ _____ __ 22:33:31 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 22:33:31 | |___| (_) | (_| | __/ (_| (_) \ V / 22:33:31 \_____\___/ \__,_|\___|\___\___/ \_/ 22:33:31 Bash-1.0.6 22:33:31 22:33:31 22:33:31 ==> git version 2.25.1 found 22:33:31 ==> 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 22:33:31 Release-Date: 2020-01-08 22:33:31 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 22:33:31 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 22:33:31 ==> Jenkins CI detected. 22:33:31 current dir:  /w/workspace/gexfoundry_device-rest-go_PR-318 22:33:31 project root: . 22:33:31 --> token set from env 22:33:31 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 22:33:31 ==> Running gcov in . (disable via -X gcov) 22:33:31 ==> Python coveragepy not found 22:33:31 ==> Searching for coverage reports in: 22:33:31 + . 22:33:31 -> Found 1 reports 22:33:31 ==> Detecting git/mercurial file structure 22:33:31 ==> Reading reports 22:33:31 + ./coverage.out bytes=14663 22:33:31 ==> Appending adjustments 22:33:31 https://docs.codecov.io/docs/fixing-reports 22:33:31 + Found adjustments 22:33:31 ==> Gzipping contents 22:33:31 4.0K /tmp/codecov.4nIKQI.gz 22:33:31 ==> Uploading reports 22:33:31 url: https://codecov.io 22:33:31 query: branch=PR-318&commit=6879e16c9873b7ee47a0ce6feb41051dd9546c53&build=4&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-318%2F4%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=318&job=&cmd_args= 22:33:31 -> Pinging Codecov 22:33:31 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=c51feb23-73ac-4f49-b3d1-d26df23137db&branch=PR-318&commit=6879e16c9873b7ee47a0ce6feb41051dd9546c53&build=4&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-318%2F4%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=318&job=&cmd_args= 22:33:31 -> Uploading to 22:33:31 https://storage.googleapis.com/codecov/v4/raw/2023-05-16/4E5D53B4F1F92C436F7061BF334D961C/6879e16c9873b7ee47a0ce6feb41051dd9546c53/4f246376-db1e-4127-930d-59235dabc51f.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20230516%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20230516T223331Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=226b1e702aa779fbd9b6358ca13d333c77044565dd462b71f262c8c8f6739b62 22:33:31 % Total % Received % Xferd Average Speed Time Time Time Current 22:33:31 Dload Upload Total Spent Left Speed 22:33:31 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 2510 0 0 100 2510 0 13072 --:--:-- --:--:-- --:--:-- 13005 100 2510 0 0 100 2510 0 13072 --:--:-- --:--:-- --:--:-- 13005 22:33:31 -> Reports have been successfully queued for processing at https://app.codecov.io/github/edgexfoundry/device-rest-go/commit/6879e16c9873b7ee47a0ce6feb41051dd9546c53 [Pipeline] } 22:33:31 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 22:33:32 + [ -d /w/workspace/gexfoundry_device-rest-go_PR-318/archives ] 22:33:32 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-318/archives 22:33:32 total 16 22:33:32 drwxr-xr-x 3 root root 4096 May 16 22:23 . 22:33:32 drwxrwxr-x 10 jenkins jenkins 4096 May 16 22:23 .. 22:33:32 drwxr-xr-x 2 root root 4096 May 16 22:23 cost 22:33:32 -rw-r--r-- 1 root root 86 May 16 22:23 cost.csv 22:33:32 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-rest-go_PR-318/archives 22:33:32 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-318/archives 22:33:32 total 16 22:33:32 drwxr-xr-x 3 jenkins jenkins 4096 May 16 22:23 . 22:33:32 drwxrwxr-x 10 jenkins jenkins 4096 May 16 22:23 .. 22:33:32 drwxr-xr-x 2 jenkins jenkins 4096 May 16 22:23 cost 22:33:32 -rw-r--r-- 1 jenkins jenkins 86 May 16 22:23 cost.csv [Pipeline] libraryResource [Pipeline] sh 22:33:32 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 22:33:33 ---> package-listing.sh 22:33:33 ++ facter osfamily 22:33:33 ++ tr '[:upper:]' '[:lower:]' 22:33:33 + OS_FAMILY=debian 22:33:33 + workspace=/w/workspace/gexfoundry_device-rest-go_PR-318 22:33:33 + START_PACKAGES=/tmp/packages_start.txt 22:33:33 + END_PACKAGES=/tmp/packages_end.txt 22:33:33 + DIFF_PACKAGES=/tmp/packages_diff.txt 22:33:33 + PACKAGES=/tmp/packages_start.txt 22:33:33 + '[' /w/workspace/gexfoundry_device-rest-go_PR-318 ']' 22:33:33 + PACKAGES=/tmp/packages_end.txt 22:33:33 + case "${OS_FAMILY}" in 22:33:33 + dpkg -l 22:33:33 + grep '^ii' 22:33:33 + '[' -f /tmp/packages_start.txt ']' 22:33:33 + '[' -f /tmp/packages_end.txt ']' 22:33:33 + diff /tmp/packages_start.txt /tmp/packages_end.txt 22:33:33 + '[' /w/workspace/gexfoundry_device-rest-go_PR-318 ']' 22:33:33 + mkdir -p /w/workspace/gexfoundry_device-rest-go_PR-318/archives/ 22:33:33 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/gexfoundry_device-rest-go_PR-318/archives/ [Pipeline] echo 22:33:33 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-318/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 22:33:34 + facter operatingsystem [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 22:33:34 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 22:33:34 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 22:33:34 prd-ubuntu20.04-docker-8c-8g-15789 does not seem to be running inside a container 22:33:34 $ 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-318/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-318 -v /w/workspace/gexfoundry_device-rest-go_PR-318:/w/workspace/gexfoundry_device-rest-go_PR-318:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-318@tmp:/w/workspace/gexfoundry_device-rest-go_PR-318@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 22:33:34 $ docker top edeb2fe0d22842bb24475c1fdacc5ee4d2abc9fe96bb6b325ac9cd1ab1c21dfe -eo pid,comm [Pipeline] { [Pipeline] sh 22:33:35 + touch /tmp/pre-build-complete [Pipeline] sh 22:33:35 + mkdir -p /var/log/sysstat [Pipeline] sh 22:33:35 + ls /var/log/sa-host 22:33:35 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 22:33:35 provisioning config files... 22:33:35 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-318@tmp/config13114643503344124266tmp [Pipeline] { [Pipeline] echo 22:33:35 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 22:33:36 ---> create-netrc.sh [Pipeline] } 22:33:36 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 22:33:36 ---> python-tools-install.sh [Pipeline] echo 22:33:36 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 22:33:36 ---> sudo-logs.sh 22:33:36 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 22:33:36 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 22:33:37 ---> job-cost.sh 22:33:37 lf-activate-venv: SKIPPING 22:33:37 DEBUG: total: 0.2199999988079071 22:33:37 INFO: Retrieving Stack Cost... 22:33:37 INFO: Retrieving Pricing Info for: v3-standard-8 22:33:37 INFO: Archiving Costs [Pipeline] echo 22:33:37 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 22:33:37 ---> logs-deploy.sh 22:33:37 lf-activate-venv: SKIPPING 22:33:37 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-318/4 22:33:37 INFO: archiving workspace using pattern(s): 22:33:38 Archives upload complete. 22:33:38 INFO: archiving logs to Nexus