Pull request #281 opened Connecting to https://api.github.com using edgex-jenkins github personal access token Connecting to https://api.github.com to check permissions of obtain list of vli11 for edgexfoundry/device-rest-go Loading trusted files from base branch main at 539913158ea56f8dca24ab775bb8172a7292d425 rather than b8e531124201590e1543ca9edaea1c885f687146 Obtained Jenkinsfile from 539913158ea56f8dca24ab775bb8172a7292d425 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-ssh15519223150873444353.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-ssh4486109220327867916.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-281/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-281/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh10862363149747337125.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-281/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh13070521290300284383.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-ssh1157012987485287230.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-281/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-281/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e@tmp/jenkins-gitclient-ssh17727536127283517669.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 ‘ubuntu20.04-docker-8c-8g’ Running on prd-ubuntu20.04-docker-8c-8g-5630 in /w/workspace/gexfoundry_device-rest-go_PR-281 [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-281 # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git > git --version # timeout=10 > git --version # 'git version 2.25.1' using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 Merging remotes/origin/main commit 539913158ea56f8dca24ab775bb8172a7292d425 into PR head commit b8e531124201590e1543ca9edaea1c885f687146 Merge succeeded, producing b8e531124201590e1543ca9edaea1c885f687146 Checking out Revision b8e531124201590e1543ca9edaea1c885f687146 (PR-281) > 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/281/head:refs/remotes/origin/PR-281 +refs/heads/main:refs/remotes/origin/main # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f b8e531124201590e1543ca9edaea1c885f687146 # 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 539913158ea56f8dca24ab775bb8172a7292d425 # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f b8e531124201590e1543ca9edaea1c885f687146 # timeout=10 Commit message: "refactor!: Changed configuration and simple-devices files format to YAML" 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 00:29:44 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 00:29:44 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 00:29:45 ========================================================= 00:29:45 EdgeX Global Pipelines Version Info 00:29:45 ========================================================= [Pipeline] libraryResource [Pipeline] sh 00:29:45 ------------------- 00:29:45 stable info: 00:29:45 ------------------- 00:29:45 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 00:29:45 Commit SHA: 66200e8eedfc470904d6b329e562ec5b45423d6a 00:29:45 Message: update stable to v1.0.245 00:29:46 ------------------- 00:29:46 experimental info: 00:29:46 ------------------- 00:29:46 Commited By: **** collab-it+edgex@linuxfoundation.org 00:29:46 Commit SHA: 046ad6d0e2e636d38ea4daf53c055316476b9501 00:29:46 Message: update experimental to v1.0.247 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 00:29:46 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 00:29:46 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 00:29:46 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 00:29:47 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 00:29:47 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 00:29:47 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.20 [Pipeline] echo 00:29:47 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 00:29:47 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 00:29:47 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 00:29:47 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 00:29:47 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 00:29:47 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 00:29:47 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 00:29:47 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 00:29:47 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 00:29:47 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 00:29:47 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 00:29:47 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 00:29:47 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 00:29:47 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 00:29:47 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 00:29:47 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 00:29:47 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 00:29:47 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 00:29:48 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 00:29:48 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 00:29:48 [edgeXSetupEnvironment]: set envvar SNYK_DEBUG = false [Pipeline] echo 00:29:48 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-281 [Pipeline] echo 00:29:48 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-281 [Pipeline] echo 00:29:48 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-281 [Pipeline] echo 00:29:48 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = b8e531124201590e1543ca9edaea1c885f687146 [Pipeline] echo 00:29:48 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = b8e5311 [Pipeline] echo 00:29:48 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 00:29:48 provisioning config files... 00:29:48 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-281@tmp/config10230453367862498871tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 00:29:48 ---> docker-login.sh 00:29:48 nexus3.edgexfoundry.org:10001 00:29:49 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:29:50 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:29:50 Configure a credential helper to remove this warning. See 00:29:50 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:29:50 00:29:50 Login Succeeded 00:29:50 nexus3.edgexfoundry.org:10002 00:29:50 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:29:50 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:29:50 Configure a credential helper to remove this warning. See 00:29:50 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:29:50 00:29:50 Login Succeeded 00:29:50 nexus3.edgexfoundry.org:10003 00:29:50 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:29:50 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:29:50 Configure a credential helper to remove this warning. See 00:29:50 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:29:50 00:29:50 Login Succeeded 00:29:50 nexus3.edgexfoundry.org:10004 00:29:50 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:29:50 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:29:50 Configure a credential helper to remove this warning. See 00:29:50 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:29:50 00:29:50 Login Succeeded 00:29:50 docker.io 00:29:50 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:29:50 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:29:50 Configure a credential helper to remove this warning. See 00:29:50 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:29:50 00:29:50 Login Succeeded 00:29:50 ---> docker-login.sh ends [Pipeline] } 00:29:50 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 00:29:51 + git rev-list -1 --merges b8e531124201590e1543ca9edaea1c885f687146~1..b8e531124201590e1543ca9edaea1c885f687146 [Pipeline] echo 00:29:51 -----------> git rev-list -1 --merges b8e531124201590e1543ca9edaea1c885f687146~1..b8e531124201590e1543ca9edaea1c885f687146 b8e531124201590e1543ca9edaea1c885f687146 [false] [Pipeline] sh 00:29:51 + git log --format=format:%s -1 b8e531124201590e1543ca9edaea1c885f687146 [Pipeline] echo 00:29:51 ========================================================= 00:29:51 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 00:29:51 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 00:29:52 + git log --format=format:%s -1 b8e531124201590e1543ca9edaea1c885f687146 [Pipeline] echo 00:29:52 [semverPrep] GIT_COMMIT: b8e531124201590e1543ca9edaea1c885f687146, Commit Message: refactor!: Changed configuration and simple-devices files format to YAML [Pipeline] echo 00:29:52 [semverPrep] This is not a build commit. [Pipeline] sh 00:29:52 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 00:29:52 + grep -v github /etc/ssh/ssh_known_hosts 00:29:52 + [ -e /tmp/ssh_known_hosts ] 00:29:52 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 00:29:52 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 00:29:52 + sudo tee -a /etc/ssh/ssh_known_hosts 00:29:52 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 00:29:53 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 00:29:53 00:29:53 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 00:29:53 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 00:29:53 0.1.4: Pulling from edgex-devops/py-git-semver 00:29:53 b85a868b505f: Pulling fs layer 00:29:53 e2be974225ed: Pulling fs layer 00:29:53 339a4e72a1f5: Pulling fs layer 00:29:53 988bab9f4d93: Pulling fs layer 00:29:53 1469e6f7b9e6: Pulling fs layer 00:29:53 eaf3925da568: Pulling fs layer 00:29:53 bab4dde63d76: Pulling fs layer 00:29:53 bde34c3a00c8: Pulling fs layer 00:29:53 b352a97aabf1: Pulling fs layer 00:29:53 4872d77fe225: Pulling fs layer 00:29:53 5851b861e8e6: Pulling fs layer 00:29:53 1469e6f7b9e6: Waiting 00:29:53 988bab9f4d93: Waiting 00:29:53 eaf3925da568: Waiting 00:29:53 b352a97aabf1: Waiting 00:29:53 4872d77fe225: Waiting 00:29:53 bde34c3a00c8: Waiting 00:29:53 e2be974225ed: Verifying Checksum 00:29:53 e2be974225ed: Download complete 00:29:53 988bab9f4d93: Download complete 00:29:54 339a4e72a1f5: Verifying Checksum 00:29:54 339a4e72a1f5: Download complete 00:29:54 1469e6f7b9e6: Verifying Checksum 00:29:54 1469e6f7b9e6: Download complete 00:29:54 eaf3925da568: Verifying Checksum 00:29:54 eaf3925da568: Download complete 00:29:54 bde34c3a00c8: Download complete 00:29:54 b352a97aabf1: Verifying Checksum 00:29:54 b352a97aabf1: Download complete 00:29:54 4872d77fe225: Verifying Checksum 00:29:54 4872d77fe225: Download complete 00:29:54 5851b861e8e6: Verifying Checksum 00:29:54 5851b861e8e6: Download complete 00:29:54 b85a868b505f: Verifying Checksum 00:29:54 b85a868b505f: Download complete 00:29:54 bab4dde63d76: Verifying Checksum 00:29:54 bab4dde63d76: Download complete 00:29:56 b85a868b505f: Pull complete 00:29:56 e2be974225ed: Pull complete 00:29:58 339a4e72a1f5: Pull complete 00:29:58 988bab9f4d93: Pull complete 00:29:58 1469e6f7b9e6: Pull complete 00:29:58 eaf3925da568: Pull complete 00:30:00 bab4dde63d76: Pull complete 00:30:00 bde34c3a00c8: Pull complete 00:30:00 b352a97aabf1: Pull complete 00:30:00 4872d77fe225: Pull complete 00:30:00 5851b861e8e6: Pull complete 00:30:00 Digest: sha256:59a28aa3b44c0bc56b9c3d2e9ecabe42e63693d939cc6e425eb8786f29f663d8 00:30:00 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 00:30:00 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 00:30:00 prd-ubuntu20.04-docker-8c-8g-5630 does not seem to be running inside a container 00:30:00 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/gexfoundry_device-rest-go_PR-281 -v /w/workspace/gexfoundry_device-rest-go_PR-281:/w/workspace/gexfoundry_device-rest-go_PR-281:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-281@tmp:/w/workspace/gexfoundry_device-rest-go_PR-281@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-devops/py-git-semver:0.1.4 cat 00:30:22 $ docker top 554723ff737618a6060a9540ac01a6cd7ef4e3e0742dd126cd0fc6402f6f9938 -eo pid,comm 00:30:22 ERROR: The container started but didn't run the expected command. Please double check your ENTRYPOINT does execute the command passed as docker run argument, as required by official docker images (see https://github.com/docker-library/official-images#consistency for entrypoint consistency requirements). 00:30:22 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 00:30:23 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 00:30:23 [ssh-agent] Looking for ssh-agent implementation... 00:30:23 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 00:30:23 $ docker exec 554723ff737618a6060a9540ac01a6cd7ef4e3e0742dd126cd0fc6402f6f9938 ssh-agent 00:30:23 SSH_AUTH_SOCK=/tmp/ssh-p16TIlcEzJrs/agent.13 00:30:23 SSH_AGENT_PID=19 00:30:23 Running ssh-add (command line suppressed) 00:30:23 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-281@tmp/private_key_6731427004719441977.key (/w/workspace/gexfoundry_device-rest-go_PR-281@tmp/private_key_6731427004719441977.key) 00:30:23 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 00:30:23 + git tag --points-at HEAD [Pipeline] } 00:30:23 $ docker exec --env ******** --env ******** 554723ff737618a6060a9540ac01a6cd7ef4e3e0742dd126cd0fc6402f6f9938 ssh-agent -k 00:30:23 unset SSH_AUTH_SOCK; 00:30:23 unset SSH_AGENT_PID; 00:30:23 echo Agent pid 19 killed; 00:30:23 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 00:30:23 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 00:30:23 [ssh-agent] Looking for ssh-agent implementation... 00:30:24 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 00:30:24 $ docker exec 554723ff737618a6060a9540ac01a6cd7ef4e3e0742dd126cd0fc6402f6f9938 ssh-agent 00:30:24 SSH_AUTH_SOCK=/tmp/ssh-SNX730nXQi8m/agent.51 00:30:24 SSH_AGENT_PID=57 00:30:24 Running ssh-add (command line suppressed) 00:30:24 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-281@tmp/private_key_2952802823715994761.key (/w/workspace/gexfoundry_device-rest-go_PR-281@tmp/private_key_2952802823715994761.key) 00:30:24 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 00:30:24 + git semver init 00:30:25 2023-03-24 00:30:25,010 [run_init] DEBUG init version:0.0.0 force:False 00:30:25 2023-03-24 00:30:25,011 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/gexfoundry_device-rest-go_PR-281/.semver 00:30:25 2023-03-24 00:30:25,012 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-rest-go.git /w/workspace/gexfoundry_device-rest-go_PR-281/.semver 00:30:25 2023-03-24 00:30:25,013 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-rest-go.git', '/w/workspace/gexfoundry_device-rest-go_PR-281/.semver'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-281, universal_newlines=False, shell=None, istream=None) 00:30:27 2023-03-24 00:30:27,002 [append_file] DEBUG append to file:/w/workspace/gexfoundry_device-rest-go_PR-281/.git/info/exclude 00:30:27 2023-03-24 00:30:27,003 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/gexfoundry_device-rest-go_PR-281/.semver/PR-281 with force:False 00:30:27 2023-03-24 00:30:27,003 [write_file] DEBUG write to file:/w/workspace/gexfoundry_device-rest-go_PR-281/.semver/PR-281 00:30:27 2023-03-24 00:30:27,007 [execute] INFO git cat-file --batch-check 00:30:27 2023-03-24 00:30:27,008 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-281/.semver, universal_newlines=False, shell=None, istream=) 00:30:27 2023-03-24 00:30:27,014 [execute] INFO git cat-file --batch 00:30:27 2023-03-24 00:30:27,014 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-281/.semver, universal_newlines=False, shell=None, istream=) 00:30:27 2023-03-24 00:30:27,020 [read_version] DEBUG read version from /w/workspace/gexfoundry_device-rest-go_PR-281/.semver/PR-281 00:30:27 0.0.0 [Pipeline] } 00:30:27 $ docker exec --env ******** --env ******** 554723ff737618a6060a9540ac01a6cd7ef4e3e0742dd126cd0fc6402f6f9938 ssh-agent -k 00:30:27 unset SSH_AUTH_SOCK; 00:30:27 unset SSH_AGENT_PID; 00:30:27 echo Agent pid 57 killed; 00:30:27 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 00:30:28 + git semver [Pipeline] } 00:30:28 $ docker stop --time=1 554723ff737618a6060a9540ac01a6cd7ef4e3e0742dd126cd0fc6402f6f9938 00:30:32 $ docker rm -f --volumes 554723ff737618a6060a9540ac01a6cd7ef4e3e0742dd126cd0fc6402f6f9938 [Pipeline] // withDockerContainer [Pipeline] sh 00:30:32 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 00:30:32 Stashed 1 file(s) [Pipeline] echo 00:30:32 [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 00:30:33 provisioning config files... 00:30:33 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-281@tmp/config11106712748453645331tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 00:30:33 ---> docker-login.sh 00:30:33 nexus3.edgexfoundry.org:10001 00:30:33 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:30:33 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:30:33 Configure a credential helper to remove this warning. See 00:30:33 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:30:33 00:30:33 Login Succeeded 00:30:33 nexus3.edgexfoundry.org:10002 00:30:33 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:30:33 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:30:33 Configure a credential helper to remove this warning. See 00:30:33 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:30:33 00:30:33 Login Succeeded 00:30:33 nexus3.edgexfoundry.org:10003 00:30:33 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:30:33 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:30:33 Configure a credential helper to remove this warning. See 00:30:33 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:30:33 00:30:33 Login Succeeded 00:30:33 nexus3.edgexfoundry.org:10004 00:30:33 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:30:33 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:30:33 Configure a credential helper to remove this warning. See 00:30:33 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:30:33 00:30:33 Login Succeeded 00:30:33 docker.io 00:30:34 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:30:34 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:30:34 Configure a credential helper to remove this warning. See 00:30:34 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:30:34 00:30:34 Login Succeeded 00:30:34 ---> docker-login.sh ends [Pipeline] } 00:30:34 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 00:30:34 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 00:30:34 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 00:30:34 ========================================================= 00:30:34 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine] 00:30:34 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 00:30:35 + 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 . 00:30:35 Sending build context to Docker daemon 10.87MB 00:30:35 Step 1/12 : ARG BASE=golang:1.20-alpine3.17 00:30:35 Step 2/12 : FROM ${BASE} AS builder 00:30:35 1.20-alpine: Pulling from edgex-devops/edgex-golang-base 00:30:35 63b65145d645: Pulling fs layer 00:30:35 a2d21d5440eb: Pulling fs layer 00:30:35 935e6c44a52c: Pulling fs layer 00:30:35 94cc34f8dd06: Pulling fs layer 00:30:35 30dea6a524f1: Pulling fs layer 00:30:35 a2aff8979fd8: Pulling fs layer 00:30:35 6808be2612f2: Pulling fs layer 00:30:35 f25807f1079a: Pulling fs layer 00:30:35 30dea6a524f1: Waiting 00:30:35 a2aff8979fd8: Waiting 00:30:35 6808be2612f2: Waiting 00:30:35 f25807f1079a: Waiting 00:30:35 a2d21d5440eb: Verifying Checksum 00:30:35 a2d21d5440eb: Download complete 00:30:35 94cc34f8dd06: Verifying Checksum 00:30:35 94cc34f8dd06: Download complete 00:30:35 30dea6a524f1: Verifying Checksum 00:30:35 30dea6a524f1: Download complete 00:30:35 63b65145d645: Verifying Checksum 00:30:35 63b65145d645: Download complete 00:30:35 a2aff8979fd8: Verifying Checksum 00:30:35 a2aff8979fd8: Download complete 00:30:35 63b65145d645: Pull complete 00:30:36 a2d21d5440eb: Pull complete 00:30:36 f25807f1079a: Download complete 00:30:36 935e6c44a52c: Verifying Checksum 00:30:36 935e6c44a52c: Download complete 00:30:36 6808be2612f2: Verifying Checksum 00:30:36 6808be2612f2: Download complete 00:30:40 935e6c44a52c: Pull complete 00:30:40 94cc34f8dd06: Pull complete 00:30:40 30dea6a524f1: Pull complete 00:30:40 a2aff8979fd8: Pull complete 00:30:43 6808be2612f2: Pull complete 00:30:43 f25807f1079a: Pull complete 00:30:43 Digest: sha256:106942793af8b5907f587008084bb0888cadbc76d86ebd37d4d3227fb0f1e438 00:30:43 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine 00:30:43 ---> 3b553350e43f 00:30:43 Step 3/12 : ARG ADD_BUILD_TAGS="" 00:30:48 Still waiting to schedule task 00:30:48 Waiting for next available executor on ‘prd-ubuntu20.04-docker-arm64-4c-16g-5629’ 00:30:50 ---> Running in 732a944acc18 00:30:50 Removing intermediate container 732a944acc18 00:30:50 ---> ad1b33035096 00:30:50 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 00:30:50 ---> Running in b5ac5f58808d 00:30:50 Removing intermediate container b5ac5f58808d 00:30:50 ---> 987255637182 00:30:50 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 00:30:50 ---> Running in 7cd8b2cee69a 00:30:50 Removing intermediate container 7cd8b2cee69a 00:30:50 ---> da63edffdb51 00:30:50 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 00:30:50 ---> Running in 96c6181ebd10 00:30:50 Removing intermediate container 96c6181ebd10 00:30:50 ---> 90a86253a060 00:30:50 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 00:30:50 ---> Running in 977e6e136e0b 00:30:50 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 00:30:50 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 00:30:50 (1/4) Installing openssh-keygen (9.1_p1-r2) 00:30:50 (2/4) Installing libedit (20221030.3.1-r0) 00:30:50 (3/4) Installing openssh-client-common (9.1_p1-r2) 00:30:51 (4/4) Installing openssh-client-default (9.1_p1-r2) 00:30:51 Executing busybox-1.35.0-r29.trigger 00:30:51 OK: 269 MiB in 57 packages 00:30:51 Removing intermediate container 977e6e136e0b 00:30:51 ---> bfe39a127fb6 00:30:51 Step 8/12 : WORKDIR /device-rest-go 00:30:51 ---> Running in fa63065d9aa5 00:30:51 Removing intermediate container fa63065d9aa5 00:30:51 ---> b6e62472d5a8 00:30:51 Step 9/12 : COPY go.mod vendor* ./ 00:30:51 ---> 2e94e9a7d109 00:30:51 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 00:30:52 ---> Running in 6cc483866773 00:31:39 Removing intermediate container 6cc483866773 00:31:39 ---> 96510946cfaf 00:31:39 Step 11/12 : COPY . . 00:31:39 ---> 3cf3f5e75fb7 00:31:39 Step 12/12 : RUN $MAKE 00:31:39 ---> Running in d40763fae07d 00:31:40 noop 00:31:40 Removing intermediate container d40763fae07d 00:31:40 ---> 79fdf3685ca8 00:31:40 Successfully built 79fdf3685ca8 00:31:40 Successfully tagged ci-base-image-x86_64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 00:31:41 + docker inspect -f . ci-base-image-x86_64 00:31:41 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 00:31:41 prd-ubuntu20.04-docker-8c-8g-5630 does not seem to be running inside a container 00:31:41 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-281 -v /w/workspace/gexfoundry_device-rest-go_PR-281:/w/workspace/gexfoundry_device-rest-go_PR-281:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-281@tmp:/w/workspace/gexfoundry_device-rest-go_PR-281@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 00:31:41 $ docker top 85f8a6e1c167d77eb71946c84b140d0613b8d83ddcf3adefcacc8743d0a76cd0 -eo pid,comm [Pipeline] { [Pipeline] sh 00:31:42 + go version 00:31:42 go version go1.20.2 linux/amd64 [Pipeline] } 00:31:42 $ docker stop --time=1 85f8a6e1c167d77eb71946c84b140d0613b8d83ddcf3adefcacc8743d0a76cd0 00:31:43 $ docker rm -f --volumes 85f8a6e1c167d77eb71946c84b140d0613b8d83ddcf3adefcacc8743d0a76cd0 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 00:31:44 + docker inspect -f . ci-base-image-x86_64 00:31:44 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 00:31:44 prd-ubuntu20.04-docker-8c-8g-5630 does not seem to be running inside a container 00:31:44 $ 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-281 -v /w/workspace/gexfoundry_device-rest-go_PR-281:/w/workspace/gexfoundry_device-rest-go_PR-281:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-281@tmp:/w/workspace/gexfoundry_device-rest-go_PR-281@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 00:31:44 $ docker top 0ed0f0b0aeb4ee129d3f56f19421855285217b5297cc10723c11c9551a4600ed -eo pid,comm [Pipeline] { [Pipeline] sh 00:31:45 + git config --global --add safe.directory /w/workspace/gexfoundry_device-rest-go_PR-281 [Pipeline] fileExists [Pipeline] sh 00:31:45 + make test 00:31:45 go test ./... -coverprofile=coverage.out ./... 00:31:50 ? github.com/edgexfoundry/device-rest-go [no test files] 00:32:00 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 00:32:00 ok github.com/edgexfoundry/device-rest-go/driver 0.013s coverage: 33.0% of statements 00:32:05 go vet ./... 00:32:10 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 00:32:10 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 00:32:10 ./bin/test-attribution-txt.sh [Pipeline] echo 00:32:10 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 00:32:10 $ docker stop --time=1 0ed0f0b0aeb4ee129d3f56f19421855285217b5297cc10723c11c9551a4600ed 00:32:15 $ docker rm -f --volumes 0ed0f0b0aeb4ee129d3f56f19421855285217b5297cc10723c11c9551a4600ed [Pipeline] // withDockerContainer [Pipeline] sh 00:32:16 + sudo chown -R jenkins:jenkins . [Pipeline] stash 00:32:16 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 00:32:16 + sudo chown -R jenkins:jenkins . [Pipeline] sh 00:32:17 + ls -al . 00:32:17 total 184 00:32:17 drwxrwxr-x 9 jenkins jenkins 4096 Mar 24 00:31 . 00:32:17 drwxrwxr-x 4 jenkins jenkins 4096 Mar 24 00:29 .. 00:32:17 -rw-rw-r-- 1 jenkins jenkins 151 Mar 24 00:29 .dockerignore 00:32:17 drwxrwxr-x 8 jenkins jenkins 4096 Mar 24 00:30 .git 00:32:17 drwxrwxr-x 3 jenkins jenkins 4096 Mar 24 00:29 .github 00:32:17 -rw-rw-r-- 1 jenkins jenkins 329 Mar 24 00:29 .gitignore 00:32:17 -rw-rw-r-- 1 jenkins jenkins 41 Mar 24 00:29 .golangci.yml 00:32:17 drwxr-xr-x 3 jenkins jenkins 4096 Mar 24 00:30 .semver 00:32:17 -rw-rw-r-- 1 jenkins jenkins 9202 Mar 24 00:29 Attribution.txt 00:32:17 -rw-rw-r-- 1 jenkins jenkins 13085 Mar 24 00:29 CHANGELOG.md 00:32:17 -rw-rw-r-- 1 jenkins jenkins 1578 Mar 24 00:29 Dockerfile 00:32:17 -rw-rw-r-- 1 jenkins jenkins 677 Mar 24 00:29 GOVERNANCE.md 00:32:17 -rw-rw-r-- 1 jenkins jenkins 680 Mar 24 00:29 Jenkinsfile 00:32:17 -rw-rw-r-- 1 jenkins jenkins 11340 Mar 24 00:29 LICENSE 00:32:17 -rw-rw-r-- 1 jenkins jenkins 1779 Mar 24 00:29 Makefile 00:32:17 -rw-rw-r-- 1 jenkins jenkins 620 Mar 24 00:29 OWNERS.md 00:32:17 -rw-rw-r-- 1 jenkins jenkins 15321 Mar 24 00:29 README.md 00:32:17 -rw-rw-r-- 1 jenkins jenkins 5 Mar 24 00:30 VERSION 00:32:17 drwxrwxr-x 2 jenkins jenkins 4096 Mar 24 00:29 bin 00:32:17 drwxrwxr-x 3 jenkins jenkins 4096 Mar 24 00:29 cmd 00:32:17 -rw-r--r-- 1 jenkins jenkins 14200 Mar 24 00:32 coverage.out 00:32:17 drwxrwxr-x 2 jenkins jenkins 4096 Mar 24 00:29 driver 00:32:17 -rw-rw-r-- 1 jenkins jenkins 3399 Mar 24 00:29 go.mod 00:32:17 -rw-rw-r-- 1 jenkins jenkins 31153 Mar 24 00:29 go.sum 00:32:17 drwxrwxr-x 4 jenkins jenkins 4096 Mar 24 00:29 snap 00:32:17 -rw-rw-r-- 1 jenkins jenkins 713 Mar 24 00:29 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 00:32:17 + 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=b8e531124201590e1543ca9edaea1c885f687146 --label arch=amd64 --label version=0.0.0 . 00:32:17 Sending build context to Docker daemon 10.88MB 00:32:17 Step 1/25 : ARG BASE=golang:1.20-alpine3.17 00:32:17 Step 2/25 : FROM ${BASE} AS builder 00:32:17 ---> 79fdf3685ca8 00:32:17 Step 3/25 : ARG ADD_BUILD_TAGS="" 00:32:17 ---> Running in 2f8fbf65e936 00:32:17 Removing intermediate container 2f8fbf65e936 00:32:17 ---> d599656fc2af 00:32:17 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 00:32:17 ---> Running in 1c8b10ff3f5e 00:32:18 Removing intermediate container 1c8b10ff3f5e 00:32:18 ---> c37c9584e75b 00:32:18 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 00:32:18 ---> Running in 8e1de6b62e87 00:32:18 Removing intermediate container 8e1de6b62e87 00:32:18 ---> ca41b97785ff 00:32:18 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 00:32:18 ---> Running in 2d101a37b6b0 00:32:18 Removing intermediate container 2d101a37b6b0 00:32:18 ---> ba820a6b32ab 00:32:18 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 00:32:18 ---> Running in 15d5bec38cb9 00:32:18 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 00:32:18 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 00:32:19 OK: 269 MiB in 57 packages 00:32:19 Removing intermediate container 15d5bec38cb9 00:32:19 ---> c4ef543cea86 00:32:19 Step 8/25 : WORKDIR /device-rest-go 00:32:19 ---> Running in 79ccc7b8b44e 00:32:19 Removing intermediate container 79ccc7b8b44e 00:32:19 ---> 894b0c5765e6 00:32:19 Step 9/25 : COPY go.mod vendor* ./ 00:32:19 ---> 1840eddf7730 00:32:19 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 00:32:19 ---> Running in ae3dc2023c2f 00:32:20 Removing intermediate container ae3dc2023c2f 00:32:20 ---> fcec2bc7a83d 00:32:20 Step 11/25 : COPY . . 00:32:21 ---> bfc95d9c5961 00:32:21 Step 12/25 : RUN $MAKE 00:32:21 ---> Running in 469acd1c9060 00:32:21 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 00:32:43 Removing intermediate container 469acd1c9060 00:32:43 ---> 88e6f99abd56 00:32:43 Step 13/25 : FROM alpine:3.17 00:32:43 3.17: Pulling from library/alpine 00:32:43 63b65145d645: Already exists 00:32:43 Digest: sha256:ff6bdca1701f3a8a67e328815ff2346b0e4067d32ec36b7992c1fdc001dc8517 00:32:43 Status: Downloaded newer image for alpine:3.17 00:32:43 ---> b2aa39c304c2 00:32:43 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 00:32:43 ---> Running in 336b74ab3d3e 00:32:43 Removing intermediate container 336b74ab3d3e 00:32:43 ---> feaec89c7b03 00:32:43 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 00:32:43 ---> Running in b502004c0697 00:32:43 Removing intermediate container b502004c0697 00:32:43 ---> ead18ec3dcb7 00:32:43 Step 16/25 : RUN apk add --update --no-cache dumb-init 00:32:43 ---> Running in 0ffd9527e6d0 00:32:43 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 00:32:43 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 00:32:43 (1/1) Installing dumb-init (1.2.5-r2) 00:32:43 Executing busybox-1.35.0-r29.trigger 00:32:43 OK: 7 MiB in 16 packages 00:32:43 Removing intermediate container 0ffd9527e6d0 00:32:43 ---> a96959d354b7 00:32:43 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 00:32:43 ---> 310d9b8786d5 00:32:43 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 00:32:43 ---> 957f3a9e54a4 00:32:43 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 00:32:43 ---> bd859d292848 00:32:43 Step 20/25 : EXPOSE 59986 00:32:43 ---> Running in bd508f03b5a9 00:32:43 Removing intermediate container bd508f03b5a9 00:32:43 ---> 8c32e3d98dd4 00:32:43 Step 21/25 : ENTRYPOINT ["/device-rest"] 00:32:43 ---> Running in 02a1811bb33a 00:32:43 Removing intermediate container 02a1811bb33a 00:32:43 ---> 7eef5ed52322 00:32:43 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 00:32:43 ---> Running in 7f4051a57f77 00:32:44 Removing intermediate container 7f4051a57f77 00:32:44 ---> 0caefa9e6c23 00:32:44 Step 23/25 : LABEL arch=amd64 00:32:44 ---> Running in 28bdca03f8da 00:32:44 Removing intermediate container 28bdca03f8da 00:32:44 ---> c79a4999672c 00:32:44 Step 24/25 : LABEL git_sha=b8e531124201590e1543ca9edaea1c885f687146 00:32:44 ---> Running in 9c21212aeade 00:32:44 Removing intermediate container 9c21212aeade 00:32:44 ---> 185d00eac7e1 00:32:44 Step 25/25 : LABEL version=0.0.0 00:32:44 ---> Running in f54bd3b5a7b5 00:32:44 Removing intermediate container f54bd3b5a7b5 00:32:44 ---> 626ce9add640 00:32:44 [Warning] One or more build-args [ARCH] were not consumed 00:32:44 Successfully built 626ce9add640 00:32:44 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 00:32:45 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 00:32:45 00:32:45 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 00:32:45 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 00:32:45 latest: Pulling from edgex-lftools-log-publisher 00:32:45 5eb5b503b376: Pulling fs layer 00:32:45 5c69ac0246d0: Pulling fs layer 00:32:45 ec43610c2a17: Pulling fs layer 00:32:45 3a2ae6a8a46f: Pulling fs layer 00:32:45 33b1e0a273af: Pulling fs layer 00:32:45 5d3b04190fa2: Pulling fs layer 00:32:45 2f39f015ded8: Pulling fs layer 00:32:45 3a2ae6a8a46f: Waiting 00:32:45 33b1e0a273af: Waiting 00:32:45 2f39f015ded8: Waiting 00:32:45 5d3b04190fa2: Waiting 00:32:45 5c69ac0246d0: Verifying Checksum 00:32:45 5c69ac0246d0: Download complete 00:32:45 3a2ae6a8a46f: Verifying Checksum 00:32:45 3a2ae6a8a46f: Download complete 00:32:45 33b1e0a273af: Verifying Checksum 00:32:45 33b1e0a273af: Download complete 00:32:45 ec43610c2a17: Verifying Checksum 00:32:45 ec43610c2a17: Download complete 00:32:45 5d3b04190fa2: Verifying Checksum 00:32:45 5d3b04190fa2: Download complete 00:32:45 5eb5b503b376: Verifying Checksum 00:32:45 5eb5b503b376: Download complete 00:32:46 2f39f015ded8: Download complete 00:32:47 5eb5b503b376: Pull complete 00:32:47 5c69ac0246d0: Pull complete 00:32:47 ec43610c2a17: Pull complete 00:32:47 3a2ae6a8a46f: Pull complete 00:32:48 33b1e0a273af: Pull complete 00:32:48 5d3b04190fa2: Pull complete 00:32:52 2f39f015ded8: Pull complete 00:32:52 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 00:32:52 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 00:32:52 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 00:32:52 prd-ubuntu20.04-docker-8c-8g-5630 does not seem to be running inside a container 00:32:52 $ 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-281 -v /w/workspace/gexfoundry_device-rest-go_PR-281:/w/workspace/gexfoundry_device-rest-go_PR-281:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-281@tmp:/w/workspace/gexfoundry_device-rest-go_PR-281@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 00:32:58 $ docker top 5f1fd04d37117e71e7f3b8a037dab4bec17aa56f002073f2682bb8360514ceab -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 00:32:58 ---> job-cost.sh 00:32:58 lf-activate-venv: SKIPPING 00:32:58 INFO: No Stack... 00:32:59 INFO: Retrieving Pricing Info for: v3-standard-8 00:32:59 INFO: Archiving Costs [Pipeline] sh 00:33:00 + cat /w/workspace/gexfoundry_device-rest-go_PR-281/archives/cost.csv 00:33:00 + cut -d, -f6 [Pipeline] lock 00:33:00 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-281-1-stack-cost] 00:33:00 Resource [jenkins-edgexfoundry-device-rest-go-PR-281-1-stack-cost] did not exist. Created. 00:33:00 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-281-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 00:33:00 + echo total: 0.2199999988079071 [Pipeline] stash 00:33:00 Stashed 1 file(s) [Pipeline] } 00:33:00 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-281-1-stack-cost] [Pipeline] // lock [Pipeline] } 00:33:00 $ docker stop --time=1 5f1fd04d37117e71e7f3b8a037dab4bec17aa56f002073f2682bb8360514ceab 00:33:01 $ docker rm -f --volumes 5f1fd04d37117e71e7f3b8a037dab4bec17aa56f002073f2682bb8360514ceab [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 00:34:22 Running on prd-ubuntu20.04-docker-arm64-4c-16g-5632 in /w/workspace/gexfoundry_device-rest-go_PR-281 [Pipeline] { [Pipeline] ws 00:34:22 Running in /w/workspace/device-rest-go/1 [Pipeline] { [Pipeline] checkout 00:34:22 The recommended git tool is: git 00:34:27 using credential edgex-jenkins-ssh 00:34:27 Cloning the remote Git repository 00:34:27 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 00:34:27 > git init /w/workspace/device-rest-go/1 # timeout=10 00:34:27 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 00:34:27 > git --version # timeout=10 00:34:27 > git --version # 'git version 2.25.1' 00:34:27 using GIT_SSH to set credentials SSH Credentials for GitHub 00:34:27 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 00:34:29 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 00:34:29 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 00:34:30 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 00:34:30 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 00:34:30 using GIT_SSH to set credentials SSH Credentials for GitHub 00:34:30 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/281/head:refs/remotes/origin/PR-281 +refs/heads/main:refs/remotes/origin/main # timeout=10 00:34:31 Merging remotes/origin/main commit 539913158ea56f8dca24ab775bb8172a7292d425 into PR head commit b8e531124201590e1543ca9edaea1c885f687146 00:34:31 Merge succeeded, producing b8e531124201590e1543ca9edaea1c885f687146 00:34:31 Checking out Revision b8e531124201590e1543ca9edaea1c885f687146 (PR-281) 00:34:31 > git config core.sparsecheckout # timeout=10 00:34:31 > git checkout -f b8e531124201590e1543ca9edaea1c885f687146 # timeout=10 00:34:31 > git remote # timeout=10 00:34:31 > git config --get remote.origin.url # timeout=10 00:34:31 using GIT_SSH to set credentials SSH Credentials for GitHub 00:34:31 > git merge 539913158ea56f8dca24ab775bb8172a7292d425 # timeout=10 00:34:31 > git rev-parse HEAD^{commit} # timeout=10 00:34:31 > git config core.sparsecheckout # timeout=10 00:34:31 > git checkout -f b8e531124201590e1543ca9edaea1c885f687146 # timeout=10 00:34:35 Commit message: "refactor!: Changed configuration and simple-devices files format to YAML" 00:34:35 > git --version # timeout=10 00:34:35 > git --version # 'git version 2.25.1' 00:34:35 fatal: bad object 66200e8eedfc470904d6b329e562ec5b45423d6a [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 00:34:36 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 00:34:36 % Total % Received % Xferd Average Speed Time Time Time Current 00:34:36 Dload Upload Total Spent Left Speed 00:34:36 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 12751 100 12751 0 0 103k 0 --:--:-- --:--:-- --:--:-- 103k [Pipeline] sh 00:34:36 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 00:34:37 + sudo tee /etc/docker/daemon.new 00:34:37 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 00:34:37 { 00:34:37 "registry-mirrors": [ 00:34:37 "https://nexus3.edgexfoundry.org:10001" 00:34:37 ], 00:34:37 "bip": "10.250.0.254/24", 00:34:37 "hosts": [ 00:34:37 "tcp://0.0.0.0:5555", 00:34:37 "unix:///var/run/docker.sock" 00:34:37 ], 00:34:37 "mtu": 1458, 00:34:37 "selinux-enabled": true, 00:34:37 "seccomp-profile": "/etc/docker/seccomp.json" 00:34:37 } [Pipeline] sh 00:34:37 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 00:34:37 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 00:34:56 provisioning config files... 00:34:56 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/1@tmp/config13548068652043062454tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 00:34:56 ---> docker-login.sh 00:34:56 nexus3.edgexfoundry.org:10001 00:34:57 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:34:57 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:34:57 Configure a credential helper to remove this warning. See 00:34:57 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:34:57 00:34:57 Login Succeeded 00:34:57 nexus3.edgexfoundry.org:10002 00:34:57 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:34:57 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:34:57 Configure a credential helper to remove this warning. See 00:34:57 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:34:57 00:34:57 Login Succeeded 00:34:57 nexus3.edgexfoundry.org:10003 00:34:58 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:34:58 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:34:58 Configure a credential helper to remove this warning. See 00:34:58 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:34:58 00:34:58 Login Succeeded 00:34:58 nexus3.edgexfoundry.org:10004 00:34:58 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:34:58 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:34:58 Configure a credential helper to remove this warning. See 00:34:58 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:34:58 00:34:58 Login Succeeded 00:34:58 docker.io 00:34:58 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:34:58 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:34:58 Configure a credential helper to remove this warning. See 00:34:58 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:34:58 00:34:58 Login Succeeded 00:34:58 ---> docker-login.sh ends [Pipeline] } 00:34:58 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 00:34:59 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 00:34:59 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 00:34:59 ========================================================= 00:34:59 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine] 00:34:59 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 00:34:59 + 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 . 00:34:59 Sending build context to Docker daemon 137.7kB 00:35:00 Step 1/12 : ARG BASE=golang:1.20-alpine3.17 00:35:00 Step 2/12 : FROM ${BASE} AS builder 00:35:00 1.20-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 00:35:00 af6eaf76a39c: Pulling fs layer 00:35:00 55522c791124: Pulling fs layer 00:35:00 ce5c4a1c91eb: Pulling fs layer 00:35:00 169dfbe0d373: Pulling fs layer 00:35:00 e1ff8fa3b103: Pulling fs layer 00:35:00 169dfbe0d373: Waiting 00:35:00 52ebb69f0ebf: Pulling fs layer 00:35:00 5abe8eddf0d5: Pulling fs layer 00:35:00 e1ff8fa3b103: Waiting 00:35:00 52ebb69f0ebf: Waiting 00:35:00 5abe8eddf0d5: Waiting 00:35:00 55522c791124: Download complete 00:35:00 169dfbe0d373: Verifying Checksum 00:35:00 169dfbe0d373: Download complete 00:35:00 e1ff8fa3b103: Verifying Checksum 00:35:00 e1ff8fa3b103: Download complete 00:35:00 af6eaf76a39c: Verifying Checksum 00:35:00 af6eaf76a39c: Download complete 00:35:01 af6eaf76a39c: Pull complete 00:35:01 5abe8eddf0d5: Verifying Checksum 00:35:01 5abe8eddf0d5: Download complete 00:35:02 55522c791124: Pull complete 00:35:03 52ebb69f0ebf: Verifying Checksum 00:35:03 52ebb69f0ebf: Download complete 00:35:03 ce5c4a1c91eb: Verifying Checksum 00:35:03 ce5c4a1c91eb: Download complete 00:35:13 ce5c4a1c91eb: Pull complete 00:35:13 169dfbe0d373: Pull complete 00:35:13 e1ff8fa3b103: Pull complete 00:35:19 52ebb69f0ebf: Pull complete 00:35:21 5abe8eddf0d5: Pull complete 00:35:21 Digest: sha256:978cc1420e451f27bd88fdeece3ad01a9109ec773b62f165dfc696fd516b3d8f 00:35:21 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine 00:35:21 ---> 6cb57ee374ae 00:35:21 Step 3/12 : ARG ADD_BUILD_TAGS="" 00:35:23 ---> Running in 989b377cbf38 00:35:23 Removing intermediate container 989b377cbf38 00:35:23 ---> a2979a2cfd07 00:35:23 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 00:35:23 ---> Running in 6f7082ea37e8 00:35:23 Removing intermediate container 6f7082ea37e8 00:35:23 ---> 639a32c8b895 00:35:23 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 00:35:23 ---> Running in 9cf56cf1580f 00:35:23 Removing intermediate container 9cf56cf1580f 00:35:23 ---> d6a1761cea7b 00:35:23 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 00:35:24 ---> Running in 4087be639e63 00:35:24 Removing intermediate container 4087be639e63 00:35:24 ---> efac05f4a28f 00:35:24 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 00:35:24 ---> Running in 680ccd421039 00:35:25 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 00:35:26 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 00:35:27 (1/4) Installing openssh-keygen (9.1_p1-r2) 00:35:27 (2/4) Installing libedit (20221030.3.1-r0) 00:35:27 (3/4) Installing openssh-client-common (9.1_p1-r2) 00:35:27 (4/4) Installing openssh-client-default (9.1_p1-r2) 00:35:27 Executing busybox-1.35.0-r29.trigger 00:35:27 OK: 268 MiB in 57 packages 00:35:28 Removing intermediate container 680ccd421039 00:35:28 ---> 203114e21ba5 00:35:28 Step 8/12 : WORKDIR /device-rest-go 00:35:28 ---> Running in 9199e16b5c32 00:35:28 Removing intermediate container 9199e16b5c32 00:35:28 ---> 6265ecbc8b3e 00:35:28 Step 9/12 : COPY go.mod vendor* ./ 00:35:32 ---> fafdf5952359 00:35:32 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 00:35:32 ---> Running in 679b87354da3 00:36:53 Removing intermediate container 679b87354da3 00:36:53 ---> 28e9a01ebfd3 00:36:53 Step 11/12 : COPY . . 00:36:53 ---> 50db04ed1231 00:36:53 Step 12/12 : RUN $MAKE 00:36:53 ---> Running in f685776541d3 00:36:53 noop 00:36:53 Removing intermediate container f685776541d3 00:36:53 ---> 3c89b02a3a76 00:36:53 Successfully built 3c89b02a3a76 00:36:53 Successfully tagged ci-base-image-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 00:36:54 + docker inspect -f . ci-base-image-arm64 00:36:54 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 00:36:54 prd-ubuntu20.04-docker-arm64-4c-16g-5632 does not seem to be running inside a container 00:36:54 $ 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 ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 00:36:55 $ docker top 7a4ca56017b5d19dfc05372f49480d69b427cca99bfa2646f9baa3b0ab9baae5 -eo pid,comm [Pipeline] { [Pipeline] sh 00:36:56 + go version 00:36:56 go version go1.20.2 linux/arm64 [Pipeline] } 00:36:56 $ docker stop --time=1 7a4ca56017b5d19dfc05372f49480d69b427cca99bfa2646f9baa3b0ab9baae5 00:36:58 $ docker rm -f --volumes 7a4ca56017b5d19dfc05372f49480d69b427cca99bfa2646f9baa3b0ab9baae5 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 00:36:59 + docker inspect -f . ci-base-image-arm64 00:36:59 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 00:36:59 prd-ubuntu20.04-docker-arm64-4c-16g-5632 does not seem to be running inside a container 00:36:59 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged -v /var/run/docker.sock:/var/run/docker.sock -w /w/workspace/device-rest-go/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 ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 00:37:00 $ docker top 13bbac3ee25e10bb102a13d9a62e32bb42ec67d611c59e9fc126ac5c7951777c -eo pid,comm [Pipeline] { [Pipeline] sh 00:37:01 + git config --global --add safe.directory /w/workspace/device-rest-go/1 [Pipeline] fileExists [Pipeline] sh 00:37:01 + make test 00:37:01 go test ./... -coverprofile=coverage.out ./... 00:37:33 ? github.com/edgexfoundry/device-rest-go [no test files] 00:39:40 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 00:39:40 ok github.com/edgexfoundry/device-rest-go/driver 0.100s coverage: 33.0% of statements 00:39:40 WARNING: Linting skipped (not on x86_64 or linter not installed) 00:39:40 go vet ./... 00:40:07 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 00:40:07 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 00:40:07 ./bin/test-attribution-txt.sh [Pipeline] echo 00:40:07 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 00:40:07 $ docker stop --time=1 13bbac3ee25e10bb102a13d9a62e32bb42ec67d611c59e9fc126ac5c7951777c 00:40:09 $ docker rm -f --volumes 13bbac3ee25e10bb102a13d9a62e32bb42ec67d611c59e9fc126ac5c7951777c [Pipeline] // withDockerContainer [Pipeline] sh 00:40:10 + sudo chown -R jenkins:jenkins . [Pipeline] stash 00:40:10 Warning: overwriting stash ‘coverage-report’ 00:40:10 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 00:40:11 + sudo chown -R jenkins:jenkins . [Pipeline] sh 00:40:11 + ls -al . 00:40:11 total 180 00:40:11 drwxrwxr-x 8 jenkins jenkins 4096 Mar 24 00:37 . 00:40:11 drwxrwxr-x 4 jenkins jenkins 4096 Mar 24 00:34 .. 00:40:11 -rw-rw-r-- 1 jenkins jenkins 151 Mar 24 00:34 .dockerignore 00:40:11 drwxrwxr-x 8 jenkins jenkins 4096 Mar 24 00:34 .git 00:40:11 drwxrwxr-x 3 jenkins jenkins 4096 Mar 24 00:34 .github 00:40:11 -rw-rw-r-- 1 jenkins jenkins 329 Mar 24 00:34 .gitignore 00:40:11 -rw-rw-r-- 1 jenkins jenkins 41 Mar 24 00:34 .golangci.yml 00:40:11 -rw-rw-r-- 1 jenkins jenkins 9202 Mar 24 00:34 Attribution.txt 00:40:11 -rw-rw-r-- 1 jenkins jenkins 13085 Mar 24 00:34 CHANGELOG.md 00:40:11 -rw-rw-r-- 1 jenkins jenkins 1578 Mar 24 00:34 Dockerfile 00:40:11 -rw-rw-r-- 1 jenkins jenkins 677 Mar 24 00:34 GOVERNANCE.md 00:40:11 -rw-rw-r-- 1 jenkins jenkins 680 Mar 24 00:34 Jenkinsfile 00:40:11 -rw-rw-r-- 1 jenkins jenkins 11340 Mar 24 00:34 LICENSE 00:40:11 -rw-rw-r-- 1 jenkins jenkins 1779 Mar 24 00:34 Makefile 00:40:11 -rw-rw-r-- 1 jenkins jenkins 620 Mar 24 00:34 OWNERS.md 00:40:11 -rw-rw-r-- 1 jenkins jenkins 15321 Mar 24 00:34 README.md 00:40:11 -rw-rw-r-- 1 jenkins jenkins 5 Mar 24 00:30 VERSION 00:40:11 drwxrwxr-x 2 jenkins jenkins 4096 Mar 24 00:34 bin 00:40:11 drwxrwxr-x 3 jenkins jenkins 4096 Mar 24 00:34 cmd 00:40:11 -rw-r--r-- 1 jenkins jenkins 14200 Mar 24 00:39 coverage.out 00:40:11 drwxrwxr-x 2 jenkins jenkins 4096 Mar 24 00:34 driver 00:40:11 -rw-rw-r-- 1 jenkins jenkins 3399 Mar 24 00:34 go.mod 00:40:11 -rw-rw-r-- 1 jenkins jenkins 31153 Mar 24 00:34 go.sum 00:40:11 drwxrwxr-x 4 jenkins jenkins 4096 Mar 24 00:34 snap 00:40:11 -rw-rw-r-- 1 jenkins jenkins 713 Mar 24 00:34 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 00:40:12 + 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=b8e531124201590e1543ca9edaea1c885f687146 --label arch=arm64 --label version=0.0.0 . 00:40:12 Sending build context to Docker daemon 152.6kB 00:40:12 Step 1/25 : ARG BASE=golang:1.20-alpine3.17 00:40:12 Step 2/25 : FROM ${BASE} AS builder 00:40:12 ---> 3c89b02a3a76 00:40:12 Step 3/25 : ARG ADD_BUILD_TAGS="" 00:40:12 ---> Running in d40d251d58b7 00:40:12 Removing intermediate container d40d251d58b7 00:40:12 ---> 44bb3d84e98c 00:40:12 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 00:40:12 ---> Running in 25e4fcfc14a7 00:40:13 Removing intermediate container 25e4fcfc14a7 00:40:13 ---> abad8f83cc53 00:40:13 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 00:40:13 ---> Running in 8a87584c3384 00:40:13 Removing intermediate container 8a87584c3384 00:40:13 ---> f205bec2af4c 00:40:13 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 00:40:13 ---> Running in 5e0a0b40db96 00:40:14 Removing intermediate container 5e0a0b40db96 00:40:14 ---> 47bc2f40453e 00:40:14 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 00:40:14 ---> Running in 3e9cd18dfaea 00:40:14 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 00:40:15 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 00:40:16 OK: 268 MiB in 57 packages 00:40:17 Removing intermediate container 3e9cd18dfaea 00:40:17 ---> 7da207265926 00:40:17 Step 8/25 : WORKDIR /device-rest-go 00:40:17 ---> Running in 0befbffc89f5 00:40:17 Removing intermediate container 0befbffc89f5 00:40:17 ---> 8a6eaac3d233 00:40:17 Step 9/25 : COPY go.mod vendor* ./ 00:40:17 ---> e8ee17908429 00:40:17 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 00:40:18 ---> Running in 669c4075ae5f 00:40:20 Removing intermediate container 669c4075ae5f 00:40:20 ---> c527a1768a7a 00:40:20 Step 11/25 : COPY . . 00:40:21 ---> 2bb2b39999e8 00:40:21 Step 12/25 : RUN $MAKE 00:40:21 ---> Running in bb389417c132 00:40:21 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 00:42:31 Removing intermediate container bb389417c132 00:42:31 ---> b2b5681d49a8 00:42:31 Step 13/25 : FROM alpine:3.17 00:42:31 3.17: Pulling from library/alpine 00:42:31 af6eaf76a39c: Already exists 00:42:31 Digest: sha256:ff6bdca1701f3a8a67e328815ff2346b0e4067d32ec36b7992c1fdc001dc8517 00:42:31 Status: Downloaded newer image for alpine:3.17 00:42:31 ---> d74e625d9115 00:42:31 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 00:42:31 ---> Running in 23090b79776f 00:42:31 Removing intermediate container 23090b79776f 00:42:31 ---> e72114747523 00:42:31 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 00:42:31 ---> Running in 407c4b048e8c 00:42:31 Removing intermediate container 407c4b048e8c 00:42:31 ---> 0c7bfcfcfec5 00:42:31 Step 16/25 : RUN apk add --update --no-cache dumb-init 00:42:31 ---> Running in ebed9a535f93 00:42:31 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 00:42:31 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 00:42:31 (1/1) Installing dumb-init (1.2.5-r2) 00:42:31 Executing busybox-1.35.0-r29.trigger 00:42:31 OK: 8 MiB in 16 packages 00:42:31 Removing intermediate container ebed9a535f93 00:42:31 ---> 8723637e6175 00:42:31 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 00:42:31 ---> b41981d3c4f1 00:42:31 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 00:42:31 ---> a2ff8a10aa30 00:42:31 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 00:42:31 ---> f85cf2ad015c 00:42:31 Step 20/25 : EXPOSE 59986 00:42:31 ---> Running in 74c18b93b2ca 00:42:31 Removing intermediate container 74c18b93b2ca 00:42:31 ---> 9b12c72e8083 00:42:31 Step 21/25 : ENTRYPOINT ["/device-rest"] 00:42:31 ---> Running in 77758bf2c655 00:42:31 Removing intermediate container 77758bf2c655 00:42:31 ---> 4a4a612e2101 00:42:31 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 00:42:31 ---> Running in 754b5b4d04f6 00:42:31 Removing intermediate container 754b5b4d04f6 00:42:31 ---> 3955dc87b260 00:42:31 Step 23/25 : LABEL arch=arm64 00:42:31 ---> Running in e3df71802926 00:42:31 Removing intermediate container e3df71802926 00:42:31 ---> e1c4a97e41d5 00:42:31 Step 24/25 : LABEL git_sha=b8e531124201590e1543ca9edaea1c885f687146 00:42:31 ---> Running in fc4c0f8e61ca 00:42:31 Removing intermediate container fc4c0f8e61ca 00:42:31 ---> 430b202d3a22 00:42:31 Step 25/25 : LABEL version=0.0.0 00:42:31 ---> Running in 573f72b37a41 00:42:31 Removing intermediate container 573f72b37a41 00:42:31 ---> 7b22c3e31c95 00:42:31 [Warning] One or more build-args [ARCH] were not consumed 00:42:31 Successfully built 7b22c3e31c95 00:42:31 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 00:42:32 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 00:42:32 00:42:32 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 00:42:32 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 00:42:32 arm64: Pulling from edgex-lftools-log-publisher 00:42:32 8998bd30e6a1: Pulling fs layer 00:42:32 04944245beec: Pulling fs layer 00:42:32 699f458cf7ca: Pulling fs layer 00:42:32 765212b225bb: Pulling fs layer 00:42:32 f23df028b6ca: Pulling fs layer 00:42:32 d65c8cfc05b1: Pulling fs layer 00:42:32 2437ff75d9bd: Pulling fs layer 00:42:32 765212b225bb: Waiting 00:42:32 f23df028b6ca: Waiting 00:42:32 d65c8cfc05b1: Waiting 00:42:32 2437ff75d9bd: Waiting 00:42:33 04944245beec: Verifying Checksum 00:42:33 04944245beec: Download complete 00:42:33 765212b225bb: Verifying Checksum 00:42:33 765212b225bb: Download complete 00:42:33 f23df028b6ca: Verifying Checksum 00:42:33 f23df028b6ca: Download complete 00:42:33 d65c8cfc05b1: Verifying Checksum 00:42:33 d65c8cfc05b1: Download complete 00:42:33 699f458cf7ca: Verifying Checksum 00:42:33 699f458cf7ca: Download complete 00:42:33 8998bd30e6a1: Verifying Checksum 00:42:33 8998bd30e6a1: Download complete 00:42:35 2437ff75d9bd: Verifying Checksum 00:42:35 2437ff75d9bd: Download complete 00:42:37 8998bd30e6a1: Pull complete 00:42:39 04944245beec: Pull complete 00:42:40 699f458cf7ca: Pull complete 00:42:41 765212b225bb: Pull complete 00:42:41 f23df028b6ca: Pull complete 00:42:42 d65c8cfc05b1: Pull complete 00:43:05 2437ff75d9bd: Pull complete 00:43:05 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 00:43:05 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 00:43:05 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 00:43:05 prd-ubuntu20.04-docker-arm64-4c-16g-5632 does not seem to be running inside a container 00:43:05 $ 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 ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 00:43:08 $ docker top 18883bfbf7c3361fe4be95d70c4f1222d5ffa991937cd2648b6a5aa1e96f06b5 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 00:43:09 ---> job-cost.sh 00:43:09 lf-activate-venv: SKIPPING 00:43:09 INFO: No Stack... 00:43:09 INFO: Retrieving Pricing Info for: v3-standard-4 00:43:10 INFO: Archiving Costs [Pipeline] sh 00:43:10 + cat /w/workspace/device-rest-go/1/archives/cost.csv 00:43:10 + cut -d, -f6 [Pipeline] lock 00:43:10 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-281-1-stack-cost] 00:43:10 Resource [jenkins-edgexfoundry-device-rest-go-PR-281-1-stack-cost] did not exist. Created. 00:43:10 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-281-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 00:43:11 /w/workspace/device-rest-go/1@tmp/durable-c3dd3661/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 00:43:12 + echo total: 0.10999999940395355 [Pipeline] stash 00:43:12 Warning: overwriting stash ‘stack-cost’ 00:43:12 Stashed 1 file(s) [Pipeline] } 00:43:12 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-281-1-stack-cost] [Pipeline] // lock [Pipeline] } 00:43:12 $ docker stop --time=1 18883bfbf7c3361fe4be95d70c4f1222d5ffa991937cd2648b6a5aa1e96f06b5 00:43:13 $ docker rm -f --volumes 18883bfbf7c3361fe4be95d70c4f1222d5ffa991937cd2648b6a5aa1e96f06b5 [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 00:43:14 provisioning config files... 00:43:14 copy managed file [device-rest-go-codecov-token] to file:/w/workspace/gexfoundry_device-rest-go_PR-281@tmp/config3558182774613532209tmp [Pipeline] { [Pipeline] sh 00:43:15 + set +x 00:43:15 + + curl -s https://codecov.io/bash 00:43:15 bash -s -- 00:43:15 00:43:15 _____ _ 00:43:15 / ____| | | 00:43:15 | | ___ __| | ___ ___ _____ __ 00:43:15 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 00:43:15 | |___| (_) | (_| | __/ (_| (_) \ V / 00:43:15 \_____\___/ \__,_|\___|\___\___/ \_/ 00:43:15 Bash-1.0.6 00:43:15 00:43:15 00:43:15 ==> git version 2.25.1 found 00:43:15 ==> 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 00:43:15 Release-Date: 2020-01-08 00:43:15 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 00:43:15 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 00:43:15 ==> Jenkins CI detected. 00:43:15 current dir:  /w/workspace/gexfoundry_device-rest-go_PR-281 00:43:15 project root: . 00:43:15 --> token set from env 00:43:15 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 00:43:15 ==> Running gcov in . (disable via -X gcov) 00:43:15 ==> Python coveragepy not found 00:43:15 ==> Searching for coverage reports in: 00:43:15 + . 00:43:15 -> Found 1 reports 00:43:15 ==> Detecting git/mercurial file structure 00:43:15 ==> Reading reports 00:43:15 + ./coverage.out bytes=14200 00:43:15 ==> Appending adjustments 00:43:15 https://docs.codecov.io/docs/fixing-reports 00:43:15 + Found adjustments 00:43:15 ==> Gzipping contents 00:43:15 4.0K /tmp/codecov.LJOU5g.gz 00:43:15 ==> Uploading reports 00:43:15 url: https://codecov.io 00:43:15 query: branch=PR-281&commit=b8e531124201590e1543ca9edaea1c885f687146&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-281%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=281&job=&cmd_args= 00:43:15 -> Pinging Codecov 00:43:15 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=c51feb23-73ac-4f49-b3d1-d26df23137db&branch=PR-281&commit=b8e531124201590e1543ca9edaea1c885f687146&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-281%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=281&job=&cmd_args= 00:43:15 -> Uploading to 00:43:15 https://storage.googleapis.com/codecov/v4/raw/2023-03-24/4E5D53B4F1F92C436F7061BF334D961C/b8e531124201590e1543ca9edaea1c885f687146/91d428c0-718f-426a-8851-8f19ba40fcd5.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20230324%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20230324T004315Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=b47d349993ad380616fe389896f8fe39d8f9a688b7afe113a959cfdac467ee81 00:43:15 % Total % Received % Xferd Average Speed Time Time Time Current 00:43:15 Dload Upload Total Spent Left Speed 00:43:15 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 2437 0 0 100 2437 0 10977 --:--:-- --:--:-- --:--:-- 10928 100 2437 0 0 100 2437 0 9519 --:--:-- --:--:-- --:--:-- 9482 00:43:15 -> Reports have been successfully queued for processing at https://app.codecov.io/github/edgexfoundry/device-rest-go/commit/b8e531124201590e1543ca9edaea1c885f687146 [Pipeline] } 00:43:15 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 00:43:17 + [ -d /w/workspace/gexfoundry_device-rest-go_PR-281/archives ] 00:43:17 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-281/archives 00:43:17 total 16 00:43:17 drwxr-xr-x 3 root root 4096 Mar 24 00:32 . 00:43:17 drwxrwxr-x 10 jenkins jenkins 4096 Mar 24 00:33 .. 00:43:17 drwxr-xr-x 2 root root 4096 Mar 24 00:32 cost 00:43:17 -rw-r--r-- 1 root root 86 Mar 24 00:32 cost.csv 00:43:17 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-rest-go_PR-281/archives 00:43:17 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-281/archives 00:43:17 total 16 00:43:17 drwxr-xr-x 3 jenkins jenkins 4096 Mar 24 00:32 . 00:43:17 drwxrwxr-x 10 jenkins jenkins 4096 Mar 24 00:33 .. 00:43:17 drwxr-xr-x 2 jenkins jenkins 4096 Mar 24 00:32 cost 00:43:17 -rw-r--r-- 1 jenkins jenkins 86 Mar 24 00:32 cost.csv [Pipeline] libraryResource [Pipeline] sh 00:43:17 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 00:43:18 ---> package-listing.sh 00:43:18 ++ facter osfamily 00:43:18 ++ tr '[:upper:]' '[:lower:]' 00:43:18 + OS_FAMILY=debian 00:43:18 + workspace=/w/workspace/gexfoundry_device-rest-go_PR-281 00:43:18 + START_PACKAGES=/tmp/packages_start.txt 00:43:18 + END_PACKAGES=/tmp/packages_end.txt 00:43:18 + DIFF_PACKAGES=/tmp/packages_diff.txt 00:43:18 + PACKAGES=/tmp/packages_start.txt 00:43:18 + '[' /w/workspace/gexfoundry_device-rest-go_PR-281 ']' 00:43:18 + PACKAGES=/tmp/packages_end.txt 00:43:18 + case "${OS_FAMILY}" in 00:43:18 + dpkg -l 00:43:18 + grep '^ii' 00:43:18 + '[' -f /tmp/packages_start.txt ']' 00:43:18 + '[' -f /tmp/packages_end.txt ']' 00:43:18 + diff /tmp/packages_start.txt /tmp/packages_end.txt 00:43:18 + '[' /w/workspace/gexfoundry_device-rest-go_PR-281 ']' 00:43:18 + mkdir -p /w/workspace/gexfoundry_device-rest-go_PR-281/archives/ 00:43:18 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/gexfoundry_device-rest-go_PR-281/archives/ [Pipeline] echo 00:43:18 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-281/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 00:43:19 + facter operatingsystem [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 00:43:19 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 00:43:19 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 00:43:19 prd-ubuntu20.04-docker-8c-8g-5630 does not seem to be running inside a container 00:43:19 $ 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-281/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-281 -v /w/workspace/gexfoundry_device-rest-go_PR-281:/w/workspace/gexfoundry_device-rest-go_PR-281:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-281@tmp:/w/workspace/gexfoundry_device-rest-go_PR-281@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 00:43:20 $ docker top 1161e060b9c48c31f76a5b4e94182a6fcb0c8d14b9b548343bf06d64e730ea92 -eo pid,comm [Pipeline] { [Pipeline] sh 00:43:20 + touch /tmp/pre-build-complete [Pipeline] sh 00:43:20 + mkdir -p /var/log/sysstat [Pipeline] sh 00:43:21 + ls /var/log/sa-host 00:43:21 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 00:43:21 provisioning config files... 00:43:21 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-281@tmp/config10587680175461479810tmp [Pipeline] { [Pipeline] echo 00:43:21 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 00:43:21 ---> create-netrc.sh [Pipeline] } 00:43:21 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 00:43:22 ---> python-tools-install.sh [Pipeline] echo 00:43:22 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 00:43:22 ---> sudo-logs.sh 00:43:22 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 00:43:22 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 00:43:22 ---> job-cost.sh 00:43:22 lf-activate-venv: SKIPPING 00:43:22 DEBUG: total: 0.2199999988079071 00:43:22 INFO: Retrieving Stack Cost... 00:43:23 INFO: Retrieving Pricing Info for: v3-standard-8 00:43:23 INFO: Archiving Costs [Pipeline] echo 00:43:23 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 00:43:23 ---> logs-deploy.sh 00:43:23 lf-activate-venv: SKIPPING 00:43:23 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-281/1 00:43:23 INFO: archiving workspace using pattern(s): 00:43:24 Archives upload complete. 00:43:24 INFO: archiving logs to Nexus