Pull request #229 updated Connecting to https://api.github.com using edgex-jenkins github personal access token Connecting to https://api.github.com to check permissions of obtain list of sudhamani-hcl for edgexfoundry/device-rest-go Obtained Jenkinsfile from cd887716400fa6c5dc30b8e8912a614e52a9d7c0+ea2635875d50d8674d03123d64d8d0373faddc1b (14430d6e2771da6a48dae788662e4ed7f2bd9d24) 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-ssh7116856237821069698.key Verifying host key using known hosts file > git ls-remote -h -t -- git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Found match: refs/tags/stable revision cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 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-ssh9760539454545256455.key Verifying host key using known hosts file > 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 cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 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-229/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-229/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh7355897223952188706.key Verifying host key using known hosts file > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 # timeout=10 Commit message: "Merge pull request #420 from bill-mahoney/levski-update" > 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-ssh17215733142161621307.key Verifying host key using known hosts file > 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-229/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-229/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e@tmp/jenkins-gitclient-ssh16505310011516135612.key Verifying host key using known hosts file > 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.18 USE_ALPINE: true DOCKER_FILE_PATH: Dockerfile DOCKER_BUILD_FILE_PATH: Dockerfile.build DOCKER_BUILD_CONTEXT: . DOCKER_BUILD_IMAGE_TARGET: builder DOCKER_IMAGE_NAME: device-rest DOCKER_REGISTRY_NAMESPACE: DOCKER_NEXUS_REPO: staging BUILD_DOCKER_IMAGE: true PUSH_DOCKER_IMAGE: true BUILD_EXPERIMENTAL_DOCKER_IMAGE: false BUILD_STABLE_DOCKER_IMAGE: false SEMVER_BUMP_LEVEL: pre BUILD_SNAP: false PUBLISH_SWAGGER_DOCS: false SWAGGER_API_FOLDERS: openapi/v1 ARTIFACT_ROOT: archives/bin ARTIFACT_TYPES: docker SHOULD_BUILD: true BUILD_FAILURE_NOTIFY_LIST: edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org SNYK_DEBUG: false [Pipeline] node Still waiting to schedule task All nodes of label ‘ubuntu20.04-docker-8c-8g’ are offline Running on prd-ubuntu20.04-docker-8c-8g-121063 in /w/workspace/gexfoundry_device-rest-go_PR-229 [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-229 # 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 Verifying host key using known hosts file You're using 'Known hosts file' strategy to verify ssh host keys, but your known_hosts file does not exist, please go to 'Manage Jenkins' -> 'Configure Global Security' -> 'Git Host Key Verification Configuration' and configure host key verification. > 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 Verifying host key using known hosts file You're using 'Known hosts file' strategy to verify ssh host keys, but your known_hosts file does not exist, please go to 'Manage Jenkins' -> 'Configure Global Security' -> 'Git Host Key Verification Configuration' and configure host key verification. > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/229/head:refs/remotes/origin/PR-229 +refs/heads/main:refs/remotes/origin/main # timeout=10 Merging remotes/origin/main commit ea2635875d50d8674d03123d64d8d0373faddc1b into PR head commit cd887716400fa6c5dc30b8e8912a614e52a9d7c0 Merge succeeded, producing cd887716400fa6c5dc30b8e8912a614e52a9d7c0 Checking out Revision cd887716400fa6c5dc30b8e8912a614e52a9d7c0 (PR-229) > git config core.sparsecheckout # timeout=10 > git checkout -f cd887716400fa6c5dc30b8e8912a614e52a9d7c0 # timeout=10 > git remote # timeout=10 > git config --get remote.origin.url # timeout=10 using GIT_SSH to set credentials SSH Credentials for GitHub Verifying host key using known hosts file You're using 'Known hosts file' strategy to verify ssh host keys, but your known_hosts file does not exist, please go to 'Manage Jenkins' -> 'Configure Global Security' -> 'Git Host Key Verification Configuration' and configure host key verification. > git merge ea2635875d50d8674d03123d64d8d0373faddc1b # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f cd887716400fa6c5dc30b8e8912a614e52a9d7c0 # timeout=10 Commit message: "fix: Returning error message along with failure response in restdriver.go, line 287" > git rev-list --no-walk 0b5943f47bca970463bc7d3d900b7bd97fa3f7bf # timeout=10 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 12:13:13 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 12:13:13 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 12:13:13 ========================================================= 12:13:13 EdgeX Global Pipelines Version Info 12:13:13 ========================================================= [Pipeline] libraryResource [Pipeline] sh 12:13:13 ------------------- 12:13:13 stable info: 12:13:13 ------------------- 12:13:13 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 12:13:13 Commit SHA: cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 12:13:13 Message: update stable to v1.0.244 12:13:14 ------------------- 12:13:14 experimental info: 12:13:14 ------------------- 12:13:14 Commited By: **** collab-it+edgex@linuxfoundation.org 12:13:14 Commit SHA: cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 12:13:14 Message: update experimental to v1.0.244 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 12:13:15 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 12:13:15 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 12:13:15 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 12:13:15 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 12:13:15 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 12:13:15 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.18 [Pipeline] echo 12:13:15 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 12:13:15 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 12:13:15 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 12:13:15 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 12:13:15 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 12:13:15 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 12:13:15 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 12:13:15 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 12:13:15 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 12:13:15 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 12:13:15 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 12:13:15 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 12:13:15 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 12:13:15 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 12:13:15 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 12:13:15 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 12:13:15 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 12:13:15 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 12:13:15 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 12:13:15 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 12:13:15 [edgeXSetupEnvironment]: set envvar SNYK_DEBUG = false [Pipeline] echo 12:13:15 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-229 [Pipeline] echo 12:13:15 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-229 [Pipeline] echo 12:13:15 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-229 [Pipeline] echo 12:13:15 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = cd887716400fa6c5dc30b8e8912a614e52a9d7c0 [Pipeline] echo 12:13:15 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = cd88771 [Pipeline] echo 12:13:15 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 12:13:15 provisioning config files... 12:13:15 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-229@tmp/config1765894636831760253tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 12:13:15 ---> docker-login.sh 12:13:15 nexus3.edgexfoundry.org:10001 12:13:16 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:13:16 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:13:16 Configure a credential helper to remove this warning. See 12:13:16 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:13:16 12:13:16 Login Succeeded 12:13:16 nexus3.edgexfoundry.org:10002 12:13:16 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:13:16 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:13:16 Configure a credential helper to remove this warning. See 12:13:16 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:13:16 12:13:16 Login Succeeded 12:13:16 nexus3.edgexfoundry.org:10003 12:13:16 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:13:16 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:13:16 Configure a credential helper to remove this warning. See 12:13:16 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:13:16 12:13:16 Login Succeeded 12:13:16 nexus3.edgexfoundry.org:10004 12:13:16 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:13:16 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:13:16 Configure a credential helper to remove this warning. See 12:13:16 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:13:16 12:13:16 Login Succeeded 12:13:16 docker.io 12:13:16 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:13:16 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:13:16 Configure a credential helper to remove this warning. See 12:13:16 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:13:16 12:13:16 Login Succeeded 12:13:16 ---> docker-login.sh ends [Pipeline] } 12:13:16 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 12:13:17 + git rev-list -1 --merges cd887716400fa6c5dc30b8e8912a614e52a9d7c0~1..cd887716400fa6c5dc30b8e8912a614e52a9d7c0 [Pipeline] echo 12:13:17 -----------> git rev-list -1 --merges cd887716400fa6c5dc30b8e8912a614e52a9d7c0~1..cd887716400fa6c5dc30b8e8912a614e52a9d7c0 cd887716400fa6c5dc30b8e8912a614e52a9d7c0 [false] [Pipeline] sh 12:13:17 + git log --format=format:%s -1 cd887716400fa6c5dc30b8e8912a614e52a9d7c0 [Pipeline] echo 12:13:17 ========================================================= 12:13:17 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 12:13:17 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 12:13:17 + git log --format=format:%s -1 cd887716400fa6c5dc30b8e8912a614e52a9d7c0 [Pipeline] echo 12:13:17 [semverPrep] GIT_COMMIT: cd887716400fa6c5dc30b8e8912a614e52a9d7c0, Commit Message: fix: Returning error message along with failure response in restdriver.go, line 287 [Pipeline] echo 12:13:17 [semverPrep] This is not a build commit. [Pipeline] sh 12:13:18 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 12:13:18 + grep -v github /etc/ssh/ssh_known_hosts 12:13:18 + [ -e /tmp/ssh_known_hosts ] 12:13:18 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 12:13:18 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 12:13:18 + sudo tee -a /etc/ssh/ssh_known_hosts 12:13:18 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 12:13:18 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 12:13:18 12:13:18 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 12:13:19 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 12:13:19 0.1.4: Pulling from edgex-devops/py-git-semver 12:13:19 b85a868b505f: Pulling fs layer 12:13:19 e2be974225ed: Pulling fs layer 12:13:19 339a4e72a1f5: Pulling fs layer 12:13:19 988bab9f4d93: Pulling fs layer 12:13:19 1469e6f7b9e6: Pulling fs layer 12:13:19 eaf3925da568: Pulling fs layer 12:13:19 988bab9f4d93: Waiting 12:13:19 1469e6f7b9e6: Waiting 12:13:19 bab4dde63d76: Pulling fs layer 12:13:19 bde34c3a00c8: Pulling fs layer 12:13:19 b352a97aabf1: Pulling fs layer 12:13:19 4872d77fe225: Pulling fs layer 12:13:19 bab4dde63d76: Waiting 12:13:19 bde34c3a00c8: Waiting 12:13:19 b352a97aabf1: Waiting 12:13:19 5851b861e8e6: Pulling fs layer 12:13:19 4872d77fe225: Waiting 12:13:19 5851b861e8e6: Waiting 12:13:19 e2be974225ed: Verifying Checksum 12:13:19 e2be974225ed: Download complete 12:13:19 988bab9f4d93: Download complete 12:13:19 339a4e72a1f5: Verifying Checksum 12:13:19 339a4e72a1f5: Download complete 12:13:19 1469e6f7b9e6: Verifying Checksum 12:13:19 1469e6f7b9e6: Download complete 12:13:19 eaf3925da568: Verifying Checksum 12:13:19 eaf3925da568: Download complete 12:13:19 bde34c3a00c8: Verifying Checksum 12:13:19 bde34c3a00c8: Download complete 12:13:19 b352a97aabf1: Verifying Checksum 12:13:19 b352a97aabf1: Download complete 12:13:19 4872d77fe225: Verifying Checksum 12:13:19 4872d77fe225: Download complete 12:13:19 b85a868b505f: Verifying Checksum 12:13:19 b85a868b505f: Download complete 12:13:19 bab4dde63d76: Verifying Checksum 12:13:19 bab4dde63d76: Download complete 12:13:20 b85a868b505f: Pull complete 12:13:20 e2be974225ed: Pull complete 12:13:21 339a4e72a1f5: Pull complete 12:13:21 988bab9f4d93: Pull complete 12:13:21 1469e6f7b9e6: Pull complete 12:13:21 eaf3925da568: Pull complete 12:13:23 bab4dde63d76: Pull complete 12:13:23 bde34c3a00c8: Pull complete 12:13:23 b352a97aabf1: Pull complete 12:13:23 4872d77fe225: Pull complete 12:13:23 5851b861e8e6: Pull complete 12:13:23 Digest: sha256:59a28aa3b44c0bc56b9c3d2e9ecabe42e63693d939cc6e425eb8786f29f663d8 12:13:23 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 12:13:23 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 12:13:23 prd-ubuntu20.04-docker-8c-8g-121063 does not seem to be running inside a container 12:13:23 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/gexfoundry_device-rest-go_PR-229 -v /w/workspace/gexfoundry_device-rest-go_PR-229:/w/workspace/gexfoundry_device-rest-go_PR-229:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-229@tmp:/w/workspace/gexfoundry_device-rest-go_PR-229@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-devops/py-git-semver:0.1.4 cat 12:13:25 $ docker top 6baaf2ea27292fb1939af68bb35a3cdb0cc636bad847238f5d92d408c78808f7 -eo pid,comm 12:13:25 ERROR: The container started but didn't run the expected command. Please double check your ENTRYPOINT does execute the command passed as docker run argument, as required by official docker images (see https://github.com/docker-library/official-images#consistency for entrypoint consistency requirements). 12:13:25 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 12:13:25 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 12:13:25 [ssh-agent] Looking for ssh-agent implementation... 12:13:25 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 12:13:25 $ docker exec 6baaf2ea27292fb1939af68bb35a3cdb0cc636bad847238f5d92d408c78808f7 ssh-agent 12:13:25 SSH_AUTH_SOCK=/tmp/ssh-ANcZgt7ytfbQ/agent.31 12:13:25 SSH_AGENT_PID=38 12:13:25 Running ssh-add (command line suppressed) 12:13:25 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-229@tmp/private_key_1421329862143324869.key (/w/workspace/gexfoundry_device-rest-go_PR-229@tmp/private_key_1421329862143324869.key) 12:13:25 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 12:13:25 + git tag --points-at HEAD [Pipeline] } 12:13:25 $ docker exec --env ******** --env ******** 6baaf2ea27292fb1939af68bb35a3cdb0cc636bad847238f5d92d408c78808f7 ssh-agent -k 12:13:25 unset SSH_AUTH_SOCK; 12:13:25 unset SSH_AGENT_PID; 12:13:25 echo Agent pid 38 killed; 12:13:25 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 12:13:25 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 12:13:25 [ssh-agent] Looking for ssh-agent implementation... 12:13:26 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 12:13:26 $ docker exec 6baaf2ea27292fb1939af68bb35a3cdb0cc636bad847238f5d92d408c78808f7 ssh-agent 12:13:26 SSH_AUTH_SOCK=/tmp/ssh-J4GSt9F5Ol8v/agent.70 12:13:26 SSH_AGENT_PID=76 12:13:26 Running ssh-add (command line suppressed) 12:13:26 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-229@tmp/private_key_17961728808468072600.key (/w/workspace/gexfoundry_device-rest-go_PR-229@tmp/private_key_17961728808468072600.key) 12:13:26 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 12:13:26 + git semver init 12:13:26 2022-12-13 12:13:26,764 [run_init] DEBUG init version:0.0.0 force:False 12:13:26 2022-12-13 12:13:26,764 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/gexfoundry_device-rest-go_PR-229/.semver 12:13:26 2022-12-13 12:13:26,765 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-rest-go.git /w/workspace/gexfoundry_device-rest-go_PR-229/.semver 12:13:26 2022-12-13 12:13:26,765 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-rest-go.git', '/w/workspace/gexfoundry_device-rest-go_PR-229/.semver'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-229, universal_newlines=False, shell=None, istream=None) 12:13:28 2022-12-13 12:13:27,863 [append_file] DEBUG append to file:/w/workspace/gexfoundry_device-rest-go_PR-229/.git/info/exclude 12:13:28 2022-12-13 12:13:27,864 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/gexfoundry_device-rest-go_PR-229/.semver/PR-229 with force:False 12:13:28 2022-12-13 12:13:27,864 [write_file] DEBUG write to file:/w/workspace/gexfoundry_device-rest-go_PR-229/.semver/PR-229 12:13:28 2022-12-13 12:13:27,868 [execute] INFO git cat-file --batch-check 12:13:28 2022-12-13 12:13:27,868 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-229/.semver, universal_newlines=False, shell=None, istream=) 12:13:28 2022-12-13 12:13:27,873 [execute] INFO git cat-file --batch 12:13:28 2022-12-13 12:13:27,874 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-229/.semver, universal_newlines=False, shell=None, istream=) 12:13:28 2022-12-13 12:13:27,878 [read_version] DEBUG read version from /w/workspace/gexfoundry_device-rest-go_PR-229/.semver/PR-229 12:13:28 0.0.0 [Pipeline] } 12:13:28 $ docker exec --env ******** --env ******** 6baaf2ea27292fb1939af68bb35a3cdb0cc636bad847238f5d92d408c78808f7 ssh-agent -k 12:13:28 unset SSH_AUTH_SOCK; 12:13:28 unset SSH_AGENT_PID; 12:13:28 echo Agent pid 76 killed; 12:13:28 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 12:13:28 + git semver [Pipeline] } 12:13:28 $ docker stop --time=1 6baaf2ea27292fb1939af68bb35a3cdb0cc636bad847238f5d92d408c78808f7 12:13:30 $ docker rm -f 6baaf2ea27292fb1939af68bb35a3cdb0cc636bad847238f5d92d408c78808f7 [Pipeline] // withDockerContainer [Pipeline] sh 12:13:30 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 12:13:30 Stashed 1 file(s) [Pipeline] echo 12:13:30 [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 12:13:30 provisioning config files... 12:13:30 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-229@tmp/config4919426724042263724tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 12:13:31 ---> docker-login.sh 12:13:31 nexus3.edgexfoundry.org:10001 12:13:31 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:13:31 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:13:31 Configure a credential helper to remove this warning. See 12:13:31 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:13:31 12:13:31 Login Succeeded 12:13:31 nexus3.edgexfoundry.org:10002 12:13:31 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:13:31 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:13:31 Configure a credential helper to remove this warning. See 12:13:31 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:13:31 12:13:31 Login Succeeded 12:13:31 nexus3.edgexfoundry.org:10003 12:13:31 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:13:31 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:13:31 Configure a credential helper to remove this warning. See 12:13:31 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:13:31 12:13:31 Login Succeeded 12:13:31 nexus3.edgexfoundry.org:10004 12:13:31 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:13:31 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:13:31 Configure a credential helper to remove this warning. See 12:13:31 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:13:31 12:13:31 Login Succeeded 12:13:31 docker.io 12:13:31 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:13:31 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:13:31 Configure a credential helper to remove this warning. See 12:13:31 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:13:31 12:13:31 Login Succeeded 12:13:31 ---> docker-login.sh ends [Pipeline] } 12:13:31 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 12:13:31 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 12:13:31 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 12:13:31 ========================================================= 12:13:31 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.18-alpine] 12:13:31 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 12:13:32 + docker build -t ci-base-image-x86_64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.18-alpine --build-arg MAKE=echo noop --target=builder . 12:13:32 Sending build context to Docker daemon 10.79MB 12:13:32 Step 1/12 : ARG BASE=golang:1.18-alpine3.16 12:13:32 Step 2/12 : FROM ${BASE} AS builder 12:13:32 1.18-alpine: Pulling from edgex-devops/edgex-golang-base 12:13:32 213ec9aee27d: Pulling fs layer 12:13:32 4583459ba037: Pulling fs layer 12:13:32 93c1e223e6f2: Pulling fs layer 12:13:32 53926ce57604: Pulling fs layer 12:13:32 21b2b0c7a3f4: Pulling fs layer 12:13:32 22ff95d597cd: Pulling fs layer 12:13:32 12d6caf4c0d1: Pulling fs layer 12:13:32 96b7cbca73a9: Pulling fs layer 12:13:32 a7acece74701: Pulling fs layer 12:13:32 53926ce57604: Waiting 12:13:32 21b2b0c7a3f4: Waiting 12:13:32 96b7cbca73a9: Waiting 12:13:32 a7acece74701: Waiting 12:13:32 22ff95d597cd: Waiting 12:13:32 12d6caf4c0d1: Waiting 12:13:32 93c1e223e6f2: Verifying Checksum 12:13:32 93c1e223e6f2: Download complete 12:13:32 4583459ba037: Verifying Checksum 12:13:32 4583459ba037: Download complete 12:13:32 21b2b0c7a3f4: Verifying Checksum 12:13:32 21b2b0c7a3f4: Download complete 12:13:32 22ff95d597cd: Verifying Checksum 12:13:32 22ff95d597cd: Download complete 12:13:32 213ec9aee27d: Download complete 12:13:32 12d6caf4c0d1: Download complete 12:13:32 213ec9aee27d: Pull complete 12:13:32 4583459ba037: Pull complete 12:13:32 93c1e223e6f2: Pull complete 12:13:32 a7acece74701: Verifying Checksum 12:13:32 a7acece74701: Download complete 12:13:32 96b7cbca73a9: Download complete 12:13:33 53926ce57604: Verifying Checksum 12:13:33 53926ce57604: Download complete 12:13:37 53926ce57604: Pull complete 12:13:37 21b2b0c7a3f4: Pull complete 12:13:37 22ff95d597cd: Pull complete 12:13:37 12d6caf4c0d1: Pull complete 12:13:38 96b7cbca73a9: Pull complete 12:13:39 a7acece74701: Pull complete 12:13:39 Digest: sha256:f6a9ef70c52da88a2ff63a0c6767b24654f9f5185d1d85ca6cc3004fb48f6c2d 12:13:39 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.18-alpine 12:13:39 ---> db6d94c90886 12:13:39 Step 3/12 : ARG ADD_BUILD_TAGS="" 12:13:41 ---> Running in a82eabd055cb 12:13:41 Removing intermediate container a82eabd055cb 12:13:41 ---> 14da42806e06 12:13:41 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 12:13:41 ---> Running in 473c8be95451 12:13:41 Removing intermediate container 473c8be95451 12:13:41 ---> 78e502ce4c7b 12:13:41 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 12:13:41 ---> Running in a6e0796092cd 12:13:41 Removing intermediate container a6e0796092cd 12:13:41 ---> 2379fd0596cf 12:13:41 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 12:13:41 ---> Running in 4164755da39f 12:13:41 Removing intermediate container 4164755da39f 12:13:41 ---> e22495f50b93 12:13:41 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 12:13:42 ---> Running in d87275500682 12:13:42 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz 12:13:42 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz 12:13:42 (1/4) Installing openssh-keygen (9.0_p1-r2) 12:13:42 (2/4) Installing libedit (20210910.3.1-r0) 12:13:42 (3/4) Installing openssh-client-common (9.0_p1-r2) 12:13:42 (4/4) Installing openssh-client-default (9.0_p1-r2) 12:13:42 Executing busybox-1.35.0-r17.trigger 12:13:42 OK: 216 MiB in 55 packages 12:13:43 Removing intermediate container d87275500682 12:13:43 ---> ece093bc2546 12:13:43 Step 8/12 : WORKDIR /device-rest-go 12:13:43 ---> Running in fe93bbff4794 12:13:43 Removing intermediate container fe93bbff4794 12:13:43 ---> 9d51ee04fb96 12:13:43 Step 9/12 : COPY go.mod vendor* ./ 12:13:43 ---> 2e346598ab26 12:13:43 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 12:13:43 ---> Running in 2d3f44fdb78b 12:13:45 Still waiting to schedule task 12:13:45 All nodes of label ‘ubuntu20.04-docker-arm64-4c-16g’ are offline 12:14:05 Removing intermediate container 2d3f44fdb78b 12:14:05 ---> 42e1bd50c26f 12:14:05 Step 11/12 : COPY . . 12:14:05 ---> eaa581f79be5 12:14:05 Step 12/12 : RUN $MAKE 12:14:05 ---> Running in 72c6b1d2ce60 12:14:05 noop 12:14:05 Removing intermediate container 72c6b1d2ce60 12:14:05 ---> b52405ca12a7 12:14:05 Successfully built b52405ca12a7 12:14:05 Successfully tagged ci-base-image-x86_64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 12:14:05 + docker inspect -f . ci-base-image-x86_64 12:14:05 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 12:14:06 prd-ubuntu20.04-docker-8c-8g-121063 does not seem to be running inside a container 12:14:06 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-229 -v /w/workspace/gexfoundry_device-rest-go_PR-229:/w/workspace/gexfoundry_device-rest-go_PR-229:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-229@tmp:/w/workspace/gexfoundry_device-rest-go_PR-229@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 ******** -e ******** ci-base-image-x86_64 cat 12:14:06 $ docker top 615c8cfd0231dc4f51cf82e6d323bf5f37043f57273b96dbdd076aee8ceafaee -eo pid,comm [Pipeline] { [Pipeline] sh 12:14:06 + go version 12:14:06 go version go1.18.7 linux/amd64 [Pipeline] } 12:14:06 $ docker stop --time=1 615c8cfd0231dc4f51cf82e6d323bf5f37043f57273b96dbdd076aee8ceafaee 12:14:08 $ docker rm -f 615c8cfd0231dc4f51cf82e6d323bf5f37043f57273b96dbdd076aee8ceafaee [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 12:14:08 + docker inspect -f . ci-base-image-x86_64 12:14:08 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 12:14:08 prd-ubuntu20.04-docker-8c-8g-121063 does not seem to be running inside a container 12:14:08 $ 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-229 -v /w/workspace/gexfoundry_device-rest-go_PR-229:/w/workspace/gexfoundry_device-rest-go_PR-229:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-229@tmp:/w/workspace/gexfoundry_device-rest-go_PR-229@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 ******** -e ******** ci-base-image-x86_64 cat 12:14:08 $ docker top 34bcd4b698f4470813399be84e5f7bf77537fd776fad3d4a8dc47f8c7a34803b -eo pid,comm [Pipeline] { [Pipeline] sh 12:14:09 + git config --global --add safe.directory /w/workspace/gexfoundry_device-rest-go_PR-229 [Pipeline] fileExists [Pipeline] sh 12:14:09 + make test 12:14:09 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out ./... 12:14:09 ? github.com/edgexfoundry/device-rest-go [no test files] 12:14:19 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 12:14:19 ok github.com/edgexfoundry/device-rest-go/driver 0.014s coverage: 26.8% of statements 12:14:26 level=warning msg="[linters context] structcheck is disabled because of go1.18. You can track the evolution of the go1.18 support by following the https://github.com/golangci/golangci-lint/issues/2649." 12:14:26 CGO_ENABLED=1 GO111MODULE=on go vet ./... 12:14:29 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 12:14:29 ./driver/protocolpropertykey.go 12:14:29 ./driver/restdriver.go 12:14:29 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 12:14:29 make: *** [Makefile:48: test] Error 1 [Pipeline] } 12:14:29 $ docker stop --time=1 34bcd4b698f4470813399be84e5f7bf77537fd776fad3d4a8dc47f8c7a34803b 12:14:31 $ docker rm -f 34bcd4b698f4470813399be84e5f7bf77537fd776fad3d4a8dc47f8c7a34803b [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) Stage "Build" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Docker Push) Stage "Docker Push" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Snap) Stage "Snap" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage Post stage [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 12:14:32 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 12:14:32 12:14:32 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 12:14:32 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 12:14:32 latest: Pulling from edgex-lftools-log-publisher 12:14:32 5eb5b503b376: Pulling fs layer 12:14:32 5c69ac0246d0: Pulling fs layer 12:14:32 ec43610c2a17: Pulling fs layer 12:14:32 3a2ae6a8a46f: Pulling fs layer 12:14:32 33b1e0a273af: Pulling fs layer 12:14:32 5d3b04190fa2: Pulling fs layer 12:14:32 2f39f015ded8: Pulling fs layer 12:14:32 3a2ae6a8a46f: Waiting 12:14:32 33b1e0a273af: Waiting 12:14:32 2f39f015ded8: Waiting 12:14:32 5c69ac0246d0: Verifying Checksum 12:14:32 5c69ac0246d0: Download complete 12:14:32 3a2ae6a8a46f: Verifying Checksum 12:14:32 3a2ae6a8a46f: Download complete 12:14:32 33b1e0a273af: Verifying Checksum 12:14:32 33b1e0a273af: Download complete 12:14:32 5d3b04190fa2: Verifying Checksum 12:14:32 5d3b04190fa2: Download complete 12:14:32 ec43610c2a17: Verifying Checksum 12:14:32 ec43610c2a17: Download complete 12:14:32 5eb5b503b376: Verifying Checksum 12:14:32 5eb5b503b376: Download complete 12:14:33 2f39f015ded8: Download complete 12:14:33 5eb5b503b376: Pull complete 12:14:34 5c69ac0246d0: Pull complete 12:14:34 ec43610c2a17: Pull complete 12:14:34 3a2ae6a8a46f: Pull complete 12:14:34 33b1e0a273af: Pull complete 12:14:34 5d3b04190fa2: Pull complete 12:14:39 2f39f015ded8: Pull complete 12:14:39 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 12:14:39 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 12:14:39 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 12:14:39 prd-ubuntu20.04-docker-8c-8g-121063 does not seem to be running inside a container 12:14:39 $ 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-229 -v /w/workspace/gexfoundry_device-rest-go_PR-229:/w/workspace/gexfoundry_device-rest-go_PR-229:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-229@tmp:/w/workspace/gexfoundry_device-rest-go_PR-229@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 ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 12:14:41 $ docker top ad97f858ac46bc76b53a99d73057aa7378d48ffeba5277ad0715c0286b1fbbe4 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 12:14:41 ---> job-cost.sh 12:14:41 lf-activate-venv: SKIPPING 12:14:41 INFO: No Stack... 12:14:41 INFO: Retrieving Pricing Info for: v3-standard-8 12:14:41 INFO: Archiving Costs [Pipeline] sh 12:14:42 + cat /w/workspace/gexfoundry_device-rest-go_PR-229/archives/cost.csv 12:14:42 + cut -d, -f6 [Pipeline] lock 12:14:42 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-229-3-stack-cost] 12:14:42 Resource [jenkins-edgexfoundry-device-rest-go-PR-229-3-stack-cost] did not exist. Created. 12:14:42 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-229-3-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 12:14:42 + echo total: 0.2199999988079071 [Pipeline] stash 12:14:42 Stashed 1 file(s) [Pipeline] } 12:14:42 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-229-3-stack-cost] [Pipeline] // lock [Pipeline] } 12:14:42 $ docker stop --time=1 ad97f858ac46bc76b53a99d73057aa7378d48ffeba5277ad0715c0286b1fbbe4 12:14:43 $ docker rm -f ad97f858ac46bc76b53a99d73057aa7378d48ffeba5277ad0715c0286b1fbbe4 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 12:14:43 Failed in branch amd64 12:15:15 Running on prd-ubuntu20.04-docker-arm64-4c-16g-121064 in /w/workspace/gexfoundry_device-rest-go_PR-229 [Pipeline] { [Pipeline] ws 12:15:15 Running in /w/workspace/device-rest-go/3 [Pipeline] { [Pipeline] checkout 12:15:15 The recommended git tool is: git 12:15:20 using credential edgex-jenkins-ssh 12:15:20 Cloning the remote Git repository 12:15:21 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 12:15:21 > git init /w/workspace/device-rest-go/3 # timeout=10 12:15:21 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 12:15:21 > git --version # timeout=10 12:15:21 > git --version # 'git version 2.25.1' 12:15:21 using GIT_SSH to set credentials SSH Credentials for GitHub 12:15:21 Verifying host key using known hosts file 12:15:21 You're using 'Known hosts file' strategy to verify ssh host keys, but your known_hosts file does not exist, please go to 'Manage Jenkins' -> 'Configure Global Security' -> 'Git Host Key Verification Configuration' and configure host key verification. 12:15:21 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 12:15:23 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 12:15:23 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 12:15:24 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 12:15:24 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 12:15:24 using GIT_SSH to set credentials SSH Credentials for GitHub 12:15:24 Verifying host key using known hosts file 12:15:24 You're using 'Known hosts file' strategy to verify ssh host keys, but your known_hosts file does not exist, please go to 'Manage Jenkins' -> 'Configure Global Security' -> 'Git Host Key Verification Configuration' and configure host key verification. 12:15:24 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/229/head:refs/remotes/origin/PR-229 +refs/heads/main:refs/remotes/origin/main # timeout=10 12:15:24 Merging remotes/origin/main commit ea2635875d50d8674d03123d64d8d0373faddc1b into PR head commit cd887716400fa6c5dc30b8e8912a614e52a9d7c0 12:15:25 Merge succeeded, producing cd887716400fa6c5dc30b8e8912a614e52a9d7c0 12:15:25 Checking out Revision cd887716400fa6c5dc30b8e8912a614e52a9d7c0 (PR-229) 12:15:24 > git config core.sparsecheckout # timeout=10 12:15:24 > git checkout -f cd887716400fa6c5dc30b8e8912a614e52a9d7c0 # timeout=10 12:15:24 > git remote # timeout=10 12:15:24 > git config --get remote.origin.url # timeout=10 12:15:24 using GIT_SSH to set credentials SSH Credentials for GitHub 12:15:24 Verifying host key using known hosts file 12:15:24 You're using 'Known hosts file' strategy to verify ssh host keys, but your known_hosts file does not exist, please go to 'Manage Jenkins' -> 'Configure Global Security' -> 'Git Host Key Verification Configuration' and configure host key verification. 12:15:24 > git merge ea2635875d50d8674d03123d64d8d0373faddc1b # timeout=10 12:15:24 > git rev-parse HEAD^{commit} # timeout=10 12:15:25 > git config core.sparsecheckout # timeout=10 12:15:25 > git checkout -f cd887716400fa6c5dc30b8e8912a614e52a9d7c0 # timeout=10 12:15:28 Commit message: "fix: Returning error message along with failure response in restdriver.go, line 287" [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 12:15:29 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 12:15:29 % Total % Received % Xferd Average Speed Time Time Time Current 12:15:29 Dload Upload Total Spent Left Speed 12:15:29 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 12751 100 12751 0 0 43968 0 --:--:-- --:--:-- --:--:-- 44121 [Pipeline] sh 12:15:30 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 12:15:30 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 12:15:30 + sudo tee /etc/docker/daemon.new 12:15:30 { 12:15:30 "registry-mirrors": [ 12:15:30 "https://nexus3.edgexfoundry.org:10001" 12:15:30 ], 12:15:30 "bip": "10.250.0.254/24", 12:15:30 "hosts": [ 12:15:30 "tcp://0.0.0.0:5555", 12:15:30 "unix:///var/run/docker.sock" 12:15:30 ], 12:15:30 "mtu": 1458, 12:15:30 "selinux-enabled": true, 12:15:30 "seccomp-profile": "/etc/docker/seccomp.json" 12:15:30 } [Pipeline] sh 12:15:31 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 12:15:31 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 12:15:49 provisioning config files... 12:15:49 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/3@tmp/config6275822010839080785tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 12:15:50 ---> docker-login.sh 12:15:50 nexus3.edgexfoundry.org:10001 12:15:50 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:15:50 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:15:50 Configure a credential helper to remove this warning. See 12:15:50 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:15:50 12:15:50 Login Succeeded 12:15:50 nexus3.edgexfoundry.org:10002 12:15:50 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:15:50 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:15:50 Configure a credential helper to remove this warning. See 12:15:50 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:15:50 12:15:50 Login Succeeded 12:15:50 nexus3.edgexfoundry.org:10003 12:15:51 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:15:51 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:15:51 Configure a credential helper to remove this warning. See 12:15:51 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:15:51 12:15:51 Login Succeeded 12:15:51 nexus3.edgexfoundry.org:10004 12:15:51 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:15:51 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:15:51 Configure a credential helper to remove this warning. See 12:15:51 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:15:51 12:15:51 Login Succeeded 12:15:51 docker.io 12:15:51 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:15:52 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:15:52 Configure a credential helper to remove this warning. See 12:15:52 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:15:52 12:15:52 Login Succeeded 12:15:52 ---> docker-login.sh ends [Pipeline] } 12:15:52 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 12:15:52 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 12:15:52 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 12:15:52 ========================================================= 12:15:52 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.18-alpine] 12:15:52 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 12:15:52 + docker build -t ci-base-image-arm64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.18-alpine --build-arg MAKE=echo noop --target=builder . 12:15:52 Sending build context to Docker daemon 149.5kB 12:15:52 Step 1/12 : ARG BASE=golang:1.18-alpine3.16 12:15:52 Step 2/12 : FROM ${BASE} AS builder 12:15:52 1.18-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 12:15:52 9b18e9b68314: Pulling fs layer 12:15:52 35d82f9e3411: Pulling fs layer 12:15:52 e16973657156: Pulling fs layer 12:15:52 fc693d55d65f: Pulling fs layer 12:15:52 7e9fc2657dce: Pulling fs layer 12:15:52 dda99020689f: Pulling fs layer 12:15:52 db1c61fa0a46: Pulling fs layer 12:15:52 891c053d2c06: Pulling fs layer 12:15:52 fc693d55d65f: Waiting 12:15:52 7e9fc2657dce: Waiting 12:15:52 dda99020689f: Waiting 12:15:52 db1c61fa0a46: Waiting 12:15:52 891c053d2c06: Waiting 12:15:53 e16973657156: Download complete 12:15:53 35d82f9e3411: Verifying Checksum 12:15:53 35d82f9e3411: Download complete 12:15:53 7e9fc2657dce: Verifying Checksum 12:15:53 7e9fc2657dce: Download complete 12:15:53 dda99020689f: Download complete 12:15:53 9b18e9b68314: Verifying Checksum 12:15:53 9b18e9b68314: Download complete 12:15:54 9b18e9b68314: Pull complete 12:15:54 891c053d2c06: Verifying Checksum 12:15:54 891c053d2c06: Download complete 12:15:55 db1c61fa0a46: Download complete 12:15:55 35d82f9e3411: Pull complete 12:15:55 e16973657156: Pull complete 12:15:56 fc693d55d65f: Verifying Checksum 12:15:56 fc693d55d65f: Download complete 12:16:08 fc693d55d65f: Pull complete 12:16:08 7e9fc2657dce: Pull complete 12:16:08 dda99020689f: Pull complete 12:16:13 db1c61fa0a46: Pull complete 12:16:15 891c053d2c06: Pull complete 12:16:15 Digest: sha256:2cacf8bfc28650abd52610e42dcfc04852e818eb73900ea96edaef96a54d0b45 12:16:15 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.18-alpine 12:16:15 ---> f96f9c87975a 12:16:15 Step 3/12 : ARG ADD_BUILD_TAGS="" 12:16:17 ---> Running in 63e460cc79a6 12:16:17 Removing intermediate container 63e460cc79a6 12:16:17 ---> 2dcd871cc91a 12:16:17 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 12:16:17 ---> Running in 7bcb48f69e49 12:16:18 Removing intermediate container 7bcb48f69e49 12:16:18 ---> 054351bb26c3 12:16:18 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 12:16:18 ---> Running in 795d4f019584 12:16:18 Removing intermediate container 795d4f019584 12:16:18 ---> bf755c75b7e7 12:16:18 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 12:16:18 ---> Running in eecd7e2ccc78 12:16:18 Removing intermediate container eecd7e2ccc78 12:16:18 ---> 1552864aede6 12:16:18 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 12:16:18 ---> Running in 585da2bda7c5 12:16:19 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/aarch64/APKINDEX.tar.gz 12:16:20 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/aarch64/APKINDEX.tar.gz 12:16:21 (1/4) Installing openssh-keygen (9.0_p1-r2) 12:16:21 (2/4) Installing libedit (20210910.3.1-r0) 12:16:21 (3/4) Installing openssh-client-common (9.0_p1-r2) 12:16:21 (4/4) Installing openssh-client-default (9.0_p1-r2) 12:16:21 Executing busybox-1.35.0-r17.trigger 12:16:21 OK: 226 MiB in 55 packages 12:16:22 Removing intermediate container 585da2bda7c5 12:16:22 ---> 6d3599ff363d 12:16:22 Step 8/12 : WORKDIR /device-rest-go 12:16:22 ---> Running in b57e023c05ed 12:16:22 Removing intermediate container b57e023c05ed 12:16:22 ---> 7a6254d38d12 12:16:22 Step 9/12 : COPY go.mod vendor* ./ 12:16:22 ---> ac40bb1c998e 12:16:22 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 12:16:23 ---> Running in 5f9e81fb1f73 12:17:19 Removing intermediate container 5f9e81fb1f73 12:17:19 ---> 4a1d56bfcd8c 12:17:19 Step 11/12 : COPY . . 12:17:19 ---> 267f4c4eb57c 12:17:19 Step 12/12 : RUN $MAKE 12:17:19 ---> Running in 43b70ce81860 12:17:19 noop 12:17:19 Removing intermediate container 43b70ce81860 12:17:19 ---> 9e61d43c9a6c 12:17:19 Successfully built 9e61d43c9a6c 12:17:19 Successfully tagged ci-base-image-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 12:17:19 + docker inspect -f . ci-base-image-arm64 12:17:19 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 12:17:20 prd-ubuntu20.04-docker-arm64-4c-16g-121064 does not seem to be running inside a container 12:17:20 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/3 -v /w/workspace/device-rest-go/3:/w/workspace/device-rest-go/3:rw,z -v /w/workspace/device-rest-go/3@tmp:/w/workspace/device-rest-go/3@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 ******** -e ******** ci-base-image-arm64 cat 12:17:21 $ docker top b57e3f6c506c05366f18545107d2764d26686447bacc70a9c1d7e843bb54a986 -eo pid,comm [Pipeline] { [Pipeline] sh 12:17:22 + go version 12:17:22 go version go1.18.7 linux/arm64 [Pipeline] } 12:17:22 $ docker stop --time=1 b57e3f6c506c05366f18545107d2764d26686447bacc70a9c1d7e843bb54a986 12:17:24 $ docker rm -f b57e3f6c506c05366f18545107d2764d26686447bacc70a9c1d7e843bb54a986 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 12:17:24 + docker inspect -f . ci-base-image-arm64 12:17:24 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 12:17:24 prd-ubuntu20.04-docker-arm64-4c-16g-121064 does not seem to be running inside a container 12:17:24 $ 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/3 -v /w/workspace/device-rest-go/3:/w/workspace/device-rest-go/3:rw,z -v /w/workspace/device-rest-go/3@tmp:/w/workspace/device-rest-go/3@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 ******** -e ******** ci-base-image-arm64 cat 12:17:25 $ docker top 45f71c093cdc1a454890aa9740e8223d92b04191b03eb492163f59c85d9f8762 -eo pid,comm [Pipeline] { [Pipeline] sh 12:17:26 + git config --global --add safe.directory /w/workspace/device-rest-go/3 [Pipeline] fileExists [Pipeline] sh 12:17:27 + make test 12:17:27 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out ./... 12:17:28 ? github.com/edgexfoundry/device-rest-go [no test files] 12:18:50 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 12:18:50 ok github.com/edgexfoundry/device-rest-go/driver 0.068s coverage: 26.8% of statements 12:18:50 WARNING: Linting skipped (not on x86_64 or linter not installed) 12:18:50 CGO_ENABLED=1 GO111MODULE=on go vet ./... 12:19:12 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 12:19:12 ./driver/protocolpropertykey.go 12:19:12 ./driver/restdriver.go 12:19:12 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 12:19:12 make: *** [Makefile:48: test] Error 1 [Pipeline] } 12:19:12 $ docker stop --time=1 45f71c093cdc1a454890aa9740e8223d92b04191b03eb492163f59c85d9f8762 12:19:13 $ docker rm -f 45f71c093cdc1a454890aa9740e8223d92b04191b03eb492163f59c85d9f8762 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) Stage "Build" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Docker Push) Stage "Docker Push" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage Post stage [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 12:19:14 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 12:19:14 12:19:14 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 12:19:15 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 12:19:15 arm64: Pulling from edgex-lftools-log-publisher 12:19:15 8998bd30e6a1: Pulling fs layer 12:19:15 04944245beec: Pulling fs layer 12:19:15 699f458cf7ca: Pulling fs layer 12:19:15 765212b225bb: Pulling fs layer 12:19:15 f23df028b6ca: Pulling fs layer 12:19:15 d65c8cfc05b1: Pulling fs layer 12:19:15 2437ff75d9bd: Pulling fs layer 12:19:15 d65c8cfc05b1: Waiting 12:19:15 765212b225bb: Waiting 12:19:15 f23df028b6ca: Waiting 12:19:15 04944245beec: Verifying Checksum 12:19:15 04944245beec: Download complete 12:19:15 765212b225bb: Verifying Checksum 12:19:15 765212b225bb: Download complete 12:19:15 f23df028b6ca: Verifying Checksum 12:19:15 f23df028b6ca: Download complete 12:19:15 d65c8cfc05b1: Download complete 12:19:15 699f458cf7ca: Verifying Checksum 12:19:15 699f458cf7ca: Download complete 12:19:16 8998bd30e6a1: Verifying Checksum 12:19:16 8998bd30e6a1: Download complete 12:19:18 2437ff75d9bd: Verifying Checksum 12:19:18 2437ff75d9bd: Download complete 12:19:20 8998bd30e6a1: Pull complete 12:19:20 04944245beec: Pull complete 12:19:21 699f458cf7ca: Pull complete 12:19:21 765212b225bb: Pull complete 12:19:22 f23df028b6ca: Pull complete 12:19:22 d65c8cfc05b1: Pull complete 12:19:37 2437ff75d9bd: Pull complete 12:19:37 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 12:19:37 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 12:19:37 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 12:19:37 prd-ubuntu20.04-docker-arm64-4c-16g-121064 does not seem to be running inside a container 12:19:38 $ 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/3 -v /w/workspace/device-rest-go/3:/w/workspace/device-rest-go/3:rw,z -v /w/workspace/device-rest-go/3@tmp:/w/workspace/device-rest-go/3@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 ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 12:19:40 $ docker top 32a8bfe8bedba93f86d286a7e3a17bc82957e5b767b92ba512ef51ebe8492d19 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 12:19:41 ---> job-cost.sh 12:19:41 lf-activate-venv: SKIPPING 12:19:41 INFO: No Stack... 12:19:41 INFO: Retrieving Pricing Info for: v3-standard-4 12:19:42 INFO: Archiving Costs [Pipeline] sh 12:19:43 + + cat /w/workspace/device-rest-go/3/archives/cost.csvcut 12:19:43 -d, -f6 [Pipeline] lock 12:19:43 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-229-3-stack-cost] 12:19:43 Resource [jenkins-edgexfoundry-device-rest-go-PR-229-3-stack-cost] did not exist. Created. 12:19:43 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-229-3-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 12:19:43 /w/workspace/device-rest-go/3@tmp/durable-6899f73d/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 12:19:44 + echo total: 0.10999999940395355 [Pipeline] stash 12:19:44 Warning: overwriting stash ‘stack-cost’ 12:19:44 Stashed 1 file(s) [Pipeline] } 12:19:44 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-229-3-stack-cost] [Pipeline] // lock [Pipeline] } 12:19:44 $ docker stop --time=1 32a8bfe8bedba93f86d286a7e3a17bc82957e5b767b92ba512ef51ebe8492d19 12:19:46 $ docker rm -f 32a8bfe8bedba93f86d286a7e3a17bc82957e5b767b92ba512ef51ebe8492d19 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // ws [Pipeline] } [Pipeline] // node [Pipeline] } [Pipeline] // stage [Pipeline] } 12:19:46 Failed in branch arm64 [Pipeline] // parallel [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (CodeCov) Stage "CodeCov" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Snyk Dependency Scan) Stage "Snyk Dependency Scan" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Archive Prep) Stage "Archive Prep" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Publish Swagger) Stage "Publish Swagger" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Semver) Stage "Semver" skipped due to earlier failure(s) [Pipeline] stage [Pipeline] { (Tag) Stage "Semver" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Pre-Release Version) Stage "Semver" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Experimental Tag) Stage "Semver" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Stable (Named) Tag) Stage "Semver" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Declarative: Post Actions) [Pipeline] stage [Pipeline] { (LF Post Build Actions) [Pipeline] sh 12:19:47 + [ -d /w/workspace/gexfoundry_device-rest-go_PR-229/archives ] 12:19:47 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-229/archives 12:19:47 total 16 12:19:47 drwxr-xr-x 3 root root 4096 Dec 13 12:14 . 12:19:47 drwxrwxr-x 10 jenkins jenkins 4096 Dec 13 12:14 .. 12:19:47 drwxr-xr-x 2 root root 4096 Dec 13 12:14 cost 12:19:47 -rw-r--r-- 1 root root 86 Dec 13 12:14 cost.csv 12:19:47 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-rest-go_PR-229/archives 12:19:47 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-229/archives 12:19:47 total 16 12:19:47 drwxr-xr-x 3 jenkins jenkins 4096 Dec 13 12:14 . 12:19:47 drwxrwxr-x 10 jenkins jenkins 4096 Dec 13 12:14 .. 12:19:47 drwxr-xr-x 2 jenkins jenkins 4096 Dec 13 12:14 cost 12:19:47 -rw-r--r-- 1 jenkins jenkins 86 Dec 13 12:14 cost.csv [Pipeline] libraryResource [Pipeline] sh 12:19:47 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 12:19:48 ---> package-listing.sh 12:19:48 ++ tr '[:upper:]' '[:lower:]' 12:19:48 ++ facter osfamily 12:19:48 + OS_FAMILY=debian 12:19:48 + workspace=/w/workspace/gexfoundry_device-rest-go_PR-229 12:19:48 + START_PACKAGES=/tmp/packages_start.txt 12:19:48 + END_PACKAGES=/tmp/packages_end.txt 12:19:48 + DIFF_PACKAGES=/tmp/packages_diff.txt 12:19:48 + PACKAGES=/tmp/packages_start.txt 12:19:48 + '[' /w/workspace/gexfoundry_device-rest-go_PR-229 ']' 12:19:48 + PACKAGES=/tmp/packages_end.txt 12:19:48 + case "${OS_FAMILY}" in 12:19:48 + dpkg -l 12:19:48 + grep '^ii' 12:19:48 + '[' -f /tmp/packages_start.txt ']' 12:19:48 + '[' -f /tmp/packages_end.txt ']' 12:19:48 + diff /tmp/packages_start.txt /tmp/packages_end.txt 12:19:48 + '[' /w/workspace/gexfoundry_device-rest-go_PR-229 ']' 12:19:48 + mkdir -p /w/workspace/gexfoundry_device-rest-go_PR-229/archives/ 12:19:48 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/gexfoundry_device-rest-go_PR-229/archives/ [Pipeline] echo 12:19:48 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-229/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 12:19:49 + facter operatingsystem [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 12:19:49 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 12:19:49 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 12:19:49 prd-ubuntu20.04-docker-8c-8g-121063 does not seem to be running inside a container 12:19:49 $ 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-229/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-229 -v /w/workspace/gexfoundry_device-rest-go_PR-229:/w/workspace/gexfoundry_device-rest-go_PR-229:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-229@tmp:/w/workspace/gexfoundry_device-rest-go_PR-229@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 12:19:49 $ docker top 0e6d68d4d5f5d606798371ae632d445b5f10151a472a842e09cf654f95977161 -eo pid,comm [Pipeline] { [Pipeline] sh 12:19:50 + touch /tmp/pre-build-complete [Pipeline] sh 12:19:50 + mkdir -p /var/log/sysstat [Pipeline] sh 12:19:50 + ls /var/log/sa-host 12:19:50 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 12:19:51 provisioning config files... 12:19:51 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-229@tmp/config8789738060393892709tmp [Pipeline] { [Pipeline] echo 12:19:51 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 12:19:51 ---> create-netrc.sh [Pipeline] } 12:19:51 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 12:19:51 ---> python-tools-install.sh [Pipeline] echo 12:19:51 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 12:19:51 ---> sudo-logs.sh 12:19:51 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 12:19:52 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 12:19:52 ---> job-cost.sh 12:19:52 lf-activate-venv: SKIPPING 12:19:52 DEBUG: total: 0.2199999988079071 12:19:52 INFO: Retrieving Stack Cost... 12:19:52 INFO: Retrieving Pricing Info for: v3-standard-8 12:19:53 INFO: Archiving Costs [Pipeline] echo 12:19:53 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 12:19:53 ---> logs-deploy.sh 12:19:53 lf-activate-venv: SKIPPING 12:19:53 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-229/3 12:19:53 INFO: archiving workspace using pattern(s): 12:19:54 Archives upload complete. 12:19:54 INFO: archiving logs to Nexus