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 0b5943f47bca970463bc7d3d900b7bd97fa3f7bf+ea2635875d50d8674d03123d64d8d0373faddc1b (9b82bbc08bb01c3a678cf2699618744a20ce9c9d) 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-ssh13095593131666589779.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-ssh14838967597645629896.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-ssh10229965808199095719.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-ssh14704560353428732317.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-ssh454719245384065890.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-121060 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 0b5943f47bca970463bc7d3d900b7bd97fa3f7bf Merge succeeded, producing 0b5943f47bca970463bc7d3d900b7bd97fa3f7bf Checking out Revision 0b5943f47bca970463bc7d3d900b7bd97fa3f7bf (PR-229) > git config core.sparsecheckout # timeout=10 > git checkout -f 0b5943f47bca970463bc7d3d900b7bd97fa3f7bf # 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 0b5943f47bca970463bc7d3d900b7bd97fa3f7bf # timeout=10 Commit message: "fix: Added formatting directives in restdriver.go" > git rev-list --no-walk 22018ce40af0e19fd47913da5b25c97ea02f4643 # timeout=10 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 11:57:37 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 11:57:38 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 11:57:38 ========================================================= 11:57:38 EdgeX Global Pipelines Version Info 11:57:38 ========================================================= [Pipeline] libraryResource [Pipeline] sh 11:57:38 ------------------- 11:57:38 stable info: 11:57:38 ------------------- 11:57:38 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 11:57:38 Commit SHA: cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 11:57:38 Message: update stable to v1.0.244 11:57:39 ------------------- 11:57:39 experimental info: 11:57:39 ------------------- 11:57:39 Commited By: **** collab-it+edgex@linuxfoundation.org 11:57:39 Commit SHA: cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 11:57:39 Message: update experimental to v1.0.244 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 11:57:39 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 11:57:39 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 11:57:39 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 11:57:39 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 11:57:39 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 11:57:39 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.18 [Pipeline] echo 11:57:39 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 11:57:39 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 11:57:39 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 11:57:39 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 11:57:39 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 11:57:39 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 11:57:39 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 11:57:39 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 11:57:39 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 11:57:39 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 11:57:39 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 11:57:39 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 11:57:39 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 11:57:39 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 11:57:39 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 11:57:39 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 11:57:39 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 11:57:39 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 11:57:39 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 11:57:39 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 11:57:39 [edgeXSetupEnvironment]: set envvar SNYK_DEBUG = false [Pipeline] echo 11:57:39 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-229 [Pipeline] echo 11:57:39 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-229 [Pipeline] echo 11:57:39 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-229 [Pipeline] echo 11:57:39 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 0b5943f47bca970463bc7d3d900b7bd97fa3f7bf [Pipeline] echo 11:57:39 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 0b5943f [Pipeline] echo 11:57:39 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 11:57:39 provisioning config files... 11:57:39 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-229@tmp/config17080557065474454974tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 11:57:40 ---> docker-login.sh 11:57:40 nexus3.edgexfoundry.org:10001 11:57:40 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:57:40 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:57:40 Configure a credential helper to remove this warning. See 11:57:40 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:57:40 11:57:40 Login Succeeded 11:57:40 nexus3.edgexfoundry.org:10002 11:57:40 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:57:40 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:57:40 Configure a credential helper to remove this warning. See 11:57:40 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:57:40 11:57:40 Login Succeeded 11:57:40 nexus3.edgexfoundry.org:10003 11:57:40 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:57:41 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:57:41 Configure a credential helper to remove this warning. See 11:57:41 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:57:41 11:57:41 Login Succeeded 11:57:41 nexus3.edgexfoundry.org:10004 11:57:41 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:57:41 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:57:41 Configure a credential helper to remove this warning. See 11:57:41 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:57:41 11:57:41 Login Succeeded 11:57:41 docker.io 11:57:41 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:57:41 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:57:41 Configure a credential helper to remove this warning. See 11:57:41 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:57:41 11:57:41 Login Succeeded 11:57:41 ---> docker-login.sh ends [Pipeline] } 11:57:41 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 11:57:41 + git rev-list -1 --merges 0b5943f47bca970463bc7d3d900b7bd97fa3f7bf~1..0b5943f47bca970463bc7d3d900b7bd97fa3f7bf [Pipeline] echo 11:57:41 -----------> git rev-list -1 --merges 0b5943f47bca970463bc7d3d900b7bd97fa3f7bf~1..0b5943f47bca970463bc7d3d900b7bd97fa3f7bf 0b5943f47bca970463bc7d3d900b7bd97fa3f7bf [false] [Pipeline] sh 11:57:42 + git log --format=format:%s -1 0b5943f47bca970463bc7d3d900b7bd97fa3f7bf [Pipeline] echo 11:57:42 ========================================================= 11:57:42 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 11:57:42 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 11:57:42 + git log --format=format:%s -1 0b5943f47bca970463bc7d3d900b7bd97fa3f7bf [Pipeline] echo 11:57:42 [semverPrep] GIT_COMMIT: 0b5943f47bca970463bc7d3d900b7bd97fa3f7bf, Commit Message: fix: Added formatting directives in restdriver.go [Pipeline] echo 11:57:42 [semverPrep] This is not a build commit. [Pipeline] sh 11:57:42 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 11:57:42 + grep -v github /etc/ssh/ssh_known_hosts 11:57:42 + [ -e /tmp/ssh_known_hosts ] 11:57:42 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 11:57:42 + + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 11:57:42 sudo tee -a /etc/ssh/ssh_known_hosts 11:57:42 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 11:57:43 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 11:57:43 11:57:43 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 11:57:43 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 11:57:43 0.1.4: Pulling from edgex-devops/py-git-semver 11:57:43 b85a868b505f: Pulling fs layer 11:57:43 e2be974225ed: Pulling fs layer 11:57:43 339a4e72a1f5: Pulling fs layer 11:57:43 988bab9f4d93: Pulling fs layer 11:57:43 1469e6f7b9e6: Pulling fs layer 11:57:43 eaf3925da568: Pulling fs layer 11:57:43 bab4dde63d76: Pulling fs layer 11:57:43 bde34c3a00c8: Pulling fs layer 11:57:43 b352a97aabf1: Pulling fs layer 11:57:43 4872d77fe225: Pulling fs layer 11:57:43 5851b861e8e6: Pulling fs layer 11:57:43 988bab9f4d93: Waiting 11:57:43 b352a97aabf1: Waiting 11:57:43 1469e6f7b9e6: Waiting 11:57:43 eaf3925da568: Waiting 11:57:43 5851b861e8e6: Waiting 11:57:43 bab4dde63d76: Waiting 11:57:43 bde34c3a00c8: Waiting 11:57:43 e2be974225ed: Verifying Checksum 11:57:43 e2be974225ed: Download complete 11:57:43 988bab9f4d93: Verifying Checksum 11:57:43 988bab9f4d93: Download complete 11:57:43 1469e6f7b9e6: Verifying Checksum 11:57:43 1469e6f7b9e6: Download complete 11:57:43 eaf3925da568: Download complete 11:57:43 339a4e72a1f5: Download complete 11:57:43 bde34c3a00c8: Verifying Checksum 11:57:43 bde34c3a00c8: Download complete 11:57:43 b352a97aabf1: Download complete 11:57:43 4872d77fe225: Verifying Checksum 11:57:43 4872d77fe225: Download complete 11:57:43 5851b861e8e6: Download complete 11:57:43 b85a868b505f: Verifying Checksum 11:57:43 b85a868b505f: Download complete 11:57:43 bab4dde63d76: Verifying Checksum 11:57:43 bab4dde63d76: Download complete 11:57:45 b85a868b505f: Pull complete 11:57:45 e2be974225ed: Pull complete 11:57:45 339a4e72a1f5: Pull complete 11:57:45 988bab9f4d93: Pull complete 11:57:46 1469e6f7b9e6: Pull complete 11:57:46 eaf3925da568: Pull complete 11:57:48 bab4dde63d76: Pull complete 11:57:48 bde34c3a00c8: Pull complete 11:57:48 b352a97aabf1: Pull complete 11:57:48 4872d77fe225: Pull complete 11:57:48 5851b861e8e6: Pull complete 11:57:48 Digest: sha256:59a28aa3b44c0bc56b9c3d2e9ecabe42e63693d939cc6e425eb8786f29f663d8 11:57:48 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 11:57:48 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 11:57:48 prd-ubuntu20.04-docker-8c-8g-121060 does not seem to be running inside a container 11:57:48 $ 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 11:57:50 $ docker top 549e21ca84080c43b4ee79a5bb7e7970674cfa531112e8dc2d88cc102369dd6e -eo pid,comm 11:57:50 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). 11:57:50 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 11:57:50 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 11:57:50 [ssh-agent] Looking for ssh-agent implementation... 11:57:50 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 11:57:50 $ docker exec 549e21ca84080c43b4ee79a5bb7e7970674cfa531112e8dc2d88cc102369dd6e ssh-agent 11:57:50 SSH_AUTH_SOCK=/tmp/ssh-ELzxaAluC7JU/agent.32 11:57:50 SSH_AGENT_PID=38 11:57:50 Running ssh-add (command line suppressed) 11:57:50 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-229@tmp/private_key_17819129500336951466.key (/w/workspace/gexfoundry_device-rest-go_PR-229@tmp/private_key_17819129500336951466.key) 11:57:50 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 11:57:50 + git tag --points-at HEAD [Pipeline] } 11:57:50 $ docker exec --env ******** --env ******** 549e21ca84080c43b4ee79a5bb7e7970674cfa531112e8dc2d88cc102369dd6e ssh-agent -k 11:57:50 unset SSH_AUTH_SOCK; 11:57:50 unset SSH_AGENT_PID; 11:57:50 echo Agent pid 38 killed; 11:57:50 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 11:57:50 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 11:57:50 [ssh-agent] Looking for ssh-agent implementation... 11:57:51 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 11:57:51 $ docker exec 549e21ca84080c43b4ee79a5bb7e7970674cfa531112e8dc2d88cc102369dd6e ssh-agent 11:57:51 SSH_AUTH_SOCK=/tmp/ssh-axubZjfkaNmU/agent.70 11:57:51 SSH_AGENT_PID=77 11:57:51 Running ssh-add (command line suppressed) 11:57:51 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-229@tmp/private_key_17667061561610556462.key (/w/workspace/gexfoundry_device-rest-go_PR-229@tmp/private_key_17667061561610556462.key) 11:57:51 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 11:57:51 + git semver init 11:57:51 2022-12-13 11:57:51,807 [run_init] DEBUG init version:0.0.0 force:False 11:57:51 2022-12-13 11:57:51,807 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/gexfoundry_device-rest-go_PR-229/.semver 11:57:51 2022-12-13 11:57:51,808 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-rest-go.git /w/workspace/gexfoundry_device-rest-go_PR-229/.semver 11:57:51 2022-12-13 11:57:51,808 [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) 11:57:52 2022-12-13 11:57:52,775 [append_file] DEBUG append to file:/w/workspace/gexfoundry_device-rest-go_PR-229/.git/info/exclude 11:57:52 2022-12-13 11:57:52,776 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/gexfoundry_device-rest-go_PR-229/.semver/PR-229 with force:False 11:57:52 2022-12-13 11:57:52,776 [write_file] DEBUG write to file:/w/workspace/gexfoundry_device-rest-go_PR-229/.semver/PR-229 11:57:52 2022-12-13 11:57:52,781 [execute] INFO git cat-file --batch-check 11:57:52 2022-12-13 11:57:52,781 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-229/.semver, universal_newlines=False, shell=None, istream=) 11:57:52 2022-12-13 11:57:52,788 [execute] INFO git cat-file --batch 11:57:52 2022-12-13 11:57:52,788 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-229/.semver, universal_newlines=False, shell=None, istream=) 11:57:52 2022-12-13 11:57:52,794 [read_version] DEBUG read version from /w/workspace/gexfoundry_device-rest-go_PR-229/.semver/PR-229 11:57:52 0.0.0 [Pipeline] } 11:57:53 $ docker exec --env ******** --env ******** 549e21ca84080c43b4ee79a5bb7e7970674cfa531112e8dc2d88cc102369dd6e ssh-agent -k 11:57:53 unset SSH_AUTH_SOCK; 11:57:53 unset SSH_AGENT_PID; 11:57:53 echo Agent pid 77 killed; 11:57:53 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 11:57:53 + git semver [Pipeline] } 11:57:53 $ docker stop --time=1 549e21ca84080c43b4ee79a5bb7e7970674cfa531112e8dc2d88cc102369dd6e 11:57:55 $ docker rm -f 549e21ca84080c43b4ee79a5bb7e7970674cfa531112e8dc2d88cc102369dd6e [Pipeline] // withDockerContainer [Pipeline] sh 11:57:55 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 11:57:55 Stashed 1 file(s) [Pipeline] echo 11:57:55 [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 11:57:55 provisioning config files... 11:57:55 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-229@tmp/config16565619526564198448tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 11:57:56 ---> docker-login.sh 11:57:56 nexus3.edgexfoundry.org:10001 11:57:56 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:57:56 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:57:56 Configure a credential helper to remove this warning. See 11:57:56 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:57:56 11:57:56 Login Succeeded 11:57:56 nexus3.edgexfoundry.org:10002 11:57:56 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:57:56 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:57:56 Configure a credential helper to remove this warning. See 11:57:56 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:57:56 11:57:56 Login Succeeded 11:57:56 nexus3.edgexfoundry.org:10003 11:57:56 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:57:56 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:57:56 Configure a credential helper to remove this warning. See 11:57:56 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:57:56 11:57:56 Login Succeeded 11:57:56 nexus3.edgexfoundry.org:10004 11:57:56 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:57:56 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:57:56 Configure a credential helper to remove this warning. See 11:57:56 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:57:56 11:57:56 Login Succeeded 11:57:56 docker.io 11:57:56 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 11:57:56 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 11:57:56 Configure a credential helper to remove this warning. See 11:57:56 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 11:57:56 11:57:56 Login Succeeded 11:57:56 ---> docker-login.sh ends [Pipeline] } 11:57:56 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 11:57:56 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 11:57:56 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 11:57:56 ========================================================= 11:57:56 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.18-alpine] 11:57:56 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 11:57:57 + 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 . 11:57:57 Sending build context to Docker daemon 10.79MB 11:57:57 Step 1/12 : ARG BASE=golang:1.18-alpine3.16 11:57:57 Step 2/12 : FROM ${BASE} AS builder 11:57:57 1.18-alpine: Pulling from edgex-devops/edgex-golang-base 11:57:57 213ec9aee27d: Pulling fs layer 11:57:57 4583459ba037: Pulling fs layer 11:57:57 93c1e223e6f2: Pulling fs layer 11:57:57 53926ce57604: Pulling fs layer 11:57:57 21b2b0c7a3f4: Pulling fs layer 11:57:57 22ff95d597cd: Pulling fs layer 11:57:57 12d6caf4c0d1: Pulling fs layer 11:57:57 96b7cbca73a9: Pulling fs layer 11:57:57 a7acece74701: Pulling fs layer 11:57:57 21b2b0c7a3f4: Waiting 11:57:57 53926ce57604: Waiting 11:57:57 22ff95d597cd: Waiting 11:57:57 12d6caf4c0d1: Waiting 11:57:57 a7acece74701: Waiting 11:57:57 96b7cbca73a9: Waiting 11:57:57 93c1e223e6f2: Verifying Checksum 11:57:57 93c1e223e6f2: Download complete 11:57:57 4583459ba037: Download complete 11:57:57 21b2b0c7a3f4: Download complete 11:57:57 22ff95d597cd: Verifying Checksum 11:57:57 22ff95d597cd: Download complete 11:57:57 213ec9aee27d: Verifying Checksum 11:57:57 12d6caf4c0d1: Download complete 11:57:57 213ec9aee27d: Pull complete 11:57:57 4583459ba037: Pull complete 11:57:57 93c1e223e6f2: Pull complete 11:57:58 a7acece74701: Verifying Checksum 11:57:58 a7acece74701: Download complete 11:57:58 53926ce57604: Download complete 11:57:58 96b7cbca73a9: Verifying Checksum 11:57:58 96b7cbca73a9: Download complete 11:58:02 53926ce57604: Pull complete 11:58:02 21b2b0c7a3f4: Pull complete 11:58:02 22ff95d597cd: Pull complete 11:58:02 12d6caf4c0d1: Pull complete 11:58:04 96b7cbca73a9: Pull complete 11:58:05 a7acece74701: Pull complete 11:58:05 Digest: sha256:f6a9ef70c52da88a2ff63a0c6767b24654f9f5185d1d85ca6cc3004fb48f6c2d 11:58:05 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.18-alpine 11:58:05 ---> db6d94c90886 11:58:05 Step 3/12 : ARG ADD_BUILD_TAGS="" 11:58:07 ---> Running in 2ea996f6fc91 11:58:07 Removing intermediate container 2ea996f6fc91 11:58:07 ---> c042a07a936f 11:58:07 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 11:58:07 ---> Running in 85e66629d6f2 11:58:07 Removing intermediate container 85e66629d6f2 11:58:07 ---> f838b15a49ae 11:58:07 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 11:58:07 ---> Running in 71bd4d518a35 11:58:07 Removing intermediate container 71bd4d518a35 11:58:07 ---> 1a6fde0f3d95 11:58:07 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 11:58:07 ---> Running in 1809f584dc66 11:58:08 Removing intermediate container 1809f584dc66 11:58:08 ---> b81f102362a7 11:58:08 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 11:58:08 ---> Running in 3c55449894c1 11:58:08 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz 11:58:08 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz 11:58:08 (1/4) Installing openssh-keygen (9.0_p1-r2) 11:58:08 (2/4) Installing libedit (20210910.3.1-r0) 11:58:08 (3/4) Installing openssh-client-common (9.0_p1-r2) 11:58:08 (4/4) Installing openssh-client-default (9.0_p1-r2) 11:58:08 Executing busybox-1.35.0-r17.trigger 11:58:08 OK: 216 MiB in 55 packages 11:58:09 Removing intermediate container 3c55449894c1 11:58:09 ---> 731579a92404 11:58:09 Step 8/12 : WORKDIR /device-rest-go 11:58:09 ---> Running in 41ccf2ff9b05 11:58:09 Removing intermediate container 41ccf2ff9b05 11:58:09 ---> 710e16f1e87c 11:58:09 Step 9/12 : COPY go.mod vendor* ./ 11:58:09 ---> 55fba140b77c 11:58:09 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 11:58:09 ---> Running in 8ab147459d5f 11:58:10 Still waiting to schedule task 11:58:10 All nodes of label ‘ubuntu20.04-docker-arm64-4c-16g’ are offline 11:58:31 Removing intermediate container 8ab147459d5f 11:58:31 ---> 45b5b76ff155 11:58:31 Step 11/12 : COPY . . 11:58:31 ---> 70ae88654cee 11:58:31 Step 12/12 : RUN $MAKE 11:58:31 ---> Running in 0aac860d6717 11:58:31 noop 11:58:31 Removing intermediate container 0aac860d6717 11:58:31 ---> a995d44148f9 11:58:31 Successfully built a995d44148f9 11:58:31 Successfully tagged ci-base-image-x86_64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 11:58:31 + docker inspect -f . ci-base-image-x86_64 11:58:31 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 11:58:31 prd-ubuntu20.04-docker-8c-8g-121060 does not seem to be running inside a container 11:58:32 $ 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 11:58:32 $ docker top 6c292e5ca2a86d0ee46835095b757fd6c4e7714f2cf1dceeebe2b84ea183076b -eo pid,comm [Pipeline] { [Pipeline] sh 11:58:32 + go version 11:58:32 go version go1.18.7 linux/amd64 [Pipeline] } 11:58:32 $ docker stop --time=1 6c292e5ca2a86d0ee46835095b757fd6c4e7714f2cf1dceeebe2b84ea183076b 11:58:34 $ docker rm -f 6c292e5ca2a86d0ee46835095b757fd6c4e7714f2cf1dceeebe2b84ea183076b [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 11:58:34 + docker inspect -f . ci-base-image-x86_64 11:58:34 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 11:58:34 prd-ubuntu20.04-docker-8c-8g-121060 does not seem to be running inside a container 11:58:34 $ 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 11:58:35 $ docker top 1815d5489b1c6a46bf439a5218df9e85acf18adfdc9b773ac35ef91af7fedcef -eo pid,comm [Pipeline] { [Pipeline] sh 11:58:35 + git config --global --add safe.directory /w/workspace/gexfoundry_device-rest-go_PR-229 [Pipeline] fileExists [Pipeline] sh 11:58:35 + make test 11:58:35 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out ./... 11:58:35 ? github.com/edgexfoundry/device-rest-go [no test files] 11:58:45 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 11:58:46 ok github.com/edgexfoundry/device-rest-go/driver 0.016s coverage: 26.7% of statements 11:58:54 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." 11:58:54 driver/restdriver.go:287:15: unusedresult: result of fmt.Errorf call not used (govet) 11:58:54 fmt.Errorf("Read command failed. Cmd:%v err:%v \n", req.DeviceResourceName, err) 11:58:54 ^ 11:58:54 make: *** [Makefile:43: lint] Error 1 [Pipeline] } 11:58:54 $ docker stop --time=1 1815d5489b1c6a46bf439a5218df9e85acf18adfdc9b773ac35ef91af7fedcef 11:58:56 $ docker rm -f 1815d5489b1c6a46bf439a5218df9e85acf18adfdc9b773ac35ef91af7fedcef [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 11:58:56 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 11:58:56 11:58:56 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 11:58:57 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 11:58:57 latest: Pulling from edgex-lftools-log-publisher 11:58:57 5eb5b503b376: Pulling fs layer 11:58:57 5c69ac0246d0: Pulling fs layer 11:58:57 ec43610c2a17: Pulling fs layer 11:58:57 3a2ae6a8a46f: Pulling fs layer 11:58:57 33b1e0a273af: Pulling fs layer 11:58:57 5d3b04190fa2: Pulling fs layer 11:58:57 2f39f015ded8: Pulling fs layer 11:58:57 33b1e0a273af: Waiting 11:58:57 3a2ae6a8a46f: Waiting 11:58:57 2f39f015ded8: Waiting 11:58:57 5c69ac0246d0: Download complete 11:58:57 3a2ae6a8a46f: Verifying Checksum 11:58:57 3a2ae6a8a46f: Download complete 11:58:57 33b1e0a273af: Verifying Checksum 11:58:57 33b1e0a273af: Download complete 11:58:57 5d3b04190fa2: Verifying Checksum 11:58:57 5d3b04190fa2: Download complete 11:58:57 ec43610c2a17: Verifying Checksum 11:58:57 ec43610c2a17: Download complete 11:58:57 5eb5b503b376: Verifying Checksum 11:58:57 5eb5b503b376: Download complete 11:58:58 2f39f015ded8: Download complete 11:58:58 5eb5b503b376: Pull complete 11:58:58 5c69ac0246d0: Pull complete 11:58:59 ec43610c2a17: Pull complete 11:58:59 3a2ae6a8a46f: Pull complete 11:58:59 33b1e0a273af: Pull complete 11:58:59 5d3b04190fa2: Pull complete 11:59:03 2f39f015ded8: Pull complete 11:59:03 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 11:59:03 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 11:59:03 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 11:59:03 prd-ubuntu20.04-docker-8c-8g-121060 does not seem to be running inside a container 11:59:03 $ 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 11:59:05 $ docker top 573c409b6e1b7c05d84d6f3ee2fb30e6f06fe764f21e0bfa8924fe09a26383b8 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 11:59:05 ---> job-cost.sh 11:59:05 lf-activate-venv: SKIPPING 11:59:05 INFO: No Stack... 11:59:06 INFO: Retrieving Pricing Info for: v3-standard-8 11:59:06 INFO: Archiving Costs [Pipeline] sh 11:59:06 + cat /w/workspace/gexfoundry_device-rest-go_PR-229/archives/cost.csv 11:59:06 + cut -d, -f6 [Pipeline] lock 11:59:06 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-229-2-stack-cost] 11:59:06 Resource [jenkins-edgexfoundry-device-rest-go-PR-229-2-stack-cost] did not exist. Created. 11:59:06 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-229-2-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 11:59:07 + echo total: 0.2199999988079071 [Pipeline] stash 11:59:07 Stashed 1 file(s) [Pipeline] } 11:59:07 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-229-2-stack-cost] [Pipeline] // lock [Pipeline] } 11:59:07 $ docker stop --time=1 573c409b6e1b7c05d84d6f3ee2fb30e6f06fe764f21e0bfa8924fe09a26383b8 11:59:08 $ docker rm -f 573c409b6e1b7c05d84d6f3ee2fb30e6f06fe764f21e0bfa8924fe09a26383b8 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 11:59:08 Failed in branch amd64 11:59:50 Running on prd-ubuntu20.04-docker-arm64-4c-16g-121061 in /w/workspace/gexfoundry_device-rest-go_PR-229 [Pipeline] { [Pipeline] ws 11:59:50 Running in /w/workspace/device-rest-go/2 [Pipeline] { [Pipeline] checkout 11:59:50 The recommended git tool is: git 11:59:56 using credential edgex-jenkins-ssh 11:59:56 Cloning the remote Git repository 11:59:56 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 11:59:56 > git init /w/workspace/device-rest-go/2 # timeout=10 11:59:56 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 11:59:56 > git --version # timeout=10 11:59:56 > git --version # 'git version 2.25.1' 11:59:56 using GIT_SSH to set credentials SSH Credentials for GitHub 11:59:56 Verifying host key using known hosts file 11:59:56 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. 11:59:56 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 11:59:58 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 11:59:58 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 11:59:59 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 12:00:00 Merging remotes/origin/main commit ea2635875d50d8674d03123d64d8d0373faddc1b into PR head commit 0b5943f47bca970463bc7d3d900b7bd97fa3f7bf 12:00:00 Merge succeeded, producing 0b5943f47bca970463bc7d3d900b7bd97fa3f7bf 12:00:00 Checking out Revision 0b5943f47bca970463bc7d3d900b7bd97fa3f7bf (PR-229) 11:59:59 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 11:59:59 using GIT_SSH to set credentials SSH Credentials for GitHub 11:59:59 Verifying host key using known hosts file 11:59:59 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. 11:59:59 > 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:00:00 > git config core.sparsecheckout # timeout=10 12:00:00 > git checkout -f 0b5943f47bca970463bc7d3d900b7bd97fa3f7bf # timeout=10 12:00:00 > git remote # timeout=10 12:00:00 > git config --get remote.origin.url # timeout=10 12:00:00 using GIT_SSH to set credentials SSH Credentials for GitHub 12:00:00 Verifying host key using known hosts file 12:00:00 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:00:00 > git merge ea2635875d50d8674d03123d64d8d0373faddc1b # timeout=10 12:00:00 > git rev-parse HEAD^{commit} # timeout=10 12:00:00 > git config core.sparsecheckout # timeout=10 12:00:00 > git checkout -f 0b5943f47bca970463bc7d3d900b7bd97fa3f7bf # timeout=10 12:00:04 Commit message: "fix: Added formatting directives in restdriver.go" [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 12:00:05 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 12:00:05 % Total % Received % Xferd Average Speed Time Time Time Current 12:00:05 Dload Upload Total Spent Left Speed 12:00:05 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 12751 100 12751 0 0 62504 0 --:--:-- --:--:-- --:--:-- 62812 [Pipeline] sh 12:00:05 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 12:00:06 + sudo tee /etc/docker/daemon.new 12:00:06 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 12:00:06 { 12:00:06 "registry-mirrors": [ 12:00:06 "https://nexus3.edgexfoundry.org:10001" 12:00:06 ], 12:00:06 "bip": "10.250.0.254/24", 12:00:06 "hosts": [ 12:00:06 "tcp://0.0.0.0:5555", 12:00:06 "unix:///var/run/docker.sock" 12:00:06 ], 12:00:06 "mtu": 1458, 12:00:06 "selinux-enabled": true, 12:00:06 "seccomp-profile": "/etc/docker/seccomp.json" 12:00:06 } [Pipeline] sh 12:00:06 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 12:00:06 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 12:00:25 provisioning config files... 12:00:25 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/2@tmp/config5434089830133331105tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 12:00:25 ---> docker-login.sh 12:00:25 nexus3.edgexfoundry.org:10001 12:00:25 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:00:26 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:00:26 Configure a credential helper to remove this warning. See 12:00:26 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:00:26 12:00:26 Login Succeeded 12:00:26 nexus3.edgexfoundry.org:10002 12:00:26 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:00:26 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:00:26 Configure a credential helper to remove this warning. See 12:00:26 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:00:26 12:00:26 Login Succeeded 12:00:26 nexus3.edgexfoundry.org:10003 12:00:26 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:00:26 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:00:26 Configure a credential helper to remove this warning. See 12:00:26 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:00:26 12:00:26 Login Succeeded 12:00:26 nexus3.edgexfoundry.org:10004 12:00:27 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:00:27 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:00:27 Configure a credential helper to remove this warning. See 12:00:27 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:00:27 12:00:27 Login Succeeded 12:00:27 docker.io 12:00:27 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:00:27 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:00:27 Configure a credential helper to remove this warning. See 12:00:27 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:00:27 12:00:27 Login Succeeded 12:00:27 ---> docker-login.sh ends [Pipeline] } 12:00:27 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 12:00:27 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 12:00:27 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 12:00:27 ========================================================= 12:00:27 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.18-alpine] 12:00:27 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 12:00:28 + 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:00:28 Sending build context to Docker daemon 149.5kB 12:00:28 Step 1/12 : ARG BASE=golang:1.18-alpine3.16 12:00:28 Step 2/12 : FROM ${BASE} AS builder 12:00:28 1.18-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 12:00:28 9b18e9b68314: Pulling fs layer 12:00:28 35d82f9e3411: Pulling fs layer 12:00:28 e16973657156: Pulling fs layer 12:00:28 fc693d55d65f: Pulling fs layer 12:00:28 7e9fc2657dce: Pulling fs layer 12:00:28 dda99020689f: Pulling fs layer 12:00:28 db1c61fa0a46: Pulling fs layer 12:00:28 891c053d2c06: Pulling fs layer 12:00:28 dda99020689f: Waiting 12:00:28 db1c61fa0a46: Waiting 12:00:28 891c053d2c06: Waiting 12:00:28 fc693d55d65f: Waiting 12:00:28 7e9fc2657dce: Waiting 12:00:28 e16973657156: Verifying Checksum 12:00:28 e16973657156: Download complete 12:00:28 35d82f9e3411: Verifying Checksum 12:00:28 35d82f9e3411: Download complete 12:00:28 7e9fc2657dce: Verifying Checksum 12:00:28 7e9fc2657dce: Download complete 12:00:28 dda99020689f: Verifying Checksum 12:00:28 dda99020689f: Download complete 12:00:28 9b18e9b68314: Verifying Checksum 12:00:28 9b18e9b68314: Download complete 12:00:29 9b18e9b68314: Pull complete 12:00:29 891c053d2c06: Verifying Checksum 12:00:29 891c053d2c06: Download complete 12:00:30 35d82f9e3411: Pull complete 12:00:30 e16973657156: Pull complete 12:00:30 db1c61fa0a46: Verifying Checksum 12:00:30 db1c61fa0a46: Download complete 12:00:31 fc693d55d65f: Verifying Checksum 12:00:31 fc693d55d65f: Download complete 12:00:43 fc693d55d65f: Pull complete 12:00:43 7e9fc2657dce: Pull complete 12:00:43 dda99020689f: Pull complete 12:00:49 db1c61fa0a46: Pull complete 12:00:51 891c053d2c06: Pull complete 12:00:51 Digest: sha256:2cacf8bfc28650abd52610e42dcfc04852e818eb73900ea96edaef96a54d0b45 12:00:51 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.18-alpine 12:00:51 ---> f96f9c87975a 12:00:51 Step 3/12 : ARG ADD_BUILD_TAGS="" 12:00:53 ---> Running in 6b5e66049a48 12:00:53 Removing intermediate container 6b5e66049a48 12:00:53 ---> df852eb547bb 12:00:53 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 12:00:53 ---> Running in 44579cf6923b 12:00:53 Removing intermediate container 44579cf6923b 12:00:53 ---> 03ce2facc1a2 12:00:53 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 12:00:53 ---> Running in cf1e23b5d380 12:00:53 Removing intermediate container cf1e23b5d380 12:00:53 ---> 48e0252954f5 12:00:53 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 12:00:53 ---> Running in c269c5e936d4 12:00:54 Removing intermediate container c269c5e936d4 12:00:54 ---> a1b7bf319f5d 12:00:54 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 12:00:54 ---> Running in ced27b7c89d8 12:00:55 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/aarch64/APKINDEX.tar.gz 12:00:55 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/aarch64/APKINDEX.tar.gz 12:00:56 (1/4) Installing openssh-keygen (9.0_p1-r2) 12:00:56 (2/4) Installing libedit (20210910.3.1-r0) 12:00:56 (3/4) Installing openssh-client-common (9.0_p1-r2) 12:00:56 (4/4) Installing openssh-client-default (9.0_p1-r2) 12:00:56 Executing busybox-1.35.0-r17.trigger 12:00:56 OK: 226 MiB in 55 packages 12:00:57 Removing intermediate container ced27b7c89d8 12:00:57 ---> 876418e6710e 12:00:57 Step 8/12 : WORKDIR /device-rest-go 12:00:57 ---> Running in 932bae67e86f 12:00:57 Removing intermediate container 932bae67e86f 12:00:57 ---> 9608f0a3e1f4 12:00:57 Step 9/12 : COPY go.mod vendor* ./ 12:00:58 ---> 3cba4b0591c0 12:00:58 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 12:00:58 ---> Running in 1763aae3efdc 12:01:54 Removing intermediate container 1763aae3efdc 12:01:54 ---> c5c1162a3f2b 12:01:54 Step 11/12 : COPY . . 12:01:54 ---> 461133309f46 12:01:54 Step 12/12 : RUN $MAKE 12:01:54 ---> Running in a059ead6f052 12:01:54 noop 12:01:54 Removing intermediate container a059ead6f052 12:01:54 ---> ad5f473eba38 12:01:54 Successfully built ad5f473eba38 12:01:54 Successfully tagged ci-base-image-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 12:01:55 + docker inspect -f . ci-base-image-arm64 12:01:55 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 12:01:55 prd-ubuntu20.04-docker-arm64-4c-16g-121061 does not seem to be running inside a container 12:01:55 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/2 -v /w/workspace/device-rest-go/2:/w/workspace/device-rest-go/2:rw,z -v /w/workspace/device-rest-go/2@tmp:/w/workspace/device-rest-go/2@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:01:56 $ docker top 9930047ec5eed0b631b20b8bad714856cceb74e66bc594f29d091c8dd1194653 -eo pid,comm [Pipeline] { [Pipeline] sh 12:01:57 + go version 12:01:57 go version go1.18.7 linux/arm64 [Pipeline] } 12:01:57 $ docker stop --time=1 9930047ec5eed0b631b20b8bad714856cceb74e66bc594f29d091c8dd1194653 12:01:59 $ docker rm -f 9930047ec5eed0b631b20b8bad714856cceb74e66bc594f29d091c8dd1194653 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 12:01:59 + docker inspect -f . ci-base-image-arm64 12:01:59 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 12:01:59 prd-ubuntu20.04-docker-arm64-4c-16g-121061 does not seem to be running inside a container 12:01:59 $ 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/2 -v /w/workspace/device-rest-go/2:/w/workspace/device-rest-go/2:rw,z -v /w/workspace/device-rest-go/2@tmp:/w/workspace/device-rest-go/2@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:02:01 $ docker top c71a0dba3cd1851cc0e835c163f3d167139120ca83c96394ec562f1e3e7e6998 -eo pid,comm [Pipeline] { [Pipeline] sh 12:02:01 + git config --global --add safe.directory /w/workspace/device-rest-go/2 [Pipeline] fileExists [Pipeline] sh 12:02:01 + make test 12:02:02 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out ./... 12:02:03 ? github.com/edgexfoundry/device-rest-go [no test files] 12:03:25 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 12:03:26 ok github.com/edgexfoundry/device-rest-go/driver 0.069s coverage: 26.7% of statements 12:03:26 WARNING: Linting skipped (not on x86_64 or linter not installed) 12:03:26 CGO_ENABLED=1 GO111MODULE=on go vet ./... 12:03:48 # github.com/edgexfoundry/device-rest-go/driver 12:03:48 driver/restdriver.go:287:15: result of fmt.Errorf call not used 12:03:48 make: *** [Makefile:46: test] Error 2 [Pipeline] } 12:03:48 $ docker stop --time=1 c71a0dba3cd1851cc0e835c163f3d167139120ca83c96394ec562f1e3e7e6998 12:03:50 $ docker rm -f c71a0dba3cd1851cc0e835c163f3d167139120ca83c96394ec562f1e3e7e6998 [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:03:51 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 12:03:51 12:03:51 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 12:03:52 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 12:03:52 arm64: Pulling from edgex-lftools-log-publisher 12:03:52 8998bd30e6a1: Pulling fs layer 12:03:52 04944245beec: Pulling fs layer 12:03:52 699f458cf7ca: Pulling fs layer 12:03:52 765212b225bb: Pulling fs layer 12:03:52 f23df028b6ca: Pulling fs layer 12:03:52 d65c8cfc05b1: Pulling fs layer 12:03:52 2437ff75d9bd: Pulling fs layer 12:03:52 765212b225bb: Waiting 12:03:52 f23df028b6ca: Waiting 12:03:52 2437ff75d9bd: Waiting 12:03:52 d65c8cfc05b1: Waiting 12:03:52 04944245beec: Verifying Checksum 12:03:52 04944245beec: Download complete 12:03:52 765212b225bb: Verifying Checksum 12:03:52 765212b225bb: Download complete 12:03:52 f23df028b6ca: Verifying Checksum 12:03:52 f23df028b6ca: Download complete 12:03:52 d65c8cfc05b1: Verifying Checksum 12:03:52 d65c8cfc05b1: Download complete 12:03:52 699f458cf7ca: Verifying Checksum 12:03:52 699f458cf7ca: Download complete 12:03:53 8998bd30e6a1: Verifying Checksum 12:03:53 8998bd30e6a1: Download complete 12:03:55 2437ff75d9bd: Verifying Checksum 12:03:55 2437ff75d9bd: Download complete 12:03:57 8998bd30e6a1: Pull complete 12:03:58 04944245beec: Pull complete 12:03:59 699f458cf7ca: Pull complete 12:04:00 765212b225bb: Pull complete 12:04:00 f23df028b6ca: Pull complete 12:04:01 d65c8cfc05b1: Pull complete 12:04:19 2437ff75d9bd: Pull complete 12:04:19 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 12:04:19 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 12:04:19 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 12:04:19 prd-ubuntu20.04-docker-arm64-4c-16g-121061 does not seem to be running inside a container 12:04:19 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/device-rest-go/2 -v /w/workspace/device-rest-go/2:/w/workspace/device-rest-go/2:rw,z -v /w/workspace/device-rest-go/2@tmp:/w/workspace/device-rest-go/2@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:04:21 $ docker top a980b9700b9d3aa06ff25cb9691cd7b1a0adb04b3f4c2a8d2fef7a969d8337a0 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 12:04:22 ---> job-cost.sh 12:04:22 lf-activate-venv: SKIPPING 12:04:22 INFO: No Stack... 12:04:22 INFO: Retrieving Pricing Info for: v3-standard-4 12:04:23 INFO: Archiving Costs [Pipeline] sh 12:04:24 + cat /w/workspace/device-rest-go/2/archives/cost.csv 12:04:24 + cut -d, -f6 [Pipeline] lock 12:04:24 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-229-2-stack-cost] 12:04:24 Resource [jenkins-edgexfoundry-device-rest-go-PR-229-2-stack-cost] did not exist. Created. 12:04:24 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-229-2-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 12:04:24 /w/workspace/device-rest-go/2@tmp/durable-d355b9fc/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 12:04:25 + echo total: 0.10999999940395355 [Pipeline] stash 12:04:25 Warning: overwriting stash ‘stack-cost’ 12:04:25 Stashed 1 file(s) [Pipeline] } 12:04:25 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-229-2-stack-cost] [Pipeline] // lock [Pipeline] } 12:04:25 $ docker stop --time=1 a980b9700b9d3aa06ff25cb9691cd7b1a0adb04b3f4c2a8d2fef7a969d8337a0 12:04:27 $ docker rm -f a980b9700b9d3aa06ff25cb9691cd7b1a0adb04b3f4c2a8d2fef7a969d8337a0 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // ws [Pipeline] } [Pipeline] // node [Pipeline] } [Pipeline] // stage [Pipeline] } 12:04:27 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:04:28 + [ -d /w/workspace/gexfoundry_device-rest-go_PR-229/archives ] 12:04:28 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-229/archives 12:04:28 total 16 12:04:28 drwxr-xr-x 3 root root 4096 Dec 13 11:59 . 12:04:28 drwxrwxr-x 10 jenkins jenkins 4096 Dec 13 11:59 .. 12:04:28 drwxr-xr-x 2 root root 4096 Dec 13 11:59 cost 12:04:28 -rw-r--r-- 1 root root 86 Dec 13 11:59 cost.csv 12:04:28 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-rest-go_PR-229/archives 12:04:28 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-229/archives 12:04:28 total 16 12:04:28 drwxr-xr-x 3 jenkins jenkins 4096 Dec 13 11:59 . 12:04:28 drwxrwxr-x 10 jenkins jenkins 4096 Dec 13 11:59 .. 12:04:28 drwxr-xr-x 2 jenkins jenkins 4096 Dec 13 11:59 cost 12:04:28 -rw-r--r-- 1 jenkins jenkins 86 Dec 13 11:59 cost.csv [Pipeline] libraryResource [Pipeline] sh 12:04:28 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 12:04:29 ---> package-listing.sh 12:04:29 ++ facter osfamily 12:04:29 ++ tr '[:upper:]' '[:lower:]' 12:04:29 + OS_FAMILY=debian 12:04:29 + workspace=/w/workspace/gexfoundry_device-rest-go_PR-229 12:04:29 + START_PACKAGES=/tmp/packages_start.txt 12:04:29 + END_PACKAGES=/tmp/packages_end.txt 12:04:29 + DIFF_PACKAGES=/tmp/packages_diff.txt 12:04:29 + PACKAGES=/tmp/packages_start.txt 12:04:29 + '[' /w/workspace/gexfoundry_device-rest-go_PR-229 ']' 12:04:29 + PACKAGES=/tmp/packages_end.txt 12:04:29 + case "${OS_FAMILY}" in 12:04:29 + dpkg -l 12:04:29 + grep '^ii' 12:04:29 + '[' -f /tmp/packages_start.txt ']' 12:04:29 + '[' -f /tmp/packages_end.txt ']' 12:04:29 + diff /tmp/packages_start.txt /tmp/packages_end.txt 12:04:29 + '[' /w/workspace/gexfoundry_device-rest-go_PR-229 ']' 12:04:29 + mkdir -p /w/workspace/gexfoundry_device-rest-go_PR-229/archives/ 12:04:29 + 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:04:29 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:04:30 + facter operatingsystem [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 12:04:30 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 12:04:30 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 12:04:30 prd-ubuntu20.04-docker-8c-8g-121060 does not seem to be running inside a container 12:04:30 $ 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:04:31 $ docker top d775f81e74dbf2bd50bf85cf87078b97fa8afb639042743f51d43982cbd37ada -eo pid,comm [Pipeline] { [Pipeline] sh 12:04:31 + touch /tmp/pre-build-complete [Pipeline] sh 12:04:31 + mkdir -p /var/log/sysstat [Pipeline] sh 12:04:32 + ls /var/log/sa-host 12:04:32 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 12:04:32 provisioning config files... 12:04:32 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-229@tmp/config2944870271104260351tmp [Pipeline] { [Pipeline] echo 12:04:32 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 12:04:32 ---> create-netrc.sh [Pipeline] } 12:04:32 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 12:04:32 ---> python-tools-install.sh [Pipeline] echo 12:04:32 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 12:04:33 ---> sudo-logs.sh 12:04:33 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 12:04:33 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 12:04:33 ---> job-cost.sh 12:04:33 lf-activate-venv: SKIPPING 12:04:33 DEBUG: total: 0.2199999988079071 12:04:33 INFO: Retrieving Stack Cost... 12:04:33 INFO: Retrieving Pricing Info for: v3-standard-8 12:04:33 INFO: Archiving Costs [Pipeline] echo 12:04:33 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 12:04:34 ---> logs-deploy.sh 12:04:34 lf-activate-venv: SKIPPING 12:04:34 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-229/2 12:04:34 INFO: archiving workspace using pattern(s): 12:04:35 Archives upload complete. 12:04:35 INFO: archiving logs to Nexus