Pull request #274 opened Connecting to https://api.github.com using edgex-jenkins github personal access token Obtained Jenkinsfile from 765b423f03973f5c6e6b8cfc506e809621e45c33+e28169b2e94fb685934981c338b1a6a24f9d6fce (78c00c321a72776405a4683c1a4c590e06a3d1bf) 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-ssh18201460947044445629.key > git ls-remote -h -t -- git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Found match: refs/tags/stable revision 66200e8eedfc470904d6b329e562ec5b45423d6a 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-ssh3846659348710618165.key > git fetch --tags --progress -- origin +refs/heads/*:refs/remotes/origin/* # timeout=10 > git rev-parse refs/tags/stable^{commit} # timeout=10 Resolved tag stable revision 66200e8eedfc470904d6b329e562ec5b45423d6a The recommended git tool is: git using credential edgex-jenkins-ssh Cloning the remote Git repository Cloning with configured refspecs honoured and with tags Cloning repository git@github.com:edgexfoundry/edgex-global-pipelines.git > git init /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-274/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82 # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/edgex-global-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-274/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh13975035965288371945.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 > git config --add remote.origin.fetch +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Fetching with tags Fetching upstream changes from git@github.com:edgexfoundry/edgex-global-pipelines.git using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-274/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh8735905798445280258.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision 66200e8eedfc470904d6b329e562ec5b45423d6a (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f 66200e8eedfc470904d6b329e562ec5b45423d6a # timeout=10 Commit message: "feat: add capability to use golang 1.20 (#427)" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 > git --version # timeout=10 > git --version # 'git version 2.16.6' Excluding src/test/ from checkout of git git@github.com:edgexfoundry/edgex-global-pipelines.git so that library test code cannot be accessed by Pipelines. To remove this log message, move the test code outside of src/. To restore the previous behavior that allowed access to files in src/test/, pass -Dorg.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.INCLUDE_SRC_TEST_IN_LIBRARIES=true to the java command used to start Jenkins. Loading library lf-pipelines@master Attempting to resolve master from remote references... > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /tmp/jenkins-gitclient-ssh10941265467922165853.key > git ls-remote -h -- git@github.com:lfit/releng-pipelines.git # timeout=10 Found match: refs/heads/master revision 65355178549468b165f8106641c96c3190b1d843 The recommended git tool is: NONE using credential edgex-jenkins-ssh Cloning the remote Git repository Cloning with configured refspecs honoured and without tags Cloning repository git@github.com:lfit/releng-pipelines.git > git init /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-274/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e # timeout=10 Fetching upstream changes from git@github.com:lfit/releng-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-274/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e@tmp/jenkins-gitclient-ssh5473247924971288932.key > git fetch --no-tags --progress -- git@github.com:lfit/releng-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:lfit/releng-pipelines.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 Avoid second fetch Checking out Revision 65355178549468b165f8106641c96c3190b1d843 (master) > git config core.sparsecheckout # timeout=10 > git checkout -f 65355178549468b165f8106641c96c3190b1d843 # timeout=10 Commit message: "Fix: Add S3 URL in href to ship logs" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 > git --version # timeout=10 > git --version # 'git version 2.16.6' fatal: bad object 66200e8eedfc470904d6b329e562ec5b45423d6a Excluding src/test/ from checkout of git git@github.com:lfit/releng-pipelines.git so that library test code cannot be accessed by Pipelines. To remove this log message, move the test code outside of src/. To restore the previous behavior that allowed access to files in src/test/, pass -Dorg.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.INCLUDE_SRC_TEST_IN_LIBRARIES=true to the java command used to start Jenkins. [Pipeline] Start of Pipeline [Pipeline] echo ========================================================= [edgeXBuildGoApp] RAW Config: [project:device-rest-go] ========================================================= [Pipeline] echo Setting up nodes based on requested architectures [[amd64, arm64]] [Pipeline] echo Nodes requested: [[ubuntu20.04-docker-8c-8g, ubuntu20.04-docker-arm64-4c-16g]] [Pipeline] echo ========================================================= [edgeXBuildGoApp] Pipeline Parameters: ========================================================= [Pipeline] echo MAVEN_SETTINGS: device-rest-go-settings PROJECT: device-rest-go USE_SEMVER: true TEST_SCRIPT: make test BUILD_SCRIPT: make build GO_VERSION: 1.20 USE_ALPINE: true DOCKER_FILE_PATH: Dockerfile DOCKER_BUILD_FILE_PATH: Dockerfile.build DOCKER_BUILD_CONTEXT: . DOCKER_BUILD_IMAGE_TARGET: builder DOCKER_IMAGE_NAME: device-rest DOCKER_REGISTRY_NAMESPACE: DOCKER_NEXUS_REPO: staging BUILD_DOCKER_IMAGE: true PUSH_DOCKER_IMAGE: true BUILD_EXPERIMENTAL_DOCKER_IMAGE: false BUILD_STABLE_DOCKER_IMAGE: false SEMVER_BUMP_LEVEL: pre BUILD_SNAP: false PUBLISH_SWAGGER_DOCS: false SWAGGER_API_FOLDERS: openapi/v1 ARTIFACT_ROOT: archives/bin ARTIFACT_TYPES: docker SHOULD_BUILD: true BUILD_FAILURE_NOTIFY_LIST: edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org SNYK_DEBUG: false [Pipeline] node Still waiting to schedule task Waiting for next available executor on ‘prd-ubuntu20.04-docker-8c-8g-4729’ Running on prd-ubuntu20.04-docker-8c-8g-4738 in /w/workspace/gexfoundry_device-rest-go_PR-274 [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-274 # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git > git --version # timeout=10 > git --version # 'git version 2.25.1' using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/274/head:refs/remotes/origin/PR-274 +refs/heads/main:refs/remotes/origin/main # timeout=10 Merging remotes/origin/main commit e28169b2e94fb685934981c338b1a6a24f9d6fce into PR head commit 765b423f03973f5c6e6b8cfc506e809621e45c33 Merge succeeded, producing 765b423f03973f5c6e6b8cfc506e809621e45c33 Checking out Revision 765b423f03973f5c6e6b8cfc506e809621e45c33 (PR-274) Commit message: "build(deps): Bump github.com/edgexfoundry/go-mod-core-contracts/v3" First time build. Skipping changelog. > git --version # timeout=10 > git --version # 'git version 2.25.1' fatal: bad object 66200e8eedfc470904d6b329e562ec5b45423d6a [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 05:27:39 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 05:27:39 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW > git config core.sparsecheckout # timeout=10 > git checkout -f 765b423f03973f5c6e6b8cfc506e809621e45c33 # timeout=10 > git remote # timeout=10 > git config --get remote.origin.url # timeout=10 using GIT_SSH to set credentials SSH Credentials for GitHub > git merge e28169b2e94fb685934981c338b1a6a24f9d6fce # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 765b423f03973f5c6e6b8cfc506e809621e45c33 # timeout=10 [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 05:27:40 ========================================================= 05:27:40 EdgeX Global Pipelines Version Info 05:27:40 ========================================================= [Pipeline] libraryResource [Pipeline] sh 05:27:40 ------------------- 05:27:40 stable info: 05:27:40 ------------------- 05:27:40 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 05:27:40 Commit SHA: 66200e8eedfc470904d6b329e562ec5b45423d6a 05:27:40 Message: update stable to v1.0.245 05:27:41 ------------------- 05:27:41 experimental info: 05:27:41 ------------------- 05:27:41 Commited By: **** collab-it+edgex@linuxfoundation.org 05:27:41 Commit SHA: eb5041bb0874f6b7cdca3e6793e1ef87c0289dce 05:27:41 Message: update experimental to v1.0.246 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 05:27:41 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 05:27:41 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 05:27:41 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 05:27:41 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 05:27:41 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 05:27:41 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.20 [Pipeline] echo 05:27:41 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 05:27:41 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 05:27:41 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 05:27:41 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 05:27:42 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 05:27:42 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 05:27:42 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 05:27:42 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 05:27:42 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 05:27:42 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 05:27:42 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 05:27:42 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 05:27:42 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 05:27:42 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 05:27:42 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 05:27:42 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 05:27:42 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 05:27:42 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 05:27:42 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 05:27:42 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 05:27:42 [edgeXSetupEnvironment]: set envvar SNYK_DEBUG = false [Pipeline] echo 05:27:42 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-274 [Pipeline] echo 05:27:42 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-274 [Pipeline] echo 05:27:42 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-274 [Pipeline] echo 05:27:42 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 765b423f03973f5c6e6b8cfc506e809621e45c33 [Pipeline] echo 05:27:42 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 765b423 [Pipeline] echo 05:27:42 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 05:27:43 provisioning config files... 05:27:43 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-274@tmp/config5851704305586402490tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 05:27:43 ---> docker-login.sh 05:27:43 nexus3.edgexfoundry.org:10001 05:27:43 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:27:43 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:27:43 Configure a credential helper to remove this warning. See 05:27:43 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:27:43 05:27:43 Login Succeeded 05:27:43 nexus3.edgexfoundry.org:10002 05:27:43 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:27:43 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:27:43 Configure a credential helper to remove this warning. See 05:27:43 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:27:43 05:27:43 Login Succeeded 05:27:43 nexus3.edgexfoundry.org:10003 05:27:43 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:27:43 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:27:43 Configure a credential helper to remove this warning. See 05:27:43 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:27:43 05:27:43 Login Succeeded 05:27:43 nexus3.edgexfoundry.org:10004 05:27:43 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:27:43 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:27:43 Configure a credential helper to remove this warning. See 05:27:43 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:27:43 05:27:43 Login Succeeded 05:27:43 docker.io 05:27:44 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:27:44 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:27:44 Configure a credential helper to remove this warning. See 05:27:44 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:27:44 05:27:44 Login Succeeded 05:27:44 ---> docker-login.sh ends [Pipeline] } 05:27:44 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 05:27:44 + git rev-list -1 --merges 765b423f03973f5c6e6b8cfc506e809621e45c33~1..765b423f03973f5c6e6b8cfc506e809621e45c33 [Pipeline] echo 05:27:44 -----------> git rev-list -1 --merges 765b423f03973f5c6e6b8cfc506e809621e45c33~1..765b423f03973f5c6e6b8cfc506e809621e45c33 765b423f03973f5c6e6b8cfc506e809621e45c33 [false] [Pipeline] sh 05:27:45 + git log --format=format:%s -1 765b423f03973f5c6e6b8cfc506e809621e45c33 [Pipeline] echo 05:27:45 ========================================================= 05:27:45 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 05:27:45 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 05:27:45 + git log --format=format:%s -1 765b423f03973f5c6e6b8cfc506e809621e45c33 [Pipeline] echo 05:27:45 [semverPrep] GIT_COMMIT: 765b423f03973f5c6e6b8cfc506e809621e45c33, Commit Message: build(deps): Bump github.com/edgexfoundry/go-mod-core-contracts/v3 [Pipeline] echo 05:27:45 [semverPrep] This is not a build commit. [Pipeline] sh 05:27:46 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 05:27:46 + grep -v github /etc/ssh/ssh_known_hosts 05:27:46 + [ -e /tmp/ssh_known_hosts ] 05:27:46 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 05:27:46 + echo+ github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 05:27:46 sudo tee -a /etc/ssh/ssh_known_hosts 05:27:46 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:27:46 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 05:27:46 05:27:46 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:27:46 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 05:27:46 0.1.4: Pulling from edgex-devops/py-git-semver 05:27:46 b85a868b505f: Pulling fs layer 05:27:46 e2be974225ed: Pulling fs layer 05:27:46 339a4e72a1f5: Pulling fs layer 05:27:46 988bab9f4d93: Pulling fs layer 05:27:46 1469e6f7b9e6: Pulling fs layer 05:27:46 eaf3925da568: Pulling fs layer 05:27:46 bab4dde63d76: Pulling fs layer 05:27:46 bde34c3a00c8: Pulling fs layer 05:27:46 b352a97aabf1: Pulling fs layer 05:27:46 4872d77fe225: Pulling fs layer 05:27:46 5851b861e8e6: Pulling fs layer 05:27:46 bab4dde63d76: Waiting 05:27:46 4872d77fe225: Waiting 05:27:46 bde34c3a00c8: Waiting 05:27:46 5851b861e8e6: Waiting 05:27:46 988bab9f4d93: Waiting 05:27:46 eaf3925da568: Waiting 05:27:46 1469e6f7b9e6: Waiting 05:27:46 b352a97aabf1: Waiting 05:27:46 e2be974225ed: Verifying Checksum 05:27:46 e2be974225ed: Download complete 05:27:46 988bab9f4d93: Verifying Checksum 05:27:46 988bab9f4d93: Download complete 05:27:47 1469e6f7b9e6: Verifying Checksum 05:27:47 1469e6f7b9e6: Download complete 05:27:47 eaf3925da568: Verifying Checksum 05:27:47 eaf3925da568: Download complete 05:27:47 339a4e72a1f5: Verifying Checksum 05:27:47 339a4e72a1f5: Download complete 05:27:47 bde34c3a00c8: Verifying Checksum 05:27:47 bde34c3a00c8: Download complete 05:27:47 b352a97aabf1: Verifying Checksum 05:27:47 b352a97aabf1: Download complete 05:27:47 4872d77fe225: Verifying Checksum 05:27:47 4872d77fe225: Download complete 05:27:47 5851b861e8e6: Verifying Checksum 05:27:47 5851b861e8e6: Download complete 05:27:47 b85a868b505f: Verifying Checksum 05:27:47 b85a868b505f: Download complete 05:27:47 bab4dde63d76: Verifying Checksum 05:27:47 bab4dde63d76: Download complete 05:27:48 b85a868b505f: Pull complete 05:27:48 e2be974225ed: Pull complete 05:27:48 339a4e72a1f5: Pull complete 05:27:48 988bab9f4d93: Pull complete 05:27:49 1469e6f7b9e6: Pull complete 05:27:49 eaf3925da568: Pull complete 05:27:51 bab4dde63d76: Pull complete 05:27:51 bde34c3a00c8: Pull complete 05:27:51 b352a97aabf1: Pull complete 05:27:51 4872d77fe225: Pull complete 05:27:51 5851b861e8e6: Pull complete 05:27:51 Digest: sha256:59a28aa3b44c0bc56b9c3d2e9ecabe42e63693d939cc6e425eb8786f29f663d8 05:27:51 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 05:27:51 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 05:27:51 prd-ubuntu20.04-docker-8c-8g-4738 does not seem to be running inside a container 05:27:51 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/gexfoundry_device-rest-go_PR-274 -v /w/workspace/gexfoundry_device-rest-go_PR-274:/w/workspace/gexfoundry_device-rest-go_PR-274:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-274@tmp:/w/workspace/gexfoundry_device-rest-go_PR-274@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 ******** nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 cat 05:27:54 $ docker top dbcc8fae7ae029523341202787edbf832f7d1a0d9b8fa6d69f23e7f36e5cf2dc -eo pid,comm 05:27:54 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). 05:27:54 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 05:27:54 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 05:27:54 [ssh-agent] Looking for ssh-agent implementation... 05:27:54 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 05:27:54 $ docker exec dbcc8fae7ae029523341202787edbf832f7d1a0d9b8fa6d69f23e7f36e5cf2dc ssh-agent 05:27:54 SSH_AUTH_SOCK=/tmp/ssh-gD5BW48F5EQx/agent.33 05:27:54 SSH_AGENT_PID=39 05:27:54 Running ssh-add (command line suppressed) 05:27:54 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-274@tmp/private_key_13904622762856677137.key (/w/workspace/gexfoundry_device-rest-go_PR-274@tmp/private_key_13904622762856677137.key) 05:27:54 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 05:27:54 + git tag --points-at HEAD [Pipeline] } 05:27:54 $ docker exec --env ******** --env ******** dbcc8fae7ae029523341202787edbf832f7d1a0d9b8fa6d69f23e7f36e5cf2dc ssh-agent -k 05:27:55 unset SSH_AUTH_SOCK; 05:27:55 unset SSH_AGENT_PID; 05:27:55 echo Agent pid 39 killed; 05:27:55 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 05:27:55 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 05:27:55 [ssh-agent] Looking for ssh-agent implementation... 05:27:55 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 05:27:55 $ docker exec dbcc8fae7ae029523341202787edbf832f7d1a0d9b8fa6d69f23e7f36e5cf2dc ssh-agent 05:27:55 SSH_AUTH_SOCK=/tmp/ssh-QBDbe2RnNl4i/agent.71 05:27:55 SSH_AGENT_PID=77 05:27:55 Running ssh-add (command line suppressed) 05:27:55 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-274@tmp/private_key_11382770164563397510.key (/w/workspace/gexfoundry_device-rest-go_PR-274@tmp/private_key_11382770164563397510.key) 05:27:55 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 05:27:55 + git semver init 05:27:56 2023-03-21 05:27:56,059 [run_init] DEBUG init version:0.0.0 force:False 05:27:56 2023-03-21 05:27:56,060 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/gexfoundry_device-rest-go_PR-274/.semver 05:27:56 2023-03-21 05:27:56,061 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-rest-go.git /w/workspace/gexfoundry_device-rest-go_PR-274/.semver 05:27:56 2023-03-21 05:27:56,061 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-rest-go.git', '/w/workspace/gexfoundry_device-rest-go_PR-274/.semver'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-274, universal_newlines=False, shell=None, istream=None) 05:27:57 2023-03-21 05:27:57,078 [append_file] DEBUG append to file:/w/workspace/gexfoundry_device-rest-go_PR-274/.git/info/exclude 05:27:57 2023-03-21 05:27:57,079 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/gexfoundry_device-rest-go_PR-274/.semver/PR-274 with force:False 05:27:57 2023-03-21 05:27:57,079 [write_file] DEBUG write to file:/w/workspace/gexfoundry_device-rest-go_PR-274/.semver/PR-274 05:27:57 2023-03-21 05:27:57,083 [execute] INFO git cat-file --batch-check 05:27:57 2023-03-21 05:27:57,084 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-274/.semver, universal_newlines=False, shell=None, istream=) 05:27:57 2023-03-21 05:27:57,091 [execute] INFO git cat-file --batch 05:27:57 2023-03-21 05:27:57,091 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-274/.semver, universal_newlines=False, shell=None, istream=) 05:27:57 2023-03-21 05:27:57,096 [read_version] DEBUG read version from /w/workspace/gexfoundry_device-rest-go_PR-274/.semver/PR-274 05:27:57 0.0.0 [Pipeline] } 05:27:57 $ docker exec --env ******** --env ******** dbcc8fae7ae029523341202787edbf832f7d1a0d9b8fa6d69f23e7f36e5cf2dc ssh-agent -k 05:27:57 unset SSH_AUTH_SOCK; 05:27:57 unset SSH_AGENT_PID; 05:27:57 echo Agent pid 77 killed; 05:27:57 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 05:27:58 + git semver [Pipeline] } 05:27:58 $ docker stop --time=1 dbcc8fae7ae029523341202787edbf832f7d1a0d9b8fa6d69f23e7f36e5cf2dc 05:27:59 $ docker rm -f --volumes dbcc8fae7ae029523341202787edbf832f7d1a0d9b8fa6d69f23e7f36e5cf2dc [Pipeline] // withDockerContainer [Pipeline] sh 05:28:00 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 05:28:00 Stashed 1 file(s) [Pipeline] echo 05:28:00 [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 05:28:00 provisioning config files... 05:28:00 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-274@tmp/config4565519211144445436tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 05:28:01 ---> docker-login.sh 05:28:01 nexus3.edgexfoundry.org:10001 05:28:01 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:28:01 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:28:01 Configure a credential helper to remove this warning. See 05:28:01 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:28:01 05:28:01 Login Succeeded 05:28:01 nexus3.edgexfoundry.org:10002 05:28:01 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:28:01 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:28:01 Configure a credential helper to remove this warning. See 05:28:01 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:28:01 05:28:01 Login Succeeded 05:28:01 nexus3.edgexfoundry.org:10003 05:28:01 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:28:01 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:28:01 Configure a credential helper to remove this warning. See 05:28:01 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:28:01 05:28:01 Login Succeeded 05:28:01 nexus3.edgexfoundry.org:10004 05:28:01 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:28:01 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:28:01 Configure a credential helper to remove this warning. See 05:28:01 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:28:01 05:28:01 Login Succeeded 05:28:01 docker.io 05:28:01 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:28:01 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:28:01 Configure a credential helper to remove this warning. See 05:28:01 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:28:01 05:28:01 Login Succeeded 05:28:01 ---> docker-login.sh ends [Pipeline] } 05:28:01 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 05:28:02 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 05:28:02 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 05:28:02 ========================================================= 05:28:02 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine] 05:28:02 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:28:02 + docker build -t ci-base-image-x86_64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine --build-arg MAKE=echo noop --target=builder . 05:28:02 Sending build context to Docker daemon 10.86MB 05:28:02 Step 1/12 : ARG BASE=golang:1.20-alpine3.17 05:28:02 Step 2/12 : FROM ${BASE} AS builder 05:28:02 1.20-alpine: Pulling from edgex-devops/edgex-golang-base 05:28:02 63b65145d645: Pulling fs layer 05:28:02 a2d21d5440eb: Pulling fs layer 05:28:02 935e6c44a52c: Pulling fs layer 05:28:02 94cc34f8dd06: Pulling fs layer 05:28:02 30dea6a524f1: Pulling fs layer 05:28:02 a2aff8979fd8: Pulling fs layer 05:28:02 6808be2612f2: Pulling fs layer 05:28:02 f25807f1079a: Pulling fs layer 05:28:02 a2aff8979fd8: Waiting 05:28:02 30dea6a524f1: Waiting 05:28:02 94cc34f8dd06: Waiting 05:28:02 6808be2612f2: Waiting 05:28:02 f25807f1079a: Waiting 05:28:02 a2d21d5440eb: Download complete 05:28:02 94cc34f8dd06: Download complete 05:28:02 30dea6a524f1: Verifying Checksum 05:28:02 30dea6a524f1: Download complete 05:28:02 63b65145d645: Download complete 05:28:02 a2aff8979fd8: Verifying Checksum 05:28:02 a2aff8979fd8: Download complete 05:28:03 63b65145d645: Pull complete 05:28:03 a2d21d5440eb: Pull complete 05:28:03 f25807f1079a: Verifying Checksum 05:28:03 f25807f1079a: Download complete 05:28:03 935e6c44a52c: Verifying Checksum 05:28:03 935e6c44a52c: Download complete 05:28:03 6808be2612f2: Download complete 05:28:06 935e6c44a52c: Pull complete 05:28:06 94cc34f8dd06: Pull complete 05:28:06 30dea6a524f1: Pull complete 05:28:07 a2aff8979fd8: Pull complete 05:28:09 6808be2612f2: Pull complete 05:28:09 f25807f1079a: Pull complete 05:28:09 Digest: sha256:106942793af8b5907f587008084bb0888cadbc76d86ebd37d4d3227fb0f1e438 05:28:09 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine 05:28:09 ---> 3b553350e43f 05:28:09 Step 3/12 : ARG ADD_BUILD_TAGS="" 05:28:15 ---> Running in 1f4f0e51b15f 05:28:15 Removing intermediate container 1f4f0e51b15f 05:28:15 ---> dceb12946ae6 05:28:15 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 05:28:15 ---> Running in ae2e63f94799 05:28:15 Removing intermediate container ae2e63f94799 05:28:15 ---> 57104755385d 05:28:15 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 05:28:15 ---> Running in 560115dbbe11 05:28:15 Removing intermediate container 560115dbbe11 05:28:15 ---> a5e24aad2bc7 05:28:15 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 05:28:15 ---> Running in fe00a5a146b6 05:28:15 Removing intermediate container fe00a5a146b6 05:28:15 ---> b3e001f22cf8 05:28:15 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 05:28:15 ---> Running in 93d87a7075f1 05:28:15 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 05:28:15 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 05:28:15 (1/4) Installing openssh-keygen (9.1_p1-r2) 05:28:15 (2/4) Installing libedit (20221030.3.1-r0) 05:28:15 (3/4) Installing openssh-client-common (9.1_p1-r2) 05:28:15 (4/4) Installing openssh-client-default (9.1_p1-r2) 05:28:15 Executing busybox-1.35.0-r29.trigger 05:28:15 OK: 269 MiB in 57 packages 05:28:15 Still waiting to schedule task 05:28:15 Waiting for next available executor on ‘prd-ubuntu20.04-docker-arm64-4c-16g-4735’ 05:28:16 Removing intermediate container 93d87a7075f1 05:28:16 ---> ff42e696ad55 05:28:16 Step 8/12 : WORKDIR /device-rest-go 05:28:16 ---> Running in 0dd50a55e831 05:28:16 Removing intermediate container 0dd50a55e831 05:28:16 ---> 7c21e81a5646 05:28:16 Step 9/12 : COPY go.mod vendor* ./ 05:28:16 ---> 8c6502dd73b9 05:28:16 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 05:28:16 ---> Running in f22fb290672b 05:28:42 Removing intermediate container f22fb290672b 05:28:42 ---> 9d30b8a47a9c 05:28:42 Step 11/12 : COPY . . 05:28:43 ---> 9f4948552854 05:28:43 Step 12/12 : RUN $MAKE 05:28:43 ---> Running in 0efa9c20453c 05:28:43 noop 05:28:43 Removing intermediate container 0efa9c20453c 05:28:43 ---> aaa9d4e866e9 05:28:43 Successfully built aaa9d4e866e9 05:28:43 Successfully tagged ci-base-image-x86_64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:28:44 + docker inspect -f . ci-base-image-x86_64 05:28:44 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 05:28:44 prd-ubuntu20.04-docker-8c-8g-4738 does not seem to be running inside a container 05:28:44 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-274 -v /w/workspace/gexfoundry_device-rest-go_PR-274:/w/workspace/gexfoundry_device-rest-go_PR-274:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-274@tmp:/w/workspace/gexfoundry_device-rest-go_PR-274@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 05:28:44 $ docker top 719564bcdbc79e00ea4fd302048ce20d3e66a83c77f77a00bbd7d99c51ffbe0c -eo pid,comm [Pipeline] { [Pipeline] sh 05:28:45 + go version 05:28:45 go version go1.20.2 linux/amd64 [Pipeline] } 05:28:45 $ docker stop --time=1 719564bcdbc79e00ea4fd302048ce20d3e66a83c77f77a00bbd7d99c51ffbe0c 05:28:46 $ docker rm -f --volumes 719564bcdbc79e00ea4fd302048ce20d3e66a83c77f77a00bbd7d99c51ffbe0c [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:28:47 + docker inspect -f . ci-base-image-x86_64 05:28:47 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 05:28:47 prd-ubuntu20.04-docker-8c-8g-4738 does not seem to be running inside a container 05:28:47 $ 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-274 -v /w/workspace/gexfoundry_device-rest-go_PR-274:/w/workspace/gexfoundry_device-rest-go_PR-274:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-274@tmp:/w/workspace/gexfoundry_device-rest-go_PR-274@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 05:28:47 $ docker top 887aac74d861a96b2a909ecfdd7d9381539bbc5309f4d5dd118fb161f28ab0a7 -eo pid,comm [Pipeline] { [Pipeline] sh 05:28:47 + git config --global --add safe.directory /w/workspace/gexfoundry_device-rest-go_PR-274 [Pipeline] fileExists [Pipeline] sh 05:28:48 + make test 05:28:48 go test ./... -coverprofile=coverage.out ./... 05:28:53 ? github.com/edgexfoundry/device-rest-go [no test files] 05:29:05 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 05:29:05 ok github.com/edgexfoundry/device-rest-go/driver 0.012s coverage: 33.0% of statements 05:29:11 go vet ./... 05:29:15 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 05:29:15 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 05:29:15 ./bin/test-attribution-txt.sh [Pipeline] echo 05:29:15 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 05:29:15 $ docker stop --time=1 887aac74d861a96b2a909ecfdd7d9381539bbc5309f4d5dd118fb161f28ab0a7 05:29:19 $ docker rm -f --volumes 887aac74d861a96b2a909ecfdd7d9381539bbc5309f4d5dd118fb161f28ab0a7 [Pipeline] // withDockerContainer [Pipeline] sh 05:29:19 + sudo chown -R jenkins:jenkins . [Pipeline] stash 05:29:19 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 05:29:20 + sudo chown -R jenkins:jenkins . [Pipeline] sh 05:29:20 + ls -al . 05:29:20 total 184 05:29:20 drwxrwxr-x 9 jenkins jenkins 4096 Mar 21 05:28 . 05:29:20 drwxrwxr-x 4 jenkins jenkins 4096 Mar 21 05:27 .. 05:29:20 -rw-rw-r-- 1 jenkins jenkins 151 Mar 21 05:27 .dockerignore 05:29:20 drwxrwxr-x 8 jenkins jenkins 4096 Mar 21 05:27 .git 05:29:20 drwxrwxr-x 3 jenkins jenkins 4096 Mar 21 05:27 .github 05:29:20 -rw-rw-r-- 1 jenkins jenkins 329 Mar 21 05:27 .gitignore 05:29:20 -rw-rw-r-- 1 jenkins jenkins 41 Mar 21 05:27 .golangci.yml 05:29:20 drwxr-xr-x 3 jenkins jenkins 4096 Mar 21 05:27 .semver 05:29:20 -rw-rw-r-- 1 jenkins jenkins 9321 Mar 21 05:27 Attribution.txt 05:29:20 -rw-rw-r-- 1 jenkins jenkins 13085 Mar 21 05:27 CHANGELOG.md 05:29:20 -rw-rw-r-- 1 jenkins jenkins 1578 Mar 21 05:27 Dockerfile 05:29:20 -rw-rw-r-- 1 jenkins jenkins 677 Mar 21 05:27 GOVERNANCE.md 05:29:20 -rw-rw-r-- 1 jenkins jenkins 680 Mar 21 05:27 Jenkinsfile 05:29:20 -rw-rw-r-- 1 jenkins jenkins 11340 Mar 21 05:27 LICENSE 05:29:20 -rw-rw-r-- 1 jenkins jenkins 1779 Mar 21 05:27 Makefile 05:29:20 -rw-rw-r-- 1 jenkins jenkins 620 Mar 21 05:27 OWNERS.md 05:29:20 -rw-rw-r-- 1 jenkins jenkins 15447 Mar 21 05:27 README.md 05:29:20 -rw-rw-r-- 1 jenkins jenkins 5 Mar 21 05:28 VERSION 05:29:20 drwxrwxr-x 2 jenkins jenkins 4096 Mar 21 05:27 bin 05:29:20 drwxrwxr-x 3 jenkins jenkins 4096 Mar 21 05:27 cmd 05:29:20 -rw-r--r-- 1 jenkins jenkins 14200 Mar 21 05:29 coverage.out 05:29:20 drwxrwxr-x 2 jenkins jenkins 4096 Mar 21 05:27 driver 05:29:20 -rw-rw-r-- 1 jenkins jenkins 3446 Mar 21 05:27 go.mod 05:29:20 -rw-rw-r-- 1 jenkins jenkins 31324 Mar 21 05:27 go.sum 05:29:20 drwxrwxr-x 4 jenkins jenkins 4096 Mar 21 05:27 snap 05:29:20 -rw-rw-r-- 1 jenkins jenkins 713 Mar 21 05:27 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:29:21 + docker build -t device-rest -f Dockerfile --build-arg BASE=ci-base-image-x86_64 --build-arg MAKE=make build --build-arg ARCH=amd64 --label git_sha=765b423f03973f5c6e6b8cfc506e809621e45c33 --label arch=amd64 --label version=0.0.0 . 05:29:21 Sending build context to Docker daemon 10.88MB 05:29:21 Step 1/25 : ARG BASE=golang:1.20-alpine3.17 05:29:21 Step 2/25 : FROM ${BASE} AS builder 05:29:21 ---> aaa9d4e866e9 05:29:21 Step 3/25 : ARG ADD_BUILD_TAGS="" 05:29:21 ---> Running in adef3281dfe9 05:29:21 Removing intermediate container adef3281dfe9 05:29:21 ---> 34f0a96d26d2 05:29:21 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 05:29:21 ---> Running in 05883a873607 05:29:21 Removing intermediate container 05883a873607 05:29:21 ---> 5f2b7c59d291 05:29:21 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 05:29:21 ---> Running in 75a643cfe7d7 05:29:21 Removing intermediate container 75a643cfe7d7 05:29:21 ---> 37ffc67d095a 05:29:21 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 05:29:21 ---> Running in 5c51d5a9e909 05:29:21 Removing intermediate container 5c51d5a9e909 05:29:21 ---> 5efd42f2516f 05:29:21 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 05:29:21 ---> Running in 3d604458a7bd 05:29:22 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 05:29:22 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 05:29:22 OK: 269 MiB in 57 packages 05:29:22 Removing intermediate container 3d604458a7bd 05:29:22 ---> baa664906023 05:29:22 Step 8/25 : WORKDIR /device-rest-go 05:29:22 ---> Running in 893953d7283b 05:29:22 Removing intermediate container 893953d7283b 05:29:22 ---> 860cad2f6be3 05:29:22 Step 9/25 : COPY go.mod vendor* ./ 05:29:23 ---> 57c43c9c22b5 05:29:23 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 05:29:23 ---> Running in 1d19ca8db578 05:29:24 Removing intermediate container 1d19ca8db578 05:29:24 ---> 38c847c5ab15 05:29:24 Step 11/25 : COPY . . 05:29:24 ---> 9be283d37a63 05:29:24 Step 12/25 : RUN $MAKE 05:29:24 ---> Running in d949d23a61e9 05:29:24 CGO_ENABLED=0 go build -tags "" -ldflags "-X github.com/edgexfoundry/device-rest-go.Version=0.0.0" -trimpath -mod=readonly -o cmd/device-rest ./cmd 05:29:46 Removing intermediate container d949d23a61e9 05:29:46 ---> 8ecf2137d94f 05:29:46 Step 13/25 : FROM alpine:3.17 05:29:46 3.17: Pulling from library/alpine 05:29:46 63b65145d645: Already exists 05:29:46 Digest: sha256:ff6bdca1701f3a8a67e328815ff2346b0e4067d32ec36b7992c1fdc001dc8517 05:29:46 Status: Downloaded newer image for alpine:3.17 05:29:46 ---> b2aa39c304c2 05:29:46 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 05:29:46 ---> Running in 20c1289d0e59 05:29:46 Removing intermediate container 20c1289d0e59 05:29:46 ---> ce1f00c78c81 05:29:46 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 05:29:46 ---> Running in 1664ef3eca73 05:29:46 Removing intermediate container 1664ef3eca73 05:29:46 ---> ceef237065c7 05:29:46 Step 16/25 : RUN apk add --update --no-cache dumb-init 05:29:46 ---> Running in 0cfba3cb7391 05:29:46 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 05:29:46 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 05:29:46 (1/1) Installing dumb-init (1.2.5-r2) 05:29:46 Executing busybox-1.35.0-r29.trigger 05:29:46 OK: 7 MiB in 16 packages 05:29:46 Removing intermediate container 0cfba3cb7391 05:29:46 ---> 95667804b4c9 05:29:46 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 05:29:46 ---> 6128325da1f4 05:29:46 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 05:29:46 ---> 5431f660e7e8 05:29:46 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 05:29:46 ---> 1ba239bfd807 05:29:46 Step 20/25 : EXPOSE 59986 05:29:46 ---> Running in ef3a31429c9c 05:29:46 Removing intermediate container ef3a31429c9c 05:29:46 ---> 28e983f90e12 05:29:46 Step 21/25 : ENTRYPOINT ["/device-rest"] 05:29:46 ---> Running in 727edd37c560 05:29:46 Removing intermediate container 727edd37c560 05:29:46 ---> 2bc7168d6645 05:29:46 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 05:29:46 ---> Running in 1cbb4fe0e0ca 05:29:46 Removing intermediate container 1cbb4fe0e0ca 05:29:46 ---> b6cd7e39b2f5 05:29:46 Step 23/25 : LABEL arch=amd64 05:29:46 ---> Running in 80c010c1f807 05:29:47 Removing intermediate container 80c010c1f807 05:29:47 ---> 2c87ba60ac53 05:29:47 Step 24/25 : LABEL git_sha=765b423f03973f5c6e6b8cfc506e809621e45c33 05:29:47 ---> Running in 82de4c40f131 05:29:47 Removing intermediate container 82de4c40f131 05:29:47 ---> 02c7f9fcc5f2 05:29:47 Step 25/25 : LABEL version=0.0.0 05:29:47 ---> Running in 1e2302383621 05:29:47 Removing intermediate container 1e2302383621 05:29:47 ---> 56124dc5702f 05:29:47 [Warning] One or more build-args [ARCH] were not consumed 05:29:47 Successfully built 56124dc5702f 05:29:47 Successfully tagged device-rest:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Docker Push) Stage "Docker Push" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Snap) Stage "Snap" skipped due to when conditional [Pipeline] } [Pipeline] // stage Post stage [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:29:48 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 05:29:48 05:29:48 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:29:48 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 05:29:48 latest: Pulling from edgex-lftools-log-publisher 05:29:48 5eb5b503b376: Pulling fs layer 05:29:48 5c69ac0246d0: Pulling fs layer 05:29:48 ec43610c2a17: Pulling fs layer 05:29:48 3a2ae6a8a46f: Pulling fs layer 05:29:48 33b1e0a273af: Pulling fs layer 05:29:48 5d3b04190fa2: Pulling fs layer 05:29:48 2f39f015ded8: Pulling fs layer 05:29:48 3a2ae6a8a46f: Waiting 05:29:48 33b1e0a273af: Waiting 05:29:48 5d3b04190fa2: Waiting 05:29:48 2f39f015ded8: Waiting 05:29:48 5c69ac0246d0: Download complete 05:29:48 3a2ae6a8a46f: Download complete 05:29:48 ec43610c2a17: Verifying Checksum 05:29:48 ec43610c2a17: Download complete 05:29:49 33b1e0a273af: Verifying Checksum 05:29:49 33b1e0a273af: Download complete 05:29:49 5d3b04190fa2: Download complete 05:29:49 5eb5b503b376: Verifying Checksum 05:29:49 5eb5b503b376: Download complete 05:29:49 2f39f015ded8: Verifying Checksum 05:29:49 2f39f015ded8: Download complete 05:29:50 5eb5b503b376: Pull complete 05:29:50 5c69ac0246d0: Pull complete 05:29:51 ec43610c2a17: Pull complete 05:29:51 3a2ae6a8a46f: Pull complete 05:29:51 33b1e0a273af: Pull complete 05:29:51 5d3b04190fa2: Pull complete 05:29:55 2f39f015ded8: Pull complete 05:29:55 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 05:29:55 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 05:29:55 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 05:29:55 prd-ubuntu20.04-docker-8c-8g-4738 does not seem to be running inside a container 05:29:55 $ 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-274 -v /w/workspace/gexfoundry_device-rest-go_PR-274:/w/workspace/gexfoundry_device-rest-go_PR-274:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-274@tmp:/w/workspace/gexfoundry_device-rest-go_PR-274@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 05:29:59 $ docker top 4ce9b44ae3012578b18240ff78339a1fb4fe0571bfc648536c0b71af9a1eae53 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 05:29:59 ---> job-cost.sh 05:29:59 lf-activate-venv: SKIPPING 05:29:59 INFO: No Stack... 05:29:59 INFO: Retrieving Pricing Info for: v3-standard-8 05:30:00 INFO: Archiving Costs [Pipeline] sh 05:30:00 + cat /w/workspace/gexfoundry_device-rest-go_PR-274/archives/cost.csv 05:30:00 + cut -d, -f6 [Pipeline] lock 05:30:00 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-274-1-stack-cost] 05:30:00 Resource [jenkins-edgexfoundry-device-rest-go-PR-274-1-stack-cost] did not exist. Created. 05:30:00 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-274-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 05:30:01 + echo total: 0.2199999988079071 [Pipeline] stash 05:30:01 Stashed 1 file(s) [Pipeline] } 05:30:01 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-274-1-stack-cost] [Pipeline] // lock [Pipeline] } 05:30:01 $ docker stop --time=1 4ce9b44ae3012578b18240ff78339a1fb4fe0571bfc648536c0b71af9a1eae53 05:30:02 $ docker rm -f --volumes 4ce9b44ae3012578b18240ff78339a1fb4fe0571bfc648536c0b71af9a1eae53 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 05:31:10 Running on prd-ubuntu20.04-docker-arm64-4c-16g-4740 in /w/workspace/gexfoundry_device-rest-go_PR-274 [Pipeline] { [Pipeline] ws 05:31:10 Running in /w/workspace/device-rest-go/1 [Pipeline] { [Pipeline] checkout 05:31:10 The recommended git tool is: git 05:31:15 using credential edgex-jenkins-ssh 05:31:15 Cloning the remote Git repository 05:31:15 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 05:31:16 > git init /w/workspace/device-rest-go/1 # timeout=10 05:31:16 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 05:31:16 > git --version # timeout=10 05:31:16 > git --version # 'git version 2.25.1' 05:31:16 using GIT_SSH to set credentials SSH Credentials for GitHub 05:31:16 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 05:31:18 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 05:31:18 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 05:31:19 Merging remotes/origin/main commit e28169b2e94fb685934981c338b1a6a24f9d6fce into PR head commit 765b423f03973f5c6e6b8cfc506e809621e45c33 05:31:20 Merge succeeded, producing 765b423f03973f5c6e6b8cfc506e809621e45c33 05:31:20 Checking out Revision 765b423f03973f5c6e6b8cfc506e809621e45c33 (PR-274) 05:31:19 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 05:31:19 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 05:31:19 using GIT_SSH to set credentials SSH Credentials for GitHub 05:31:19 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/274/head:refs/remotes/origin/PR-274 +refs/heads/main:refs/remotes/origin/main # timeout=10 05:31:19 > git config core.sparsecheckout # timeout=10 05:31:20 > git checkout -f 765b423f03973f5c6e6b8cfc506e809621e45c33 # timeout=10 05:31:20 > git remote # timeout=10 05:31:20 > git config --get remote.origin.url # timeout=10 05:31:20 using GIT_SSH to set credentials SSH Credentials for GitHub 05:31:20 > git merge e28169b2e94fb685934981c338b1a6a24f9d6fce # timeout=10 05:31:20 > git rev-parse HEAD^{commit} # timeout=10 05:31:20 > git config core.sparsecheckout # timeout=10 05:31:20 > git checkout -f 765b423f03973f5c6e6b8cfc506e809621e45c33 # timeout=10 05:31:20 Commit message: "build(deps): Bump github.com/edgexfoundry/go-mod-core-contracts/v3" 05:31:20 > git --version # timeout=10 05:31:20 > git --version # 'git version 2.25.1' 05:31:20 fatal: bad object 66200e8eedfc470904d6b329e562ec5b45423d6a [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 05:31:22 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 05:31:22 % Total % Received % Xferd Average Speed Time Time Time Current 05:31:22 Dload Upload Total Spent Left Speed 05:31:22 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 12751 100 12751 0 0 197k 0 --:--:-- --:--:-- --:--:-- 197k [Pipeline] sh 05:31:22 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 05:31:23 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 05:31:23 + sudo tee /etc/docker/daemon.new 05:31:23 { 05:31:23 "registry-mirrors": [ 05:31:23 "https://nexus3.edgexfoundry.org:10001" 05:31:23 ], 05:31:23 "bip": "10.250.0.254/24", 05:31:23 "hosts": [ 05:31:23 "tcp://0.0.0.0:5555", 05:31:23 "unix:///var/run/docker.sock" 05:31:23 ], 05:31:23 "mtu": 1458, 05:31:23 "selinux-enabled": true, 05:31:23 "seccomp-profile": "/etc/docker/seccomp.json" 05:31:23 } [Pipeline] sh 05:31:23 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 05:31:23 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 05:31:42 provisioning config files... 05:31:42 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/1@tmp/config9145734210714089016tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 05:31:42 ---> docker-login.sh 05:31:42 nexus3.edgexfoundry.org:10001 05:31:42 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:31:43 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:31:43 Configure a credential helper to remove this warning. See 05:31:43 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:31:43 05:31:43 Login Succeeded 05:31:43 nexus3.edgexfoundry.org:10002 05:31:43 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:31:43 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:31:43 Configure a credential helper to remove this warning. See 05:31:43 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:31:43 05:31:43 Login Succeeded 05:31:43 nexus3.edgexfoundry.org:10003 05:31:43 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:31:43 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:31:43 Configure a credential helper to remove this warning. See 05:31:43 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:31:43 05:31:43 Login Succeeded 05:31:43 nexus3.edgexfoundry.org:10004 05:31:44 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:31:44 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:31:44 Configure a credential helper to remove this warning. See 05:31:44 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:31:44 05:31:44 Login Succeeded 05:31:44 docker.io 05:31:44 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:31:44 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:31:44 Configure a credential helper to remove this warning. See 05:31:44 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:31:44 05:31:44 Login Succeeded 05:31:44 ---> docker-login.sh ends [Pipeline] } 05:31:44 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 05:31:45 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 05:31:45 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 05:31:45 ========================================================= 05:31:45 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine] 05:31:45 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:31:45 + docker build -t ci-base-image-arm64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine --build-arg MAKE=echo noop --target=builder . 05:31:45 Sending build context to Docker daemon 138.8kB 05:31:46 Step 1/12 : ARG BASE=golang:1.20-alpine3.17 05:31:46 Step 2/12 : FROM ${BASE} AS builder 05:31:46 1.20-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 05:31:46 af6eaf76a39c: Pulling fs layer 05:31:46 55522c791124: Pulling fs layer 05:31:46 ce5c4a1c91eb: Pulling fs layer 05:31:46 169dfbe0d373: Pulling fs layer 05:31:46 e1ff8fa3b103: Pulling fs layer 05:31:46 52ebb69f0ebf: Pulling fs layer 05:31:46 5abe8eddf0d5: Pulling fs layer 05:31:46 169dfbe0d373: Waiting 05:31:46 e1ff8fa3b103: Waiting 05:31:46 52ebb69f0ebf: Waiting 05:31:46 5abe8eddf0d5: Waiting 05:31:46 55522c791124: Download complete 05:31:46 169dfbe0d373: Verifying Checksum 05:31:46 169dfbe0d373: Download complete 05:31:46 e1ff8fa3b103: Download complete 05:31:46 af6eaf76a39c: Verifying Checksum 05:31:46 af6eaf76a39c: Download complete 05:31:47 5abe8eddf0d5: Verifying Checksum 05:31:47 5abe8eddf0d5: Download complete 05:31:48 ce5c4a1c91eb: Verifying Checksum 05:31:48 ce5c4a1c91eb: Download complete 05:31:48 52ebb69f0ebf: Verifying Checksum 05:31:48 52ebb69f0ebf: Download complete 05:31:49 af6eaf76a39c: Pull complete 05:31:49 55522c791124: Pull complete 05:31:59 ce5c4a1c91eb: Pull complete 05:31:59 169dfbe0d373: Pull complete 05:31:59 e1ff8fa3b103: Pull complete 05:32:06 52ebb69f0ebf: Pull complete 05:32:09 5abe8eddf0d5: Pull complete 05:32:09 Digest: sha256:978cc1420e451f27bd88fdeece3ad01a9109ec773b62f165dfc696fd516b3d8f 05:32:09 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine 05:32:09 ---> 6cb57ee374ae 05:32:09 Step 3/12 : ARG ADD_BUILD_TAGS="" 05:32:11 ---> Running in 7b39d9f72b3f 05:32:11 Removing intermediate container 7b39d9f72b3f 05:32:11 ---> a249e6259a1b 05:32:11 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 05:32:11 ---> Running in ea4da0930456 05:32:12 Removing intermediate container ea4da0930456 05:32:12 ---> 953f83c9f61d 05:32:12 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 05:32:12 ---> Running in 9625e56b8487 05:32:12 Removing intermediate container 9625e56b8487 05:32:12 ---> bee6cfb66a3f 05:32:12 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 05:32:12 ---> Running in 414b4bb912f4 05:32:12 Removing intermediate container 414b4bb912f4 05:32:12 ---> f87e76f07756 05:32:12 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 05:32:12 ---> Running in 4df8943ebdbc 05:32:14 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 05:32:14 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 05:32:15 (1/4) Installing openssh-keygen (9.1_p1-r2) 05:32:15 (2/4) Installing libedit (20221030.3.1-r0) 05:32:15 (3/4) Installing openssh-client-common (9.1_p1-r2) 05:32:15 (4/4) Installing openssh-client-default (9.1_p1-r2) 05:32:15 Executing busybox-1.35.0-r29.trigger 05:32:15 OK: 268 MiB in 57 packages 05:32:16 Removing intermediate container 4df8943ebdbc 05:32:16 ---> ac90005dc626 05:32:16 Step 8/12 : WORKDIR /device-rest-go 05:32:16 ---> Running in bbb91a349025 05:32:17 Removing intermediate container bbb91a349025 05:32:17 ---> dd08da7ffc23 05:32:17 Step 9/12 : COPY go.mod vendor* ./ 05:32:17 ---> de63715e1200 05:32:17 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 05:32:17 ---> Running in e1126822f35d 05:33:25 Removing intermediate container e1126822f35d 05:33:25 ---> dcce48c472f6 05:33:25 Step 11/12 : COPY . . 05:33:25 ---> c3714b9a1e08 05:33:25 Step 12/12 : RUN $MAKE 05:33:25 ---> Running in c7c9fa4c0ad4 05:33:25 noop 05:33:25 Removing intermediate container c7c9fa4c0ad4 05:33:25 ---> 7c81c97db008 05:33:25 Successfully built 7c81c97db008 05:33:25 Successfully tagged ci-base-image-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:33:26 + docker inspect -f . ci-base-image-arm64 05:33:26 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 05:33:26 prd-ubuntu20.04-docker-arm64-4c-16g-4740 does not seem to be running inside a container 05:33:26 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/1 -v /w/workspace/device-rest-go/1:/w/workspace/device-rest-go/1:rw,z -v /w/workspace/device-rest-go/1@tmp:/w/workspace/device-rest-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 05:33:27 $ docker top 2fe876fe310e23960f6c140ef6ee14b732003fe7d59e1c0e1338983d401700be -eo pid,comm [Pipeline] { [Pipeline] sh 05:33:28 + go version 05:33:28 go version go1.20.2 linux/arm64 [Pipeline] } 05:33:28 $ docker stop --time=1 2fe876fe310e23960f6c140ef6ee14b732003fe7d59e1c0e1338983d401700be 05:33:30 $ docker rm -f --volumes 2fe876fe310e23960f6c140ef6ee14b732003fe7d59e1c0e1338983d401700be [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:33:31 + docker inspect -f . ci-base-image-arm64 05:33:31 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 05:33:31 prd-ubuntu20.04-docker-arm64-4c-16g-4740 does not seem to be running inside a container 05:33:31 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged -v /var/run/docker.sock:/var/run/docker.sock -w /w/workspace/device-rest-go/1 -v /w/workspace/device-rest-go/1:/w/workspace/device-rest-go/1:rw,z -v /w/workspace/device-rest-go/1@tmp:/w/workspace/device-rest-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 05:33:32 $ docker top 60ece3dc93467c62b9a6306832947194b8537051e65f07fb1d04cf0f79ecc6e6 -eo pid,comm [Pipeline] { [Pipeline] sh 05:33:33 + git config --global --add safe.directory /w/workspace/device-rest-go/1 [Pipeline] fileExists [Pipeline] sh 05:33:33 + make test 05:33:33 go test ./... -coverprofile=coverage.out ./... 05:34:12 ? github.com/edgexfoundry/device-rest-go [no test files] 05:36:19 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 05:36:24 ok github.com/edgexfoundry/device-rest-go/driver 0.064s coverage: 33.0% of statements 05:36:25 WARNING: Linting skipped (not on x86_64 or linter not installed) 05:36:25 go vet ./... 05:37:03 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 05:37:03 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 05:37:03 ./bin/test-attribution-txt.sh [Pipeline] echo 05:37:04 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 05:37:04 $ docker stop --time=1 60ece3dc93467c62b9a6306832947194b8537051e65f07fb1d04cf0f79ecc6e6 05:37:06 $ docker rm -f --volumes 60ece3dc93467c62b9a6306832947194b8537051e65f07fb1d04cf0f79ecc6e6 [Pipeline] // withDockerContainer [Pipeline] sh 05:37:07 + sudo chown -R jenkins:jenkins . [Pipeline] stash 05:37:07 Warning: overwriting stash ‘coverage-report’ 05:37:07 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 05:37:08 + sudo chown -R jenkins:jenkins . [Pipeline] sh 05:37:08 + ls -al . 05:37:08 total 180 05:37:08 drwxrwxr-x 8 jenkins jenkins 4096 Mar 21 05:33 . 05:37:08 drwxrwxr-x 4 jenkins jenkins 4096 Mar 21 05:31 .. 05:37:08 -rw-rw-r-- 1 jenkins jenkins 151 Mar 21 05:31 .dockerignore 05:37:08 drwxrwxr-x 8 jenkins jenkins 4096 Mar 21 05:31 .git 05:37:08 drwxrwxr-x 3 jenkins jenkins 4096 Mar 21 05:31 .github 05:37:08 -rw-rw-r-- 1 jenkins jenkins 329 Mar 21 05:31 .gitignore 05:37:08 -rw-rw-r-- 1 jenkins jenkins 41 Mar 21 05:31 .golangci.yml 05:37:08 -rw-rw-r-- 1 jenkins jenkins 9321 Mar 21 05:31 Attribution.txt 05:37:08 -rw-rw-r-- 1 jenkins jenkins 13085 Mar 21 05:31 CHANGELOG.md 05:37:08 -rw-rw-r-- 1 jenkins jenkins 1578 Mar 21 05:31 Dockerfile 05:37:08 -rw-rw-r-- 1 jenkins jenkins 677 Mar 21 05:31 GOVERNANCE.md 05:37:08 -rw-rw-r-- 1 jenkins jenkins 680 Mar 21 05:31 Jenkinsfile 05:37:08 -rw-rw-r-- 1 jenkins jenkins 11340 Mar 21 05:31 LICENSE 05:37:08 -rw-rw-r-- 1 jenkins jenkins 1779 Mar 21 05:31 Makefile 05:37:08 -rw-rw-r-- 1 jenkins jenkins 620 Mar 21 05:31 OWNERS.md 05:37:08 -rw-rw-r-- 1 jenkins jenkins 15447 Mar 21 05:31 README.md 05:37:08 -rw-rw-r-- 1 jenkins jenkins 5 Mar 21 05:28 VERSION 05:37:08 drwxrwxr-x 2 jenkins jenkins 4096 Mar 21 05:31 bin 05:37:08 drwxrwxr-x 3 jenkins jenkins 4096 Mar 21 05:31 cmd 05:37:08 -rw-r--r-- 1 jenkins jenkins 14200 Mar 21 05:36 coverage.out 05:37:08 drwxrwxr-x 2 jenkins jenkins 4096 Mar 21 05:31 driver 05:37:08 -rw-rw-r-- 1 jenkins jenkins 3446 Mar 21 05:31 go.mod 05:37:08 -rw-rw-r-- 1 jenkins jenkins 31324 Mar 21 05:31 go.sum 05:37:08 drwxrwxr-x 4 jenkins jenkins 4096 Mar 21 05:31 snap 05:37:08 -rw-rw-r-- 1 jenkins jenkins 713 Mar 21 05:31 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:37:09 + docker build -t device-rest-arm64 -f Dockerfile --build-arg BASE=ci-base-image-arm64 --build-arg MAKE=make build --build-arg ARCH=arm64 --label git_sha=765b423f03973f5c6e6b8cfc506e809621e45c33 --label arch=arm64 --label version=0.0.0 . 05:37:09 Sending build context to Docker daemon 153.6kB 05:37:09 Step 1/25 : ARG BASE=golang:1.20-alpine3.17 05:37:09 Step 2/25 : FROM ${BASE} AS builder 05:37:09 ---> 7c81c97db008 05:37:09 Step 3/25 : ARG ADD_BUILD_TAGS="" 05:37:09 ---> Running in 87061f1f896c 05:37:09 Removing intermediate container 87061f1f896c 05:37:09 ---> a9860c184ada 05:37:09 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 05:37:09 ---> Running in 716ae86c1d38 05:37:10 Removing intermediate container 716ae86c1d38 05:37:10 ---> e86dd9685469 05:37:10 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 05:37:10 ---> Running in 2919324e40ae 05:37:10 Removing intermediate container 2919324e40ae 05:37:10 ---> 43a00f11fd84 05:37:10 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 05:37:10 ---> Running in 3f4aa09d5922 05:37:10 Removing intermediate container 3f4aa09d5922 05:37:10 ---> ed6785510581 05:37:10 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 05:37:11 ---> Running in 73e0c9fc2007 05:37:12 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 05:37:12 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 05:37:13 OK: 268 MiB in 57 packages 05:37:14 Removing intermediate container 73e0c9fc2007 05:37:14 ---> 0e50b025f537 05:37:14 Step 8/25 : WORKDIR /device-rest-go 05:37:14 ---> Running in 58a4c8766cc9 05:37:14 Removing intermediate container 58a4c8766cc9 05:37:14 ---> 4541b2a025ad 05:37:14 Step 9/25 : COPY go.mod vendor* ./ 05:37:15 ---> de8206103990 05:37:15 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 05:37:15 ---> Running in 3a4cb037c9f3 05:37:19 Removing intermediate container 3a4cb037c9f3 05:37:19 ---> 2f6868eed972 05:37:19 Step 11/25 : COPY . . 05:37:19 ---> 8d03548652b7 05:37:19 Step 12/25 : RUN $MAKE 05:37:19 ---> Running in 517ff10863a3 05:37:20 CGO_ENABLED=0 go build -tags "" -ldflags "-X github.com/edgexfoundry/device-rest-go.Version=0.0.0" -trimpath -mod=readonly -o cmd/device-rest ./cmd 05:39:42 Removing intermediate container 517ff10863a3 05:39:42 ---> 9137582a99f1 05:39:42 Step 13/25 : FROM alpine:3.17 05:39:42 3.17: Pulling from library/alpine 05:39:42 af6eaf76a39c: Already exists 05:39:42 Digest: sha256:ff6bdca1701f3a8a67e328815ff2346b0e4067d32ec36b7992c1fdc001dc8517 05:39:42 Status: Downloaded newer image for alpine:3.17 05:39:42 ---> d74e625d9115 05:39:42 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 05:39:42 ---> Running in b7897fd964a2 05:39:42 Removing intermediate container b7897fd964a2 05:39:42 ---> 1e28aeb662a0 05:39:42 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 05:39:42 ---> Running in 18617945a922 05:39:42 Removing intermediate container 18617945a922 05:39:42 ---> 6b7216843b15 05:39:42 Step 16/25 : RUN apk add --update --no-cache dumb-init 05:39:42 ---> Running in b539c2ad481a 05:39:42 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 05:39:42 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 05:39:42 (1/1) Installing dumb-init (1.2.5-r2) 05:39:42 Executing busybox-1.35.0-r29.trigger 05:39:42 OK: 8 MiB in 16 packages 05:39:42 Removing intermediate container b539c2ad481a 05:39:42 ---> 036b6a7a39ab 05:39:42 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 05:39:42 ---> 686016fc8735 05:39:42 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 05:39:42 ---> 82a40d41259a 05:39:42 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 05:39:42 ---> aff473e41056 05:39:42 Step 20/25 : EXPOSE 59986 05:39:42 ---> Running in ade41e676cb8 05:39:42 Removing intermediate container ade41e676cb8 05:39:42 ---> 7c19da640c29 05:39:42 Step 21/25 : ENTRYPOINT ["/device-rest"] 05:39:42 ---> Running in dba1c857b1fd 05:39:42 Removing intermediate container dba1c857b1fd 05:39:42 ---> 889d891e87c3 05:39:42 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 05:39:42 ---> Running in 785537e740f4 05:39:42 Removing intermediate container 785537e740f4 05:39:42 ---> 585a5aedf0de 05:39:42 Step 23/25 : LABEL arch=arm64 05:39:42 ---> Running in 5cd9d51b64b5 05:39:43 Removing intermediate container 5cd9d51b64b5 05:39:43 ---> c2413094fd76 05:39:43 Step 24/25 : LABEL git_sha=765b423f03973f5c6e6b8cfc506e809621e45c33 05:39:43 ---> Running in e538137c212e 05:39:43 Removing intermediate container e538137c212e 05:39:43 ---> 66fc0972cfaa 05:39:43 Step 25/25 : LABEL version=0.0.0 05:39:43 ---> Running in 42955bbd921f 05:39:43 Removing intermediate container 42955bbd921f 05:39:43 ---> 4257609000f2 05:39:43 [Warning] One or more build-args [ARCH] were not consumed 05:39:43 Successfully built 4257609000f2 05:39:43 Successfully tagged device-rest-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Docker Push) Stage "Docker Push" skipped due to when conditional [Pipeline] } [Pipeline] // stage Post stage [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:39:44 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 05:39:44 05:39:44 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:39:45 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 05:39:45 arm64: Pulling from edgex-lftools-log-publisher 05:39:45 8998bd30e6a1: Pulling fs layer 05:39:45 04944245beec: Pulling fs layer 05:39:45 699f458cf7ca: Pulling fs layer 05:39:45 765212b225bb: Pulling fs layer 05:39:45 f23df028b6ca: Pulling fs layer 05:39:45 d65c8cfc05b1: Pulling fs layer 05:39:45 2437ff75d9bd: Pulling fs layer 05:39:45 d65c8cfc05b1: Waiting 05:39:45 765212b225bb: Waiting 05:39:45 f23df028b6ca: Waiting 05:39:45 2437ff75d9bd: Waiting 05:39:45 04944245beec: Verifying Checksum 05:39:45 04944245beec: Download complete 05:39:45 765212b225bb: Verifying Checksum 05:39:45 765212b225bb: Download complete 05:39:45 f23df028b6ca: Verifying Checksum 05:39:45 f23df028b6ca: Download complete 05:39:45 d65c8cfc05b1: Download complete 05:39:45 699f458cf7ca: Verifying Checksum 05:39:45 699f458cf7ca: Download complete 05:39:46 8998bd30e6a1: Verifying Checksum 05:39:46 8998bd30e6a1: Download complete 05:39:49 2437ff75d9bd: Verifying Checksum 05:39:49 2437ff75d9bd: Download complete 05:39:50 8998bd30e6a1: Pull complete 05:39:51 04944245beec: Pull complete 05:39:52 699f458cf7ca: Pull complete 05:39:52 765212b225bb: Pull complete 05:39:53 f23df028b6ca: Pull complete 05:39:53 d65c8cfc05b1: Pull complete 05:40:08 2437ff75d9bd: Pull complete 05:40:08 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 05:40:08 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 05:40:08 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 05:40:09 prd-ubuntu20.04-docker-arm64-4c-16g-4740 does not seem to be running inside a container 05:40:09 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/device-rest-go/1 -v /w/workspace/device-rest-go/1:/w/workspace/device-rest-go/1:rw,z -v /w/workspace/device-rest-go/1@tmp:/w/workspace/device-rest-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 05:40:11 $ docker top 36b035689c42eb8d3052dce444ae518094e119eafd2852b80c41b6b50d0f4a86 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 05:40:12 ---> job-cost.sh 05:40:12 lf-activate-venv: SKIPPING 05:40:12 INFO: No Stack... 05:40:13 INFO: Retrieving Pricing Info for: v3-standard-4 05:40:14 INFO: Archiving Costs [Pipeline] sh 05:40:15 + cut+ -d,cat /w/workspace/device-rest-go/1/archives/cost.csv 05:40:15 -f6 [Pipeline] lock 05:40:15 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-274-1-stack-cost] 05:40:15 Resource [jenkins-edgexfoundry-device-rest-go-PR-274-1-stack-cost] did not exist. Created. 05:40:15 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-274-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 05:40:15 /w/workspace/device-rest-go/1@tmp/durable-7f252abe/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 05:40:16 + echo total: 0.10999999940395355 [Pipeline] stash 05:40:16 Warning: overwriting stash ‘stack-cost’ 05:40:16 Stashed 1 file(s) [Pipeline] } 05:40:16 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-274-1-stack-cost] [Pipeline] // lock [Pipeline] } 05:40:16 $ docker stop --time=1 36b035689c42eb8d3052dce444ae518094e119eafd2852b80c41b6b50d0f4a86 05:40:18 $ docker rm -f --volumes 36b035689c42eb8d3052dce444ae518094e119eafd2852b80c41b6b50d0f4a86 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // ws [Pipeline] } [Pipeline] // node [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // parallel [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (CodeCov) [Pipeline] unstash [Pipeline] configFileProvider 05:40:19 provisioning config files... 05:40:19 copy managed file [device-rest-go-codecov-token] to file:/w/workspace/gexfoundry_device-rest-go_PR-274@tmp/config3282893905033958356tmp [Pipeline] { [Pipeline] sh 05:40:19 + set +x 05:40:19 + curl -s https://codecov.io/bash 05:40:19 + bash -s -- 05:40:19 05:40:19 _____ _ 05:40:19 / ____| | | 05:40:19 | | ___ __| | ___ ___ _____ __ 05:40:19 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 05:40:19 | |___| (_) | (_| | __/ (_| (_) \ V / 05:40:19 \_____\___/ \__,_|\___|\___\___/ \_/ 05:40:19 Bash-1.0.6 05:40:19 05:40:19 05:40:19 ==> git version 2.25.1 found 05:40:19 ==> curl 7.68.0 (x86_64-pc-linux-gnu) libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3 05:40:19 Release-Date: 2020-01-08 05:40:19 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 05:40:19 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 05:40:19 ==> Jenkins CI detected. 05:40:19 current dir:  /w/workspace/gexfoundry_device-rest-go_PR-274 05:40:19 project root: . 05:40:19 --> token set from env 05:40:19 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 05:40:19 ==> Running gcov in . (disable via -X gcov) 05:40:19 ==> Python coveragepy not found 05:40:19 ==> Searching for coverage reports in: 05:40:19 + . 05:40:19 -> Found 1 reports 05:40:19 ==> Detecting git/mercurial file structure 05:40:19 ==> Reading reports 05:40:19 + ./coverage.out bytes=14200 05:40:19 ==> Appending adjustments 05:40:19 https://docs.codecov.io/docs/fixing-reports 05:40:19 + Found adjustments 05:40:19 ==> Gzipping contents 05:40:19 4.0K /tmp/codecov.V3XvBU.gz 05:40:19 ==> Uploading reports 05:40:19 url: https://codecov.io 05:40:19 query: branch=PR-274&commit=765b423f03973f5c6e6b8cfc506e809621e45c33&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-274%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=274&job=&cmd_args= 05:40:19 -> Pinging Codecov 05:40:19 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=c51feb23-73ac-4f49-b3d1-d26df23137db&branch=PR-274&commit=765b423f03973f5c6e6b8cfc506e809621e45c33&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-274%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=274&job=&cmd_args= 05:40:19 -> Uploading to 05:40:19 https://storage.googleapis.com/codecov/v4/raw/2023-03-21/4E5D53B4F1F92C436F7061BF334D961C/765b423f03973f5c6e6b8cfc506e809621e45c33/7f3bc01a-f825-4d54-adce-d66f9411f4ba.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20230321%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20230321T054019Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=601f7f91b48fce40fd41acaf01b7bdb99ebad41afbec096b93ba392145dbbd4b 05:40:19 % Total % Received % Xferd Average Speed Time Time Time Current 05:40:19 Dload Upload Total Spent Left Speed 05:40:19 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 2459 0 0 100 2459 0 9385 --:--:-- --:--:-- --:--:-- 9385 05:40:19 -> Reports have been successfully queued for processing at https://app.codecov.io/github/edgexfoundry/device-rest-go/commit/765b423f03973f5c6e6b8cfc506e809621e45c33 [Pipeline] } 05:40:19 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Snyk Dependency Scan) Stage "Snyk Dependency Scan" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Archive Prep) Stage "Archive Prep" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Publish Swagger) Stage "Publish Swagger" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Semver) Stage "Semver" skipped due to when conditional [Pipeline] stage [Pipeline] { (Tag) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Pre-Release Version) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Experimental Tag) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Stable (Named) Tag) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Declarative: Post Actions) [Pipeline] stage [Pipeline] { (LF Post Build Actions) [Pipeline] sh 05:40:21 + [ -d /w/workspace/gexfoundry_device-rest-go_PR-274/archives ] 05:40:21 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-274/archives 05:40:21 total 16 05:40:21 drwxr-xr-x 3 root root 4096 Mar 21 05:30 . 05:40:21 drwxrwxr-x 10 jenkins jenkins 4096 Mar 21 05:30 .. 05:40:21 drwxr-xr-x 2 root root 4096 Mar 21 05:30 cost 05:40:21 -rw-r--r-- 1 root root 86 Mar 21 05:30 cost.csv 05:40:21 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-rest-go_PR-274/archives 05:40:21 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-274/archives 05:40:21 total 16 05:40:21 drwxr-xr-x 3 jenkins jenkins 4096 Mar 21 05:30 . 05:40:21 drwxrwxr-x 10 jenkins jenkins 4096 Mar 21 05:30 .. 05:40:21 drwxr-xr-x 2 jenkins jenkins 4096 Mar 21 05:30 cost 05:40:21 -rw-r--r-- 1 jenkins jenkins 86 Mar 21 05:30 cost.csv [Pipeline] libraryResource [Pipeline] sh 05:40:22 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 05:40:23 ---> package-listing.sh 05:40:23 ++ facter osfamily 05:40:23 ++ tr '[:upper:]' '[:lower:]' 05:40:23 + OS_FAMILY=debian 05:40:23 + workspace=/w/workspace/gexfoundry_device-rest-go_PR-274 05:40:23 + START_PACKAGES=/tmp/packages_start.txt 05:40:23 + END_PACKAGES=/tmp/packages_end.txt 05:40:23 + DIFF_PACKAGES=/tmp/packages_diff.txt 05:40:23 + PACKAGES=/tmp/packages_start.txt 05:40:23 + '[' /w/workspace/gexfoundry_device-rest-go_PR-274 ']' 05:40:23 + PACKAGES=/tmp/packages_end.txt 05:40:23 + case "${OS_FAMILY}" in 05:40:23 + dpkg -l 05:40:23 + grep '^ii' 05:40:23 + '[' -f /tmp/packages_start.txt ']' 05:40:23 + '[' -f /tmp/packages_end.txt ']' 05:40:23 + diff /tmp/packages_start.txt /tmp/packages_end.txt 05:40:23 + '[' /w/workspace/gexfoundry_device-rest-go_PR-274 ']' 05:40:23 + mkdir -p /w/workspace/gexfoundry_device-rest-go_PR-274/archives/ 05:40:23 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/gexfoundry_device-rest-go_PR-274/archives/ [Pipeline] echo 05:40:23 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-274/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 05:40:23 + facter operatingsystem [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:40:24 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 05:40:24 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 05:40:24 prd-ubuntu20.04-docker-8c-8g-4738 does not seem to be running inside a container 05:40:24 $ 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-274/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-274 -v /w/workspace/gexfoundry_device-rest-go_PR-274:/w/workspace/gexfoundry_device-rest-go_PR-274:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-274@tmp:/w/workspace/gexfoundry_device-rest-go_PR-274@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 05:40:24 $ docker top f6c2583b3a4d586f3b8a3a84979cd1bbbe40fcd50e526626aea0c94bb6550bd2 -eo pid,comm [Pipeline] { [Pipeline] sh 05:40:24 + touch /tmp/pre-build-complete [Pipeline] sh 05:40:25 + mkdir -p /var/log/sysstat [Pipeline] sh 05:40:25 + ls /var/log/sa-host 05:40:25 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 05:40:25 provisioning config files... 05:40:25 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-274@tmp/config6471541712750472089tmp [Pipeline] { [Pipeline] echo 05:40:25 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 05:40:26 ---> create-netrc.sh [Pipeline] } 05:40:26 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 05:40:26 ---> python-tools-install.sh [Pipeline] echo 05:40:26 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 05:40:26 ---> sudo-logs.sh 05:40:26 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 05:40:26 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 05:40:27 ---> job-cost.sh 05:40:27 lf-activate-venv: SKIPPING 05:40:27 DEBUG: total: 0.2199999988079071 05:40:27 INFO: Retrieving Stack Cost... 05:40:27 INFO: Retrieving Pricing Info for: v3-standard-8 05:40:28 INFO: Archiving Costs [Pipeline] echo 05:40:28 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 05:40:28 ---> logs-deploy.sh 05:40:28 lf-activate-venv: SKIPPING 05:40:28 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-274/1 05:40:28 INFO: archiving workspace using pattern(s): 05:40:29 Archives upload complete. 05:40:29 INFO: archiving logs to Nexus