Pull request #289 updated Connecting to https://api.github.com using edgex-jenkins github personal access token Connecting to https://api.github.com to check permissions of obtain list of weichou1229 for edgexfoundry/device-rest-go Loading trusted files from base branch main at 795c3d665a96d2a485aec9c896c7781dae732fba rather than e833a662d185661b816c1daf345506abe605e9fc Obtained Jenkinsfile from 795c3d665a96d2a485aec9c896c7781dae732fba 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-ssh12073806230931899592.key > git ls-remote -h -t -- git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Found match: refs/tags/stable revision 8d11186b4ecddd371e5d69e8bc5262dee0d7f4a1 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-ssh9092176270779131215.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 8d11186b4ecddd371e5d69e8bc5262dee0d7f4a1 The recommended git tool is: git using credential edgex-jenkins-ssh > git rev-parse --resolve-git-dir /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-289/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82/.git # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Fetching with tags Fetching upstream changes from git@github.com:edgexfoundry/edgex-global-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-289/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh14997203329833927440.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision 8d11186b4ecddd371e5d69e8bc5262dee0d7f4a1 (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f 8d11186b4ecddd371e5d69e8bc5262dee0d7f4a1 # timeout=10 Commit message: "fix: bug with isLTS relying on env.GIT_BRANCH inside cd-management repo (#429)" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 Excluding src/test/ from checkout of git git@github.com:edgexfoundry/edgex-global-pipelines.git so that library test code cannot be accessed by Pipelines. To remove this log message, move the test code outside of src/. To restore the previous behavior that allowed access to files in src/test/, pass -Dorg.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.INCLUDE_SRC_TEST_IN_LIBRARIES=true to the java command used to start Jenkins. Loading library lf-pipelines@master Attempting to resolve master from remote references... > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /tmp/jenkins-gitclient-ssh13312613146328005151.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 > git rev-parse --resolve-git-dir /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-289/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e/.git # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url git@github.com:lfit/releng-pipelines.git # timeout=10 Fetching without tags Fetching upstream changes from git@github.com:lfit/releng-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-289/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e@tmp/jenkins-gitclient-ssh8813551147936836318.key > git fetch --no-tags --progress -- git@github.com:lfit/releng-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10 Checking out Revision 65355178549468b165f8106641c96c3190b1d843 (master) > git config core.sparsecheckout # timeout=10 > git checkout -f 65355178549468b165f8106641c96c3190b1d843 # timeout=10 Commit message: "Fix: Add S3 URL in href to ship logs" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 Excluding src/test/ from checkout of git git@github.com:lfit/releng-pipelines.git so that library test code cannot be accessed by Pipelines. To remove this log message, move the test code outside of src/. To restore the previous behavior that allowed access to files in src/test/, pass -Dorg.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.INCLUDE_SRC_TEST_IN_LIBRARIES=true to the java command used to start Jenkins. [Pipeline] Start of Pipeline [Pipeline] echo ========================================================= [edgeXBuildGoApp] RAW Config: [project:device-rest-go] ========================================================= [Pipeline] echo Setting up nodes based on requested architectures [[amd64, arm64]] [Pipeline] echo Nodes requested: [[ubuntu20.04-docker-8c-8g, ubuntu20.04-docker-arm64-4c-16g]] [Pipeline] echo ========================================================= [edgeXBuildGoApp] Pipeline Parameters: ========================================================= [Pipeline] echo MAVEN_SETTINGS: device-rest-go-settings PROJECT: device-rest-go USE_SEMVER: true TEST_SCRIPT: make test BUILD_SCRIPT: make build GO_VERSION: 1.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-8393’ Running on prd-ubuntu20.04-docker-8c-8g-8396 in /w/workspace/gexfoundry_device-rest-go_PR-289 [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-289 # 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/289/head:refs/remotes/origin/PR-289 +refs/heads/main:refs/remotes/origin/main # timeout=10 Merging remotes/origin/main commit 795c3d665a96d2a485aec9c896c7781dae732fba into PR head commit e833a662d185661b816c1daf345506abe605e9fc Merge succeeded, producing e833a662d185661b816c1daf345506abe605e9fc Checking out Revision e833a662d185661b816c1daf345506abe605e9fc (PR-289) > git config core.sparsecheckout # timeout=10 > git checkout -f e833a662d185661b816c1daf345506abe605e9fc # 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 795c3d665a96d2a485aec9c896c7781dae732fba # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f e833a662d185661b816c1daf345506abe605e9fc # timeout=10 Commit message: "feat!: Consume SDK interface changes" First time build. Skipping changelog. [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 06:15:30 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 06:15:30 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 06:15:30 ========================================================= 06:15:30 EdgeX Global Pipelines Version Info 06:15:30 ========================================================= [Pipeline] libraryResource [Pipeline] sh 06:15:31 ------------------- 06:15:31 stable info: 06:15:31 ------------------- 06:15:31 Commited By: Bill Mahoney bill.mahoney@intel.com 06:15:31 Commit SHA: 8d11186b4ecddd371e5d69e8bc5262dee0d7f4a1 06:15:31 Message: update stable to v1.0.248 > git rev-list --no-walk 1016ce9456fa13178f6c2470ebffbab6c8d0e0ba # timeout=10 06:15:31 ------------------- 06:15:31 experimental info: 06:15:31 ------------------- 06:15:31 Commited By: **** collab-it+edgex@linuxfoundation.org 06:15:31 Commit SHA: 8d11186b4ecddd371e5d69e8bc5262dee0d7f4a1 06:15:31 Message: update experimental to v1.0.248 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 06:15:31 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 06:15:31 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 06:15:32 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 06:15:32 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 06:15:32 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 06:15:32 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.20 [Pipeline] echo 06:15:32 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 06:15:32 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 06:15:32 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 06:15:32 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 06:15:32 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 06:15:32 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 06:15:32 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 06:15:32 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 06:15:32 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 06:15:32 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 06:15:32 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 06:15:32 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 06:15:32 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 06:15:32 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 06:15:32 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 06:15:32 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 06:15:32 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 06:15:32 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 06:15:32 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 06:15:32 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 06:15:32 [edgeXSetupEnvironment]: set envvar SNYK_DEBUG = false [Pipeline] echo 06:15:32 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-289 [Pipeline] echo 06:15:32 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-289 [Pipeline] echo 06:15:32 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-289 [Pipeline] echo 06:15:32 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = e833a662d185661b816c1daf345506abe605e9fc [Pipeline] echo 06:15:32 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = e833a66 [Pipeline] echo 06:15:32 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 06:15:32 provisioning config files... 06:15:32 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-289@tmp/config573351005058945717tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 06:15:32 ---> docker-login.sh 06:15:32 nexus3.edgexfoundry.org:10001 06:15:33 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 06:15:33 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 06:15:33 Configure a credential helper to remove this warning. See 06:15:33 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 06:15:33 06:15:33 Login Succeeded 06:15:33 nexus3.edgexfoundry.org:10002 06:15:33 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 06:15:33 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 06:15:33 Configure a credential helper to remove this warning. See 06:15:33 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 06:15:33 06:15:33 Login Succeeded 06:15:33 nexus3.edgexfoundry.org:10003 06:15:33 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 06:15:33 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 06:15:33 Configure a credential helper to remove this warning. See 06:15:33 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 06:15:33 06:15:33 Login Succeeded 06:15:33 nexus3.edgexfoundry.org:10004 06:15:33 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 06:15:33 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 06:15:33 Configure a credential helper to remove this warning. See 06:15:33 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 06:15:33 06:15:33 Login Succeeded 06:15:33 docker.io 06:15:33 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 06:15:33 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 06:15:33 Configure a credential helper to remove this warning. See 06:15:33 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 06:15:33 06:15:33 Login Succeeded 06:15:33 ---> docker-login.sh ends [Pipeline] } 06:15:33 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 06:15:33 + git rev-list -1 --merges e833a662d185661b816c1daf345506abe605e9fc~1..e833a662d185661b816c1daf345506abe605e9fc [Pipeline] echo 06:15:33 -----------> git rev-list -1 --merges e833a662d185661b816c1daf345506abe605e9fc~1..e833a662d185661b816c1daf345506abe605e9fc e833a662d185661b816c1daf345506abe605e9fc [false] [Pipeline] sh 06:15:34 + git log --format=format:%s -1 e833a662d185661b816c1daf345506abe605e9fc [Pipeline] echo 06:15:34 ========================================================= 06:15:34 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 06:15:34 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 06:15:34 + git log --format=format:%s -1 e833a662d185661b816c1daf345506abe605e9fc [Pipeline] echo 06:15:34 [semverPrep] GIT_COMMIT: e833a662d185661b816c1daf345506abe605e9fc, Commit Message: feat!: Consume SDK interface changes [Pipeline] echo 06:15:34 [semverPrep] This is not a build commit. [Pipeline] sh 06:15:34 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 06:15:34 + grep -v github /etc/ssh/ssh_known_hosts 06:15:34 + [ -e /tmp/ssh_known_hosts ] 06:15:34 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 06:15:34 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 06:15:34 + sudo tee -a /etc/ssh/ssh_known_hosts 06:15:34 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 06:15:35 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 06:15:35 06:15:35 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 06:15:35 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 06:15:35 0.1.4: Pulling from edgex-devops/py-git-semver 06:15:35 b85a868b505f: Pulling fs layer 06:15:35 e2be974225ed: Pulling fs layer 06:15:35 339a4e72a1f5: Pulling fs layer 06:15:35 988bab9f4d93: Pulling fs layer 06:15:35 1469e6f7b9e6: Pulling fs layer 06:15:35 eaf3925da568: Pulling fs layer 06:15:35 bab4dde63d76: Pulling fs layer 06:15:35 bde34c3a00c8: Pulling fs layer 06:15:35 eaf3925da568: Waiting 06:15:35 bab4dde63d76: Waiting 06:15:35 1469e6f7b9e6: Waiting 06:15:35 988bab9f4d93: Waiting 06:15:35 bde34c3a00c8: Waiting 06:15:35 b352a97aabf1: Pulling fs layer 06:15:35 4872d77fe225: Pulling fs layer 06:15:35 b352a97aabf1: Waiting 06:15:35 5851b861e8e6: Pulling fs layer 06:15:35 4872d77fe225: Waiting 06:15:35 5851b861e8e6: Waiting 06:15:35 e2be974225ed: Verifying Checksum 06:15:35 e2be974225ed: Download complete 06:15:35 988bab9f4d93: Verifying Checksum 06:15:35 988bab9f4d93: Download complete 06:15:35 1469e6f7b9e6: Verifying Checksum 06:15:35 1469e6f7b9e6: Download complete 06:15:35 339a4e72a1f5: Verifying Checksum 06:15:35 339a4e72a1f5: Download complete 06:15:35 eaf3925da568: Download complete 06:15:35 bde34c3a00c8: Download complete 06:15:35 b352a97aabf1: Verifying Checksum 06:15:35 b352a97aabf1: Download complete 06:15:35 4872d77fe225: Verifying Checksum 06:15:35 4872d77fe225: Download complete 06:15:35 5851b861e8e6: Verifying Checksum 06:15:35 5851b861e8e6: Download complete 06:15:35 b85a868b505f: Verifying Checksum 06:15:35 b85a868b505f: Download complete 06:15:36 bab4dde63d76: Verifying Checksum 06:15:36 bab4dde63d76: Download complete 06:15:37 b85a868b505f: Pull complete 06:15:37 e2be974225ed: Pull complete 06:15:37 339a4e72a1f5: Pull complete 06:15:37 988bab9f4d93: Pull complete 06:15:38 1469e6f7b9e6: Pull complete 06:15:38 eaf3925da568: Pull complete 06:15:40 bab4dde63d76: Pull complete 06:15:40 bde34c3a00c8: Pull complete 06:15:40 b352a97aabf1: Pull complete 06:15:40 4872d77fe225: Pull complete 06:15:40 5851b861e8e6: Pull complete 06:15:40 Digest: sha256:59a28aa3b44c0bc56b9c3d2e9ecabe42e63693d939cc6e425eb8786f29f663d8 06:15:40 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 06:15:40 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 06:15:40 prd-ubuntu20.04-docker-8c-8g-8396 does not seem to be running inside a container 06:15:40 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/gexfoundry_device-rest-go_PR-289 -v /w/workspace/gexfoundry_device-rest-go_PR-289:/w/workspace/gexfoundry_device-rest-go_PR-289:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-289@tmp:/w/workspace/gexfoundry_device-rest-go_PR-289@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 cat 06:15:41 $ docker top bd49c005c17cf1ace44a235c48156e1d7af88f66c95938e12f74c7be3f6d0930 -eo pid,comm 06:15:41 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). 06:15:41 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 06:15:41 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 06:15:41 [ssh-agent] Looking for ssh-agent implementation... 06:15:41 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 06:15:41 $ docker exec bd49c005c17cf1ace44a235c48156e1d7af88f66c95938e12f74c7be3f6d0930 ssh-agent 06:15:41 SSH_AUTH_SOCK=/tmp/ssh-2SgBcJ1wexpW/agent.32 06:15:41 SSH_AGENT_PID=38 06:15:41 Running ssh-add (command line suppressed) 06:15:41 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-289@tmp/private_key_12895110837883791520.key (/w/workspace/gexfoundry_device-rest-go_PR-289@tmp/private_key_12895110837883791520.key) 06:15:41 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 06:15:42 + git tag --points-at HEAD [Pipeline] } 06:15:42 $ docker exec --env ******** --env ******** bd49c005c17cf1ace44a235c48156e1d7af88f66c95938e12f74c7be3f6d0930 ssh-agent -k 06:15:42 unset SSH_AUTH_SOCK; 06:15:42 unset SSH_AGENT_PID; 06:15:42 echo Agent pid 38 killed; 06:15:42 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 06:15:42 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 06:15:42 [ssh-agent] Looking for ssh-agent implementation... 06:15:42 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 06:15:42 $ docker exec bd49c005c17cf1ace44a235c48156e1d7af88f66c95938e12f74c7be3f6d0930 ssh-agent 06:15:42 SSH_AUTH_SOCK=/tmp/ssh-YvF4Jl46z1v5/agent.70 06:15:42 SSH_AGENT_PID=76 06:15:42 Running ssh-add (command line suppressed) 06:15:42 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-289@tmp/private_key_14255540198330088863.key (/w/workspace/gexfoundry_device-rest-go_PR-289@tmp/private_key_14255540198330088863.key) 06:15:42 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 06:15:42 + git semver init 06:15:43 2023-04-13 06:15:43,156 [run_init] DEBUG init version:0.0.0 force:False 06:15:43 2023-04-13 06:15:43,157 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/gexfoundry_device-rest-go_PR-289/.semver 06:15:43 2023-04-13 06:15:43,157 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-rest-go.git /w/workspace/gexfoundry_device-rest-go_PR-289/.semver 06:15:43 2023-04-13 06:15:43,157 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-rest-go.git', '/w/workspace/gexfoundry_device-rest-go_PR-289/.semver'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-289, universal_newlines=False, shell=None, istream=None) 06:15:44 2023-04-13 06:15:44,046 [append_file] DEBUG append to file:/w/workspace/gexfoundry_device-rest-go_PR-289/.git/info/exclude 06:15:44 2023-04-13 06:15:44,047 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/gexfoundry_device-rest-go_PR-289/.semver/PR-289 with force:False 06:15:44 2023-04-13 06:15:44,047 [write_file] DEBUG write to file:/w/workspace/gexfoundry_device-rest-go_PR-289/.semver/PR-289 06:15:44 2023-04-13 06:15:44,051 [execute] INFO git cat-file --batch-check 06:15:44 2023-04-13 06:15:44,051 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-289/.semver, universal_newlines=False, shell=None, istream=) 06:15:44 2023-04-13 06:15:44,058 [execute] INFO git cat-file --batch 06:15:44 2023-04-13 06:15:44,058 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-289/.semver, universal_newlines=False, shell=None, istream=) 06:15:44 2023-04-13 06:15:44,063 [read_version] DEBUG read version from /w/workspace/gexfoundry_device-rest-go_PR-289/.semver/PR-289 06:15:44 0.0.0 [Pipeline] } 06:15:44 $ docker exec --env ******** --env ******** bd49c005c17cf1ace44a235c48156e1d7af88f66c95938e12f74c7be3f6d0930 ssh-agent -k 06:15:44 unset SSH_AUTH_SOCK; 06:15:44 unset SSH_AGENT_PID; 06:15:44 echo Agent pid 76 killed; 06:15:44 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 06:15:44 + git semver [Pipeline] } 06:15:44 $ docker stop --time=1 bd49c005c17cf1ace44a235c48156e1d7af88f66c95938e12f74c7be3f6d0930 06:15:46 $ docker rm -f --volumes bd49c005c17cf1ace44a235c48156e1d7af88f66c95938e12f74c7be3f6d0930 [Pipeline] // withDockerContainer [Pipeline] sh 06:15:46 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 06:15:46 Stashed 1 file(s) [Pipeline] echo 06:15:46 [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 06:15:46 provisioning config files... 06:15:46 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-289@tmp/config2503001981489413629tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 06:15:47 ---> docker-login.sh 06:15:47 nexus3.edgexfoundry.org:10001 06:15:47 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 06:15:47 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 06:15:47 Configure a credential helper to remove this warning. See 06:15:47 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 06:15:47 06:15:47 Login Succeeded 06:15:47 nexus3.edgexfoundry.org:10002 06:15:47 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 06:15:47 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 06:15:47 Configure a credential helper to remove this warning. See 06:15:47 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 06:15:47 06:15:47 Login Succeeded 06:15:47 nexus3.edgexfoundry.org:10003 06:15:47 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 06:15:47 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 06:15:47 Configure a credential helper to remove this warning. See 06:15:47 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 06:15:47 06:15:47 Login Succeeded 06:15:47 nexus3.edgexfoundry.org:10004 06:15:47 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 06:15:47 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 06:15:47 Configure a credential helper to remove this warning. See 06:15:47 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 06:15:47 06:15:47 Login Succeeded 06:15:47 docker.io 06:15:47 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 06:15:47 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 06:15:47 Configure a credential helper to remove this warning. See 06:15:47 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 06:15:47 06:15:47 Login Succeeded 06:15:47 ---> docker-login.sh ends [Pipeline] } 06:15:47 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 06:15:47 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 06:15:47 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 06:15:47 ========================================================= 06:15:47 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine] 06:15:47 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 06:15:48 + 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 . 06:15:48 Sending build context to Docker daemon 10.88MB 06:15:48 Step 1/12 : ARG BASE=golang:1.20-alpine3.17 06:15:48 Step 2/12 : FROM ${BASE} AS builder 06:15:48 1.20-alpine: Pulling from edgex-devops/edgex-golang-base 06:15:48 63b65145d645: Pulling fs layer 06:15:48 a2d21d5440eb: Pulling fs layer 06:15:48 935e6c44a52c: Pulling fs layer 06:15:48 94cc34f8dd06: Pulling fs layer 06:15:48 30dea6a524f1: Pulling fs layer 06:15:48 a2aff8979fd8: Pulling fs layer 06:15:48 6808be2612f2: Pulling fs layer 06:15:48 f25807f1079a: Pulling fs layer 06:15:48 a2aff8979fd8: Waiting 06:15:48 6808be2612f2: Waiting 06:15:48 30dea6a524f1: Waiting 06:15:48 a2d21d5440eb: Verifying Checksum 06:15:48 a2d21d5440eb: Download complete 06:15:48 94cc34f8dd06: Verifying Checksum 06:15:48 94cc34f8dd06: Download complete 06:15:48 30dea6a524f1: Verifying Checksum 06:15:48 30dea6a524f1: Download complete 06:15:48 63b65145d645: Download complete 06:15:48 a2aff8979fd8: Verifying Checksum 06:15:48 a2aff8979fd8: Download complete 06:15:48 63b65145d645: Pull complete 06:15:48 a2d21d5440eb: Pull complete 06:15:48 f25807f1079a: Verifying Checksum 06:15:48 f25807f1079a: Download complete 06:15:48 935e6c44a52c: Verifying Checksum 06:15:48 935e6c44a52c: Download complete 06:15:49 6808be2612f2: Verifying Checksum 06:15:49 6808be2612f2: Download complete 06:15:52 935e6c44a52c: Pull complete 06:15:52 94cc34f8dd06: Pull complete 06:15:52 30dea6a524f1: Pull complete 06:15:52 a2aff8979fd8: Pull complete 06:15:54 6808be2612f2: Pull complete 06:15:55 f25807f1079a: Pull complete 06:15:55 Digest: sha256:106942793af8b5907f587008084bb0888cadbc76d86ebd37d4d3227fb0f1e438 06:15:55 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine 06:15:55 ---> 3b553350e43f 06:15:55 Step 3/12 : ARG ADD_BUILD_TAGS="" 06:15:56 ---> Running in b432ae114581 06:15:57 Removing intermediate container b432ae114581 06:15:57 ---> a83fa1d01223 06:15:57 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 06:15:57 ---> Running in f5049270ba50 06:15:57 Removing intermediate container f5049270ba50 06:15:57 ---> 0851ba97ce22 06:15:57 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 06:15:57 ---> Running in 85c3a2255710 06:15:57 Removing intermediate container 85c3a2255710 06:15:57 ---> 6ac53899360a 06:15:57 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 06:15:57 ---> Running in 6cb85c991243 06:15:57 Removing intermediate container 6cb85c991243 06:15:57 ---> c8917712d318 06:15:57 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 06:15:57 ---> Running in 8db412aff344 06:15:57 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 06:15:57 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 06:15:58 (1/4) Installing openssh-keygen (9.1_p1-r2) 06:15:58 (2/4) Installing libedit (20221030.3.1-r0) 06:15:58 (3/4) Installing openssh-client-common (9.1_p1-r2) 06:15:58 (4/4) Installing openssh-client-default (9.1_p1-r2) 06:15:58 Executing busybox-1.35.0-r29.trigger 06:15:58 OK: 269 MiB in 57 packages 06:15:58 Removing intermediate container 8db412aff344 06:15:58 ---> 9e19b15c87ce 06:15:58 Step 8/12 : WORKDIR /device-rest-go 06:15:58 ---> Running in af5fc092b889 06:15:58 Removing intermediate container af5fc092b889 06:15:58 ---> 461e241b4d34 06:15:58 Step 9/12 : COPY go.mod vendor* ./ 06:15:58 ---> 9336e9af22ca 06:15:58 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 06:15:58 ---> Running in 73ac87efd6a2 06:16:01 Still waiting to schedule task 06:16:01 Waiting for next available executor on ‘prd-ubuntu20.04-docker-arm64-4c-16g-8394’ 06:16:25 Removing intermediate container 73ac87efd6a2 06:16:25 ---> 83838eb90d60 06:16:25 Step 11/12 : COPY . . 06:16:25 ---> a55a764fc519 06:16:25 Step 12/12 : RUN $MAKE 06:16:25 ---> Running in 515f7c0df381 06:16:25 noop 06:16:25 Removing intermediate container 515f7c0df381 06:16:25 ---> a85213f61622 06:16:25 Successfully built a85213f61622 06:16:25 Successfully tagged ci-base-image-x86_64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 06:16:25 + docker inspect -f . ci-base-image-x86_64 06:16:25 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 06:16:25 prd-ubuntu20.04-docker-8c-8g-8396 does not seem to be running inside a container 06:16:25 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-289 -v /w/workspace/gexfoundry_device-rest-go_PR-289:/w/workspace/gexfoundry_device-rest-go_PR-289:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-289@tmp:/w/workspace/gexfoundry_device-rest-go_PR-289@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 06:16:26 $ docker top 6806356e896386566f982390aff2a383233fbe6554d84b98486cc5a9abf1c93a -eo pid,comm [Pipeline] { [Pipeline] sh 06:16:26 + go version 06:16:26 go version go1.20.2 linux/amd64 [Pipeline] } 06:16:26 $ docker stop --time=1 6806356e896386566f982390aff2a383233fbe6554d84b98486cc5a9abf1c93a 06:16:27 $ docker rm -f --volumes 6806356e896386566f982390aff2a383233fbe6554d84b98486cc5a9abf1c93a [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 06:16:28 + docker inspect -f . ci-base-image-x86_64 06:16:28 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 06:16:28 prd-ubuntu20.04-docker-8c-8g-8396 does not seem to be running inside a container 06:16:28 $ 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-289 -v /w/workspace/gexfoundry_device-rest-go_PR-289:/w/workspace/gexfoundry_device-rest-go_PR-289:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-289@tmp:/w/workspace/gexfoundry_device-rest-go_PR-289@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 06:16:28 $ docker top aba9a0db4f60b7e4629b39ecf5d00ec3db899261006b8e66489b63a5f812d07a -eo pid,comm [Pipeline] { [Pipeline] sh 06:16:28 + git config --global --add safe.directory /w/workspace/gexfoundry_device-rest-go_PR-289 [Pipeline] fileExists [Pipeline] sh 06:16:29 + make test 06:16:29 go test ./... -coverprofile=coverage.out ./... 06:16:34 ? github.com/edgexfoundry/device-rest-go [no test files] 06:16:44 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 06:16:44 ok github.com/edgexfoundry/device-rest-go/driver 0.015s coverage: 32.3% of statements 06:16:50 go vet ./... 06:16:55 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 06:16:55 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 06:16:55 ./bin/test-attribution-txt.sh 06:16:55 An attribution for github.com/go-jose/go-jose/v3 is missing from Attribution.txt, please add [Pipeline] echo 06:16:55 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 06:16:55 $ docker stop --time=1 aba9a0db4f60b7e4629b39ecf5d00ec3db899261006b8e66489b63a5f812d07a 06:16:56 $ docker rm -f --volumes aba9a0db4f60b7e4629b39ecf5d00ec3db899261006b8e66489b63a5f812d07a [Pipeline] // withDockerContainer [Pipeline] sh 06:16:57 + sudo chown -R jenkins:jenkins . [Pipeline] stash 06:16:57 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 06:16:57 + sudo chown -R jenkins:jenkins . [Pipeline] sh 06:16:58 + ls -al . 06:16:58 total 184 06:16:58 drwxrwxr-x 9 jenkins jenkins 4096 Apr 13 06:16 . 06:16:58 drwxrwxr-x 4 jenkins jenkins 4096 Apr 13 06:15 .. 06:16:58 -rw-rw-r-- 1 jenkins jenkins 151 Apr 13 06:15 .dockerignore 06:16:58 drwxrwxr-x 8 jenkins jenkins 4096 Apr 13 06:15 .git 06:16:58 drwxrwxr-x 3 jenkins jenkins 4096 Apr 13 06:15 .github 06:16:58 -rw-rw-r-- 1 jenkins jenkins 329 Apr 13 06:15 .gitignore 06:16:58 -rw-rw-r-- 1 jenkins jenkins 41 Apr 13 06:15 .golangci.yml 06:16:58 drwxr-xr-x 3 jenkins jenkins 4096 Apr 13 06:15 .semver 06:16:58 -rw-rw-r-- 1 jenkins jenkins 9202 Apr 13 06:15 Attribution.txt 06:16:58 -rw-rw-r-- 1 jenkins jenkins 13085 Apr 13 06:15 CHANGELOG.md 06:16:58 -rw-rw-r-- 1 jenkins jenkins 1578 Apr 13 06:15 Dockerfile 06:16:58 -rw-rw-r-- 1 jenkins jenkins 677 Apr 13 06:15 GOVERNANCE.md 06:16:58 -rw-rw-r-- 1 jenkins jenkins 680 Apr 13 06:15 Jenkinsfile 06:16:58 -rw-rw-r-- 1 jenkins jenkins 11340 Apr 13 06:15 LICENSE 06:16:58 -rw-rw-r-- 1 jenkins jenkins 1779 Apr 13 06:15 Makefile 06:16:58 -rw-rw-r-- 1 jenkins jenkins 620 Apr 13 06:15 OWNERS.md 06:16:58 -rw-rw-r-- 1 jenkins jenkins 15321 Apr 13 06:15 README.md 06:16:58 -rw-rw-r-- 1 jenkins jenkins 5 Apr 13 06:15 VERSION 06:16:58 drwxrwxr-x 2 jenkins jenkins 4096 Apr 13 06:15 bin 06:16:58 drwxrwxr-x 3 jenkins jenkins 4096 Apr 13 06:15 cmd 06:16:58 -rw-r--r-- 1 jenkins jenkins 14587 Apr 13 06:16 coverage.out 06:16:58 drwxrwxr-x 2 jenkins jenkins 4096 Apr 13 06:15 driver 06:16:58 -rw-rw-r-- 1 jenkins jenkins 3402 Apr 13 06:15 go.mod 06:16:58 -rw-rw-r-- 1 jenkins jenkins 31553 Apr 13 06:15 go.sum 06:16:58 drwxrwxr-x 4 jenkins jenkins 4096 Apr 13 06:15 snap 06:16:58 -rw-rw-r-- 1 jenkins jenkins 713 Apr 13 06:15 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 06:16:58 + 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=e833a662d185661b816c1daf345506abe605e9fc --label arch=amd64 --label version=0.0.0 . 06:16:58 Sending build context to Docker daemon 10.89MB 06:16:58 Step 1/25 : ARG BASE=golang:1.20-alpine3.17 06:16:58 Step 2/25 : FROM ${BASE} AS builder 06:16:58 ---> a85213f61622 06:16:58 Step 3/25 : ARG ADD_BUILD_TAGS="" 06:16:58 ---> Running in d37c489d6c28 06:16:58 Removing intermediate container d37c489d6c28 06:16:58 ---> 8eb48378c4d2 06:16:58 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 06:16:58 ---> Running in ce2c1b0bac0a 06:16:58 Removing intermediate container ce2c1b0bac0a 06:16:58 ---> 399edfffd91f 06:16:58 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 06:16:58 ---> Running in bb3364632b18 06:16:58 Removing intermediate container bb3364632b18 06:16:58 ---> aac7480f16fd 06:16:58 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 06:16:58 ---> Running in 81529d0933be 06:16:58 Removing intermediate container 81529d0933be 06:16:58 ---> fab609b41313 06:16:58 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 06:16:58 ---> Running in 4c97d8f3e897 06:16:59 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 06:16:59 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 06:16:59 OK: 269 MiB in 57 packages 06:16:59 Removing intermediate container 4c97d8f3e897 06:16:59 ---> eb26a1f4708b 06:16:59 Step 8/25 : WORKDIR /device-rest-go 06:16:59 ---> Running in 86b20dfb1f23 06:16:59 Removing intermediate container 86b20dfb1f23 06:16:59 ---> 05ffa7cb8f65 06:16:59 Step 9/25 : COPY go.mod vendor* ./ 06:16:59 ---> 85537dc63ee8 06:16:59 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 06:16:59 ---> Running in 27b295abbf7d 06:17:00 Removing intermediate container 27b295abbf7d 06:17:00 ---> edd7c0cca09e 06:17:00 Step 11/25 : COPY . . 06:17:00 ---> 52f5e58ae9c9 06:17:00 Step 12/25 : RUN $MAKE 06:17:01 ---> Running in 52df95540926 06:17:01 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 06:17:19 Removing intermediate container 52df95540926 06:17:19 ---> d024197ca076 06:17:19 Step 13/25 : FROM alpine:3.17 06:17:19 3.17: Pulling from library/alpine 06:17:19 f56be85fc22e: Pulling fs layer 06:17:19 f56be85fc22e: Verifying Checksum 06:17:19 f56be85fc22e: Download complete 06:17:19 f56be85fc22e: Pull complete 06:17:19 Digest: sha256:124c7d2707904eea7431fffe91522a01e5a861a624ee31d03372cc1d138a3126 06:17:19 Status: Downloaded newer image for alpine:3.17 06:17:19 ---> 9ed4aefc74f6 06:17:19 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 06:17:19 ---> Running in baeedc07056c 06:17:19 Removing intermediate container baeedc07056c 06:17:19 ---> ee5fa06946b7 06:17:19 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 06:17:19 ---> Running in 0093af0755fa 06:17:19 Removing intermediate container 0093af0755fa 06:17:19 ---> c163fa601ac2 06:17:19 Step 16/25 : RUN apk add --update --no-cache dumb-init 06:17:19 ---> Running in 6c2f574f3aa9 06:17:19 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 06:17:19 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 06:17:19 (1/1) Installing dumb-init (1.2.5-r2) 06:17:19 Executing busybox-1.35.0-r29.trigger 06:17:19 OK: 7 MiB in 16 packages 06:17:19 Removing intermediate container 6c2f574f3aa9 06:17:19 ---> 2f83c3ccb11d 06:17:19 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 06:17:19 ---> b3a46a9b1dd7 06:17:19 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 06:17:19 ---> ddfa47103e48 06:17:19 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 06:17:19 ---> 8d6c486fea8a 06:17:19 Step 20/25 : EXPOSE 59986 06:17:19 ---> Running in 76a77d02a997 06:17:19 Removing intermediate container 76a77d02a997 06:17:19 ---> c6ff1797e87b 06:17:19 Step 21/25 : ENTRYPOINT ["/device-rest"] 06:17:19 ---> Running in fe838af522bf 06:17:19 Removing intermediate container fe838af522bf 06:17:19 ---> 5258d989e0aa 06:17:19 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 06:17:19 ---> Running in 14749554280b 06:17:19 Removing intermediate container 14749554280b 06:17:19 ---> 61bdb5fda9e8 06:17:19 Step 23/25 : LABEL arch=amd64 06:17:19 ---> Running in d38a98b465b5 06:17:19 Removing intermediate container d38a98b465b5 06:17:19 ---> 1b6bfd1b5a30 06:17:19 Step 24/25 : LABEL git_sha=e833a662d185661b816c1daf345506abe605e9fc 06:17:19 ---> Running in 00bf103f6715 06:17:19 Removing intermediate container 00bf103f6715 06:17:19 ---> b8947a20e881 06:17:19 Step 25/25 : LABEL version=0.0.0 06:17:19 ---> Running in 6246aea84dd6 06:17:19 Removing intermediate container 6246aea84dd6 06:17:19 ---> dc62be6b94d3 06:17:19 [Warning] One or more build-args [ARCH] were not consumed 06:17:19 Successfully built dc62be6b94d3 06:17:19 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 06:17:20 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 06:17:20 06:17:20 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 06:17:20 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 06:17:20 latest: Pulling from edgex-lftools-log-publisher 06:17:20 5eb5b503b376: Pulling fs layer 06:17:20 5c69ac0246d0: Pulling fs layer 06:17:20 ec43610c2a17: Pulling fs layer 06:17:20 3a2ae6a8a46f: Pulling fs layer 06:17:20 33b1e0a273af: Pulling fs layer 06:17:20 5d3b04190fa2: Pulling fs layer 06:17:20 2f39f015ded8: Pulling fs layer 06:17:20 3a2ae6a8a46f: Waiting 06:17:20 33b1e0a273af: Waiting 06:17:20 5d3b04190fa2: Waiting 06:17:20 2f39f015ded8: Waiting 06:17:20 5c69ac0246d0: Verifying Checksum 06:17:20 5c69ac0246d0: Download complete 06:17:20 3a2ae6a8a46f: Download complete 06:17:20 33b1e0a273af: Verifying Checksum 06:17:20 33b1e0a273af: Download complete 06:17:20 5d3b04190fa2: Verifying Checksum 06:17:20 ec43610c2a17: Verifying Checksum 06:17:20 ec43610c2a17: Download complete 06:17:20 5eb5b503b376: Verifying Checksum 06:17:20 5eb5b503b376: Download complete 06:17:21 2f39f015ded8: Download complete 06:17:22 5eb5b503b376: Pull complete 06:17:22 5c69ac0246d0: Pull complete 06:17:22 ec43610c2a17: Pull complete 06:17:22 3a2ae6a8a46f: Pull complete 06:17:22 33b1e0a273af: Pull complete 06:17:22 5d3b04190fa2: Pull complete 06:17:27 2f39f015ded8: Pull complete 06:17:27 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 06:17:27 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 06:17:27 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 06:17:27 prd-ubuntu20.04-docker-8c-8g-8396 does not seem to be running inside a container 06:17: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/gexfoundry_device-rest-go_PR-289 -v /w/workspace/gexfoundry_device-rest-go_PR-289:/w/workspace/gexfoundry_device-rest-go_PR-289:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-289@tmp:/w/workspace/gexfoundry_device-rest-go_PR-289@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 06:17:28 $ docker top d0c6447cb1e170828162f821349fa8dc2887c8e76448fc1b4465cc229be19773 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 06:17:28 ---> job-cost.sh 06:17:28 lf-activate-venv: SKIPPING 06:17:28 INFO: No Stack... 06:17:29 INFO: Retrieving Pricing Info for: v3-standard-8 06:17:29 INFO: Archiving Costs [Pipeline] sh 06:17:29 + cat /w/workspace/gexfoundry_device-rest-go_PR-289/archives/cost.csv 06:17:29 + cut -d, -f6 [Pipeline] lock 06:17:29 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-289-2-stack-cost] 06:17:29 Resource [jenkins-edgexfoundry-device-rest-go-PR-289-2-stack-cost] did not exist. Created. 06:17:29 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-289-2-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 06:17:30 + echo total: 0.2199999988079071 [Pipeline] stash 06:17:30 Stashed 1 file(s) [Pipeline] } 06:17:30 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-289-2-stack-cost] [Pipeline] // lock [Pipeline] } 06:17:30 $ docker stop --time=1 d0c6447cb1e170828162f821349fa8dc2887c8e76448fc1b4465cc229be19773 06:17:31 $ docker rm -f --volumes d0c6447cb1e170828162f821349fa8dc2887c8e76448fc1b4465cc229be19773 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 06:19:08 Running on prd-ubuntu20.04-docker-arm64-4c-16g-8398 in /w/workspace/gexfoundry_device-rest-go_PR-289 [Pipeline] { [Pipeline] ws 06:19:08 Running in /w/workspace/device-rest-go/2 [Pipeline] { [Pipeline] checkout 06:19:08 The recommended git tool is: git 06:19:14 using credential edgex-jenkins-ssh 06:19:14 Cloning the remote Git repository 06:19:14 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 06:19:14 > git init /w/workspace/device-rest-go/2 # timeout=10 06:19:14 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 06:19:14 > git --version # timeout=10 06:19:14 > git --version # 'git version 2.25.1' 06:19:14 using GIT_SSH to set credentials SSH Credentials for GitHub 06:19:14 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 06:19:16 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 06:19:16 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 06:19:18 Merging remotes/origin/main commit 795c3d665a96d2a485aec9c896c7781dae732fba into PR head commit e833a662d185661b816c1daf345506abe605e9fc 06:19:18 Merge succeeded, producing e833a662d185661b816c1daf345506abe605e9fc 06:19:18 Checking out Revision e833a662d185661b816c1daf345506abe605e9fc (PR-289) 06:19:17 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 06:19:17 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 06:19:17 using GIT_SSH to set credentials SSH Credentials for GitHub 06:19:17 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/289/head:refs/remotes/origin/PR-289 +refs/heads/main:refs/remotes/origin/main # timeout=10 06:19:18 > git config core.sparsecheckout # timeout=10 06:19:18 > git checkout -f e833a662d185661b816c1daf345506abe605e9fc # timeout=10 06:19:18 > git remote # timeout=10 06:19:18 > git config --get remote.origin.url # timeout=10 06:19:18 using GIT_SSH to set credentials SSH Credentials for GitHub 06:19:18 > git merge 795c3d665a96d2a485aec9c896c7781dae732fba # timeout=10 06:19:18 > git rev-parse HEAD^{commit} # timeout=10 06:19:18 > git config core.sparsecheckout # timeout=10 06:19:18 > git checkout -f e833a662d185661b816c1daf345506abe605e9fc # timeout=10 06:19:22 Commit message: "feat!: Consume SDK interface changes" [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 06:19:23 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 06:19:23 % Total % Received % Xferd Average Speed Time Time Time Current 06:19:23 Dload Upload Total Spent Left Speed 06:19:23 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 12751 100 12751 0 0 200k 0 --:--:-- --:--:-- --:--:-- 204k [Pipeline] sh 06:19:23 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 06:19:24 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 06:19:24 + sudo tee /etc/docker/daemon.new 06:19:24 { 06:19:24 "registry-mirrors": [ 06:19:24 "https://nexus3.edgexfoundry.org:10001" 06:19:24 ], 06:19:24 "bip": "10.250.0.254/24", 06:19:24 "hosts": [ 06:19:24 "tcp://0.0.0.0:5555", 06:19:24 "unix:///var/run/docker.sock" 06:19:24 ], 06:19:24 "mtu": 1458, 06:19:24 "selinux-enabled": true, 06:19:24 "seccomp-profile": "/etc/docker/seccomp.json" 06:19:24 } [Pipeline] sh 06:19:24 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 06:19:24 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 06:19:43 provisioning config files... 06:19:43 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/2@tmp/config14669382029090187961tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 06:19:43 ---> docker-login.sh 06:19:43 nexus3.edgexfoundry.org:10001 06:19:44 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 06:19:44 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 06:19:44 Configure a credential helper to remove this warning. See 06:19:44 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 06:19:44 06:19:44 Login Succeeded 06:19:44 nexus3.edgexfoundry.org:10002 06:19:44 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 06:19:44 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 06:19:44 Configure a credential helper to remove this warning. See 06:19:44 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 06:19:44 06:19:44 Login Succeeded 06:19:44 nexus3.edgexfoundry.org:10003 06:19:45 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 06:19:45 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 06:19:45 Configure a credential helper to remove this warning. See 06:19:45 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 06:19:45 06:19:45 Login Succeeded 06:19:45 nexus3.edgexfoundry.org:10004 06:19:45 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 06:19:45 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 06:19:45 Configure a credential helper to remove this warning. See 06:19:45 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 06:19:45 06:19:45 Login Succeeded 06:19:45 docker.io 06:19:45 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 06:19:46 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 06:19:46 Configure a credential helper to remove this warning. See 06:19:46 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 06:19:46 06:19:46 Login Succeeded 06:19:46 ---> docker-login.sh ends [Pipeline] } 06:19:46 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 06:19:46 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 06:19:46 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 06:19:46 ========================================================= 06:19:46 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine] 06:19:46 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 06:19:46 + 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 . 06:19:46 Sending build context to Docker daemon 137.2kB 06:19:47 Step 1/12 : ARG BASE=golang:1.20-alpine3.17 06:19:47 Step 2/12 : FROM ${BASE} AS builder 06:19:47 1.20-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 06:19:47 af6eaf76a39c: Pulling fs layer 06:19:47 55522c791124: Pulling fs layer 06:19:47 ce5c4a1c91eb: Pulling fs layer 06:19:47 169dfbe0d373: Pulling fs layer 06:19:47 e1ff8fa3b103: Pulling fs layer 06:19:47 52ebb69f0ebf: Pulling fs layer 06:19:47 5abe8eddf0d5: Pulling fs layer 06:19:47 169dfbe0d373: Waiting 06:19:47 e1ff8fa3b103: Waiting 06:19:47 52ebb69f0ebf: Waiting 06:19:47 5abe8eddf0d5: Waiting 06:19:47 55522c791124: Download complete 06:19:47 169dfbe0d373: Verifying Checksum 06:19:47 169dfbe0d373: Download complete 06:19:47 e1ff8fa3b103: Verifying Checksum 06:19:47 e1ff8fa3b103: Download complete 06:19:47 af6eaf76a39c: Verifying Checksum 06:19:47 af6eaf76a39c: Download complete 06:19:48 5abe8eddf0d5: Verifying Checksum 06:19:48 5abe8eddf0d5: Download complete 06:19:48 af6eaf76a39c: Pull complete 06:19:48 55522c791124: Pull complete 06:19:49 52ebb69f0ebf: Verifying Checksum 06:19:49 ce5c4a1c91eb: Verifying Checksum 06:19:49 ce5c4a1c91eb: Download complete 06:20:00 ce5c4a1c91eb: Pull complete 06:20:00 169dfbe0d373: Pull complete 06:20:00 e1ff8fa3b103: Pull complete 06:20:07 52ebb69f0ebf: Pull complete 06:20:08 5abe8eddf0d5: Pull complete 06:20:08 Digest: sha256:978cc1420e451f27bd88fdeece3ad01a9109ec773b62f165dfc696fd516b3d8f 06:20:08 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine 06:20:08 ---> 6cb57ee374ae 06:20:08 Step 3/12 : ARG ADD_BUILD_TAGS="" 06:20:10 ---> Running in cf4fbaa58c21 06:20:10 Removing intermediate container cf4fbaa58c21 06:20:10 ---> 517f990fa90a 06:20:10 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 06:20:10 ---> Running in 4c0b11de17bc 06:20:11 Removing intermediate container 4c0b11de17bc 06:20:11 ---> f181f16943d6 06:20:11 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 06:20:11 ---> Running in 307041e5a9fb 06:20:11 Removing intermediate container 307041e5a9fb 06:20:11 ---> e0e6933dc9a2 06:20:11 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 06:20:11 ---> Running in 4825de82231a 06:20:12 Removing intermediate container 4825de82231a 06:20:12 ---> e38268434d23 06:20:12 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 06:20:12 ---> Running in e99c8700ea10 06:20:13 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 06:20:14 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 06:20:15 (1/4) Installing openssh-keygen (9.1_p1-r2) 06:20:15 (2/4) Installing libedit (20221030.3.1-r0) 06:20:15 (3/4) Installing openssh-client-common (9.1_p1-r2) 06:20:15 (4/4) Installing openssh-client-default (9.1_p1-r2) 06:20:15 Executing busybox-1.35.0-r29.trigger 06:20:15 OK: 268 MiB in 57 packages 06:20:16 Removing intermediate container e99c8700ea10 06:20:16 ---> 1802d88ef86f 06:20:16 Step 8/12 : WORKDIR /device-rest-go 06:20:16 ---> Running in 778a45b296c4 06:20:17 Removing intermediate container 778a45b296c4 06:20:17 ---> 13c18f419f45 06:20:17 Step 9/12 : COPY go.mod vendor* ./ 06:20:18 ---> 67bd28282ed6 06:20:18 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 06:20:18 ---> Running in c172195a8f4a 06:21:26 Removing intermediate container c172195a8f4a 06:21:26 ---> 2ce40da6f479 06:21:26 Step 11/12 : COPY . . 06:21:26 ---> cd6916d83ef8 06:21:26 Step 12/12 : RUN $MAKE 06:21:26 ---> Running in fb9397e6b79d 06:21:26 noop 06:21:26 Removing intermediate container fb9397e6b79d 06:21:26 ---> 40c928f52610 06:21:26 Successfully built 40c928f52610 06:21:26 Successfully tagged ci-base-image-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 06:21:26 + docker inspect -f . ci-base-image-arm64 06:21:26 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 06:21:26 prd-ubuntu20.04-docker-arm64-4c-16g-8398 does not seem to be running inside a container 06:21:26 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/2 -v /w/workspace/device-rest-go/2:/w/workspace/device-rest-go/2:rw,z -v /w/workspace/device-rest-go/2@tmp:/w/workspace/device-rest-go/2@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 06:21:27 $ docker top 63c713c69e5700a9daa2a44d33933aa58e419f09836edc350e2166f55b2fd24e -eo pid,comm [Pipeline] { [Pipeline] sh 06:21:28 + go version 06:21:28 go version go1.20.2 linux/arm64 [Pipeline] } 06:21:28 $ docker stop --time=1 63c713c69e5700a9daa2a44d33933aa58e419f09836edc350e2166f55b2fd24e 06:21:30 $ docker rm -f --volumes 63c713c69e5700a9daa2a44d33933aa58e419f09836edc350e2166f55b2fd24e [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 06:21:30 + docker inspect -f . ci-base-image-arm64 06:21:30 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 06:21:31 prd-ubuntu20.04-docker-arm64-4c-16g-8398 does not seem to be running inside a container 06:21:31 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged -v /var/run/docker.sock:/var/run/docker.sock -w /w/workspace/device-rest-go/2 -v /w/workspace/device-rest-go/2:/w/workspace/device-rest-go/2:rw,z -v /w/workspace/device-rest-go/2@tmp:/w/workspace/device-rest-go/2@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 06:21:32 $ docker top e4bb366a6814efa7b6ab778e084288e730c7e6c35af003326b3bc113703beece -eo pid,comm [Pipeline] { [Pipeline] sh 06:21:32 + git config --global --add safe.directory /w/workspace/device-rest-go/2 [Pipeline] fileExists [Pipeline] sh 06:21:33 + make test 06:21:33 go test ./... -coverprofile=coverage.out ./... 06:22:05 ? github.com/edgexfoundry/device-rest-go [no test files] 06:24:12 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 06:24:13 ok github.com/edgexfoundry/device-rest-go/driver 0.062s coverage: 32.3% of statements 06:24:14 WARNING: Linting skipped (not on x86_64 or linter not installed) 06:24:14 go vet ./... 06:24:53 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 06:24:53 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 06:24:53 ./bin/test-attribution-txt.sh 06:24:53 An attribution for github.com/go-jose/go-jose/v3 is missing from Attribution.txt, please add [Pipeline] echo 06:24:53 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 06:24:53 $ docker stop --time=1 e4bb366a6814efa7b6ab778e084288e730c7e6c35af003326b3bc113703beece 06:24:55 $ docker rm -f --volumes e4bb366a6814efa7b6ab778e084288e730c7e6c35af003326b3bc113703beece [Pipeline] // withDockerContainer [Pipeline] sh 06:24:56 + sudo chown -R jenkins:jenkins . [Pipeline] stash 06:24:56 Warning: overwriting stash ‘coverage-report’ 06:24:57 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 06:24:57 + sudo chown -R jenkins:jenkins . [Pipeline] sh 06:24:58 + ls -al . 06:24:58 total 180 06:24:58 drwxrwxr-x 8 jenkins jenkins 4096 Apr 13 06:21 . 06:24:58 drwxrwxr-x 4 jenkins jenkins 4096 Apr 13 06:19 .. 06:24:58 -rw-rw-r-- 1 jenkins jenkins 151 Apr 13 06:19 .dockerignore 06:24:58 drwxrwxr-x 8 jenkins jenkins 4096 Apr 13 06:19 .git 06:24:58 drwxrwxr-x 3 jenkins jenkins 4096 Apr 13 06:19 .github 06:24:58 -rw-rw-r-- 1 jenkins jenkins 329 Apr 13 06:19 .gitignore 06:24:58 -rw-rw-r-- 1 jenkins jenkins 41 Apr 13 06:19 .golangci.yml 06:24:58 -rw-rw-r-- 1 jenkins jenkins 9202 Apr 13 06:19 Attribution.txt 06:24:58 -rw-rw-r-- 1 jenkins jenkins 13085 Apr 13 06:19 CHANGELOG.md 06:24:58 -rw-rw-r-- 1 jenkins jenkins 1578 Apr 13 06:19 Dockerfile 06:24:58 -rw-rw-r-- 1 jenkins jenkins 677 Apr 13 06:19 GOVERNANCE.md 06:24:58 -rw-rw-r-- 1 jenkins jenkins 680 Apr 13 06:19 Jenkinsfile 06:24:58 -rw-rw-r-- 1 jenkins jenkins 11340 Apr 13 06:19 LICENSE 06:24:58 -rw-rw-r-- 1 jenkins jenkins 1779 Apr 13 06:19 Makefile 06:24:58 -rw-rw-r-- 1 jenkins jenkins 620 Apr 13 06:19 OWNERS.md 06:24:58 -rw-rw-r-- 1 jenkins jenkins 15321 Apr 13 06:19 README.md 06:24:58 -rw-rw-r-- 1 jenkins jenkins 5 Apr 13 06:15 VERSION 06:24:58 drwxrwxr-x 2 jenkins jenkins 4096 Apr 13 06:19 bin 06:24:58 drwxrwxr-x 3 jenkins jenkins 4096 Apr 13 06:19 cmd 06:24:58 -rw-r--r-- 1 jenkins jenkins 14587 Apr 13 06:24 coverage.out 06:24:58 drwxrwxr-x 2 jenkins jenkins 4096 Apr 13 06:19 driver 06:24:58 -rw-rw-r-- 1 jenkins jenkins 3402 Apr 13 06:19 go.mod 06:24:58 -rw-rw-r-- 1 jenkins jenkins 31553 Apr 13 06:19 go.sum 06:24:58 drwxrwxr-x 4 jenkins jenkins 4096 Apr 13 06:19 snap 06:24:58 -rw-rw-r-- 1 jenkins jenkins 713 Apr 13 06:19 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 06:24:58 + 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=e833a662d185661b816c1daf345506abe605e9fc --label arch=arm64 --label version=0.0.0 . 06:24:58 Sending build context to Docker daemon 152.6kB 06:24:58 Step 1/25 : ARG BASE=golang:1.20-alpine3.17 06:24:58 Step 2/25 : FROM ${BASE} AS builder 06:24:58 ---> 40c928f52610 06:24:58 Step 3/25 : ARG ADD_BUILD_TAGS="" 06:24:59 ---> Running in c3db51203386 06:25:00 Removing intermediate container c3db51203386 06:25:00 ---> 61e33cbdd6ec 06:25:00 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 06:25:00 ---> Running in bb6effe74368 06:25:00 Removing intermediate container bb6effe74368 06:25:00 ---> c0ad527fd35b 06:25:00 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 06:25:00 ---> Running in 1151e38b6de1 06:25:01 Removing intermediate container 1151e38b6de1 06:25:01 ---> 454a2b46ba1a 06:25:01 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 06:25:01 ---> Running in 9f56bd586691 06:25:01 Removing intermediate container 9f56bd586691 06:25:01 ---> fadb3d8c9a25 06:25:01 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 06:25:01 ---> Running in 9fcbda92d628 06:25:02 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 06:25:03 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 06:25:04 OK: 268 MiB in 57 packages 06:25:05 Removing intermediate container 9fcbda92d628 06:25:05 ---> 2ab7fd27cfe6 06:25:05 Step 8/25 : WORKDIR /device-rest-go 06:25:05 ---> Running in dbb7f9b568ab 06:25:05 Removing intermediate container dbb7f9b568ab 06:25:05 ---> 1c60cdd8eaac 06:25:05 Step 9/25 : COPY go.mod vendor* ./ 06:25:06 ---> aca73e50eff2 06:25:06 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 06:25:06 ---> Running in 2b9a9842a7e9 06:25:08 Removing intermediate container 2b9a9842a7e9 06:25:08 ---> 14cc6cfb38ff 06:25:08 Step 11/25 : COPY . . 06:25:09 ---> c7a75b93f456 06:25:09 Step 12/25 : RUN $MAKE 06:25:09 ---> Running in 182c78c005b3 06:25:10 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 06:27:32 Removing intermediate container 182c78c005b3 06:27:32 ---> c5b307ea3265 06:27:32 Step 13/25 : FROM alpine:3.17 06:27:32 3.17: Pulling from library/alpine 06:27:32 c41833b44d91: Pulling fs layer 06:27:32 c41833b44d91: Download complete 06:27:32 c41833b44d91: Pull complete 06:27:32 Digest: sha256:124c7d2707904eea7431fffe91522a01e5a861a624ee31d03372cc1d138a3126 06:27:32 Status: Downloaded newer image for alpine:3.17 06:27:32 ---> 51e60588ff2c 06:27:32 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 06:27:32 ---> Running in 67abeb12831f 06:27:32 Removing intermediate container 67abeb12831f 06:27:32 ---> f9eb66eadd50 06:27:32 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 06:27:32 ---> Running in d56d80ea5b0e 06:27:32 Removing intermediate container d56d80ea5b0e 06:27:32 ---> 19e125d69ac5 06:27:32 Step 16/25 : RUN apk add --update --no-cache dumb-init 06:27:32 ---> Running in 143ed86b810e 06:27:32 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 06:27:33 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 06:27:34 (1/1) Installing dumb-init (1.2.5-r2) 06:27:34 Executing busybox-1.35.0-r29.trigger 06:27:34 OK: 8 MiB in 16 packages 06:27:35 Removing intermediate container 143ed86b810e 06:27:35 ---> 3bc8b11f2382 06:27:35 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 06:27:36 ---> 273e347b4bc9 06:27:36 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 06:27:36 ---> b9bbe6dec656 06:27:36 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 06:27:39 ---> 51583bf69e05 06:27:39 Step 20/25 : EXPOSE 59986 06:27:39 ---> Running in 5149fc30eb4a 06:27:39 Removing intermediate container 5149fc30eb4a 06:27:39 ---> e1647e931de4 06:27:39 Step 21/25 : ENTRYPOINT ["/device-rest"] 06:27:39 ---> Running in b337e866e639 06:27:39 Removing intermediate container b337e866e639 06:27:39 ---> 74fee3e44fbd 06:27:39 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 06:27:40 ---> Running in f9a9cf74ac81 06:27:40 Removing intermediate container f9a9cf74ac81 06:27:40 ---> e50faa76191f 06:27:40 Step 23/25 : LABEL arch=arm64 06:27:40 ---> Running in 6c3930be5cfa 06:27:40 Removing intermediate container 6c3930be5cfa 06:27:40 ---> 253838ff7c42 06:27:40 Step 24/25 : LABEL git_sha=e833a662d185661b816c1daf345506abe605e9fc 06:27:40 ---> Running in 674d26d04b52 06:27:40 Removing intermediate container 674d26d04b52 06:27:40 ---> 74ef0438000f 06:27:40 Step 25/25 : LABEL version=0.0.0 06:27:40 ---> Running in cd6372144891 06:27:41 Removing intermediate container cd6372144891 06:27:41 ---> 258b2310b866 06:27:41 [Warning] One or more build-args [ARCH] were not consumed 06:27:41 Successfully built 258b2310b866 06:27:41 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 06:27:41 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 06:27:41 06:27:41 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 06:27:42 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 06:27:42 arm64: Pulling from edgex-lftools-log-publisher 06:27:42 8998bd30e6a1: Pulling fs layer 06:27:42 04944245beec: Pulling fs layer 06:27:42 699f458cf7ca: Pulling fs layer 06:27:42 765212b225bb: Pulling fs layer 06:27:42 f23df028b6ca: Pulling fs layer 06:27:42 d65c8cfc05b1: Pulling fs layer 06:27:42 2437ff75d9bd: Pulling fs layer 06:27:42 f23df028b6ca: Waiting 06:27:42 d65c8cfc05b1: Waiting 06:27:42 2437ff75d9bd: Waiting 06:27:42 765212b225bb: Waiting 06:27:42 04944245beec: Verifying Checksum 06:27:42 04944245beec: Download complete 06:27:42 765212b225bb: Verifying Checksum 06:27:42 765212b225bb: Download complete 06:27:42 f23df028b6ca: Verifying Checksum 06:27:42 f23df028b6ca: Download complete 06:27:42 d65c8cfc05b1: Verifying Checksum 06:27:42 d65c8cfc05b1: Download complete 06:27:42 699f458cf7ca: Verifying Checksum 06:27:42 699f458cf7ca: Download complete 06:27:42 8998bd30e6a1: Verifying Checksum 06:27:42 8998bd30e6a1: Download complete 06:27:45 2437ff75d9bd: Verifying Checksum 06:27:45 2437ff75d9bd: Download complete 06:27:46 8998bd30e6a1: Pull complete 06:27:47 04944245beec: Pull complete 06:27:48 699f458cf7ca: Pull complete 06:27:48 765212b225bb: Pull complete 06:27:49 f23df028b6ca: Pull complete 06:27:49 d65c8cfc05b1: Pull complete 06:28:01 2437ff75d9bd: Pull complete 06:28:01 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 06:28:01 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 06:28:01 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 06:28:01 prd-ubuntu20.04-docker-arm64-4c-16g-8398 does not seem to be running inside a container 06:28:01 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/device-rest-go/2 -v /w/workspace/device-rest-go/2:/w/workspace/device-rest-go/2:rw,z -v /w/workspace/device-rest-go/2@tmp:/w/workspace/device-rest-go/2@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 06:28:04 $ docker top a80e77930032edc2846459c160c76997db371e99e506cd73f3e7cd99e7e2072e -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 06:28:05 ---> job-cost.sh 06:28:05 lf-activate-venv: SKIPPING 06:28:05 INFO: No Stack... 06:28:05 INFO: Retrieving Pricing Info for: v3-standard-4 06:28:06 INFO: Archiving Costs [Pipeline] sh 06:28:06 + cut -d, -f6 06:28:06 + cat /w/workspace/device-rest-go/2/archives/cost.csv [Pipeline] lock 06:28:06 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-289-2-stack-cost] 06:28:06 Resource [jenkins-edgexfoundry-device-rest-go-PR-289-2-stack-cost] did not exist. Created. 06:28:06 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-289-2-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 06:28:07 /w/workspace/device-rest-go/2@tmp/durable-f338ae8a/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 06:28:07 + echo total: 0.10999999940395355 [Pipeline] stash 06:28:07 Warning: overwriting stash ‘stack-cost’ 06:28:07 Stashed 1 file(s) [Pipeline] } 06:28:07 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-289-2-stack-cost] [Pipeline] // lock [Pipeline] } 06:28:07 $ docker stop --time=1 a80e77930032edc2846459c160c76997db371e99e506cd73f3e7cd99e7e2072e 06:28:09 $ docker rm -f --volumes a80e77930032edc2846459c160c76997db371e99e506cd73f3e7cd99e7e2072e [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 06:28:09 provisioning config files... 06:28:09 copy managed file [device-rest-go-codecov-token] to file:/w/workspace/gexfoundry_device-rest-go_PR-289@tmp/config9042226865434179512tmp [Pipeline] { [Pipeline] sh 06:28:09 + set +x 06:28:09 + bash -s -- 06:28:09 + curl -s https://codecov.io/bash 06:28:09 06:28:09 _____ _ 06:28:09 / ____| | | 06:28:09 | | ___ __| | ___ ___ _____ __ 06:28:09 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 06:28:09 | |___| (_) | (_| | __/ (_| (_) \ V / 06:28:09 \_____\___/ \__,_|\___|\___\___/ \_/ 06:28:09 Bash-1.0.6 06:28:09 06:28:09 06:28:09 ==> git version 2.25.1 found 06:28:09 ==> 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 06:28:09 Release-Date: 2020-01-08 06:28:09 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 06:28:09 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 06:28:09 ==> Jenkins CI detected. 06:28:09 current dir:  /w/workspace/gexfoundry_device-rest-go_PR-289 06:28:09 project root: . 06:28:09 --> token set from env 06:28:09 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 06:28:09 ==> Running gcov in . (disable via -X gcov) 06:28:09 ==> Python coveragepy not found 06:28:09 ==> Searching for coverage reports in: 06:28:09 + . 06:28:09 -> Found 1 reports 06:28:09 ==> Detecting git/mercurial file structure 06:28:09 ==> Reading reports 06:28:09 + ./coverage.out bytes=14587 06:28:09 ==> Appending adjustments 06:28:09 https://docs.codecov.io/docs/fixing-reports 06:28:10 + Found adjustments 06:28:10 ==> Gzipping contents 06:28:10 4.0K /tmp/codecov.4KjeSX.gz 06:28:10 ==> Uploading reports 06:28:10 url: https://codecov.io 06:28:10 query: branch=PR-289&commit=e833a662d185661b816c1daf345506abe605e9fc&build=2&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-289%2F2%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=289&job=&cmd_args= 06:28:10 -> Pinging Codecov 06:28:10 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=c51feb23-73ac-4f49-b3d1-d26df23137db&branch=PR-289&commit=e833a662d185661b816c1daf345506abe605e9fc&build=2&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-289%2F2%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=289&job=&cmd_args= 06:28:10 -> Uploading to 06:28:10 https://storage.googleapis.com/codecov/v4/raw/2023-04-13/4E5D53B4F1F92C436F7061BF334D961C/e833a662d185661b816c1daf345506abe605e9fc/2753a058-aab3-4ea2-9f95-e67e0df3f76e.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20230413%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20230413T062810Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=a53de0f8e07c7bc87aeb19dcf1efb30c98348d2de3ad47e9bc2b1e5416b37c8c 06:28:10 % Total % Received % Xferd Average Speed Time Time Time Current 06:28:10 Dload Upload Total Spent Left Speed 06:28:10 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 2493 0 0 100 2493 0 12341 --:--:-- --:--:-- --:--:-- 12280 100 2493 0 0 100 2493 0 10217 --:--:-- --:--:-- --:--:-- 10175 06:28:10 -> Reports have been successfully queued for processing at https://app.codecov.io/github/edgexfoundry/device-rest-go/commit/e833a662d185661b816c1daf345506abe605e9fc [Pipeline] } 06:28:10 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 06:28:11 + [ -d /w/workspace/gexfoundry_device-rest-go_PR-289/archives ] 06:28:11 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-289/archives 06:28:11 total 16 06:28:11 drwxr-xr-x 3 root root 4096 Apr 13 06:17 . 06:28:11 drwxrwxr-x 10 jenkins jenkins 4096 Apr 13 06:17 .. 06:28:11 drwxr-xr-x 2 root root 4096 Apr 13 06:17 cost 06:28:11 -rw-r--r-- 1 root root 86 Apr 13 06:17 cost.csv 06:28:11 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-rest-go_PR-289/archives 06:28:11 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-289/archives 06:28:11 total 16 06:28:11 drwxr-xr-x 3 jenkins jenkins 4096 Apr 13 06:17 . 06:28:11 drwxrwxr-x 10 jenkins jenkins 4096 Apr 13 06:17 .. 06:28:11 drwxr-xr-x 2 jenkins jenkins 4096 Apr 13 06:17 cost 06:28:11 -rw-r--r-- 1 jenkins jenkins 86 Apr 13 06:17 cost.csv [Pipeline] libraryResource [Pipeline] sh 06:28:11 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 06:28:12 ---> package-listing.sh 06:28:12 ++ facter osfamily 06:28:12 ++ tr '[:upper:]' '[:lower:]' 06:28:12 + OS_FAMILY=debian 06:28:12 + workspace=/w/workspace/gexfoundry_device-rest-go_PR-289 06:28:12 + START_PACKAGES=/tmp/packages_start.txt 06:28:12 + END_PACKAGES=/tmp/packages_end.txt 06:28:12 + DIFF_PACKAGES=/tmp/packages_diff.txt 06:28:12 + PACKAGES=/tmp/packages_start.txt 06:28:12 + '[' /w/workspace/gexfoundry_device-rest-go_PR-289 ']' 06:28:12 + PACKAGES=/tmp/packages_end.txt 06:28:12 + case "${OS_FAMILY}" in 06:28:12 + dpkg -l 06:28:12 + grep '^ii' 06:28:12 + '[' -f /tmp/packages_start.txt ']' 06:28:12 + '[' -f /tmp/packages_end.txt ']' 06:28:12 + diff /tmp/packages_start.txt /tmp/packages_end.txt 06:28:12 + '[' /w/workspace/gexfoundry_device-rest-go_PR-289 ']' 06:28:12 + mkdir -p /w/workspace/gexfoundry_device-rest-go_PR-289/archives/ 06:28:12 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/gexfoundry_device-rest-go_PR-289/archives/ [Pipeline] echo 06:28:12 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-289/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 06:28:12 + facter operatingsystem [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 06:28:13 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 06:28:13 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 06:28:13 prd-ubuntu20.04-docker-8c-8g-8396 does not seem to be running inside a container 06:28:13 $ 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-289/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-289 -v /w/workspace/gexfoundry_device-rest-go_PR-289:/w/workspace/gexfoundry_device-rest-go_PR-289:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-289@tmp:/w/workspace/gexfoundry_device-rest-go_PR-289@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 06:28:13 $ docker top e48ca46d58ea1cc3b22dcab712f28295300a2ab47842737f3edb45198c070c95 -eo pid,comm [Pipeline] { [Pipeline] sh 06:28:13 + touch /tmp/pre-build-complete [Pipeline] sh 06:28:14 + mkdir -p /var/log/sysstat [Pipeline] sh 06:28:14 + ls /var/log/sa-host 06:28:14 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 06:28:14 provisioning config files... 06:28:14 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-289@tmp/config4777805390360897172tmp [Pipeline] { [Pipeline] echo 06:28:14 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 06:28:14 ---> create-netrc.sh [Pipeline] } 06:28:14 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 06:28:15 ---> python-tools-install.sh [Pipeline] echo 06:28:15 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 06:28:15 ---> sudo-logs.sh 06:28:15 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 06:28:15 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 06:28:15 ---> job-cost.sh 06:28:15 lf-activate-venv: SKIPPING 06:28:15 DEBUG: total: 0.2199999988079071 06:28:15 INFO: Retrieving Stack Cost... 06:28:16 INFO: Retrieving Pricing Info for: v3-standard-8 06:28:16 INFO: Archiving Costs [Pipeline] echo 06:28:16 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 06:28:16 ---> logs-deploy.sh 06:28:16 lf-activate-venv: SKIPPING 06:28:16 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-289/2 06:28:16 INFO: archiving workspace using pattern(s): 06:28:17 Archives upload complete. 06:28:17 INFO: archiving logs to Nexus