Pull request #345 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 MonicaisHer for edgexfoundry/device-modbus-go Loading trusted files from base branch main at 241fbfbc9b273dc13e4996b0e5d4a3b540b295ea rather than 3ea26778437bdff40bced88224eec1767570a456 Obtained Jenkinsfile from 241fbfbc9b273dc13e4996b0e5d4a3b540b295ea 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-ssh406029852064840947.key > git ls-remote -h -t -- git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Found match: refs/tags/stable revision 61d3a14f5ee21304eadc9c25f102bcac80e1a589 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-ssh3871213968572438231.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 61d3a14f5ee21304eadc9c25f102bcac80e1a589 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-modbus-go/branches/PR-345/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-modbus-go/branches/PR-345/workspace@libs/edgex-global-pipelines@tmp/jenkins-gitclient-ssh4757262390213524317.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-modbus-go/branches/PR-345/workspace@libs/edgex-global-pipelines@tmp/jenkins-gitclient-ssh4744332561891867396.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision 61d3a14f5ee21304eadc9c25f102bcac80e1a589 (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f 61d3a14f5ee21304eadc9c25f102bcac80e1a589 # timeout=10 Commit message: "Merge pull request #384 from ernestojeda/add-go-1_17-lts" > 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-ssh11570643690858578902.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-modbus-go/branches/PR-345/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-modbus-go/branches/PR-345/workspace@libs/lf-pipelines@tmp/jenkins-gitclient-ssh4826748712049221911.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 61d3a14f5ee21304eadc9c25f102bcac80e1a589 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-modbus-go, buildSnap:false] ========================================================= [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-modbus-go-settings PROJECT: device-modbus-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-modbus 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-47171 in /w/workspace/xfoundry_device-modbus-go_PR-345 [Pipeline] { [Pipeline] stage [Pipeline] { (Declarative: Checkout SCM) [Pipeline] checkout Selected Git installation does not exist. Using Default The recommended git tool is: NONE using credential edgex-jenkins-ssh Cloning the remote Git repository Cloning repository git@github.com:edgexfoundry/device-modbus-go.git > git init /w/workspace/xfoundry_device-modbus-go_PR-345 # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-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-modbus-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 Merging remotes/origin/main commit 241fbfbc9b273dc13e4996b0e5d4a3b540b295ea into PR head commit 3ea26778437bdff40bced88224eec1767570a456 Merge succeeded, producing 3ea26778437bdff40bced88224eec1767570a456 Checking out Revision 3ea26778437bdff40bced88224eec1767570a456 (PR-345) > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-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-modbus-go.git # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/pull/345/head:refs/remotes/origin/PR-345 +refs/heads/main:refs/remotes/origin/main # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 3ea26778437bdff40bced88224eec1767570a456 # 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 241fbfbc9b273dc13e4996b0e5d4a3b540b295ea # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 3ea26778437bdff40bced88224eec1767570a456 # timeout=10 Commit message: "build(deps): Bump github.com/canonical/edgex-snap-hooks/v2 from 2.2.0-beta.5 to 2.2.0 in /snap/local/hooks" First time build. Skipping changelog. > git --version # timeout=10 > git --version # 'git version 2.25.1' fatal: bad object 61d3a14f5ee21304eadc9c25f102bcac80e1a589 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 09:33:50 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 09:33:50 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 09:33:50 ========================================================= 09:33:50 EdgeX Global Pipelines Version Info 09:33:50 ========================================================= [Pipeline] libraryResource [Pipeline] sh 09:33:51 ------------------- 09:33:51 stable info: 09:33:51 ------------------- 09:33:51 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 09:33:51 Commit SHA: 61d3a14f5ee21304eadc9c25f102bcac80e1a589 09:33:51 Message: update stable to v1.0.227 09:33:52 ------------------- 09:33:52 experimental info: 09:33:52 ------------------- 09:33:52 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 09:33:52 Commit SHA: 821e2ffd3fa43eddc5db18cf710cdace1a36094c 09:33:52 Message: update experimental to v1.0.229 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 09:33:52 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-modbus-go-settings [Pipeline] echo 09:33:52 [edgeXSetupEnvironment]: set envvar PROJECT = device-modbus-go [Pipeline] echo 09:33:52 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 09:33:52 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 09:33:52 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 09:33:52 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.17 [Pipeline] echo 09:33:52 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 09:33:53 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 09:33:53 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 09:33:53 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 09:33:53 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 09:33:53 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-modbus [Pipeline] echo 09:33:53 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 09:33:53 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 09:33:53 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 09:33:53 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 09:33:53 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 09:33:53 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 09:33:53 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 09:33:53 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 09:33:53 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 09:33:53 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 09:33:53 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 09:33:53 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 09:33:53 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 09:33:53 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 09:33:53 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-345 [Pipeline] echo 09:33:53 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-345 [Pipeline] echo 09:33:53 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-345 [Pipeline] echo 09:33:53 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 3ea26778437bdff40bced88224eec1767570a456 [Pipeline] echo 09:33:54 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 3ea2677 [Pipeline] echo 09:33:54 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 09:33:54 provisioning config files... 09:33:54 copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-345@tmp/config8385011414332390057tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 09:33:54 ---> docker-login.sh 09:33:54 nexus3.edgexfoundry.org:10001 09:33:54 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:33:54 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:33:54 Configure a credential helper to remove this warning. See 09:33:54 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:33:54 09:33:54 Login Succeeded 09:33:54 nexus3.edgexfoundry.org:10002 09:33:55 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:33:55 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:33:55 Configure a credential helper to remove this warning. See 09:33:55 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:33:55 09:33:55 Login Succeeded 09:33:55 nexus3.edgexfoundry.org:10003 09:33:55 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:33:55 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:33:55 Configure a credential helper to remove this warning. See 09:33:55 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:33:55 09:33:55 Login Succeeded 09:33:55 nexus3.edgexfoundry.org:10004 09:33:55 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:33:55 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:33:55 Configure a credential helper to remove this warning. See 09:33:55 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:33:55 09:33:55 Login Succeeded 09:33:55 docker.io 09:33:55 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:33:55 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:33:55 Configure a credential helper to remove this warning. See 09:33:55 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:33:55 09:33:55 Login Succeeded 09:33:55 ---> docker-login.sh ends [Pipeline] } 09:33:55 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 09:33:56 + git rev-list -1 --merges 3ea26778437bdff40bced88224eec1767570a456~1..3ea26778437bdff40bced88224eec1767570a456 [Pipeline] echo 09:33:56 -----------> git rev-list -1 --merges 3ea26778437bdff40bced88224eec1767570a456~1..3ea26778437bdff40bced88224eec1767570a456 3ea26778437bdff40bced88224eec1767570a456 [false] [Pipeline] sh 09:33:57 + git log --format=format:%s -1 3ea26778437bdff40bced88224eec1767570a456 [Pipeline] echo 09:33:57 ========================================================= 09:33:57 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 09:33:57 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 09:33:57 + git log --format=format:%s -1 3ea26778437bdff40bced88224eec1767570a456 [Pipeline] echo 09:33:57 [semverPrep] GIT_COMMIT: 3ea26778437bdff40bced88224eec1767570a456, Commit Message: build(deps): Bump github.com/canonical/edgex-snap-hooks/v2 from 2.2.0-beta.5 to 2.2.0 in /snap/local/hooks [Pipeline] echo 09:33:57 [semverPrep] This is not a build commit. [Pipeline] sh 09:33:58 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 09:33:58 + grep -v github /etc/ssh/ssh_known_hosts 09:33:58 + [ -e /tmp/ssh_known_hosts ] 09:33:58 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 09:33:58 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 09:33:58 + sudo tee -a /etc/ssh/ssh_known_hosts 09:33:58 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] sh 09:33:58 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest 09:33:58 09:33:58 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest [Pipeline] isUnix [Pipeline] sh 09:33:59 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest 09:33:59 latest: Pulling from edgex-devops/py-git-semver 09:33:59 1fe172e4850f: Pulling fs layer 09:33:59 caf521ccaac6: Pulling fs layer 09:33:59 3ead6fa29328: Pulling fs layer 09:33:59 5c2a1cbceb83: Pulling fs layer 09:33:59 a8d5f1318db7: Pulling fs layer 09:33:59 c427282e49a2: Pulling fs layer 09:33:59 1827001aaf11: Pulling fs layer 09:33:59 0714d37db230: Pulling fs layer 09:33:59 ac28cf19c067: Pulling fs layer 09:33:59 ca983d60f3e2: Pulling fs layer 09:33:59 9f894cec8388: Pulling fs layer 09:33:59 5c2a1cbceb83: Waiting 09:33:59 0714d37db230: Waiting 09:33:59 a8d5f1318db7: Waiting 09:33:59 ac28cf19c067: Waiting 09:33:59 c427282e49a2: Waiting 09:33:59 ca983d60f3e2: Waiting 09:33:59 1827001aaf11: Waiting 09:33:59 9f894cec8388: Waiting 09:33:59 caf521ccaac6: Download complete 09:33:59 5c2a1cbceb83: Download complete 09:33:59 3ead6fa29328: Verifying Checksum 09:33:59 3ead6fa29328: Download complete 09:33:59 c427282e49a2: Verifying Checksum 09:33:59 c427282e49a2: Download complete 09:33:59 a8d5f1318db7: Verifying Checksum 09:33:59 a8d5f1318db7: Download complete 09:33:59 0714d37db230: Download complete 09:33:59 ac28cf19c067: Download complete 09:33:59 ca983d60f3e2: Verifying Checksum 09:33:59 ca983d60f3e2: Download complete 09:33:59 9f894cec8388: Download complete 09:33:59 1fe172e4850f: Verifying Checksum 09:33:59 1fe172e4850f: Download complete 09:33:59 1827001aaf11: Verifying Checksum 09:33:59 1827001aaf11: Download complete 09:34:00 1fe172e4850f: Pull complete 09:34:01 caf521ccaac6: Pull complete 09:34:01 3ead6fa29328: Pull complete 09:34:01 5c2a1cbceb83: Pull complete 09:34:01 a8d5f1318db7: Pull complete 09:34:01 c427282e49a2: Pull complete 09:34:03 1827001aaf11: Pull complete 09:34:04 0714d37db230: Pull complete 09:34:04 ac28cf19c067: Pull complete 09:34:04 ca983d60f3e2: Pull complete 09:34:04 9f894cec8388: Pull complete 09:34:04 Digest: sha256:90e63904a1edc574c23a580e5fc31fbcdccad1501625621f67a6be262171cfee 09:34:04 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest 09:34:04 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest [Pipeline] withDockerContainer 09:34:04 prd-ubuntu20.04-docker-8c-8g-47171 does not seem to be running inside a container 09:34:04 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/xfoundry_device-modbus-go_PR-345 -v /w/workspace/xfoundry_device-modbus-go_PR-345:/w/workspace/xfoundry_device-modbus-go_PR-345:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-345@tmp:/w/workspace/xfoundry_device-modbus-go_PR-345@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:10003/edgex-devops/py-git-semver:latest cat 09:34:05 $ docker top 6c560dd54c995a24f573a54704f49117751b2499dbe144eb9054cb0cdbf19013 -eo pid,comm 09:34:05 ERROR: The container started but didn't run the expected command. Please double check your ENTRYPOINT does execute the command passed as docker run argument, as required by official docker images (see https://github.com/docker-library/official-images#consistency for entrypoint consistency requirements). 09:34:05 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 09:34:06 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 09:34:06 [ssh-agent] Looking for ssh-agent implementation... 09:34:06 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 09:34:06 $ docker exec 6c560dd54c995a24f573a54704f49117751b2499dbe144eb9054cb0cdbf19013 ssh-agent 09:34:06 SSH_AUTH_SOCK=/tmp/ssh-8c5rlhtMrbxi/agent.33 09:34:06 SSH_AGENT_PID=39 09:34:06 Running ssh-add (command line suppressed) 09:34:06 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-345@tmp/private_key_1059335936124064769.key (/w/workspace/xfoundry_device-modbus-go_PR-345@tmp/private_key_1059335936124064769.key) 09:34:06 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 09:34:06 + git tag --points-at HEAD [Pipeline] } 09:34:06 $ docker exec --env ******** --env ******** 6c560dd54c995a24f573a54704f49117751b2499dbe144eb9054cb0cdbf19013 ssh-agent -k 09:34:07 unset SSH_AUTH_SOCK; 09:34:07 unset SSH_AGENT_PID; 09:34:07 echo Agent pid 39 killed; 09:34:07 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 09:34:07 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 09:34:07 [ssh-agent] Looking for ssh-agent implementation... 09:34:07 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 09:34:07 $ docker exec 6c560dd54c995a24f573a54704f49117751b2499dbe144eb9054cb0cdbf19013 ssh-agent 09:34:07 SSH_AUTH_SOCK=/tmp/ssh-em4UZeQDJykL/agent.74 09:34:07 SSH_AGENT_PID=80 09:34:07 Running ssh-add (command line suppressed) 09:34:07 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-345@tmp/private_key_1795267536938206269.key (/w/workspace/xfoundry_device-modbus-go_PR-345@tmp/private_key_1795267536938206269.key) 09:34:07 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 09:34:07 + git semver init 09:34:08 2022-05-10 09:34:08,152 [run_init] DEBUG init version:0.0.0 force:False 09:34:08 2022-05-10 09:34:08,153 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/xfoundry_device-modbus-go_PR-345/.semver 09:34:08 2022-05-10 09:34:08,153 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-modbus-go.git /w/workspace/xfoundry_device-modbus-go_PR-345/.semver 09:34:08 2022-05-10 09:34:08,153 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-modbus-go.git', '/w/workspace/xfoundry_device-modbus-go_PR-345/.semver'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-345, universal_newlines=False, shell=None, istream=None) 09:34:09 2022-05-10 09:34:08,976 [append_file] DEBUG append to file:/w/workspace/xfoundry_device-modbus-go_PR-345/.git/info/exclude 09:34:09 2022-05-10 09:34:08,977 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/xfoundry_device-modbus-go_PR-345/.semver/PR-345 with force:False 09:34:09 2022-05-10 09:34:08,977 [write_file] DEBUG write to file:/w/workspace/xfoundry_device-modbus-go_PR-345/.semver/PR-345 09:34:09 2022-05-10 09:34:08,981 [execute] INFO git cat-file --batch-check 09:34:09 2022-05-10 09:34:08,981 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-345/.semver, universal_newlines=False, shell=None, istream=) 09:34:09 2022-05-10 09:34:08,987 [execute] INFO git cat-file --batch 09:34:09 2022-05-10 09:34:08,988 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-345/.semver, universal_newlines=False, shell=None, istream=) 09:34:09 2022-05-10 09:34:08,993 [read_version] DEBUG read version from /w/workspace/xfoundry_device-modbus-go_PR-345/.semver/PR-345 09:34:09 0.0.0 [Pipeline] } 09:34:09 $ docker exec --env ******** --env ******** 6c560dd54c995a24f573a54704f49117751b2499dbe144eb9054cb0cdbf19013 ssh-agent -k 09:34:09 unset SSH_AUTH_SOCK; 09:34:09 unset SSH_AGENT_PID; 09:34:09 echo Agent pid 80 killed; 09:34:09 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 09:34:09 + git semver [Pipeline] } 09:34:10 $ docker stop --time=1 6c560dd54c995a24f573a54704f49117751b2499dbe144eb9054cb0cdbf19013 09:34:11 $ docker rm -f 6c560dd54c995a24f573a54704f49117751b2499dbe144eb9054cb0cdbf19013 [Pipeline] // withDockerContainer [Pipeline] sh 09:34:12 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 09:34:12 Stashed 1 file(s) [Pipeline] echo 09:34:12 [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 09:34:13 provisioning config files... 09:34:13 copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-345@tmp/config5035451698222824927tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 09:34:13 ---> docker-login.sh 09:34:13 nexus3.edgexfoundry.org:10001 09:34:13 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:34:13 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:34:13 Configure a credential helper to remove this warning. See 09:34:13 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:34:13 09:34:13 Login Succeeded 09:34:13 nexus3.edgexfoundry.org:10002 09:34:13 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:34:13 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:34:13 Configure a credential helper to remove this warning. See 09:34:13 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:34:13 09:34:13 Login Succeeded 09:34:13 nexus3.edgexfoundry.org:10003 09:34:13 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:34:13 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:34:13 Configure a credential helper to remove this warning. See 09:34:13 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:34:13 09:34:13 Login Succeeded 09:34:13 nexus3.edgexfoundry.org:10004 09:34:14 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:34:14 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:34:14 Configure a credential helper to remove this warning. See 09:34:14 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:34:14 09:34:14 Login Succeeded 09:34:14 docker.io 09:34:14 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:34:14 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:34:14 Configure a credential helper to remove this warning. See 09:34:14 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:34:14 09:34:14 Login Succeeded 09:34:14 ---> docker-login.sh ends [Pipeline] } 09:34:14 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 09:34:14 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 09:34:14 ========================================================= 09:34:14 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine] 09:34:14 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 09:34:14 + 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 . 09:34:14 Sending build context to Docker daemon 5.899MB 09:34:14 Step 1/10 : ARG BASE=golang:1.17-alpine3.15 09:34:14 Step 2/10 : FROM ${BASE} AS builder 09:34:14 1.17-alpine: Pulling from edgex-devops/edgex-golang-base 09:34:14 59bf1c3509f3: Pulling fs layer 09:34:14 666ba61612fd: Pulling fs layer 09:34:14 8ed8ca486205: Pulling fs layer 09:34:14 4fe6c5a15a65: Pulling fs layer 09:34:14 22a0e8bec74d: Pulling fs layer 09:34:14 ca2b28591e48: Pulling fs layer 09:34:14 a51346096db8: Pulling fs layer 09:34:14 daebc70d1ce1: Pulling fs layer 09:34:14 0e18a0eac166: Pulling fs layer 09:34:14 ca2b28591e48: Waiting 09:34:14 a51346096db8: Waiting 09:34:14 4fe6c5a15a65: Waiting 09:34:14 22a0e8bec74d: Waiting 09:34:14 daebc70d1ce1: Waiting 09:34:14 0e18a0eac166: Waiting 09:34:14 8ed8ca486205: Verifying Checksum 09:34:14 8ed8ca486205: Download complete 09:34:15 666ba61612fd: Verifying Checksum 09:34:15 666ba61612fd: Download complete 09:34:15 59bf1c3509f3: Verifying Checksum 09:34:15 59bf1c3509f3: Download complete 09:34:15 22a0e8bec74d: Verifying Checksum 09:34:15 22a0e8bec74d: Download complete 09:34:15 ca2b28591e48: Verifying Checksum 09:34:15 ca2b28591e48: Download complete 09:34:15 a51346096db8: Verifying Checksum 09:34:15 a51346096db8: Download complete 09:34:15 daebc70d1ce1: Verifying Checksum 09:34:15 daebc70d1ce1: Download complete 09:34:15 59bf1c3509f3: Pull complete 09:34:15 666ba61612fd: Pull complete 09:34:15 8ed8ca486205: Pull complete 09:34:16 0e18a0eac166: Verifying Checksum 09:34:16 0e18a0eac166: Download complete 09:34:16 4fe6c5a15a65: Verifying Checksum 09:34:16 4fe6c5a15a65: Download complete 09:34:20 4fe6c5a15a65: Pull complete 09:34:20 22a0e8bec74d: Pull complete 09:34:20 ca2b28591e48: Pull complete 09:34:20 a51346096db8: Pull complete 09:34:20 daebc70d1ce1: Pull complete 09:34:23 0e18a0eac166: Pull complete 09:34:23 Digest: sha256:5cf2d0a306c5171eb5b3008c4b83cc7b6044f1808c238cb17927cddb93576120 09:34:23 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine 09:34:23 ---> f018257e8ee9 09:34:23 Step 3/10 : ARG MAKE='make build' 09:34:24 ---> Running in c6ecaac804cb 09:34:24 Removing intermediate container c6ecaac804cb 09:34:24 ---> 76891a3cdf9e 09:34:24 Step 4/10 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 09:34:24 ---> Running in 73c33cfc50a1 09:34:25 Removing intermediate container 73c33cfc50a1 09:34:25 ---> 011af06bb2a1 09:34:25 Step 5/10 : RUN apk add --update --no-cache make git openssh gcc libc-dev zeromq-dev libsodium-dev 09:34:25 ---> Running in 3d9c6841c6c9 09:34:25 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 09:34:26 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 09:34:26 (1/8) Installing openssh-keygen (8.8_p1-r1) 09:34:26 (2/8) Installing libedit (20210910.3.1-r0) 09:34:27 (3/8) Installing openssh-client-common (8.8_p1-r1) 09:34:27 (4/8) Installing openssh-client-default (8.8_p1-r1) 09:34:27 (5/8) Installing openssh-sftp-server (8.8_p1-r1) 09:34:27 (6/8) Installing openssh-server-common (8.8_p1-r1) 09:34:27 (7/8) Installing openssh-server (8.8_p1-r1) 09:34:27 (8/8) Installing openssh (8.8_p1-r1) 09:34:27 Executing busybox-1.34.1-r3.trigger 09:34:27 OK: 226 MiB in 60 packages 09:34:27 Removing intermediate container 3d9c6841c6c9 09:34:27 ---> c3de3272fd1e 09:34:27 Step 6/10 : WORKDIR /device-modbus-go 09:34:27 Still waiting to schedule task 09:34:27 ‘prd-ubuntu20.04-docker-arm64-4c-16g-47176’ is offline 09:34:28 ---> Running in db459f5993bd 09:34:28 Removing intermediate container db459f5993bd 09:34:28 ---> 123415249ee7 09:34:28 Step 7/10 : COPY go.mod vendor* ./ 09:34:28 ---> 92320858d414 09:34:28 Step 8/10 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 09:34:28 ---> Running in a439300de122 09:34:43 Removing intermediate container a439300de122 09:34:43 ---> c303f110ce90 09:34:43 Step 9/10 : COPY . . 09:34:43 ---> 06c182d19a4f 09:34:43 Step 10/10 : RUN ${MAKE} 09:34:43 ---> Running in d7dc795198f7 09:34:43 noop 09:34:43 Removing intermediate container d7dc795198f7 09:34:43 ---> 64002f9cdf99 09:34:43 Successfully built 64002f9cdf99 09:34:43 Successfully tagged ci-base-image-x86_64:latest [Pipeline] isUnix [Pipeline] sh 09:34:43 + docker inspect -f . ci-base-image-x86_64 09:34:43 . [Pipeline] withDockerContainer 09:34:43 prd-ubuntu20.04-docker-8c-8g-47171 does not seem to be running inside a container 09:34:43 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/xfoundry_device-modbus-go_PR-345 -v /w/workspace/xfoundry_device-modbus-go_PR-345:/w/workspace/xfoundry_device-modbus-go_PR-345:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-345@tmp:/w/workspace/xfoundry_device-modbus-go_PR-345@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 09:34:44 $ docker top 373c68c87b15d40449a2ebb3f6a670d065588e736f92d72a0d17aa52b11df3df -eo pid,comm [Pipeline] { [Pipeline] sh 09:34:44 + go version 09:34:44 go version go1.17.6 linux/amd64 [Pipeline] } 09:34:44 $ docker stop --time=1 373c68c87b15d40449a2ebb3f6a670d065588e736f92d72a0d17aa52b11df3df 09:34:46 $ docker rm -f 373c68c87b15d40449a2ebb3f6a670d065588e736f92d72a0d17aa52b11df3df [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 09:34:46 + docker inspect -f . ci-base-image-x86_64 09:34:46 . [Pipeline] withDockerContainer 09:34:46 prd-ubuntu20.04-docker-8c-8g-47171 does not seem to be running inside a container 09:34:47 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/xfoundry_device-modbus-go_PR-345 -v /w/workspace/xfoundry_device-modbus-go_PR-345:/w/workspace/xfoundry_device-modbus-go_PR-345:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-345@tmp:/w/workspace/xfoundry_device-modbus-go_PR-345@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 09:34:47 $ docker top a28fb3b9d43828b5b71e2eb3b2506329ddd3de951b4113d1359f1bf51130203d -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 09:34:47 + make test 09:34:47 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out 09:34:48 ? github.com/edgexfoundry/device-modbus-go [no test files] 09:34:58 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 09:34:58 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.011s coverage: 46.4% of statements 09:35:06 CGO_ENABLED=1 GO111MODULE=on go vet ./... 09:35:10 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 09:35:10 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 09:35:10 ./bin/test-attribution-txt.sh [Pipeline] echo 09:35:11 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 09:35:11 $ docker stop --time=1 a28fb3b9d43828b5b71e2eb3b2506329ddd3de951b4113d1359f1bf51130203d 09:35:13 $ docker rm -f a28fb3b9d43828b5b71e2eb3b2506329ddd3de951b4113d1359f1bf51130203d [Pipeline] // withDockerContainer [Pipeline] sh 09:35:13 + sudo chown -R jenkins:jenkins . [Pipeline] stash 09:35:13 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 09:35:14 + sudo chown -R jenkins:jenkins . [Pipeline] sh 09:35:14 + ls -al . 09:35:14 total 184 09:35:14 drwxrwxr-x 10 jenkins jenkins 4096 May 10 09:35 . 09:35:14 drwxrwxr-x 4 jenkins jenkins 4096 May 10 09:33 .. 09:35:14 -rw-rw-r-- 1 jenkins jenkins 140 May 10 09:33 .dockerignore 09:35:14 drwxrwxr-x 8 jenkins jenkins 4096 May 10 09:34 .git 09:35:14 drwxrwxr-x 3 jenkins jenkins 4096 May 10 09:33 .github 09:35:14 -rw-rw-r-- 1 jenkins jenkins 331 May 10 09:33 .gitignore 09:35:14 -rw-rw-r-- 1 jenkins jenkins 41 May 10 09:33 .golangci.yml 09:35:14 drwxr-xr-x 3 jenkins jenkins 4096 May 10 09:34 .semver 09:35:14 -rw-rw-r-- 1 jenkins jenkins 9377 May 10 09:33 Attribution.txt 09:35:14 -rw-rw-r-- 1 jenkins jenkins 10001 May 10 09:33 CHANGELOG.md 09:35:14 -rw-rw-r-- 1 jenkins jenkins 1546 May 10 09:33 Dockerfile 09:35:14 -rw-rw-r-- 1 jenkins jenkins 677 May 10 09:33 GOVERNANCE.md 09:35:14 -rw-rw-r-- 1 jenkins jenkins 680 May 10 09:33 Jenkinsfile 09:35:14 -rw-rw-r-- 1 jenkins jenkins 11340 May 10 09:33 LICENSE 09:35:14 -rw-rw-r-- 1 jenkins jenkins 1905 May 10 09:33 Makefile 09:35:14 -rw-rw-r-- 1 jenkins jenkins 622 May 10 09:33 OWNERS.md 09:35:14 -rw-rw-r-- 1 jenkins jenkins 3397 May 10 09:33 README.md 09:35:14 -rw-rw-r-- 1 jenkins jenkins 5 May 10 09:34 VERSION 09:35:14 drwxrwxr-x 2 jenkins jenkins 4096 May 10 09:33 bin 09:35:14 drwxrwxr-x 3 jenkins jenkins 4096 May 10 09:33 cmd 09:35:14 -rw-r--r-- 1 jenkins jenkins 24065 May 10 09:34 coverage.out 09:35:14 -rw-rw-r-- 1 jenkins jenkins 3399 May 10 09:33 go.mod 09:35:14 -rw-rw-r-- 1 jenkins jenkins 35558 May 10 09:33 go.sum 09:35:14 drwxrwxr-x 3 jenkins jenkins 4096 May 10 09:33 internal 09:35:14 drwxrwxr-x 2 jenkins jenkins 4096 May 10 09:33 simulator 09:35:14 drwxrwxr-x 4 jenkins jenkins 4096 May 10 09:33 snap 09:35:14 -rw-rw-r-- 1 jenkins jenkins 229 May 10 09:33 version.go [Pipeline] isUnix [Pipeline] sh 09:35:15 + docker build -t device-modbus -f Dockerfile --build-arg BASE=ci-base-image-x86_64 --build-arg MAKE=make build --build-arg ARCH=amd64 --label git_sha=3ea26778437bdff40bced88224eec1767570a456 --label arch=amd64 --label version=0.0.0 . 09:35:15 Sending build context to Docker daemon 5.924MB 09:35:15 Step 1/23 : ARG BASE=golang:1.17-alpine3.15 09:35:15 Step 2/23 : FROM ${BASE} AS builder 09:35:15 ---> 64002f9cdf99 09:35:15 Step 3/23 : ARG MAKE='make build' 09:35:15 ---> Running in e7bce71935f9 09:35:15 Removing intermediate container e7bce71935f9 09:35:15 ---> 40fa4dfa3fb3 09:35:15 Step 4/23 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 09:35:15 ---> Running in 2a1438a2f19a 09:35:16 Removing intermediate container 2a1438a2f19a 09:35:16 ---> d43782e44851 09:35:16 Step 5/23 : RUN apk add --update --no-cache make git openssh gcc libc-dev zeromq-dev libsodium-dev 09:35:16 ---> Running in 1e6982751e82 09:35:16 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 09:35:17 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 09:35:17 OK: 226 MiB in 60 packages 09:35:18 Removing intermediate container 1e6982751e82 09:35:18 ---> d86a95fcc50b 09:35:18 Step 6/23 : WORKDIR /device-modbus-go 09:35:18 ---> Running in 7b3b3c2e4f9d 09:35:18 Removing intermediate container 7b3b3c2e4f9d 09:35:18 ---> ae783f2a7fa4 09:35:18 Step 7/23 : COPY go.mod vendor* ./ 09:35:18 ---> 52dfa69563f5 09:35:18 Step 8/23 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 09:35:18 ---> Running in d83b6a07e3b9 09:35:19 Removing intermediate container d83b6a07e3b9 09:35:19 ---> 172aa20a2427 09:35:19 Step 9/23 : COPY . . 09:35:19 ---> be2044d132e7 09:35:19 Step 10/23 : RUN ${MAKE} 09:35:19 ---> Running in c1d171c7fc01 09:35:19 CGO_ENABLED=1 GO111MODULE=on go build -ldflags "-linkmode=external -X github.com/edgexfoundry/device-modbus-go.Version=0.0.0" -trimpath -mod=readonly -buildmode=pie -o cmd/device-modbus ./cmd 09:35:41 Removing intermediate container c1d171c7fc01 09:35:41 ---> 352a63a36ea9 09:35:41 Step 11/23 : FROM alpine:3.14 09:35:41 3.14: Pulling from library/alpine 09:35:41 8663204ce13b: Pulling fs layer 09:35:41 8663204ce13b: Verifying Checksum 09:35:41 8663204ce13b: Download complete 09:35:41 8663204ce13b: Pull complete 09:35:41 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 09:35:41 Status: Downloaded newer image for alpine:3.14 09:35:41 ---> e04c818066af 09:35:41 Step 12/23 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IoTech Ltd' 09:35:41 ---> Running in 494509332ce8 09:35:41 Removing intermediate container 494509332ce8 09:35:41 ---> b79ae72fc693 09:35:41 Step 13/23 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 09:35:41 ---> Running in 693cfb0db57d 09:35:42 Removing intermediate container 693cfb0db57d 09:35:42 ---> aa995e8b93d9 09:35:42 Step 14/23 : RUN apk add --update --no-cache zeromq dumb-init 09:35:42 ---> Running in b7e376335dd1 09:35:42 fetch https://nl.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz 09:35:43 fetch https://nl.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz 09:35:43 (1/6) Installing dumb-init (1.2.5-r1) 09:35:43 (2/6) Installing libgcc (10.3.1_git20210424-r2) 09:35:44 (3/6) Installing libsodium (1.0.18-r0) 09:35:44 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 09:35:44 (5/6) Installing libzmq (4.3.4-r0) 09:35:44 (6/6) Installing zeromq (4.3.4-r0) 09:35:44 Executing busybox-1.33.1-r7.trigger 09:35:44 OK: 8 MiB in 20 packages 09:35:44 Removing intermediate container b7e376335dd1 09:35:44 ---> 4a497aeb3b42 09:35:44 Step 15/23 : COPY --from=builder /device-modbus-go/cmd / 09:35:45 ---> f1e1c808b97c 09:35:45 Step 16/23 : COPY --from=builder /device-modbus-go/LICENSE / 09:35:45 ---> 651bc2985861 09:35:45 Step 17/23 : COPY --from=builder /device-modbus-go/Attribution.txt / 09:35:45 ---> c723748f7df4 09:35:45 Step 18/23 : EXPOSE 59901 09:35:45 ---> Running in 5d56608259db 09:35:45 Removing intermediate container 5d56608259db 09:35:45 ---> d6a3ccbc6068 09:35:45 Step 19/23 : ENTRYPOINT ["/device-modbus"] 09:35:45 ---> Running in feafe45efe06 09:35:45 Removing intermediate container feafe45efe06 09:35:45 ---> 4f1b343d3a07 09:35:45 Step 20/23 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry", "--confdir=/res"] 09:35:46 ---> Running in 2d40e33d3567 09:35:46 Removing intermediate container 2d40e33d3567 09:35:46 ---> 3dc7d3b49168 09:35:46 Step 21/23 : LABEL arch=amd64 09:35:46 ---> Running in 64f342e1d915 09:35:46 Removing intermediate container 64f342e1d915 09:35:46 ---> 35d08f4e87b4 09:35:46 Step 22/23 : LABEL git_sha=3ea26778437bdff40bced88224eec1767570a456 09:35:46 ---> Running in a2d519a0667c 09:35:46 Removing intermediate container a2d519a0667c 09:35:46 ---> 10a880fee5de 09:35:46 Step 23/23 : LABEL version=0.0.0 09:35:46 ---> Running in 402137a9048a 09:35:46 Removing intermediate container 402137a9048a 09:35:46 ---> f4182555fa75 09:35:46 [Warning] One or more build-args [ARCH] were not consumed 09:35:46 Successfully built f4182555fa75 09:35:46 Successfully tagged device-modbus: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 09:35:47 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 09:35:47 09:35:47 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] sh 09:35:47 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 09:35:47 latest: Pulling from edgex-lftools-log-publisher 09:35:47 5eb5b503b376: Pulling fs layer 09:35:47 5c69ac0246d0: Pulling fs layer 09:35:47 ec43610c2a17: Pulling fs layer 09:35:47 3a2ae6a8a46f: Pulling fs layer 09:35:47 33b1e0a273af: Pulling fs layer 09:35:47 5d3b04190fa2: Pulling fs layer 09:35:47 2f39f015ded8: Pulling fs layer 09:35:47 5d3b04190fa2: Waiting 09:35:47 2f39f015ded8: Waiting 09:35:47 33b1e0a273af: Waiting 09:35:47 3a2ae6a8a46f: Waiting 09:35:47 5c69ac0246d0: Verifying Checksum 09:35:47 5c69ac0246d0: Download complete 09:35:47 3a2ae6a8a46f: Verifying Checksum 09:35:47 3a2ae6a8a46f: Download complete 09:35:47 ec43610c2a17: Verifying Checksum 09:35:47 ec43610c2a17: Download complete 09:35:47 33b1e0a273af: Verifying Checksum 09:35:47 33b1e0a273af: Download complete 09:35:47 5d3b04190fa2: Verifying Checksum 09:35:47 5d3b04190fa2: Download complete 09:35:47 5eb5b503b376: Verifying Checksum 09:35:47 5eb5b503b376: Download complete 09:35:48 2f39f015ded8: Verifying Checksum 09:35:48 2f39f015ded8: Download complete 09:35:49 5eb5b503b376: Pull complete 09:35:49 5c69ac0246d0: Pull complete 09:35:49 ec43610c2a17: Pull complete 09:35:49 3a2ae6a8a46f: Pull complete 09:35:50 33b1e0a273af: Pull complete 09:35:50 5d3b04190fa2: Pull complete 09:35:55 2f39f015ded8: Pull complete 09:35:55 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 09:35:55 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 09:35:55 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] withDockerContainer 09:35:55 prd-ubuntu20.04-docker-8c-8g-47171 does not seem to be running inside a container 09:35:55 $ 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/xfoundry_device-modbus-go_PR-345 -v /w/workspace/xfoundry_device-modbus-go_PR-345:/w/workspace/xfoundry_device-modbus-go_PR-345:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-345@tmp:/w/workspace/xfoundry_device-modbus-go_PR-345@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 09:35:57 $ docker top 6ffaffb2046755800c5f11fae4d4e1d40aa75a950e2864648ddb171aa2ade0fe -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 09:35:58 ---> job-cost.sh 09:35:58 lf-activate-venv: SKIPPING 09:35:58 INFO: No Stack... 09:35:58 INFO: Retrieving Pricing Info for: v3-standard-8 09:35:59 INFO: Archiving Costs [Pipeline] sh 09:35:59 + cat /w/workspace/xfoundry_device-modbus-go_PR-345/archives/cost.csv 09:35:59 + cut -d, -f6 [Pipeline] lock 09:35:59 Trying to acquire lock on [jenkins-edgexfoundry-device-modbus-go-PR-345-1-stack-cost] 09:35:59 Resource [jenkins-edgexfoundry-device-modbus-go-PR-345-1-stack-cost] did not exist. Created. 09:35:59 Lock acquired on [jenkins-edgexfoundry-device-modbus-go-PR-345-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 09:35:59 + echo total: 0.2199999988079071 [Pipeline] stash 09:35:59 Stashed 1 file(s) [Pipeline] } 09:36:00 Lock released on resource [jenkins-edgexfoundry-device-modbus-go-PR-345-1-stack-cost] [Pipeline] // lock [Pipeline] } 09:36:00 $ docker stop --time=1 6ffaffb2046755800c5f11fae4d4e1d40aa75a950e2864648ddb171aa2ade0fe 09:36:01 $ docker rm -f 6ffaffb2046755800c5f11fae4d4e1d40aa75a950e2864648ddb171aa2ade0fe [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 09:44:52 Running on prd-ubuntu20.04-docker-arm64-4c-16g-47397 in /w/workspace/xfoundry_device-modbus-go_PR-345 [Pipeline] { [Pipeline] ws 09:44:52 Running in /w/workspace/device-modbus-go/1 [Pipeline] { [Pipeline] checkout 09:44:52 Selected Git installation does not exist. Using Default 09:44:52 The recommended git tool is: NONE 09:44:59 using credential edgex-jenkins-ssh 09:44:59 Cloning the remote Git repository 09:44:59 Cloning repository git@github.com:edgexfoundry/device-modbus-go.git 09:44:59 > git init /w/workspace/device-modbus-go/1 # timeout=10 09:44:59 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 09:44:59 > git --version # timeout=10 09:44:59 > git --version # 'git version 2.25.1' 09:44:59 using GIT_SSH to set credentials SSH Credentials for GitHub 09:44:59 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 09:45:01 Merging remotes/origin/main commit 241fbfbc9b273dc13e4996b0e5d4a3b540b295ea into PR head commit 3ea26778437bdff40bced88224eec1767570a456 09:45:01 Merge succeeded, producing 3ea26778437bdff40bced88224eec1767570a456 09:45:01 Checking out Revision 3ea26778437bdff40bced88224eec1767570a456 (PR-345) 09:45:00 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 09:45:00 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 09:45:00 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 09:45:00 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 09:45:00 using GIT_SSH to set credentials SSH Credentials for GitHub 09:45:00 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/pull/345/head:refs/remotes/origin/PR-345 +refs/heads/main:refs/remotes/origin/main # timeout=10 09:45:01 > git config core.sparsecheckout # timeout=10 09:45:01 > git checkout -f 3ea26778437bdff40bced88224eec1767570a456 # timeout=10 09:45:01 > git remote # timeout=10 09:45:01 > git config --get remote.origin.url # timeout=10 09:45:01 using GIT_SSH to set credentials SSH Credentials for GitHub 09:45:01 > git merge 241fbfbc9b273dc13e4996b0e5d4a3b540b295ea # timeout=10 09:45:01 > git rev-parse HEAD^{commit} # timeout=10 09:45:01 > git config core.sparsecheckout # timeout=10 09:45:01 > git checkout -f 3ea26778437bdff40bced88224eec1767570a456 # timeout=10 09:45:06 Commit message: "build(deps): Bump github.com/canonical/edgex-snap-hooks/v2 from 2.2.0-beta.5 to 2.2.0 in /snap/local/hooks" 09:45:06 > git --version # timeout=10 09:45:06 > git --version # 'git version 2.25.1' 09:45:06 fatal: bad object 61d3a14f5ee21304eadc9c25f102bcac80e1a589 [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 09:45:07 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 09:45:07 % Total % Received % Xferd Average Speed Time Time Time Current 09:45:07 Dload Upload Total Spent Left Speed 09:45:07 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 11843 100 11843 0 0 222k 0 --:--:-- --:--:-- --:--:-- 222k [Pipeline] sh 09:45:07 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 09:45:08 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 09:45:08 + sudo tee /etc/docker/daemon.new 09:45:08 { 09:45:08 "registry-mirrors": [ 09:45:08 "https://nexus3.edgexfoundry.org:10001" 09:45:08 ], 09:45:08 "bip": "10.250.0.254/24", 09:45:08 "hosts": [ 09:45:08 "tcp://0.0.0.0:5555", 09:45:08 "unix:///var/run/docker.sock" 09:45:08 ], 09:45:08 "mtu": 1458, 09:45:08 "selinux-enabled": true, 09:45:08 "seccomp-profile": "/etc/docker/seccomp.json" 09:45:08 } [Pipeline] sh 09:45:08 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 09:45:08 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 09:45:27 provisioning config files... 09:45:27 copy managed file [device-modbus-go-settings] to file:/w/workspace/device-modbus-go/1@tmp/config4861115707477748328tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 09:45:27 ---> docker-login.sh 09:45:27 nexus3.edgexfoundry.org:10001 09:45:28 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:45:28 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:45:28 Configure a credential helper to remove this warning. See 09:45:28 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:45:28 09:45:28 Login Succeeded 09:45:28 nexus3.edgexfoundry.org:10002 09:45:29 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:45:29 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:45:29 Configure a credential helper to remove this warning. See 09:45:29 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:45:29 09:45:29 Login Succeeded 09:45:29 nexus3.edgexfoundry.org:10003 09:45:29 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:45:30 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:45:30 Configure a credential helper to remove this warning. See 09:45:30 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:45:30 09:45:30 Login Succeeded 09:45:30 nexus3.edgexfoundry.org:10004 09:45:30 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:45:30 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:45:30 Configure a credential helper to remove this warning. See 09:45:30 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:45:30 09:45:30 Login Succeeded 09:45:30 docker.io 09:45:30 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:45:31 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:45:31 Configure a credential helper to remove this warning. See 09:45:31 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:45:31 09:45:31 Login Succeeded 09:45:31 ---> docker-login.sh ends [Pipeline] } 09:45:31 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 09:45:31 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 09:45:31 ========================================================= 09:45:31 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine] 09:45:31 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 09:45:32 + 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 . 09:45:32 Sending build context to Docker daemon 3.081MB 09:45:32 Step 1/10 : ARG BASE=golang:1.17-alpine3.15 09:45:32 Step 2/10 : FROM ${BASE} AS builder 09:45:32 1.17-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 09:45:32 9b3977197b4f: Pulling fs layer 09:45:32 1a89e8eeedd5: Pulling fs layer 09:45:32 94645a83ff95: Pulling fs layer 09:45:32 3f3a8bcf1eab: Pulling fs layer 09:45:32 0c92f367c5e7: Pulling fs layer 09:45:32 3096ccb668a1: Pulling fs layer 09:45:32 e8cf19c19ddd: Pulling fs layer 09:45:32 a4caa8a26152: Pulling fs layer 09:45:32 3f3a8bcf1eab: Waiting 09:45:32 3096ccb668a1: Waiting 09:45:32 e8cf19c19ddd: Waiting 09:45:32 a4caa8a26152: Waiting 09:45:32 0c92f367c5e7: Waiting 09:45:32 94645a83ff95: Download complete 09:45:32 1a89e8eeedd5: Verifying Checksum 09:45:32 1a89e8eeedd5: Download complete 09:45:32 0c92f367c5e7: Verifying Checksum 09:45:32 0c92f367c5e7: Download complete 09:45:32 3096ccb668a1: Verifying Checksum 09:45:32 3096ccb668a1: Download complete 09:45:32 9b3977197b4f: Verifying Checksum 09:45:32 e8cf19c19ddd: Verifying Checksum 09:45:32 e8cf19c19ddd: Download complete 09:45:33 9b3977197b4f: Pull complete 09:45:34 1a89e8eeedd5: Pull complete 09:45:34 94645a83ff95: Pull complete 09:45:34 a4caa8a26152: Verifying Checksum 09:45:34 a4caa8a26152: Download complete 09:45:35 3f3a8bcf1eab: Verifying Checksum 09:45:35 3f3a8bcf1eab: Download complete 09:45:50 3f3a8bcf1eab: Pull complete 09:45:50 0c92f367c5e7: Pull complete 09:45:50 3096ccb668a1: Pull complete 09:45:50 e8cf19c19ddd: Pull complete 09:45:56 a4caa8a26152: Pull complete 09:45:56 Digest: sha256:b3ad895ecde34a7521bb8912598475bc58d052e1c2c58d00df7f0fe54a102a46 09:45:56 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine 09:45:56 ---> 725f1c02e7f9 09:45:56 Step 3/10 : ARG MAKE='make build' 09:45:57 ---> Running in 636cba0af8eb 09:45:57 Removing intermediate container 636cba0af8eb 09:45:57 ---> 4276d1c79d2b 09:45:57 Step 4/10 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 09:45:57 ---> Running in 94156f98d379 09:46:01 Removing intermediate container 94156f98d379 09:46:01 ---> 827b2ba7a4e1 09:46:01 Step 5/10 : RUN apk add --update --no-cache make git openssh gcc libc-dev zeromq-dev libsodium-dev 09:46:01 ---> Running in 25227cb35825 09:46:01 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 09:46:02 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 09:46:03 (1/8) Installing openssh-keygen (8.8_p1-r1) 09:46:03 (2/8) Installing libedit (20210910.3.1-r0) 09:46:03 (3/8) Installing openssh-client-common (8.8_p1-r1) 09:46:03 (4/8) Installing openssh-client-default (8.8_p1-r1) 09:46:04 (5/8) Installing openssh-sftp-server (8.8_p1-r1) 09:46:04 (6/8) Installing openssh-server-common (8.8_p1-r1) 09:46:04 (7/8) Installing openssh-server (8.8_p1-r1) 09:46:04 (8/8) Installing openssh (8.8_p1-r1) 09:46:04 Executing busybox-1.34.1-r3.trigger 09:46:04 OK: 226 MiB in 60 packages 09:46:05 Removing intermediate container 25227cb35825 09:46:05 ---> 46dcd3ac5872 09:46:05 Step 6/10 : WORKDIR /device-modbus-go 09:46:05 ---> Running in f821a73a046f 09:46:06 Removing intermediate container f821a73a046f 09:46:06 ---> 2fe6f6ea6e70 09:46:06 Step 7/10 : COPY go.mod vendor* ./ 09:46:06 ---> 3c2ffd8347df 09:46:06 Step 8/10 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 09:46:06 ---> Running in 398c6d502f1b 09:46:53 Removing intermediate container 398c6d502f1b 09:46:53 ---> ad8e1746ec93 09:46:53 Step 9/10 : COPY . . 09:46:54 ---> 92ca1c261429 09:46:54 Step 10/10 : RUN ${MAKE} 09:46:54 ---> Running in 28212b7ba0b9 09:46:56 noop 09:46:56 Removing intermediate container 28212b7ba0b9 09:46:56 ---> adb633fd500a 09:46:56 Successfully built adb633fd500a 09:46:56 Successfully tagged ci-base-image-arm64:latest [Pipeline] isUnix [Pipeline] sh 09:46:56 + docker inspect -f . ci-base-image-arm64 09:46:56 . [Pipeline] withDockerContainer 09:46:57 prd-ubuntu20.04-docker-arm64-4c-16g-47397 does not seem to be running inside a container 09:46:57 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-modbus-go/1 -v /w/workspace/device-modbus-go/1:/w/workspace/device-modbus-go/1:rw,z -v /w/workspace/device-modbus-go/1@tmp:/w/workspace/device-modbus-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 09:46:58 $ docker top 83ac1604901dc282878ce2fc6a0e2ff92f211efc3a3efdd67bc0c7eef449c22c -eo pid,comm [Pipeline] { [Pipeline] sh 09:46:59 + go version 09:46:59 go version go1.17.6 linux/arm64 [Pipeline] } 09:46:59 $ docker stop --time=1 83ac1604901dc282878ce2fc6a0e2ff92f211efc3a3efdd67bc0c7eef449c22c 09:47:01 $ docker rm -f 83ac1604901dc282878ce2fc6a0e2ff92f211efc3a3efdd67bc0c7eef449c22c [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 09:47:02 + docker inspect -f . ci-base-image-arm64 09:47:02 . [Pipeline] withDockerContainer 09:47:02 prd-ubuntu20.04-docker-arm64-4c-16g-47397 does not seem to be running inside a container 09:47:02 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-modbus-go/1 -v /w/workspace/device-modbus-go/1:/w/workspace/device-modbus-go/1:rw,z -v /w/workspace/device-modbus-go/1@tmp:/w/workspace/device-modbus-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 09:47:03 $ docker top 5385f0e1f2271d87c91eab2e00e3a0626ed712da493b589ba1a28ccba1c6e23e -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 09:47:04 + make test 09:47:04 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out 09:47:07 ? github.com/edgexfoundry/device-modbus-go [no test files] 09:48:44 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 09:48:44 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.087s coverage: 46.4% of statements 09:48:44 WARNING: Linting skipped (not on x86_64 or linter not installed) 09:48:44 CGO_ENABLED=1 GO111MODULE=on go vet ./... 09:49:06 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 09:49:06 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 09:49:06 ./bin/test-attribution-txt.sh [Pipeline] echo 09:49:07 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 09:49:07 $ docker stop --time=1 5385f0e1f2271d87c91eab2e00e3a0626ed712da493b589ba1a28ccba1c6e23e 09:49:09 $ docker rm -f 5385f0e1f2271d87c91eab2e00e3a0626ed712da493b589ba1a28ccba1c6e23e [Pipeline] // withDockerContainer [Pipeline] sh 09:49:10 + sudo chown -R jenkins:jenkins . [Pipeline] stash 09:49:10 Warning: overwriting stash ‘coverage-report’ 09:49:10 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 09:49:11 + sudo chown -R jenkins:jenkins . [Pipeline] sh 09:49:11 + ls -al . 09:49:11 total 180 09:49:11 drwxrwxr-x 9 jenkins jenkins 4096 May 10 09:49 . 09:49:11 drwxrwxr-x 4 jenkins jenkins 4096 May 10 09:44 .. 09:49:11 -rw-rw-r-- 1 jenkins jenkins 140 May 10 09:45 .dockerignore 09:49:11 drwxrwxr-x 8 jenkins jenkins 4096 May 10 09:45 .git 09:49:11 drwxrwxr-x 3 jenkins jenkins 4096 May 10 09:45 .github 09:49:11 -rw-rw-r-- 1 jenkins jenkins 331 May 10 09:45 .gitignore 09:49:11 -rw-rw-r-- 1 jenkins jenkins 41 May 10 09:45 .golangci.yml 09:49:11 -rw-rw-r-- 1 jenkins jenkins 9377 May 10 09:45 Attribution.txt 09:49:11 -rw-rw-r-- 1 jenkins jenkins 10001 May 10 09:45 CHANGELOG.md 09:49:11 -rw-rw-r-- 1 jenkins jenkins 1546 May 10 09:45 Dockerfile 09:49:11 -rw-rw-r-- 1 jenkins jenkins 677 May 10 09:45 GOVERNANCE.md 09:49:11 -rw-rw-r-- 1 jenkins jenkins 680 May 10 09:45 Jenkinsfile 09:49:11 -rw-rw-r-- 1 jenkins jenkins 11340 May 10 09:45 LICENSE 09:49:11 -rw-rw-r-- 1 jenkins jenkins 1905 May 10 09:45 Makefile 09:49:11 -rw-rw-r-- 1 jenkins jenkins 622 May 10 09:45 OWNERS.md 09:49:11 -rw-rw-r-- 1 jenkins jenkins 3397 May 10 09:45 README.md 09:49:11 -rw-rw-r-- 1 jenkins jenkins 5 May 10 09:34 VERSION 09:49:11 drwxrwxr-x 2 jenkins jenkins 4096 May 10 09:45 bin 09:49:11 drwxrwxr-x 3 jenkins jenkins 4096 May 10 09:45 cmd 09:49:11 -rw-r--r-- 1 jenkins jenkins 24065 May 10 09:48 coverage.out 09:49:11 -rw-rw-r-- 1 jenkins jenkins 3399 May 10 09:45 go.mod 09:49:11 -rw-rw-r-- 1 jenkins jenkins 35558 May 10 09:45 go.sum 09:49:11 drwxrwxr-x 3 jenkins jenkins 4096 May 10 09:45 internal 09:49:11 drwxrwxr-x 2 jenkins jenkins 4096 May 10 09:45 simulator 09:49:11 drwxrwxr-x 4 jenkins jenkins 4096 May 10 09:45 snap 09:49:11 -rw-rw-r-- 1 jenkins jenkins 229 May 10 09:45 version.go [Pipeline] isUnix [Pipeline] sh 09:49:12 + docker build -t device-modbus-arm64 -f Dockerfile --build-arg BASE=ci-base-image-arm64 --build-arg MAKE=make build --build-arg ARCH=arm64 --label git_sha=3ea26778437bdff40bced88224eec1767570a456 --label arch=arm64 --label version=0.0.0 . 09:49:12 Sending build context to Docker daemon 3.106MB 09:49:12 Step 1/23 : ARG BASE=golang:1.17-alpine3.15 09:49:12 Step 2/23 : FROM ${BASE} AS builder 09:49:12 ---> adb633fd500a 09:49:12 Step 3/23 : ARG MAKE='make build' 09:49:12 ---> Running in 02ae68029654 09:49:13 Removing intermediate container 02ae68029654 09:49:13 ---> 522698aa986f 09:49:13 Step 4/23 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 09:49:13 ---> Running in 4ec80a43b134 09:49:15 Removing intermediate container 4ec80a43b134 09:49:15 ---> 16c7bc69b4e3 09:49:15 Step 5/23 : RUN apk add --update --no-cache make git openssh gcc libc-dev zeromq-dev libsodium-dev 09:49:15 ---> Running in eb71601534cd 09:49:16 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 09:49:17 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 09:49:18 OK: 226 MiB in 60 packages 09:49:19 Removing intermediate container eb71601534cd 09:49:19 ---> 15277064738f 09:49:19 Step 6/23 : WORKDIR /device-modbus-go 09:49:19 ---> Running in 053e300e3f5f 09:49:19 Removing intermediate container 053e300e3f5f 09:49:19 ---> d1c7a54beb06 09:49:19 Step 7/23 : COPY go.mod vendor* ./ 09:49:19 ---> f425ff5a792b 09:49:19 Step 8/23 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 09:49:19 ---> Running in b9ff8e81658a 09:49:21 Removing intermediate container b9ff8e81658a 09:49:21 ---> dbfa0580f14e 09:49:21 Step 9/23 : COPY . . 09:49:22 ---> 7428181f4208 09:49:22 Step 10/23 : RUN ${MAKE} 09:49:22 ---> Running in 06ee37a40862 09:49:24 CGO_ENABLED=1 GO111MODULE=on go build -ldflags "-linkmode=external -X github.com/edgexfoundry/device-modbus-go.Version=0.0.0" -trimpath -mod=readonly -buildmode=pie -o cmd/device-modbus ./cmd 09:51:46 Removing intermediate container 06ee37a40862 09:51:46 ---> eca31cf3184b 09:51:46 Step 11/23 : FROM alpine:3.14 09:51:46 3.14: Pulling from library/alpine 09:51:46 455c02918c45: Pulling fs layer 09:51:46 455c02918c45: Verifying Checksum 09:51:46 455c02918c45: Download complete 09:51:46 455c02918c45: Pull complete 09:51:46 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 09:51:46 Status: Downloaded newer image for alpine:3.14 09:51:46 ---> ac73e934f311 09:51:46 Step 12/23 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IoTech Ltd' 09:51:46 ---> Running in 1766fa001d8a 09:51:46 Removing intermediate container 1766fa001d8a 09:51:46 ---> 9633133c897c 09:51:46 Step 13/23 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 09:51:46 ---> Running in 1479985fa294 09:51:46 Removing intermediate container 1479985fa294 09:51:46 ---> 2ab9bca752c0 09:51:46 Step 14/23 : RUN apk add --update --no-cache zeromq dumb-init 09:51:46 ---> Running in 66048477dc33 09:51:46 fetch https://nl.alpinelinux.org/alpine/v3.14/main/aarch64/APKINDEX.tar.gz 09:51:46 fetch https://nl.alpinelinux.org/alpine/v3.14/community/aarch64/APKINDEX.tar.gz 09:51:46 (1/6) Installing dumb-init (1.2.5-r1) 09:51:46 (2/6) Installing libgcc (10.3.1_git20210424-r2) 09:51:46 (3/6) Installing libsodium (1.0.18-r0) 09:51:46 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 09:51:46 (5/6) Installing libzmq (4.3.4-r0) 09:51:46 (6/6) Installing zeromq (4.3.4-r0) 09:51:46 Executing busybox-1.33.1-r7.trigger 09:51:46 OK: 8 MiB in 20 packages 09:51:46 Removing intermediate container 66048477dc33 09:51:46 ---> adfcc8ed42cb 09:51:46 Step 15/23 : COPY --from=builder /device-modbus-go/cmd / 09:51:46 ---> 54fb17891a29 09:51:46 Step 16/23 : COPY --from=builder /device-modbus-go/LICENSE / 09:51:46 ---> 66afe5b77038 09:51:46 Step 17/23 : COPY --from=builder /device-modbus-go/Attribution.txt / 09:51:46 ---> 3c2cffa79db5 09:51:46 Step 18/23 : EXPOSE 59901 09:51:46 ---> Running in 7a87efc45370 09:51:46 Removing intermediate container 7a87efc45370 09:51:46 ---> 604b9192d58d 09:51:46 Step 19/23 : ENTRYPOINT ["/device-modbus"] 09:51:46 ---> Running in 4e8562925e51 09:51:46 Removing intermediate container 4e8562925e51 09:51:46 ---> 22c885e8dcc6 09:51:46 Step 20/23 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry", "--confdir=/res"] 09:51:46 ---> Running in a4e173bdc5ce 09:51:46 Removing intermediate container a4e173bdc5ce 09:51:46 ---> a063b2e5d990 09:51:46 Step 21/23 : LABEL arch=arm64 09:51:46 ---> Running in e829f0937193 09:51:46 Removing intermediate container e829f0937193 09:51:46 ---> da2960a1cb35 09:51:46 Step 22/23 : LABEL git_sha=3ea26778437bdff40bced88224eec1767570a456 09:51:46 ---> Running in 3b8185ed2d8e 09:51:46 Removing intermediate container 3b8185ed2d8e 09:51:46 ---> 7b1d2cc09644 09:51:46 Step 23/23 : LABEL version=0.0.0 09:51:47 ---> Running in 7e62c7d8ae95 09:51:47 Removing intermediate container 7e62c7d8ae95 09:51:47 ---> 769c47529ad8 09:51:47 [Warning] One or more build-args [ARCH] were not consumed 09:51:47 Successfully built 769c47529ad8 09:51:47 Successfully tagged device-modbus-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 09:51:48 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 09:51:48 09:51:48 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] sh 09:51:48 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 09:51:48 arm64: Pulling from edgex-lftools-log-publisher 09:51:48 8998bd30e6a1: Pulling fs layer 09:51:48 04944245beec: Pulling fs layer 09:51:48 699f458cf7ca: Pulling fs layer 09:51:48 765212b225bb: Pulling fs layer 09:51:48 f23df028b6ca: Pulling fs layer 09:51:48 d65c8cfc05b1: Pulling fs layer 09:51:48 2437ff75d9bd: Pulling fs layer 09:51:48 765212b225bb: Waiting 09:51:48 d65c8cfc05b1: Waiting 09:51:48 f23df028b6ca: Waiting 09:51:48 2437ff75d9bd: Waiting 09:51:48 04944245beec: Verifying Checksum 09:51:48 04944245beec: Download complete 09:51:48 765212b225bb: Verifying Checksum 09:51:48 765212b225bb: Download complete 09:51:48 f23df028b6ca: Verifying Checksum 09:51:48 f23df028b6ca: Download complete 09:51:49 d65c8cfc05b1: Verifying Checksum 09:51:49 d65c8cfc05b1: Download complete 09:51:49 699f458cf7ca: Verifying Checksum 09:51:49 699f458cf7ca: Download complete 09:51:49 8998bd30e6a1: Download complete 09:51:51 2437ff75d9bd: Verifying Checksum 09:51:51 2437ff75d9bd: Download complete 09:51:53 8998bd30e6a1: Pull complete 09:51:54 04944245beec: Pull complete 09:51:55 699f458cf7ca: Pull complete 09:51:55 765212b225bb: Pull complete 09:51:56 f23df028b6ca: Pull complete 09:51:57 d65c8cfc05b1: Pull complete 09:52:12 2437ff75d9bd: Pull complete 09:52:12 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 09:52:12 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 09:52:12 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] withDockerContainer 09:52:12 prd-ubuntu20.04-docker-arm64-4c-16g-47397 does not seem to be running inside a container 09:52:12 $ 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-modbus-go/1 -v /w/workspace/device-modbus-go/1:/w/workspace/device-modbus-go/1:rw,z -v /w/workspace/device-modbus-go/1@tmp:/w/workspace/device-modbus-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 09:52:15 $ docker top 6529f372dced98f6ee7e2a63dcb76f495323dc42aea66265aa834f78a47bd89c -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 09:52:16 ---> job-cost.sh 09:52:16 lf-activate-venv: SKIPPING 09:52:16 INFO: No Stack... 09:52:17 INFO: Retrieving Pricing Info for: v3-standard-4 09:52:17 INFO: Archiving Costs [Pipeline] sh 09:52:18 + cat /w/workspace/device-modbus-go/1/archives/cost.csv 09:52:18 + cut -d, -f6 [Pipeline] lock 09:52:18 Trying to acquire lock on [jenkins-edgexfoundry-device-modbus-go-PR-345-1-stack-cost] 09:52:18 Resource [jenkins-edgexfoundry-device-modbus-go-PR-345-1-stack-cost] did not exist. Created. 09:52:18 Lock acquired on [jenkins-edgexfoundry-device-modbus-go-PR-345-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 09:52:19 /w/workspace/device-modbus-go/1@tmp/durable-da5b83e0/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 09:52:20 + echo total: 0.10999999940395355 [Pipeline] stash 09:52:20 Warning: overwriting stash ‘stack-cost’ 09:52:20 Stashed 1 file(s) [Pipeline] } 09:52:20 Lock released on resource [jenkins-edgexfoundry-device-modbus-go-PR-345-1-stack-cost] [Pipeline] // lock [Pipeline] } 09:52:20 $ docker stop --time=1 6529f372dced98f6ee7e2a63dcb76f495323dc42aea66265aa834f78a47bd89c 09:52:21 $ docker rm -f 6529f372dced98f6ee7e2a63dcb76f495323dc42aea66265aa834f78a47bd89c [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 09:52:22 provisioning config files... 09:52:22 copy managed file [device-modbus-go-codecov-token] to file:/w/workspace/xfoundry_device-modbus-go_PR-345@tmp/config4782285066568555493tmp [Pipeline] { [Pipeline] sh 09:52:23 + set +x 09:52:23 + curl -s https://codecov.io/bash 09:52:23 + bash -s -- 09:52:23 09:52:23 _____ _ 09:52:23 / ____| | | 09:52:23 | | ___ __| | ___ ___ _____ __ 09:52:23 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 09:52:23 | |___| (_) | (_| | __/ (_| (_) \ V / 09:52:23 \_____\___/ \__,_|\___|\___\___/ \_/ 09:52:23 Bash-1.0.6 09:52:23 09:52:23 09:52:23 ==> git version 2.25.1 found 09:52:23 ==> 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 09:52:23 Release-Date: 2020-01-08 09:52:23 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 09:52:23 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 09:52:23 ==> Jenkins CI detected. 09:52:23 current dir:  /w/workspace/xfoundry_device-modbus-go_PR-345 09:52:23 project root: . 09:52:23 --> token set from env 09:52:23 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 09:52:23 ==> Running gcov in . (disable via -X gcov) 09:52:23 ==> Python coveragepy not found 09:52:23 ==> Searching for coverage reports in: 09:52:23 + . 09:52:23 -> Found 1 reports 09:52:23 ==> Detecting git/mercurial file structure 09:52:23 ==> Reading reports 09:52:23 + ./coverage.out bytes=24065 09:52:23 ==> Appending adjustments 09:52:23 https://docs.codecov.io/docs/fixing-reports 09:52:23 + Found adjustments 09:52:23 ==> Gzipping contents 09:52:23 4.0K /tmp/codecov.kaTBuS.gz 09:52:23 ==> Uploading reports 09:52:23 url: https://codecov.io 09:52:23 query: branch=PR-345&commit=3ea26778437bdff40bced88224eec1767570a456&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-modbus-go%2Fjob%2FPR-345%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-modbus-go&service=jenkins&flags=&pr=345&job=&cmd_args= 09:52:23 -> Pinging Codecov 09:52:23 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=3a8d40b1-de00-4649-bfd4-bdc8ed99ae89&branch=PR-345&commit=3ea26778437bdff40bced88224eec1767570a456&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-modbus-go%2Fjob%2FPR-345%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-modbus-go&service=jenkins&flags=&pr=345&job=&cmd_args= 09:52:23 -> Uploading to 09:52:23 https://storage.googleapis.com/codecov/v4/raw/2022-05-10/55DBCA73C666E3227836607328DD7E49/3ea26778437bdff40bced88224eec1767570a456/726cf6d6-ae9d-4395-937f-d9d8282cda4f.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20220510%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20220510T095223Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=c8c0fcbaaa957ea9e017f3fe619b829210a711e1a36f0a4e554fc206d5a4d4ff 09:52:23 % Total % Received % Xferd Average Speed Time Time Time Current 09:52:23 Dload Upload Total Spent Left Speed 09:52:23 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 4012 0 0 100 4012 0 17910 --:--:-- --:--:-- --:--:-- 17910 09:52:24 -> Reports have been successfully queued for processing at https://codecov.io/github/edgexfoundry/device-modbus-go/commit/3ea26778437bdff40bced88224eec1767570a456 [Pipeline] } 09:52:24 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 09:52:25 + [ -d /w/workspace/xfoundry_device-modbus-go_PR-345/archives ] 09:52:25 + ls -al /w/workspace/xfoundry_device-modbus-go_PR-345/archives 09:52:25 total 16 09:52:25 drwxr-xr-x 3 root root 4096 May 10 09:35 . 09:52:25 drwxrwxr-x 11 jenkins jenkins 4096 May 10 09:35 .. 09:52:25 drwxr-xr-x 2 root root 4096 May 10 09:35 cost 09:52:25 -rw-r--r-- 1 root root 87 May 10 09:35 cost.csv 09:52:25 + sudo chown -R jenkins:jenkins /w/workspace/xfoundry_device-modbus-go_PR-345/archives 09:52:25 + ls -al /w/workspace/xfoundry_device-modbus-go_PR-345/archives 09:52:25 total 16 09:52:25 drwxr-xr-x 3 jenkins jenkins 4096 May 10 09:35 . 09:52:25 drwxrwxr-x 11 jenkins jenkins 4096 May 10 09:35 .. 09:52:25 drwxr-xr-x 2 jenkins jenkins 4096 May 10 09:35 cost 09:52:25 -rw-r--r-- 1 jenkins jenkins 87 May 10 09:35 cost.csv [Pipeline] libraryResource [Pipeline] sh 09:52:26 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 09:52:27 ---> package-listing.sh 09:52:27 ++ facter osfamily 09:52:27 ++ tr '[:upper:]' '[:lower:]' 09:52:27 + OS_FAMILY=debian 09:52:27 + workspace=/w/workspace/xfoundry_device-modbus-go_PR-345 09:52:27 + START_PACKAGES=/tmp/packages_start.txt 09:52:27 + END_PACKAGES=/tmp/packages_end.txt 09:52:27 + DIFF_PACKAGES=/tmp/packages_diff.txt 09:52:27 + PACKAGES=/tmp/packages_start.txt 09:52:27 + '[' /w/workspace/xfoundry_device-modbus-go_PR-345 ']' 09:52:27 + PACKAGES=/tmp/packages_end.txt 09:52:27 + case "${OS_FAMILY}" in 09:52:27 + dpkg -l 09:52:27 + grep '^ii' 09:52:27 + '[' -f /tmp/packages_start.txt ']' 09:52:27 + '[' -f /tmp/packages_end.txt ']' 09:52:27 + diff /tmp/packages_start.txt /tmp/packages_end.txt 09:52:27 + '[' /w/workspace/xfoundry_device-modbus-go_PR-345 ']' 09:52:27 + mkdir -p /w/workspace/xfoundry_device-modbus-go_PR-345/archives/ 09:52:27 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/xfoundry_device-modbus-go_PR-345/archives/ [Pipeline] echo 09:52:27 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/xfoundry_device-modbus-go_PR-345/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 09:52:27 + facter operatingsystem [Pipeline] isUnix [Pipeline] sh 09:52:28 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 09:52:28 . [Pipeline] withDockerContainer 09:52:28 prd-ubuntu20.04-docker-8c-8g-47171 does not seem to be running inside a container 09:52:28 $ 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/xfoundry_device-modbus-go_PR-345/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/xfoundry_device-modbus-go_PR-345 -v /w/workspace/xfoundry_device-modbus-go_PR-345:/w/workspace/xfoundry_device-modbus-go_PR-345:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-345@tmp:/w/workspace/xfoundry_device-modbus-go_PR-345@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 09:52:28 $ docker top bfc49b6025f8c044aac7399301b599f9d702503f965e2760b0fc5391e0655c24 -eo pid,comm [Pipeline] { [Pipeline] sh 09:52:29 + touch /tmp/pre-build-complete [Pipeline] sh 09:52:29 + mkdir -p /var/log/sysstat [Pipeline] sh 09:52:29 + ls /var/log/sa-host 09:52:29 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 09:52:29 provisioning config files... 09:52:29 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-345@tmp/config3913321979481033192tmp [Pipeline] { [Pipeline] echo 09:52:29 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 09:52:30 ---> create-netrc.sh [Pipeline] } 09:52:30 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 09:52:30 ---> python-tools-install.sh [Pipeline] echo 09:52:30 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 09:52:30 ---> sudo-logs.sh 09:52:30 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 09:52:31 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 09:52:31 ---> job-cost.sh 09:52:31 lf-activate-venv: SKIPPING 09:52:31 DEBUG: total: 0.2199999988079071 09:52:31 INFO: Retrieving Stack Cost... 09:52:31 INFO: Retrieving Pricing Info for: v3-standard-8 09:52:32 INFO: Archiving Costs [Pipeline] echo 09:52:32 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 09:52:32 ---> logs-deploy.sh 09:52:32 lf-activate-venv: SKIPPING 09:52:32 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-modbus-go/PR-345/1 09:52:32 INFO: archiving workspace using pattern(s): 09:52:33 Archives upload complete. 09:52:33 INFO: archiving logs to Nexus