Pull request #324 opened Connecting to https://api.github.com using edgex-jenkins github personal access token Obtained Jenkinsfile from f234df3dbf1425c65cf8e8e65e0448f29381b915+55c123e92a81b52ef904480be8a3eb69bc416b29 (ef29ad5cb2dda5455533ac273fcd33df2e0cdba1) 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-ssh15877118976535342593.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-ssh10716706508371837799.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-324/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-324/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh6258732165795449406.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-324/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh5971994711111389246.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-ssh6389301314579433102.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-324/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-324/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e@tmp/jenkins-gitclient-ssh4452384687215232596.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 ‘prd-ubuntu20.04-docker-8c-8g-16781’ Running on prd-ubuntu20.04-docker-8c-8g-16783 in /w/workspace/gexfoundry_device-rest-go_PR-324 [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-324 # 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/324/head:refs/remotes/origin/PR-324 +refs/heads/main:refs/remotes/origin/main # timeout=10 Merging remotes/origin/main commit 55c123e92a81b52ef904480be8a3eb69bc416b29 into PR head commit f234df3dbf1425c65cf8e8e65e0448f29381b915 Merge succeeded, producing f234df3dbf1425c65cf8e8e65e0448f29381b915 Checking out Revision f234df3dbf1425c65cf8e8e65e0448f29381b915 (PR-324) Commit message: "build(deps): Bump github.com/edgexfoundry/device-sdk-go/v3" 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] { > git config core.sparsecheckout # timeout=10 > git checkout -f f234df3dbf1425c65cf8e8e65e0448f29381b915 # 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 55c123e92a81b52ef904480be8a3eb69bc416b29 # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f f234df3dbf1425c65cf8e8e65e0448f29381b915 # timeout=10 [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 20:59:26 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 20:59:26 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 20:59:26 ========================================================= 20:59:26 EdgeX Global Pipelines Version Info 20:59:26 ========================================================= [Pipeline] libraryResource [Pipeline] sh 20:59:27 ------------------- 20:59:27 stable info: 20:59:27 ------------------- 20:59:27 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 20:59:27 Commit SHA: 4fc256d9079ed2258907e613f84b1b8da264a4bd 20:59:27 Message: update stable to v1.0.249 20:59:27 ------------------- 20:59:27 experimental info: 20:59:27 ------------------- 20:59:27 Commited By: **** collab-it+edgex@linuxfoundation.org 20:59:27 Commit SHA: 4fc256d9079ed2258907e613f84b1b8da264a4bd 20:59:27 Message: update experimental to v1.0.249 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 20:59:28 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 20:59:28 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 20:59:28 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 20:59:28 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 20:59:28 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 20:59:28 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.20 [Pipeline] echo 20:59:28 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 20:59:28 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 20:59:28 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 20:59:28 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 20:59:28 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 20:59:28 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 20:59:28 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 20:59:28 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 20:59:28 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 20:59:28 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 20:59:28 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 20:59:28 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 20:59:28 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 20:59:29 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 20:59:29 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 20:59:29 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 20:59:29 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 20:59:29 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 20:59:29 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 20:59:29 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 20:59:29 [edgeXSetupEnvironment]: set envvar SNYK_DEBUG = false [Pipeline] echo 20:59:29 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-324 [Pipeline] echo 20:59:29 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-324 [Pipeline] echo 20:59:30 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-324 [Pipeline] echo 20:59:30 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = f234df3dbf1425c65cf8e8e65e0448f29381b915 [Pipeline] echo 20:59:30 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = f234df3 [Pipeline] echo 20:59:30 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 20:59:30 provisioning config files... 20:59:30 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-324@tmp/config3776625235621609430tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:59:31 ---> docker-login.sh 20:59:31 nexus3.edgexfoundry.org:10001 20:59:31 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:59:31 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:59:31 Configure a credential helper to remove this warning. See 20:59:31 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:59:31 20:59:31 Login Succeeded 20:59:31 nexus3.edgexfoundry.org:10002 20:59:31 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:59:31 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:59:31 Configure a credential helper to remove this warning. See 20:59:31 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:59:31 20:59:31 Login Succeeded 20:59:31 nexus3.edgexfoundry.org:10003 20:59:31 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:59:31 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:59:31 Configure a credential helper to remove this warning. See 20:59:31 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:59:31 20:59:31 Login Succeeded 20:59:31 nexus3.edgexfoundry.org:10004 20:59:31 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:59:31 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:59:31 Configure a credential helper to remove this warning. See 20:59:31 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:59:31 20:59:31 Login Succeeded 20:59:31 docker.io 20:59:31 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:59:32 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:59:32 Configure a credential helper to remove this warning. See 20:59:32 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:59:32 20:59:32 Login Succeeded 20:59:32 ---> docker-login.sh ends [Pipeline] } 20:59:32 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 20:59:32 + git rev-list -1 --merges f234df3dbf1425c65cf8e8e65e0448f29381b915~1..f234df3dbf1425c65cf8e8e65e0448f29381b915 [Pipeline] echo 20:59:32 -----------> git rev-list -1 --merges f234df3dbf1425c65cf8e8e65e0448f29381b915~1..f234df3dbf1425c65cf8e8e65e0448f29381b915 f234df3dbf1425c65cf8e8e65e0448f29381b915 [false] [Pipeline] sh 20:59:33 + git log --format=format:%s -1 f234df3dbf1425c65cf8e8e65e0448f29381b915 [Pipeline] echo 20:59:33 ========================================================= 20:59:33 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 20:59:33 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 20:59:33 + git log --format=format:%s -1 f234df3dbf1425c65cf8e8e65e0448f29381b915 [Pipeline] echo 20:59:33 [semverPrep] GIT_COMMIT: f234df3dbf1425c65cf8e8e65e0448f29381b915, Commit Message: build(deps): Bump github.com/edgexfoundry/device-sdk-go/v3 [Pipeline] echo 20:59:33 [semverPrep] This is not a build commit. [Pipeline] sh 20:59:34 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 20:59:34 + grep -v github /etc/ssh/ssh_known_hosts 20:59:34 + [ -e /tmp/ssh_known_hosts ] 20:59:34 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 20:59:34 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 20:59:34 + sudo tee -a /etc/ssh/ssh_known_hosts 20:59:34 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:59:34 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 20:59:34 20:59:34 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:59:34 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 20:59:34 0.1.4: Pulling from edgex-devops/py-git-semver 20:59:34 b85a868b505f: Pulling fs layer 20:59:34 e2be974225ed: Pulling fs layer 20:59:34 339a4e72a1f5: Pulling fs layer 20:59:34 988bab9f4d93: Pulling fs layer 20:59:34 1469e6f7b9e6: Pulling fs layer 20:59:34 eaf3925da568: Pulling fs layer 20:59:34 bab4dde63d76: Pulling fs layer 20:59:34 bde34c3a00c8: Pulling fs layer 20:59:34 b352a97aabf1: Pulling fs layer 20:59:34 4872d77fe225: Pulling fs layer 20:59:34 5851b861e8e6: Pulling fs layer 20:59:34 bab4dde63d76: Waiting 20:59:34 bde34c3a00c8: Waiting 20:59:34 b352a97aabf1: Waiting 20:59:34 4872d77fe225: Waiting 20:59:34 5851b861e8e6: Waiting 20:59:34 988bab9f4d93: Waiting 20:59:34 1469e6f7b9e6: Waiting 20:59:34 eaf3925da568: Waiting 20:59:34 e2be974225ed: Verifying Checksum 20:59:34 e2be974225ed: Download complete 20:59:34 988bab9f4d93: Verifying Checksum 20:59:34 988bab9f4d93: Download complete 20:59:34 1469e6f7b9e6: Verifying Checksum 20:59:34 1469e6f7b9e6: Download complete 20:59:34 eaf3925da568: Verifying Checksum 20:59:34 eaf3925da568: Download complete 20:59:34 339a4e72a1f5: Verifying Checksum 20:59:34 339a4e72a1f5: Download complete 20:59:35 bde34c3a00c8: Verifying Checksum 20:59:35 bde34c3a00c8: Download complete 20:59:35 b352a97aabf1: Verifying Checksum 20:59:35 b352a97aabf1: Download complete 20:59:35 4872d77fe225: Verifying Checksum 20:59:35 4872d77fe225: Download complete 20:59:35 5851b861e8e6: Verifying Checksum 20:59:35 5851b861e8e6: Download complete 20:59:35 b85a868b505f: Verifying Checksum 20:59:35 b85a868b505f: Download complete 20:59:36 b85a868b505f: Pull complete 20:59:36 bab4dde63d76: Verifying Checksum 20:59:36 bab4dde63d76: Download complete 20:59:36 e2be974225ed: Pull complete 20:59:37 339a4e72a1f5: Pull complete 20:59:37 988bab9f4d93: Pull complete 20:59:37 1469e6f7b9e6: Pull complete 20:59:37 eaf3925da568: Pull complete 20:59:39 bab4dde63d76: Pull complete 20:59:39 bde34c3a00c8: Pull complete 20:59:39 b352a97aabf1: Pull complete 20:59:39 4872d77fe225: Pull complete 20:59:39 5851b861e8e6: Pull complete 20:59:39 Digest: sha256:59a28aa3b44c0bc56b9c3d2e9ecabe42e63693d939cc6e425eb8786f29f663d8 20:59:39 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 20:59:39 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 20:59:40 prd-ubuntu20.04-docker-8c-8g-16783 does not seem to be running inside a container 20:59:40 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/gexfoundry_device-rest-go_PR-324 -v /w/workspace/gexfoundry_device-rest-go_PR-324:/w/workspace/gexfoundry_device-rest-go_PR-324:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-324@tmp:/w/workspace/gexfoundry_device-rest-go_PR-324@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 cat 20:59:43 $ docker top 835c65c17d3925610780eeda9202ee56dd80c0df621307080a969e2b0a634e42 -eo pid,comm 20:59:43 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). 20:59:43 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 20:59:44 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 20:59:44 [ssh-agent] Looking for ssh-agent implementation... 20:59:44 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 20:59:44 $ docker exec 835c65c17d3925610780eeda9202ee56dd80c0df621307080a969e2b0a634e42 ssh-agent 20:59:44 SSH_AUTH_SOCK=/tmp/ssh-9eLYuReabNHO/agent.33 20:59:44 SSH_AGENT_PID=39 20:59:44 Running ssh-add (command line suppressed) 20:59:44 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-324@tmp/private_key_3016738909233630264.key (/w/workspace/gexfoundry_device-rest-go_PR-324@tmp/private_key_3016738909233630264.key) 20:59:44 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 20:59:44 + git tag --points-at HEAD [Pipeline] } 20:59:44 $ docker exec --env ******** --env ******** 835c65c17d3925610780eeda9202ee56dd80c0df621307080a969e2b0a634e42 ssh-agent -k 20:59:45 unset SSH_AUTH_SOCK; 20:59:45 unset SSH_AGENT_PID; 20:59:45 echo Agent pid 39 killed; 20:59:45 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 20:59:45 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 20:59:45 [ssh-agent] Looking for ssh-agent implementation... 20:59:45 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 20:59:45 $ docker exec 835c65c17d3925610780eeda9202ee56dd80c0df621307080a969e2b0a634e42 ssh-agent 20:59:45 SSH_AUTH_SOCK=/tmp/ssh-4J34IdaKeIjz/agent.71 20:59:45 SSH_AGENT_PID=77 20:59:45 Running ssh-add (command line suppressed) 20:59:45 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-324@tmp/private_key_15461556392607300461.key (/w/workspace/gexfoundry_device-rest-go_PR-324@tmp/private_key_15461556392607300461.key) 20:59:45 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 20:59:45 + git semver init 20:59:46 2023-05-24 20:59:46,023 [run_init] DEBUG init version:0.0.0 force:False 20:59:46 2023-05-24 20:59:46,024 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/gexfoundry_device-rest-go_PR-324/.semver 20:59:46 2023-05-24 20:59:46,025 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-rest-go.git /w/workspace/gexfoundry_device-rest-go_PR-324/.semver 20:59:46 2023-05-24 20:59:46,025 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-rest-go.git', '/w/workspace/gexfoundry_device-rest-go_PR-324/.semver'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-324, universal_newlines=False, shell=None, istream=None) 20:59:47 2023-05-24 20:59:47,069 [append_file] DEBUG append to file:/w/workspace/gexfoundry_device-rest-go_PR-324/.git/info/exclude 20:59:47 2023-05-24 20:59:47,069 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/gexfoundry_device-rest-go_PR-324/.semver/PR-324 with force:False 20:59:47 2023-05-24 20:59:47,069 [write_file] DEBUG write to file:/w/workspace/gexfoundry_device-rest-go_PR-324/.semver/PR-324 20:59:47 2023-05-24 20:59:47,073 [execute] INFO git cat-file --batch-check 20:59:47 2023-05-24 20:59:47,074 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-324/.semver, universal_newlines=False, shell=None, istream=) 20:59:47 2023-05-24 20:59:47,079 [execute] INFO git cat-file --batch 20:59:47 2023-05-24 20:59:47,080 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-324/.semver, universal_newlines=False, shell=None, istream=) 20:59:47 2023-05-24 20:59:47,083 [read_version] DEBUG read version from /w/workspace/gexfoundry_device-rest-go_PR-324/.semver/PR-324 20:59:47 0.0.0 [Pipeline] } 20:59:47 $ docker exec --env ******** --env ******** 835c65c17d3925610780eeda9202ee56dd80c0df621307080a969e2b0a634e42 ssh-agent -k 20:59:47 unset SSH_AUTH_SOCK; 20:59:47 unset SSH_AGENT_PID; 20:59:47 echo Agent pid 77 killed; 20:59:47 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 20:59:48 + git semver [Pipeline] } 20:59:48 $ docker stop --time=1 835c65c17d3925610780eeda9202ee56dd80c0df621307080a969e2b0a634e42 20:59:49 $ docker rm -f --volumes 835c65c17d3925610780eeda9202ee56dd80c0df621307080a969e2b0a634e42 [Pipeline] // withDockerContainer [Pipeline] sh 20:59:50 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 20:59:50 Stashed 1 file(s) [Pipeline] echo 20:59:50 [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 20:59:51 provisioning config files... 20:59:51 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-324@tmp/config4123180087334928360tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:59:51 ---> docker-login.sh 20:59:51 nexus3.edgexfoundry.org:10001 20:59:51 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:59:51 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:59:51 Configure a credential helper to remove this warning. See 20:59:51 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:59:51 20:59:51 Login Succeeded 20:59:51 nexus3.edgexfoundry.org:10002 20:59:51 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:59:51 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:59:51 Configure a credential helper to remove this warning. See 20:59:51 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:59:51 20:59:51 Login Succeeded 20:59:51 nexus3.edgexfoundry.org:10003 20:59:51 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:59:51 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:59:51 Configure a credential helper to remove this warning. See 20:59:51 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:59:51 20:59:51 Login Succeeded 20:59:51 nexus3.edgexfoundry.org:10004 20:59:51 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:59:51 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:59:51 Configure a credential helper to remove this warning. See 20:59:51 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:59:51 20:59:51 Login Succeeded 20:59:51 docker.io 20:59:51 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:59:51 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:59:51 Configure a credential helper to remove this warning. See 20:59:51 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:59:51 20:59:51 Login Succeeded 20:59:51 ---> docker-login.sh ends [Pipeline] } 20:59:51 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 20:59:52 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 20:59:52 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 20:59:52 ========================================================= 20:59:52 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine] 20:59:52 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 20:59:52 + 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 . 20:59:52 Sending build context to Docker daemon 10.94MB 20:59:52 Step 1/12 : ARG BASE=golang:1.20-alpine3.17 20:59:52 Step 2/12 : FROM ${BASE} AS builder 20:59:52 1.20-alpine: Pulling from edgex-devops/edgex-golang-base 20:59:52 f56be85fc22e: Pulling fs layer 20:59:52 85791d961cd3: Pulling fs layer 20:59:52 d694b5ae8c79: Pulling fs layer 20:59:52 9f32a84ed3da: Pulling fs layer 20:59:52 4d19c01a9841: Pulling fs layer 20:59:52 9325e15d5711: Pulling fs layer 20:59:52 556b6ee489ea: Pulling fs layer 20:59:52 c5a4b2cf53e6: Pulling fs layer 20:59:52 9f32a84ed3da: Waiting 20:59:52 4d19c01a9841: Waiting 20:59:52 9325e15d5711: Waiting 20:59:52 556b6ee489ea: Waiting 20:59:52 c5a4b2cf53e6: Waiting 20:59:52 85791d961cd3: Verifying Checksum 20:59:52 85791d961cd3: Download complete 20:59:52 9f32a84ed3da: Download complete 20:59:52 4d19c01a9841: Verifying Checksum 20:59:52 f56be85fc22e: Verifying Checksum 20:59:52 f56be85fc22e: Download complete 20:59:52 9325e15d5711: Verifying Checksum 20:59:52 9325e15d5711: Download complete 20:59:52 f56be85fc22e: Pull complete 20:59:53 85791d961cd3: Pull complete 20:59:53 c5a4b2cf53e6: Verifying Checksum 20:59:53 c5a4b2cf53e6: Download complete 20:59:53 d694b5ae8c79: Verifying Checksum 20:59:53 d694b5ae8c79: Download complete 20:59:53 556b6ee489ea: Verifying Checksum 20:59:53 556b6ee489ea: Download complete 20:59:57 d694b5ae8c79: Pull complete 20:59:57 9f32a84ed3da: Pull complete 20:59:57 4d19c01a9841: Pull complete 20:59:57 9325e15d5711: Pull complete 20:59:59 556b6ee489ea: Pull complete 21:00:00 c5a4b2cf53e6: Pull complete 21:00:00 Digest: sha256:cdb650785bd12602035d3ff87499385c169773a4d12d6eaf394b34464d3a0f2b 21:00:00 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine 21:00:00 ---> c4be618373d6 21:00:00 Step 3/12 : ARG ADD_BUILD_TAGS="" 21:00:05 Still waiting to schedule task 21:00:05 ‘prd-ubuntu20.04-docker-arm64-4c-16g-16782’ is offline 21:00:10 ---> Running in c9e47f3ce030 21:00:10 Removing intermediate container c9e47f3ce030 21:00:10 ---> 2e69547752e3 21:00:10 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 21:00:10 ---> Running in 5fc08f9e684d 21:00:10 Removing intermediate container 5fc08f9e684d 21:00:10 ---> 572914303a79 21:00:10 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 21:00:10 ---> Running in 772f577a4f99 21:00:10 Removing intermediate container 772f577a4f99 21:00:10 ---> 91e456c14bfb 21:00:10 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 21:00:10 ---> Running in 8ebff7dabe11 21:00:10 Removing intermediate container 8ebff7dabe11 21:00:10 ---> 1852cea51a2c 21:00:10 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 21:00:10 ---> Running in 152be9fab8bb 21:00:10 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 21:00:10 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 21:00:10 (1/4) Installing openssh-keygen (9.1_p1-r3) 21:00:10 (2/4) Installing libedit (20221030.3.1-r0) 21:00:10 (3/4) Installing openssh-client-common (9.1_p1-r3) 21:00:10 (4/4) Installing openssh-client-default (9.1_p1-r3) 21:00:10 Executing busybox-1.35.0-r29.trigger 21:00:10 OK: 269 MiB in 57 packages 21:00:11 Removing intermediate container 152be9fab8bb 21:00:11 ---> ff5fbc921ec2 21:00:11 Step 8/12 : WORKDIR /device-rest-go 21:00:11 ---> Running in 66505520fe12 21:00:11 Removing intermediate container 66505520fe12 21:00:11 ---> c87909182c21 21:00:11 Step 9/12 : COPY go.mod vendor* ./ 21:00:11 ---> 4544e7e632c6 21:00:11 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 21:00:11 ---> Running in 7dccb300c5a4 21:00:58 Removing intermediate container 7dccb300c5a4 21:00:58 ---> ef399c657650 21:00:58 Step 11/12 : COPY . . 21:00:58 ---> eb71f2be490a 21:00:58 Step 12/12 : RUN $MAKE 21:00:58 ---> Running in 4d02f75072b9 21:00:58 noop 21:00:58 Removing intermediate container 4d02f75072b9 21:00:58 ---> ad3bead7b404 21:00:58 Successfully built ad3bead7b404 21:00:58 Successfully tagged ci-base-image-x86_64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 21:00:58 + docker inspect -f . ci-base-image-x86_64 21:00:58 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 21:00:59 prd-ubuntu20.04-docker-8c-8g-16783 does not seem to be running inside a container 21:00:59 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-324 -v /w/workspace/gexfoundry_device-rest-go_PR-324:/w/workspace/gexfoundry_device-rest-go_PR-324:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-324@tmp:/w/workspace/gexfoundry_device-rest-go_PR-324@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 21:00:59 $ docker top e55a39329d3b9563f8257da271433ad283691e57654bef4db2154308ad5ab682 -eo pid,comm [Pipeline] { [Pipeline] sh 21:00:59 + go version 21:00:59 go version go1.20.2 linux/amd64 [Pipeline] } 21:00:59 $ docker stop --time=1 e55a39329d3b9563f8257da271433ad283691e57654bef4db2154308ad5ab682 21:01:01 $ docker rm -f --volumes e55a39329d3b9563f8257da271433ad283691e57654bef4db2154308ad5ab682 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 21:01:01 + docker inspect -f . ci-base-image-x86_64 21:01:01 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 21:01:01 prd-ubuntu20.04-docker-8c-8g-16783 does not seem to be running inside a container 21:01:02 $ 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-324 -v /w/workspace/gexfoundry_device-rest-go_PR-324:/w/workspace/gexfoundry_device-rest-go_PR-324:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-324@tmp:/w/workspace/gexfoundry_device-rest-go_PR-324@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 21:01:02 $ docker top 25a0b3a8191ed958ff35bf733df5e50a298fc7e0ed798d7bc89eec3f88f2de19 -eo pid,comm [Pipeline] { [Pipeline] sh 21:01:02 + git config --global --add safe.directory /w/workspace/gexfoundry_device-rest-go_PR-324 [Pipeline] fileExists [Pipeline] sh 21:01:03 + make test 21:01:03 go test ./... -coverprofile=coverage.out ./... 21:01:08 ? github.com/edgexfoundry/device-rest-go [no test files] 21:01:18 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 21:01:18 ok github.com/edgexfoundry/device-rest-go/driver 0.013s coverage: 32.2% of statements 21:01:23 go vet ./... 21:01:26 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 21:01:26 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 21:01:26 ./bin/test-attribution-txt.sh [Pipeline] echo 21:01:26 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 21:01:26 $ docker stop --time=1 25a0b3a8191ed958ff35bf733df5e50a298fc7e0ed798d7bc89eec3f88f2de19 21:01:31 $ docker rm -f --volumes 25a0b3a8191ed958ff35bf733df5e50a298fc7e0ed798d7bc89eec3f88f2de19 [Pipeline] // withDockerContainer [Pipeline] sh 21:01:32 + sudo chown -R jenkins:jenkins . [Pipeline] stash 21:01:32 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 21:01:32 + sudo chown -R jenkins:jenkins . [Pipeline] sh 21:01:33 + ls -al . 21:01:33 total 184 21:01:33 drwxrwxr-x 9 jenkins jenkins 4096 May 24 21:01 . 21:01:33 drwxrwxr-x 4 jenkins jenkins 4096 May 24 20:59 .. 21:01:33 -rw-rw-r-- 1 jenkins jenkins 151 May 24 20:59 .dockerignore 21:01:33 drwxrwxr-x 8 jenkins jenkins 4096 May 24 20:59 .git 21:01:33 drwxrwxr-x 3 jenkins jenkins 4096 May 24 20:59 .github 21:01:33 -rw-rw-r-- 1 jenkins jenkins 329 May 24 20:59 .gitignore 21:01:33 -rw-rw-r-- 1 jenkins jenkins 41 May 24 20:59 .golangci.yml 21:01:33 drwxr-xr-x 3 jenkins jenkins 4096 May 24 20:59 .semver 21:01:33 -rw-rw-r-- 1 jenkins jenkins 9331 May 24 20:59 Attribution.txt 21:01:33 -rw-rw-r-- 1 jenkins jenkins 13085 May 24 20:59 CHANGELOG.md 21:01:33 -rw-rw-r-- 1 jenkins jenkins 1578 May 24 20:59 Dockerfile 21:01:33 -rw-rw-r-- 1 jenkins jenkins 677 May 24 20:59 GOVERNANCE.md 21:01:33 -rw-rw-r-- 1 jenkins jenkins 680 May 24 20:59 Jenkinsfile 21:01:33 -rw-rw-r-- 1 jenkins jenkins 11340 May 24 20:59 LICENSE 21:01:33 -rw-rw-r-- 1 jenkins jenkins 1779 May 24 20:59 Makefile 21:01:33 -rw-rw-r-- 1 jenkins jenkins 620 May 24 20:59 OWNERS.md 21:01:33 -rw-rw-r-- 1 jenkins jenkins 15827 May 24 20:59 README.md 21:01:33 -rw-rw-r-- 1 jenkins jenkins 5 May 24 20:59 VERSION 21:01:33 drwxrwxr-x 2 jenkins jenkins 4096 May 24 20:59 bin 21:01:33 drwxrwxr-x 3 jenkins jenkins 4096 May 24 20:59 cmd 21:01:33 -rw-r--r-- 1 jenkins jenkins 14663 May 24 21:01 coverage.out 21:01:33 drwxrwxr-x 2 jenkins jenkins 4096 May 24 20:59 driver 21:01:33 -rw-rw-r-- 1 jenkins jenkins 3361 May 24 20:59 go.mod 21:01:33 -rw-rw-r-- 1 jenkins jenkins 31246 May 24 20:59 go.sum 21:01:33 drwxrwxr-x 4 jenkins jenkins 4096 May 24 20:59 snap 21:01:33 -rw-rw-r-- 1 jenkins jenkins 713 May 24 20:59 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 21:01:33 + 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=f234df3dbf1425c65cf8e8e65e0448f29381b915 --label arch=amd64 --label version=0.0.0 . 21:01:33 Sending build context to Docker daemon 10.95MB 21:01:33 Step 1/25 : ARG BASE=golang:1.20-alpine3.17 21:01:33 Step 2/25 : FROM ${BASE} AS builder 21:01:33 ---> ad3bead7b404 21:01:33 Step 3/25 : ARG ADD_BUILD_TAGS="" 21:01:33 ---> Running in 039437c7e84c 21:01:33 Removing intermediate container 039437c7e84c 21:01:33 ---> 45bc63e78742 21:01:33 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 21:01:33 ---> Running in a48cde46ccbe 21:01:34 Removing intermediate container a48cde46ccbe 21:01:34 ---> 73235f7e4600 21:01:34 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 21:01:34 ---> Running in 1f2ea548bd80 21:01:34 Removing intermediate container 1f2ea548bd80 21:01:34 ---> b1ef94399b96 21:01:34 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 21:01:34 ---> Running in 3107382daddf 21:01:34 Removing intermediate container 3107382daddf 21:01:34 ---> 2bf8582c241b 21:01:34 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 21:01:34 ---> Running in 1f44e2b9b021 21:01:34 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 21:01:34 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 21:01:34 OK: 269 MiB in 57 packages 21:01:35 Removing intermediate container 1f44e2b9b021 21:01:35 ---> 0d1486da645e 21:01:35 Step 8/25 : WORKDIR /device-rest-go 21:01:35 ---> Running in b3e5cbfba8f5 21:01:35 Removing intermediate container b3e5cbfba8f5 21:01:35 ---> 44a4aaabc413 21:01:35 Step 9/25 : COPY go.mod vendor* ./ 21:01:35 ---> ae9e5f257cc4 21:01:35 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 21:01:35 ---> Running in ddf603a60d6f 21:01:35 Removing intermediate container ddf603a60d6f 21:01:35 ---> 8d3f321e70b4 21:01:35 Step 11/25 : COPY . . 21:01:36 ---> 510eb47b66bf 21:01:36 Step 12/25 : RUN $MAKE 21:01:36 ---> Running in 555be7506357 21:01:36 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 21:01:55 Running on prd-ubuntu20.04-docker-arm64-4c-16g-16784 in /w/workspace/gexfoundry_device-rest-go_PR-324 [Pipeline] { [Pipeline] ws 21:01:55 Running in /w/workspace/device-rest-go/1 [Pipeline] { [Pipeline] checkout 21:01:55 The recommended git tool is: git 21:01:58 Removing intermediate container 555be7506357 21:01:58 ---> 5597e769780f 21:01:58 Step 13/25 : FROM alpine:3.17 21:01:58 3.17: Pulling from library/alpine 21:01:58 f56be85fc22e: Already exists 21:01:58 Digest: sha256:124c7d2707904eea7431fffe91522a01e5a861a624ee31d03372cc1d138a3126 21:01:58 Status: Downloaded newer image for alpine:3.17 21:01:58 ---> 9ed4aefc74f6 21:01:58 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 21:01:58 ---> Running in 04ca03918509 21:01:58 Removing intermediate container 04ca03918509 21:01:58 ---> 8df094f94b81 21:01:58 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 21:01:58 ---> Running in 92b75b8e980b 21:01:58 Removing intermediate container 92b75b8e980b 21:01:58 ---> d949a6eb3cf5 21:01:58 Step 16/25 : RUN apk add --update --no-cache dumb-init 21:01:58 ---> Running in 4d1d3bb0df39 21:01:58 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 21:01:58 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 21:01:58 (1/1) Installing dumb-init (1.2.5-r2) 21:01:58 Executing busybox-1.35.0-r29.trigger 21:01:58 OK: 7 MiB in 16 packages 21:01:58 Removing intermediate container 4d1d3bb0df39 21:01:58 ---> b80df6c88450 21:01:58 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 21:01:58 ---> 9e12b2ede2f5 21:01:58 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 21:01:58 ---> e515eeaaba09 21:01:58 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 21:01:58 ---> 96c51dd7463f 21:01:58 Step 20/25 : EXPOSE 59986 21:01:58 ---> Running in 9dd3475a5bff 21:01:58 Removing intermediate container 9dd3475a5bff 21:01:58 ---> 81171623d936 21:01:58 Step 21/25 : ENTRYPOINT ["/device-rest"] 21:01:58 ---> Running in 361b4f5d8274 21:01:58 Removing intermediate container 361b4f5d8274 21:01:58 ---> 74eb0bb827db 21:01:58 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 21:01:58 ---> Running in a0ab2424552a 21:01:58 Removing intermediate container a0ab2424552a 21:01:58 ---> 73829af9dad0 21:01:58 Step 23/25 : LABEL arch=amd64 21:01:58 ---> Running in 69b6129ace79 21:01:58 Removing intermediate container 69b6129ace79 21:01:58 ---> aebebd830c72 21:01:58 Step 24/25 : LABEL git_sha=f234df3dbf1425c65cf8e8e65e0448f29381b915 21:01:58 ---> Running in b65d61a95bde 21:01:58 Removing intermediate container b65d61a95bde 21:01:58 ---> 44cb374cc372 21:01:58 Step 25/25 : LABEL version=0.0.0 21:01:58 ---> Running in ad6f526d773a 21:01:58 Removing intermediate container ad6f526d773a 21:01:58 ---> 4c5b8d89b295 21:01:58 [Warning] One or more build-args [ARCH] were not consumed 21:01:58 Successfully built 4c5b8d89b295 21:01:58 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 21:01:59 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 21:01:59 21:01:59 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 21:01:59 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 21:01:59 latest: Pulling from edgex-lftools-log-publisher 21:01:59 5eb5b503b376: Pulling fs layer 21:01:59 5c69ac0246d0: Pulling fs layer 21:01:59 ec43610c2a17: Pulling fs layer 21:01:59 3a2ae6a8a46f: Pulling fs layer 21:01:59 33b1e0a273af: Pulling fs layer 21:01:59 5d3b04190fa2: Pulling fs layer 21:01:59 2f39f015ded8: Pulling fs layer 21:01:59 33b1e0a273af: Waiting 21:01:59 5d3b04190fa2: Waiting 21:01:59 3a2ae6a8a46f: Waiting 21:01:59 2f39f015ded8: Waiting 21:01:59 5c69ac0246d0: Verifying Checksum 21:01:59 5c69ac0246d0: Download complete 21:01:59 3a2ae6a8a46f: Verifying Checksum 21:01:59 3a2ae6a8a46f: Download complete 21:01:59 33b1e0a273af: Verifying Checksum 21:01:59 33b1e0a273af: Download complete 21:01:59 5d3b04190fa2: Verifying Checksum 21:01:59 5d3b04190fa2: Download complete 21:01:59 ec43610c2a17: Verifying Checksum 21:01:59 ec43610c2a17: Download complete 21:02:00 5eb5b503b376: Verifying Checksum 21:02:00 5eb5b503b376: Download complete 21:02:00 2f39f015ded8: Download complete 21:02:01 5eb5b503b376: Pull complete 21:02:01 5c69ac0246d0: Pull complete 21:02:01 ec43610c2a17: Pull complete 21:02:01 3a2ae6a8a46f: Pull complete 21:02:02 33b1e0a273af: Pull complete 21:02:02 5d3b04190fa2: Pull complete 21:02:04 using credential edgex-jenkins-ssh 21:02:04 Cloning the remote Git repository 21:02:04 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 21:02:04 > git init /w/workspace/device-rest-go/1 # timeout=10 21:02:04 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 21:02:04 > git --version # timeout=10 21:02:05 > git --version # 'git version 2.25.1' 21:02:05 using GIT_SSH to set credentials SSH Credentials for GitHub 21:02:05 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 21:02:06 2f39f015ded8: Pull complete 21:02:06 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 21:02:06 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 21:02:06 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 21:02:06 prd-ubuntu20.04-docker-8c-8g-16783 does not seem to be running inside a container 21:02:06 $ 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-324 -v /w/workspace/gexfoundry_device-rest-go_PR-324:/w/workspace/gexfoundry_device-rest-go_PR-324:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-324@tmp:/w/workspace/gexfoundry_device-rest-go_PR-324@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 21:02:07 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 21:02:07 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 21:02:09 Merging remotes/origin/main commit 55c123e92a81b52ef904480be8a3eb69bc416b29 into PR head commit f234df3dbf1425c65cf8e8e65e0448f29381b915 21:02:09 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 21:02:09 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 21:02:09 using GIT_SSH to set credentials SSH Credentials for GitHub 21:02:09 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/324/head:refs/remotes/origin/PR-324 +refs/heads/main:refs/remotes/origin/main # timeout=10 21:02:09 > git config core.sparsecheckout # timeout=10 21:02:09 > git checkout -f f234df3dbf1425c65cf8e8e65e0448f29381b915 # timeout=10 21:02:10 > git remote # timeout=10 21:02:11 Merge succeeded, producing f234df3dbf1425c65cf8e8e65e0448f29381b915 21:02:11 Checking out Revision f234df3dbf1425c65cf8e8e65e0448f29381b915 (PR-324) 21:02:11 > git config --get remote.origin.url # timeout=10 21:02:11 using GIT_SSH to set credentials SSH Credentials for GitHub 21:02:11 > git merge 55c123e92a81b52ef904480be8a3eb69bc416b29 # timeout=10 21:02:11 > git rev-parse HEAD^{commit} # timeout=10 21:02:11 > git config core.sparsecheckout # timeout=10 21:02:12 > git checkout -f f234df3dbf1425c65cf8e8e65e0448f29381b915 # timeout=10 21:02:12 Commit message: "build(deps): Bump github.com/edgexfoundry/device-sdk-go/v3" 21:02:12 $ docker top f4d9def1992919ed98c1c2a77e39aaf1307549041ce3786cb4424d10fe7ba6d5 -eo pid,comm 21:02:12 > git --version # timeout=10 21:02:12 > git --version # 'git version 2.25.1' 21:02:12 fatal: bad object 4fc256d9079ed2258907e613f84b1b8da264a4bd [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 21:02:13 ---> job-cost.sh 21:02:13 lf-activate-venv: SKIPPING 21:02:13 INFO: No Stack... 21:02:13 21:02:13 GitHub has been notified of this commit’s build result 21:02:13 [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) 21:02:13 INFO: Retrieving Pricing Info for: v3-standard-8 [Pipeline] script [Pipeline] { [Pipeline] sh 21:02:13 INFO: Archiving Costs [Pipeline] sh 21:02:13 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 21:02:13 % Total % Received % Xferd Average Speed Time Time Time Current 21:02:13 Dload Upload Total Spent Left Speed 21:02:13 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 12751 100 12751 0 0 93072 0 --:--:-- --:--:-- --:--:-- 93072 21:02:13 + cat /w/workspace/gexfoundry_device-rest-go_PR-324/archives/cost.csv 21:02:13 + cut -d, -f6 [Pipeline] lock 21:02:13 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-324-1-stack-cost] 21:02:13 Resource [jenkins-edgexfoundry-device-rest-go-PR-324-1-stack-cost] did not exist. Created. 21:02:13 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-324-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh [Pipeline] sh 21:02:14 + echo total: 0.2199999988079071 [Pipeline] stash 21:02:14 Stashed 1 file(s) [Pipeline] } 21:02:14 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-324-1-stack-cost] [Pipeline] // lock [Pipeline] } 21:02:14 $ docker stop --time=1 f4d9def1992919ed98c1c2a77e39aaf1307549041ce3786cb4424d10fe7ba6d5 21:02:14 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json 21:02:15 $ docker rm -f --volumes f4d9def1992919ed98c1c2a77e39aaf1307549041ce3786cb4424d10fe7ba6d5 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] sh [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 21:02:16 + sudo tee /etc/docker/daemon.new 21:02:16 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 21:02:16 { 21:02:16 "registry-mirrors": [ 21:02:16 "https://nexus3.edgexfoundry.org:10001" 21:02:16 ], 21:02:16 "bip": "10.250.0.254/24", 21:02:16 "hosts": [ 21:02:16 "tcp://0.0.0.0:5555", 21:02:16 "unix:///var/run/docker.sock" 21:02:16 ], 21:02:16 "mtu": 1458, 21:02:16 "selinux-enabled": true, 21:02:16 "seccomp-profile": "/etc/docker/seccomp.json" 21:02:16 } [Pipeline] sh 21:02:16 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 21:02:16 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 21:02:35 provisioning config files... 21:02:35 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/1@tmp/config12347970333388346108tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 21:02:35 ---> docker-login.sh 21:02:35 nexus3.edgexfoundry.org:10001 21:02:36 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 21:02:36 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 21:02:36 Configure a credential helper to remove this warning. See 21:02:36 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 21:02:36 21:02:36 Login Succeeded 21:02:36 nexus3.edgexfoundry.org:10002 21:02:36 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 21:02:36 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 21:02:36 Configure a credential helper to remove this warning. See 21:02:36 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 21:02:36 21:02:36 Login Succeeded 21:02:36 nexus3.edgexfoundry.org:10003 21:02:37 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 21:02:37 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 21:02:37 Configure a credential helper to remove this warning. See 21:02:37 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 21:02:37 21:02:37 Login Succeeded 21:02:37 nexus3.edgexfoundry.org:10004 21:02:37 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 21:02:37 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 21:02:37 Configure a credential helper to remove this warning. See 21:02:37 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 21:02:37 21:02:37 Login Succeeded 21:02:37 docker.io 21:02:37 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 21:02:37 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 21:02:37 Configure a credential helper to remove this warning. See 21:02:37 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 21:02:37 21:02:37 Login Succeeded 21:02:37 ---> docker-login.sh ends [Pipeline] } 21:02:38 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 21:02:38 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 21:02:38 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 21:02:38 ========================================================= 21:02:38 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine] 21:02:38 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 21:02:38 + 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 . 21:02:38 Sending build context to Docker daemon 139.3kB 21:02:39 Step 1/12 : ARG BASE=golang:1.20-alpine3.17 21:02:39 Step 2/12 : FROM ${BASE} AS builder 21:02:39 1.20-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 21:02:39 c41833b44d91: Pulling fs layer 21:02:39 ed15518f5707: Pulling fs layer 21:02:39 feae8fd75edb: Pulling fs layer 21:02:39 242c74f7c9fa: Pulling fs layer 21:02:39 3cdef696dda3: Pulling fs layer 21:02:39 2ced38df9373: Pulling fs layer 21:02:39 58f1dce35555: Pulling fs layer 21:02:39 242c74f7c9fa: Waiting 21:02:39 3cdef696dda3: Waiting 21:02:39 2ced38df9373: Waiting 21:02:39 58f1dce35555: Waiting 21:02:39 ed15518f5707: Verifying Checksum 21:02:39 ed15518f5707: Download complete 21:02:39 242c74f7c9fa: Download complete 21:02:39 3cdef696dda3: Verifying Checksum 21:02:39 3cdef696dda3: Download complete 21:02:39 c41833b44d91: Verifying Checksum 21:02:39 c41833b44d91: Download complete 21:02:40 c41833b44d91: Pull complete 21:02:41 58f1dce35555: Verifying Checksum 21:02:41 58f1dce35555: Download complete 21:02:41 ed15518f5707: Pull complete 21:02:42 feae8fd75edb: Verifying Checksum 21:02:42 feae8fd75edb: Download complete 21:02:42 2ced38df9373: Verifying Checksum 21:02:42 2ced38df9373: Download complete 21:02:54 feae8fd75edb: Pull complete 21:02:54 242c74f7c9fa: Pull complete 21:02:54 3cdef696dda3: Pull complete 21:03:01 2ced38df9373: Pull complete 21:03:04 58f1dce35555: Pull complete 21:03:04 Digest: sha256:3b55595e96c696ae732e8cb20cde5b1ff7282a1fe1423a8de67617af8d15ea1e 21:03:04 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine 21:03:04 ---> fadd8f120f05 21:03:04 Step 3/12 : ARG ADD_BUILD_TAGS="" 21:03:06 ---> Running in 4356461df263 21:03:06 Removing intermediate container 4356461df263 21:03:06 ---> 9463ff0ce026 21:03:06 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 21:03:06 ---> Running in 05a47869762a 21:03:06 Removing intermediate container 05a47869762a 21:03:06 ---> 7eb4d4b8079d 21:03:06 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 21:03:06 ---> Running in 1b1f210dd3d9 21:03:07 Removing intermediate container 1b1f210dd3d9 21:03:07 ---> 68a7c6135d48 21:03:07 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 21:03:07 ---> Running in e2f820d79096 21:03:07 Removing intermediate container e2f820d79096 21:03:07 ---> 0e9ed46625d2 21:03:07 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 21:03:07 ---> Running in 7ab3201b8d81 21:03:08 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 21:03:09 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 21:03:10 (1/4) Installing openssh-keygen (9.1_p1-r3) 21:03:10 (2/4) Installing libedit (20221030.3.1-r0) 21:03:10 (3/4) Installing openssh-client-common (9.1_p1-r3) 21:03:10 (4/4) Installing openssh-client-default (9.1_p1-r3) 21:03:10 Executing busybox-1.35.0-r29.trigger 21:03:10 OK: 268 MiB in 57 packages 21:03:11 Removing intermediate container 7ab3201b8d81 21:03:11 ---> b1abb63b8787 21:03:11 Step 8/12 : WORKDIR /device-rest-go 21:03:11 ---> Running in 087bfb11601d 21:03:11 Removing intermediate container 087bfb11601d 21:03:11 ---> 313088c009e2 21:03:11 Step 9/12 : COPY go.mod vendor* ./ 21:03:12 ---> 9a530cf40457 21:03:12 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 21:03:12 ---> Running in 6c66629a48bd 21:04:33 Removing intermediate container 6c66629a48bd 21:04:33 ---> 00051d71b913 21:04:33 Step 11/12 : COPY . . 21:04:33 ---> f675e5b4ee30 21:04:33 Step 12/12 : RUN $MAKE 21:04:33 ---> Running in c79dfa0cfcf6 21:04:33 noop 21:04:33 Removing intermediate container c79dfa0cfcf6 21:04:33 ---> 6a94e2c88402 21:04:33 Successfully built 6a94e2c88402 21:04:33 Successfully tagged ci-base-image-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 21:04:34 + docker inspect -f . ci-base-image-arm64 21:04:34 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 21:04:34 prd-ubuntu20.04-docker-arm64-4c-16g-16784 does not seem to be running inside a container 21:04:34 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/1 -v /w/workspace/device-rest-go/1:/w/workspace/device-rest-go/1:rw,z -v /w/workspace/device-rest-go/1@tmp:/w/workspace/device-rest-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 21:04:35 $ docker top caaa37c3c06938f56d7a6c8e57e6fdfe9d78d0ef551e1e2791e5c1203557da99 -eo pid,comm [Pipeline] { [Pipeline] sh 21:04:36 + go version 21:04:36 go version go1.20.2 linux/arm64 [Pipeline] } 21:04:36 $ docker stop --time=1 caaa37c3c06938f56d7a6c8e57e6fdfe9d78d0ef551e1e2791e5c1203557da99 21:04:38 $ docker rm -f --volumes caaa37c3c06938f56d7a6c8e57e6fdfe9d78d0ef551e1e2791e5c1203557da99 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 21:04:39 + docker inspect -f . ci-base-image-arm64 21:04:39 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 21:04:39 prd-ubuntu20.04-docker-arm64-4c-16g-16784 does not seem to be running inside a container 21:04:39 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged -v /var/run/docker.sock:/var/run/docker.sock -w /w/workspace/device-rest-go/1 -v /w/workspace/device-rest-go/1:/w/workspace/device-rest-go/1:rw,z -v /w/workspace/device-rest-go/1@tmp:/w/workspace/device-rest-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 21:04:41 $ docker top c51d519a9d8bd256d703f2cce37e640b0756644fc1e5a6022e016952a0bb1452 -eo pid,comm [Pipeline] { [Pipeline] sh 21:04:42 + git config --global --add safe.directory /w/workspace/device-rest-go/1 [Pipeline] fileExists [Pipeline] sh 21:04:43 + make test 21:04:43 go test ./... -coverprofile=coverage.out ./... 21:05:15 ? github.com/edgexfoundry/device-rest-go [no test files] 21:07:07 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 21:07:07 ok github.com/edgexfoundry/device-rest-go/driver 0.061s coverage: 32.2% of statements 21:07:07 WARNING: Linting skipped (not on x86_64 or linter not installed) 21:07:07 go vet ./... 21:07:29 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 21:07:29 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 21:07:29 ./bin/test-attribution-txt.sh [Pipeline] echo 21:07:29 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 21:07:29 $ docker stop --time=1 c51d519a9d8bd256d703f2cce37e640b0756644fc1e5a6022e016952a0bb1452 21:07:31 $ docker rm -f --volumes c51d519a9d8bd256d703f2cce37e640b0756644fc1e5a6022e016952a0bb1452 [Pipeline] // withDockerContainer [Pipeline] sh 21:07:32 + sudo chown -R jenkins:jenkins . [Pipeline] stash 21:07:32 Warning: overwriting stash ‘coverage-report’ 21:07:32 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 21:07:33 + sudo chown -R jenkins:jenkins . [Pipeline] sh 21:07:33 + ls -al . 21:07:33 total 180 21:07:33 drwxrwxr-x 8 jenkins jenkins 4096 May 24 21:04 . 21:07:33 drwxrwxr-x 4 jenkins jenkins 4096 May 24 21:02 .. 21:07:33 -rw-rw-r-- 1 jenkins jenkins 151 May 24 21:02 .dockerignore 21:07:33 drwxrwxr-x 8 jenkins jenkins 4096 May 24 21:02 .git 21:07:33 drwxrwxr-x 3 jenkins jenkins 4096 May 24 21:02 .github 21:07:33 -rw-rw-r-- 1 jenkins jenkins 329 May 24 21:02 .gitignore 21:07:33 -rw-rw-r-- 1 jenkins jenkins 41 May 24 21:02 .golangci.yml 21:07:33 -rw-rw-r-- 1 jenkins jenkins 9331 May 24 21:02 Attribution.txt 21:07:33 -rw-rw-r-- 1 jenkins jenkins 13085 May 24 21:02 CHANGELOG.md 21:07:33 -rw-rw-r-- 1 jenkins jenkins 1578 May 24 21:02 Dockerfile 21:07:33 -rw-rw-r-- 1 jenkins jenkins 677 May 24 21:02 GOVERNANCE.md 21:07:33 -rw-rw-r-- 1 jenkins jenkins 680 May 24 21:02 Jenkinsfile 21:07:33 -rw-rw-r-- 1 jenkins jenkins 11340 May 24 21:02 LICENSE 21:07:33 -rw-rw-r-- 1 jenkins jenkins 1779 May 24 21:02 Makefile 21:07:33 -rw-rw-r-- 1 jenkins jenkins 620 May 24 21:02 OWNERS.md 21:07:33 -rw-rw-r-- 1 jenkins jenkins 15827 May 24 21:02 README.md 21:07:33 -rw-rw-r-- 1 jenkins jenkins 5 May 24 20:59 VERSION 21:07:33 drwxrwxr-x 2 jenkins jenkins 4096 May 24 21:02 bin 21:07:33 drwxrwxr-x 3 jenkins jenkins 4096 May 24 21:02 cmd 21:07:33 -rw-r--r-- 1 jenkins jenkins 14663 May 24 21:07 coverage.out 21:07:33 drwxrwxr-x 2 jenkins jenkins 4096 May 24 21:02 driver 21:07:33 -rw-rw-r-- 1 jenkins jenkins 3361 May 24 21:02 go.mod 21:07:33 -rw-rw-r-- 1 jenkins jenkins 31246 May 24 21:02 go.sum 21:07:33 drwxrwxr-x 4 jenkins jenkins 4096 May 24 21:02 snap 21:07:33 -rw-rw-r-- 1 jenkins jenkins 713 May 24 21:02 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 21:07:34 + 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=f234df3dbf1425c65cf8e8e65e0448f29381b915 --label arch=arm64 --label version=0.0.0 . 21:07:34 Sending build context to Docker daemon 154.6kB 21:07:34 Step 1/25 : ARG BASE=golang:1.20-alpine3.17 21:07:34 Step 2/25 : FROM ${BASE} AS builder 21:07:34 ---> 6a94e2c88402 21:07:34 Step 3/25 : ARG ADD_BUILD_TAGS="" 21:07:34 ---> Running in a12678450c71 21:07:34 Removing intermediate container a12678450c71 21:07:34 ---> 074dacc41134 21:07:34 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 21:07:34 ---> Running in a092a43433f5 21:07:35 Removing intermediate container a092a43433f5 21:07:35 ---> ab741363f934 21:07:35 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 21:07:35 ---> Running in 03d518a1e9ef 21:07:35 Removing intermediate container 03d518a1e9ef 21:07:35 ---> 8000ebec73ed 21:07:35 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 21:07:35 ---> Running in a064c86d377f 21:07:35 Removing intermediate container a064c86d377f 21:07:35 ---> 67ed890b895b 21:07:35 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 21:07:35 ---> Running in 5304fb7bb968 21:07:36 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 21:07:37 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 21:07:38 OK: 268 MiB in 57 packages 21:07:39 Removing intermediate container 5304fb7bb968 21:07:39 ---> 436598683705 21:07:39 Step 8/25 : WORKDIR /device-rest-go 21:07:39 ---> Running in 89cfc0bbf5f6 21:07:39 Removing intermediate container 89cfc0bbf5f6 21:07:39 ---> 54b1325da2ae 21:07:39 Step 9/25 : COPY go.mod vendor* ./ 21:07:40 ---> 5c92e128b7bb 21:07:40 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 21:07:40 ---> Running in 12b6ef5f8108 21:07:42 Removing intermediate container 12b6ef5f8108 21:07:42 ---> 2b37a4ef4bbe 21:07:42 Step 11/25 : COPY . . 21:07:43 ---> ba8f7053f332 21:07:43 Step 12/25 : RUN $MAKE 21:07:43 ---> Running in 092954a70d03 21:07:44 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 21:09:51 Removing intermediate container 092954a70d03 21:09:51 ---> e317d40c16ef 21:09:51 Step 13/25 : FROM alpine:3.17 21:09:51 3.17: Pulling from library/alpine 21:09:51 c41833b44d91: Already exists 21:09:51 Digest: sha256:124c7d2707904eea7431fffe91522a01e5a861a624ee31d03372cc1d138a3126 21:09:51 Status: Downloaded newer image for alpine:3.17 21:09:51 ---> 51e60588ff2c 21:09:51 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 21:09:51 ---> Running in a44349372f84 21:09:51 Removing intermediate container a44349372f84 21:09:51 ---> e5518aee1396 21:09:51 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 21:09:51 ---> Running in 30b0e35dd189 21:09:51 Removing intermediate container 30b0e35dd189 21:09:51 ---> cd63c5e47d4d 21:09:51 Step 16/25 : RUN apk add --update --no-cache dumb-init 21:09:51 ---> Running in bc6e08c9b479 21:09:51 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 21:09:51 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 21:09:51 (1/1) Installing dumb-init (1.2.5-r2) 21:09:51 Executing busybox-1.35.0-r29.trigger 21:09:51 OK: 8 MiB in 16 packages 21:09:52 Removing intermediate container bc6e08c9b479 21:09:52 ---> 801599e87b9f 21:09:52 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 21:09:54 ---> c3a3252b6684 21:09:54 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 21:09:55 ---> f07d28dec15b 21:09:55 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 21:09:57 ---> 0d741383ff90 21:09:57 Step 20/25 : EXPOSE 59986 21:09:57 ---> Running in 90df8151ef65 21:09:57 Removing intermediate container 90df8151ef65 21:09:57 ---> f50721a9ff31 21:09:57 Step 21/25 : ENTRYPOINT ["/device-rest"] 21:09:58 ---> Running in b48d0785ac72 21:09:58 Removing intermediate container b48d0785ac72 21:09:58 ---> 3db70344c86a 21:09:58 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 21:09:58 ---> Running in a1dc11671b1b 21:09:58 Removing intermediate container a1dc11671b1b 21:09:58 ---> 74a0329db83f 21:09:58 Step 23/25 : LABEL arch=arm64 21:09:58 ---> Running in e3ed4dac78b3 21:09:59 Removing intermediate container e3ed4dac78b3 21:09:59 ---> 6444fbee2520 21:09:59 Step 24/25 : LABEL git_sha=f234df3dbf1425c65cf8e8e65e0448f29381b915 21:09:59 ---> Running in f508698a09f4 21:09:59 Removing intermediate container f508698a09f4 21:09:59 ---> f23a6f1ebf99 21:09:59 Step 25/25 : LABEL version=0.0.0 21:09:59 ---> Running in 3df30e60be87 21:09:59 Removing intermediate container 3df30e60be87 21:09:59 ---> d82dd1c7966a 21:09:59 [Warning] One or more build-args [ARCH] were not consumed 21:09:59 Successfully built d82dd1c7966a 21:09:59 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 21:10:00 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 21:10:00 21:10:00 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 21:10:01 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 21:10:01 arm64: Pulling from edgex-lftools-log-publisher 21:10:01 8998bd30e6a1: Pulling fs layer 21:10:01 04944245beec: Pulling fs layer 21:10:01 699f458cf7ca: Pulling fs layer 21:10:01 765212b225bb: Pulling fs layer 21:10:01 f23df028b6ca: Pulling fs layer 21:10:01 d65c8cfc05b1: Pulling fs layer 21:10:01 2437ff75d9bd: Pulling fs layer 21:10:01 765212b225bb: Waiting 21:10:01 f23df028b6ca: Waiting 21:10:01 d65c8cfc05b1: Waiting 21:10:01 2437ff75d9bd: Waiting 21:10:01 04944245beec: Verifying Checksum 21:10:01 04944245beec: Download complete 21:10:01 765212b225bb: Verifying Checksum 21:10:01 765212b225bb: Download complete 21:10:01 f23df028b6ca: Verifying Checksum 21:10:01 f23df028b6ca: Download complete 21:10:01 d65c8cfc05b1: Verifying Checksum 21:10:01 d65c8cfc05b1: Download complete 21:10:01 699f458cf7ca: Verifying Checksum 21:10:01 699f458cf7ca: Download complete 21:10:02 8998bd30e6a1: Verifying Checksum 21:10:02 8998bd30e6a1: Download complete 21:10:04 2437ff75d9bd: Verifying Checksum 21:10:04 2437ff75d9bd: Download complete 21:10:06 8998bd30e6a1: Pull complete 21:10:06 04944245beec: Pull complete 21:10:08 699f458cf7ca: Pull complete 21:10:08 765212b225bb: Pull complete 21:10:11 f23df028b6ca: Pull complete 21:10:11 d65c8cfc05b1: Pull complete 21:10:27 2437ff75d9bd: Pull complete 21:10:27 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 21:10:27 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 21:10:27 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 21:10:27 prd-ubuntu20.04-docker-arm64-4c-16g-16784 does not seem to be running inside a container 21:10:27 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/device-rest-go/1 -v /w/workspace/device-rest-go/1:/w/workspace/device-rest-go/1:rw,z -v /w/workspace/device-rest-go/1@tmp:/w/workspace/device-rest-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 21:10:30 $ docker top 3e8698536bbf93ce72cf0c6bd9782a6ab509899e02bbd9f6a6862136077dc452 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 21:10:30 ---> job-cost.sh 21:10:30 lf-activate-venv: SKIPPING 21:10:30 INFO: No Stack... 21:10:31 INFO: Retrieving Pricing Info for: v3-standard-4 21:10:32 INFO: Archiving Costs [Pipeline] sh 21:10:32 + + cut -d, -f6cat 21:10:32 /w/workspace/device-rest-go/1/archives/cost.csv [Pipeline] lock 21:10:32 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-324-1-stack-cost] 21:10:32 Resource [jenkins-edgexfoundry-device-rest-go-PR-324-1-stack-cost] did not exist. Created. 21:10:32 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-324-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 21:10:33 /w/workspace/device-rest-go/1@tmp/durable-9dd95383/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 21:10:34 + echo total: 0.10999999940395355 [Pipeline] stash 21:10:34 Warning: overwriting stash ‘stack-cost’ 21:10:34 Stashed 1 file(s) [Pipeline] } 21:10:34 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-324-1-stack-cost] [Pipeline] // lock [Pipeline] } 21:10:34 $ docker stop --time=1 3e8698536bbf93ce72cf0c6bd9782a6ab509899e02bbd9f6a6862136077dc452 21:10:36 $ docker rm -f --volumes 3e8698536bbf93ce72cf0c6bd9782a6ab509899e02bbd9f6a6862136077dc452 [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 21:10:37 provisioning config files... 21:10:37 copy managed file [device-rest-go-codecov-token] to file:/w/workspace/gexfoundry_device-rest-go_PR-324@tmp/config18173783197597472106tmp [Pipeline] { [Pipeline] sh 21:10:37 + set +x 21:10:37 + curl -s https://codecov.io/bash 21:10:37 + bash -s -- 21:10:37 21:10:37 _____ _ 21:10:37 / ____| | | 21:10:37 | | ___ __| | ___ ___ _____ __ 21:10:37 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 21:10:37 | |___| (_) | (_| | __/ (_| (_) \ V / 21:10:37 \_____\___/ \__,_|\___|\___\___/ \_/ 21:10:37 Bash-1.0.6 21:10:37 21:10:37 21:10:37 ==> git version 2.25.1 found 21:10:37 ==> 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 21:10:37 Release-Date: 2020-01-08 21:10:37 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 21:10:37 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 21:10:37 ==> Jenkins CI detected. 21:10:37 current dir:  /w/workspace/gexfoundry_device-rest-go_PR-324 21:10:37 project root: . 21:10:37 --> token set from env 21:10:37 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 21:10:37 ==> Running gcov in . (disable via -X gcov) 21:10:37 ==> Python coveragepy not found 21:10:37 ==> Searching for coverage reports in: 21:10:37 + . 21:10:37 -> Found 1 reports 21:10:37 ==> Detecting git/mercurial file structure 21:10:37 ==> Reading reports 21:10:37 + ./coverage.out bytes=14663 21:10:37 ==> Appending adjustments 21:10:37 https://docs.codecov.io/docs/fixing-reports 21:10:37 + Found adjustments 21:10:37 ==> Gzipping contents 21:10:37 4.0K /tmp/codecov.DtS4LA.gz 21:10:37 ==> Uploading reports 21:10:37 url: https://codecov.io 21:10:37 query: branch=PR-324&commit=f234df3dbf1425c65cf8e8e65e0448f29381b915&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-324%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=324&job=&cmd_args= 21:10:37 -> Pinging Codecov 21:10:37 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=c51feb23-73ac-4f49-b3d1-d26df23137db&branch=PR-324&commit=f234df3dbf1425c65cf8e8e65e0448f29381b915&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-324%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=324&job=&cmd_args= 21:10:37 -> Uploading to 21:10:37 https://storage.googleapis.com/codecov/v4/raw/2023-05-24/4E5D53B4F1F92C436F7061BF334D961C/f234df3dbf1425c65cf8e8e65e0448f29381b915/8aa3c6a0-76ea-418c-95ec-289406105ab3.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20230524%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20230524T211037Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=1adab805592b85f87c2455fb164d47a8bae3eb119a1d99869340512e0930ddb8 21:10:37 % Total % Received % Xferd Average Speed Time Time Time Current 21:10:37 Dload Upload Total Spent Left Speed 21:10:37 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 2510 0 0 100 2510 0 11839 --:--:-- --:--:-- --:--:-- 11839 21:10:38 -> Reports have been successfully queued for processing at https://app.codecov.io/github/edgexfoundry/device-rest-go/commit/f234df3dbf1425c65cf8e8e65e0448f29381b915 [Pipeline] } 21:10:38 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 21:10:40 + [ -d /w/workspace/gexfoundry_device-rest-go_PR-324/archives ] 21:10:40 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-324/archives 21:10:40 total 16 21:10:40 drwxr-xr-x 3 root root 4096 May 24 21:02 . 21:10:40 drwxrwxr-x 10 jenkins jenkins 4096 May 24 21:02 .. 21:10:40 drwxr-xr-x 2 root root 4096 May 24 21:02 cost 21:10:40 -rw-r--r-- 1 root root 86 May 24 21:02 cost.csv 21:10:40 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-rest-go_PR-324/archives 21:10:40 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-324/archives 21:10:40 total 16 21:10:40 drwxr-xr-x 3 jenkins jenkins 4096 May 24 21:02 . 21:10:40 drwxrwxr-x 10 jenkins jenkins 4096 May 24 21:02 .. 21:10:40 drwxr-xr-x 2 jenkins jenkins 4096 May 24 21:02 cost 21:10:40 -rw-r--r-- 1 jenkins jenkins 86 May 24 21:02 cost.csv [Pipeline] libraryResource [Pipeline] sh 21:10:40 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 21:10:41 ---> package-listing.sh 21:10:41 ++ facter osfamily 21:10:41 ++ tr '[:upper:]' '[:lower:]' 21:10:41 + OS_FAMILY=debian 21:10:41 + workspace=/w/workspace/gexfoundry_device-rest-go_PR-324 21:10:41 + START_PACKAGES=/tmp/packages_start.txt 21:10:41 + END_PACKAGES=/tmp/packages_end.txt 21:10:41 + DIFF_PACKAGES=/tmp/packages_diff.txt 21:10:41 + PACKAGES=/tmp/packages_start.txt 21:10:41 + '[' /w/workspace/gexfoundry_device-rest-go_PR-324 ']' 21:10:41 + PACKAGES=/tmp/packages_end.txt 21:10:41 + case "${OS_FAMILY}" in 21:10:41 + dpkg -l 21:10:41 + grep '^ii' 21:10:41 + '[' -f /tmp/packages_start.txt ']' 21:10:41 + '[' -f /tmp/packages_end.txt ']' 21:10:41 + diff /tmp/packages_start.txt /tmp/packages_end.txt 21:10:41 + '[' /w/workspace/gexfoundry_device-rest-go_PR-324 ']' 21:10:41 + mkdir -p /w/workspace/gexfoundry_device-rest-go_PR-324/archives/ 21:10:41 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/gexfoundry_device-rest-go_PR-324/archives/ [Pipeline] echo 21:10:41 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-324/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 21:10:41 + facter operatingsystem [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 21:10:42 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 21:10:42 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 21:10:42 prd-ubuntu20.04-docker-8c-8g-16783 does not seem to be running inside a container 21:10:42 $ 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-324/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-324 -v /w/workspace/gexfoundry_device-rest-go_PR-324:/w/workspace/gexfoundry_device-rest-go_PR-324:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-324@tmp:/w/workspace/gexfoundry_device-rest-go_PR-324@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 21:10:42 $ docker top dd2578d05baba1b2388c4e6f868a4430f8cf2a16aa90d1ec944220bb63533ad7 -eo pid,comm [Pipeline] { [Pipeline] sh 21:10:43 + touch /tmp/pre-build-complete [Pipeline] sh 21:10:43 + mkdir -p /var/log/sysstat [Pipeline] sh 21:10:43 + ls /var/log/sa-host 21:10:43 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 21:10:44 provisioning config files... 21:10:44 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-324@tmp/config12722664572147239353tmp [Pipeline] { [Pipeline] echo 21:10:44 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 21:10:44 ---> create-netrc.sh [Pipeline] } 21:10:44 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 21:10:44 ---> python-tools-install.sh [Pipeline] echo 21:10:44 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 21:10:45 ---> sudo-logs.sh 21:10:45 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 21:10:45 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 21:10:45 ---> job-cost.sh 21:10:45 lf-activate-venv: SKIPPING 21:10:45 DEBUG: total: 0.2199999988079071 21:10:45 INFO: Retrieving Stack Cost... 21:10:46 INFO: Retrieving Pricing Info for: v3-standard-8 21:10:46 INFO: Archiving Costs [Pipeline] echo 21:10:46 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 21:10:46 ---> logs-deploy.sh 21:10:46 lf-activate-venv: SKIPPING 21:10:46 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-324/1 21:10:46 INFO: archiving workspace using pattern(s): 21:10:47 Archives upload complete. 21:10:47 INFO: archiving logs to Nexus