Pull request #291 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 lenny-intel for edgexfoundry/device-rest-go Obtained Jenkinsfile from 38612c1158141c024a0c36193ce1288c0f682681+2da8002a0f90c09723ed576a82490c9132775745 (7b700620dc419265b318822f9467adc635ec0931) 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-ssh11210179445615656082.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-ssh5513797851954851230.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-291/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-291/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh10531355802169373438.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-ssh8113120662790192119.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-291/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-291/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e@tmp/jenkins-gitclient-ssh11528786435542511692.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 ‘prd-ubuntu20.04-docker-8c-8g-8737’ is offline Running on prd-ubuntu20.04-docker-8c-8g-8739 in /w/workspace/gexfoundry_device-rest-go_PR-291 [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-291 # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git > git --version # timeout=10 > git --version # 'git version 2.25.1' using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 Merging remotes/origin/main commit 2da8002a0f90c09723ed576a82490c9132775745 into PR head commit 38612c1158141c024a0c36193ce1288c0f682681 Merge succeeded, producing 38612c1158141c024a0c36193ce1288c0f682681 Checking out Revision 38612c1158141c024a0c36193ce1288c0f682681 (PR-291) > 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/291/head:refs/remotes/origin/PR-291 +refs/heads/main:refs/remotes/origin/main # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 38612c1158141c024a0c36193ce1288c0f682681 # 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 2da8002a0f90c09723ed576a82490c9132775745 # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 38612c1158141c024a0c36193ce1288c0f682681 # timeout=10 Commit message: "fix: [WIP BUG] Add ProfilesDir & DevicesDir to local config" First time build. Skipping changelog. [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 16:50:45 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 16:50:45 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 16:50:45 ========================================================= 16:50:45 EdgeX Global Pipelines Version Info 16:50:45 ========================================================= [Pipeline] libraryResource [Pipeline] sh 16:50:46 ------------------- 16:50:46 stable info: 16:50:46 ------------------- 16:50:46 Commited By: Bill Mahoney bill.mahoney@intel.com 16:50:46 Commit SHA: 8d11186b4ecddd371e5d69e8bc5262dee0d7f4a1 16:50:46 Message: update stable to v1.0.248 > git rev-list --no-walk 22c70faaf00cd146e1beab04f1d274f2567ac7a8 # timeout=10 16:50:47 ------------------- 16:50:47 experimental info: 16:50:47 ------------------- 16:50:47 Commited By: **** collab-it+edgex@linuxfoundation.org 16:50:47 Commit SHA: 8d11186b4ecddd371e5d69e8bc5262dee0d7f4a1 16:50:47 Message: update experimental to v1.0.248 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 16:50:47 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 16:50:47 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 16:50:47 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 16:50:47 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 16:50:47 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 16:50:47 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.20 [Pipeline] echo 16:50:47 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 16:50:47 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 16:50:47 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 16:50:47 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 16:50:47 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 16:50:47 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 16:50:47 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 16:50:47 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 16:50:47 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 16:50:47 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 16:50:47 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 16:50:47 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 16:50:47 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 16:50:47 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 16:50:47 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 16:50:47 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 16:50:47 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 16:50:47 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 16:50:47 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 16:50:47 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 16:50:47 [edgeXSetupEnvironment]: set envvar SNYK_DEBUG = false [Pipeline] echo 16:50:47 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-291 [Pipeline] echo 16:50:47 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-291 [Pipeline] echo 16:50:47 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-291 [Pipeline] echo 16:50:47 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 38612c1158141c024a0c36193ce1288c0f682681 [Pipeline] echo 16:50:47 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 38612c1 [Pipeline] echo 16:50:47 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 16:50:47 provisioning config files... 16:50:47 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-291@tmp/config19544067326808157tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 16:50:48 ---> docker-login.sh 16:50:48 nexus3.edgexfoundry.org:10001 16:50:48 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 16:50:48 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 16:50:48 Configure a credential helper to remove this warning. See 16:50:48 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 16:50:48 16:50:48 Login Succeeded 16:50:48 nexus3.edgexfoundry.org:10002 16:50:48 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 16:50:48 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 16:50:48 Configure a credential helper to remove this warning. See 16:50:48 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 16:50:48 16:50:48 Login Succeeded 16:50:48 nexus3.edgexfoundry.org:10003 16:50:48 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 16:50:48 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 16:50:48 Configure a credential helper to remove this warning. See 16:50:48 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 16:50:48 16:50:48 Login Succeeded 16:50:48 nexus3.edgexfoundry.org:10004 16:50:48 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 16:50:48 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 16:50:48 Configure a credential helper to remove this warning. See 16:50:48 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 16:50:48 16:50:48 Login Succeeded 16:50:48 docker.io 16:50:48 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 16:50:48 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 16:50:48 Configure a credential helper to remove this warning. See 16:50:48 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 16:50:48 16:50:48 Login Succeeded 16:50:48 ---> docker-login.sh ends [Pipeline] } 16:50:48 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 16:50:49 + git rev-list -1 --merges 38612c1158141c024a0c36193ce1288c0f682681~1..38612c1158141c024a0c36193ce1288c0f682681 [Pipeline] echo 16:50:49 -----------> git rev-list -1 --merges 38612c1158141c024a0c36193ce1288c0f682681~1..38612c1158141c024a0c36193ce1288c0f682681 38612c1158141c024a0c36193ce1288c0f682681 [false] [Pipeline] sh 16:50:49 + git log --format=format:%s -1 38612c1158141c024a0c36193ce1288c0f682681 [Pipeline] echo 16:50:49 ========================================================= 16:50:49 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 16:50:49 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 16:50:49 + git log --format=format:%s -1 38612c1158141c024a0c36193ce1288c0f682681 [Pipeline] echo 16:50:49 [semverPrep] GIT_COMMIT: 38612c1158141c024a0c36193ce1288c0f682681, Commit Message: fix: [WIP BUG] Add ProfilesDir & DevicesDir to local config [Pipeline] echo 16:50:49 [semverPrep] This is not a build commit. [Pipeline] sh 16:50:50 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 16:50:50 + grep -v github /etc/ssh/ssh_known_hosts 16:50:50 + [ -e /tmp/ssh_known_hosts ] 16:50:50 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 16:50:50 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 16:50:50 + sudo tee -a /etc/ssh/ssh_known_hosts 16:50:50 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 16:50:50 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 16:50:50 16:50:50 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 16:50:50 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 16:50:50 0.1.4: Pulling from edgex-devops/py-git-semver 16:50:50 b85a868b505f: Pulling fs layer 16:50:50 e2be974225ed: Pulling fs layer 16:50:50 339a4e72a1f5: Pulling fs layer 16:50:50 988bab9f4d93: Pulling fs layer 16:50:50 1469e6f7b9e6: Pulling fs layer 16:50:50 eaf3925da568: Pulling fs layer 16:50:50 988bab9f4d93: Waiting 16:50:50 bab4dde63d76: Pulling fs layer 16:50:50 bde34c3a00c8: Pulling fs layer 16:50:50 b352a97aabf1: Pulling fs layer 16:50:50 eaf3925da568: Waiting 16:50:50 bab4dde63d76: Waiting 16:50:50 bde34c3a00c8: Waiting 16:50:50 4872d77fe225: Pulling fs layer 16:50:50 5851b861e8e6: Pulling fs layer 16:50:50 b352a97aabf1: Waiting 16:50:50 5851b861e8e6: Waiting 16:50:50 4872d77fe225: Waiting 16:50:50 e2be974225ed: Verifying Checksum 16:50:50 e2be974225ed: Download complete 16:50:50 988bab9f4d93: Verifying Checksum 16:50:50 988bab9f4d93: Download complete 16:50:50 1469e6f7b9e6: Verifying Checksum 16:50:50 1469e6f7b9e6: Download complete 16:50:50 339a4e72a1f5: Download complete 16:50:51 eaf3925da568: Verifying Checksum 16:50:51 eaf3925da568: Download complete 16:50:51 bde34c3a00c8: Download complete 16:50:51 b352a97aabf1: Verifying Checksum 16:50:51 b352a97aabf1: Download complete 16:50:51 4872d77fe225: Download complete 16:50:51 5851b861e8e6: Verifying Checksum 16:50:51 5851b861e8e6: Download complete 16:50:51 b85a868b505f: Verifying Checksum 16:50:51 b85a868b505f: Download complete 16:50:51 bab4dde63d76: Verifying Checksum 16:50:51 bab4dde63d76: Download complete 16:50:52 b85a868b505f: Pull complete 16:50:52 e2be974225ed: Pull complete 16:50:52 339a4e72a1f5: Pull complete 16:50:52 988bab9f4d93: Pull complete 16:50:53 1469e6f7b9e6: Pull complete 16:50:53 eaf3925da568: Pull complete 16:50:55 bab4dde63d76: Pull complete 16:50:55 bde34c3a00c8: Pull complete 16:50:55 b352a97aabf1: Pull complete 16:50:55 4872d77fe225: Pull complete 16:50:55 5851b861e8e6: Pull complete 16:50:55 Digest: sha256:59a28aa3b44c0bc56b9c3d2e9ecabe42e63693d939cc6e425eb8786f29f663d8 16:50:55 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 16:50:55 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 16:50:55 prd-ubuntu20.04-docker-8c-8g-8739 does not seem to be running inside a container 16:50:55 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/gexfoundry_device-rest-go_PR-291 -v /w/workspace/gexfoundry_device-rest-go_PR-291:/w/workspace/gexfoundry_device-rest-go_PR-291:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-291@tmp:/w/workspace/gexfoundry_device-rest-go_PR-291@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 cat 16:50:57 $ docker top dbbf1a36de979893b55761446c8936f57b982b6c654782d7982fc5e9181ef96b -eo pid,comm 16:50:57 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). 16:50:57 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 16:50:57 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 16:50:57 [ssh-agent] Looking for ssh-agent implementation... 16:50:58 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 16:50:58 $ docker exec dbbf1a36de979893b55761446c8936f57b982b6c654782d7982fc5e9181ef96b ssh-agent 16:50:58 SSH_AUTH_SOCK=/tmp/ssh-TkDjjYBAEb68/agent.32 16:50:58 SSH_AGENT_PID=38 16:50:58 Running ssh-add (command line suppressed) 16:50:58 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-291@tmp/private_key_13216767196076433047.key (/w/workspace/gexfoundry_device-rest-go_PR-291@tmp/private_key_13216767196076433047.key) 16:50:58 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 16:50:58 + git tag --points-at HEAD [Pipeline] } 16:50:58 $ docker exec --env ******** --env ******** dbbf1a36de979893b55761446c8936f57b982b6c654782d7982fc5e9181ef96b ssh-agent -k 16:50:58 unset SSH_AUTH_SOCK; 16:50:58 unset SSH_AGENT_PID; 16:50:58 echo Agent pid 38 killed; 16:50:58 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 16:50:58 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 16:50:58 [ssh-agent] Looking for ssh-agent implementation... 16:50:58 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 16:50:58 $ docker exec dbbf1a36de979893b55761446c8936f57b982b6c654782d7982fc5e9181ef96b ssh-agent 16:50:58 SSH_AUTH_SOCK=/tmp/ssh-M03agghBrAEA/agent.70 16:50:58 SSH_AGENT_PID=76 16:50:58 Running ssh-add (command line suppressed) 16:50:59 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-291@tmp/private_key_6617370920756338768.key (/w/workspace/gexfoundry_device-rest-go_PR-291@tmp/private_key_6617370920756338768.key) 16:50:59 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 16:50:59 + git semver init 16:50:59 2023-04-17 16:50:59,559 [run_init] DEBUG init version:0.0.0 force:False 16:50:59 2023-04-17 16:50:59,560 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/gexfoundry_device-rest-go_PR-291/.semver 16:50:59 2023-04-17 16:50:59,560 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-rest-go.git /w/workspace/gexfoundry_device-rest-go_PR-291/.semver 16:50:59 2023-04-17 16:50:59,560 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-rest-go.git', '/w/workspace/gexfoundry_device-rest-go_PR-291/.semver'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-291, universal_newlines=False, shell=None, istream=None) 16:51:01 2023-04-17 16:51:00,604 [append_file] DEBUG append to file:/w/workspace/gexfoundry_device-rest-go_PR-291/.git/info/exclude 16:51:01 2023-04-17 16:51:00,605 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/gexfoundry_device-rest-go_PR-291/.semver/PR-291 with force:False 16:51:01 2023-04-17 16:51:00,605 [write_file] DEBUG write to file:/w/workspace/gexfoundry_device-rest-go_PR-291/.semver/PR-291 16:51:01 2023-04-17 16:51:00,609 [execute] INFO git cat-file --batch-check 16:51:01 2023-04-17 16:51:00,610 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-291/.semver, universal_newlines=False, shell=None, istream=) 16:51:01 2023-04-17 16:51:00,616 [execute] INFO git cat-file --batch 16:51:01 2023-04-17 16:51:00,616 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-291/.semver, universal_newlines=False, shell=None, istream=) 16:51:01 2023-04-17 16:51:00,621 [read_version] DEBUG read version from /w/workspace/gexfoundry_device-rest-go_PR-291/.semver/PR-291 16:51:01 0.0.0 [Pipeline] } 16:51:01 $ docker exec --env ******** --env ******** dbbf1a36de979893b55761446c8936f57b982b6c654782d7982fc5e9181ef96b ssh-agent -k 16:51:01 unset SSH_AUTH_SOCK; 16:51:01 unset SSH_AGENT_PID; 16:51:01 echo Agent pid 76 killed; 16:51:01 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 16:51:01 + git semver [Pipeline] } 16:51:01 $ docker stop --time=1 dbbf1a36de979893b55761446c8936f57b982b6c654782d7982fc5e9181ef96b 16:51:03 $ docker rm -f --volumes dbbf1a36de979893b55761446c8936f57b982b6c654782d7982fc5e9181ef96b [Pipeline] // withDockerContainer [Pipeline] sh 16:51:03 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 16:51:03 Stashed 1 file(s) [Pipeline] echo 16:51:03 [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 16:51:03 provisioning config files... 16:51:03 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-291@tmp/config3619585762897405771tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 16:51:03 ---> docker-login.sh 16:51:03 nexus3.edgexfoundry.org:10001 16:51:03 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 16:51:03 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 16:51:03 Configure a credential helper to remove this warning. See 16:51:03 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 16:51:03 16:51:03 Login Succeeded 16:51:03 nexus3.edgexfoundry.org:10002 16:51:03 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 16:51:03 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 16:51:03 Configure a credential helper to remove this warning. See 16:51:03 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 16:51:03 16:51:03 Login Succeeded 16:51:03 nexus3.edgexfoundry.org:10003 16:51:04 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 16:51:04 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 16:51:04 Configure a credential helper to remove this warning. See 16:51:04 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 16:51:04 16:51:04 Login Succeeded 16:51:04 nexus3.edgexfoundry.org:10004 16:51:04 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 16:51:04 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 16:51:04 Configure a credential helper to remove this warning. See 16:51:04 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 16:51:04 16:51:04 Login Succeeded 16:51:04 docker.io 16:51:04 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 16:51:04 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 16:51:04 Configure a credential helper to remove this warning. See 16:51:04 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 16:51:04 16:51:04 Login Succeeded 16:51:04 ---> docker-login.sh ends [Pipeline] } 16:51:04 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 16:51:04 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 16:51:04 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 16:51:04 ========================================================= 16:51:04 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine] 16:51:04 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 16:51:04 + 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 . 16:51:04 Sending build context to Docker daemon 10.89MB 16:51:04 Step 1/12 : ARG BASE=golang:1.20-alpine3.17 16:51:04 Step 2/12 : FROM ${BASE} AS builder 16:51:04 1.20-alpine: Pulling from edgex-devops/edgex-golang-base 16:51:04 63b65145d645: Pulling fs layer 16:51:04 a2d21d5440eb: Pulling fs layer 16:51:04 935e6c44a52c: Pulling fs layer 16:51:04 94cc34f8dd06: Pulling fs layer 16:51:04 30dea6a524f1: Pulling fs layer 16:51:04 a2aff8979fd8: Pulling fs layer 16:51:04 6808be2612f2: Pulling fs layer 16:51:04 f25807f1079a: Pulling fs layer 16:51:04 6808be2612f2: Waiting 16:51:04 a2aff8979fd8: Waiting 16:51:04 94cc34f8dd06: Waiting 16:51:04 30dea6a524f1: Waiting 16:51:04 f25807f1079a: Waiting 16:51:04 94cc34f8dd06: Verifying Checksum 16:51:04 94cc34f8dd06: Download complete 16:51:05 30dea6a524f1: Verifying Checksum 16:51:05 30dea6a524f1: Download complete 16:51:05 63b65145d645: Verifying Checksum 16:51:05 63b65145d645: Download complete 16:51:05 a2aff8979fd8: Verifying Checksum 16:51:05 a2aff8979fd8: Download complete 16:51:05 63b65145d645: Pull complete 16:51:05 a2d21d5440eb: Pull complete 16:51:05 f25807f1079a: Verifying Checksum 16:51:05 f25807f1079a: Download complete 16:51:05 935e6c44a52c: Verifying Checksum 16:51:05 935e6c44a52c: Download complete 16:51:05 6808be2612f2: Verifying Checksum 16:51:05 6808be2612f2: Download complete 16:51:09 935e6c44a52c: Pull complete 16:51:09 94cc34f8dd06: Pull complete 16:51:09 30dea6a524f1: Pull complete 16:51:09 a2aff8979fd8: Pull complete 16:51:11 6808be2612f2: Pull complete 16:51:12 f25807f1079a: Pull complete 16:51:12 Digest: sha256:106942793af8b5907f587008084bb0888cadbc76d86ebd37d4d3227fb0f1e438 16:51:12 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine 16:51:12 ---> 3b553350e43f 16:51:12 Step 3/12 : ARG ADD_BUILD_TAGS="" 16:51:16 ---> Running in 7ff063776718 16:51:16 Removing intermediate container 7ff063776718 16:51:16 ---> 63a4b9fc306e 16:51:16 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 16:51:16 ---> Running in 48b6677bb9d6 16:51:16 Removing intermediate container 48b6677bb9d6 16:51:16 ---> cab51aa76152 16:51:16 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 16:51:16 ---> Running in 9eed65eb3eb5 16:51:16 Removing intermediate container 9eed65eb3eb5 16:51:16 ---> 1ba7dbfc1708 16:51:16 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 16:51:16 ---> Running in 1c681f147c5e 16:51:16 Removing intermediate container 1c681f147c5e 16:51:16 ---> a5aaa0cfb815 16:51:16 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 16:51:16 ---> Running in e997a58dc025 16:51:16 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 16:51:16 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 16:51:16 (1/4) Installing openssh-keygen (9.1_p1-r2) 16:51:16 (2/4) Installing libedit (20221030.3.1-r0) 16:51:16 (3/4) Installing openssh-client-common (9.1_p1-r2) 16:51:16 (4/4) Installing openssh-client-default (9.1_p1-r2) 16:51:16 Executing busybox-1.35.0-r29.trigger 16:51:16 OK: 269 MiB in 57 packages 16:51:17 Removing intermediate container e997a58dc025 16:51:17 ---> 6d5e86114595 16:51:17 Step 8/12 : WORKDIR /device-rest-go 16:51:17 ---> Running in a1895b05ab2f 16:51:17 Removing intermediate container a1895b05ab2f 16:51:17 ---> 33e5d7fdbec3 16:51:17 Step 9/12 : COPY go.mod vendor* ./ 16:51:17 ---> 32481eb1c684 16:51:17 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 16:51:17 ---> Running in ff4befd25c63 16:51:18 Still waiting to schedule task 16:51:18 ‘prd-ubuntu20.04-docker-arm64-4c-16g-8738’ is offline 16:51:44 Removing intermediate container ff4befd25c63 16:51:44 ---> f00d71462f53 16:51:44 Step 11/12 : COPY . . 16:51:44 ---> 8c2801681360 16:51:44 Step 12/12 : RUN $MAKE 16:51:44 ---> Running in e72aeff201ca 16:51:44 noop 16:51:44 Removing intermediate container e72aeff201ca 16:51:44 ---> fe20025d0b75 16:51:44 Successfully built fe20025d0b75 16:51:44 Successfully tagged ci-base-image-x86_64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 16:51:44 + docker inspect -f . ci-base-image-x86_64 16:51:44 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 16:51:44 prd-ubuntu20.04-docker-8c-8g-8739 does not seem to be running inside a container 16:51:44 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-291 -v /w/workspace/gexfoundry_device-rest-go_PR-291:/w/workspace/gexfoundry_device-rest-go_PR-291:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-291@tmp:/w/workspace/gexfoundry_device-rest-go_PR-291@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 ******** ci-base-image-x86_64 cat 16:51:44 $ docker top 9da49f5d08def268c82b7abafdae0a9096e4dcc292188ba814b799cfb24d86b7 -eo pid,comm [Pipeline] { [Pipeline] sh 16:51:45 + go version 16:51:45 go version go1.20.2 linux/amd64 [Pipeline] } 16:51:45 $ docker stop --time=1 9da49f5d08def268c82b7abafdae0a9096e4dcc292188ba814b799cfb24d86b7 16:51:46 $ docker rm -f --volumes 9da49f5d08def268c82b7abafdae0a9096e4dcc292188ba814b799cfb24d86b7 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 16:51:46 + docker inspect -f . ci-base-image-x86_64 16:51:46 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 16:51:46 prd-ubuntu20.04-docker-8c-8g-8739 does not seem to be running inside a container 16:51:46 $ 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-291 -v /w/workspace/gexfoundry_device-rest-go_PR-291:/w/workspace/gexfoundry_device-rest-go_PR-291:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-291@tmp:/w/workspace/gexfoundry_device-rest-go_PR-291@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 ******** ci-base-image-x86_64 cat 16:51:47 $ docker top e511f5580db46eeb59754331fb4d8c45a351ee599a3afd5f29018362160ae69d -eo pid,comm [Pipeline] { [Pipeline] sh 16:51:47 + git config --global --add safe.directory /w/workspace/gexfoundry_device-rest-go_PR-291 [Pipeline] fileExists [Pipeline] sh 16:51:47 + make test 16:51:47 go test ./... -coverprofile=coverage.out ./... 16:51:52 ? github.com/edgexfoundry/device-rest-go [no test files] 16:52:02 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 16:52:02 ok github.com/edgexfoundry/device-rest-go/driver 0.011s coverage: 32.3% of statements 16:52:06 go vet ./... 16:52:09 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 16:52:09 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 16:52:09 ./bin/test-attribution-txt.sh 16:52:09 An attribution for github.com/go-jose/go-jose/v3 is missing from Attribution.txt, please add [Pipeline] echo 16:52:09 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 16:52:09 $ docker stop --time=1 e511f5580db46eeb59754331fb4d8c45a351ee599a3afd5f29018362160ae69d 16:52:12 $ docker rm -f --volumes e511f5580db46eeb59754331fb4d8c45a351ee599a3afd5f29018362160ae69d [Pipeline] // withDockerContainer [Pipeline] sh 16:52:13 + sudo chown -R jenkins:jenkins . [Pipeline] stash 16:52:13 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 16:52:13 + sudo chown -R jenkins:jenkins . [Pipeline] sh 16:52:13 + ls -al . 16:52:13 total 184 16:52:13 drwxrwxr-x 9 jenkins jenkins 4096 Apr 17 16:51 . 16:52:13 drwxrwxr-x 4 jenkins jenkins 4096 Apr 17 16:50 .. 16:52:13 -rw-rw-r-- 1 jenkins jenkins 151 Apr 17 16:50 .dockerignore 16:52:13 drwxrwxr-x 8 jenkins jenkins 4096 Apr 17 16:51 .git 16:52:13 drwxrwxr-x 3 jenkins jenkins 4096 Apr 17 16:50 .github 16:52:13 -rw-rw-r-- 1 jenkins jenkins 329 Apr 17 16:50 .gitignore 16:52:13 -rw-rw-r-- 1 jenkins jenkins 41 Apr 17 16:50 .golangci.yml 16:52:13 drwxr-xr-x 3 jenkins jenkins 4096 Apr 17 16:51 .semver 16:52:13 -rw-rw-r-- 1 jenkins jenkins 9202 Apr 17 16:50 Attribution.txt 16:52:13 -rw-rw-r-- 1 jenkins jenkins 13085 Apr 17 16:50 CHANGELOG.md 16:52:13 -rw-rw-r-- 1 jenkins jenkins 1578 Apr 17 16:50 Dockerfile 16:52:13 -rw-rw-r-- 1 jenkins jenkins 677 Apr 17 16:50 GOVERNANCE.md 16:52:13 -rw-rw-r-- 1 jenkins jenkins 680 Apr 17 16:50 Jenkinsfile 16:52:13 -rw-rw-r-- 1 jenkins jenkins 11340 Apr 17 16:50 LICENSE 16:52:13 -rw-rw-r-- 1 jenkins jenkins 1779 Apr 17 16:50 Makefile 16:52:13 -rw-rw-r-- 1 jenkins jenkins 620 Apr 17 16:50 OWNERS.md 16:52:13 -rw-rw-r-- 1 jenkins jenkins 15321 Apr 17 16:50 README.md 16:52:13 -rw-rw-r-- 1 jenkins jenkins 5 Apr 17 16:51 VERSION 16:52:13 drwxrwxr-x 2 jenkins jenkins 4096 Apr 17 16:50 bin 16:52:13 drwxrwxr-x 3 jenkins jenkins 4096 Apr 17 16:50 cmd 16:52:13 -rw-r--r-- 1 jenkins jenkins 14587 Apr 17 16:52 coverage.out 16:52:13 drwxrwxr-x 2 jenkins jenkins 4096 Apr 17 16:50 driver 16:52:13 -rw-rw-r-- 1 jenkins jenkins 3402 Apr 17 16:50 go.mod 16:52:13 -rw-rw-r-- 1 jenkins jenkins 31553 Apr 17 16:50 go.sum 16:52:13 drwxrwxr-x 4 jenkins jenkins 4096 Apr 17 16:50 snap 16:52:13 -rw-rw-r-- 1 jenkins jenkins 713 Apr 17 16:50 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 16:52:14 + 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=38612c1158141c024a0c36193ce1288c0f682681 --label arch=amd64 --label version=0.0.0 . 16:52:14 Sending build context to Docker daemon 10.9MB 16:52:14 Step 1/25 : ARG BASE=golang:1.20-alpine3.17 16:52:14 Step 2/25 : FROM ${BASE} AS builder 16:52:14 ---> fe20025d0b75 16:52:14 Step 3/25 : ARG ADD_BUILD_TAGS="" 16:52:14 ---> Running in 56d8cdf39f5c 16:52:14 Removing intermediate container 56d8cdf39f5c 16:52:14 ---> 5bc033aecec8 16:52:14 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 16:52:14 ---> Running in ff0505920c94 16:52:14 Removing intermediate container ff0505920c94 16:52:14 ---> af8dd479df6c 16:52:14 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 16:52:14 ---> Running in 0e3dc5e427e3 16:52:14 Removing intermediate container 0e3dc5e427e3 16:52:14 ---> 1986a21fce88 16:52:14 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 16:52:14 ---> Running in 94228a8ebe21 16:52:14 Removing intermediate container 94228a8ebe21 16:52:14 ---> 51e7e2c52a43 16:52:14 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 16:52:14 ---> Running in b4726f4a5b42 16:52:15 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 16:52:15 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 16:52:15 OK: 269 MiB in 57 packages 16:52:15 Removing intermediate container b4726f4a5b42 16:52:15 ---> 47244950e2f6 16:52:15 Step 8/25 : WORKDIR /device-rest-go 16:52:15 ---> Running in ba05c75e8272 16:52:15 Removing intermediate container ba05c75e8272 16:52:15 ---> 8958ed64672e 16:52:15 Step 9/25 : COPY go.mod vendor* ./ 16:52:15 ---> b50b4b9584b8 16:52:15 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 16:52:15 ---> Running in 0e627145b110 16:52:16 Removing intermediate container 0e627145b110 16:52:16 ---> 7bf821b57820 16:52:16 Step 11/25 : COPY . . 16:52:17 ---> d31982733915 16:52:17 Step 12/25 : RUN $MAKE 16:52:17 ---> Running in ba0e2ddb6a46 16:52:17 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 16:52:35 Removing intermediate container ba0e2ddb6a46 16:52:35 ---> a7f6798b9113 16:52:35 Step 13/25 : FROM alpine:3.17 16:52:35 3.17: Pulling from library/alpine 16:52:35 f56be85fc22e: Pulling fs layer 16:52:35 f56be85fc22e: Verifying Checksum 16:52:35 f56be85fc22e: Pull complete 16:52:35 Digest: sha256:124c7d2707904eea7431fffe91522a01e5a861a624ee31d03372cc1d138a3126 16:52:35 Status: Downloaded newer image for alpine:3.17 16:52:35 ---> 9ed4aefc74f6 16:52:35 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 16:52:35 ---> Running in f12d3c23c420 16:52:35 Removing intermediate container f12d3c23c420 16:52:35 ---> bf8e1b6b6f4b 16:52:35 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 16:52:35 ---> Running in 6b3c420dca30 16:52:35 Removing intermediate container 6b3c420dca30 16:52:35 ---> ddba31538142 16:52:35 Step 16/25 : RUN apk add --update --no-cache dumb-init 16:52:35 ---> Running in cea2ee936750 16:52:36 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 16:52:36 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 16:52:36 (1/1) Installing dumb-init (1.2.5-r2) 16:52:36 Executing busybox-1.35.0-r29.trigger 16:52:36 OK: 7 MiB in 16 packages 16:52:36 Removing intermediate container cea2ee936750 16:52:36 ---> 1a1458c15da9 16:52:36 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 16:52:37 ---> 5c20ecdf851f 16:52:37 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 16:52:37 ---> b1da28e3b709 16:52:37 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 16:52:37 ---> 28b90f1968f0 16:52:37 Step 20/25 : EXPOSE 59986 16:52:37 ---> Running in 26914b1154a2 16:52:37 Removing intermediate container 26914b1154a2 16:52:37 ---> 545af82bb065 16:52:37 Step 21/25 : ENTRYPOINT ["/device-rest"] 16:52:37 ---> Running in 3eb3fdd667b7 16:52:37 Removing intermediate container 3eb3fdd667b7 16:52:37 ---> e586e79544ea 16:52:37 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 16:52:37 ---> Running in 5e384709165e 16:52:37 Removing intermediate container 5e384709165e 16:52:37 ---> 2ff98695adc9 16:52:37 Step 23/25 : LABEL arch=amd64 16:52:37 ---> Running in ee95cdaf0044 16:52:37 Removing intermediate container ee95cdaf0044 16:52:37 ---> 0c0c376b79ba 16:52:37 Step 24/25 : LABEL git_sha=38612c1158141c024a0c36193ce1288c0f682681 16:52:37 ---> Running in 6561244ae5b6 16:52:38 Removing intermediate container 6561244ae5b6 16:52:38 ---> fe045c813e28 16:52:38 Step 25/25 : LABEL version=0.0.0 16:52:38 ---> Running in 09341df8de04 16:52:38 Removing intermediate container 09341df8de04 16:52:38 ---> 56b672185eff 16:52:38 [Warning] One or more build-args [ARCH] were not consumed 16:52:38 Successfully built 56b672185eff 16:52:38 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 16:52:38 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 16:52:38 16:52:38 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 16:52:39 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 16:52:39 latest: Pulling from edgex-lftools-log-publisher 16:52:39 5eb5b503b376: Pulling fs layer 16:52:39 5c69ac0246d0: Pulling fs layer 16:52:39 ec43610c2a17: Pulling fs layer 16:52:39 3a2ae6a8a46f: Pulling fs layer 16:52:39 33b1e0a273af: Pulling fs layer 16:52:39 5d3b04190fa2: Pulling fs layer 16:52:39 2f39f015ded8: Pulling fs layer 16:52:39 5d3b04190fa2: Waiting 16:52:39 33b1e0a273af: Waiting 16:52:39 2f39f015ded8: Waiting 16:52:39 3a2ae6a8a46f: Waiting 16:52:39 5c69ac0246d0: Download complete 16:52:39 3a2ae6a8a46f: Verifying Checksum 16:52:39 3a2ae6a8a46f: Download complete 16:52:39 ec43610c2a17: Verifying Checksum 16:52:39 ec43610c2a17: Download complete 16:52:39 33b1e0a273af: Verifying Checksum 16:52:39 33b1e0a273af: Download complete 16:52:39 5d3b04190fa2: Verifying Checksum 16:52:39 5d3b04190fa2: Download complete 16:52:39 5eb5b503b376: Verifying Checksum 16:52:39 5eb5b503b376: Download complete 16:52:40 2f39f015ded8: Download complete 16:52:40 5eb5b503b376: Pull complete 16:52:40 5c69ac0246d0: Pull complete 16:52:41 ec43610c2a17: Pull complete 16:52:41 3a2ae6a8a46f: Pull complete 16:52:41 33b1e0a273af: Pull complete 16:52:42 5d3b04190fa2: Pull complete 16:52:46 2f39f015ded8: Pull complete 16:52:46 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 16:52:46 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 16:52:46 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 16:52:46 prd-ubuntu20.04-docker-8c-8g-8739 does not seem to be running inside a container 16:52:46 $ 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-291 -v /w/workspace/gexfoundry_device-rest-go_PR-291:/w/workspace/gexfoundry_device-rest-go_PR-291:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-291@tmp:/w/workspace/gexfoundry_device-rest-go_PR-291@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 ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 16:52:49 $ docker top b7e3947966e9415e1e3ab15f925611390e8ad775f5469ccf0dc26e755ef8e956 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 16:52:50 ---> job-cost.sh 16:52:50 lf-activate-venv: SKIPPING 16:52:50 INFO: No Stack... 16:52:50 INFO: Retrieving Pricing Info for: v3-standard-8 16:52:50 INFO: Archiving Costs [Pipeline] sh 16:52:50 + cat /w/workspace/gexfoundry_device-rest-go_PR-291/archives/cost.csv 16:52:50 + cut -d, -f6 [Pipeline] lock 16:52:50 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-291-2-stack-cost] 16:52:50 Resource [jenkins-edgexfoundry-device-rest-go-PR-291-2-stack-cost] did not exist. Created. 16:52:50 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-291-2-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 16:52:51 + echo total: 0.2199999988079071 [Pipeline] stash 16:52:51 Stashed 1 file(s) [Pipeline] } 16:52:51 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-291-2-stack-cost] [Pipeline] // lock [Pipeline] } 16:52:51 $ docker stop --time=1 b7e3947966e9415e1e3ab15f925611390e8ad775f5469ccf0dc26e755ef8e956 16:52:52 $ docker rm -f --volumes b7e3947966e9415e1e3ab15f925611390e8ad775f5469ccf0dc26e755ef8e956 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 16:52:54 Running on prd-ubuntu20.04-docker-arm64-4c-16g-8740 in /w/workspace/gexfoundry_device-rest-go_PR-291 [Pipeline] { [Pipeline] ws 16:52:54 Running in /w/workspace/device-rest-go/2 [Pipeline] { [Pipeline] checkout 16:52:54 The recommended git tool is: git 16:52:59 using credential edgex-jenkins-ssh 16:52:59 Cloning the remote Git repository 16:52:59 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 16:52:59 > git init /w/workspace/device-rest-go/2 # timeout=10 16:53:00 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 16:53:00 > git --version # timeout=10 16:53:00 > git --version # 'git version 2.25.1' 16:53:00 using GIT_SSH to set credentials SSH Credentials for GitHub 16:53:00 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 16:53:02 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 16:53:02 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 16:53:04 Merging remotes/origin/main commit 2da8002a0f90c09723ed576a82490c9132775745 into PR head commit 38612c1158141c024a0c36193ce1288c0f682681 16:53:03 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 16:53:03 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 16:53:03 using GIT_SSH to set credentials SSH Credentials for GitHub 16:53:03 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/291/head:refs/remotes/origin/PR-291 +refs/heads/main:refs/remotes/origin/main # timeout=10 16:53:04 > git config core.sparsecheckout # timeout=10 16:53:04 Merge succeeded, producing 38612c1158141c024a0c36193ce1288c0f682681 16:53:04 Checking out Revision 38612c1158141c024a0c36193ce1288c0f682681 (PR-291) 16:53:04 > git checkout -f 38612c1158141c024a0c36193ce1288c0f682681 # timeout=10 16:53:04 > git remote # timeout=10 16:53:04 > git config --get remote.origin.url # timeout=10 16:53:04 using GIT_SSH to set credentials SSH Credentials for GitHub 16:53:04 > git merge 2da8002a0f90c09723ed576a82490c9132775745 # timeout=10 16:53:04 > git rev-parse HEAD^{commit} # timeout=10 16:53:04 > git config core.sparsecheckout # timeout=10 16:53:04 > git checkout -f 38612c1158141c024a0c36193ce1288c0f682681 # timeout=10 16:53:08 Commit message: "fix: [WIP BUG] Add ProfilesDir & DevicesDir to local config" [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 16:53:09 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 16:53:09 % Total % Received % Xferd Average Speed Time Time Time Current 16:53:09 Dload Upload Total Spent Left Speed 16:53:09 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 12751 100 12751 0 0 89795 0 --:--:-- --:--:-- --:--:-- 90432 [Pipeline] sh 16:53:09 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 16:53:10 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json+ 16:53:10 sudo tee /etc/docker/daemon.new 16:53:10 { 16:53:10 "registry-mirrors": [ 16:53:10 "https://nexus3.edgexfoundry.org:10001" 16:53:10 ], 16:53:10 "bip": "10.250.0.254/24", 16:53:10 "hosts": [ 16:53:10 "tcp://0.0.0.0:5555", 16:53:10 "unix:///var/run/docker.sock" 16:53:10 ], 16:53:10 "mtu": 1458, 16:53:10 "selinux-enabled": true, 16:53:10 "seccomp-profile": "/etc/docker/seccomp.json" 16:53:10 } [Pipeline] sh 16:53:10 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 16:53:10 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 16:53:29 provisioning config files... 16:53:29 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/2@tmp/config7269088155022530295tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 16:53:29 ---> docker-login.sh 16:53:29 nexus3.edgexfoundry.org:10001 16:53:30 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 16:53:30 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 16:53:30 Configure a credential helper to remove this warning. See 16:53:30 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 16:53:30 16:53:30 Login Succeeded 16:53:30 nexus3.edgexfoundry.org:10002 16:53:30 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 16:53:30 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 16:53:30 Configure a credential helper to remove this warning. See 16:53:30 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 16:53:30 16:53:30 Login Succeeded 16:53:30 nexus3.edgexfoundry.org:10003 16:53:30 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 16:53:30 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 16:53:30 Configure a credential helper to remove this warning. See 16:53:30 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 16:53:30 16:53:30 Login Succeeded 16:53:30 nexus3.edgexfoundry.org:10004 16:53:31 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 16:53:31 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 16:53:31 Configure a credential helper to remove this warning. See 16:53:31 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 16:53:31 16:53:31 Login Succeeded 16:53:31 docker.io 16:53:31 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 16:53:31 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 16:53:31 Configure a credential helper to remove this warning. See 16:53:31 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 16:53:31 16:53:31 Login Succeeded 16:53:31 ---> docker-login.sh ends [Pipeline] } 16:53:31 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 16:53:32 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 16:53:32 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 16:53:32 ========================================================= 16:53:32 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine] 16:53:32 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 16:53:32 + 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 . 16:53:32 Sending build context to Docker daemon 137.7kB 16:53:32 Step 1/12 : ARG BASE=golang:1.20-alpine3.17 16:53:32 Step 2/12 : FROM ${BASE} AS builder 16:53:32 1.20-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 16:53:32 af6eaf76a39c: Pulling fs layer 16:53:32 55522c791124: Pulling fs layer 16:53:32 ce5c4a1c91eb: Pulling fs layer 16:53:32 169dfbe0d373: Pulling fs layer 16:53:32 e1ff8fa3b103: Pulling fs layer 16:53:32 52ebb69f0ebf: Pulling fs layer 16:53:32 5abe8eddf0d5: Pulling fs layer 16:53:32 52ebb69f0ebf: Waiting 16:53:32 5abe8eddf0d5: Waiting 16:53:32 55522c791124: Verifying Checksum 16:53:32 55522c791124: Download complete 16:53:32 169dfbe0d373: Verifying Checksum 16:53:32 169dfbe0d373: Download complete 16:53:32 e1ff8fa3b103: Verifying Checksum 16:53:32 e1ff8fa3b103: Download complete 16:53:32 af6eaf76a39c: Verifying Checksum 16:53:32 af6eaf76a39c: Download complete 16:53:33 af6eaf76a39c: Pull complete 16:53:34 5abe8eddf0d5: Verifying Checksum 16:53:34 5abe8eddf0d5: Download complete 16:53:34 55522c791124: Pull complete 16:53:35 ce5c4a1c91eb: Verifying Checksum 16:53:35 ce5c4a1c91eb: Download complete 16:53:35 52ebb69f0ebf: Verifying Checksum 16:53:35 52ebb69f0ebf: Download complete 16:53:47 ce5c4a1c91eb: Pull complete 16:53:47 169dfbe0d373: Pull complete 16:53:47 e1ff8fa3b103: Pull complete 16:53:54 52ebb69f0ebf: Pull complete 16:53:55 5abe8eddf0d5: Pull complete 16:53:55 Digest: sha256:978cc1420e451f27bd88fdeece3ad01a9109ec773b62f165dfc696fd516b3d8f 16:53:55 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine 16:53:55 ---> 6cb57ee374ae 16:53:55 Step 3/12 : ARG ADD_BUILD_TAGS="" 16:53:57 ---> Running in e35d7f7764fb 16:53:57 Removing intermediate container e35d7f7764fb 16:53:57 ---> 3d0dacd50531 16:53:57 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 16:53:57 ---> Running in 3405888771b7 16:53:58 Removing intermediate container 3405888771b7 16:53:58 ---> 2e1ab32fcfd6 16:53:58 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 16:53:58 ---> Running in 4ef43d487931 16:53:58 Removing intermediate container 4ef43d487931 16:53:58 ---> 003f7c481159 16:53:58 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 16:53:58 ---> Running in 6b5dfdc39e4b 16:53:58 Removing intermediate container 6b5dfdc39e4b 16:53:58 ---> b2a3648a731e 16:53:58 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 16:53:58 ---> Running in 9e6c2c44e70e 16:53:59 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 16:54:00 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 16:54:01 (1/4) Installing openssh-keygen (9.1_p1-r2) 16:54:01 (2/4) Installing libedit (20221030.3.1-r0) 16:54:01 (3/4) Installing openssh-client-common (9.1_p1-r2) 16:54:01 (4/4) Installing openssh-client-default (9.1_p1-r2) 16:54:01 Executing busybox-1.35.0-r29.trigger 16:54:01 OK: 268 MiB in 57 packages 16:54:04 Removing intermediate container 9e6c2c44e70e 16:54:04 ---> e701fa59e512 16:54:04 Step 8/12 : WORKDIR /device-rest-go 16:54:04 ---> Running in a75d19c6af6a 16:54:04 Removing intermediate container a75d19c6af6a 16:54:04 ---> 093262cdfabf 16:54:04 Step 9/12 : COPY go.mod vendor* ./ 16:54:04 ---> 45163a3fc0b6 16:54:04 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 16:54:04 ---> Running in 6cff81bac729 16:55:12 Removing intermediate container 6cff81bac729 16:55:12 ---> b2a7b1089876 16:55:12 Step 11/12 : COPY . . 16:55:12 ---> e568b41ba0e4 16:55:12 Step 12/12 : RUN $MAKE 16:55:12 ---> Running in 3a554ca0dad7 16:55:12 noop 16:55:12 Removing intermediate container 3a554ca0dad7 16:55:12 ---> 154a659bed89 16:55:12 Successfully built 154a659bed89 16:55:12 Successfully tagged ci-base-image-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 16:55:13 + docker inspect -f . ci-base-image-arm64 16:55:13 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 16:55:13 prd-ubuntu20.04-docker-arm64-4c-16g-8740 does not seem to be running inside a container 16:55:13 $ 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 ******** ci-base-image-arm64 cat 16:55:14 $ docker top 99560a3651aec8664c525cad437e9c05f1d74ff19613146907f356ad9c722910 -eo pid,comm [Pipeline] { [Pipeline] sh 16:55:15 + go version 16:55:15 go version go1.20.2 linux/arm64 [Pipeline] } 16:55:15 $ docker stop --time=1 99560a3651aec8664c525cad437e9c05f1d74ff19613146907f356ad9c722910 16:55:17 $ docker rm -f --volumes 99560a3651aec8664c525cad437e9c05f1d74ff19613146907f356ad9c722910 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 16:55:17 + docker inspect -f . ci-base-image-arm64 16:55:17 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 16:55:17 prd-ubuntu20.04-docker-arm64-4c-16g-8740 does not seem to be running inside a container 16:55:17 $ 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 ******** ci-base-image-arm64 cat 16:55:18 $ docker top b101a50c2a8ca40f9478c78aa20eaab109204e403048462a71d7e3182234a0e1 -eo pid,comm [Pipeline] { [Pipeline] sh 16:55:19 + git config --global --add safe.directory /w/workspace/device-rest-go/2 [Pipeline] fileExists [Pipeline] sh 16:55:20 + make test 16:55:20 go test ./... -coverprofile=coverage.out ./... 16:55:52 ? github.com/edgexfoundry/device-rest-go [no test files] 16:57:59 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 16:57:59 ok github.com/edgexfoundry/device-rest-go/driver 0.059s coverage: 32.3% of statements 16:57:59 WARNING: Linting skipped (not on x86_64 or linter not installed) 16:57:59 go vet ./... 16:58:31 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 16:58:31 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 16:58:31 ./bin/test-attribution-txt.sh 16:58:31 An attribution for github.com/go-jose/go-jose/v3 is missing from Attribution.txt, please add [Pipeline] echo 16:58:31 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 16:58:31 $ docker stop --time=1 b101a50c2a8ca40f9478c78aa20eaab109204e403048462a71d7e3182234a0e1 16:58:33 $ docker rm -f --volumes b101a50c2a8ca40f9478c78aa20eaab109204e403048462a71d7e3182234a0e1 [Pipeline] // withDockerContainer [Pipeline] sh 16:58:34 + sudo chown -R jenkins:jenkins . [Pipeline] stash 16:58:34 Warning: overwriting stash ‘coverage-report’ 16:58:34 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 16:58:35 + sudo chown -R jenkins:jenkins . [Pipeline] sh 16:58:35 + ls -al . 16:58:35 total 180 16:58:35 drwxrwxr-x 8 jenkins jenkins 4096 Apr 17 16:55 . 16:58:35 drwxrwxr-x 4 jenkins jenkins 4096 Apr 17 16:53 .. 16:58:35 -rw-rw-r-- 1 jenkins jenkins 151 Apr 17 16:53 .dockerignore 16:58:35 drwxrwxr-x 8 jenkins jenkins 4096 Apr 17 16:53 .git 16:58:35 drwxrwxr-x 3 jenkins jenkins 4096 Apr 17 16:53 .github 16:58:35 -rw-rw-r-- 1 jenkins jenkins 329 Apr 17 16:53 .gitignore 16:58:35 -rw-rw-r-- 1 jenkins jenkins 41 Apr 17 16:53 .golangci.yml 16:58:35 -rw-rw-r-- 1 jenkins jenkins 9202 Apr 17 16:53 Attribution.txt 16:58:35 -rw-rw-r-- 1 jenkins jenkins 13085 Apr 17 16:53 CHANGELOG.md 16:58:35 -rw-rw-r-- 1 jenkins jenkins 1578 Apr 17 16:53 Dockerfile 16:58:35 -rw-rw-r-- 1 jenkins jenkins 677 Apr 17 16:53 GOVERNANCE.md 16:58:35 -rw-rw-r-- 1 jenkins jenkins 680 Apr 17 16:53 Jenkinsfile 16:58:35 -rw-rw-r-- 1 jenkins jenkins 11340 Apr 17 16:53 LICENSE 16:58:35 -rw-rw-r-- 1 jenkins jenkins 1779 Apr 17 16:53 Makefile 16:58:35 -rw-rw-r-- 1 jenkins jenkins 620 Apr 17 16:53 OWNERS.md 16:58:35 -rw-rw-r-- 1 jenkins jenkins 15321 Apr 17 16:53 README.md 16:58:35 -rw-rw-r-- 1 jenkins jenkins 5 Apr 17 16:51 VERSION 16:58:35 drwxrwxr-x 2 jenkins jenkins 4096 Apr 17 16:53 bin 16:58:35 drwxrwxr-x 3 jenkins jenkins 4096 Apr 17 16:53 cmd 16:58:35 -rw-r--r-- 1 jenkins jenkins 14587 Apr 17 16:57 coverage.out 16:58:35 drwxrwxr-x 2 jenkins jenkins 4096 Apr 17 16:53 driver 16:58:35 -rw-rw-r-- 1 jenkins jenkins 3402 Apr 17 16:53 go.mod 16:58:35 -rw-rw-r-- 1 jenkins jenkins 31553 Apr 17 16:53 go.sum 16:58:35 drwxrwxr-x 4 jenkins jenkins 4096 Apr 17 16:53 snap 16:58:35 -rw-rw-r-- 1 jenkins jenkins 713 Apr 17 16:53 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 16:58:35 + 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=38612c1158141c024a0c36193ce1288c0f682681 --label arch=arm64 --label version=0.0.0 . 16:58:35 Sending build context to Docker daemon 153.1kB 16:58:36 Step 1/25 : ARG BASE=golang:1.20-alpine3.17 16:58:36 Step 2/25 : FROM ${BASE} AS builder 16:58:36 ---> 154a659bed89 16:58:36 Step 3/25 : ARG ADD_BUILD_TAGS="" 16:58:36 ---> Running in b11add2fb7e5 16:58:36 Removing intermediate container b11add2fb7e5 16:58:36 ---> 473e958becca 16:58:36 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 16:58:36 ---> Running in b011f60697ef 16:58:37 Removing intermediate container b011f60697ef 16:58:37 ---> ae0bc6627d98 16:58:37 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 16:58:37 ---> Running in 41be8eff562d 16:58:37 Removing intermediate container 41be8eff562d 16:58:37 ---> 4e3524082173 16:58:37 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 16:58:37 ---> Running in 8292bc40aa9f 16:58:37 Removing intermediate container 8292bc40aa9f 16:58:37 ---> 9be8cdf40694 16:58:37 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 16:58:37 ---> Running in 30590601ec47 16:58:39 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 16:58:39 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 16:58:40 OK: 268 MiB in 57 packages 16:58:41 Removing intermediate container 30590601ec47 16:58:41 ---> 5d195042c010 16:58:41 Step 8/25 : WORKDIR /device-rest-go 16:58:41 ---> Running in c268fd788c53 16:58:42 Removing intermediate container c268fd788c53 16:58:42 ---> f2fa82a89c00 16:58:42 Step 9/25 : COPY go.mod vendor* ./ 16:58:42 ---> 5aa50beb650e 16:58:42 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 16:58:42 ---> Running in 01f3c3242b9f 16:58:45 Removing intermediate container 01f3c3242b9f 16:58:45 ---> af7b86827e00 16:58:45 Step 11/25 : COPY . . 16:58:45 ---> 3f9fd93239d3 16:58:45 Step 12/25 : RUN $MAKE 16:58:45 ---> Running in 0b00b7ddb1f4 16:58:46 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 17:00:53 Removing intermediate container 0b00b7ddb1f4 17:00:53 ---> c04e95d3217a 17:00:53 Step 13/25 : FROM alpine:3.17 17:00:53 3.17: Pulling from library/alpine 17:00:53 c41833b44d91: Pulling fs layer 17:00:53 c41833b44d91: Verifying Checksum 17:00:53 c41833b44d91: Download complete 17:00:53 c41833b44d91: Pull complete 17:00:53 Digest: sha256:124c7d2707904eea7431fffe91522a01e5a861a624ee31d03372cc1d138a3126 17:00:53 Status: Downloaded newer image for alpine:3.17 17:00:53 ---> 51e60588ff2c 17:00:53 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 17:00:53 ---> Running in d19040e4c05f 17:00:53 Removing intermediate container d19040e4c05f 17:00:53 ---> 98740174ee2c 17:00:53 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 17:00:53 ---> Running in 465cd06dda6f 17:00:53 Removing intermediate container 465cd06dda6f 17:00:53 ---> 8dca0ea12797 17:00:53 Step 16/25 : RUN apk add --update --no-cache dumb-init 17:00:53 ---> Running in 3b7566f6ef47 17:00:53 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 17:00:53 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 17:00:54 (1/1) Installing dumb-init (1.2.5-r2) 17:00:54 Executing busybox-1.35.0-r29.trigger 17:00:54 OK: 8 MiB in 16 packages 17:00:55 Removing intermediate container 3b7566f6ef47 17:00:55 ---> 812dc9bd4494 17:00:55 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 17:00:57 ---> 1cb857f54acf 17:00:57 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 17:00:57 ---> fe1dd3856874 17:00:57 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 17:00:58 ---> 09613ba7f6f4 17:00:58 Step 20/25 : EXPOSE 59986 17:00:58 ---> Running in 8e174f01016c 17:00:58 Removing intermediate container 8e174f01016c 17:00:58 ---> db5401a072bb 17:00:58 Step 21/25 : ENTRYPOINT ["/device-rest"] 17:00:58 ---> Running in 6e63746513b7 17:00:58 Removing intermediate container 6e63746513b7 17:00:58 ---> 5374afc7fabb 17:00:58 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 17:00:58 ---> Running in 7a41d07f6a81 17:00:58 Removing intermediate container 7a41d07f6a81 17:00:58 ---> 0a291ddf3347 17:00:58 Step 23/25 : LABEL arch=arm64 17:00:58 ---> Running in a2a45ca883cf 17:00:59 Removing intermediate container a2a45ca883cf 17:00:59 ---> 1eb7edc8aca8 17:00:59 Step 24/25 : LABEL git_sha=38612c1158141c024a0c36193ce1288c0f682681 17:00:59 ---> Running in 06739e195469 17:00:59 Removing intermediate container 06739e195469 17:00:59 ---> 43f3085374a0 17:00:59 Step 25/25 : LABEL version=0.0.0 17:00:59 ---> Running in 54dbd51a12ae 17:01:00 Removing intermediate container 54dbd51a12ae 17:01:00 ---> 29d39846363b 17:01:00 [Warning] One or more build-args [ARCH] were not consumed 17:01:00 Successfully built 29d39846363b 17:01:00 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 17:01:00 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 17:01:00 17:01:00 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 17:01:00 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 17:01:00 arm64: Pulling from edgex-lftools-log-publisher 17:01:00 8998bd30e6a1: Pulling fs layer 17:01:00 04944245beec: Pulling fs layer 17:01:00 699f458cf7ca: Pulling fs layer 17:01:00 765212b225bb: Pulling fs layer 17:01:00 f23df028b6ca: Pulling fs layer 17:01:00 d65c8cfc05b1: Pulling fs layer 17:01:00 2437ff75d9bd: Pulling fs layer 17:01:00 d65c8cfc05b1: Waiting 17:01:00 765212b225bb: Waiting 17:01:00 f23df028b6ca: Waiting 17:01:00 2437ff75d9bd: Waiting 17:01:01 04944245beec: Verifying Checksum 17:01:01 04944245beec: Download complete 17:01:01 765212b225bb: Download complete 17:01:01 f23df028b6ca: Verifying Checksum 17:01:01 f23df028b6ca: Download complete 17:01:01 d65c8cfc05b1: Verifying Checksum 17:01:01 d65c8cfc05b1: Download complete 17:01:01 699f458cf7ca: Verifying Checksum 17:01:01 699f458cf7ca: Download complete 17:01:01 8998bd30e6a1: Verifying Checksum 17:01:01 8998bd30e6a1: Download complete 17:01:04 2437ff75d9bd: Verifying Checksum 17:01:04 2437ff75d9bd: Download complete 17:01:05 8998bd30e6a1: Pull complete 17:01:05 04944245beec: Pull complete 17:01:07 699f458cf7ca: Pull complete 17:01:07 765212b225bb: Pull complete 17:01:08 f23df028b6ca: Pull complete 17:01:08 d65c8cfc05b1: Pull complete 17:01:23 2437ff75d9bd: Pull complete 17:01:23 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 17:01:23 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 17:01:23 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 17:01:23 prd-ubuntu20.04-docker-arm64-4c-16g-8740 does not seem to be running inside a container 17:01:23 $ 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 ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 17:01:26 $ docker top e6e05ece4cefc4898e723278d8edcb2dfddb1870ecb630c5fcac5111c57aba29 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 17:01:26 ---> job-cost.sh 17:01:27 lf-activate-venv: SKIPPING 17:01:27 INFO: No Stack... 17:01:27 INFO: Retrieving Pricing Info for: v3-standard-4 17:01:28 INFO: Archiving Costs [Pipeline] sh 17:01:28 + cat /w/workspace/device-rest-go/2/archives/cost.csv 17:01:28 + cut -d, -f6 [Pipeline] lock 17:01:28 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-291-2-stack-cost] 17:01:28 Resource [jenkins-edgexfoundry-device-rest-go-PR-291-2-stack-cost] did not exist. Created. 17:01:28 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-291-2-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 17:01:29 /w/workspace/device-rest-go/2@tmp/durable-87b9eaf7/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 17:01:29 + echo total: 0.10999999940395355 [Pipeline] stash 17:01:30 Warning: overwriting stash ‘stack-cost’ 17:01:30 Stashed 1 file(s) [Pipeline] } 17:01:30 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-291-2-stack-cost] [Pipeline] // lock [Pipeline] } 17:01:30 $ docker stop --time=1 e6e05ece4cefc4898e723278d8edcb2dfddb1870ecb630c5fcac5111c57aba29 17:01:31 $ docker rm -f --volumes e6e05ece4cefc4898e723278d8edcb2dfddb1870ecb630c5fcac5111c57aba29 [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 17:01:31 provisioning config files... 17:01:31 copy managed file [device-rest-go-codecov-token] to file:/w/workspace/gexfoundry_device-rest-go_PR-291@tmp/config3100934327332572983tmp [Pipeline] { [Pipeline] sh 17:01:32 + set +x 17:01:32 + + curlbash -s -s https://codecov.io/bash -- 17:01:32 17:01:32 17:01:32 _____ _ 17:01:32 / ____| | | 17:01:32 | | ___ __| | ___ ___ _____ __ 17:01:32 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 17:01:32 | |___| (_) | (_| | __/ (_| (_) \ V / 17:01:32 \_____\___/ \__,_|\___|\___\___/ \_/ 17:01:32 Bash-1.0.6 17:01:32 17:01:32 17:01:32 ==> git version 2.25.1 found 17:01:32 ==> 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 17:01:32 Release-Date: 2020-01-08 17:01:32 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 17:01:32 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 17:01:32 ==> Jenkins CI detected. 17:01:32 current dir:  /w/workspace/gexfoundry_device-rest-go_PR-291 17:01:32 project root: . 17:01:32 --> token set from env 17:01:32 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 17:01:32 ==> Running gcov in . (disable via -X gcov) 17:01:32 ==> Python coveragepy not found 17:01:32 ==> Searching for coverage reports in: 17:01:32 + . 17:01:32 -> Found 1 reports 17:01:32 ==> Detecting git/mercurial file structure 17:01:32 ==> Reading reports 17:01:32 + ./coverage.out bytes=14587 17:01:32 ==> Appending adjustments 17:01:32 https://docs.codecov.io/docs/fixing-reports 17:01:32 + Found adjustments 17:01:32 ==> Gzipping contents 17:01:32 4.0K /tmp/codecov.LpF4v7.gz 17:01:32 ==> Uploading reports 17:01:32 url: https://codecov.io 17:01:32 query: branch=PR-291&commit=38612c1158141c024a0c36193ce1288c0f682681&build=2&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-291%2F2%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=291&job=&cmd_args= 17:01:32 -> Pinging Codecov 17:01:32 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=c51feb23-73ac-4f49-b3d1-d26df23137db&branch=PR-291&commit=38612c1158141c024a0c36193ce1288c0f682681&build=2&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-291%2F2%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=291&job=&cmd_args= 17:01:32 -> Uploading to 17:01:32 https://storage.googleapis.com/codecov/v4/raw/2023-04-17/4E5D53B4F1F92C436F7061BF334D961C/38612c1158141c024a0c36193ce1288c0f682681/4337a6d9-f847-4420-9f3e-4c1f8c922584.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20230417%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20230417T170132Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=63d257929cf3f3e2598b65aaf24fc46793c0b6682a0c3698d1cfb74f5b3782bf 17:01:32 % Total % Received % Xferd Average Speed Time Time Time Current 17:01:32 Dload Upload Total Spent Left Speed 17:01:32 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 2493 0 0 100 2493 0 10886 --:--:-- --:--:-- --:--:-- 10886 17:01:32 -> Reports have been successfully queued for processing at https://app.codecov.io/github/edgexfoundry/device-rest-go/commit/38612c1158141c024a0c36193ce1288c0f682681 [Pipeline] } 17:01:32 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 17:01:33 + [ -d /w/workspace/gexfoundry_device-rest-go_PR-291/archives ] 17:01:33 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-291/archives 17:01:33 total 16 17:01:33 drwxr-xr-x 3 root root 4096 Apr 17 16:52 . 17:01:33 drwxrwxr-x 10 jenkins jenkins 4096 Apr 17 16:52 .. 17:01:33 drwxr-xr-x 2 root root 4096 Apr 17 16:52 cost 17:01:33 -rw-r--r-- 1 root root 86 Apr 17 16:52 cost.csv 17:01:33 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-rest-go_PR-291/archives 17:01:33 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-291/archives 17:01:33 total 16 17:01:33 drwxr-xr-x 3 jenkins jenkins 4096 Apr 17 16:52 . 17:01:33 drwxrwxr-x 10 jenkins jenkins 4096 Apr 17 16:52 .. 17:01:33 drwxr-xr-x 2 jenkins jenkins 4096 Apr 17 16:52 cost 17:01:33 -rw-r--r-- 1 jenkins jenkins 86 Apr 17 16:52 cost.csv [Pipeline] libraryResource [Pipeline] sh 17:01:33 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 17:01:34 ---> package-listing.sh 17:01:34 ++ facter osfamily 17:01:34 ++ tr '[:upper:]' '[:lower:]' 17:01:34 + OS_FAMILY=debian 17:01:34 + workspace=/w/workspace/gexfoundry_device-rest-go_PR-291 17:01:34 + START_PACKAGES=/tmp/packages_start.txt 17:01:34 + END_PACKAGES=/tmp/packages_end.txt 17:01:34 + DIFF_PACKAGES=/tmp/packages_diff.txt 17:01:34 + PACKAGES=/tmp/packages_start.txt 17:01:34 + '[' /w/workspace/gexfoundry_device-rest-go_PR-291 ']' 17:01:34 + PACKAGES=/tmp/packages_end.txt 17:01:34 + case "${OS_FAMILY}" in 17:01:34 + dpkg -l 17:01:34 + grep '^ii' 17:01:34 + '[' -f /tmp/packages_start.txt ']' 17:01:34 + '[' -f /tmp/packages_end.txt ']' 17:01:34 + diff /tmp/packages_start.txt /tmp/packages_end.txt 17:01:34 + '[' /w/workspace/gexfoundry_device-rest-go_PR-291 ']' 17:01:34 + mkdir -p /w/workspace/gexfoundry_device-rest-go_PR-291/archives/ 17:01:34 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/gexfoundry_device-rest-go_PR-291/archives/ [Pipeline] echo 17:01:34 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-291/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 17:01:35 + facter operatingsystem [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 17:01:35 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 17:01:35 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 17:01:35 prd-ubuntu20.04-docker-8c-8g-8739 does not seem to be running inside a container 17:01:35 $ 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-291/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-291 -v /w/workspace/gexfoundry_device-rest-go_PR-291:/w/workspace/gexfoundry_device-rest-go_PR-291:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-291@tmp:/w/workspace/gexfoundry_device-rest-go_PR-291@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 17:01:35 $ docker top 06eb3c7b7a5782475180bde9d3bcc9d030bc0ee65264076f1f4008d4c5658ed9 -eo pid,comm [Pipeline] { [Pipeline] sh 17:01:36 + touch /tmp/pre-build-complete [Pipeline] sh 17:01:36 + mkdir -p /var/log/sysstat [Pipeline] sh 17:01:36 + ls /var/log/sa-host 17:01:36 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 17:01:36 provisioning config files... 17:01:36 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-291@tmp/config7582768775973138044tmp [Pipeline] { [Pipeline] echo 17:01:36 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 17:01:37 ---> create-netrc.sh [Pipeline] } 17:01:37 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 17:01:37 ---> python-tools-install.sh [Pipeline] echo 17:01:37 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 17:01:37 ---> sudo-logs.sh 17:01:37 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 17:01:37 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 17:01:38 ---> job-cost.sh 17:01:38 lf-activate-venv: SKIPPING 17:01:38 DEBUG: total: 0.2199999988079071 17:01:38 INFO: Retrieving Stack Cost... 17:01:38 INFO: Retrieving Pricing Info for: v3-standard-8 17:01:38 INFO: Archiving Costs [Pipeline] echo 17:01:39 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 17:01:39 ---> logs-deploy.sh 17:01:39 lf-activate-venv: SKIPPING 17:01:39 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-291/2 17:01:39 INFO: archiving workspace using pattern(s): 17:01:40 Archives upload complete. 17:01:40 INFO: archiving logs to Nexus