Pull request #1123 event Connecting to https://api.github.com using edgex-jenkins github personal access token Obtained Jenkinsfile from 4c3a3a145e2d742fdce328609e9b16a891e2b1aa+49643132f6b9e95e3a0d289ddc01900e940e8eba (cba055789c930642beb2f140d1fffae17d768d18) 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-ssh619603614817805457.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-ssh9014162877854076910.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 > git rev-parse --resolve-git-dir /var/lib/jenkins/jobs/edgexfoundry/jobs/device-sdk-go/branches/PR-1123/workspace@libs/edgex-global-pipelines/.git # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Fetching with tags Fetching upstream changes from git@github.com:edgexfoundry/edgex-global-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-sdk-go/branches/PR-1123/workspace@libs/edgex-global-pipelines@tmp/jenkins-gitclient-ssh3348543691717094182.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 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-ssh15701653095530569268.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 > git rev-parse --resolve-git-dir /var/lib/jenkins/jobs/edgexfoundry/jobs/device-sdk-go/branches/PR-1123/workspace@libs/lf-pipelines/.git # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url git@github.com:lfit/releng-pipelines.git # timeout=10 Fetching without tags Fetching upstream changes from git@github.com:lfit/releng-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-sdk-go/branches/PR-1123/workspace@libs/lf-pipelines@tmp/jenkins-gitclient-ssh1774912413014626313.key > git fetch --no-tags --progress -- git@github.com:lfit/releng-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10 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 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-20760’ Running on prd-ubuntu20.04-docker-8c-8g-20764 in /w/workspace/gexfoundry_device-sdk-go_PR-1123 [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-1123 # 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 49643132f6b9e95e3a0d289ddc01900e940e8eba into PR head commit 4c3a3a145e2d742fdce328609e9b16a891e2b1aa Merge succeeded, producing 4c3a3a145e2d742fdce328609e9b16a891e2b1aa Checking out Revision 4c3a3a145e2d742fdce328609e9b16a891e2b1aa (PR-1123) > 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/1123/head:refs/remotes/origin/PR-1123 +refs/heads/main:refs/remotes/origin/main # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 4c3a3a145e2d742fdce328609e9b16a891e2b1aa # 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 49643132f6b9e95e3a0d289ddc01900e940e8eba # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 4c3a3a145e2d742fdce328609e9b16a891e2b1aa # timeout=10 Commit message: "build(deps): bump github.com/edgexfoundry/go-mod-messaging/v2" First time build. Skipping changelog. > git rev-list --no-walk fc18c769fae714dff2db1cdb3b1542ba98770df7 # timeout=10 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 03:32:59 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 03:32:59 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 03:32:59 ========================================================= 03:32:59 EdgeX Global Pipelines Version Info 03:32:59 ========================================================= [Pipeline] libraryResource [Pipeline] sh 03:32:59 ------------------- 03:32:59 stable info: 03:32:59 ------------------- 03:32:59 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 03:32:59 Commit SHA: c72b16708d6eed9a08be464a432ce22db7d90667 03:32:59 Message: update stable to v1.0.221 03:33:00 ------------------- 03:33:00 experimental info: 03:33:00 ------------------- 03:33:00 Commited By: **** collab-it+edgex@linuxfoundation.org 03:33:00 Commit SHA: c72b16708d6eed9a08be464a432ce22db7d90667 03:33:00 Message: update experimental to v1.0.221 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 03:33:00 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-sdk-go-settings [Pipeline] echo 03:33:00 [edgeXSetupEnvironment]: set envvar PROJECT = device-sdk-go [Pipeline] echo 03:33:00 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 03:33:00 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 03:33:00 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 03:33:00 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.17 [Pipeline] echo 03:33:00 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 03:33:00 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = example/cmd/device-simple/Dockerfile [Pipeline] echo 03:33:00 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 03:33:00 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 03:33:00 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 03:33:00 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-sdk-simple [Pipeline] echo 03:33:00 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 03:33:00 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 03:33:00 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 03:33:00 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = false [Pipeline] echo 03:33:00 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 03:33:00 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 03:33:00 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 03:33:00 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 03:33:00 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = true [Pipeline] echo 03:33:00 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v2 [Pipeline] echo 03:33:00 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 03:33:00 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 03:33:00 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 03:33:01 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 03:33:01 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-1123 [Pipeline] echo 03:33:01 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-1123 [Pipeline] echo 03:33:01 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-1123 [Pipeline] echo 03:33:01 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 4c3a3a145e2d742fdce328609e9b16a891e2b1aa [Pipeline] echo 03:33:01 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 4c3a3a1 [Pipeline] echo 03:33:01 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 03:33:01 provisioning config files... 03:33:01 copy managed file [device-sdk-go-settings] to file:/w/workspace/gexfoundry_device-sdk-go_PR-1123@tmp/config3056470494837568753tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 03:33:01 ---> docker-login.sh 03:33:01 nexus3.edgexfoundry.org:10001 03:33:01 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:33:01 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:33:01 Configure a credential helper to remove this warning. See 03:33:01 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:33:01 03:33:01 Login Succeeded 03:33:01 nexus3.edgexfoundry.org:10002 03:33:01 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:33:01 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:33:01 Configure a credential helper to remove this warning. See 03:33:01 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:33:01 03:33:01 Login Succeeded 03:33:01 nexus3.edgexfoundry.org:10003 03:33:01 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:33:01 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:33:01 Configure a credential helper to remove this warning. See 03:33:01 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:33:01 03:33:01 Login Succeeded 03:33:01 nexus3.edgexfoundry.org:10004 03:33:02 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:33:02 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:33:02 Configure a credential helper to remove this warning. See 03:33:02 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:33:02 03:33:02 Login Succeeded 03:33:02 docker.io 03:33:02 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:33:02 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:33:02 Configure a credential helper to remove this warning. See 03:33:02 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:33:02 03:33:02 Login Succeeded 03:33:02 ---> docker-login.sh ends [Pipeline] } 03:33:02 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 03:33:03 + git rev-list -1 --merges 4c3a3a145e2d742fdce328609e9b16a891e2b1aa~1..4c3a3a145e2d742fdce328609e9b16a891e2b1aa [Pipeline] echo 03:33:03 -----------> git rev-list -1 --merges 4c3a3a145e2d742fdce328609e9b16a891e2b1aa~1..4c3a3a145e2d742fdce328609e9b16a891e2b1aa 4c3a3a145e2d742fdce328609e9b16a891e2b1aa [false] [Pipeline] sh 03:33:03 + git log --format=format:%s -1 4c3a3a145e2d742fdce328609e9b16a891e2b1aa [Pipeline] echo 03:33:03 ========================================================= 03:33:03 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 03:33:03 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 03:33:03 + git log --format=format:%s -1 4c3a3a145e2d742fdce328609e9b16a891e2b1aa [Pipeline] echo 03:33:03 [semverPrep] GIT_COMMIT: 4c3a3a145e2d742fdce328609e9b16a891e2b1aa, Commit Message: build(deps): bump github.com/edgexfoundry/go-mod-messaging/v2 [Pipeline] echo 03:33:03 [semverPrep] This is not a build commit. [Pipeline] sh 03:33:04 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 03:33:04 + grep -v github /etc/ssh/ssh_known_hosts 03:33:04 + [ -e /tmp/ssh_known_hosts ] 03:33:04 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 03:33:04 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 03:33:04 + sudo tee -a /etc/ssh/ssh_known_hosts 03:33:04 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] sh 03:33:04 + docker inspect -f . nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 03:33:04 03:33:04 Error: No such object: nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] isUnix [Pipeline] sh 03:33:05 + docker pull nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 03:33:05 latest: Pulling from edgex-devops/git-semver 03:33:05 a0d0a0d46f8b: Pulling fs layer 03:33:05 3e5f54012d9b: Pulling fs layer 03:33:05 4c7163046ea9: Pulling fs layer 03:33:05 0c2d73faf560: Pulling fs layer 03:33:05 0c2d73faf560: Waiting 03:33:05 3e5f54012d9b: Verifying Checksum 03:33:05 3e5f54012d9b: Download complete 03:33:05 a0d0a0d46f8b: Download complete 03:33:05 4c7163046ea9: Verifying Checksum 03:33:05 4c7163046ea9: Download complete 03:33:05 0c2d73faf560: Verifying Checksum 03:33:05 0c2d73faf560: Download complete 03:33:05 a0d0a0d46f8b: Pull complete 03:33:05 3e5f54012d9b: Pull complete 03:33:05 4c7163046ea9: Pull complete 03:33:05 0c2d73faf560: Pull complete 03:33:05 Digest: sha256:2751de6e655929dcbe46418c7769d9d992331b5b721eb968631a4166222929f9 03:33:05 Status: Downloaded newer image for nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 03:33:05 nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] withDockerContainer 03:33:05 prd-ubuntu20.04-docker-8c-8g-20764 does not seem to be running inside a container 03:33:05 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/gexfoundry_device-sdk-go_PR-1123 -v /w/workspace/gexfoundry_device-sdk-go_PR-1123:/w/workspace/gexfoundry_device-sdk-go_PR-1123:rw,z -v /w/workspace/gexfoundry_device-sdk-go_PR-1123@tmp:/w/workspace/gexfoundry_device-sdk-go_PR-1123@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 ******** nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest cat 03:33:06 $ docker top a0b11949e8a2a76aaf1627570c011a5c6146af811758a88116b8408a51e9ef60 -eo pid,comm [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 03:33:06 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 03:33:06 [ssh-agent] Looking for ssh-agent implementation... 03:33:06 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 03:33:06 $ docker exec a0b11949e8a2a76aaf1627570c011a5c6146af811758a88116b8408a51e9ef60 ssh-agent 03:33:06 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXhhPchg/agent.13 03:33:06 SSH_AGENT_PID=19 03:33:06 Running ssh-add (command line suppressed) 03:33:07 Identity added: /w/workspace/gexfoundry_device-sdk-go_PR-1123@tmp/private_key_5487734062626074673.key (/w/workspace/gexfoundry_device-sdk-go_PR-1123@tmp/private_key_5487734062626074673.key) 03:33:07 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 03:33:07 + git tag --points-at HEAD [Pipeline] } 03:33:07 $ docker exec --env ******** --env ******** a0b11949e8a2a76aaf1627570c011a5c6146af811758a88116b8408a51e9ef60 ssh-agent -k 03:33:07 unset SSH_AUTH_SOCK; 03:33:07 unset SSH_AGENT_PID; 03:33:07 echo Agent pid 19 killed; 03:33:07 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 03:33:07 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 03:33:07 [ssh-agent] Looking for ssh-agent implementation... 03:33:07 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 03:33:07 $ docker exec a0b11949e8a2a76aaf1627570c011a5c6146af811758a88116b8408a51e9ef60 ssh-agent 03:33:07 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXalGcFF/agent.53 03:33:07 SSH_AGENT_PID=59 03:33:07 Running ssh-add (command line suppressed) 03:33:07 Identity added: /w/workspace/gexfoundry_device-sdk-go_PR-1123@tmp/private_key_4690429731484763432.key (/w/workspace/gexfoundry_device-sdk-go_PR-1123@tmp/private_key_4690429731484763432.key) 03:33:08 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 03:33:08 + git semver init 03:33:08 # -> Open(): unable to determine branch for HEAD 03:33:08 # $GIT_DIR = /w/workspace/gexfoundry_device-sdk-go_PR-1123/.git 03:33:08 # $GIT_WORK_TREE = /w/workspace/gexfoundry_device-sdk-go_PR-1123 03:33:08 # $SEMVER_REMOTE_NAME = origin 03:33:08 # $SEMVER_USER_EMAIL = collab-it+edgex@linuxfoundation.org 03:33:08 # $SEMVER_USER_NAME = edgex-jenkins 03:33:08 # $SEMVER_BRANCH = PR-1123 03:33:08 # $SEMVER_TEMP = /tmp/semver-244945117 03:33:08 # git clone --branch semver git@github.com:edgexfoundry/device-sdk-go.git $SEMVER_TEMP 03:33:09 # '/tmp/semver-244945117' -> '/w/workspace/gexfoundry_device-sdk-go_PR-1123/.semver' 03:33:09 # -> Force: false 03:33:09 # $SEMVER_DIR = /w/workspace/gexfoundry_device-sdk-go_PR-1123/.semver [Pipeline] } 03:33:09 $ docker exec --env ******** --env ******** a0b11949e8a2a76aaf1627570c011a5c6146af811758a88116b8408a51e9ef60 ssh-agent -k 03:33:09 unset SSH_AUTH_SOCK; 03:33:09 unset SSH_AGENT_PID; 03:33:09 echo Agent pid 59 killed; 03:33:09 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 03:33:09 + git semver [Pipeline] } 03:33:10 $ docker stop --time=1 a0b11949e8a2a76aaf1627570c011a5c6146af811758a88116b8408a51e9ef60 03:33:11 $ docker rm -f a0b11949e8a2a76aaf1627570c011a5c6146af811758a88116b8408a51e9ef60 [Pipeline] // withDockerContainer [Pipeline] sh 03:33:11 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 03:33:11 Stashed 1 file(s) [Pipeline] echo 03:33:11 [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 03:33:12 provisioning config files... 03:33:12 copy managed file [device-sdk-go-settings] to file:/w/workspace/gexfoundry_device-sdk-go_PR-1123@tmp/config2320442161153418060tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 03:33:12 ---> docker-login.sh 03:33:12 nexus3.edgexfoundry.org:10001 03:33:12 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:33:12 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:33:12 Configure a credential helper to remove this warning. See 03:33:12 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:33:12 03:33:12 Login Succeeded 03:33:12 nexus3.edgexfoundry.org:10002 03:33:12 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:33:12 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:33:12 Configure a credential helper to remove this warning. See 03:33:12 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:33:12 03:33:12 Login Succeeded 03:33:12 nexus3.edgexfoundry.org:10003 03:33:12 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:33:12 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:33:12 Configure a credential helper to remove this warning. See 03:33:12 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:33:12 03:33:12 Login Succeeded 03:33:12 nexus3.edgexfoundry.org:10004 03:33:12 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:33:12 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:33:12 Configure a credential helper to remove this warning. See 03:33:12 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:33:12 03:33:12 Login Succeeded 03:33:12 docker.io 03:33:12 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:33:13 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:33:13 Configure a credential helper to remove this warning. See 03:33:13 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:33:13 03:33:13 Login Succeeded 03:33:13 ---> docker-login.sh ends [Pipeline] } 03:33:13 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 03:33:13 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 03:33:13 ========================================================= 03:33:13 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine] 03:33:13 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 03:33:13 + 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 . 03:33:13 Sending build context to Docker daemon 9.594MB 03:33:13 Step 1/11 : ARG BASE=golang:1.17-alpine3.15 03:33:13 Step 2/11 : FROM ${BASE} AS builder 03:33:13 1.17-alpine: Pulling from edgex-devops/edgex-golang-base 03:33:13 59bf1c3509f3: Pulling fs layer 03:33:13 666ba61612fd: Pulling fs layer 03:33:13 8ed8ca486205: Pulling fs layer 03:33:13 4fe6c5a15a65: Pulling fs layer 03:33:13 22a0e8bec74d: Pulling fs layer 03:33:13 640e595b4fbd: Pulling fs layer 03:33:13 763cafe07f6e: Pulling fs layer 03:33:13 0c0b528cf693: Pulling fs layer 03:33:13 10935f4eaf8b: Pulling fs layer 03:33:13 640e595b4fbd: Waiting 03:33:13 763cafe07f6e: Waiting 03:33:13 0c0b528cf693: Waiting 03:33:13 10935f4eaf8b: Waiting 03:33:13 22a0e8bec74d: Waiting 03:33:13 4fe6c5a15a65: Waiting 03:33:13 8ed8ca486205: Verifying Checksum 03:33:13 8ed8ca486205: Download complete 03:33:13 666ba61612fd: Download complete 03:33:13 22a0e8bec74d: Verifying Checksum 03:33:13 22a0e8bec74d: Download complete 03:33:13 640e595b4fbd: Verifying Checksum 03:33:13 640e595b4fbd: Download complete 03:33:13 59bf1c3509f3: Verifying Checksum 03:33:13 59bf1c3509f3: Download complete 03:33:13 763cafe07f6e: Download complete 03:33:13 0c0b528cf693: Verifying Checksum 03:33:13 0c0b528cf693: Download complete 03:33:13 59bf1c3509f3: Pull complete 03:33:14 666ba61612fd: Pull complete 03:33:14 8ed8ca486205: Pull complete 03:33:14 10935f4eaf8b: Verifying Checksum 03:33:14 10935f4eaf8b: Download complete 03:33:14 4fe6c5a15a65: Download complete 03:33:18 4fe6c5a15a65: Pull complete 03:33:18 22a0e8bec74d: Pull complete 03:33:18 640e595b4fbd: Pull complete 03:33:18 763cafe07f6e: Pull complete 03:33:19 0c0b528cf693: Pull complete 03:33:21 10935f4eaf8b: Pull complete 03:33:21 Digest: sha256:fe2da51ced2bed6c5fc1d1038c2fbec5a5bb29cdcacce78977c37c66bfba8387 03:33:21 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine 03:33:21 ---> 99d49a6021b9 03:33:21 Step 3/11 : ARG MAKE=make build 03:33:22 ---> Running in 81240ed823c7 03:33:22 Removing intermediate container 81240ed823c7 03:33:22 ---> e4427daacf0a 03:33:22 Step 4/11 : WORKDIR /device-sdk-go 03:33:22 ---> Running in d084c2bc833f 03:33:22 Removing intermediate container d084c2bc833f 03:33:22 ---> c82246ec1380 03:33:22 Step 5/11 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2020: Intel' 03:33:22 ---> Running in b84048e21a4e 03:33:22 Removing intermediate container b84048e21a4e 03:33:22 ---> 49fde2a6113a 03:33:22 Step 6/11 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 03:33:22 ---> Running in 223c95dfd974 03:33:23 Removing intermediate container 223c95dfd974 03:33:23 ---> 72afbe61c4fd 03:33:23 Step 7/11 : RUN apk add --update --no-cache make git gcc libc-dev zeromq-dev libsodium-dev 03:33:23 ---> Running in 6a3123c35daa 03:33:24 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 03:33:24 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 03:33:25 OK: 221 MiB in 52 packages 03:33:25 Removing intermediate container 6a3123c35daa 03:33:25 ---> b1b82e135110 03:33:25 Step 8/11 : COPY go.mod vendor* ./ 03:33:25 ---> b11b068dd9c9 03:33:25 Step 9/11 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 03:33:25 ---> Running in 9ab215a6d34b 03:33:27 Still waiting to schedule task 03:33:27 Waiting for next available executor on ‘prd-ubuntu20.04-docker-arm64-4c-16g-20761’ 03:33:40 Removing intermediate container 9ab215a6d34b 03:33:40 ---> 0d09255e4359 03:33:40 Step 10/11 : COPY . . 03:33:40 ---> d87b24f67dfe 03:33:40 Step 11/11 : RUN ${MAKE} 03:33:40 ---> Running in a5d0ff5514f8 03:33:40 noop 03:33:40 Removing intermediate container a5d0ff5514f8 03:33:40 ---> 8c4929ec0814 03:33:40 Successfully built 8c4929ec0814 03:33:40 Successfully tagged ci-base-image-x86_64:latest [Pipeline] isUnix [Pipeline] sh 03:33:40 + docker inspect -f . ci-base-image-x86_64 03:33:40 . [Pipeline] withDockerContainer 03:33:40 prd-ubuntu20.04-docker-8c-8g-20764 does not seem to be running inside a container 03:33:41 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-sdk-go_PR-1123 -v /w/workspace/gexfoundry_device-sdk-go_PR-1123:/w/workspace/gexfoundry_device-sdk-go_PR-1123:rw,z -v /w/workspace/gexfoundry_device-sdk-go_PR-1123@tmp:/w/workspace/gexfoundry_device-sdk-go_PR-1123@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 ******** ci-base-image-x86_64 cat 03:33:41 $ docker top 3e777fd44141dcc40a533d6c4895ef692b6f8c93511b22168d52acd3b47477c6 -eo pid,comm [Pipeline] { [Pipeline] sh 03:33:41 + go version 03:33:41 go version go1.17.6 linux/amd64 [Pipeline] } 03:33:41 $ docker stop --time=1 3e777fd44141dcc40a533d6c4895ef692b6f8c93511b22168d52acd3b47477c6 03:33:43 $ docker rm -f 3e777fd44141dcc40a533d6c4895ef692b6f8c93511b22168d52acd3b47477c6 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 03:33:43 + docker inspect -f . ci-base-image-x86_64 03:33:43 . [Pipeline] withDockerContainer 03:33:43 prd-ubuntu20.04-docker-8c-8g-20764 does not seem to be running inside a container 03:33:43 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-sdk-go_PR-1123 -v /w/workspace/gexfoundry_device-sdk-go_PR-1123:/w/workspace/gexfoundry_device-sdk-go_PR-1123:rw,z -v /w/workspace/gexfoundry_device-sdk-go_PR-1123@tmp:/w/workspace/gexfoundry_device-sdk-go_PR-1123@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 ******** ci-base-image-x86_64 cat 03:33:44 $ docker top 108919f022282fb75dcba2d3c0e995d6dbb23bb27563b99aef7750549b1b838b -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 03:33:44 + make test 03:33:44 GO111MODULE=on go test -race -coverprofile=coverage.out ./... 03:33:51 ? github.com/edgexfoundry/device-sdk-go/v2 [no test files] 03:34:03 ? github.com/edgexfoundry/device-sdk-go/v2/example/cmd/device-simple [no test files] 03:34:03 ? github.com/edgexfoundry/device-sdk-go/v2/example/config [no test files] 03:34:03 ? github.com/edgexfoundry/device-sdk-go/v2/example/driver [no test files] 03:34:03 ok github.com/edgexfoundry/device-sdk-go/v2/internal/application 0.069s coverage: 23.3% of statements 03:34:03 ? github.com/edgexfoundry/device-sdk-go/v2/internal/autodiscovery [no test files] 03:34:03 ok github.com/edgexfoundry/device-sdk-go/v2/internal/autoevent 0.082s coverage: 27.6% of statements 03:34:03 ok github.com/edgexfoundry/device-sdk-go/v2/internal/cache 0.086s coverage: 78.9% of statements 03:34:03 ok github.com/edgexfoundry/device-sdk-go/v2/internal/clients 0.070s coverage: 10.8% of statements 03:34:03 ? github.com/edgexfoundry/device-sdk-go/v2/internal/common [no test files] 03:34:03 ? github.com/edgexfoundry/device-sdk-go/v2/internal/config [no test files] 03:34:03 ? github.com/edgexfoundry/device-sdk-go/v2/internal/container [no test files] 03:34:03 ok github.com/edgexfoundry/device-sdk-go/v2/internal/controller/http 0.095s coverage: 33.2% of statements 03:34:03 ? github.com/edgexfoundry/device-sdk-go/v2/internal/controller/http/correlation [no test files] 03:34:03 ok github.com/edgexfoundry/device-sdk-go/v2/internal/messaging 1.068s coverage: 86.1% of statements 03:34:03 ? github.com/edgexfoundry/device-sdk-go/v2/internal/provision [no test files] 03:34:03 ? github.com/edgexfoundry/device-sdk-go/v2/internal/telemetry [no test files] 03:34:03 ok github.com/edgexfoundry/device-sdk-go/v2/internal/transformer 0.101s coverage: 65.1% of statements 03:34:03 ok github.com/edgexfoundry/device-sdk-go/v2/pkg/models 0.880s coverage: 89.2% of statements 03:34:03 ? github.com/edgexfoundry/device-sdk-go/v2/pkg/models/mocks [no test files] 03:34:03 ok github.com/edgexfoundry/device-sdk-go/v2/pkg/service 0.062s coverage: 4.8% of statements 03:34:03 ? github.com/edgexfoundry/device-sdk-go/v2/pkg/startup [no test files] 03:34:21 GO111MODULE=on go vet ./... 03:34:24 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 03:34:24 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 03:34:24 ./bin/test-attribution-txt.sh [Pipeline] echo 03:34:24 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 03:34:24 $ docker stop --time=1 108919f022282fb75dcba2d3c0e995d6dbb23bb27563b99aef7750549b1b838b 03:34:26 $ docker rm -f 108919f022282fb75dcba2d3c0e995d6dbb23bb27563b99aef7750549b1b838b [Pipeline] // withDockerContainer [Pipeline] sh 03:34:27 + sudo chown -R jenkins:jenkins . [Pipeline] stash 03:34:27 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 03:34:27 + sudo chown -R jenkins:jenkins . [Pipeline] sh 03:34:28 + ls -al . 03:34:28 total 316 03:34:28 drwxrwxr-x 11 jenkins jenkins 4096 Apr 13 03:34 . 03:34:28 drwxrwxr-x 4 jenkins jenkins 4096 Apr 13 03:32 .. 03:34:28 -rw-rw-r-- 1 jenkins jenkins 140 Apr 13 03:32 .dockerignore 03:34:28 drwxrwxr-x 8 jenkins jenkins 4096 Apr 13 03:32 .git 03:34:28 drwxrwxr-x 2 jenkins jenkins 4096 Apr 13 03:32 .github 03:34:28 -rw-rw-r-- 1 jenkins jenkins 131 Apr 13 03:32 .gitignore 03:34:28 -rw-rw-r-- 1 jenkins jenkins 42 Apr 13 03:32 .golangci.yml 03:34:28 drwx------ 3 jenkins jenkins 4096 Apr 13 03:33 .semver 03:34:28 -rw-rw-r-- 1 jenkins jenkins 26321 Apr 13 03:32 CHANGELOG.md 03:34:28 -rw-rw-r-- 1 jenkins jenkins 677 Apr 13 03:32 GOVERNANCE.md 03:34:28 -rw-rw-r-- 1 jenkins jenkins 880 Apr 13 03:32 Jenkinsfile 03:34:28 -rw-rw-r-- 1 jenkins jenkins 11341 Apr 13 03:32 LICENSE 03:34:28 -rw-rw-r-- 1 jenkins jenkins 2015 Apr 13 03:32 Makefile 03:34:28 -rw-rw-r-- 1 jenkins jenkins 619 Apr 13 03:32 OWNERS.md 03:34:28 -rw-rw-r-- 1 jenkins jenkins 4881 Apr 13 03:32 README.md 03:34:28 -rw-rw-r-- 1 jenkins jenkins 5 Apr 13 03:33 VERSION 03:34:28 drwxrwxr-x 2 jenkins jenkins 4096 Apr 13 03:32 bin 03:34:28 -rw-r--r-- 1 jenkins jenkins 129245 Apr 13 03:34 coverage.out 03:34:28 drwxrwxr-x 5 jenkins jenkins 4096 Apr 13 03:32 example 03:34:28 -rw-rw-r-- 1 jenkins jenkins 3106 Apr 13 03:32 go.mod 03:34:28 -rw-rw-r-- 1 jenkins jenkins 53786 Apr 13 03:32 go.sum 03:34:28 drwxrwxr-x 15 jenkins jenkins 4096 Apr 13 03:32 internal 03:34:28 drwxrwxr-x 3 jenkins jenkins 4096 Apr 13 03:32 openapi 03:34:28 drwxrwxr-x 5 jenkins jenkins 4096 Apr 13 03:32 pkg 03:34:28 drwxrwxr-x 4 jenkins jenkins 4096 Apr 13 03:32 snap 03:34:28 -rw-rw-r-- 1 jenkins jenkins 222 Apr 13 03:32 version.go [Pipeline] isUnix [Pipeline] sh 03:34:28 + 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=4c3a3a145e2d742fdce328609e9b16a891e2b1aa --label arch=amd64 --label version=0.0.0 . 03:34:28 Sending build context to Docker daemon 9.724MB 03:34:28 Step 1/25 : ARG BASE=golang:1.17-alpine3.15 03:34:28 Step 2/25 : FROM ${BASE} AS builder 03:34:28 ---> 8c4929ec0814 03:34:28 Step 3/25 : ARG MAKE=make build 03:34:28 ---> Running in f29c73233fd0 03:34:28 Removing intermediate container f29c73233fd0 03:34:28 ---> be2aa02cca07 03:34:28 Step 4/25 : WORKDIR /device-sdk-go 03:34:28 ---> Running in 7c3ff4f83ad9 03:34:28 Removing intermediate container 7c3ff4f83ad9 03:34:28 ---> 68eb4db7c0a4 03:34:28 Step 5/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2020: Intel' 03:34:28 ---> Running in c815a1dae84f 03:34:28 Removing intermediate container c815a1dae84f 03:34:28 ---> 87869aaeb1a2 03:34:28 Step 6/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 03:34:28 ---> Running in c1f157177dfe 03:34:29 Removing intermediate container c1f157177dfe 03:34:29 ---> 6bc8e487db20 03:34:29 Step 7/25 : RUN apk add --update --no-cache make git gcc libc-dev zeromq-dev libsodium-dev 03:34:29 ---> Running in b9b41493ca13 03:34:29 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 03:34:30 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 03:34:31 OK: 221 MiB in 52 packages 03:34:31 Removing intermediate container b9b41493ca13 03:34:31 ---> c99caa3809a5 03:34:31 Step 8/25 : COPY go.mod vendor* ./ 03:34:31 ---> 3ee753dfc767 03:34:31 Step 9/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 03:34:31 ---> Running in 28f7f8e77b09 03:34:32 Removing intermediate container 28f7f8e77b09 03:34:32 ---> cbb1d84cfc8b 03:34:32 Step 10/25 : COPY . . 03:34:32 ---> 0d200b03fcc1 03:34:32 Step 11/25 : RUN ${MAKE} 03:34:32 ---> Running in b98f6ae9962c 03:34:32 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 03:34:51 CGO_ENABLED=1 GO111MODULE=on go install -tags=safe 03:34:52 Removing intermediate container b98f6ae9962c 03:34:52 ---> 77ee375ba110 03:34:52 Step 12/25 : FROM alpine:3.14 03:34:53 3.14: Pulling from library/alpine 03:34:53 8663204ce13b: Pulling fs layer 03:34:53 8663204ce13b: Verifying Checksum 03:34:53 8663204ce13b: Download complete 03:34:53 8663204ce13b: Pull complete 03:34:53 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 03:34:53 Status: Downloaded newer image for alpine:3.14 03:34:53 ---> e04c818066af 03:34:53 Step 13/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2020: Intel' 03:34:53 ---> Running in 9ce38ff9371a 03:34:53 Removing intermediate container 9ce38ff9371a 03:34:53 ---> 01a81e84903b 03:34:53 Step 14/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 03:34:53 ---> Running in c853ccfd0086 03:34:54 Removing intermediate container c853ccfd0086 03:34:54 ---> f2534cb5d2ba 03:34:54 Step 15/25 : RUN apk add --update --no-cache zeromq 03:34:54 ---> Running in de32a22bc9ec 03:34:54 fetch https://nl.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz 03:34:55 fetch https://nl.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz 03:34:55 (1/5) Installing libgcc (10.3.1_git20210424-r2) 03:34:55 (2/5) Installing libsodium (1.0.18-r0) 03:34:55 (3/5) Installing libstdc++ (10.3.1_git20210424-r2) 03:34:55 (4/5) Installing libzmq (4.3.4-r0) 03:34:56 (5/5) Installing zeromq (4.3.4-r0) 03:34:56 Executing busybox-1.33.1-r7.trigger 03:34:56 OK: 8 MiB in 19 packages 03:34:56 Removing intermediate container de32a22bc9ec 03:34:56 ---> 8019329e19b4 03:34:56 Step 16/25 : WORKDIR / 03:34:56 ---> Running in b08035cb7f16 03:34:56 Removing intermediate container b08035cb7f16 03:34:56 ---> 65ec5cb40d82 03:34:56 Step 17/25 : COPY --from=builder /device-sdk-go/example/cmd/device-simple/Attribution.txt /Attribution.txt 03:34:56 ---> 18ef5d9f0a7f 03:34:56 Step 18/25 : COPY --from=builder /device-sdk-go/example/cmd/device-simple/device-simple /device-simple 03:34:57 ---> 0badb20ca52c 03:34:57 Step 19/25 : COPY --from=builder /device-sdk-go/example/cmd/device-simple/res/ /res 03:34:57 ---> 0c8dcd6a1fe2 03:34:57 Step 20/25 : EXPOSE 59999 03:34:57 ---> Running in 3bb1ef8ff2f5 03:34:57 Removing intermediate container 3bb1ef8ff2f5 03:34:57 ---> e254142b45c5 03:34:57 Step 21/25 : ENTRYPOINT ["/device-simple"] 03:34:57 ---> Running in efa0a9d2b7e5 03:34:57 Removing intermediate container efa0a9d2b7e5 03:34:57 ---> ea3dd61442bb 03:34:57 Step 22/25 : CMD ["-cp=consul.http://edgex-core-consul:8500", "--registry", "--confdir=/res"] 03:34:57 ---> Running in 722b95faf601 03:34:57 Removing intermediate container 722b95faf601 03:34:57 ---> a3f7e09d4bef 03:34:57 Step 23/25 : LABEL arch=amd64 03:34:57 ---> Running in 84f41558edd8 03:34:57 Removing intermediate container 84f41558edd8 03:34:57 ---> 3f2a658414ca 03:34:57 Step 24/25 : LABEL git_sha=4c3a3a145e2d742fdce328609e9b16a891e2b1aa 03:34:58 ---> Running in 55e1f6328397 03:34:58 Removing intermediate container 55e1f6328397 03:34:58 ---> 0234eedcce82 03:34:58 Step 25/25 : LABEL version=0.0.0 03:34:58 ---> Running in 5202623029d8 03:34:58 Removing intermediate container 5202623029d8 03:34:58 ---> 259645c2401c 03:34:58 [Warning] One or more build-args [ARCH] were not consumed 03:34:58 Successfully built 259645c2401c 03:34:58 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 03:34:58 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 03:34:58 03:34:58 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] sh 03:34:58 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 03:34:58 latest: Pulling from edgex-lftools-log-publisher 03:34:58 5eb5b503b376: Pulling fs layer 03:34:58 5c69ac0246d0: Pulling fs layer 03:34:58 ec43610c2a17: Pulling fs layer 03:34:58 3a2ae6a8a46f: Pulling fs layer 03:34:58 33b1e0a273af: Pulling fs layer 03:34:58 5d3b04190fa2: Pulling fs layer 03:34:58 2f39f015ded8: Pulling fs layer 03:34:58 3a2ae6a8a46f: Waiting 03:34:58 33b1e0a273af: Waiting 03:34:58 5d3b04190fa2: Waiting 03:34:58 2f39f015ded8: Waiting 03:34:58 5c69ac0246d0: Verifying Checksum 03:34:58 5c69ac0246d0: Download complete 03:34:58 3a2ae6a8a46f: Verifying Checksum 03:34:58 3a2ae6a8a46f: Download complete 03:34:59 33b1e0a273af: Verifying Checksum 03:34:59 33b1e0a273af: Download complete 03:34:59 5d3b04190fa2: Download complete 03:34:59 ec43610c2a17: Verifying Checksum 03:34:59 ec43610c2a17: Download complete 03:34:59 5eb5b503b376: Verifying Checksum 03:34:59 5eb5b503b376: Download complete 03:34:59 2f39f015ded8: Verifying Checksum 03:34:59 2f39f015ded8: Download complete 03:35:00 5eb5b503b376: Pull complete 03:35:00 5c69ac0246d0: Pull complete 03:35:01 ec43610c2a17: Pull complete 03:35:01 3a2ae6a8a46f: Pull complete 03:35:01 33b1e0a273af: Pull complete 03:35:01 5d3b04190fa2: Pull complete 03:35:06 2f39f015ded8: Pull complete 03:35:06 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 03:35:06 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 03:35:06 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] withDockerContainer 03:35:06 prd-ubuntu20.04-docker-8c-8g-20764 does not seem to be running inside a container 03:35:06 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/gexfoundry_device-sdk-go_PR-1123 -v /w/workspace/gexfoundry_device-sdk-go_PR-1123:/w/workspace/gexfoundry_device-sdk-go_PR-1123:rw,z -v /w/workspace/gexfoundry_device-sdk-go_PR-1123@tmp:/w/workspace/gexfoundry_device-sdk-go_PR-1123@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 03:35:08 $ docker top 12403176eeb86fda0a54b72afcb8e95b9217b75e0442659ca6e74700a1fdea14 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 03:35:08 ---> job-cost.sh 03:35:08 lf-activate-venv: SKIPPING 03:35:08 INFO: No Stack... 03:35:08 INFO: Retrieving Pricing Info for: v3-standard-8 03:35:09 INFO: Archiving Costs [Pipeline] sh 03:35:09 + cat /w/workspace/gexfoundry_device-sdk-go_PR-1123/archives/cost.csv 03:35:09 + cut -d, -f6 [Pipeline] lock 03:35:09 Trying to acquire lock on [jenkins-edgexfoundry-device-sdk-go-PR-1123-6-stack-cost] 03:35:09 Resource [jenkins-edgexfoundry-device-sdk-go-PR-1123-6-stack-cost] did not exist. Created. 03:35:09 Lock acquired on [jenkins-edgexfoundry-device-sdk-go-PR-1123-6-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 03:35:10 + echo total: 0.2199999988079071 [Pipeline] stash 03:35:10 Stashed 1 file(s) [Pipeline] } 03:35:10 Lock released on resource [jenkins-edgexfoundry-device-sdk-go-PR-1123-6-stack-cost] [Pipeline] // lock [Pipeline] } 03:35:10 $ docker stop --time=1 12403176eeb86fda0a54b72afcb8e95b9217b75e0442659ca6e74700a1fdea14 03:35:11 $ docker rm -f 12403176eeb86fda0a54b72afcb8e95b9217b75e0442659ca6e74700a1fdea14 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 03:36:19 Running on prd-ubuntu20.04-docker-arm64-4c-16g-20768 in /w/workspace/gexfoundry_device-sdk-go_PR-1123 [Pipeline] { [Pipeline] ws 03:36:19 Running in /w/workspace/device-sdk-go/6 [Pipeline] { [Pipeline] checkout 03:36:20 The recommended git tool is: git 03:36:29 using credential edgex-jenkins-ssh 03:36:29 Cloning the remote Git repository 03:36:29 Cloning repository git@github.com:edgexfoundry/device-sdk-go.git 03:36:29 > git init /w/workspace/device-sdk-go/6 # timeout=10 03:36:29 Fetching upstream changes from git@github.com:edgexfoundry/device-sdk-go.git 03:36:29 > git --version # timeout=10 03:36:29 > git --version # 'git version 2.25.1' 03:36:29 using GIT_SSH to set credentials SSH Credentials for GitHub 03:36:29 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-sdk-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 03:36:32 Merging remotes/origin/main commit 49643132f6b9e95e3a0d289ddc01900e940e8eba into PR head commit 4c3a3a145e2d742fdce328609e9b16a891e2b1aa 03:36:31 > git config remote.origin.url git@github.com:edgexfoundry/device-sdk-go.git # timeout=10 03:36:31 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 03:36:31 > git config remote.origin.url git@github.com:edgexfoundry/device-sdk-go.git # timeout=10 03:36:31 Fetching upstream changes from git@github.com:edgexfoundry/device-sdk-go.git 03:36:31 using GIT_SSH to set credentials SSH Credentials for GitHub 03:36:31 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-sdk-go.git +refs/pull/1123/head:refs/remotes/origin/PR-1123 +refs/heads/main:refs/remotes/origin/main # timeout=10 03:36:32 > git config core.sparsecheckout # timeout=10 03:36:32 > git checkout -f 4c3a3a145e2d742fdce328609e9b16a891e2b1aa # timeout=10 03:36:32 > git remote # timeout=10 03:36:33 Merge succeeded, producing 4c3a3a145e2d742fdce328609e9b16a891e2b1aa 03:36:33 Checking out Revision 4c3a3a145e2d742fdce328609e9b16a891e2b1aa (PR-1123) 03:36:33 > git config --get remote.origin.url # timeout=10 03:36:33 using GIT_SSH to set credentials SSH Credentials for GitHub 03:36:33 > git merge 49643132f6b9e95e3a0d289ddc01900e940e8eba # timeout=10 03:36:33 > git rev-parse HEAD^{commit} # timeout=10 03:36:33 > git config core.sparsecheckout # timeout=10 03:36:33 > git checkout -f 4c3a3a145e2d742fdce328609e9b16a891e2b1aa # timeout=10 03:36:37 Commit message: "build(deps): bump github.com/edgexfoundry/go-mod-messaging/v2" [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 03:36:38 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 03:36:38 % Total % Received % Xferd Average Speed Time Time Time Current 03:36:38 Dload Upload Total Spent Left Speed 03:36:38 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 11843 100 11843 0 0 172k 0 --:--:-- --:--:-- --:--:-- 172k [Pipeline] sh 03:36:39 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 03:36:39 + + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 03:36:39 sudo tee /etc/docker/daemon.new 03:36:39 { 03:36:39 "registry-mirrors": [ 03:36:39 "https://nexus3.edgexfoundry.org:10001" 03:36:39 ], 03:36:39 "bip": "10.250.0.254/24", 03:36:39 "hosts": [ 03:36:39 "tcp://0.0.0.0:5555", 03:36:39 "unix:///var/run/docker.sock" 03:36:39 ], 03:36:39 "mtu": 1458, 03:36:39 "selinux-enabled": true, 03:36:39 "seccomp-profile": "/etc/docker/seccomp.json" 03:36:39 } [Pipeline] sh 03:36:39 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 03:36:40 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 03:36:58 provisioning config files... 03:36:58 copy managed file [device-sdk-go-settings] to file:/w/workspace/device-sdk-go/6@tmp/config1569486872265137613tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 03:36:59 ---> docker-login.sh 03:36:59 nexus3.edgexfoundry.org:10001 03:36:59 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:36:59 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:36:59 Configure a credential helper to remove this warning. See 03:36:59 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:36:59 03:36:59 Login Succeeded 03:36:59 nexus3.edgexfoundry.org:10002 03:37:00 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:37:00 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:37:00 Configure a credential helper to remove this warning. See 03:37:00 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:37:00 03:37:00 Login Succeeded 03:37:00 nexus3.edgexfoundry.org:10003 03:37:01 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:37:01 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:37:01 Configure a credential helper to remove this warning. See 03:37:01 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:37:01 03:37:01 Login Succeeded 03:37:01 nexus3.edgexfoundry.org:10004 03:37:01 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:37:01 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:37:01 Configure a credential helper to remove this warning. See 03:37:01 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:37:01 03:37:01 Login Succeeded 03:37:01 docker.io 03:37:02 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:37:02 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:37:02 Configure a credential helper to remove this warning. See 03:37:02 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:37:02 03:37:02 Login Succeeded 03:37:02 ---> docker-login.sh ends [Pipeline] } 03:37:02 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 03:37:03 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 03:37:03 ========================================================= 03:37:03 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine] 03:37:03 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 03:37:03 + 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 . 03:37:04 Sending build context to Docker daemon 5.187MB 03:37:04 Step 1/11 : ARG BASE=golang:1.17-alpine3.15 03:37:04 Step 2/11 : FROM ${BASE} AS builder 03:37:04 1.17-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 03:37:04 9b3977197b4f: Pulling fs layer 03:37:04 1a89e8eeedd5: Pulling fs layer 03:37:04 94645a83ff95: Pulling fs layer 03:37:04 3f3a8bcf1eab: Pulling fs layer 03:37:04 0c92f367c5e7: Pulling fs layer 03:37:04 f7c0051592d6: Pulling fs layer 03:37:04 a227ed2f7395: Pulling fs layer 03:37:04 7b1c46037f91: Pulling fs layer 03:37:04 3f3a8bcf1eab: Waiting 03:37:04 0c92f367c5e7: Waiting 03:37:04 f7c0051592d6: Waiting 03:37:04 a227ed2f7395: Waiting 03:37:04 7b1c46037f91: Waiting 03:37:04 94645a83ff95: Verifying Checksum 03:37:04 94645a83ff95: Download complete 03:37:04 1a89e8eeedd5: Verifying Checksum 03:37:04 0c92f367c5e7: Verifying Checksum 03:37:04 0c92f367c5e7: Download complete 03:37:04 f7c0051592d6: Verifying Checksum 03:37:04 f7c0051592d6: Download complete 03:37:04 a227ed2f7395: Verifying Checksum 03:37:04 a227ed2f7395: Download complete 03:37:04 9b3977197b4f: Verifying Checksum 03:37:04 9b3977197b4f: Download complete 03:37:05 9b3977197b4f: Pull complete 03:37:05 1a89e8eeedd5: Pull complete 03:37:06 94645a83ff95: Pull complete 03:37:06 7b1c46037f91: Verifying Checksum 03:37:06 7b1c46037f91: Download complete 03:37:07 3f3a8bcf1eab: Verifying Checksum 03:37:07 3f3a8bcf1eab: Download complete 03:37:22 3f3a8bcf1eab: Pull complete 03:37:22 0c92f367c5e7: Pull complete 03:37:22 f7c0051592d6: Pull complete 03:37:22 a227ed2f7395: Pull complete 03:37:27 7b1c46037f91: Pull complete 03:37:27 Digest: sha256:72afd471f6932efc3b14a707e53dab7ff98911016b282aefa83be7c085db88fe 03:37:27 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine 03:37:27 ---> f79e39bc4007 03:37:27 Step 3/11 : ARG MAKE=make build 03:37:29 ---> Running in c8363cb214f2 03:37:29 Removing intermediate container c8363cb214f2 03:37:29 ---> 2a0882905b27 03:37:29 Step 4/11 : WORKDIR /device-sdk-go 03:37:29 ---> Running in 9eaa0d2fc7d8 03:37:30 Removing intermediate container 9eaa0d2fc7d8 03:37:30 ---> 82f8e0eb8d57 03:37:30 Step 5/11 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2020: Intel' 03:37:30 ---> Running in 41f91da9402f 03:37:30 Removing intermediate container 41f91da9402f 03:37:30 ---> 07d2c7b26343 03:37:30 Step 6/11 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 03:37:30 ---> Running in d46d1a707268 03:37:32 Removing intermediate container d46d1a707268 03:37:32 ---> 975b2f7e2df2 03:37:32 Step 7/11 : RUN apk add --update --no-cache make git gcc libc-dev zeromq-dev libsodium-dev 03:37:32 ---> Running in 208dda4f9daf 03:37:34 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 03:37:34 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 03:37:36 OK: 220 MiB in 52 packages 03:37:37 Removing intermediate container 208dda4f9daf 03:37:37 ---> 75d2f0a8501f 03:37:37 Step 8/11 : COPY go.mod vendor* ./ 03:37:38 ---> e1c51421575b 03:37:38 Step 9/11 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 03:37:38 ---> Running in e583cc762c72 03:38:34 Removing intermediate container e583cc762c72 03:38:34 ---> 524933ed0150 03:38:34 Step 10/11 : COPY . . 03:38:34 ---> e74f41d32ca6 03:38:34 Step 11/11 : RUN ${MAKE} 03:38:34 ---> Running in a70f2c2daf82 03:38:34 noop 03:38:34 Removing intermediate container a70f2c2daf82 03:38:34 ---> ad67d2729f32 03:38:34 Successfully built ad67d2729f32 03:38:34 Successfully tagged ci-base-image-arm64:latest [Pipeline] isUnix [Pipeline] sh 03:38:35 + docker inspect -f . ci-base-image-arm64 03:38:35 . [Pipeline] withDockerContainer 03:38:35 prd-ubuntu20.04-docker-arm64-4c-16g-20768 does not seem to be running inside a container 03:38:35 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-sdk-go/6 -v /w/workspace/device-sdk-go/6:/w/workspace/device-sdk-go/6:rw,z -v /w/workspace/device-sdk-go/6@tmp:/w/workspace/device-sdk-go/6@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 03:38:37 $ docker top 7d6e7626f2991e25240313a32e61da336afbb0444184d4ef005db4c81ff62497 -eo pid,comm [Pipeline] { [Pipeline] sh 03:38:38 + go version 03:38:38 go version go1.17.6 linux/arm64 [Pipeline] } 03:38:38 $ docker stop --time=1 7d6e7626f2991e25240313a32e61da336afbb0444184d4ef005db4c81ff62497 03:38:39 $ docker rm -f 7d6e7626f2991e25240313a32e61da336afbb0444184d4ef005db4c81ff62497 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 03:38:40 + docker inspect -f . ci-base-image-arm64 03:38:40 . [Pipeline] withDockerContainer 03:38:40 prd-ubuntu20.04-docker-arm64-4c-16g-20768 does not seem to be running inside a container 03:38:40 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-sdk-go/6 -v /w/workspace/device-sdk-go/6:/w/workspace/device-sdk-go/6:rw,z -v /w/workspace/device-sdk-go/6@tmp:/w/workspace/device-sdk-go/6@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 03:38:42 $ docker top 3f8f39b707731d3885af5f26045e81100544a1a35529c4631f072cecb6404b44 -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 03:38:43 + make test 03:38:43 GO111MODULE=on go test -race -coverprofile=coverage.out ./... 03:39:15 ? github.com/edgexfoundry/device-sdk-go/v2 [no test files] 03:41:07 ? github.com/edgexfoundry/device-sdk-go/v2/example/cmd/device-simple [no test files] 03:41:07 ? github.com/edgexfoundry/device-sdk-go/v2/example/config [no test files] 03:41:07 ? github.com/edgexfoundry/device-sdk-go/v2/example/driver [no test files] 03:41:19 ok github.com/edgexfoundry/device-sdk-go/v2/internal/application 0.604s coverage: 23.3% of statements 03:41:19 ? github.com/edgexfoundry/device-sdk-go/v2/internal/autodiscovery [no test files] 03:41:19 ok github.com/edgexfoundry/device-sdk-go/v2/internal/autoevent 0.263s coverage: 27.6% of statements 03:41:19 ok github.com/edgexfoundry/device-sdk-go/v2/internal/cache 0.368s coverage: 78.9% of statements 03:41:19 ok github.com/edgexfoundry/device-sdk-go/v2/internal/clients 0.274s coverage: 10.8% of statements 03:41:19 ? github.com/edgexfoundry/device-sdk-go/v2/internal/common [no test files] 03:41:19 ? github.com/edgexfoundry/device-sdk-go/v2/internal/config [no test files] 03:41:19 ? github.com/edgexfoundry/device-sdk-go/v2/internal/container [no test files] 03:41:22 ok github.com/edgexfoundry/device-sdk-go/v2/internal/controller/http 0.449s coverage: 33.2% of statements 03:41:22 ? github.com/edgexfoundry/device-sdk-go/v2/internal/controller/http/correlation [no test files] 03:41:23 ok github.com/edgexfoundry/device-sdk-go/v2/internal/messaging 1.392s coverage: 86.1% of statements 03:41:23 ? github.com/edgexfoundry/device-sdk-go/v2/internal/provision [no test files] 03:41:23 ? github.com/edgexfoundry/device-sdk-go/v2/internal/telemetry [no test files] 03:41:26 ok github.com/edgexfoundry/device-sdk-go/v2/internal/transformer 0.465s coverage: 65.1% of statements 03:41:26 ok github.com/edgexfoundry/device-sdk-go/v2/pkg/models 3.595s coverage: 89.2% of statements 03:41:26 ? github.com/edgexfoundry/device-sdk-go/v2/pkg/models/mocks [no test files] 03:41:30 ok github.com/edgexfoundry/device-sdk-go/v2/pkg/service 0.253s coverage: 4.8% of statements 03:41:30 ? github.com/edgexfoundry/device-sdk-go/v2/pkg/startup [no test files] 03:41:30 WARNING: Linting skipped (not on x86_64 or linter not installed) 03:41:30 GO111MODULE=on go vet ./... 03:43:07 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 03:43:07 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 03:43:07 ./bin/test-attribution-txt.sh [Pipeline] echo 03:43:07 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 03:43:07 $ docker stop --time=1 3f8f39b707731d3885af5f26045e81100544a1a35529c4631f072cecb6404b44 03:43:09 $ docker rm -f 3f8f39b707731d3885af5f26045e81100544a1a35529c4631f072cecb6404b44 [Pipeline] // withDockerContainer [Pipeline] sh 03:43:11 + sudo chown -R jenkins:jenkins . [Pipeline] stash 03:43:11 Warning: overwriting stash ‘coverage-report’ 03:43:12 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 03:43:12 + sudo chown -R jenkins:jenkins . [Pipeline] sh 03:43:12 + ls -al . 03:43:12 total 312 03:43:12 drwxrwxr-x 10 jenkins jenkins 4096 Apr 13 03:43 . 03:43:12 drwxrwxr-x 4 jenkins jenkins 4096 Apr 13 03:36 .. 03:43:12 -rw-rw-r-- 1 jenkins jenkins 140 Apr 13 03:36 .dockerignore 03:43:12 drwxrwxr-x 8 jenkins jenkins 4096 Apr 13 03:36 .git 03:43:12 drwxrwxr-x 2 jenkins jenkins 4096 Apr 13 03:36 .github 03:43:12 -rw-rw-r-- 1 jenkins jenkins 131 Apr 13 03:36 .gitignore 03:43:12 -rw-rw-r-- 1 jenkins jenkins 42 Apr 13 03:36 .golangci.yml 03:43:12 -rw-rw-r-- 1 jenkins jenkins 26321 Apr 13 03:36 CHANGELOG.md 03:43:12 -rw-rw-r-- 1 jenkins jenkins 677 Apr 13 03:36 GOVERNANCE.md 03:43:12 -rw-rw-r-- 1 jenkins jenkins 880 Apr 13 03:36 Jenkinsfile 03:43:12 -rw-rw-r-- 1 jenkins jenkins 11341 Apr 13 03:36 LICENSE 03:43:12 -rw-rw-r-- 1 jenkins jenkins 2015 Apr 13 03:36 Makefile 03:43:12 -rw-rw-r-- 1 jenkins jenkins 619 Apr 13 03:36 OWNERS.md 03:43:12 -rw-rw-r-- 1 jenkins jenkins 4881 Apr 13 03:36 README.md 03:43:12 -rw-rw-r-- 1 jenkins jenkins 5 Apr 13 03:33 VERSION 03:43:12 drwxrwxr-x 2 jenkins jenkins 4096 Apr 13 03:36 bin 03:43:12 -rw-r--r-- 1 jenkins jenkins 129245 Apr 13 03:41 coverage.out 03:43:12 drwxrwxr-x 5 jenkins jenkins 4096 Apr 13 03:36 example 03:43:12 -rw-rw-r-- 1 jenkins jenkins 3106 Apr 13 03:36 go.mod 03:43:12 -rw-rw-r-- 1 jenkins jenkins 53786 Apr 13 03:36 go.sum 03:43:12 drwxrwxr-x 15 jenkins jenkins 4096 Apr 13 03:36 internal 03:43:12 drwxrwxr-x 3 jenkins jenkins 4096 Apr 13 03:36 openapi 03:43:12 drwxrwxr-x 5 jenkins jenkins 4096 Apr 13 03:36 pkg 03:43:12 drwxrwxr-x 4 jenkins jenkins 4096 Apr 13 03:36 snap 03:43:12 -rw-rw-r-- 1 jenkins jenkins 222 Apr 13 03:36 version.go [Pipeline] isUnix [Pipeline] sh 03:43:13 + 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=4c3a3a145e2d742fdce328609e9b16a891e2b1aa --label arch=arm64 --label version=0.0.0 . 03:43:13 Sending build context to Docker daemon 5.317MB 03:43:13 Step 1/25 : ARG BASE=golang:1.17-alpine3.15 03:43:13 Step 2/25 : FROM ${BASE} AS builder 03:43:13 ---> ad67d2729f32 03:43:13 Step 3/25 : ARG MAKE=make build 03:43:13 ---> Running in 8a9769bcfda8 03:43:14 Removing intermediate container 8a9769bcfda8 03:43:14 ---> 7001ec699bf7 03:43:14 Step 4/25 : WORKDIR /device-sdk-go 03:43:14 ---> Running in c507ebdc8b84 03:43:14 Removing intermediate container c507ebdc8b84 03:43:14 ---> 62b5e17e0e8b 03:43:14 Step 5/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2020: Intel' 03:43:14 ---> Running in 886615e84c0c 03:43:15 Removing intermediate container 886615e84c0c 03:43:15 ---> 9fdf7910b610 03:43:15 Step 6/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 03:43:15 ---> Running in f397df2e4890 03:43:17 Removing intermediate container f397df2e4890 03:43:17 ---> a71c004728ea 03:43:17 Step 7/25 : RUN apk add --update --no-cache make git gcc libc-dev zeromq-dev libsodium-dev 03:43:17 ---> Running in 05345f608a4b 03:43:18 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 03:43:18 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 03:43:19 OK: 220 MiB in 52 packages 03:43:20 Removing intermediate container 05345f608a4b 03:43:20 ---> d7936ac0454c 03:43:20 Step 8/25 : COPY go.mod vendor* ./ 03:43:21 ---> d530a19c9e43 03:43:21 Step 9/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 03:43:21 ---> Running in c65e0662780c 03:43:23 Removing intermediate container c65e0662780c 03:43:23 ---> 4d73b96e2c33 03:43:23 Step 10/25 : COPY . . 03:43:24 ---> 1694badb56d9 03:43:24 Step 11/25 : RUN ${MAKE} 03:43:24 ---> Running in 03cb23d44ebd 03:43:25 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 03:45:47 CGO_ENABLED=1 GO111MODULE=on go install -tags=safe 03:45:47 Removing intermediate container 03cb23d44ebd 03:45:47 ---> c8bd417daa06 03:45:47 Step 12/25 : FROM alpine:3.14 03:45:47 3.14: Pulling from library/alpine 03:45:47 455c02918c45: Pulling fs layer 03:45:47 455c02918c45: Verifying Checksum 03:45:47 455c02918c45: Download complete 03:45:47 455c02918c45: Pull complete 03:45:47 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 03:45:47 Status: Downloaded newer image for alpine:3.14 03:45:47 ---> ac73e934f311 03:45:47 Step 13/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2020: Intel' 03:45:47 ---> Running in d0d5a69175d7 03:45:47 Removing intermediate container d0d5a69175d7 03:45:47 ---> e2d6d98b6ae6 03:45:47 Step 14/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 03:45:47 ---> Running in df1f43f4fede 03:45:47 Removing intermediate container df1f43f4fede 03:45:47 ---> b117eaef0649 03:45:47 Step 15/25 : RUN apk add --update --no-cache zeromq 03:45:47 ---> Running in f2106d339d17 03:45:47 fetch https://nl.alpinelinux.org/alpine/v3.14/main/aarch64/APKINDEX.tar.gz 03:45:47 fetch https://nl.alpinelinux.org/alpine/v3.14/community/aarch64/APKINDEX.tar.gz 03:45:48 (1/5) Installing libgcc (10.3.1_git20210424-r2) 03:45:48 (2/5) Installing libsodium (1.0.18-r0) 03:45:48 (3/5) Installing libstdc++ (10.3.1_git20210424-r2) 03:45:48 (4/5) Installing libzmq (4.3.4-r0) 03:45:48 (5/5) Installing zeromq (4.3.4-r0) 03:45:48 Executing busybox-1.33.1-r7.trigger 03:45:48 OK: 8 MiB in 19 packages 03:45:49 Removing intermediate container f2106d339d17 03:45:49 ---> ce6aacad092c 03:45:49 Step 16/25 : WORKDIR / 03:45:49 ---> Running in dba2999a004b 03:45:49 Removing intermediate container dba2999a004b 03:45:49 ---> eb569ab33bda 03:45:49 Step 17/25 : COPY --from=builder /device-sdk-go/example/cmd/device-simple/Attribution.txt /Attribution.txt 03:45:50 ---> 46d9d813a624 03:45:50 Step 18/25 : COPY --from=builder /device-sdk-go/example/cmd/device-simple/device-simple /device-simple 03:45:52 ---> a02f00914230 03:45:52 Step 19/25 : COPY --from=builder /device-sdk-go/example/cmd/device-simple/res/ /res 03:45:53 ---> f887d41ce527 03:45:53 Step 20/25 : EXPOSE 59999 03:45:53 ---> Running in 9a58638188b8 03:45:53 Removing intermediate container 9a58638188b8 03:45:53 ---> ccd13aa20fe2 03:45:53 Step 21/25 : ENTRYPOINT ["/device-simple"] 03:45:53 ---> Running in e2215dc0393e 03:45:53 Removing intermediate container e2215dc0393e 03:45:53 ---> 630fee605f85 03:45:53 Step 22/25 : CMD ["-cp=consul.http://edgex-core-consul:8500", "--registry", "--confdir=/res"] 03:45:53 ---> Running in 16a643aa585f 03:45:54 Removing intermediate container 16a643aa585f 03:45:54 ---> 9c4a820f75e2 03:45:54 Step 23/25 : LABEL arch=arm64 03:45:54 ---> Running in 6eadcc75cf28 03:45:54 Removing intermediate container 6eadcc75cf28 03:45:54 ---> 76e750fbbe67 03:45:54 Step 24/25 : LABEL git_sha=4c3a3a145e2d742fdce328609e9b16a891e2b1aa 03:45:54 ---> Running in 150e6d8bcf21 03:45:55 Removing intermediate container 150e6d8bcf21 03:45:55 ---> 37652c7e285c 03:45:55 Step 25/25 : LABEL version=0.0.0 03:45:55 ---> Running in d655701492d7 03:45:55 Removing intermediate container d655701492d7 03:45:55 ---> 474d1722bc24 03:45:55 [Warning] One or more build-args [ARCH] were not consumed 03:45:55 Successfully built 474d1722bc24 03:45:55 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 03:45:56 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 03:45:56 03:45:56 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] sh 03:45:56 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 03:45:56 arm64: Pulling from edgex-lftools-log-publisher 03:45:56 8998bd30e6a1: Pulling fs layer 03:45:56 04944245beec: Pulling fs layer 03:45:56 699f458cf7ca: Pulling fs layer 03:45:56 765212b225bb: Pulling fs layer 03:45:56 f23df028b6ca: Pulling fs layer 03:45:56 d65c8cfc05b1: Pulling fs layer 03:45:56 2437ff75d9bd: Pulling fs layer 03:45:56 f23df028b6ca: Waiting 03:45:56 d65c8cfc05b1: Waiting 03:45:56 2437ff75d9bd: Waiting 03:45:56 765212b225bb: Waiting 03:45:56 04944245beec: Verifying Checksum 03:45:56 04944245beec: Download complete 03:45:56 765212b225bb: Verifying Checksum 03:45:56 765212b225bb: Download complete 03:45:56 f23df028b6ca: Verifying Checksum 03:45:56 f23df028b6ca: Download complete 03:45:56 d65c8cfc05b1: Download complete 03:45:56 699f458cf7ca: Verifying Checksum 03:45:56 699f458cf7ca: Download complete 03:45:57 8998bd30e6a1: Verifying Checksum 03:45:57 8998bd30e6a1: Download complete 03:45:59 2437ff75d9bd: Verifying Checksum 03:45:59 2437ff75d9bd: Download complete 03:46:01 8998bd30e6a1: Pull complete 03:46:02 04944245beec: Pull complete 03:46:03 699f458cf7ca: Pull complete 03:46:04 765212b225bb: Pull complete 03:46:05 f23df028b6ca: Pull complete 03:46:05 d65c8cfc05b1: Pull complete 03:46:23 2437ff75d9bd: Pull complete 03:46:23 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 03:46:23 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 03:46:23 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] withDockerContainer 03:46:24 prd-ubuntu20.04-docker-arm64-4c-16g-20768 does not seem to be running inside a container 03:46: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/device-sdk-go/6 -v /w/workspace/device-sdk-go/6:/w/workspace/device-sdk-go/6:rw,z -v /w/workspace/device-sdk-go/6@tmp:/w/workspace/device-sdk-go/6@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 03:46:26 $ docker top 3545b917383ef0feb80a8ed6c110823759c5a78e293c36930d035d8caf17270a -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 03:46:27 ---> job-cost.sh 03:46:27 lf-activate-venv: SKIPPING 03:46:27 INFO: No Stack... 03:46:28 INFO: Retrieving Pricing Info for: v3-standard-4 03:46:28 INFO: Archiving Costs [Pipeline] sh 03:46:29 + cat /w/workspace/device-sdk-go/6/archives/cost.csv 03:46:29 + cut -d, -f6 [Pipeline] lock 03:46:29 Trying to acquire lock on [jenkins-edgexfoundry-device-sdk-go-PR-1123-6-stack-cost] 03:46:29 Resource [jenkins-edgexfoundry-device-sdk-go-PR-1123-6-stack-cost] did not exist. Created. 03:46:29 Lock acquired on [jenkins-edgexfoundry-device-sdk-go-PR-1123-6-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 03:46:30 /w/workspace/device-sdk-go/6@tmp/durable-5e4b4f7c/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 03:46:30 + echo total: 0.10999999940395355 [Pipeline] stash 03:46:30 Warning: overwriting stash ‘stack-cost’ 03:46:30 Stashed 1 file(s) [Pipeline] } 03:46:30 Lock released on resource [jenkins-edgexfoundry-device-sdk-go-PR-1123-6-stack-cost] [Pipeline] // lock [Pipeline] } 03:46:30 $ docker stop --time=1 3545b917383ef0feb80a8ed6c110823759c5a78e293c36930d035d8caf17270a 03:46:32 $ docker rm -f 3545b917383ef0feb80a8ed6c110823759c5a78e293c36930d035d8caf17270a [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 03:46:32 provisioning config files... 03:46:32 copy managed file [device-sdk-go-codecov-token] to file:/w/workspace/gexfoundry_device-sdk-go_PR-1123@tmp/config86321929626857736tmp [Pipeline] { [Pipeline] sh 03:46:33 + set +x 03:46:33 + curl+ -s https://codecov.io/bash 03:46:33 bash -s -- 03:46:33 03:46:33 _____ _ 03:46:33 / ____| | | 03:46:33 | | ___ __| | ___ ___ _____ __ 03:46:33 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 03:46:33 | |___| (_) | (_| | __/ (_| (_) \ V / 03:46:33 \_____\___/ \__,_|\___|\___\___/ \_/ 03:46:33 Bash-1.0.6 03:46:33 03:46:33 03:46:33 ==> git version 2.25.1 found 03:46:33 ==> 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 03:46:33 Release-Date: 2020-01-08 03:46:33 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 03:46:33 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 03:46:33 ==> Jenkins CI detected. 03:46:33 current dir:  /w/workspace/gexfoundry_device-sdk-go_PR-1123 03:46:33 project root: . 03:46:33 --> token set from env 03:46:33 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 03:46:33 ==> Running gcov in . (disable via -X gcov) 03:46:33 ==> Python coveragepy not found 03:46:33 ==> Searching for coverage reports in: 03:46:33 + . 03:46:33 -> Found 1 reports 03:46:33 ==> Detecting git/mercurial file structure 03:46:33 ==> Reading reports 03:46:33 + ./coverage.out bytes=129245 03:46:33 ==> Appending adjustments 03:46:33 https://docs.codecov.io/docs/fixing-reports 03:46:33 + Found adjustments 03:46:33 ==> Gzipping contents 03:46:33 20K /tmp/codecov.zE1Fb6.gz 03:46:33 ==> Uploading reports 03:46:33 url: https://codecov.io 03:46:33 query: branch=PR-1123&commit=4c3a3a145e2d742fdce328609e9b16a891e2b1aa&build=6&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-sdk-go%2Fjob%2FPR-1123%2F6%2F&name=&tag=&slug=edgexfoundry%2Fdevice-sdk-go&service=jenkins&flags=&pr=1123&job=&cmd_args= 03:46:33 -> Pinging Codecov 03:46:33 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=6fc62cd9-fce6-47f0-85f4-af589338491a&branch=PR-1123&commit=4c3a3a145e2d742fdce328609e9b16a891e2b1aa&build=6&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-sdk-go%2Fjob%2FPR-1123%2F6%2F&name=&tag=&slug=edgexfoundry%2Fdevice-sdk-go&service=jenkins&flags=&pr=1123&job=&cmd_args= 03:46:33 -> Uploading to 03:46:33 https://storage.googleapis.com/codecov/v4/raw/2022-04-13/7E55EF52A471D76F132DFD9A03CDDE97/4c3a3a145e2d742fdce328609e9b16a891e2b1aa/c66e016f-79c2-4cfe-98e3-5f25e0fde9cc.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20220413%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20220413T034633Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=c08c8f325ce358e219c1f654ed95defa619b1d434093d551857fcdd13e51fed7 03:46:33 % Total % Received % Xferd Average Speed Time Time Time Current 03:46:33 Dload Upload Total Spent Left Speed 03:46:33 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 16591 0 0 100 16591 0 76810 --:--:-- --:--:-- --:--:-- 76810 03:46:33 -> Reports have been successfully queued for processing at https://codecov.io/github/edgexfoundry/device-sdk-go/commit/4c3a3a145e2d742fdce328609e9b16a891e2b1aa [Pipeline] } 03:46: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 03:46:34 + [ -d /w/workspace/gexfoundry_device-sdk-go_PR-1123/archives ] 03:46:34 + ls -al /w/workspace/gexfoundry_device-sdk-go_PR-1123/archives 03:46:34 total 16 03:46:34 drwxr-xr-x 3 root root 4096 Apr 13 03:35 . 03:46:34 drwxrwxr-x 12 jenkins jenkins 4096 Apr 13 03:35 .. 03:46:34 drwxr-xr-x 2 root root 4096 Apr 13 03:35 cost 03:46:34 -rw-r--r-- 1 root root 85 Apr 13 03:35 cost.csv 03:46:34 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-sdk-go_PR-1123/archives 03:46:34 + ls -al /w/workspace/gexfoundry_device-sdk-go_PR-1123/archives 03:46:34 total 16 03:46:34 drwxr-xr-x 3 jenkins jenkins 4096 Apr 13 03:35 . 03:46:34 drwxrwxr-x 12 jenkins jenkins 4096 Apr 13 03:35 .. 03:46:34 drwxr-xr-x 2 jenkins jenkins 4096 Apr 13 03:35 cost 03:46:34 -rw-r--r-- 1 jenkins jenkins 85 Apr 13 03:35 cost.csv [Pipeline] libraryResource [Pipeline] sh 03:46:34 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 03:46:35 ---> package-listing.sh 03:46:35 ++ facter osfamily 03:46:35 ++ tr '[:upper:]' '[:lower:]' 03:46:36 + OS_FAMILY=debian 03:46:36 + workspace=/w/workspace/gexfoundry_device-sdk-go_PR-1123 03:46:36 + START_PACKAGES=/tmp/packages_start.txt 03:46:36 + END_PACKAGES=/tmp/packages_end.txt 03:46:36 + DIFF_PACKAGES=/tmp/packages_diff.txt 03:46:36 + PACKAGES=/tmp/packages_start.txt 03:46:36 + '[' /w/workspace/gexfoundry_device-sdk-go_PR-1123 ']' 03:46:36 + PACKAGES=/tmp/packages_end.txt 03:46:36 + case "${OS_FAMILY}" in 03:46:36 + dpkg -l 03:46:36 + grep '^ii' 03:46:36 + '[' -f /tmp/packages_start.txt ']' 03:46:36 + '[' -f /tmp/packages_end.txt ']' 03:46:36 + diff /tmp/packages_start.txt /tmp/packages_end.txt 03:46:36 + '[' /w/workspace/gexfoundry_device-sdk-go_PR-1123 ']' 03:46:36 + mkdir -p /w/workspace/gexfoundry_device-sdk-go_PR-1123/archives/ 03:46:36 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/gexfoundry_device-sdk-go_PR-1123/archives/ [Pipeline] echo 03:46: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-1123/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 03:46:36 + facter operatingsystem [Pipeline] isUnix [Pipeline] sh 03:46:36 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 03:46:36 . [Pipeline] withDockerContainer 03:46:36 prd-ubuntu20.04-docker-8c-8g-20764 does not seem to be running inside a container 03:46:36 $ docker run -t -d -u 1001:1001 --privileged -u 0:0 --net host -v /var/log/sysstat:/var/log/sysstat -v /var/log/secure:/var/log/secure -v /var/log/auth.log:/var/log/auth.log -v /w/workspace/gexfoundry_device-sdk-go_PR-1123/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-1123 -v /w/workspace/gexfoundry_device-sdk-go_PR-1123:/w/workspace/gexfoundry_device-sdk-go_PR-1123:rw,z -v /w/workspace/gexfoundry_device-sdk-go_PR-1123@tmp:/w/workspace/gexfoundry_device-sdk-go_PR-1123@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 03:46:37 $ docker top 7360829455bbbfcde24987591c25fcea23481fb2c51bb4fc1c14e645eaa287ef -eo pid,comm [Pipeline] { [Pipeline] sh 03:46:37 + touch /tmp/pre-build-complete [Pipeline] sh 03:46:37 + mkdir -p /var/log/sysstat [Pipeline] sh 03:46:38 + ls /var/log/sa-host 03:46:38 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 03:46:38 provisioning config files... 03:46:38 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-sdk-go_PR-1123@tmp/config613553018757304204tmp [Pipeline] { [Pipeline] echo 03:46:38 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 03:46:38 ---> create-netrc.sh [Pipeline] } 03:46:38 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 03:46:38 ---> python-tools-install.sh [Pipeline] echo 03:46:38 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 03:46:39 ---> sudo-logs.sh 03:46:39 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 03:46:39 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 03:46:39 ---> job-cost.sh 03:46:39 lf-activate-venv: SKIPPING 03:46:39 DEBUG: total: 0.2199999988079071 03:46:39 INFO: Retrieving Stack Cost... 03:46:39 INFO: Retrieving Pricing Info for: v3-standard-8 03:46:40 INFO: Archiving Costs [Pipeline] echo 03:46:40 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 03:46:40 ---> logs-deploy.sh 03:46:40 lf-activate-venv: SKIPPING 03:46:40 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-sdk-go/PR-1123/6 03:46:40 INFO: archiving workspace using pattern(s): 03:46:41 Archives upload complete. 03:46:41 INFO: archiving logs to Nexus