Pull request #1125 opened Connecting to https://api.github.com using edgex-jenkins github personal access token Connecting to https://api.github.com to check permissions of obtain list of jpwhitemn for edgexfoundry/device-sdk-go Obtained Jenkinsfile from da52579f54110f8d2333392ff37538d74be012fa+71f09d1ab0705056f5c82f36890c48cdd3d80cce (53a8492567188b17af25cbb5870cdae865e6fb9e) 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-ssh17432816802505705625.key > git ls-remote -h -t -- git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Found match: refs/tags/stable revision c72b16708d6eed9a08be464a432ce22db7d90667 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-ssh3775877232355898878.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 c72b16708d6eed9a08be464a432ce22db7d90667 The recommended git tool is: git using credential edgex-jenkins-ssh Cloning the remote Git repository Cloning with configured refspecs honoured and with tags Cloning repository git@github.com:edgexfoundry/edgex-global-pipelines.git > git init /var/lib/jenkins/jobs/edgexfoundry/jobs/device-sdk-go/branches/PR-1125/workspace@libs/edgex-global-pipelines # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/edgex-global-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-sdk-go/branches/PR-1125/workspace@libs/edgex-global-pipelines@tmp/jenkins-gitclient-ssh5919091158373247115.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 > git config --add remote.origin.fetch +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Fetching with tags Fetching upstream changes from git@github.com:edgexfoundry/edgex-global-pipelines.git using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-sdk-go/branches/PR-1125/workspace@libs/edgex-global-pipelines@tmp/jenkins-gitclient-ssh5040894380933743503.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision c72b16708d6eed9a08be464a432ce22db7d90667 (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f c72b16708d6eed9a08be464a432ce22db7d90667 # timeout=10 Commit message: "Merge pull request #378 from ernestojeda/ubuntu-20-changes" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 > git --version # timeout=10 > git --version # 'git version 2.16.6' Excluding src/test/ from checkout of git git@github.com:edgexfoundry/edgex-global-pipelines.git so that shared 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-ssh230479998479043172.key > git ls-remote -h -- git@github.com:lfit/releng-pipelines.git # timeout=10 Found match: refs/heads/master revision b3dada9287033e4e81bc68320e01fd57bef02650 The recommended git tool is: NONE using credential edgex-jenkins-ssh Cloning the remote Git repository Cloning with configured refspecs honoured and without tags Cloning repository git@github.com:lfit/releng-pipelines.git > git init /var/lib/jenkins/jobs/edgexfoundry/jobs/device-sdk-go/branches/PR-1125/workspace@libs/lf-pipelines # timeout=10 Fetching upstream changes from git@github.com:lfit/releng-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-sdk-go/branches/PR-1125/workspace@libs/lf-pipelines@tmp/jenkins-gitclient-ssh6644174319986047143.key > git fetch --no-tags --progress -- git@github.com:lfit/releng-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:lfit/releng-pipelines.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 Avoid second fetch Checking out Revision b3dada9287033e4e81bc68320e01fd57bef02650 (master) > git config core.sparsecheckout # timeout=10 > git checkout -f b3dada9287033e4e81bc68320e01fd57bef02650 # timeout=10 Commit message: "Fix: Update requirements.txt, update global-jjb" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 > git --version # timeout=10 > git --version # 'git version 2.16.6' fatal: bad object c72b16708d6eed9a08be464a432ce22db7d90667 Excluding src/test/ from checkout of git git@github.com:lfit/releng-pipelines.git so that shared 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-sdk-go, dockerImageName:device-sdk-simple, dockerFilePath:example/cmd/device-simple/Dockerfile, pushImage:false, publishSwaggerDocs:true, swaggerApiFolders:[openapi/v2]] ========================================================= [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-sdk-go-settings PROJECT: device-sdk-go USE_SEMVER: true TEST_SCRIPT: make test BUILD_SCRIPT: make build GO_VERSION: 1.17 USE_ALPINE: true DOCKER_FILE_PATH: example/cmd/device-simple/Dockerfile DOCKER_BUILD_FILE_PATH: Dockerfile.build DOCKER_BUILD_CONTEXT: . DOCKER_BUILD_IMAGE_TARGET: builder DOCKER_IMAGE_NAME: device-sdk-simple DOCKER_REGISTRY_NAMESPACE: DOCKER_NEXUS_REPO: staging BUILD_DOCKER_IMAGE: true PUSH_DOCKER_IMAGE: false BUILD_EXPERIMENTAL_DOCKER_IMAGE: false BUILD_STABLE_DOCKER_IMAGE: false SEMVER_BUMP_LEVEL: pre BUILD_SNAP: false PUBLISH_SWAGGER_DOCS: true SWAGGER_API_FOLDERS: openapi/v2 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 [Pipeline] node Still waiting to schedule task Waiting for next available executor on ‘prd-ubuntu20.04-docker-8c-8g-11600’ Running on prd-ubuntu20.04-docker-8c-8g-11602 in /w/workspace/gexfoundry_device-sdk-go_PR-1125 [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-sdk-go.git > git init /w/workspace/gexfoundry_device-sdk-go_PR-1125 # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-sdk-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-sdk-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 Merging remotes/origin/main commit 71f09d1ab0705056f5c82f36890c48cdd3d80cce into PR head commit da52579f54110f8d2333392ff37538d74be012fa Merge succeeded, producing da52579f54110f8d2333392ff37538d74be012fa Checking out Revision da52579f54110f8d2333392ff37538d74be012fa (PR-1125) > git config remote.origin.url git@github.com:edgexfoundry/device-sdk-go.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/device-sdk-go.git # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-sdk-go.git using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-sdk-go.git +refs/pull/1125/head:refs/remotes/origin/PR-1125 +refs/heads/main:refs/remotes/origin/main # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f da52579f54110f8d2333392ff37538d74be012fa # 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 71f09d1ab0705056f5c82f36890c48cdd3d80cce # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f da52579f54110f8d2333392ff37538d74be012fa # timeout=10 Commit message: "feat: enable security hardening" First time build. Skipping changelog. > git --version # timeout=10 > git --version # 'git version 2.25.1' fatal: bad object c72b16708d6eed9a08be464a432ce22db7d90667 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 18:38:21 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 18:38:21 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 18:38:21 ========================================================= 18:38:21 EdgeX Global Pipelines Version Info 18:38:21 ========================================================= [Pipeline] libraryResource [Pipeline] sh 18:38:22 ------------------- 18:38:22 stable info: 18:38:22 ------------------- 18:38:22 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 18:38:22 Commit SHA: c72b16708d6eed9a08be464a432ce22db7d90667 18:38:22 Message: update stable to v1.0.221 18:38:23 ------------------- 18:38:23 experimental info: 18:38:23 ------------------- 18:38:23 Commited By: **** collab-it+edgex@linuxfoundation.org 18:38:23 Commit SHA: c72b16708d6eed9a08be464a432ce22db7d90667 18:38:23 Message: update experimental to v1.0.221 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 18:38:23 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-sdk-go-settings [Pipeline] echo 18:38:23 [edgeXSetupEnvironment]: set envvar PROJECT = device-sdk-go [Pipeline] echo 18:38:23 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 18:38:23 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 18:38:23 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 18:38:23 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.17 [Pipeline] echo 18:38:23 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 18:38:23 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = example/cmd/device-simple/Dockerfile [Pipeline] echo 18:38:23 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 18:38:23 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 18:38:24 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 18:38:24 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-sdk-simple [Pipeline] echo 18:38:24 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 18:38:24 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 18:38:24 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 18:38:24 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = false [Pipeline] echo 18:38:24 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 18:38:24 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 18:38:24 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 18:38:24 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 18:38:24 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = true [Pipeline] echo 18:38:24 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v2 [Pipeline] echo 18:38:24 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 18:38:24 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 18:38:24 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 18:38:24 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 18:38:24 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-1125 [Pipeline] echo 18:38:24 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-1125 [Pipeline] echo 18:38:24 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-1125 [Pipeline] echo 18:38:24 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = da52579f54110f8d2333392ff37538d74be012fa [Pipeline] echo 18:38:25 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = da52579 [Pipeline] echo 18:38:25 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 18:38:25 provisioning config files... 18:38:25 copy managed file [device-sdk-go-settings] to file:/w/workspace/gexfoundry_device-sdk-go_PR-1125@tmp/config8453846945133151298tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 18:38:25 ---> docker-login.sh 18:38:25 nexus3.edgexfoundry.org:10001 18:38:25 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 18:38:25 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 18:38:25 Configure a credential helper to remove this warning. See 18:38:25 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 18:38:25 18:38:25 Login Succeeded 18:38:25 nexus3.edgexfoundry.org:10002 18:38:26 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 18:38:26 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 18:38:26 Configure a credential helper to remove this warning. See 18:38:26 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 18:38:26 18:38:26 Login Succeeded 18:38:26 nexus3.edgexfoundry.org:10003 18:38:26 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 18:38:26 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 18:38:26 Configure a credential helper to remove this warning. See 18:38:26 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 18:38:26 18:38:26 Login Succeeded 18:38:26 nexus3.edgexfoundry.org:10004 18:38:26 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 18:38:26 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 18:38:26 Configure a credential helper to remove this warning. See 18:38:26 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 18:38:26 18:38:26 Login Succeeded 18:38:26 docker.io 18:38:26 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 18:38:26 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 18:38:26 Configure a credential helper to remove this warning. See 18:38:26 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 18:38:26 18:38:26 Login Succeeded 18:38:26 ---> docker-login.sh ends [Pipeline] } 18:38:26 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 18:38:27 + git rev-list -1 --merges da52579f54110f8d2333392ff37538d74be012fa~1..da52579f54110f8d2333392ff37538d74be012fa [Pipeline] echo 18:38:27 -----------> git rev-list -1 --merges da52579f54110f8d2333392ff37538d74be012fa~1..da52579f54110f8d2333392ff37538d74be012fa da52579f54110f8d2333392ff37538d74be012fa [false] [Pipeline] sh 18:38:27 + git log --format=format:%s -1 da52579f54110f8d2333392ff37538d74be012fa [Pipeline] echo 18:38:27 ========================================================= 18:38:27 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 18:38:27 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 18:38:28 + git log --format=format:%s -1 da52579f54110f8d2333392ff37538d74be012fa [Pipeline] echo 18:38:28 [semverPrep] GIT_COMMIT: da52579f54110f8d2333392ff37538d74be012fa, Commit Message: feat: enable security hardening [Pipeline] echo 18:38:28 [semverPrep] This is not a build commit. [Pipeline] sh 18:38:28 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 18:38:28 + grep -v github /etc/ssh/ssh_known_hosts 18:38:28 + [ -e /tmp/ssh_known_hosts ] 18:38:28 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 18:38:28 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 18:38:28 + sudo tee -a /etc/ssh/ssh_known_hosts 18:38:28 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] sh 18:38:29 + docker inspect -f . nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 18:38:29 18:38:29 Error: No such object: nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] isUnix [Pipeline] sh 18:38:29 + docker pull nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 18:38:29 latest: Pulling from edgex-devops/git-semver 18:38:29 a0d0a0d46f8b: Pulling fs layer 18:38:29 3e5f54012d9b: Pulling fs layer 18:38:29 4c7163046ea9: Pulling fs layer 18:38:29 0c2d73faf560: Pulling fs layer 18:38:29 0c2d73faf560: Waiting 18:38:29 3e5f54012d9b: Verifying Checksum 18:38:29 3e5f54012d9b: Download complete 18:38:29 a0d0a0d46f8b: Download complete 18:38:29 0c2d73faf560: Verifying Checksum 18:38:29 0c2d73faf560: Download complete 18:38:29 4c7163046ea9: Download complete 18:38:29 a0d0a0d46f8b: Pull complete 18:38:29 3e5f54012d9b: Pull complete 18:38:30 4c7163046ea9: Pull complete 18:38:30 0c2d73faf560: Pull complete 18:38:30 Digest: sha256:2751de6e655929dcbe46418c7769d9d992331b5b721eb968631a4166222929f9 18:38:30 Status: Downloaded newer image for nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 18:38:30 nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] withDockerContainer 18:38:30 prd-ubuntu20.04-docker-8c-8g-11602 does not seem to be running inside a container 18:38:30 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/gexfoundry_device-sdk-go_PR-1125 -v /w/workspace/gexfoundry_device-sdk-go_PR-1125:/w/workspace/gexfoundry_device-sdk-go_PR-1125:rw,z -v /w/workspace/gexfoundry_device-sdk-go_PR-1125@tmp:/w/workspace/gexfoundry_device-sdk-go_PR-1125@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest cat 18:38:31 $ docker top 1c36ab6c690f791bbee7923877ad7ec6f9c1d85f224bc8d1d342a3f1c2168e51 -eo pid,comm [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 18:38:31 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 18:38:31 [ssh-agent] Looking for ssh-agent implementation... 18:38:31 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 18:38:31 $ docker exec 1c36ab6c690f791bbee7923877ad7ec6f9c1d85f224bc8d1d342a3f1c2168e51 ssh-agent 18:38:31 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXIpLcng/agent.14 18:38:31 SSH_AGENT_PID=20 18:38:31 Running ssh-add (command line suppressed) 18:38:31 Identity added: /w/workspace/gexfoundry_device-sdk-go_PR-1125@tmp/private_key_3585313350024916655.key (/w/workspace/gexfoundry_device-sdk-go_PR-1125@tmp/private_key_3585313350024916655.key) 18:38:31 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 18:38:32 + git tag --points-at HEAD [Pipeline] } 18:38:32 $ docker exec --env ******** --env ******** 1c36ab6c690f791bbee7923877ad7ec6f9c1d85f224bc8d1d342a3f1c2168e51 ssh-agent -k 18:38:32 unset SSH_AUTH_SOCK; 18:38:32 unset SSH_AGENT_PID; 18:38:32 echo Agent pid 20 killed; 18:38:32 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 18:38:32 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 18:38:32 [ssh-agent] Looking for ssh-agent implementation... 18:38:32 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 18:38:32 $ docker exec 1c36ab6c690f791bbee7923877ad7ec6f9c1d85f224bc8d1d342a3f1c2168e51 ssh-agent 18:38:32 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXLpDIFL/agent.53 18:38:32 SSH_AGENT_PID=59 18:38:32 Running ssh-add (command line suppressed) 18:38:32 Identity added: /w/workspace/gexfoundry_device-sdk-go_PR-1125@tmp/private_key_5417786923676519680.key (/w/workspace/gexfoundry_device-sdk-go_PR-1125@tmp/private_key_5417786923676519680.key) 18:38:32 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 18:38:33 + git semver init 18:38:33 # -> Open(): unable to determine branch for HEAD 18:38:33 # $GIT_DIR = /w/workspace/gexfoundry_device-sdk-go_PR-1125/.git 18:38:33 # $GIT_WORK_TREE = /w/workspace/gexfoundry_device-sdk-go_PR-1125 18:38:33 # $SEMVER_REMOTE_NAME = origin 18:38:33 # $SEMVER_USER_EMAIL = collab-it+edgex@linuxfoundation.org 18:38:33 # $SEMVER_USER_NAME = edgex-jenkins 18:38:33 # $SEMVER_BRANCH = PR-1125 18:38:33 # $SEMVER_TEMP = /tmp/semver-750030833 18:38:33 # git clone --branch semver git@github.com:edgexfoundry/device-sdk-go.git $SEMVER_TEMP 18:38:34 # '/tmp/semver-750030833' -> '/w/workspace/gexfoundry_device-sdk-go_PR-1125/.semver' 18:38:34 # -> Force: false 18:38:34 # $SEMVER_DIR = /w/workspace/gexfoundry_device-sdk-go_PR-1125/.semver [Pipeline] } 18:38:34 $ docker exec --env ******** --env ******** 1c36ab6c690f791bbee7923877ad7ec6f9c1d85f224bc8d1d342a3f1c2168e51 ssh-agent -k 18:38:34 unset SSH_AUTH_SOCK; 18:38:34 unset SSH_AGENT_PID; 18:38:34 echo Agent pid 59 killed; 18:38:34 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 18:38:34 + git semver [Pipeline] } 18:38:34 $ docker stop --time=1 1c36ab6c690f791bbee7923877ad7ec6f9c1d85f224bc8d1d342a3f1c2168e51 18:38:36 $ docker rm -f 1c36ab6c690f791bbee7923877ad7ec6f9c1d85f224bc8d1d342a3f1c2168e51 [Pipeline] // withDockerContainer [Pipeline] sh 18:38:36 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 18:38:36 Stashed 1 file(s) [Pipeline] echo 18:38:36 [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 18:38:37 provisioning config files... 18:38:37 copy managed file [device-sdk-go-settings] to file:/w/workspace/gexfoundry_device-sdk-go_PR-1125@tmp/config9129383295577846824tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 18:38:37 ---> docker-login.sh 18:38:37 nexus3.edgexfoundry.org:10001 18:38:37 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 18:38:37 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 18:38:37 Configure a credential helper to remove this warning. See 18:38:37 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 18:38:37 18:38:37 Login Succeeded 18:38:37 nexus3.edgexfoundry.org:10002 18:38:37 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 18:38:38 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 18:38:38 Configure a credential helper to remove this warning. See 18:38:38 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 18:38:38 18:38:38 Login Succeeded 18:38:38 nexus3.edgexfoundry.org:10003 18:38:38 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 18:38:38 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 18:38:38 Configure a credential helper to remove this warning. See 18:38:38 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 18:38:38 18:38:38 Login Succeeded 18:38:38 nexus3.edgexfoundry.org:10004 18:38:38 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 18:38:38 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 18:38:38 Configure a credential helper to remove this warning. See 18:38:38 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 18:38:38 18:38:38 Login Succeeded 18:38:38 docker.io 18:38:38 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 18:38:38 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 18:38:38 Configure a credential helper to remove this warning. See 18:38:38 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 18:38:38 18:38:38 Login Succeeded 18:38:38 ---> docker-login.sh ends [Pipeline] } 18:38:38 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 18:38:38 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 18:38:38 ========================================================= 18:38:38 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine] 18:38:38 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 18:38:39 + docker build -t ci-base-image-x86_64 -f example/cmd/device-simple/Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine --build-arg MAKE=echo noop --target=builder . 18:38:39 Sending build context to Docker daemon 9.572MB 18:38:39 Step 1/11 : ARG BASE=golang:1.17-alpine3.15 18:38:39 Step 2/11 : FROM ${BASE} AS builder 18:38:39 1.17-alpine: Pulling from edgex-devops/edgex-golang-base 18:38:39 59bf1c3509f3: Pulling fs layer 18:38:39 666ba61612fd: Pulling fs layer 18:38:39 8ed8ca486205: Pulling fs layer 18:38:39 4fe6c5a15a65: Pulling fs layer 18:38:39 22a0e8bec74d: Pulling fs layer 18:38:39 640e595b4fbd: Pulling fs layer 18:38:39 763cafe07f6e: Pulling fs layer 18:38:39 0c0b528cf693: Pulling fs layer 18:38:39 10935f4eaf8b: Pulling fs layer 18:38:39 0c0b528cf693: Waiting 18:38:39 10935f4eaf8b: Waiting 18:38:39 4fe6c5a15a65: Waiting 18:38:39 22a0e8bec74d: Waiting 18:38:39 640e595b4fbd: Waiting 18:38:39 763cafe07f6e: Waiting 18:38:39 8ed8ca486205: Download complete 18:38:39 666ba61612fd: Download complete 18:38:39 22a0e8bec74d: Download complete 18:38:39 640e595b4fbd: Verifying Checksum 18:38:39 640e595b4fbd: Download complete 18:38:39 59bf1c3509f3: Verifying Checksum 18:38:39 763cafe07f6e: Verifying Checksum 18:38:39 763cafe07f6e: Download complete 18:38:39 0c0b528cf693: Verifying Checksum 18:38:39 0c0b528cf693: Download complete 18:38:39 59bf1c3509f3: Pull complete 18:38:39 666ba61612fd: Pull complete 18:38:40 8ed8ca486205: Pull complete 18:38:40 10935f4eaf8b: Verifying Checksum 18:38:40 10935f4eaf8b: Download complete 18:38:40 4fe6c5a15a65: Verifying Checksum 18:38:40 4fe6c5a15a65: Download complete 18:38:44 4fe6c5a15a65: Pull complete 18:38:44 22a0e8bec74d: Pull complete 18:38:44 640e595b4fbd: Pull complete 18:38:44 763cafe07f6e: Pull complete 18:38:44 0c0b528cf693: Pull complete 18:38:47 10935f4eaf8b: Pull complete 18:38:47 Digest: sha256:fe2da51ced2bed6c5fc1d1038c2fbec5a5bb29cdcacce78977c37c66bfba8387 18:38:47 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine 18:38:47 ---> 99d49a6021b9 18:38:47 Step 3/11 : ARG MAKE=make build 18:38:48 ---> Running in 368cf3e41dbe 18:38:48 Removing intermediate container 368cf3e41dbe 18:38:48 ---> 210bd403990e 18:38:48 Step 4/11 : WORKDIR /device-sdk-go 18:38:48 ---> Running in 40c221575d45 18:38:48 Removing intermediate container 40c221575d45 18:38:48 ---> c44c2889bcd4 18:38:48 Step 5/11 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2020: Intel' 18:38:48 ---> Running in 90e7b7991004 18:38:48 Removing intermediate container 90e7b7991004 18:38:48 ---> e9d937c9f888 18:38:48 Step 6/11 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 18:38:48 ---> Running in de397902b592 18:38:49 Removing intermediate container de397902b592 18:38:49 ---> 97f4f1b1da8f 18:38:49 Step 7/11 : RUN apk add --update --no-cache make git gcc libc-dev zeromq-dev libsodium-dev 18:38:49 ---> Running in 8a5eb42335af 18:38:49 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 18:38:50 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 18:38:50 OK: 221 MiB in 52 packages 18:38:51 Removing intermediate container 8a5eb42335af 18:38:51 ---> 71516726b7a2 18:38:51 Step 8/11 : COPY go.mod vendor* ./ 18:38:51 ---> 2be9b8afd873 18:38:51 Step 9/11 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 18:38:51 ---> Running in 2131e7db437b 18:38:52 Still waiting to schedule task 18:38:52 ‘prd-ubuntu20.04-docker-arm64-4c-16g-11601’ is offline 18:39:06 Removing intermediate container 2131e7db437b 18:39:06 ---> 796bc4e7f246 18:39:06 Step 10/11 : COPY . . 18:39:06 ---> 650d1416f2ab 18:39:06 Step 11/11 : RUN ${MAKE} 18:39:06 ---> Running in 395a38eb00d4 18:39:06 noop 18:39:06 Removing intermediate container 395a38eb00d4 18:39:06 ---> de10fa95d8f6 18:39:06 Successfully built de10fa95d8f6 18:39:06 Successfully tagged ci-base-image-x86_64:latest [Pipeline] isUnix [Pipeline] sh 18:39:06 + docker inspect -f . ci-base-image-x86_64 18:39:06 . [Pipeline] withDockerContainer 18:39:06 prd-ubuntu20.04-docker-8c-8g-11602 does not seem to be running inside a container 18:39:06 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-sdk-go_PR-1125 -v /w/workspace/gexfoundry_device-sdk-go_PR-1125:/w/workspace/gexfoundry_device-sdk-go_PR-1125:rw,z -v /w/workspace/gexfoundry_device-sdk-go_PR-1125@tmp:/w/workspace/gexfoundry_device-sdk-go_PR-1125@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 18:39:07 $ docker top fa0c4989a5836d937f4a79e59d23f012a51d704b24bf6dbc2e5c3fc0a745a9b8 -eo pid,comm [Pipeline] { [Pipeline] sh 18:39:07 + go version 18:39:07 go version go1.17.6 linux/amd64 [Pipeline] } 18:39:07 $ docker stop --time=1 fa0c4989a5836d937f4a79e59d23f012a51d704b24bf6dbc2e5c3fc0a745a9b8 18:39:09 $ docker rm -f fa0c4989a5836d937f4a79e59d23f012a51d704b24bf6dbc2e5c3fc0a745a9b8 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 18:39:09 + docker inspect -f . ci-base-image-x86_64 18:39:09 . [Pipeline] withDockerContainer 18:39:09 prd-ubuntu20.04-docker-8c-8g-11602 does not seem to be running inside a container 18:39:09 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-sdk-go_PR-1125 -v /w/workspace/gexfoundry_device-sdk-go_PR-1125:/w/workspace/gexfoundry_device-sdk-go_PR-1125:rw,z -v /w/workspace/gexfoundry_device-sdk-go_PR-1125@tmp:/w/workspace/gexfoundry_device-sdk-go_PR-1125@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 18:39:10 $ docker top 9338b06937663a84fe21859ffbbe1b6f30b1291504a22c37538d3008b59e0fbd -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 18:39:10 + make test 18:39:10 GO111MODULE=on go test -coverprofile=coverage.out ./... 18:39:10 ? github.com/edgexfoundry/device-sdk-go/v2 [no test files] 18:39:20 ? github.com/edgexfoundry/device-sdk-go/v2/example/cmd/device-simple [no test files] 18:39:20 ? github.com/edgexfoundry/device-sdk-go/v2/example/config [no test files] 18:39:20 ? github.com/edgexfoundry/device-sdk-go/v2/example/driver [no test files] 18:39:21 ok github.com/edgexfoundry/device-sdk-go/v2/internal/application 0.018s coverage: 23.3% of statements 18:39:21 ? github.com/edgexfoundry/device-sdk-go/v2/internal/autodiscovery [no test files] 18:39:21 ok github.com/edgexfoundry/device-sdk-go/v2/internal/autoevent 0.019s coverage: 27.6% of statements 18:39:21 ok github.com/edgexfoundry/device-sdk-go/v2/internal/cache 0.013s coverage: 78.9% of statements 18:39:21 ok github.com/edgexfoundry/device-sdk-go/v2/internal/clients 0.019s coverage: 10.8% of statements 18:39:21 ? github.com/edgexfoundry/device-sdk-go/v2/internal/common [no test files] 18:39:21 ? github.com/edgexfoundry/device-sdk-go/v2/internal/config [no test files] 18:39:21 ? github.com/edgexfoundry/device-sdk-go/v2/internal/container [no test files] 18:39:21 ok github.com/edgexfoundry/device-sdk-go/v2/internal/controller/http 0.012s coverage: 33.2% of statements 18:39:21 ? github.com/edgexfoundry/device-sdk-go/v2/internal/controller/http/correlation [no test files] 18:39:21 ok github.com/edgexfoundry/device-sdk-go/v2/internal/messaging 1.017s coverage: 86.1% of statements 18:39:21 ? github.com/edgexfoundry/device-sdk-go/v2/internal/provision [no test files] 18:39:21 ? github.com/edgexfoundry/device-sdk-go/v2/internal/telemetry [no test files] 18:39:21 ok github.com/edgexfoundry/device-sdk-go/v2/internal/transformer 0.023s coverage: 57.4% of statements 18:39:21 ok github.com/edgexfoundry/device-sdk-go/v2/pkg/models 0.036s coverage: 89.2% of statements 18:39:21 ? github.com/edgexfoundry/device-sdk-go/v2/pkg/models/mocks [no test files] 18:39:21 ok github.com/edgexfoundry/device-sdk-go/v2/pkg/service 0.016s coverage: 4.8% of statements 18:39:21 ? github.com/edgexfoundry/device-sdk-go/v2/pkg/startup [no test files] 18:39:28 GO111MODULE=on go vet ./... 18:39:32 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 18:39:32 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 18:39:32 ./bin/test-attribution-txt.sh [Pipeline] echo 18:39:33 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 18:39:33 $ docker stop --time=1 9338b06937663a84fe21859ffbbe1b6f30b1291504a22c37538d3008b59e0fbd 18:39:35 $ docker rm -f 9338b06937663a84fe21859ffbbe1b6f30b1291504a22c37538d3008b59e0fbd [Pipeline] // withDockerContainer [Pipeline] sh 18:39:35 + sudo chown -R jenkins:jenkins . [Pipeline] stash 18:39:35 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 18:39:37 + sudo chown -R jenkins:jenkins . [Pipeline] sh 18:39:37 + ls -al . 18:39:37 total 296 18:39:37 drwxrwxr-x 11 jenkins jenkins 4096 Apr 8 18:39 . 18:39:37 drwxrwxr-x 4 jenkins jenkins 4096 Apr 8 18:38 .. 18:39:37 -rw-rw-r-- 1 jenkins jenkins 140 Apr 8 18:38 .dockerignore 18:39:37 drwxrwxr-x 8 jenkins jenkins 4096 Apr 8 18:38 .git 18:39:37 drwxrwxr-x 3 jenkins jenkins 4096 Apr 8 18:38 .github 18:39:37 -rw-rw-r-- 1 jenkins jenkins 131 Apr 8 18:38 .gitignore 18:39:37 -rw-rw-r-- 1 jenkins jenkins 42 Apr 8 18:38 .golangci.yml 18:39:37 drwx------ 3 jenkins jenkins 4096 Apr 8 18:38 .semver 18:39:37 -rw-rw-r-- 1 jenkins jenkins 26321 Apr 8 18:38 CHANGELOG.md 18:39:37 -rw-rw-r-- 1 jenkins jenkins 677 Apr 8 18:38 GOVERNANCE.md 18:39:37 -rw-rw-r-- 1 jenkins jenkins 880 Apr 8 18:38 Jenkinsfile 18:39:37 -rw-rw-r-- 1 jenkins jenkins 11341 Apr 8 18:38 LICENSE 18:39:37 -rw-rw-r-- 1 jenkins jenkins 2016 Apr 8 18:38 Makefile 18:39:37 -rw-rw-r-- 1 jenkins jenkins 619 Apr 8 18:38 OWNERS.md 18:39:37 -rw-rw-r-- 1 jenkins jenkins 4881 Apr 8 18:38 README.md 18:39:37 -rw-rw-r-- 1 jenkins jenkins 5 Apr 8 18:38 VERSION 18:39:37 drwxrwxr-x 2 jenkins jenkins 4096 Apr 8 18:38 bin 18:39:37 -rw-r--r-- 1 jenkins jenkins 129001 Apr 8 18:39 coverage.out 18:39:37 drwxrwxr-x 5 jenkins jenkins 4096 Apr 8 18:38 example 18:39:37 -rw-rw-r-- 1 jenkins jenkins 3105 Apr 8 18:38 go.mod 18:39:37 -rw-rw-r-- 1 jenkins jenkins 34435 Apr 8 18:38 go.sum 18:39:37 drwxrwxr-x 15 jenkins jenkins 4096 Apr 8 18:38 internal 18:39:37 drwxrwxr-x 3 jenkins jenkins 4096 Apr 8 18:38 openapi 18:39:37 drwxrwxr-x 5 jenkins jenkins 4096 Apr 8 18:38 pkg 18:39:37 drwxrwxr-x 4 jenkins jenkins 4096 Apr 8 18:38 snap 18:39:37 -rw-rw-r-- 1 jenkins jenkins 222 Apr 8 18:38 version.go [Pipeline] isUnix [Pipeline] sh 18:39:37 + docker build -t device-sdk-simple -f example/cmd/device-simple/Dockerfile --build-arg BASE=ci-base-image-x86_64 --build-arg MAKE=make build --build-arg ARCH=amd64 --label git_sha=da52579f54110f8d2333392ff37538d74be012fa --label arch=amd64 --label version=0.0.0 . 18:39:37 Sending build context to Docker daemon 9.701MB 18:39:37 Step 1/25 : ARG BASE=golang:1.17-alpine3.15 18:39:37 Step 2/25 : FROM ${BASE} AS builder 18:39:37 ---> de10fa95d8f6 18:39:37 Step 3/25 : ARG MAKE=make build 18:39:38 ---> Running in b546ade75ef0 18:39:38 Removing intermediate container b546ade75ef0 18:39:38 ---> cd202d779e13 18:39:38 Step 4/25 : WORKDIR /device-sdk-go 18:39:38 ---> Running in f46b471a7471 18:39:38 Removing intermediate container f46b471a7471 18:39:38 ---> 9ce714074bb4 18:39:38 Step 5/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2020: Intel' 18:39:38 ---> Running in 309bc46e6975 18:39:38 Removing intermediate container 309bc46e6975 18:39:38 ---> 9aeed3404980 18:39:38 Step 6/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 18:39:38 ---> Running in 5f0c6299bf8a 18:39:38 Removing intermediate container 5f0c6299bf8a 18:39:38 ---> 5de8e8e111fa 18:39:38 Step 7/25 : RUN apk add --update --no-cache make git gcc libc-dev zeromq-dev libsodium-dev 18:39:38 ---> Running in 64a9aef58fe0 18:39:39 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 18:39:40 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 18:39:40 OK: 221 MiB in 52 packages 18:39:40 Removing intermediate container 64a9aef58fe0 18:39:40 ---> c42fcca38d3e 18:39:40 Step 8/25 : COPY go.mod vendor* ./ 18:39:40 ---> 3c9f38fe5c18 18:39:40 Step 9/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 18:39:40 ---> Running in e7edced8d81e 18:39:41 Removing intermediate container e7edced8d81e 18:39:41 ---> 7f57e77957e1 18:39:41 Step 10/25 : COPY . . 18:39:42 ---> 99337610a8ff 18:39:42 Step 11/25 : RUN ${MAKE} 18:39:42 ---> Running in 99a731c56cc2 18:39:42 CGO_ENABLED=1 GO111MODULE=on go build -ldflags "-linkmode=external -X github.com/edgexfoundry/device-sdk-go/v2.Version=0.0.0" -trimpath -mod=readonly -buildmode=pie -o example/cmd/device-simple/device-simple ./example/cmd/device-simple 18:40:00 CGO_ENABLED=1 GO111MODULE=on go install -tags=safe 18:40:00 Removing intermediate container 99a731c56cc2 18:40:00 ---> a00362ba577e 18:40:00 Step 12/25 : FROM alpine:3.14 18:40:01 3.14: Pulling from library/alpine 18:40:01 8663204ce13b: Pulling fs layer 18:40:01 8663204ce13b: Verifying Checksum 18:40:01 8663204ce13b: Download complete 18:40:01 8663204ce13b: Pull complete 18:40:01 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 18:40:01 Status: Downloaded newer image for alpine:3.14 18:40:01 ---> e04c818066af 18:40:01 Step 13/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2020: Intel' 18:40:02 ---> Running in 87c21d65ca25 18:40:02 Removing intermediate container 87c21d65ca25 18:40:02 ---> e62e5782ac1a 18:40:02 Step 14/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 18:40:02 ---> Running in 68ea79b66514 18:40:02 Removing intermediate container 68ea79b66514 18:40:02 ---> 760c1c34e658 18:40:02 Step 15/25 : RUN apk add --update --no-cache zeromq 18:40:02 ---> Running in 082c5feab245 18:40:03 fetch https://nl.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz 18:40:04 fetch https://nl.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz 18:40:04 (1/5) Installing libgcc (10.3.1_git20210424-r2) 18:40:04 (2/5) Installing libsodium (1.0.18-r0) 18:40:04 (3/5) Installing libstdc++ (10.3.1_git20210424-r2) 18:40:04 (4/5) Installing libzmq (4.3.4-r0) 18:40:04 (5/5) Installing zeromq (4.3.4-r0) 18:40:04 Executing busybox-1.33.1-r7.trigger 18:40:04 OK: 8 MiB in 19 packages 18:40:09 Removing intermediate container 082c5feab245 18:40:09 ---> af350b66c9f4 18:40:09 Step 16/25 : WORKDIR / 18:40:09 ---> Running in ff2100e3422b 18:40:13 Removing intermediate container ff2100e3422b 18:40:13 ---> c75e9f6ffe33 18:40:13 Step 17/25 : COPY --from=builder /device-sdk-go/example/cmd/device-simple/Attribution.txt /Attribution.txt 18:40:13 ---> 3b9bb63d2f04 18:40:13 Step 18/25 : COPY --from=builder /device-sdk-go/example/cmd/device-simple/device-simple /device-simple 18:40:14 ---> c9b74e92de7a 18:40:14 Step 19/25 : COPY --from=builder /device-sdk-go/example/cmd/device-simple/res/ /res 18:40:14 ---> bfef03d8d4af 18:40:14 Step 20/25 : EXPOSE 59999 18:40:14 ---> Running in c86e6bdd0e84 18:40:14 Removing intermediate container c86e6bdd0e84 18:40:14 ---> e497e2a13b5f 18:40:14 Step 21/25 : ENTRYPOINT ["/device-simple"] 18:40:14 ---> Running in 29b77bc82e23 18:40:14 Removing intermediate container 29b77bc82e23 18:40:14 ---> 91a8e5c3ae7b 18:40:14 Step 22/25 : CMD ["-cp=consul.http://edgex-core-consul:8500", "--registry", "--confdir=/res"] 18:40:14 ---> Running in 2ecd2ed724f1 18:40:14 Removing intermediate container 2ecd2ed724f1 18:40:14 ---> 8213c1010f3e 18:40:14 Step 23/25 : LABEL arch=amd64 18:40:14 ---> Running in e1218991176e 18:40:14 Removing intermediate container e1218991176e 18:40:14 ---> ccbb9228ac70 18:40:14 Step 24/25 : LABEL git_sha=da52579f54110f8d2333392ff37538d74be012fa 18:40:14 ---> Running in 7d1c16ebfafe 18:40:15 Removing intermediate container 7d1c16ebfafe 18:40:15 ---> cc3c04b7e8c2 18:40:15 Step 25/25 : LABEL version=0.0.0 18:40:15 ---> Running in c0b17fe8616c 18:40:15 Removing intermediate container c0b17fe8616c 18:40:15 ---> b4cf086fea9b 18:40:15 [Warning] One or more build-args [ARCH] were not consumed 18:40:15 Successfully built b4cf086fea9b 18:40:15 Successfully tagged device-sdk-simple:latest [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] sh 18:40:15 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 18:40:15 18:40:15 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] sh 18:40:16 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 18:40:16 latest: Pulling from edgex-lftools-log-publisher 18:40:16 5eb5b503b376: Pulling fs layer 18:40:16 5c69ac0246d0: Pulling fs layer 18:40:16 ec43610c2a17: Pulling fs layer 18:40:16 3a2ae6a8a46f: Pulling fs layer 18:40:16 33b1e0a273af: Pulling fs layer 18:40:16 5d3b04190fa2: Pulling fs layer 18:40:16 2f39f015ded8: Pulling fs layer 18:40:16 3a2ae6a8a46f: Waiting 18:40:16 33b1e0a273af: Waiting 18:40:16 5d3b04190fa2: Waiting 18:40:16 2f39f015ded8: Waiting 18:40:16 5c69ac0246d0: Verifying Checksum 18:40:16 5c69ac0246d0: Download complete 18:40:16 3a2ae6a8a46f: Verifying Checksum 18:40:16 3a2ae6a8a46f: Download complete 18:40:16 33b1e0a273af: Verifying Checksum 18:40:16 33b1e0a273af: Download complete 18:40:16 5d3b04190fa2: Verifying Checksum 18:40:16 5d3b04190fa2: Download complete 18:40:16 ec43610c2a17: Verifying Checksum 18:40:16 ec43610c2a17: Download complete 18:40:17 5eb5b503b376: Download complete 18:40:18 5eb5b503b376: Pull complete 18:40:18 2f39f015ded8: Download complete 18:40:18 5c69ac0246d0: Pull complete 18:40:19 ec43610c2a17: Pull complete 18:40:19 3a2ae6a8a46f: Pull complete 18:40:19 33b1e0a273af: Pull complete 18:40:19 5d3b04190fa2: Pull complete 18:40:23 2f39f015ded8: Pull complete 18:40:23 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 18:40:23 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 18:40:23 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] withDockerContainer 18:40:23 prd-ubuntu20.04-docker-8c-8g-11602 does not seem to be running inside a container 18:40:24 $ 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-sdk-go_PR-1125 -v /w/workspace/gexfoundry_device-sdk-go_PR-1125:/w/workspace/gexfoundry_device-sdk-go_PR-1125:rw,z -v /w/workspace/gexfoundry_device-sdk-go_PR-1125@tmp:/w/workspace/gexfoundry_device-sdk-go_PR-1125@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 18:40:25 $ docker top 08889475110d206b188e93363b93dd055d18b212d6b19b8b1ba1430816500c8e -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 18:40:26 ---> job-cost.sh 18:40:26 lf-activate-venv: SKIPPING 18:40:26 INFO: No Stack... 18:40:26 Running on prd-ubuntu20.04-docker-arm64-4c-16g-11604 in /w/workspace/gexfoundry_device-sdk-go_PR-1125 [Pipeline] { [Pipeline] ws 18:40:26 Running in /w/workspace/device-sdk-go/1 [Pipeline] { [Pipeline] checkout 18:40:26 INFO: Retrieving Pricing Info for: v3-standard-8 18:40:26 The recommended git tool is: git 18:40:27 INFO: Archiving Costs [Pipeline] sh 18:40:27 + cat /w/workspace/gexfoundry_device-sdk-go_PR-1125/archives/cost.csv 18:40:27 + cut -d, -f6 [Pipeline] lock 18:40:27 Trying to acquire lock on [jenkins-edgexfoundry-device-sdk-go-PR-1125-1-stack-cost] 18:40:27 Resource [jenkins-edgexfoundry-device-sdk-go-PR-1125-1-stack-cost] did not exist. Created. 18:40:27 Lock acquired on [jenkins-edgexfoundry-device-sdk-go-PR-1125-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 18:40:27 + echo total: 0.2199999988079071 [Pipeline] stash 18:40:27 Stashed 1 file(s) [Pipeline] } 18:40:27 Lock released on resource [jenkins-edgexfoundry-device-sdk-go-PR-1125-1-stack-cost] [Pipeline] // lock [Pipeline] } 18:40:28 $ docker stop --time=1 08889475110d206b188e93363b93dd055d18b212d6b19b8b1ba1430816500c8e 18:40:29 $ docker rm -f 08889475110d206b188e93363b93dd055d18b212d6b19b8b1ba1430816500c8e [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 18:40:33 using credential edgex-jenkins-ssh 18:40:33 Cloning the remote Git repository 18:40:33 Cloning repository git@github.com:edgexfoundry/device-sdk-go.git 18:40:33 > git init /w/workspace/device-sdk-go/1 # timeout=10 18:40:33 Fetching upstream changes from git@github.com:edgexfoundry/device-sdk-go.git 18:40:33 > git --version # timeout=10 18:40:33 > git --version # 'git version 2.25.1' 18:40:33 using GIT_SSH to set credentials SSH Credentials for GitHub 18:40:33 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-sdk-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 18:40:36 Merging remotes/origin/main commit 71f09d1ab0705056f5c82f36890c48cdd3d80cce into PR head commit da52579f54110f8d2333392ff37538d74be012fa 18:40:35 > git config remote.origin.url git@github.com:edgexfoundry/device-sdk-go.git # timeout=10 18:40:35 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 18:40:35 > git config remote.origin.url git@github.com:edgexfoundry/device-sdk-go.git # timeout=10 18:40:36 Fetching upstream changes from git@github.com:edgexfoundry/device-sdk-go.git 18:40:36 using GIT_SSH to set credentials SSH Credentials for GitHub 18:40:36 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-sdk-go.git +refs/pull/1125/head:refs/remotes/origin/PR-1125 +refs/heads/main:refs/remotes/origin/main # timeout=10 18:40:36 > git config core.sparsecheckout # timeout=10 18:40:36 > git checkout -f da52579f54110f8d2333392ff37538d74be012fa # timeout=10 18:40:37 Merge succeeded, producing da52579f54110f8d2333392ff37538d74be012fa 18:40:37 Checking out Revision da52579f54110f8d2333392ff37538d74be012fa (PR-1125) 18:40:36 > git remote # timeout=10 18:40:36 > git config --get remote.origin.url # timeout=10 18:40:36 using GIT_SSH to set credentials SSH Credentials for GitHub 18:40:36 > git merge 71f09d1ab0705056f5c82f36890c48cdd3d80cce # timeout=10 18:40:36 > git rev-parse HEAD^{commit} # timeout=10 18:40:37 > git config core.sparsecheckout # timeout=10 18:40:37 > git checkout -f da52579f54110f8d2333392ff37538d74be012fa # timeout=10 18:40:41 Commit message: "feat: enable security hardening" 18:40:41 > git --version # timeout=10 18:40:41 > git --version # 'git version 2.25.1' 18:40:41 fatal: bad object c72b16708d6eed9a08be464a432ce22db7d90667 [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 18:40:42 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 18:40:42 % Total % Received % Xferd Average Speed Time Time Time Current 18:40:42 Dload Upload Total Spent Left Speed 18:40:42 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 11843 100 11843 0 0 44355 0 --:--:-- --:--:-- --:--:-- 44522 [Pipeline] sh 18:40:43 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 18:40:43 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 18:40:43 + sudo tee /etc/docker/daemon.new 18:40:43 { 18:40:43 "registry-mirrors": [ 18:40:43 "https://nexus3.edgexfoundry.org:10001" 18:40:43 ], 18:40:43 "bip": "10.250.0.254/24", 18:40:43 "hosts": [ 18:40:43 "tcp://0.0.0.0:5555", 18:40:43 "unix:///var/run/docker.sock" 18:40:43 ], 18:40:43 "mtu": 1458, 18:40:43 "selinux-enabled": true, 18:40:43 "seccomp-profile": "/etc/docker/seccomp.json" 18:40:43 } [Pipeline] sh 18:40:44 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 18:40:44 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 18:41:02 provisioning config files... 18:41:02 copy managed file [device-sdk-go-settings] to file:/w/workspace/device-sdk-go/1@tmp/config8027310522542695653tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 18:41:03 ---> docker-login.sh 18:41:03 nexus3.edgexfoundry.org:10001 18:41:04 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 18:41:04 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 18:41:04 Configure a credential helper to remove this warning. See 18:41:04 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 18:41:04 18:41:04 Login Succeeded 18:41:04 nexus3.edgexfoundry.org:10002 18:41:04 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 18:41:04 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 18:41:04 Configure a credential helper to remove this warning. See 18:41:04 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 18:41:04 18:41:04 Login Succeeded 18:41:04 nexus3.edgexfoundry.org:10003 18:41:05 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 18:41:05 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 18:41:05 Configure a credential helper to remove this warning. See 18:41:05 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 18:41:05 18:41:05 Login Succeeded 18:41:05 nexus3.edgexfoundry.org:10004 18:41:05 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 18:41:05 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 18:41:05 Configure a credential helper to remove this warning. See 18:41:05 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 18:41:05 18:41:05 Login Succeeded 18:41:05 docker.io 18:41:06 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 18:41:06 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 18:41:06 Configure a credential helper to remove this warning. See 18:41:06 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 18:41:06 18:41:06 Login Succeeded 18:41:06 ---> docker-login.sh ends [Pipeline] } 18:41:06 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 18:41:07 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 18:41:07 ========================================================= 18:41:07 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine] 18:41:07 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 18:41:07 + docker build -t ci-base-image-arm64 -f example/cmd/device-simple/Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine --build-arg MAKE=echo noop --target=builder . 18:41:08 Sending build context to Docker daemon 5.174MB 18:41:08 Step 1/11 : ARG BASE=golang:1.17-alpine3.15 18:41:08 Step 2/11 : FROM ${BASE} AS builder 18:41:08 1.17-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 18:41:08 9b3977197b4f: Pulling fs layer 18:41:08 1a89e8eeedd5: Pulling fs layer 18:41:08 94645a83ff95: Pulling fs layer 18:41:08 3f3a8bcf1eab: Pulling fs layer 18:41:08 0c92f367c5e7: Pulling fs layer 18:41:08 f7c0051592d6: Pulling fs layer 18:41:08 a227ed2f7395: Pulling fs layer 18:41:08 7b1c46037f91: Pulling fs layer 18:41:08 f7c0051592d6: Waiting 18:41:08 a227ed2f7395: Waiting 18:41:08 7b1c46037f91: Waiting 18:41:08 3f3a8bcf1eab: Waiting 18:41:08 0c92f367c5e7: Waiting 18:41:08 94645a83ff95: Verifying Checksum 18:41:08 94645a83ff95: Download complete 18:41:08 1a89e8eeedd5: Verifying Checksum 18:41:08 1a89e8eeedd5: Download complete 18:41:08 0c92f367c5e7: Verifying Checksum 18:41:08 0c92f367c5e7: Download complete 18:41:08 f7c0051592d6: Verifying Checksum 18:41:08 f7c0051592d6: Download complete 18:41:08 9b3977197b4f: Download complete 18:41:08 a227ed2f7395: Verifying Checksum 18:41:08 a227ed2f7395: Download complete 18:41:09 9b3977197b4f: Pull complete 18:41:09 1a89e8eeedd5: Pull complete 18:41:09 94645a83ff95: Pull complete 18:41:10 7b1c46037f91: Verifying Checksum 18:41:10 7b1c46037f91: Download complete 18:41:10 3f3a8bcf1eab: Verifying Checksum 18:41:10 3f3a8bcf1eab: Download complete 18:41:23 3f3a8bcf1eab: Pull complete 18:41:23 0c92f367c5e7: Pull complete 18:41:23 f7c0051592d6: Pull complete 18:41:23 a227ed2f7395: Pull complete 18:41:30 7b1c46037f91: Pull complete 18:41:30 Digest: sha256:72afd471f6932efc3b14a707e53dab7ff98911016b282aefa83be7c085db88fe 18:41:30 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine 18:41:30 ---> f79e39bc4007 18:41:30 Step 3/11 : ARG MAKE=make build 18:41:30 ---> Running in 7297ea092698 18:41:30 Removing intermediate container 7297ea092698 18:41:30 ---> 2bde23b03a6e 18:41:30 Step 4/11 : WORKDIR /device-sdk-go 18:41:30 ---> Running in 5df1940681ab 18:41:31 Removing intermediate container 5df1940681ab 18:41:31 ---> 45f1468279f6 18:41:31 Step 5/11 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2020: Intel' 18:41:31 ---> Running in fee75cfeac27 18:41:31 Removing intermediate container fee75cfeac27 18:41:31 ---> 575c0c8494ca 18:41:31 Step 6/11 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 18:41:31 ---> Running in 7e1c1ab0e405 18:41:33 Removing intermediate container 7e1c1ab0e405 18:41:33 ---> 2b7357a5e85b 18:41:33 Step 7/11 : RUN apk add --update --no-cache make git gcc libc-dev zeromq-dev libsodium-dev 18:41:33 ---> Running in f0408ec033e2 18:41:34 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 18:41:35 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 18:41:36 OK: 220 MiB in 52 packages 18:41:36 Removing intermediate container f0408ec033e2 18:41:36 ---> 0e08428217fb 18:41:36 Step 8/11 : COPY go.mod vendor* ./ 18:41:37 ---> 2ce7bb59bd1c 18:41:37 Step 9/11 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 18:41:37 ---> Running in 59416bea9ace 18:42:24 Removing intermediate container 59416bea9ace 18:42:24 ---> 459c5e627ec3 18:42:24 Step 10/11 : COPY . . 18:42:24 ---> 567b60312c3b 18:42:24 Step 11/11 : RUN ${MAKE} 18:42:24 ---> Running in af0b4e58e6c0 18:42:24 noop 18:42:25 Removing intermediate container af0b4e58e6c0 18:42:25 ---> 86bf84ab6dac 18:42:25 Successfully built 86bf84ab6dac 18:42:25 Successfully tagged ci-base-image-arm64:latest [Pipeline] isUnix [Pipeline] sh 18:42:26 + docker inspect -f . ci-base-image-arm64 18:42:26 . [Pipeline] withDockerContainer 18:42:26 prd-ubuntu20.04-docker-arm64-4c-16g-11604 does not seem to be running inside a container 18:42:26 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-sdk-go/1 -v /w/workspace/device-sdk-go/1:/w/workspace/device-sdk-go/1:rw,z -v /w/workspace/device-sdk-go/1@tmp:/w/workspace/device-sdk-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 18:42:27 $ docker top 2f483ea8ca17f3a38c72441e2839ef653a46fff25efb1e6670b5d8473853a448 -eo pid,comm [Pipeline] { [Pipeline] sh 18:42:28 + go version 18:42:28 go version go1.17.6 linux/arm64 [Pipeline] } 18:42:28 $ docker stop --time=1 2f483ea8ca17f3a38c72441e2839ef653a46fff25efb1e6670b5d8473853a448 18:42:30 $ docker rm -f 2f483ea8ca17f3a38c72441e2839ef653a46fff25efb1e6670b5d8473853a448 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 18:42:31 + docker inspect -f . ci-base-image-arm64 18:42:31 . [Pipeline] withDockerContainer 18:42:31 prd-ubuntu20.04-docker-arm64-4c-16g-11604 does not seem to be running inside a container 18:42:31 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-sdk-go/1 -v /w/workspace/device-sdk-go/1:/w/workspace/device-sdk-go/1:rw,z -v /w/workspace/device-sdk-go/1@tmp:/w/workspace/device-sdk-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 18:42:32 $ docker top b6fe04e3f78666e2054fbca1049b126949a88d04124c7cc7c321c77a9ce9bda1 -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 18:42:33 + make test 18:42:33 GO111MODULE=on go test -coverprofile=coverage.out ./... 18:42:35 ? github.com/edgexfoundry/device-sdk-go/v2 [no test files] 18:43:57 ? github.com/edgexfoundry/device-sdk-go/v2/example/cmd/device-simple [no test files] 18:43:57 ? github.com/edgexfoundry/device-sdk-go/v2/example/config [no test files] 18:43:57 ? github.com/edgexfoundry/device-sdk-go/v2/example/driver [no test files] 18:43:57 ok github.com/edgexfoundry/device-sdk-go/v2/internal/application 0.105s coverage: 23.3% of statements 18:43:57 ? github.com/edgexfoundry/device-sdk-go/v2/internal/autodiscovery [no test files] 18:43:57 ok github.com/edgexfoundry/device-sdk-go/v2/internal/autoevent 0.096s coverage: 27.6% of statements 18:43:57 ok github.com/edgexfoundry/device-sdk-go/v2/internal/cache 0.076s coverage: 78.9% of statements 18:43:59 ok github.com/edgexfoundry/device-sdk-go/v2/internal/clients 0.073s coverage: 10.8% of statements 18:43:59 ? github.com/edgexfoundry/device-sdk-go/v2/internal/common [no test files] 18:43:59 ? github.com/edgexfoundry/device-sdk-go/v2/internal/config [no test files] 18:43:59 ? github.com/edgexfoundry/device-sdk-go/v2/internal/container [no test files] 18:44:01 ok github.com/edgexfoundry/device-sdk-go/v2/internal/controller/http 0.124s coverage: 33.2% of statements 18:44:01 ? github.com/edgexfoundry/device-sdk-go/v2/internal/controller/http/correlation [no test files] 18:44:02 ok github.com/edgexfoundry/device-sdk-go/v2/internal/messaging 1.110s coverage: 86.1% of statements 18:44:02 ? github.com/edgexfoundry/device-sdk-go/v2/internal/provision [no test files] 18:44:02 ? github.com/edgexfoundry/device-sdk-go/v2/internal/telemetry [no test files] 18:44:02 ok github.com/edgexfoundry/device-sdk-go/v2/internal/transformer 0.124s coverage: 57.4% of statements 18:44:02 ok github.com/edgexfoundry/device-sdk-go/v2/pkg/models 0.212s coverage: 89.2% of statements 18:44:02 ? github.com/edgexfoundry/device-sdk-go/v2/pkg/models/mocks [no test files] 18:44:06 ok github.com/edgexfoundry/device-sdk-go/v2/pkg/service 0.061s coverage: 4.8% of statements 18:44:06 ? github.com/edgexfoundry/device-sdk-go/v2/pkg/startup [no test files] 18:44:06 WARNING: Linting skipped (not on x86_64 or linter not installed) 18:44:06 GO111MODULE=on go vet ./... 18:44:33 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 18:44:33 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 18:44:33 ./bin/test-attribution-txt.sh [Pipeline] echo 18:44:35 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 18:44:35 $ docker stop --time=1 b6fe04e3f78666e2054fbca1049b126949a88d04124c7cc7c321c77a9ce9bda1 18:44:37 $ docker rm -f b6fe04e3f78666e2054fbca1049b126949a88d04124c7cc7c321c77a9ce9bda1 [Pipeline] // withDockerContainer [Pipeline] sh 18:44:38 + sudo chown -R jenkins:jenkins . [Pipeline] stash 18:44:38 Warning: overwriting stash ‘coverage-report’ 18:44:38 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 18:44:39 + sudo chown -R jenkins:jenkins . [Pipeline] sh 18:44:39 + ls -al . 18:44:39 total 292 18:44:39 drwxrwxr-x 10 jenkins jenkins 4096 Apr 8 18:44 . 18:44:39 drwxrwxr-x 4 jenkins jenkins 4096 Apr 8 18:40 .. 18:44:39 -rw-rw-r-- 1 jenkins jenkins 140 Apr 8 18:40 .dockerignore 18:44:39 drwxrwxr-x 8 jenkins jenkins 4096 Apr 8 18:40 .git 18:44:39 drwxrwxr-x 3 jenkins jenkins 4096 Apr 8 18:40 .github 18:44:39 -rw-rw-r-- 1 jenkins jenkins 131 Apr 8 18:40 .gitignore 18:44:39 -rw-rw-r-- 1 jenkins jenkins 42 Apr 8 18:40 .golangci.yml 18:44:39 -rw-rw-r-- 1 jenkins jenkins 26321 Apr 8 18:40 CHANGELOG.md 18:44:39 -rw-rw-r-- 1 jenkins jenkins 677 Apr 8 18:40 GOVERNANCE.md 18:44:39 -rw-rw-r-- 1 jenkins jenkins 880 Apr 8 18:40 Jenkinsfile 18:44:39 -rw-rw-r-- 1 jenkins jenkins 11341 Apr 8 18:40 LICENSE 18:44:39 -rw-rw-r-- 1 jenkins jenkins 2016 Apr 8 18:40 Makefile 18:44:39 -rw-rw-r-- 1 jenkins jenkins 619 Apr 8 18:40 OWNERS.md 18:44:39 -rw-rw-r-- 1 jenkins jenkins 4881 Apr 8 18:40 README.md 18:44:39 -rw-rw-r-- 1 jenkins jenkins 5 Apr 8 18:38 VERSION 18:44:39 drwxrwxr-x 2 jenkins jenkins 4096 Apr 8 18:40 bin 18:44:39 -rw-r--r-- 1 jenkins jenkins 129001 Apr 8 18:44 coverage.out 18:44:39 drwxrwxr-x 5 jenkins jenkins 4096 Apr 8 18:40 example 18:44:39 -rw-rw-r-- 1 jenkins jenkins 3105 Apr 8 18:40 go.mod 18:44:39 -rw-rw-r-- 1 jenkins jenkins 34435 Apr 8 18:40 go.sum 18:44:39 drwxrwxr-x 15 jenkins jenkins 4096 Apr 8 18:40 internal 18:44:39 drwxrwxr-x 3 jenkins jenkins 4096 Apr 8 18:40 openapi 18:44:39 drwxrwxr-x 5 jenkins jenkins 4096 Apr 8 18:40 pkg 18:44:39 drwxrwxr-x 4 jenkins jenkins 4096 Apr 8 18:40 snap 18:44:39 -rw-rw-r-- 1 jenkins jenkins 222 Apr 8 18:40 version.go [Pipeline] isUnix [Pipeline] sh 18:44:39 + docker build -t device-sdk-simple-arm64 -f example/cmd/device-simple/Dockerfile --build-arg BASE=ci-base-image-arm64 --build-arg MAKE=make build --build-arg ARCH=arm64 --label git_sha=da52579f54110f8d2333392ff37538d74be012fa --label arch=arm64 --label version=0.0.0 . 18:44:40 Sending build context to Docker daemon 5.303MB 18:44:40 Step 1/25 : ARG BASE=golang:1.17-alpine3.15 18:44:40 Step 2/25 : FROM ${BASE} AS builder 18:44:40 ---> 86bf84ab6dac 18:44:40 Step 3/25 : ARG MAKE=make build 18:44:40 ---> Running in 0a1ff28def1a 18:44:40 Removing intermediate container 0a1ff28def1a 18:44:40 ---> 2928294daa7c 18:44:40 Step 4/25 : WORKDIR /device-sdk-go 18:44:41 ---> Running in 7297461ab891 18:44:41 Removing intermediate container 7297461ab891 18:44:41 ---> 96ebe90586bf 18:44:41 Step 5/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2020: Intel' 18:44:41 ---> Running in 763a37064726 18:44:41 Removing intermediate container 763a37064726 18:44:41 ---> a66f5b1405ec 18:44:41 Step 6/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 18:44:41 ---> Running in 5dd365aa52c6 18:44:43 Removing intermediate container 5dd365aa52c6 18:44:43 ---> dd1fbb498bcf 18:44:43 Step 7/25 : RUN apk add --update --no-cache make git gcc libc-dev zeromq-dev libsodium-dev 18:44:43 ---> Running in c0e9544930d8 18:44:44 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 18:44:45 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 18:44:46 OK: 220 MiB in 52 packages 18:44:47 Removing intermediate container c0e9544930d8 18:44:47 ---> d7036120ad98 18:44:47 Step 8/25 : COPY go.mod vendor* ./ 18:44:47 ---> 2c7d01f466b8 18:44:47 Step 9/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 18:44:47 ---> Running in 2961dc189721 18:44:49 Removing intermediate container 2961dc189721 18:44:49 ---> 16bb533bf613 18:44:49 Step 10/25 : COPY . . 18:44:50 ---> 2fb0291f0576 18:44:50 Step 11/25 : RUN ${MAKE} 18:44:50 ---> Running in 95326365c7bb 18:44:51 CGO_ENABLED=1 GO111MODULE=on go build -ldflags "-linkmode=external -X github.com/edgexfoundry/device-sdk-go/v2.Version=0.0.0" -trimpath -mod=readonly -buildmode=pie -o example/cmd/device-simple/device-simple ./example/cmd/device-simple 18:46:43 CGO_ENABLED=1 GO111MODULE=on go install -tags=safe 18:46:44 Removing intermediate container 95326365c7bb 18:46:44 ---> f9b570a8c9c7 18:46:44 Step 12/25 : FROM alpine:3.14 18:46:44 3.14: Pulling from library/alpine 18:46:45 455c02918c45: Pulling fs layer 18:46:45 455c02918c45: Verifying Checksum 18:46:45 455c02918c45: Download complete 18:46:46 455c02918c45: Pull complete 18:46:46 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 18:46:46 Status: Downloaded newer image for alpine:3.14 18:46:46 ---> ac73e934f311 18:46:46 Step 13/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2020: Intel' 18:46:46 ---> Running in d86f2c6cd80d 18:46:46 Removing intermediate container d86f2c6cd80d 18:46:46 ---> 21c9d5f03937 18:46:46 Step 14/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 18:46:46 ---> Running in b8209c77a27b 18:46:48 Removing intermediate container b8209c77a27b 18:46:48 ---> ffa902e815d3 18:46:48 Step 15/25 : RUN apk add --update --no-cache zeromq 18:46:48 ---> Running in 5fbc0991734d 18:46:49 fetch https://nl.alpinelinux.org/alpine/v3.14/main/aarch64/APKINDEX.tar.gz 18:46:49 fetch https://nl.alpinelinux.org/alpine/v3.14/community/aarch64/APKINDEX.tar.gz 18:46:50 (1/5) Installing libgcc (10.3.1_git20210424-r2) 18:46:50 (2/5) Installing libsodium (1.0.18-r0) 18:46:50 (3/5) Installing libstdc++ (10.3.1_git20210424-r2) 18:46:50 (4/5) Installing libzmq (4.3.4-r0) 18:46:51 (5/5) Installing zeromq (4.3.4-r0) 18:46:51 Executing busybox-1.33.1-r7.trigger 18:46:51 OK: 8 MiB in 19 packages 18:46:52 Removing intermediate container 5fbc0991734d 18:46:52 ---> 6299b765bbc6 18:46:52 Step 16/25 : WORKDIR / 18:46:52 ---> Running in 6fc84dea3f36 18:46:52 Removing intermediate container 6fc84dea3f36 18:46:52 ---> fe384e4f900f 18:46:52 Step 17/25 : COPY --from=builder /device-sdk-go/example/cmd/device-simple/Attribution.txt /Attribution.txt 18:46:53 ---> b9c1b99798b2 18:46:53 Step 18/25 : COPY --from=builder /device-sdk-go/example/cmd/device-simple/device-simple /device-simple 18:46:54 ---> 0d71f27588e0 18:46:54 Step 19/25 : COPY --from=builder /device-sdk-go/example/cmd/device-simple/res/ /res 18:46:55 ---> 90a27ca5225d 18:46:55 Step 20/25 : EXPOSE 59999 18:46:55 ---> Running in a8e27579775d 18:46:55 Removing intermediate container a8e27579775d 18:46:55 ---> 775d1004ffb2 18:46:55 Step 21/25 : ENTRYPOINT ["/device-simple"] 18:46:55 ---> Running in bfccc2033727 18:46:55 Removing intermediate container bfccc2033727 18:46:55 ---> d280474c56f7 18:46:55 Step 22/25 : CMD ["-cp=consul.http://edgex-core-consul:8500", "--registry", "--confdir=/res"] 18:46:55 ---> Running in f10cd7d46a3b 18:46:56 Removing intermediate container f10cd7d46a3b 18:46:56 ---> 437b3ab39bc9 18:46:56 Step 23/25 : LABEL arch=arm64 18:46:56 ---> Running in 9c81ae87ceb2 18:46:56 Removing intermediate container 9c81ae87ceb2 18:46:56 ---> 48008f5b0f98 18:46:56 Step 24/25 : LABEL git_sha=da52579f54110f8d2333392ff37538d74be012fa 18:46:56 ---> Running in d4ff5e00f407 18:46:56 Removing intermediate container d4ff5e00f407 18:46:56 ---> c25ba89ea7fb 18:46:56 Step 25/25 : LABEL version=0.0.0 18:46:57 ---> Running in f407b80c5c98 18:46:57 Removing intermediate container f407b80c5c98 18:46:57 ---> de4a45e44c95 18:46:57 [Warning] One or more build-args [ARCH] were not consumed 18:46:57 Successfully built de4a45e44c95 18:46:57 Successfully tagged device-sdk-simple-arm64:latest [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] sh 18:46:58 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 18:46:58 18:46:58 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] sh 18:46:58 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 18:46:58 arm64: Pulling from edgex-lftools-log-publisher 18:46:58 8998bd30e6a1: Pulling fs layer 18:46:58 04944245beec: Pulling fs layer 18:46:58 699f458cf7ca: Pulling fs layer 18:46:58 765212b225bb: Pulling fs layer 18:46:58 f23df028b6ca: Pulling fs layer 18:46:58 d65c8cfc05b1: Pulling fs layer 18:46:58 2437ff75d9bd: Pulling fs layer 18:46:58 f23df028b6ca: Waiting 18:46:58 d65c8cfc05b1: Waiting 18:46:58 2437ff75d9bd: Waiting 18:46:58 765212b225bb: Waiting 18:46:58 04944245beec: Verifying Checksum 18:46:58 04944245beec: Download complete 18:46:58 765212b225bb: Verifying Checksum 18:46:58 765212b225bb: Download complete 18:46:58 f23df028b6ca: Verifying Checksum 18:46:58 f23df028b6ca: Download complete 18:46:58 d65c8cfc05b1: Download complete 18:46:59 699f458cf7ca: Verifying Checksum 18:46:59 8998bd30e6a1: Verifying Checksum 18:46:59 8998bd30e6a1: Download complete 18:47:01 2437ff75d9bd: Verifying Checksum 18:47:01 2437ff75d9bd: Download complete 18:47:03 8998bd30e6a1: Pull complete 18:47:04 04944245beec: Pull complete 18:47:05 699f458cf7ca: Pull complete 18:47:05 765212b225bb: Pull complete 18:47:06 f23df028b6ca: Pull complete 18:47:06 d65c8cfc05b1: Pull complete 18:47:21 2437ff75d9bd: Pull complete 18:47:21 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 18:47:21 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 18:47:21 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] withDockerContainer 18:47:22 prd-ubuntu20.04-docker-arm64-4c-16g-11604 does not seem to be running inside a container 18:47:22 $ 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-sdk-go/1 -v /w/workspace/device-sdk-go/1:/w/workspace/device-sdk-go/1:rw,z -v /w/workspace/device-sdk-go/1@tmp:/w/workspace/device-sdk-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 18:47:24 $ docker top c821704e84b7cb3a9801d6edc25dcfa5ba99f10332268bb923c1221e8e185ecd -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 18:47:25 ---> job-cost.sh 18:47:25 lf-activate-venv: SKIPPING 18:47:25 INFO: No Stack... 18:47:26 INFO: Retrieving Pricing Info for: v3-standard-4 18:47:26 INFO: Archiving Costs [Pipeline] sh 18:47:27 + + catcut /w/workspace/device-sdk-go/1/archives/cost.csv -d, 18:47:27 -f6 [Pipeline] lock 18:47:27 Trying to acquire lock on [jenkins-edgexfoundry-device-sdk-go-PR-1125-1-stack-cost] 18:47:27 Resource [jenkins-edgexfoundry-device-sdk-go-PR-1125-1-stack-cost] did not exist. Created. 18:47:27 Lock acquired on [jenkins-edgexfoundry-device-sdk-go-PR-1125-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 18:47:28 /w/workspace/device-sdk-go/1@tmp/durable-9a9ebe1c/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 18:47:29 + echo total: 0.10999999940395355 [Pipeline] stash 18:47:29 Warning: overwriting stash ‘stack-cost’ 18:47:29 Stashed 1 file(s) [Pipeline] } 18:47:29 Lock released on resource [jenkins-edgexfoundry-device-sdk-go-PR-1125-1-stack-cost] [Pipeline] // lock [Pipeline] } 18:47:29 $ docker stop --time=1 c821704e84b7cb3a9801d6edc25dcfa5ba99f10332268bb923c1221e8e185ecd 18:47:30 $ docker rm -f c821704e84b7cb3a9801d6edc25dcfa5ba99f10332268bb923c1221e8e185ecd [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 18:47:31 provisioning config files... 18:47:31 copy managed file [device-sdk-go-codecov-token] to file:/w/workspace/gexfoundry_device-sdk-go_PR-1125@tmp/config2072754001440228800tmp [Pipeline] { [Pipeline] sh 18:47:32 + set +x 18:47:32 + curl -s https://codecov.io/bash 18:47:32 + bash -s -- 18:47:32 18:47:32 _____ _ 18:47:32 / ____| | | 18:47:32 | | ___ __| | ___ ___ _____ __ 18:47:32 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 18:47:32 | |___| (_) | (_| | __/ (_| (_) \ V / 18:47:32 \_____\___/ \__,_|\___|\___\___/ \_/ 18:47:32 Bash-1.0.6 18:47:32 18:47:32 18:47:32 ==> git version 2.25.1 found 18:47: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 18:47:32 Release-Date: 2020-01-08 18:47: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 18:47:32 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 18:47:32 ==> Jenkins CI detected. 18:47:32 current dir:  /w/workspace/gexfoundry_device-sdk-go_PR-1125 18:47:32 project root: . 18:47:32 --> token set from env 18:47:32 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 18:47:32 ==> Running gcov in . (disable via -X gcov) 18:47:32 ==> Python coveragepy not found 18:47:32 ==> Searching for coverage reports in: 18:47:32 + . 18:47:32 -> Found 1 reports 18:47:32 ==> Detecting git/mercurial file structure 18:47:32 ==> Reading reports 18:47:32 + ./coverage.out bytes=129001 18:47:32 ==> Appending adjustments 18:47:32 https://docs.codecov.io/docs/fixing-reports 18:47:32 + Found adjustments 18:47:32 ==> Gzipping contents 18:47:32 16K /tmp/codecov.fCBpqW.gz 18:47:32 ==> Uploading reports 18:47:32 url: https://codecov.io 18:47:32 query: branch=PR-1125&commit=da52579f54110f8d2333392ff37538d74be012fa&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-sdk-go%2Fjob%2FPR-1125%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-sdk-go&service=jenkins&flags=&pr=1125&job=&cmd_args= 18:47:32 -> Pinging Codecov 18:47:32 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=6fc62cd9-fce6-47f0-85f4-af589338491a&branch=PR-1125&commit=da52579f54110f8d2333392ff37538d74be012fa&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-sdk-go%2Fjob%2FPR-1125%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-sdk-go&service=jenkins&flags=&pr=1125&job=&cmd_args= 18:47:32 -> Uploading to 18:47:32 https://storage.googleapis.com/codecov/v4/raw/2022-04-08/7E55EF52A471D76F132DFD9A03CDDE97/da52579f54110f8d2333392ff37538d74be012fa/80cae69f-51a9-48da-86ef-8b6ef6bdb27d.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20220408%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20220408T184732Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=9f4cb96448c5e5dd0ff0f8ff9261a4c9af45d3e3401297bf14d937fdda6e6035 18:47:32 % Total % Received % Xferd Average Speed Time Time Time Current 18:47:32 Dload Upload Total Spent Left Speed 18:47:33 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 16212 0 0 100 16212 0 63826 --:--:-- --:--:-- --:--:-- 64079 18:47:33 -> Reports have been successfully queued for processing at https://codecov.io/github/edgexfoundry/device-sdk-go/commit/da52579f54110f8d2333392ff37538d74be012fa [Pipeline] } 18:47:33 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 18:47:34 + [ -d /w/workspace/gexfoundry_device-sdk-go_PR-1125/archives ] 18:47:34 + ls -al /w/workspace/gexfoundry_device-sdk-go_PR-1125/archives 18:47:34 total 16 18:47:34 drwxr-xr-x 3 root root 4096 Apr 8 18:40 . 18:47:34 drwxrwxr-x 12 jenkins jenkins 4096 Apr 8 18:40 .. 18:47:34 drwxr-xr-x 2 root root 4096 Apr 8 18:40 cost 18:47:34 -rw-r--r-- 1 root root 85 Apr 8 18:40 cost.csv 18:47:34 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-sdk-go_PR-1125/archives 18:47:34 + ls -al /w/workspace/gexfoundry_device-sdk-go_PR-1125/archives 18:47:34 total 16 18:47:34 drwxr-xr-x 3 jenkins jenkins 4096 Apr 8 18:40 . 18:47:34 drwxrwxr-x 12 jenkins jenkins 4096 Apr 8 18:40 .. 18:47:34 drwxr-xr-x 2 jenkins jenkins 4096 Apr 8 18:40 cost 18:47:34 -rw-r--r-- 1 jenkins jenkins 85 Apr 8 18:40 cost.csv [Pipeline] libraryResource [Pipeline] sh 18:47:35 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 18:47:36 ---> package-listing.sh 18:47:36 ++ facter osfamily 18:47:36 ++ tr '[:upper:]' '[:lower:]' 18:47:36 + OS_FAMILY=debian 18:47:36 + workspace=/w/workspace/gexfoundry_device-sdk-go_PR-1125 18:47:36 + START_PACKAGES=/tmp/packages_start.txt 18:47:36 + END_PACKAGES=/tmp/packages_end.txt 18:47:36 + DIFF_PACKAGES=/tmp/packages_diff.txt 18:47:36 + PACKAGES=/tmp/packages_start.txt 18:47:36 + '[' /w/workspace/gexfoundry_device-sdk-go_PR-1125 ']' 18:47:36 + PACKAGES=/tmp/packages_end.txt 18:47:36 + case "${OS_FAMILY}" in 18:47:36 + dpkg -l 18:47:36 + grep '^ii' 18:47:36 + '[' -f /tmp/packages_start.txt ']' 18:47:36 + '[' -f /tmp/packages_end.txt ']' 18:47:36 + diff /tmp/packages_start.txt /tmp/packages_end.txt 18:47:36 + '[' /w/workspace/gexfoundry_device-sdk-go_PR-1125 ']' 18:47:36 + mkdir -p /w/workspace/gexfoundry_device-sdk-go_PR-1125/archives/ 18:47:36 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/gexfoundry_device-sdk-go_PR-1125/archives/ [Pipeline] echo 18:47:36 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-sdk-go_PR-1125/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 18:47:36 + facter operatingsystem [Pipeline] isUnix [Pipeline] sh 18:47:37 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 18:47:37 . [Pipeline] withDockerContainer 18:47:37 prd-ubuntu20.04-docker-8c-8g-11602 does not seem to be running inside a container 18:47:37 $ 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-sdk-go_PR-1125/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-sdk-go_PR-1125 -v /w/workspace/gexfoundry_device-sdk-go_PR-1125:/w/workspace/gexfoundry_device-sdk-go_PR-1125:rw,z -v /w/workspace/gexfoundry_device-sdk-go_PR-1125@tmp:/w/workspace/gexfoundry_device-sdk-go_PR-1125@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 18:47:37 $ docker top c7a47ec03255b4336efa3669ad8565e73a793d3c91337fcf484d6ef639bf2a86 -eo pid,comm [Pipeline] { [Pipeline] sh 18:47:38 + touch /tmp/pre-build-complete [Pipeline] sh 18:47:38 + mkdir -p /var/log/sysstat [Pipeline] sh 18:47:38 + ls /var/log/sa-host 18:47:38 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 18:47:38 provisioning config files... 18:47:38 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-sdk-go_PR-1125@tmp/config1224317711260590590tmp [Pipeline] { [Pipeline] echo 18:47:38 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 18:47:39 ---> create-netrc.sh [Pipeline] } 18:47:39 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 18:47:39 ---> python-tools-install.sh [Pipeline] echo 18:47:39 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 18:47:40 ---> sudo-logs.sh 18:47:40 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 18:47:40 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 18:47:40 ---> job-cost.sh 18:47:40 lf-activate-venv: SKIPPING 18:47:40 DEBUG: total: 0.2199999988079071 18:47:40 INFO: Retrieving Stack Cost... 18:47:40 INFO: Retrieving Pricing Info for: v3-standard-8 18:47:41 INFO: Archiving Costs [Pipeline] echo 18:47:41 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 18:47:41 ---> logs-deploy.sh 18:47:41 lf-activate-venv: SKIPPING 18:47:41 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-sdk-go/PR-1125/1 18:47:41 INFO: archiving workspace using pattern(s): 18:47:42 Archives upload complete. 18:47:42 INFO: archiving logs to Nexus