Pull request #310 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 jumpingliu for edgexfoundry/device-rest-go Loading trusted files from base branch main at 322050c65873fd50260d8a368346f4ba3310d130 rather than ac822673d4c03ae078a7deab56dafbd30136dfbc Obtained Jenkinsfile from 322050c65873fd50260d8a368346f4ba3310d130 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-ssh10263150948012294095.key > git ls-remote -h -t -- git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Found match: refs/tags/stable revision 4fc256d9079ed2258907e613f84b1b8da264a4bd Resolving tag commit... (remote references may be a lightweight tag or an annotated tag) > git rev-parse --resolve-git-dir /var/lib/jenkins/caches/git-95b00d7e16de695d9f4849f078f37a0f/.git # timeout=10 Setting origin to git@github.com:edgexfoundry/edgex-global-pipelines.git > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Fetching origin... Fetching upstream changes from origin > git --version # timeout=10 > git --version # 'git version 2.16.6' > git config --get remote.origin.url # timeout=10 using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/caches/git-95b00d7e16de695d9f4849f078f37a0f@tmp/jenkins-gitclient-ssh8500689439975584269.key > git fetch --tags --progress -- origin +refs/heads/*:refs/remotes/origin/* # timeout=10 > git rev-parse refs/tags/stable^{commit} # timeout=10 Resolved tag stable revision 4fc256d9079ed2258907e613f84b1b8da264a4bd The recommended git tool is: git using credential edgex-jenkins-ssh 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-310/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-310/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh8245916409872821952.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-310/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh648849316113031549.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision 4fc256d9079ed2258907e613f84b1b8da264a4bd (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f 4fc256d9079ed2258907e613f84b1b8da264a4bd # timeout=10 Commit message: "Merge pull request #430 from ernestojeda/release-lock" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 > 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-ssh12486296178777466139.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-310/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-310/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e@tmp/jenkins-gitclient-ssh14537455505960782850.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 4fc256d9079ed2258907e613f84b1b8da264a4bd 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-14434 in /w/workspace/gexfoundry_device-rest-go_PR-310 [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-310 # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git > git --version # timeout=10 > git --version # 'git version 2.25.1' using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/310/head:refs/remotes/origin/PR-310 +refs/heads/main:refs/remotes/origin/main # timeout=10 Merging remotes/origin/main commit 322050c65873fd50260d8a368346f4ba3310d130 into PR head commit ac822673d4c03ae078a7deab56dafbd30136dfbc Merge succeeded, producing ac822673d4c03ae078a7deab56dafbd30136dfbc Checking out Revision ac822673d4c03ae078a7deab56dafbd30136dfbc (PR-310) > git config core.sparsecheckout # timeout=10 > git checkout -f ac822673d4c03ae078a7deab56dafbd30136dfbc # 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 322050c65873fd50260d8a368346f4ba3310d130 # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f ac822673d4c03ae078a7deab56dafbd30136dfbc # timeout=10 Commit message: "build: Ignore all go-mods except device-sdk-go" First time build. Skipping changelog. > git --version # timeout=10 > git --version # 'git version 2.25.1' fatal: bad object 4fc256d9079ed2258907e613f84b1b8da264a4bd [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 04:14:32 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 04:14:32 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 04:14:32 ========================================================= 04:14:32 EdgeX Global Pipelines Version Info 04:14:32 ========================================================= [Pipeline] libraryResource [Pipeline] sh 04:14:33 ------------------- 04:14:33 stable info: 04:14:33 ------------------- 04:14:33 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 04:14:33 Commit SHA: 4fc256d9079ed2258907e613f84b1b8da264a4bd 04:14:33 Message: update stable to v1.0.249 04:14:33 ------------------- 04:14:33 experimental info: 04:14:33 ------------------- 04:14:33 Commited By: **** collab-it+edgex@linuxfoundation.org 04:14:33 Commit SHA: 4fc256d9079ed2258907e613f84b1b8da264a4bd 04:14:33 Message: update experimental to v1.0.249 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 04:14:34 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 04:14:34 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 04:14:34 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 04:14:34 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 04:14:34 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 04:14:34 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.20 [Pipeline] echo 04:14:34 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 04:14:34 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 04:14:34 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 04:14:34 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 04:14:34 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 04:14:34 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 04:14:34 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 04:14:34 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 04:14:34 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 04:14:34 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 04:14:34 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 04:14:34 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 04:14:34 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 04:14:34 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 04:14:35 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 04:14:35 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 04:14:35 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 04:14:35 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 04:14:35 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 04:14:35 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 04:14:35 [edgeXSetupEnvironment]: set envvar SNYK_DEBUG = false [Pipeline] echo 04:14:35 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-310 [Pipeline] echo 04:14:35 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-310 [Pipeline] echo 04:14:35 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-310 [Pipeline] echo 04:14:35 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = ac822673d4c03ae078a7deab56dafbd30136dfbc [Pipeline] echo 04:14:35 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = ac82267 [Pipeline] echo 04:14:35 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 04:14:35 provisioning config files... 04:14:35 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-310@tmp/config15430792096769607950tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 04:14:36 ---> docker-login.sh 04:14:36 nexus3.edgexfoundry.org:10001 04:14:36 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:14:36 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:14:36 Configure a credential helper to remove this warning. See 04:14:36 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:14:36 04:14:36 Login Succeeded 04:14:36 nexus3.edgexfoundry.org:10002 04:14:36 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:14:36 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:14:36 Configure a credential helper to remove this warning. See 04:14:36 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:14:36 04:14:36 Login Succeeded 04:14:36 nexus3.edgexfoundry.org:10003 04:14:36 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:14:36 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:14:36 Configure a credential helper to remove this warning. See 04:14:36 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:14:36 04:14:36 Login Succeeded 04:14:36 nexus3.edgexfoundry.org:10004 04:14:36 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:14:36 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:14:36 Configure a credential helper to remove this warning. See 04:14:36 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:14:36 04:14:36 Login Succeeded 04:14:36 docker.io 04:14:36 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:14:36 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:14:36 Configure a credential helper to remove this warning. See 04:14:36 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:14:36 04:14:36 Login Succeeded 04:14:36 ---> docker-login.sh ends [Pipeline] } 04:14:36 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 04:14:37 + git rev-list -1 --merges ac822673d4c03ae078a7deab56dafbd30136dfbc~1..ac822673d4c03ae078a7deab56dafbd30136dfbc [Pipeline] echo 04:14:37 -----------> git rev-list -1 --merges ac822673d4c03ae078a7deab56dafbd30136dfbc~1..ac822673d4c03ae078a7deab56dafbd30136dfbc ac822673d4c03ae078a7deab56dafbd30136dfbc [false] [Pipeline] sh 04:14:37 + git log --format=format:%s -1 ac822673d4c03ae078a7deab56dafbd30136dfbc [Pipeline] echo 04:14:37 ========================================================= 04:14:37 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 04:14:37 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 04:14:38 + git log --format=format:%s -1 ac822673d4c03ae078a7deab56dafbd30136dfbc [Pipeline] echo 04:14:38 [semverPrep] GIT_COMMIT: ac822673d4c03ae078a7deab56dafbd30136dfbc, Commit Message: build: Ignore all go-mods except device-sdk-go [Pipeline] echo 04:14:38 [semverPrep] This is not a build commit. [Pipeline] sh 04:14:38 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 04:14:38 + grep -v github /etc/ssh/ssh_known_hosts 04:14:38 + [ -e /tmp/ssh_known_hosts ] 04:14:38 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 04:14:38 + sudo tee -a /etc/ssh/ssh_known_hosts 04:14:38 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 04:14:38 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:14:39 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 04:14:39 04:14:39 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:14:39 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 04:14:39 0.1.4: Pulling from edgex-devops/py-git-semver 04:14:39 b85a868b505f: Pulling fs layer 04:14:39 e2be974225ed: Pulling fs layer 04:14:39 339a4e72a1f5: Pulling fs layer 04:14:39 988bab9f4d93: Pulling fs layer 04:14:39 1469e6f7b9e6: Pulling fs layer 04:14:39 eaf3925da568: Pulling fs layer 04:14:39 bab4dde63d76: Pulling fs layer 04:14:39 bde34c3a00c8: Pulling fs layer 04:14:39 b352a97aabf1: Pulling fs layer 04:14:39 4872d77fe225: Pulling fs layer 04:14:39 5851b861e8e6: Pulling fs layer 04:14:39 bde34c3a00c8: Waiting 04:14:39 1469e6f7b9e6: Waiting 04:14:39 bab4dde63d76: Waiting 04:14:39 b352a97aabf1: Waiting 04:14:39 5851b861e8e6: Waiting 04:14:39 4872d77fe225: Waiting 04:14:39 988bab9f4d93: Waiting 04:14:39 eaf3925da568: Waiting 04:14:39 e2be974225ed: Verifying Checksum 04:14:39 e2be974225ed: Download complete 04:14:39 988bab9f4d93: Verifying Checksum 04:14:39 988bab9f4d93: Download complete 04:14:39 1469e6f7b9e6: Verifying Checksum 04:14:39 1469e6f7b9e6: Download complete 04:14:39 eaf3925da568: Verifying Checksum 04:14:39 eaf3925da568: Download complete 04:14:39 339a4e72a1f5: Verifying Checksum 04:14:39 339a4e72a1f5: Download complete 04:14:39 bde34c3a00c8: Verifying Checksum 04:14:39 bde34c3a00c8: Download complete 04:14:39 b352a97aabf1: Verifying Checksum 04:14:39 b352a97aabf1: Download complete 04:14:39 4872d77fe225: Verifying Checksum 04:14:39 4872d77fe225: Download complete 04:14:39 5851b861e8e6: Verifying Checksum 04:14:39 5851b861e8e6: Download complete 04:14:39 b85a868b505f: Verifying Checksum 04:14:39 b85a868b505f: Download complete 04:14:40 bab4dde63d76: Verifying Checksum 04:14:41 b85a868b505f: Pull complete 04:14:41 e2be974225ed: Pull complete 04:14:41 339a4e72a1f5: Pull complete 04:14:41 988bab9f4d93: Pull complete 04:14:42 1469e6f7b9e6: Pull complete 04:14:42 eaf3925da568: Pull complete 04:14:44 bab4dde63d76: Pull complete 04:14:44 bde34c3a00c8: Pull complete 04:14:44 b352a97aabf1: Pull complete 04:14:44 4872d77fe225: Pull complete 04:14:44 5851b861e8e6: Pull complete 04:14:44 Digest: sha256:59a28aa3b44c0bc56b9c3d2e9ecabe42e63693d939cc6e425eb8786f29f663d8 04:14:44 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 04:14:44 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 04:14:44 prd-ubuntu20.04-docker-8c-8g-14434 does not seem to be running inside a container 04:14:44 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/gexfoundry_device-rest-go_PR-310 -v /w/workspace/gexfoundry_device-rest-go_PR-310:/w/workspace/gexfoundry_device-rest-go_PR-310:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-310@tmp:/w/workspace/gexfoundry_device-rest-go_PR-310@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 cat 04:14:46 $ docker top 5166c1392c4a3f22fcbec74371c4b8a58766fc47b26e41bb16881ee33b0d482c -eo pid,comm 04:14:46 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). 04:14:46 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 04:14:46 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 04:14:46 [ssh-agent] Looking for ssh-agent implementation... 04:14:46 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 04:14:46 $ docker exec 5166c1392c4a3f22fcbec74371c4b8a58766fc47b26e41bb16881ee33b0d482c ssh-agent 04:14:47 SSH_AUTH_SOCK=/tmp/ssh-NICWuk1343ui/agent.32 04:14:47 SSH_AGENT_PID=38 04:14:47 Running ssh-add (command line suppressed) 04:14:47 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-310@tmp/private_key_17643768187896019829.key (/w/workspace/gexfoundry_device-rest-go_PR-310@tmp/private_key_17643768187896019829.key) 04:14:47 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 04:14:47 + git tag --points-at HEAD [Pipeline] } 04:14:47 $ docker exec --env ******** --env ******** 5166c1392c4a3f22fcbec74371c4b8a58766fc47b26e41bb16881ee33b0d482c ssh-agent -k 04:14:47 unset SSH_AUTH_SOCK; 04:14:47 unset SSH_AGENT_PID; 04:14:47 echo Agent pid 38 killed; 04:14:47 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 04:14:47 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 04:14:47 [ssh-agent] Looking for ssh-agent implementation... 04:14:47 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 04:14:47 $ docker exec 5166c1392c4a3f22fcbec74371c4b8a58766fc47b26e41bb16881ee33b0d482c ssh-agent 04:14:47 SSH_AUTH_SOCK=/tmp/ssh-wTg3neSDNPJ4/agent.70 04:14:47 SSH_AGENT_PID=76 04:14:47 Running ssh-add (command line suppressed) 04:14:48 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-310@tmp/private_key_628764126610389481.key (/w/workspace/gexfoundry_device-rest-go_PR-310@tmp/private_key_628764126610389481.key) 04:14:48 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 04:14:48 + git semver init 04:14:48 2023-05-08 04:14:48,590 [run_init] DEBUG init version:0.0.0 force:False 04:14:48 2023-05-08 04:14:48,591 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/gexfoundry_device-rest-go_PR-310/.semver 04:14:48 2023-05-08 04:14:48,592 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-rest-go.git /w/workspace/gexfoundry_device-rest-go_PR-310/.semver 04:14:48 2023-05-08 04:14:48,592 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-rest-go.git', '/w/workspace/gexfoundry_device-rest-go_PR-310/.semver'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-310, universal_newlines=False, shell=None, istream=None) 04:14:50 2023-05-08 04:14:49,700 [append_file] DEBUG append to file:/w/workspace/gexfoundry_device-rest-go_PR-310/.git/info/exclude 04:14:50 2023-05-08 04:14:49,701 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/gexfoundry_device-rest-go_PR-310/.semver/PR-310 with force:False 04:14:50 2023-05-08 04:14:49,701 [write_file] DEBUG write to file:/w/workspace/gexfoundry_device-rest-go_PR-310/.semver/PR-310 04:14:50 2023-05-08 04:14:49,706 [execute] INFO git cat-file --batch-check 04:14:50 2023-05-08 04:14:49,706 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-310/.semver, universal_newlines=False, shell=None, istream=) 04:14:50 2023-05-08 04:14:49,712 [execute] INFO git cat-file --batch 04:14:50 2023-05-08 04:14:49,712 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-310/.semver, universal_newlines=False, shell=None, istream=) 04:14:50 2023-05-08 04:14:49,715 [read_version] DEBUG read version from /w/workspace/gexfoundry_device-rest-go_PR-310/.semver/PR-310 04:14:50 0.0.0 [Pipeline] } 04:14:50 $ docker exec --env ******** --env ******** 5166c1392c4a3f22fcbec74371c4b8a58766fc47b26e41bb16881ee33b0d482c ssh-agent -k 04:14:50 unset SSH_AUTH_SOCK; 04:14:50 unset SSH_AGENT_PID; 04:14:50 echo Agent pid 76 killed; 04:14:50 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 04:14:50 + git semver [Pipeline] } 04:14:50 $ docker stop --time=1 5166c1392c4a3f22fcbec74371c4b8a58766fc47b26e41bb16881ee33b0d482c 04:14:52 $ docker rm -f --volumes 5166c1392c4a3f22fcbec74371c4b8a58766fc47b26e41bb16881ee33b0d482c [Pipeline] // withDockerContainer [Pipeline] sh 04:14:52 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 04:14:52 Stashed 1 file(s) [Pipeline] echo 04:14:52 [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 04:14:53 provisioning config files... 04:14:53 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-310@tmp/config15030777741155150911tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 04:14:53 ---> docker-login.sh 04:14:53 nexus3.edgexfoundry.org:10001 04:14:53 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:14:53 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:14:53 Configure a credential helper to remove this warning. See 04:14:53 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:14:53 04:14:53 Login Succeeded 04:14:53 nexus3.edgexfoundry.org:10002 04:14:53 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:14:53 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:14:53 Configure a credential helper to remove this warning. See 04:14:53 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:14:53 04:14:53 Login Succeeded 04:14:53 nexus3.edgexfoundry.org:10003 04:14:54 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:14:54 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:14:54 Configure a credential helper to remove this warning. See 04:14:54 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:14:54 04:14:54 Login Succeeded 04:14:54 nexus3.edgexfoundry.org:10004 04:14:54 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:14:54 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:14:54 Configure a credential helper to remove this warning. See 04:14:54 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:14:54 04:14:54 Login Succeeded 04:14:54 docker.io 04:14:54 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:14:54 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:14:54 Configure a credential helper to remove this warning. See 04:14:54 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:14:54 04:14:54 Login Succeeded 04:14:54 ---> docker-login.sh ends [Pipeline] } 04:14:54 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 04:14:54 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 04:14:54 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 04:14:54 ========================================================= 04:14:54 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine] 04:14:54 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:14:55 + 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 . 04:14:55 Sending build context to Docker daemon 10.91MB 04:14:55 Step 1/12 : ARG BASE=golang:1.20-alpine3.17 04:14:55 Step 2/12 : FROM ${BASE} AS builder 04:14:55 1.20-alpine: Pulling from edgex-devops/edgex-golang-base 04:14:55 f56be85fc22e: Pulling fs layer 04:14:55 85791d961cd3: Pulling fs layer 04:14:55 d694b5ae8c79: Pulling fs layer 04:14:55 9f32a84ed3da: Pulling fs layer 04:14:55 4d19c01a9841: Pulling fs layer 04:14:55 9325e15d5711: Pulling fs layer 04:14:55 556b6ee489ea: Pulling fs layer 04:14:55 c5a4b2cf53e6: Pulling fs layer 04:14:55 9325e15d5711: Waiting 04:14:55 4d19c01a9841: Waiting 04:14:55 9f32a84ed3da: Waiting 04:14:55 556b6ee489ea: Waiting 04:14:55 c5a4b2cf53e6: Waiting 04:14:55 85791d961cd3: Verifying Checksum 04:14:55 85791d961cd3: Download complete 04:14:55 9f32a84ed3da: Verifying Checksum 04:14:55 9f32a84ed3da: Download complete 04:14:55 4d19c01a9841: Verifying Checksum 04:14:55 4d19c01a9841: Download complete 04:14:55 f56be85fc22e: Verifying Checksum 04:14:55 f56be85fc22e: Download complete 04:14:55 9325e15d5711: Verifying Checksum 04:14:55 9325e15d5711: Download complete 04:14:55 f56be85fc22e: Pull complete 04:14:55 85791d961cd3: Pull complete 04:14:55 c5a4b2cf53e6: Verifying Checksum 04:14:55 c5a4b2cf53e6: Download complete 04:14:55 d694b5ae8c79: Verifying Checksum 04:14:55 d694b5ae8c79: Download complete 04:14:56 556b6ee489ea: Verifying Checksum 04:14:56 556b6ee489ea: Download complete 04:14:59 d694b5ae8c79: Pull complete 04:14:59 9f32a84ed3da: Pull complete 04:14:59 4d19c01a9841: Pull complete 04:14:59 9325e15d5711: Pull complete 04:15:01 556b6ee489ea: Pull complete 04:15:02 c5a4b2cf53e6: Pull complete 04:15:02 Digest: sha256:cdb650785bd12602035d3ff87499385c169773a4d12d6eaf394b34464d3a0f2b 04:15:02 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine 04:15:02 ---> c4be618373d6 04:15:02 Step 3/12 : ARG ADD_BUILD_TAGS="" 04:15:06 ---> Running in 8250170cca5e 04:15:06 Removing intermediate container 8250170cca5e 04:15:06 ---> ed2badfd1195 04:15:06 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 04:15:06 ---> Running in c1d7a7078377 04:15:06 Removing intermediate container c1d7a7078377 04:15:06 ---> 59328d562474 04:15:06 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 04:15:06 ---> Running in b595d20ef296 04:15:06 Removing intermediate container b595d20ef296 04:15:06 ---> 34560d1a6f67 04:15:06 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 04:15:06 ---> Running in 3d12b30e1dcf 04:15:06 Removing intermediate container 3d12b30e1dcf 04:15:06 ---> 3bd8a1e9a764 04:15:06 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 04:15:06 ---> Running in c9b7e2906f3e 04:15:07 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 04:15:07 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 04:15:07 (1/4) Installing openssh-keygen (9.1_p1-r2) 04:15:07 (2/4) Installing libedit (20221030.3.1-r0) 04:15:07 (3/4) Installing openssh-client-common (9.1_p1-r2) 04:15:07 (4/4) Installing openssh-client-default (9.1_p1-r2) 04:15:07 Executing busybox-1.35.0-r29.trigger 04:15:07 OK: 269 MiB in 57 packages 04:15:07 Removing intermediate container c9b7e2906f3e 04:15:07 ---> 5d8e85a92961 04:15:07 Step 8/12 : WORKDIR /device-rest-go 04:15:07 ---> Running in 2650a1abcb34 04:15:07 Removing intermediate container 2650a1abcb34 04:15:07 ---> 3f159ff9f42a 04:15:07 Step 9/12 : COPY go.mod vendor* ./ 04:15:08 ---> 403faa63c067 04:15:08 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 04:15:08 ---> Running in 5edb92221789 04:15:08 Still waiting to schedule task 04:15:08 Waiting for next available executor on ‘ubuntu20.04-docker-arm64-4c-16g’ 04:15:30 Removing intermediate container 5edb92221789 04:15:30 ---> 85a03e937edc 04:15:30 Step 11/12 : COPY . . 04:15:30 ---> ee3df64cf0ab 04:15:30 Step 12/12 : RUN $MAKE 04:15:30 ---> Running in 6f5e9bb893f3 04:15:30 noop 04:15:30 Removing intermediate container 6f5e9bb893f3 04:15:30 ---> 885b34b82c53 04:15:30 Successfully built 885b34b82c53 04:15:30 Successfully tagged ci-base-image-x86_64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:15:31 + docker inspect -f . ci-base-image-x86_64 04:15:31 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 04:15:31 prd-ubuntu20.04-docker-8c-8g-14434 does not seem to be running inside a container 04:15:31 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-310 -v /w/workspace/gexfoundry_device-rest-go_PR-310:/w/workspace/gexfoundry_device-rest-go_PR-310:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-310@tmp:/w/workspace/gexfoundry_device-rest-go_PR-310@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 04:15:31 $ docker top 2828e48352861aa56204c22d2599a7580e4afa59edd13a06e7954886fb42e714 -eo pid,comm [Pipeline] { [Pipeline] sh 04:15:31 + go version 04:15:31 go version go1.20.2 linux/amd64 [Pipeline] } 04:15:31 $ docker stop --time=1 2828e48352861aa56204c22d2599a7580e4afa59edd13a06e7954886fb42e714 04:15:33 $ docker rm -f --volumes 2828e48352861aa56204c22d2599a7580e4afa59edd13a06e7954886fb42e714 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:15:34 + docker inspect -f . ci-base-image-x86_64 04:15:34 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 04:15:34 prd-ubuntu20.04-docker-8c-8g-14434 does not seem to be running inside a container 04:15:34 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged -v /var/run/docker.sock:/var/run/docker.sock -w /w/workspace/gexfoundry_device-rest-go_PR-310 -v /w/workspace/gexfoundry_device-rest-go_PR-310:/w/workspace/gexfoundry_device-rest-go_PR-310:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-310@tmp:/w/workspace/gexfoundry_device-rest-go_PR-310@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 04:15:34 $ docker top 3ab3ac0828b9f445b18d1bc0b1dd2ce86f75b82b19540d83adff7a63e9837f6f -eo pid,comm [Pipeline] { [Pipeline] sh 04:15:34 + git config --global --add safe.directory /w/workspace/gexfoundry_device-rest-go_PR-310 [Pipeline] fileExists [Pipeline] sh 04:15:35 + make test 04:15:35 go test ./... -coverprofile=coverage.out ./... 04:15:39 ? github.com/edgexfoundry/device-rest-go [no test files] 04:15:49 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 04:15:49 ok github.com/edgexfoundry/device-rest-go/driver 0.012s coverage: 32.2% of statements 04:15:54 go vet ./... 04:15:57 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 04:15:57 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 04:15:57 ./bin/test-attribution-txt.sh [Pipeline] echo 04:15:57 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 04:15:58 $ docker stop --time=1 3ab3ac0828b9f445b18d1bc0b1dd2ce86f75b82b19540d83adff7a63e9837f6f 04:16:00 $ docker rm -f --volumes 3ab3ac0828b9f445b18d1bc0b1dd2ce86f75b82b19540d83adff7a63e9837f6f [Pipeline] // withDockerContainer [Pipeline] sh 04:16:00 + sudo chown -R jenkins:jenkins . [Pipeline] stash 04:16:01 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 04:16:01 + sudo chown -R jenkins:jenkins . [Pipeline] sh 04:16:01 + ls -al . 04:16:01 total 184 04:16:01 drwxrwxr-x 9 jenkins jenkins 4096 May 8 04:15 . 04:16:01 drwxrwxr-x 4 jenkins jenkins 4096 May 8 04:14 .. 04:16:01 -rw-rw-r-- 1 jenkins jenkins 151 May 8 04:14 .dockerignore 04:16:01 drwxrwxr-x 8 jenkins jenkins 4096 May 8 04:14 .git 04:16:01 drwxrwxr-x 3 jenkins jenkins 4096 May 8 04:14 .github 04:16:01 -rw-rw-r-- 1 jenkins jenkins 329 May 8 04:14 .gitignore 04:16:01 -rw-rw-r-- 1 jenkins jenkins 41 May 8 04:14 .golangci.yml 04:16:01 drwxr-xr-x 3 jenkins jenkins 4096 May 8 04:14 .semver 04:16:01 -rw-rw-r-- 1 jenkins jenkins 9331 May 8 04:14 Attribution.txt 04:16:01 -rw-rw-r-- 1 jenkins jenkins 13085 May 8 04:14 CHANGELOG.md 04:16:01 -rw-rw-r-- 1 jenkins jenkins 1578 May 8 04:14 Dockerfile 04:16:01 -rw-rw-r-- 1 jenkins jenkins 677 May 8 04:14 GOVERNANCE.md 04:16:01 -rw-rw-r-- 1 jenkins jenkins 680 May 8 04:14 Jenkinsfile 04:16:01 -rw-rw-r-- 1 jenkins jenkins 11340 May 8 04:14 LICENSE 04:16:01 -rw-rw-r-- 1 jenkins jenkins 1779 May 8 04:14 Makefile 04:16:01 -rw-rw-r-- 1 jenkins jenkins 620 May 8 04:14 OWNERS.md 04:16:01 -rw-rw-r-- 1 jenkins jenkins 15321 May 8 04:14 README.md 04:16:01 -rw-rw-r-- 1 jenkins jenkins 5 May 8 04:14 VERSION 04:16:01 drwxrwxr-x 2 jenkins jenkins 4096 May 8 04:14 bin 04:16:01 drwxrwxr-x 3 jenkins jenkins 4096 May 8 04:14 cmd 04:16:01 -rw-r--r-- 1 jenkins jenkins 14663 May 8 04:15 coverage.out 04:16:01 drwxrwxr-x 2 jenkins jenkins 4096 May 8 04:14 driver 04:16:01 -rw-rw-r-- 1 jenkins jenkins 3402 May 8 04:14 go.mod 04:16:01 -rw-rw-r-- 1 jenkins jenkins 31328 May 8 04:14 go.sum 04:16:01 drwxrwxr-x 4 jenkins jenkins 4096 May 8 04:14 snap 04:16:01 -rw-rw-r-- 1 jenkins jenkins 713 May 8 04:14 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:16:02 + 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=ac822673d4c03ae078a7deab56dafbd30136dfbc --label arch=amd64 --label version=0.0.0 . 04:16:02 Sending build context to Docker daemon 10.93MB 04:16:02 Step 1/25 : ARG BASE=golang:1.20-alpine3.17 04:16:02 Step 2/25 : FROM ${BASE} AS builder 04:16:02 ---> 885b34b82c53 04:16:02 Step 3/25 : ARG ADD_BUILD_TAGS="" 04:16:02 ---> Running in 91aa449377fd 04:16:02 Removing intermediate container 91aa449377fd 04:16:02 ---> 81a1991e5ccd 04:16:02 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 04:16:02 ---> Running in d1a116779c92 04:16:02 Removing intermediate container d1a116779c92 04:16:02 ---> c33559c4d6e3 04:16:02 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 04:16:02 ---> Running in cd831904b0a6 04:16:02 Removing intermediate container cd831904b0a6 04:16:02 ---> 8921db81a029 04:16:02 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 04:16:02 ---> Running in 74863a3c21e2 04:16:02 Removing intermediate container 74863a3c21e2 04:16:02 ---> e987efc12fc9 04:16:02 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 04:16:02 ---> Running in 8fd495784a67 04:16:03 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 04:16:03 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 04:16:03 OK: 269 MiB in 57 packages 04:16:03 Removing intermediate container 8fd495784a67 04:16:03 ---> a46331f13310 04:16:03 Step 8/25 : WORKDIR /device-rest-go 04:16:03 ---> Running in b526953b72ba 04:16:03 Removing intermediate container b526953b72ba 04:16:03 ---> 9674587af4d7 04:16:03 Step 9/25 : COPY go.mod vendor* ./ 04:16:03 ---> be378bf83108 04:16:03 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 04:16:03 ---> Running in b4e5cf05b129 04:16:04 Removing intermediate container b4e5cf05b129 04:16:04 ---> a9e97e0ea581 04:16:04 Step 11/25 : COPY . . 04:16:04 ---> 58f05128b506 04:16:04 Step 12/25 : RUN $MAKE 04:16:05 ---> Running in 063cab18b895 04:16:05 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 04:16:23 Removing intermediate container 063cab18b895 04:16:23 ---> 1cf73a617e62 04:16:23 Step 13/25 : FROM alpine:3.17 04:16:23 3.17: Pulling from library/alpine 04:16:23 f56be85fc22e: Already exists 04:16:23 Digest: sha256:124c7d2707904eea7431fffe91522a01e5a861a624ee31d03372cc1d138a3126 04:16:23 Status: Downloaded newer image for alpine:3.17 04:16:23 ---> 9ed4aefc74f6 04:16:23 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 04:16:23 ---> Running in c95a96b2bdf0 04:16:23 Removing intermediate container c95a96b2bdf0 04:16:23 ---> 6a87f2963db2 04:16:23 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 04:16:23 ---> Running in df860a4b63a4 04:16:23 Removing intermediate container df860a4b63a4 04:16:23 ---> f7f0d2ebd7cd 04:16:23 Step 16/25 : RUN apk add --update --no-cache dumb-init 04:16:23 ---> Running in 734d45a1b3e9 04:16:23 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 04:16:23 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 04:16:23 (1/1) Installing dumb-init (1.2.5-r2) 04:16:23 Executing busybox-1.35.0-r29.trigger 04:16:23 OK: 7 MiB in 16 packages 04:16:23 Removing intermediate container 734d45a1b3e9 04:16:23 ---> d9be258e1dca 04:16:23 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 04:16:24 ---> 45808205b2d3 04:16:24 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 04:16:24 ---> d5cd83b0d012 04:16:24 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 04:16:24 ---> ff45f1ee3ebf 04:16:24 Step 20/25 : EXPOSE 59986 04:16:24 ---> Running in 6994ada75ef0 04:16:24 Removing intermediate container 6994ada75ef0 04:16:24 ---> ae78e0d15423 04:16:24 Step 21/25 : ENTRYPOINT ["/device-rest"] 04:16:24 ---> Running in ea9b3c544707 04:16:24 Removing intermediate container ea9b3c544707 04:16:24 ---> 3550ded435ba 04:16:24 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 04:16:24 ---> Running in 490b5390aac3 04:16:24 Removing intermediate container 490b5390aac3 04:16:24 ---> 9021b5cc46fd 04:16:24 Step 23/25 : LABEL arch=amd64 04:16:24 ---> Running in 92ec8b112fa8 04:16:24 Removing intermediate container 92ec8b112fa8 04:16:24 ---> 555883338551 04:16:24 Step 24/25 : LABEL git_sha=ac822673d4c03ae078a7deab56dafbd30136dfbc 04:16:24 ---> Running in ddde930745d7 04:16:24 Removing intermediate container ddde930745d7 04:16:24 ---> 47f7049ba2d0 04:16:24 Step 25/25 : LABEL version=0.0.0 04:16:24 ---> Running in 20e6d62a2aaf 04:16:24 Removing intermediate container 20e6d62a2aaf 04:16:24 ---> 88e77ded8745 04:16:24 [Warning] One or more build-args [ARCH] were not consumed 04:16:24 Successfully built 88e77ded8745 04:16:24 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 04:16:25 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 04:16:25 04:16:25 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:16:25 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 04:16:25 latest: Pulling from edgex-lftools-log-publisher 04:16:25 5eb5b503b376: Pulling fs layer 04:16:25 5c69ac0246d0: Pulling fs layer 04:16:25 ec43610c2a17: Pulling fs layer 04:16:25 3a2ae6a8a46f: Pulling fs layer 04:16:25 33b1e0a273af: Pulling fs layer 04:16:25 5d3b04190fa2: Pulling fs layer 04:16:25 2f39f015ded8: Pulling fs layer 04:16:25 33b1e0a273af: Waiting 04:16:25 3a2ae6a8a46f: Waiting 04:16:25 2f39f015ded8: Waiting 04:16:25 5d3b04190fa2: Waiting 04:16:25 5c69ac0246d0: Download complete 04:16:25 3a2ae6a8a46f: Download complete 04:16:25 33b1e0a273af: Verifying Checksum 04:16:25 33b1e0a273af: Download complete 04:16:25 5d3b04190fa2: Verifying Checksum 04:16:25 5d3b04190fa2: Download complete 04:16:25 ec43610c2a17: Verifying Checksum 04:16:25 ec43610c2a17: Download complete 04:16:26 5eb5b503b376: Verifying Checksum 04:16:26 5eb5b503b376: Download complete 04:16:26 2f39f015ded8: Download complete 04:16:27 5eb5b503b376: Pull complete 04:16:27 5c69ac0246d0: Pull complete 04:16:27 ec43610c2a17: Pull complete 04:16:27 3a2ae6a8a46f: Pull complete 04:16:27 33b1e0a273af: Pull complete 04:16:28 5d3b04190fa2: Pull complete 04:16:32 2f39f015ded8: Pull complete 04:16:32 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 04:16:32 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 04:16:32 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 04:16:32 prd-ubuntu20.04-docker-8c-8g-14434 does not seem to be running inside a container 04:16:32 $ 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-310 -v /w/workspace/gexfoundry_device-rest-go_PR-310:/w/workspace/gexfoundry_device-rest-go_PR-310:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-310@tmp:/w/workspace/gexfoundry_device-rest-go_PR-310@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 04:16:34 $ docker top 55b4256d5372653dae31540b667571b80783dae06c10191a9d41ab3ac91cf249 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 04:16:35 ---> job-cost.sh 04:16:35 lf-activate-venv: SKIPPING 04:16:35 INFO: No Stack... 04:16:35 INFO: Retrieving Pricing Info for: v3-standard-8 04:16:35 INFO: Archiving Costs [Pipeline] sh 04:16:36 + cat /w/workspace/gexfoundry_device-rest-go_PR-310/archives/cost.csv 04:16:36 + cut -d, -f6 [Pipeline] lock 04:16:36 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-310-1-stack-cost] 04:16:36 Resource [jenkins-edgexfoundry-device-rest-go-PR-310-1-stack-cost] did not exist. Created. 04:16:36 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-310-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 04:16:36 + echo total: 0.2199999988079071 [Pipeline] stash 04:16:36 Stashed 1 file(s) [Pipeline] } 04:16:36 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-310-1-stack-cost] [Pipeline] // lock [Pipeline] } 04:16:36 $ docker stop --time=1 55b4256d5372653dae31540b667571b80783dae06c10191a9d41ab3ac91cf249 04:16:37 $ docker rm -f --volumes 55b4256d5372653dae31540b667571b80783dae06c10191a9d41ab3ac91cf249 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 04:18:00 Running on prd-ubuntu20.04-docker-arm64-4c-16g-14436 in /w/workspace/gexfoundry_device-rest-go_PR-310 [Pipeline] { [Pipeline] ws 04:18:00 Running in /w/workspace/device-rest-go/1 [Pipeline] { [Pipeline] checkout 04:18:00 The recommended git tool is: git 04:18:07 using credential edgex-jenkins-ssh 04:18:07 Cloning the remote Git repository 04:18:08 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 04:18:08 > git init /w/workspace/device-rest-go/1 # timeout=10 04:18:08 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 04:18:08 > git --version # timeout=10 04:18:08 > git --version # 'git version 2.25.1' 04:18:08 using GIT_SSH to set credentials SSH Credentials for GitHub 04:18:08 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 04:18:10 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 04:18:10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 04:18:12 Merging remotes/origin/main commit 322050c65873fd50260d8a368346f4ba3310d130 into PR head commit ac822673d4c03ae078a7deab56dafbd30136dfbc 04:18:11 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 04:18:11 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 04:18:11 using GIT_SSH to set credentials SSH Credentials for GitHub 04:18:11 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/310/head:refs/remotes/origin/PR-310 +refs/heads/main:refs/remotes/origin/main # timeout=10 04:18:12 > git config core.sparsecheckout # timeout=10 04:18:12 Merge succeeded, producing ac822673d4c03ae078a7deab56dafbd30136dfbc 04:18:12 Checking out Revision ac822673d4c03ae078a7deab56dafbd30136dfbc (PR-310) 04:18:12 > git checkout -f ac822673d4c03ae078a7deab56dafbd30136dfbc # timeout=10 04:18:12 > git remote # timeout=10 04:18:12 > git config --get remote.origin.url # timeout=10 04:18:12 using GIT_SSH to set credentials SSH Credentials for GitHub 04:18:12 > git merge 322050c65873fd50260d8a368346f4ba3310d130 # timeout=10 04:18:12 > git rev-parse HEAD^{commit} # timeout=10 04:18:12 > git config core.sparsecheckout # timeout=10 04:18:12 > git checkout -f ac822673d4c03ae078a7deab56dafbd30136dfbc # timeout=10 04:18:16 Commit message: "build: Ignore all go-mods except device-sdk-go" 04:18:16 > git --version # timeout=10 04:18:16 > git --version # 'git version 2.25.1' 04:18:16 fatal: bad object 4fc256d9079ed2258907e613f84b1b8da264a4bd [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 04:18:17 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 04:18:17 % Total % Received % Xferd Average Speed Time Time Time Current 04:18:17 Dload Upload Total Spent Left Speed 04:18:17 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 12751 100 12751 0 0 197k 0 --:--:-- --:--:-- --:--:-- 200k [Pipeline] sh 04:18:18 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 04:18:19 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 04:18:19 + sudo tee /etc/docker/daemon.new 04:18:19 { 04:18:19 "registry-mirrors": [ 04:18:19 "https://nexus3.edgexfoundry.org:10001" 04:18:19 ], 04:18:19 "bip": "10.250.0.254/24", 04:18:19 "hosts": [ 04:18:19 "tcp://0.0.0.0:5555", 04:18:19 "unix:///var/run/docker.sock" 04:18:19 ], 04:18:19 "mtu": 1458, 04:18:19 "selinux-enabled": true, 04:18:19 "seccomp-profile": "/etc/docker/seccomp.json" 04:18:19 } [Pipeline] sh 04:18:19 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 04:18:19 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 04:18:38 provisioning config files... 04:18:38 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/1@tmp/config1688907084949761881tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 04:18:38 ---> docker-login.sh 04:18:38 nexus3.edgexfoundry.org:10001 04:18:39 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:18:39 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:18:39 Configure a credential helper to remove this warning. See 04:18:39 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:18:39 04:18:39 Login Succeeded 04:18:39 nexus3.edgexfoundry.org:10002 04:18:39 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:18:39 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:18:39 Configure a credential helper to remove this warning. See 04:18:39 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:18:39 04:18:39 Login Succeeded 04:18:39 nexus3.edgexfoundry.org:10003 04:18:40 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:18:40 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:18:40 Configure a credential helper to remove this warning. See 04:18:40 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:18:40 04:18:40 Login Succeeded 04:18:40 nexus3.edgexfoundry.org:10004 04:18:40 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:18:40 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 04:18:40 Configure a credential helper to remove this warning. See 04:18:40 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 04:18:40 04:18:40 Login Succeeded 04:18:40 docker.io 04:18:40 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 04:18:55 Error response from daemon: Get "https://registry-1.docker.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers) [Pipeline] } 04:18:56 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) Stage "Test" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) Stage "Build" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Docker Push) Stage "Docker Push" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage Post stage [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:18:57 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 04:18:57 04:18:57 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:18:57 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 04:18:57 arm64: Pulling from edgex-lftools-log-publisher 04:18:57 8998bd30e6a1: Pulling fs layer 04:18:57 04944245beec: Pulling fs layer 04:18:57 699f458cf7ca: Pulling fs layer 04:18:57 765212b225bb: Pulling fs layer 04:18:57 f23df028b6ca: Pulling fs layer 04:18:57 d65c8cfc05b1: Pulling fs layer 04:18:57 2437ff75d9bd: Pulling fs layer 04:18:57 765212b225bb: Waiting 04:18:57 f23df028b6ca: Waiting 04:18:57 d65c8cfc05b1: Waiting 04:18:57 2437ff75d9bd: Waiting 04:18:57 04944245beec: Verifying Checksum 04:18:57 04944245beec: Download complete 04:18:57 765212b225bb: Verifying Checksum 04:18:57 765212b225bb: Download complete 04:18:57 f23df028b6ca: Verifying Checksum 04:18:57 f23df028b6ca: Download complete 04:18:57 d65c8cfc05b1: Verifying Checksum 04:18:57 d65c8cfc05b1: Download complete 04:18:58 699f458cf7ca: Verifying Checksum 04:18:58 699f458cf7ca: Download complete 04:18:58 8998bd30e6a1: Verifying Checksum 04:18:58 8998bd30e6a1: Download complete 04:19:00 2437ff75d9bd: Verifying Checksum 04:19:00 2437ff75d9bd: Download complete 04:19:02 8998bd30e6a1: Pull complete 04:19:03 04944245beec: Pull complete 04:19:04 699f458cf7ca: Pull complete 04:19:04 765212b225bb: Pull complete 04:19:05 f23df028b6ca: Pull complete 04:19:06 d65c8cfc05b1: Pull complete 04:19:21 2437ff75d9bd: Pull complete 04:19:21 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 04:19:21 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 04:19:21 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 04:19:21 prd-ubuntu20.04-docker-arm64-4c-16g-14436 does not seem to be running inside a container 04:19:21 $ 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 04:19:24 $ docker top 110e32c5d2b2c32dfef5ab423a4f3bfc73ffa04eba21caf7ce79902a117c0904 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 04:19:25 ---> job-cost.sh 04:19:25 lf-activate-venv: SKIPPING 04:19:25 INFO: No Stack... 04:19:25 INFO: Retrieving Pricing Info for: v3-standard-4 04:19:26 INFO: Archiving Costs [Pipeline] sh 04:19:27 + cut -d, -f6 04:19:27 + cat /w/workspace/device-rest-go/1/archives/cost.csv [Pipeline] lock 04:19:27 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-310-1-stack-cost] 04:19:27 Resource [jenkins-edgexfoundry-device-rest-go-PR-310-1-stack-cost] did not exist. Created. 04:19:27 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-310-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 04:19:28 /w/workspace/device-rest-go/1@tmp/durable-3d500219/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 04:19:28 + echo total: 0.10999999940395355 [Pipeline] stash 04:19:28 Warning: overwriting stash ‘stack-cost’ 04:19:29 Stashed 1 file(s) [Pipeline] } 04:19:29 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-310-1-stack-cost] [Pipeline] // lock [Pipeline] } 04:19:29 $ docker stop --time=1 110e32c5d2b2c32dfef5ab423a4f3bfc73ffa04eba21caf7ce79902a117c0904 04:19:31 $ docker rm -f --volumes 110e32c5d2b2c32dfef5ab423a4f3bfc73ffa04eba21caf7ce79902a117c0904 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // ws [Pipeline] } [Pipeline] // node [Pipeline] } [Pipeline] // stage [Pipeline] } 04:19:31 Failed in branch arm64 [Pipeline] // parallel [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (CodeCov) Stage "CodeCov" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Snyk Dependency Scan) Stage "Snyk Dependency Scan" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Archive Prep) Stage "Archive Prep" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Publish Swagger) Stage "Publish Swagger" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Semver) Stage "Semver" skipped due to earlier failure(s) [Pipeline] stage [Pipeline] { (Tag) Stage "Semver" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Pre-Release Version) Stage "Semver" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Experimental Tag) Stage "Semver" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Stable (Named) Tag) Stage "Semver" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Declarative: Post Actions) [Pipeline] stage [Pipeline] { (LF Post Build Actions) [Pipeline] sh 04:19:33 + [ -d /w/workspace/gexfoundry_device-rest-go_PR-310/archives ] 04:19:33 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-310/archives 04:19:33 total 16 04:19:33 drwxr-xr-x 3 root root 4096 May 8 04:16 . 04:19:33 drwxrwxr-x 10 jenkins jenkins 4096 May 8 04:16 .. 04:19:33 drwxr-xr-x 2 root root 4096 May 8 04:16 cost 04:19:33 -rw-r--r-- 1 root root 86 May 8 04:16 cost.csv 04:19:33 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-rest-go_PR-310/archives 04:19:33 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-310/archives 04:19:33 total 16 04:19:33 drwxr-xr-x 3 jenkins jenkins 4096 May 8 04:16 . 04:19:33 drwxrwxr-x 10 jenkins jenkins 4096 May 8 04:16 .. 04:19:33 drwxr-xr-x 2 jenkins jenkins 4096 May 8 04:16 cost 04:19:33 -rw-r--r-- 1 jenkins jenkins 86 May 8 04:16 cost.csv [Pipeline] libraryResource [Pipeline] sh 04:19:34 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 04:19:35 ---> package-listing.sh 04:19:35 ++ facter osfamily 04:19:35 ++ tr '[:upper:]' '[:lower:]' 04:19:35 + OS_FAMILY=debian 04:19:35 + workspace=/w/workspace/gexfoundry_device-rest-go_PR-310 04:19:35 + START_PACKAGES=/tmp/packages_start.txt 04:19:35 + END_PACKAGES=/tmp/packages_end.txt 04:19:35 + DIFF_PACKAGES=/tmp/packages_diff.txt 04:19:35 + PACKAGES=/tmp/packages_start.txt 04:19:35 + '[' /w/workspace/gexfoundry_device-rest-go_PR-310 ']' 04:19:35 + PACKAGES=/tmp/packages_end.txt 04:19:35 + case "${OS_FAMILY}" in 04:19:35 + dpkg -l 04:19:35 + grep '^ii' 04:19:35 + '[' -f /tmp/packages_start.txt ']' 04:19:35 + '[' -f /tmp/packages_end.txt ']' 04:19:35 + diff /tmp/packages_start.txt /tmp/packages_end.txt 04:19:35 + '[' /w/workspace/gexfoundry_device-rest-go_PR-310 ']' 04:19:35 + mkdir -p /w/workspace/gexfoundry_device-rest-go_PR-310/archives/ 04:19:35 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/gexfoundry_device-rest-go_PR-310/archives/ [Pipeline] echo 04:19:35 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-310/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 04:19:35 + facter operatingsystem [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:19:36 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 04:19:36 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 04:19:36 prd-ubuntu20.04-docker-8c-8g-14434 does not seem to be running inside a container 04:19:36 $ 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-310/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-310 -v /w/workspace/gexfoundry_device-rest-go_PR-310:/w/workspace/gexfoundry_device-rest-go_PR-310:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-310@tmp:/w/workspace/gexfoundry_device-rest-go_PR-310@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 04:19:36 $ docker top b5f40081028039985c3ed3e070e797b79441fbbc6276cefb847b8c7f8aff5905 -eo pid,comm [Pipeline] { [Pipeline] sh 04:19:37 + touch /tmp/pre-build-complete [Pipeline] sh 04:19:37 + mkdir -p /var/log/sysstat [Pipeline] sh 04:19:37 + ls /var/log/sa-host 04:19:37 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 04:19:37 provisioning config files... 04:19:37 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-310@tmp/config16606354289819661167tmp [Pipeline] { [Pipeline] echo 04:19:37 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 04:19:38 ---> create-netrc.sh [Pipeline] } 04:19:38 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 04:19:38 ---> python-tools-install.sh [Pipeline] echo 04:19:38 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 04:19:38 ---> sudo-logs.sh 04:19:38 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 04:19:38 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 04:19:39 ---> job-cost.sh 04:19:39 lf-activate-venv: SKIPPING 04:19:39 DEBUG: total: 0.2199999988079071 04:19:39 INFO: Retrieving Stack Cost... 04:19:39 INFO: Retrieving Pricing Info for: v3-standard-8 04:19:39 INFO: Archiving Costs [Pipeline] echo 04:19:39 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 04:19:40 ---> logs-deploy.sh 04:19:40 lf-activate-venv: SKIPPING 04:19:40 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-310/1 04:19:40 INFO: archiving workspace using pattern(s): 04:19:41 Archives upload complete. 04:19:41 INFO: archiving logs to Nexus