Pull request #275 opened Connecting to https://api.github.com using edgex-jenkins github personal access token Connecting to https://api.github.com to check permissions of obtain list of jpwhitemn for edgexfoundry/device-virtual-go Obtained Jenkinsfile from 5ba56e1622a9d0d2bcc2a0f5d43f121ca7cbd17c+351caebf32bba8e0fd88c5312046eae57dc27958 (e4e7142b9cc5ddca0424046710de92851429ab20) 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-ssh2653135153779382167.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-ssh2180632382478574509.key > git fetch --tags --progress -- origin +refs/heads/*:refs/remotes/origin/* # timeout=10 > git rev-parse refs/tags/stable^{commit} # timeout=10 Resolved tag stable revision c72b16708d6eed9a08be464a432ce22db7d90667 The recommended git tool is: git using credential edgex-jenkins-ssh Cloning the remote Git repository Cloning with configured refspecs honoured and with tags Cloning repository git@github.com:edgexfoundry/edgex-global-pipelines.git > git init /var/lib/jenkins/jobs/edgexfoundry/jobs/device-virtual-go/branches/PR-275/workspace@libs/edgex-global-pipelines # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/edgex-global-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-virtual-go/branches/PR-275/workspace@libs/edgex-global-pipelines@tmp/jenkins-gitclient-ssh2701030874965164730.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 > git config --add remote.origin.fetch +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Fetching with tags Fetching upstream changes from git@github.com:edgexfoundry/edgex-global-pipelines.git using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-virtual-go/branches/PR-275/workspace@libs/edgex-global-pipelines@tmp/jenkins-gitclient-ssh5755710025065298596.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision c72b16708d6eed9a08be464a432ce22db7d90667 (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f c72b16708d6eed9a08be464a432ce22db7d90667 # timeout=10 Commit message: "Merge pull request #378 from ernestojeda/ubuntu-20-changes" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 > git --version # timeout=10 > git --version # 'git version 2.16.6' Excluding src/test/ from checkout of git git@github.com:edgexfoundry/edgex-global-pipelines.git so that shared library test code cannot be accessed by Pipelines. To remove this log message, move the test code outside of src/. To restore the previous behavior that allowed access to files in src/test/, pass -Dorg.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.INCLUDE_SRC_TEST_IN_LIBRARIES=true to the java command used to start Jenkins. Loading library lf-pipelines@master Attempting to resolve master from remote references... > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /tmp/jenkins-gitclient-ssh1454366385451471025.key > git ls-remote -h -- git@github.com:lfit/releng-pipelines.git # timeout=10 Found match: refs/heads/master revision b3dada9287033e4e81bc68320e01fd57bef02650 The recommended git tool is: NONE using credential edgex-jenkins-ssh Cloning the remote Git repository Cloning with configured refspecs honoured and without tags Cloning repository git@github.com:lfit/releng-pipelines.git > git init /var/lib/jenkins/jobs/edgexfoundry/jobs/device-virtual-go/branches/PR-275/workspace@libs/lf-pipelines # timeout=10 Fetching upstream changes from git@github.com:lfit/releng-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-virtual-go/branches/PR-275/workspace@libs/lf-pipelines@tmp/jenkins-gitclient-ssh6475578000076468221.key > git fetch --no-tags --progress -- git@github.com:lfit/releng-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:lfit/releng-pipelines.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 Avoid second fetch Checking out Revision b3dada9287033e4e81bc68320e01fd57bef02650 (master) > git config core.sparsecheckout # timeout=10 > git checkout -f b3dada9287033e4e81bc68320e01fd57bef02650 # timeout=10 Commit message: "Fix: Update requirements.txt, update global-jjb" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 > git --version # timeout=10 > git --version # 'git version 2.16.6' fatal: bad object c72b16708d6eed9a08be464a432ce22db7d90667 Excluding src/test/ from checkout of git git@github.com:lfit/releng-pipelines.git so that shared library test code cannot be accessed by Pipelines. To remove this log message, move the test code outside of src/. To restore the previous behavior that allowed access to files in src/test/, pass -Dorg.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.INCLUDE_SRC_TEST_IN_LIBRARIES=true to the java command used to start Jenkins. [Pipeline] Start of Pipeline [Pipeline] echo ========================================================= [edgeXBuildGoApp] RAW Config: [project:device-virtual-go] ========================================================= [Pipeline] echo Setting up nodes based on requested architectures [[amd64, arm64]] [Pipeline] echo Nodes requested: [[ubuntu20.04-docker-8c-8g, ubuntu20.04-docker-arm64-4c-16g]] [Pipeline] echo ========================================================= [edgeXBuildGoApp] Pipeline Parameters: ========================================================= [Pipeline] echo MAVEN_SETTINGS: device-virtual-go-settings PROJECT: device-virtual-go USE_SEMVER: true TEST_SCRIPT: make test BUILD_SCRIPT: make build GO_VERSION: 1.17 USE_ALPINE: true DOCKER_FILE_PATH: Dockerfile DOCKER_BUILD_FILE_PATH: Dockerfile.build DOCKER_BUILD_CONTEXT: . DOCKER_BUILD_IMAGE_TARGET: builder DOCKER_IMAGE_NAME: device-virtual DOCKER_REGISTRY_NAMESPACE: DOCKER_NEXUS_REPO: staging BUILD_DOCKER_IMAGE: true PUSH_DOCKER_IMAGE: true BUILD_EXPERIMENTAL_DOCKER_IMAGE: false BUILD_STABLE_DOCKER_IMAGE: false SEMVER_BUMP_LEVEL: pre BUILD_SNAP: false PUBLISH_SWAGGER_DOCS: false SWAGGER_API_FOLDERS: openapi/v1 ARTIFACT_ROOT: archives/bin ARTIFACT_TYPES: docker SHOULD_BUILD: true BUILD_FAILURE_NOTIFY_LIST: edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] node Still waiting to schedule task Waiting for next available executor on ‘ubuntu20.04-docker-8c-8g’ Running on prd-ubuntu20.04-docker-8c-8g-11533 in /w/workspace/foundry_device-virtual-go_PR-275 [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-virtual-go.git > git init /w/workspace/foundry_device-virtual-go_PR-275 # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-virtual-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-virtual-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 Merging remotes/origin/main commit 351caebf32bba8e0fd88c5312046eae57dc27958 into PR head commit 5ba56e1622a9d0d2bcc2a0f5d43f121ca7cbd17c Merge succeeded, producing 5ba56e1622a9d0d2bcc2a0f5d43f121ca7cbd17c Checking out Revision 5ba56e1622a9d0d2bcc2a0f5d43f121ca7cbd17c (PR-275) > git config remote.origin.url git@github.com:edgexfoundry/device-virtual-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-virtual-go.git # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-virtual-go.git using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-virtual-go.git +refs/pull/275/head:refs/remotes/origin/PR-275 +refs/heads/main:refs/remotes/origin/main # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 5ba56e1622a9d0d2bcc2a0f5d43f121ca7cbd17c # 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 351caebf32bba8e0fd88c5312046eae57dc27958 # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 5ba56e1622a9d0d2bcc2a0f5d43f121ca7cbd17c # timeout=10 Commit message: "feat: enable security hardening" First time build. Skipping changelog. > git --version # timeout=10 > git --version # 'git version 2.25.1' fatal: bad object c72b16708d6eed9a08be464a432ce22db7d90667 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 00:09:38 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 00:09:38 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 00:09:38 ========================================================= 00:09:38 EdgeX Global Pipelines Version Info 00:09:38 ========================================================= [Pipeline] libraryResource [Pipeline] sh 00:09:39 ------------------- 00:09:39 stable info: 00:09:39 ------------------- 00:09:39 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 00:09:39 Commit SHA: c72b16708d6eed9a08be464a432ce22db7d90667 00:09:39 Message: update stable to v1.0.221 00:09:40 ------------------- 00:09:40 experimental info: 00:09:40 ------------------- 00:09:40 Commited By: **** collab-it+edgex@linuxfoundation.org 00:09:40 Commit SHA: c72b16708d6eed9a08be464a432ce22db7d90667 00:09:40 Message: update experimental to v1.0.221 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 00:09:40 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-virtual-go-settings [Pipeline] echo 00:09:40 [edgeXSetupEnvironment]: set envvar PROJECT = device-virtual-go [Pipeline] echo 00:09:40 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 00:09:40 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 00:09:40 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 00:09:40 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.17 [Pipeline] echo 00:09:40 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 00:09:40 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 00:09:40 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 00:09:40 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 00:09:40 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 00:09:40 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-virtual [Pipeline] echo 00:09:40 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 00:09:41 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 00:09:41 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 00:09:41 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 00:09:41 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 00:09:41 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 00:09:41 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 00:09:41 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 00:09:41 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 00:09:41 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 00:09:41 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 00:09:41 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 00:09:41 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 00:09:41 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 00:09:41 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-275 [Pipeline] echo 00:09:41 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-275 [Pipeline] echo 00:09:41 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-275 [Pipeline] echo 00:09:41 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 5ba56e1622a9d0d2bcc2a0f5d43f121ca7cbd17c [Pipeline] echo 00:09:41 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 5ba56e1 [Pipeline] echo 00:09:41 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 00:09:42 provisioning config files... 00:09:42 copy managed file [device-virtual-go-settings] to file:/w/workspace/foundry_device-virtual-go_PR-275@tmp/config4904557275719116886tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 00:09:42 ---> docker-login.sh 00:09:42 nexus3.edgexfoundry.org:10001 00:09:42 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:09:42 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:09:42 Configure a credential helper to remove this warning. See 00:09:42 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:09:42 00:09:42 Login Succeeded 00:09:42 nexus3.edgexfoundry.org:10002 00:09:42 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:09:42 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:09:42 Configure a credential helper to remove this warning. See 00:09:42 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:09:42 00:09:42 Login Succeeded 00:09:42 nexus3.edgexfoundry.org:10003 00:09:42 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:09:42 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:09:42 Configure a credential helper to remove this warning. See 00:09:42 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:09:42 00:09:42 Login Succeeded 00:09:42 nexus3.edgexfoundry.org:10004 00:09:43 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:09:43 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:09:43 Configure a credential helper to remove this warning. See 00:09:43 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:09:43 00:09:43 Login Succeeded 00:09:43 docker.io 00:09:43 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:09:43 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:09:43 Configure a credential helper to remove this warning. See 00:09:43 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:09:43 00:09:43 Login Succeeded 00:09:43 ---> docker-login.sh ends [Pipeline] } 00:09:43 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 00:09:44 + git rev-list -1 --merges 5ba56e1622a9d0d2bcc2a0f5d43f121ca7cbd17c~1..5ba56e1622a9d0d2bcc2a0f5d43f121ca7cbd17c [Pipeline] echo 00:09:44 -----------> git rev-list -1 --merges 5ba56e1622a9d0d2bcc2a0f5d43f121ca7cbd17c~1..5ba56e1622a9d0d2bcc2a0f5d43f121ca7cbd17c 5ba56e1622a9d0d2bcc2a0f5d43f121ca7cbd17c [false] [Pipeline] sh 00:09:44 + git log --format=format:%s -1 5ba56e1622a9d0d2bcc2a0f5d43f121ca7cbd17c [Pipeline] echo 00:09:44 ========================================================= 00:09:44 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 00:09:44 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 00:09:45 + git log --format=format:%s -1 5ba56e1622a9d0d2bcc2a0f5d43f121ca7cbd17c [Pipeline] echo 00:09:45 [semverPrep] GIT_COMMIT: 5ba56e1622a9d0d2bcc2a0f5d43f121ca7cbd17c, Commit Message: feat: enable security hardening [Pipeline] echo 00:09:45 [semverPrep] This is not a build commit. [Pipeline] sh 00:09:45 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 00:09:45 + grep -v github /etc/ssh/ssh_known_hosts 00:09:45 + [ -e /tmp/ssh_known_hosts ] 00:09:45 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 00:09:45 + echo+ github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 00:09:45 sudo tee -a /etc/ssh/ssh_known_hosts 00:09:45 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] sh 00:09:46 + docker inspect -f . nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 00:09:46 00:09:46 Error: No such object: nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] isUnix [Pipeline] sh 00:09:46 + docker pull nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 00:09:46 latest: Pulling from edgex-devops/git-semver 00:09:46 a0d0a0d46f8b: Pulling fs layer 00:09:46 3e5f54012d9b: Pulling fs layer 00:09:46 4c7163046ea9: Pulling fs layer 00:09:46 0c2d73faf560: Pulling fs layer 00:09:46 0c2d73faf560: Waiting 00:09:46 3e5f54012d9b: Verifying Checksum 00:09:46 3e5f54012d9b: Download complete 00:09:46 a0d0a0d46f8b: Download complete 00:09:46 0c2d73faf560: Verifying Checksum 00:09:46 0c2d73faf560: Download complete 00:09:46 4c7163046ea9: Verifying Checksum 00:09:46 4c7163046ea9: Download complete 00:09:46 a0d0a0d46f8b: Pull complete 00:09:46 3e5f54012d9b: Pull complete 00:09:47 4c7163046ea9: Pull complete 00:09:47 0c2d73faf560: Pull complete 00:09:47 Digest: sha256:2751de6e655929dcbe46418c7769d9d992331b5b721eb968631a4166222929f9 00:09:47 Status: Downloaded newer image for nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 00:09:47 nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] withDockerContainer 00:09:47 prd-ubuntu20.04-docker-8c-8g-11533 does not seem to be running inside a container 00:09:47 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/foundry_device-virtual-go_PR-275 -v /w/workspace/foundry_device-virtual-go_PR-275:/w/workspace/foundry_device-virtual-go_PR-275:rw,z -v /w/workspace/foundry_device-virtual-go_PR-275@tmp:/w/workspace/foundry_device-virtual-go_PR-275@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 00:09:48 $ docker top 81246e23687591bfde1bc34710dc603b5b7b39d7d3ee39c47a77e992d5f597e2 -eo pid,comm [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 00:09:48 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 00:09:48 [ssh-agent] Looking for ssh-agent implementation... 00:09:48 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 00:09:48 $ docker exec 81246e23687591bfde1bc34710dc603b5b7b39d7d3ee39c47a77e992d5f597e2 ssh-agent 00:09:48 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXhPnGiH/agent.13 00:09:48 SSH_AGENT_PID=19 00:09:48 Running ssh-add (command line suppressed) 00:09:48 Identity added: /w/workspace/foundry_device-virtual-go_PR-275@tmp/private_key_7391179558011055272.key (/w/workspace/foundry_device-virtual-go_PR-275@tmp/private_key_7391179558011055272.key) 00:09:48 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 00:09:49 + git tag --points-at HEAD [Pipeline] } 00:09:49 $ docker exec --env ******** --env ******** 81246e23687591bfde1bc34710dc603b5b7b39d7d3ee39c47a77e992d5f597e2 ssh-agent -k 00:09:49 unset SSH_AUTH_SOCK; 00:09:49 unset SSH_AGENT_PID; 00:09:49 echo Agent pid 19 killed; 00:09:49 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 00:09:49 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 00:09:49 [ssh-agent] Looking for ssh-agent implementation... 00:09:49 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 00:09:49 $ docker exec 81246e23687591bfde1bc34710dc603b5b7b39d7d3ee39c47a77e992d5f597e2 ssh-agent 00:09:49 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXfKpfpP/agent.51 00:09:49 SSH_AGENT_PID=57 00:09:49 Running ssh-add (command line suppressed) 00:09:49 Identity added: /w/workspace/foundry_device-virtual-go_PR-275@tmp/private_key_8586961985662323218.key (/w/workspace/foundry_device-virtual-go_PR-275@tmp/private_key_8586961985662323218.key) 00:09:49 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 00:09:50 + git semver init 00:09:50 # -> Open(): unable to determine branch for HEAD 00:09:50 # $GIT_DIR = /w/workspace/foundry_device-virtual-go_PR-275/.git 00:09:50 # $GIT_WORK_TREE = /w/workspace/foundry_device-virtual-go_PR-275 00:09:50 # $SEMVER_REMOTE_NAME = origin 00:09:50 # $SEMVER_USER_EMAIL = collab-it+edgex@linuxfoundation.org 00:09:50 # $SEMVER_USER_NAME = edgex-jenkins 00:09:50 # $SEMVER_BRANCH = PR-275 00:09:50 # $SEMVER_TEMP = /tmp/semver-631264587 00:09:50 # git clone --branch semver git@github.com:edgexfoundry/device-virtual-go.git $SEMVER_TEMP 00:09:51 # '/tmp/semver-631264587' -> '/w/workspace/foundry_device-virtual-go_PR-275/.semver' 00:09:51 # -> Force: false 00:09:51 # $SEMVER_DIR = /w/workspace/foundry_device-virtual-go_PR-275/.semver [Pipeline] } 00:09:51 $ docker exec --env ******** --env ******** 81246e23687591bfde1bc34710dc603b5b7b39d7d3ee39c47a77e992d5f597e2 ssh-agent -k 00:09:51 unset SSH_AUTH_SOCK; 00:09:51 unset SSH_AGENT_PID; 00:09:51 echo Agent pid 57 killed; 00:09:51 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 00:09:52 + git semver [Pipeline] } 00:09:52 $ docker stop --time=1 81246e23687591bfde1bc34710dc603b5b7b39d7d3ee39c47a77e992d5f597e2 00:09:53 $ docker rm -f 81246e23687591bfde1bc34710dc603b5b7b39d7d3ee39c47a77e992d5f597e2 [Pipeline] // withDockerContainer [Pipeline] sh 00:09:54 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 00:09:54 Stashed 1 file(s) [Pipeline] echo 00:09:54 [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 00:09:55 provisioning config files... 00:09:55 copy managed file [device-virtual-go-settings] to file:/w/workspace/foundry_device-virtual-go_PR-275@tmp/config6182404341037372469tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 00:09:55 ---> docker-login.sh 00:09:55 nexus3.edgexfoundry.org:10001 00:09:55 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:09:55 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:09:55 Configure a credential helper to remove this warning. See 00:09:55 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:09:55 00:09:55 Login Succeeded 00:09:55 nexus3.edgexfoundry.org:10002 00:09:55 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:09:55 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:09:55 Configure a credential helper to remove this warning. See 00:09:55 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:09:55 00:09:55 Login Succeeded 00:09:55 nexus3.edgexfoundry.org:10003 00:09:55 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:09:55 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:09:55 Configure a credential helper to remove this warning. See 00:09:55 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:09:55 00:09:55 Login Succeeded 00:09:55 nexus3.edgexfoundry.org:10004 00:09:56 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:09:56 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:09:56 Configure a credential helper to remove this warning. See 00:09:56 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:09:56 00:09:56 Login Succeeded 00:09:56 docker.io 00:09:56 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:09:56 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:09:56 Configure a credential helper to remove this warning. See 00:09:56 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:09:56 00:09:56 Login Succeeded 00:09:56 ---> docker-login.sh ends [Pipeline] } 00:09:56 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 00:09:56 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 00:09:56 ========================================================= 00:09:56 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine] 00:09:56 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 00:09:56 + docker build -t ci-base-image-x86_64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine --build-arg MAKE=echo noop --target=builder . 00:09:56 Sending build context to Docker daemon 22.89MB 00:09:56 Step 1/12 : ARG BASE=golang:1.17-alpine3.15 00:09:56 Step 2/12 : FROM ${BASE} AS builder 00:09:57 1.17-alpine: Pulling from edgex-devops/edgex-golang-base 00:09:57 59bf1c3509f3: Pulling fs layer 00:09:57 666ba61612fd: Pulling fs layer 00:09:57 8ed8ca486205: Pulling fs layer 00:09:57 4fe6c5a15a65: Pulling fs layer 00:09:57 22a0e8bec74d: Pulling fs layer 00:09:57 640e595b4fbd: Pulling fs layer 00:09:57 763cafe07f6e: Pulling fs layer 00:09:57 0c0b528cf693: Pulling fs layer 00:09:57 10935f4eaf8b: Pulling fs layer 00:09:57 0c0b528cf693: Waiting 00:09:57 22a0e8bec74d: Waiting 00:09:57 4fe6c5a15a65: Waiting 00:09:57 10935f4eaf8b: Waiting 00:09:57 640e595b4fbd: Waiting 00:09:57 763cafe07f6e: Waiting 00:09:57 8ed8ca486205: Verifying Checksum 00:09:57 8ed8ca486205: Download complete 00:09:57 666ba61612fd: Download complete 00:09:57 22a0e8bec74d: Download complete 00:09:57 640e595b4fbd: Verifying Checksum 00:09:57 640e595b4fbd: Download complete 00:09:57 763cafe07f6e: Verifying Checksum 00:09:57 763cafe07f6e: Download complete 00:09:57 59bf1c3509f3: Download complete 00:09:57 0c0b528cf693: Verifying Checksum 00:09:57 0c0b528cf693: Download complete 00:09:57 59bf1c3509f3: Pull complete 00:09:57 666ba61612fd: Pull complete 00:09:57 8ed8ca486205: Pull complete 00:09:58 4fe6c5a15a65: Verifying Checksum 00:09:58 4fe6c5a15a65: Download complete 00:09:58 10935f4eaf8b: Verifying Checksum 00:09:58 10935f4eaf8b: Download complete 00:10:02 4fe6c5a15a65: Pull complete 00:10:02 22a0e8bec74d: Pull complete 00:10:02 640e595b4fbd: Pull complete 00:10:02 763cafe07f6e: Pull complete 00:10:02 0c0b528cf693: Pull complete 00:10:04 10935f4eaf8b: Pull complete 00:10:04 Digest: sha256:fe2da51ced2bed6c5fc1d1038c2fbec5a5bb29cdcacce78977c37c66bfba8387 00:10:04 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine 00:10:04 ---> 99d49a6021b9 00:10:04 Step 3/12 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 00:10:05 ---> Running in bd3ab11eeecb 00:10:05 Removing intermediate container bd3ab11eeecb 00:10:05 ---> 13738017ece9 00:10:05 Step 4/12 : ARG ALPINE_PKG_EXTRA="" 00:10:05 ---> Running in f39f91861d51 00:10:05 Removing intermediate container f39f91861d51 00:10:05 ---> 160397ba0228 00:10:05 Step 5/12 : WORKDIR /device-virtual-go 00:10:05 ---> Running in 776abecdeb9f 00:10:05 Removing intermediate container 776abecdeb9f 00:10:05 ---> 38b295d8ce37 00:10:05 Step 6/12 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 00:10:06 ---> Running in a6aabd0961ce 00:10:06 Removing intermediate container a6aabd0961ce 00:10:06 ---> 6fcba02900e2 00:10:06 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 00:10:06 ---> Running in 088df7945ec5 00:10:06 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 00:10:07 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 00:10:08 (1/4) Installing openssh-keygen (8.8_p1-r1) 00:10:08 (2/4) Installing libedit (20210910.3.1-r0) 00:10:08 (3/4) Installing openssh-client-common (8.8_p1-r1) 00:10:08 (4/4) Installing openssh-client-default (8.8_p1-r1) 00:10:08 Executing busybox-1.34.1-r3.trigger 00:10:08 OK: 224 MiB in 56 packages 00:10:08 Removing intermediate container 088df7945ec5 00:10:08 ---> 8d2e890e56bc 00:10:08 Step 8/12 : COPY go.mod vendor* ./ 00:10:08 ---> e4f0f10ce401 00:10:08 Step 9/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 00:10:08 ---> Running in c037644c785e 00:10:09 Still waiting to schedule task 00:10:09 Waiting for next available executor on ‘ubuntu20.04-docker-arm64-4c-16g’ 00:10:23 Removing intermediate container c037644c785e 00:10:23 ---> f957c10c94d9 00:10:23 Step 10/12 : COPY . . 00:10:23 ---> 5fd35b525fdc 00:10:23 Step 11/12 : ARG MAKE='make build' 00:10:23 ---> Running in 6467b53b7bd5 00:10:23 Removing intermediate container 6467b53b7bd5 00:10:23 ---> 81bfd4555caf 00:10:23 Step 12/12 : RUN $MAKE 00:10:23 ---> Running in 010e2318eed4 00:10:23 noop 00:10:23 Removing intermediate container 010e2318eed4 00:10:23 ---> 38adec4e9745 00:10:23 Successfully built 38adec4e9745 00:10:23 Successfully tagged ci-base-image-x86_64:latest [Pipeline] isUnix [Pipeline] sh 00:10:24 + docker inspect -f . ci-base-image-x86_64 00:10:24 . [Pipeline] withDockerContainer 00:10:24 prd-ubuntu20.04-docker-8c-8g-11533 does not seem to be running inside a container 00:10:24 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/foundry_device-virtual-go_PR-275 -v /w/workspace/foundry_device-virtual-go_PR-275:/w/workspace/foundry_device-virtual-go_PR-275:rw,z -v /w/workspace/foundry_device-virtual-go_PR-275@tmp:/w/workspace/foundry_device-virtual-go_PR-275@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 00:10:24 $ docker top 3a9d9196173da6a1298a7831ce5866a3e05391e5722a0708f353152db630c021 -eo pid,comm [Pipeline] { [Pipeline] sh 00:10:25 + go version 00:10:25 go version go1.17.6 linux/amd64 [Pipeline] } 00:10:25 $ docker stop --time=1 3a9d9196173da6a1298a7831ce5866a3e05391e5722a0708f353152db630c021 00:10:26 $ docker rm -f 3a9d9196173da6a1298a7831ce5866a3e05391e5722a0708f353152db630c021 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 00:10:27 + docker inspect -f . ci-base-image-x86_64 00:10:27 . [Pipeline] withDockerContainer 00:10:27 prd-ubuntu20.04-docker-8c-8g-11533 does not seem to be running inside a container 00:10:27 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/foundry_device-virtual-go_PR-275 -v /w/workspace/foundry_device-virtual-go_PR-275:/w/workspace/foundry_device-virtual-go_PR-275:rw,z -v /w/workspace/foundry_device-virtual-go_PR-275@tmp:/w/workspace/foundry_device-virtual-go_PR-275@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 00:10:27 $ docker top bca787c7eb0206c4beb846b41a31416c7b19acb2ec696a814abfd6d47908d015 -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 00:10:28 + make test 00:10:28 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out 00:10:28 ? github.com/edgexfoundry/device-virtual-go [no test files] 00:10:38 ? github.com/edgexfoundry/device-virtual-go/cmd [no test files] 00:10:38 ok github.com/edgexfoundry/device-virtual-go/internal/driver 0.038s coverage: 65.7% of statements 00:10:43 CGO_ENABLED=1 GO111MODULE=on go vet ./... 00:10:47 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 00:10:47 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 00:10:47 ./bin/test-attribution-txt.sh [Pipeline] echo 00:10:48 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 00:10:48 $ docker stop --time=1 bca787c7eb0206c4beb846b41a31416c7b19acb2ec696a814abfd6d47908d015 00:10:49 $ docker rm -f bca787c7eb0206c4beb846b41a31416c7b19acb2ec696a814abfd6d47908d015 [Pipeline] // withDockerContainer [Pipeline] sh 00:10:50 + sudo chown -R jenkins:jenkins . [Pipeline] stash 00:10:50 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 00:10:51 + sudo chown -R jenkins:jenkins . [Pipeline] sh 00:10:52 + ls -al . 00:10:52 total 184 00:10:52 drwxrwxr-x 8 jenkins jenkins 4096 Apr 8 00:10 . 00:10:52 drwxrwxr-x 4 jenkins jenkins 4096 Apr 8 00:09 .. 00:10:52 drwxrwxr-x 8 jenkins jenkins 4096 Apr 8 00:09 .git 00:10:52 drwxrwxr-x 2 jenkins jenkins 4096 Apr 8 00:09 .github 00:10:52 -rw-rw-r-- 1 jenkins jenkins 270 Apr 8 00:09 .gitignore 00:10:52 -rw-rw-r-- 1 jenkins jenkins 41 Apr 8 00:09 .golangci.yml 00:10:52 drwx------ 3 jenkins jenkins 4096 Apr 8 00:09 .semver 00:10:52 -rw-rw-r-- 1 jenkins jenkins 7750 Apr 8 00:09 Attribution.txt 00:10:52 -rw-rw-r-- 1 jenkins jenkins 6349 Apr 8 00:09 CHANGELOG.md 00:10:52 -rw-rw-r-- 1 jenkins jenkins 1974 Apr 8 00:09 Dockerfile 00:10:52 -rw-rw-r-- 1 jenkins jenkins 677 Apr 8 00:09 GOVERNANCE.md 00:10:52 -rw-rw-r-- 1 jenkins jenkins 660 Apr 8 00:09 Jenkinsfile 00:10:52 -rw-rw-r-- 1 jenkins jenkins 11340 Apr 8 00:09 LICENSE 00:10:52 -rw-rw-r-- 1 jenkins jenkins 2042 Apr 8 00:09 Makefile 00:10:52 -rw-rw-r-- 1 jenkins jenkins 623 Apr 8 00:09 OWNERS.md 00:10:52 -rw-rw-r-- 1 jenkins jenkins 2914 Apr 8 00:09 README.md 00:10:52 -rw-rw-r-- 1 jenkins jenkins 5 Apr 8 00:09 VERSION 00:10:52 drwxrwxr-x 2 jenkins jenkins 4096 Apr 8 00:09 bin 00:10:52 drwxrwxr-x 3 jenkins jenkins 4096 Apr 8 00:09 cmd 00:10:52 -rw-r--r-- 1 jenkins jenkins 44128 Apr 8 00:10 coverage.out 00:10:52 -rw-rw-r-- 1 jenkins jenkins 3092 Apr 8 00:09 go.mod 00:10:52 -rw-rw-r-- 1 jenkins jenkins 34471 Apr 8 00:09 go.sum 00:10:52 drwxrwxr-x 3 jenkins jenkins 4096 Apr 8 00:09 internal 00:10:52 -rw-rw-r-- 1 jenkins jenkins 235 Apr 8 00:09 version.go [Pipeline] isUnix [Pipeline] sh 00:10:52 + docker build -t device-virtual -f Dockerfile --build-arg BASE=ci-base-image-x86_64 --build-arg MAKE=make build --build-arg ARCH=amd64 --label git_sha=5ba56e1622a9d0d2bcc2a0f5d43f121ca7cbd17c --label arch=amd64 --label version=0.0.0 . 00:10:52 Sending build context to Docker daemon 22.94MB 00:10:52 Step 1/26 : ARG BASE=golang:1.17-alpine3.15 00:10:52 Step 2/26 : FROM ${BASE} AS builder 00:10:52 ---> 38adec4e9745 00:10:52 Step 3/26 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 00:10:52 ---> Running in 83d216dcd773 00:10:52 Removing intermediate container 83d216dcd773 00:10:52 ---> cfa50311405f 00:10:52 Step 4/26 : ARG ALPINE_PKG_EXTRA="" 00:10:52 ---> Running in 5e2b9d686443 00:10:52 Removing intermediate container 5e2b9d686443 00:10:52 ---> be9c396b6782 00:10:52 Step 5/26 : WORKDIR /device-virtual-go 00:10:52 ---> Running in 251fd4036ac2 00:10:52 Removing intermediate container 251fd4036ac2 00:10:52 ---> 06516e0bdf87 00:10:52 Step 6/26 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 00:10:52 ---> Running in 47631323b12c 00:10:53 Removing intermediate container 47631323b12c 00:10:53 ---> 4a66f58072c1 00:10:53 Step 7/26 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 00:10:53 ---> Running in 72f80318f968 00:10:53 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 00:10:54 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 00:10:54 OK: 224 MiB in 56 packages 00:10:55 Removing intermediate container 72f80318f968 00:10:55 ---> 83a3654971db 00:10:55 Step 8/26 : COPY go.mod vendor* ./ 00:10:55 ---> 6818f6c962d6 00:10:55 Step 9/26 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 00:10:55 ---> Running in 77f56ad70ec9 00:10:56 Removing intermediate container 77f56ad70ec9 00:10:56 ---> 78816889a89f 00:10:56 Step 10/26 : COPY . . 00:10:56 ---> fe61b109c3a5 00:10:56 Step 11/26 : ARG MAKE='make build' 00:10:56 ---> Running in ea2d2df82944 00:10:56 Removing intermediate container ea2d2df82944 00:10:56 ---> dcb566b9f904 00:10:56 Step 12/26 : RUN $MAKE 00:10:56 ---> Running in 1142b3c97f42 00:10:57 CGO_ENABLED=1 GO111MODULE=on go build -ldflags "-linkmode=external -X github.com/edgexfoundry/device-virtual-go.Version=0.0.0" -trimpath -mod=readonly -buildmode=pie -o cmd/device-virtual ./cmd 00:11:19 Removing intermediate container 1142b3c97f42 00:11:19 ---> f2feb695fd3c 00:11:19 Step 13/26 : FROM alpine:3.14 00:11:19 3.14: Pulling from library/alpine 00:11:19 8663204ce13b: Pulling fs layer 00:11:19 8663204ce13b: Download complete 00:11:19 8663204ce13b: Pull complete 00:11:19 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 00:11:19 Status: Downloaded newer image for alpine:3.14 00:11:19 ---> e04c818066af 00:11:19 Step 14/26 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IOTech' 00:11:19 ---> Running in 7498117b03f2 00:11:19 Removing intermediate container 7498117b03f2 00:11:19 ---> c48066d44ac5 00:11:19 Step 15/26 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 00:11:19 ---> Running in abebe01e037a 00:11:19 Removing intermediate container abebe01e037a 00:11:19 ---> 17a34113c036 00:11:19 Step 16/26 : RUN apk add --update --no-cache zeromq dumb-init 00:11:19 ---> Running in d1d33d56c019 00:11:19 fetch https://nl.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz 00:11:19 fetch https://nl.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz 00:11:20 (1/6) Installing dumb-init (1.2.5-r1) 00:11:20 (2/6) Installing libgcc (10.3.1_git20210424-r2) 00:11:20 (3/6) Installing libsodium (1.0.18-r0) 00:11:20 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 00:11:20 (5/6) Installing libzmq (4.3.4-r0) 00:11:20 (6/6) Installing zeromq (4.3.4-r0) 00:11:20 Executing busybox-1.33.1-r7.trigger 00:11:20 OK: 8 MiB in 20 packages 00:11:21 Removing intermediate container d1d33d56c019 00:11:21 ---> ccd01353d89c 00:11:21 Step 17/26 : WORKDIR / 00:11:21 ---> Running in a6fb113409ff 00:11:21 Removing intermediate container a6fb113409ff 00:11:21 ---> 6d6a444165a2 00:11:21 Step 18/26 : COPY --from=builder /device-virtual-go/Attribution.txt / 00:11:21 ---> 2baa62843bb4 00:11:21 Step 19/26 : COPY --from=builder /device-virtual-go/LICENSE / 00:11:21 ---> 2a9c0f8a3bdd 00:11:21 Step 20/26 : COPY --from=builder /device-virtual-go/cmd / 00:11:22 ---> a061d7fa40c0 00:11:22 Step 21/26 : EXPOSE 59900 00:11:22 ---> Running in 05fe609f268e 00:11:22 Removing intermediate container 05fe609f268e 00:11:22 ---> e9cd04a38cc5 00:11:22 Step 22/26 : ENTRYPOINT ["/device-virtual"] 00:11:22 ---> Running in 610dc9b884fe 00:11:22 Removing intermediate container 610dc9b884fe 00:11:22 ---> f80ca7fd85b2 00:11:22 Step 23/26 : CMD ["--cp=consul.http://edgex-core-consul:8500", "--registry", "--confdir=/res"] 00:11:22 ---> Running in 27847d2b000d 00:11:22 Removing intermediate container 27847d2b000d 00:11:22 ---> 861a40507b3f 00:11:22 Step 24/26 : LABEL arch=amd64 00:11:22 ---> Running in 7e48bfcd12ea 00:11:22 Removing intermediate container 7e48bfcd12ea 00:11:22 ---> fe273410d016 00:11:22 Step 25/26 : LABEL git_sha=5ba56e1622a9d0d2bcc2a0f5d43f121ca7cbd17c 00:11:22 ---> Running in 54fe3b7f21e3 00:11:22 Removing intermediate container 54fe3b7f21e3 00:11:22 ---> 3e78f4fc67f9 00:11:22 Step 26/26 : LABEL version=0.0.0 00:11:22 ---> Running in f933cc72b87f 00:11:22 Removing intermediate container f933cc72b87f 00:11:22 ---> 3109b3701b4d 00:11:22 [Warning] One or more build-args [ARCH] were not consumed 00:11:22 Successfully built 3109b3701b4d 00:11:22 Successfully tagged device-virtual: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 00:11:23 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 00:11:23 00:11:23 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] sh 00:11:24 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 00:11:24 latest: Pulling from edgex-lftools-log-publisher 00:11:24 5eb5b503b376: Pulling fs layer 00:11:24 5c69ac0246d0: Pulling fs layer 00:11:24 ec43610c2a17: Pulling fs layer 00:11:24 3a2ae6a8a46f: Pulling fs layer 00:11:24 33b1e0a273af: Pulling fs layer 00:11:24 5d3b04190fa2: Pulling fs layer 00:11:24 2f39f015ded8: Pulling fs layer 00:11:24 33b1e0a273af: Waiting 00:11:24 5d3b04190fa2: Waiting 00:11:24 3a2ae6a8a46f: Waiting 00:11:24 5c69ac0246d0: Verifying Checksum 00:11:24 5c69ac0246d0: Download complete 00:11:24 3a2ae6a8a46f: Verifying Checksum 00:11:24 3a2ae6a8a46f: Download complete 00:11:24 33b1e0a273af: Verifying Checksum 00:11:24 33b1e0a273af: Download complete 00:11:24 5d3b04190fa2: Verifying Checksum 00:11:24 5d3b04190fa2: Download complete 00:11:24 ec43610c2a17: Verifying Checksum 00:11:24 ec43610c2a17: Download complete 00:11:24 5eb5b503b376: Verifying Checksum 00:11:24 5eb5b503b376: Download complete 00:11:24 2f39f015ded8: Download complete 00:11:25 5eb5b503b376: Pull complete 00:11:25 5c69ac0246d0: Pull complete 00:11:26 ec43610c2a17: Pull complete 00:11:26 3a2ae6a8a46f: Pull complete 00:11:26 33b1e0a273af: Pull complete 00:11:26 5d3b04190fa2: Pull complete 00:11:30 2f39f015ded8: Pull complete 00:11:30 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 00:11:30 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 00:11:30 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] withDockerContainer 00:11:31 prd-ubuntu20.04-docker-8c-8g-11533 does not seem to be running inside a container 00:11:31 $ 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/foundry_device-virtual-go_PR-275 -v /w/workspace/foundry_device-virtual-go_PR-275:/w/workspace/foundry_device-virtual-go_PR-275:rw,z -v /w/workspace/foundry_device-virtual-go_PR-275@tmp:/w/workspace/foundry_device-virtual-go_PR-275@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 00:11:33 $ docker top 87e66122622496bbe5f9f5decfeb06e8367efe2a564df024317362f93108d711 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 00:11:33 ---> job-cost.sh 00:11:33 lf-activate-venv: SKIPPING 00:11:33 INFO: No Stack... 00:11:34 INFO: Retrieving Pricing Info for: v3-standard-8 00:11:34 INFO: Archiving Costs [Pipeline] sh 00:11:34 + + cut -d, -f6cat 00:11:34 /w/workspace/foundry_device-virtual-go_PR-275/archives/cost.csv [Pipeline] lock 00:11:34 Trying to acquire lock on [jenkins-edgexfoundry-device-virtual-go-PR-275-1-stack-cost] 00:11:34 Resource [jenkins-edgexfoundry-device-virtual-go-PR-275-1-stack-cost] did not exist. Created. 00:11:34 Lock acquired on [jenkins-edgexfoundry-device-virtual-go-PR-275-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 00:11:35 + echo total: 0.2199999988079071 [Pipeline] stash 00:11:35 Stashed 1 file(s) [Pipeline] } 00:11:35 Lock released on resource [jenkins-edgexfoundry-device-virtual-go-PR-275-1-stack-cost] [Pipeline] // lock [Pipeline] } 00:11:35 $ docker stop --time=1 87e66122622496bbe5f9f5decfeb06e8367efe2a564df024317362f93108d711 00:11:36 $ docker rm -f 87e66122622496bbe5f9f5decfeb06e8367efe2a564df024317362f93108d711 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 00:13:20 Running on prd-ubuntu20.04-docker-arm64-4c-16g-11534 in /w/workspace/foundry_device-virtual-go_PR-275 [Pipeline] { [Pipeline] ws 00:13:20 Running in /w/workspace/device-virtual-go/1 [Pipeline] { [Pipeline] checkout 00:13:20 The recommended git tool is: git 00:13:27 using credential edgex-jenkins-ssh 00:13:27 Cloning the remote Git repository 00:13:27 Cloning repository git@github.com:edgexfoundry/device-virtual-go.git 00:13:27 > git init /w/workspace/device-virtual-go/1 # timeout=10 00:13:28 Fetching upstream changes from git@github.com:edgexfoundry/device-virtual-go.git 00:13:28 > git --version # timeout=10 00:13:28 > git --version # 'git version 2.25.1' 00:13:28 using GIT_SSH to set credentials SSH Credentials for GitHub 00:13:28 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-virtual-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 00:13:31 Merging remotes/origin/main commit 351caebf32bba8e0fd88c5312046eae57dc27958 into PR head commit 5ba56e1622a9d0d2bcc2a0f5d43f121ca7cbd17c 00:13:30 > git config remote.origin.url git@github.com:edgexfoundry/device-virtual-go.git # timeout=10 00:13:30 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 00:13:30 > git config remote.origin.url git@github.com:edgexfoundry/device-virtual-go.git # timeout=10 00:13:30 Fetching upstream changes from git@github.com:edgexfoundry/device-virtual-go.git 00:13:30 using GIT_SSH to set credentials SSH Credentials for GitHub 00:13:30 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-virtual-go.git +refs/pull/275/head:refs/remotes/origin/PR-275 +refs/heads/main:refs/remotes/origin/main # timeout=10 00:13:31 > git config core.sparsecheckout # timeout=10 00:13:31 > git checkout -f 5ba56e1622a9d0d2bcc2a0f5d43f121ca7cbd17c # timeout=10 00:13:31 Merge succeeded, producing 5ba56e1622a9d0d2bcc2a0f5d43f121ca7cbd17c 00:13:31 Checking out Revision 5ba56e1622a9d0d2bcc2a0f5d43f121ca7cbd17c (PR-275) 00:13:31 > git remote # timeout=10 00:13:31 > git config --get remote.origin.url # timeout=10 00:13:31 using GIT_SSH to set credentials SSH Credentials for GitHub 00:13:31 > git merge 351caebf32bba8e0fd88c5312046eae57dc27958 # timeout=10 00:13:31 > git rev-parse HEAD^{commit} # timeout=10 00:13:31 > git config core.sparsecheckout # timeout=10 00:13:31 > git checkout -f 5ba56e1622a9d0d2bcc2a0f5d43f121ca7cbd17c # timeout=10 00:13:36 Commit message: "feat: enable security hardening" 00:13:36 > git --version # timeout=10 00:13:36 > git --version # 'git version 2.25.1' 00:13:36 fatal: bad object c72b16708d6eed9a08be464a432ce22db7d90667 [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 00:13:37 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 00:13:37 % Total % Received % Xferd Average Speed Time Time Time Current 00:13:37 Dload Upload Total Spent Left Speed 00:13:37 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 11843 100 11843 0 0 53831 0 --:--:-- --:--:-- --:--:-- 54077 [Pipeline] sh 00:13:37 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 00:13:38 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json+ 00:13:38 sudo tee /etc/docker/daemon.new 00:13:38 { 00:13:38 "registry-mirrors": [ 00:13:38 "https://nexus3.edgexfoundry.org:10001" 00:13:38 ], 00:13:38 "bip": "10.250.0.254/24", 00:13:38 "hosts": [ 00:13:38 "tcp://0.0.0.0:5555", 00:13:38 "unix:///var/run/docker.sock" 00:13:38 ], 00:13:38 "mtu": 1458, 00:13:38 "selinux-enabled": true, 00:13:38 "seccomp-profile": "/etc/docker/seccomp.json" 00:13:38 } [Pipeline] sh 00:13:38 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 00:13:38 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 00:13:57 provisioning config files... 00:13:57 copy managed file [device-virtual-go-settings] to file:/w/workspace/device-virtual-go/1@tmp/config6887915308069322526tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 00:13:57 ---> docker-login.sh 00:13:57 nexus3.edgexfoundry.org:10001 00:13:58 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:13:58 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:13:58 Configure a credential helper to remove this warning. See 00:13:58 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:13:58 00:13:58 Login Succeeded 00:13:58 nexus3.edgexfoundry.org:10002 00:13:58 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:13:59 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:13:59 Configure a credential helper to remove this warning. See 00:13:59 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:13:59 00:13:59 Login Succeeded 00:13:59 nexus3.edgexfoundry.org:10003 00:13:59 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:13:59 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:13:59 Configure a credential helper to remove this warning. See 00:13:59 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:13:59 00:13:59 Login Succeeded 00:13:59 nexus3.edgexfoundry.org:10004 00:14:00 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:14:00 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:14:00 Configure a credential helper to remove this warning. See 00:14:00 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:14:00 00:14:00 Login Succeeded 00:14:00 docker.io 00:14:00 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:14:00 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:14:00 Configure a credential helper to remove this warning. See 00:14:00 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:14:00 00:14:00 Login Succeeded 00:14:00 ---> docker-login.sh ends [Pipeline] } 00:14:00 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 00:14:01 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 00:14:01 ========================================================= 00:14:01 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine] 00:14:01 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 00:14:01 + docker build -t ci-base-image-arm64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine --build-arg MAKE=echo noop --target=builder . 00:14:02 Sending build context to Docker daemon 11.58MB 00:14:02 Step 1/12 : ARG BASE=golang:1.17-alpine3.15 00:14:02 Step 2/12 : FROM ${BASE} AS builder 00:14:02 1.17-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 00:14:02 9b3977197b4f: Pulling fs layer 00:14:02 1a89e8eeedd5: Pulling fs layer 00:14:02 94645a83ff95: Pulling fs layer 00:14:02 3f3a8bcf1eab: Pulling fs layer 00:14:02 0c92f367c5e7: Pulling fs layer 00:14:02 f7c0051592d6: Pulling fs layer 00:14:02 a227ed2f7395: Pulling fs layer 00:14:02 7b1c46037f91: Pulling fs layer 00:14:02 3f3a8bcf1eab: Waiting 00:14:02 0c92f367c5e7: Waiting 00:14:02 7b1c46037f91: Waiting 00:14:02 a227ed2f7395: Waiting 00:14:02 94645a83ff95: Download complete 00:14:02 1a89e8eeedd5: Verifying Checksum 00:14:02 1a89e8eeedd5: Download complete 00:14:02 0c92f367c5e7: Download complete 00:14:02 f7c0051592d6: Verifying Checksum 00:14:02 f7c0051592d6: Download complete 00:14:02 9b3977197b4f: Verifying Checksum 00:14:02 9b3977197b4f: Download complete 00:14:02 a227ed2f7395: Verifying Checksum 00:14:02 a227ed2f7395: Download complete 00:14:03 9b3977197b4f: Pull complete 00:14:03 1a89e8eeedd5: Pull complete 00:14:04 94645a83ff95: Pull complete 00:14:04 7b1c46037f91: Verifying Checksum 00:14:04 7b1c46037f91: Download complete 00:14:05 3f3a8bcf1eab: Download complete 00:14:17 3f3a8bcf1eab: Pull complete 00:14:17 0c92f367c5e7: Pull complete 00:14:17 f7c0051592d6: Pull complete 00:14:17 a227ed2f7395: Pull complete 00:14:22 7b1c46037f91: Pull complete 00:14:22 Digest: sha256:72afd471f6932efc3b14a707e53dab7ff98911016b282aefa83be7c085db88fe 00:14:22 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine 00:14:22 ---> f79e39bc4007 00:14:22 Step 3/12 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 00:14:23 ---> Running in 7ed64e7efdfa 00:14:24 Removing intermediate container 7ed64e7efdfa 00:14:24 ---> 6c0ba667b8ee 00:14:24 Step 4/12 : ARG ALPINE_PKG_EXTRA="" 00:14:24 ---> Running in 54109be0dd7d 00:14:24 Removing intermediate container 54109be0dd7d 00:14:24 ---> 7a342c6c87cd 00:14:24 Step 5/12 : WORKDIR /device-virtual-go 00:14:24 ---> Running in d8c6c344a568 00:14:25 Removing intermediate container d8c6c344a568 00:14:25 ---> 286c64a83715 00:14:25 Step 6/12 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 00:14:25 ---> Running in ef0ca03469a4 00:14:27 Removing intermediate container ef0ca03469a4 00:14:27 ---> 6472ffc5ea36 00:14:27 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 00:14:27 ---> Running in ba9384681da4 00:14:27 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 00:14:28 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 00:14:29 (1/4) Installing openssh-keygen (8.8_p1-r1) 00:14:29 (2/4) Installing libedit (20210910.3.1-r0) 00:14:29 (3/4) Installing openssh-client-common (8.8_p1-r1) 00:14:30 (4/4) Installing openssh-client-default (8.8_p1-r1) 00:14:30 Executing busybox-1.34.1-r3.trigger 00:14:30 OK: 224 MiB in 56 packages 00:14:31 Removing intermediate container ba9384681da4 00:14:31 ---> ef8ff872eef2 00:14:31 Step 8/12 : COPY go.mod vendor* ./ 00:14:31 ---> 1dd6fe88a84b 00:14:31 Step 9/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 00:14:32 ---> Running in a32007730ee3 00:15:19 Removing intermediate container a32007730ee3 00:15:19 ---> 0f5f2cac00c2 00:15:19 Step 10/12 : COPY . . 00:15:19 ---> 4a98a9133400 00:15:19 Step 11/12 : ARG MAKE='make build' 00:15:19 ---> Running in fec4c504264b 00:15:19 Removing intermediate container fec4c504264b 00:15:19 ---> d0d4c347d90c 00:15:19 Step 12/12 : RUN $MAKE 00:15:20 ---> Running in 2cbc238e0c90 00:15:20 noop 00:15:21 Removing intermediate container 2cbc238e0c90 00:15:21 ---> 556da0566a66 00:15:21 Successfully built 556da0566a66 00:15:21 Successfully tagged ci-base-image-arm64:latest [Pipeline] isUnix [Pipeline] sh 00:15:21 + docker inspect -f . ci-base-image-arm64 00:15:21 . [Pipeline] withDockerContainer 00:15:22 prd-ubuntu20.04-docker-arm64-4c-16g-11534 does not seem to be running inside a container 00:15:22 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-virtual-go/1 -v /w/workspace/device-virtual-go/1:/w/workspace/device-virtual-go/1:rw,z -v /w/workspace/device-virtual-go/1@tmp:/w/workspace/device-virtual-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 00:15:23 $ docker top d9f3afab410ed6cf74dbd0ffb6d4d7a05fd6cf0fbf0fc5b1757385c48d107fd1 -eo pid,comm [Pipeline] { [Pipeline] sh 00:15:24 + go version 00:15:24 go version go1.17.6 linux/arm64 [Pipeline] } 00:15:24 $ docker stop --time=1 d9f3afab410ed6cf74dbd0ffb6d4d7a05fd6cf0fbf0fc5b1757385c48d107fd1 00:15:26 $ docker rm -f d9f3afab410ed6cf74dbd0ffb6d4d7a05fd6cf0fbf0fc5b1757385c48d107fd1 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 00:15:27 + docker inspect -f . ci-base-image-arm64 00:15:27 . [Pipeline] withDockerContainer 00:15:27 prd-ubuntu20.04-docker-arm64-4c-16g-11534 does not seem to be running inside a container 00:15:27 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-virtual-go/1 -v /w/workspace/device-virtual-go/1:/w/workspace/device-virtual-go/1:rw,z -v /w/workspace/device-virtual-go/1@tmp:/w/workspace/device-virtual-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 00:15:28 $ docker top 5ba6849aae0c675680e2f6c0e5dbb742817cb36bdfd798bc106492465596d496 -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 00:15:29 + make test 00:15:29 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out 00:15:31 ? github.com/edgexfoundry/device-virtual-go [no test files] 00:16:53 ? github.com/edgexfoundry/device-virtual-go/cmd [no test files] 00:16:53 ok github.com/edgexfoundry/device-virtual-go/internal/driver 0.143s coverage: 65.7% of statements 00:16:53 WARNING: Linting skipped (not on x86_64 or linter not installed) 00:16:53 CGO_ENABLED=1 GO111MODULE=on go vet ./... 00:17:15 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 00:17:15 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 00:17:15 ./bin/test-attribution-txt.sh [Pipeline] echo 00:17:16 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 00:17:17 $ docker stop --time=1 5ba6849aae0c675680e2f6c0e5dbb742817cb36bdfd798bc106492465596d496 00:17:18 $ docker rm -f 5ba6849aae0c675680e2f6c0e5dbb742817cb36bdfd798bc106492465596d496 [Pipeline] // withDockerContainer [Pipeline] sh 00:17:19 + sudo chown -R jenkins:jenkins . [Pipeline] stash 00:17:19 Warning: overwriting stash ‘coverage-report’ 00:17:20 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 00:17:21 + sudo chown -R jenkins:jenkins . [Pipeline] sh 00:17:21 + ls -al . 00:17:21 total 180 00:17:21 drwxrwxr-x 7 jenkins jenkins 4096 Apr 8 00:17 . 00:17:21 drwxrwxr-x 4 jenkins jenkins 4096 Apr 8 00:13 .. 00:17:21 drwxrwxr-x 8 jenkins jenkins 4096 Apr 8 00:13 .git 00:17:21 drwxrwxr-x 2 jenkins jenkins 4096 Apr 8 00:13 .github 00:17:21 -rw-rw-r-- 1 jenkins jenkins 270 Apr 8 00:13 .gitignore 00:17:21 -rw-rw-r-- 1 jenkins jenkins 41 Apr 8 00:13 .golangci.yml 00:17:21 -rw-rw-r-- 1 jenkins jenkins 7750 Apr 8 00:13 Attribution.txt 00:17:21 -rw-rw-r-- 1 jenkins jenkins 6349 Apr 8 00:13 CHANGELOG.md 00:17:21 -rw-rw-r-- 1 jenkins jenkins 1974 Apr 8 00:13 Dockerfile 00:17:21 -rw-rw-r-- 1 jenkins jenkins 677 Apr 8 00:13 GOVERNANCE.md 00:17:21 -rw-rw-r-- 1 jenkins jenkins 660 Apr 8 00:13 Jenkinsfile 00:17:21 -rw-rw-r-- 1 jenkins jenkins 11340 Apr 8 00:13 LICENSE 00:17:21 -rw-rw-r-- 1 jenkins jenkins 2042 Apr 8 00:13 Makefile 00:17:21 -rw-rw-r-- 1 jenkins jenkins 623 Apr 8 00:13 OWNERS.md 00:17:21 -rw-rw-r-- 1 jenkins jenkins 2914 Apr 8 00:13 README.md 00:17:21 -rw-rw-r-- 1 jenkins jenkins 5 Apr 8 00:09 VERSION 00:17:21 drwxrwxr-x 2 jenkins jenkins 4096 Apr 8 00:13 bin 00:17:21 drwxrwxr-x 3 jenkins jenkins 4096 Apr 8 00:13 cmd 00:17:21 -rw-r--r-- 1 jenkins jenkins 44128 Apr 8 00:16 coverage.out 00:17:21 -rw-rw-r-- 1 jenkins jenkins 3092 Apr 8 00:13 go.mod 00:17:21 -rw-rw-r-- 1 jenkins jenkins 34471 Apr 8 00:13 go.sum 00:17:21 drwxrwxr-x 3 jenkins jenkins 4096 Apr 8 00:13 internal 00:17:21 -rw-rw-r-- 1 jenkins jenkins 235 Apr 8 00:13 version.go [Pipeline] isUnix [Pipeline] sh 00:17:21 + docker build -t device-virtual-arm64 -f Dockerfile --build-arg BASE=ci-base-image-arm64 --build-arg MAKE=make build --build-arg ARCH=arm64 --label git_sha=5ba56e1622a9d0d2bcc2a0f5d43f121ca7cbd17c --label arch=arm64 --label version=0.0.0 . 00:17:22 Sending build context to Docker daemon 11.62MB 00:17:22 Step 1/26 : ARG BASE=golang:1.17-alpine3.15 00:17:22 Step 2/26 : FROM ${BASE} AS builder 00:17:22 ---> 556da0566a66 00:17:22 Step 3/26 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 00:17:22 ---> Running in d1cd83865d3f 00:17:23 Removing intermediate container d1cd83865d3f 00:17:23 ---> bdec3ba613ef 00:17:23 Step 4/26 : ARG ALPINE_PKG_EXTRA="" 00:17:23 ---> Running in 1213f39bebc4 00:17:23 Removing intermediate container 1213f39bebc4 00:17:23 ---> 0c249c525cea 00:17:23 Step 5/26 : WORKDIR /device-virtual-go 00:17:23 ---> Running in a85579867940 00:17:24 Removing intermediate container a85579867940 00:17:24 ---> c99bf1abafc8 00:17:24 Step 6/26 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 00:17:24 ---> Running in 1401a5de4073 00:17:26 Removing intermediate container 1401a5de4073 00:17:26 ---> afe44c83b455 00:17:26 Step 7/26 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 00:17:26 ---> Running in af81aa8f3c59 00:17:27 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 00:17:27 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 00:17:28 OK: 224 MiB in 56 packages 00:17:29 Removing intermediate container af81aa8f3c59 00:17:29 ---> 404775cabdfd 00:17:29 Step 8/26 : COPY go.mod vendor* ./ 00:17:30 ---> a2cf4c7effa7 00:17:30 Step 9/26 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 00:17:30 ---> Running in 18199748b1ec 00:17:32 Removing intermediate container 18199748b1ec 00:17:32 ---> faa3190ea657 00:17:32 Step 10/26 : COPY . . 00:17:33 ---> f774c1bf2365 00:17:33 Step 11/26 : ARG MAKE='make build' 00:17:33 ---> Running in 6ce665ef4f9c 00:17:33 Removing intermediate container 6ce665ef4f9c 00:17:33 ---> f61bb0e843c8 00:17:33 Step 12/26 : RUN $MAKE 00:17:33 ---> Running in 51a193c65644 00:17:34 CGO_ENABLED=1 GO111MODULE=on go build -ldflags "-linkmode=external -X github.com/edgexfoundry/device-virtual-go.Version=0.0.0" -trimpath -mod=readonly -buildmode=pie -o cmd/device-virtual ./cmd 00:19:41 Removing intermediate container 51a193c65644 00:19:41 ---> fd59670a09e4 00:19:41 Step 13/26 : FROM alpine:3.14 00:19:41 3.14: Pulling from library/alpine 00:19:41 455c02918c45: Pulling fs layer 00:19:41 455c02918c45: Verifying Checksum 00:19:41 455c02918c45: Download complete 00:19:41 455c02918c45: Pull complete 00:19:41 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 00:19:41 Status: Downloaded newer image for alpine:3.14 00:19:41 ---> ac73e934f311 00:19:41 Step 14/26 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IOTech' 00:19:41 ---> Running in 4d5dc1ea3869 00:19:41 Removing intermediate container 4d5dc1ea3869 00:19:41 ---> 98de4b195afd 00:19:41 Step 15/26 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 00:19:41 ---> Running in 5968942d740b 00:19:41 Removing intermediate container 5968942d740b 00:19:41 ---> 546dc87c8cb8 00:19:41 Step 16/26 : RUN apk add --update --no-cache zeromq dumb-init 00:19:41 ---> Running in 3af384089b91 00:19:41 fetch https://nl.alpinelinux.org/alpine/v3.14/main/aarch64/APKINDEX.tar.gz 00:19:41 fetch https://nl.alpinelinux.org/alpine/v3.14/community/aarch64/APKINDEX.tar.gz 00:19:42 (1/6) Installing dumb-init (1.2.5-r1) 00:19:42 (2/6) Installing libgcc (10.3.1_git20210424-r2) 00:19:42 (3/6) Installing libsodium (1.0.18-r0) 00:19:42 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 00:19:42 (5/6) Installing libzmq (4.3.4-r0) 00:19:43 (6/6) Installing zeromq (4.3.4-r0) 00:19:43 Executing busybox-1.33.1-r7.trigger 00:19:43 OK: 8 MiB in 20 packages 00:19:44 Removing intermediate container 3af384089b91 00:19:44 ---> a93cb8dd3a48 00:19:44 Step 17/26 : WORKDIR / 00:19:44 ---> Running in 73afbabd9290 00:19:44 Removing intermediate container 73afbabd9290 00:19:44 ---> 7a89b94fd8d0 00:19:44 Step 18/26 : COPY --from=builder /device-virtual-go/Attribution.txt / 00:19:45 ---> ab5056e8ffbe 00:19:45 Step 19/26 : COPY --from=builder /device-virtual-go/LICENSE / 00:19:45 ---> 3b85530486f1 00:19:45 Step 20/26 : COPY --from=builder /device-virtual-go/cmd / 00:19:47 ---> 9e5cf75a0263 00:19:47 Step 21/26 : EXPOSE 59900 00:19:47 ---> Running in 4a808e7b0db2 00:19:47 Removing intermediate container 4a808e7b0db2 00:19:47 ---> c8e918373e9a 00:19:47 Step 22/26 : ENTRYPOINT ["/device-virtual"] 00:19:47 ---> Running in 244edf2fcf69 00:19:47 Removing intermediate container 244edf2fcf69 00:19:47 ---> 8fb329fd83ec 00:19:48 Step 23/26 : CMD ["--cp=consul.http://edgex-core-consul:8500", "--registry", "--confdir=/res"] 00:19:48 ---> Running in f2b7b0dc1b16 00:19:48 Removing intermediate container f2b7b0dc1b16 00:19:48 ---> 168d3cc406c3 00:19:48 Step 24/26 : LABEL arch=arm64 00:19:48 ---> Running in 5aca2e7f707b 00:19:48 Removing intermediate container 5aca2e7f707b 00:19:48 ---> 3e2694859807 00:19:48 Step 25/26 : LABEL git_sha=5ba56e1622a9d0d2bcc2a0f5d43f121ca7cbd17c 00:19:49 ---> Running in 5f17f76bcbe9 00:19:49 Removing intermediate container 5f17f76bcbe9 00:19:49 ---> 18e9823e654e 00:19:49 Step 26/26 : LABEL version=0.0.0 00:19:49 ---> Running in 3547ca04c11b 00:19:49 Removing intermediate container 3547ca04c11b 00:19:49 ---> e438ca54050f 00:19:49 [Warning] One or more build-args [ARCH] were not consumed 00:19:49 Successfully built e438ca54050f 00:19:49 Successfully tagged device-virtual-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 00:19:50 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 00:19:50 00:19:50 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] sh 00:19:51 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 00:19:51 arm64: Pulling from edgex-lftools-log-publisher 00:19:51 8998bd30e6a1: Pulling fs layer 00:19:51 04944245beec: Pulling fs layer 00:19:51 699f458cf7ca: Pulling fs layer 00:19:51 765212b225bb: Pulling fs layer 00:19:51 f23df028b6ca: Pulling fs layer 00:19:51 d65c8cfc05b1: Pulling fs layer 00:19:51 2437ff75d9bd: Pulling fs layer 00:19:51 765212b225bb: Waiting 00:19:51 f23df028b6ca: Waiting 00:19:51 2437ff75d9bd: Waiting 00:19:51 d65c8cfc05b1: Waiting 00:19:51 04944245beec: Verifying Checksum 00:19:51 04944245beec: Download complete 00:19:51 765212b225bb: Verifying Checksum 00:19:51 765212b225bb: Download complete 00:19:51 f23df028b6ca: Verifying Checksum 00:19:51 f23df028b6ca: Download complete 00:19:51 d65c8cfc05b1: Verifying Checksum 00:19:51 d65c8cfc05b1: Download complete 00:19:51 699f458cf7ca: Verifying Checksum 00:19:51 699f458cf7ca: Download complete 00:19:51 8998bd30e6a1: Verifying Checksum 00:19:51 8998bd30e6a1: Download complete 00:19:54 2437ff75d9bd: Verifying Checksum 00:19:54 2437ff75d9bd: Download complete 00:19:55 8998bd30e6a1: Pull complete 00:19:56 04944245beec: Pull complete 00:19:57 699f458cf7ca: Pull complete 00:19:57 765212b225bb: Pull complete 00:19:58 f23df028b6ca: Pull complete 00:19:59 d65c8cfc05b1: Pull complete 00:20:14 2437ff75d9bd: Pull complete 00:20:14 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 00:20:14 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 00:20:14 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] withDockerContainer 00:20:14 prd-ubuntu20.04-docker-arm64-4c-16g-11534 does not seem to be running inside a container 00:20:14 $ 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-virtual-go/1 -v /w/workspace/device-virtual-go/1:/w/workspace/device-virtual-go/1:rw,z -v /w/workspace/device-virtual-go/1@tmp:/w/workspace/device-virtual-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 00:20:17 $ docker top 0c827c3476341e1a1ebc5417e9ca411503129ed02fa76d93d55b5fe26362725d -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 00:20:18 ---> job-cost.sh 00:20:18 lf-activate-venv: SKIPPING 00:20:18 INFO: No Stack... 00:20:18 INFO: Retrieving Pricing Info for: v3-standard-4 00:20:19 INFO: Archiving Costs [Pipeline] sh 00:20:20 + cut -d, -f6 00:20:20 + cat /w/workspace/device-virtual-go/1/archives/cost.csv [Pipeline] lock 00:20:20 Trying to acquire lock on [jenkins-edgexfoundry-device-virtual-go-PR-275-1-stack-cost] 00:20:20 Resource [jenkins-edgexfoundry-device-virtual-go-PR-275-1-stack-cost] did not exist. Created. 00:20:20 Lock acquired on [jenkins-edgexfoundry-device-virtual-go-PR-275-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 00:20:21 /w/workspace/device-virtual-go/1@tmp/durable-b16bb781/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 00:20:21 + echo total: 0.10999999940395355 [Pipeline] stash 00:20:21 Warning: overwriting stash ‘stack-cost’ 00:20:21 Stashed 1 file(s) [Pipeline] } 00:20:21 Lock released on resource [jenkins-edgexfoundry-device-virtual-go-PR-275-1-stack-cost] [Pipeline] // lock [Pipeline] } 00:20:22 $ docker stop --time=1 0c827c3476341e1a1ebc5417e9ca411503129ed02fa76d93d55b5fe26362725d 00:20:23 $ docker rm -f 0c827c3476341e1a1ebc5417e9ca411503129ed02fa76d93d55b5fe26362725d [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 00:20:24 provisioning config files... 00:20:24 copy managed file [device-virtual-go-codecov-token] to file:/w/workspace/foundry_device-virtual-go_PR-275@tmp/config2637335624532114074tmp [Pipeline] { [Pipeline] sh 00:20:24 + set +x 00:20:24 + curl -s https://codecov.io/bash 00:20:24 + bash -s -- 00:20:24 00:20:24 _____ _ 00:20:24 / ____| | | 00:20:24 | | ___ __| | ___ ___ _____ __ 00:20:24 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 00:20:24 | |___| (_) | (_| | __/ (_| (_) \ V / 00:20:24 \_____\___/ \__,_|\___|\___\___/ \_/ 00:20:24 Bash-1.0.6 00:20:24 00:20:24 00:20:24 ==> git version 2.25.1 found 00:20:24 ==> 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 00:20:24 Release-Date: 2020-01-08 00:20:24 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 00:20:24 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 00:20:24 ==> Jenkins CI detected. 00:20:24 current dir:  /w/workspace/foundry_device-virtual-go_PR-275 00:20:24 project root: . 00:20:24 --> token set from env 00:20:24 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 00:20:24 ==> Running gcov in . (disable via -X gcov) 00:20:24 ==> Python coveragepy not found 00:20:24 ==> Searching for coverage reports in: 00:20:24 + . 00:20:24 -> Found 1 reports 00:20:24 ==> Detecting git/mercurial file structure 00:20:24 ==> Reading reports 00:20:24 + ./coverage.out bytes=44128 00:20:24 ==> Appending adjustments 00:20:24 https://docs.codecov.io/docs/fixing-reports 00:20:25 + Found adjustments 00:20:25 ==> Gzipping contents 00:20:25 8.0K /tmp/codecov.LaKPDu.gz 00:20:25 ==> Uploading reports 00:20:25 url: https://codecov.io 00:20:25 query: branch=PR-275&commit=5ba56e1622a9d0d2bcc2a0f5d43f121ca7cbd17c&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-virtual-go%2Fjob%2FPR-275%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-virtual-go&service=jenkins&flags=&pr=275&job=&cmd_args= 00:20:25 -> Pinging Codecov 00:20:25 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=a35e349c-7876-4d48-9269-e9fc36774240&branch=PR-275&commit=5ba56e1622a9d0d2bcc2a0f5d43f121ca7cbd17c&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-virtual-go%2Fjob%2FPR-275%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-virtual-go&service=jenkins&flags=&pr=275&job=&cmd_args= 00:20:25 -> Uploading to 00:20:25 https://storage.googleapis.com/codecov/v4/raw/2022-04-08/5E52B4B073DB2E39498172D8E973AA87/5ba56e1622a9d0d2bcc2a0f5d43f121ca7cbd17c/857a0999-9090-479b-9544-1ece62de5f10.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20220408%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20220408T002025Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=0d579f8080722f02f759d96e93daf4cc085bfb2cc04aba8bf147110eaa5b5efa 00:20:25 % Total % Received % Xferd Average Speed Time Time Time Current 00:20:25 Dload Upload Total Spent Left Speed 00:20:25 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 5295 0 0 100 5295 0 26083 --:--:-- --:--:-- --:--:-- 26083 100 5295 0 0 100 5295 0 25456 --:--:-- --:--:-- --:--:-- 25334 00:20:25 -> Reports have been successfully queued for processing at https://codecov.io/github/edgexfoundry/device-virtual-go/commit/5ba56e1622a9d0d2bcc2a0f5d43f121ca7cbd17c [Pipeline] } 00:20:25 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 00:20:27 + [ -d /w/workspace/foundry_device-virtual-go_PR-275/archives ] 00:20:27 + ls -al /w/workspace/foundry_device-virtual-go_PR-275/archives 00:20:27 total 16 00:20:27 drwxr-xr-x 3 root root 4096 Apr 8 00:11 . 00:20:27 drwxrwxr-x 9 jenkins jenkins 4096 Apr 8 00:11 .. 00:20:27 drwxr-xr-x 2 root root 4096 Apr 8 00:11 cost 00:20:27 -rw-r--r-- 1 root root 88 Apr 8 00:11 cost.csv 00:20:27 + sudo chown -R jenkins:jenkins /w/workspace/foundry_device-virtual-go_PR-275/archives 00:20:27 + ls -al /w/workspace/foundry_device-virtual-go_PR-275/archives 00:20:27 total 16 00:20:27 drwxr-xr-x 3 jenkins jenkins 4096 Apr 8 00:11 . 00:20:27 drwxrwxr-x 9 jenkins jenkins 4096 Apr 8 00:11 .. 00:20:27 drwxr-xr-x 2 jenkins jenkins 4096 Apr 8 00:11 cost 00:20:27 -rw-r--r-- 1 jenkins jenkins 88 Apr 8 00:11 cost.csv [Pipeline] libraryResource [Pipeline] sh 00:20:27 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 00:20:28 ---> package-listing.sh 00:20:28 ++ facter osfamily 00:20:28 ++ tr '[:upper:]' '[:lower:]' 00:20:28 + OS_FAMILY=debian 00:20:28 + workspace=/w/workspace/foundry_device-virtual-go_PR-275 00:20:28 + START_PACKAGES=/tmp/packages_start.txt 00:20:28 + END_PACKAGES=/tmp/packages_end.txt 00:20:28 + DIFF_PACKAGES=/tmp/packages_diff.txt 00:20:28 + PACKAGES=/tmp/packages_start.txt 00:20:28 + '[' /w/workspace/foundry_device-virtual-go_PR-275 ']' 00:20:28 + PACKAGES=/tmp/packages_end.txt 00:20:28 + case "${OS_FAMILY}" in 00:20:28 + dpkg -l 00:20:28 + grep '^ii' 00:20:29 + '[' -f /tmp/packages_start.txt ']' 00:20:29 + '[' -f /tmp/packages_end.txt ']' 00:20:29 + diff /tmp/packages_start.txt /tmp/packages_end.txt 00:20:29 + '[' /w/workspace/foundry_device-virtual-go_PR-275 ']' 00:20:29 + mkdir -p /w/workspace/foundry_device-virtual-go_PR-275/archives/ 00:20:29 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/foundry_device-virtual-go_PR-275/archives/ [Pipeline] echo 00:20:29 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/foundry_device-virtual-go_PR-275/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 00:20:29 + facter operatingsystem [Pipeline] isUnix [Pipeline] sh 00:20:30 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 00:20:30 . [Pipeline] withDockerContainer 00:20:30 prd-ubuntu20.04-docker-8c-8g-11533 does not seem to be running inside a container 00:20:30 $ 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/foundry_device-virtual-go_PR-275/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/foundry_device-virtual-go_PR-275 -v /w/workspace/foundry_device-virtual-go_PR-275:/w/workspace/foundry_device-virtual-go_PR-275:rw,z -v /w/workspace/foundry_device-virtual-go_PR-275@tmp:/w/workspace/foundry_device-virtual-go_PR-275@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 00:20:30 $ docker top 940e2763f6d8b1af88191a9904d21cc8170cfc07ded219e28b53447b62bb2c56 -eo pid,comm [Pipeline] { [Pipeline] sh 00:20:30 + touch /tmp/pre-build-complete [Pipeline] sh 00:20:31 + mkdir -p /var/log/sysstat [Pipeline] sh 00:20:31 + ls /var/log/sa-host 00:20:31 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 00:20:31 provisioning config files... 00:20:31 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/foundry_device-virtual-go_PR-275@tmp/config3404377294023011560tmp [Pipeline] { [Pipeline] echo 00:20:31 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 00:20:32 ---> create-netrc.sh [Pipeline] } 00:20:32 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 00:20:32 ---> python-tools-install.sh [Pipeline] echo 00:20:32 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 00:20:32 ---> sudo-logs.sh 00:20:32 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 00:20:32 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 00:20:33 ---> job-cost.sh 00:20:33 lf-activate-venv: SKIPPING 00:20:33 DEBUG: total: 0.2199999988079071 00:20:33 INFO: Retrieving Stack Cost... 00:20:33 INFO: Retrieving Pricing Info for: v3-standard-8 00:20:34 INFO: Archiving Costs [Pipeline] echo 00:20:34 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 00:20:34 ---> logs-deploy.sh 00:20:34 lf-activate-venv: SKIPPING 00:20:34 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-virtual-go/PR-275/1 00:20:34 INFO: archiving workspace using pattern(s): 00:20:35 Archives upload complete. 00:20:35 INFO: archiving logs to Nexus