Branch indexing Connecting to https://api.github.com using edgex-jenkins github personal access token Connecting to https://api.github.com to check permissions of obtain list of jpwhitemn for edgexfoundry/device-modbus-go Obtained Jenkinsfile from e5f2a8e3721d1093ba85c237dea8e9bf07f944e2+34696552c2fac84d635c044d3d9d718bd3379cee (18092ac78045159d7369b87b20827f3cc62c7e76) 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-ssh16929433233011400704.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-ssh17821834296616942024.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 > git rev-parse --resolve-git-dir /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-343/workspace@libs/edgex-global-pipelines/.git # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Fetching with tags Fetching upstream changes from git@github.com:edgexfoundry/edgex-global-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-343/workspace@libs/edgex-global-pipelines@tmp/jenkins-gitclient-ssh2797139019945376135.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 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-ssh7527387881853255328.key > git ls-remote -h -- git@github.com:lfit/releng-pipelines.git # timeout=10 Found match: refs/heads/master revision b3dada9287033e4e81bc68320e01fd57bef02650 The recommended git tool is: NONE using credential edgex-jenkins-ssh > git rev-parse --resolve-git-dir /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-343/workspace@libs/lf-pipelines/.git # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url git@github.com:lfit/releng-pipelines.git # timeout=10 Fetching without tags Fetching upstream changes from git@github.com:lfit/releng-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-343/workspace@libs/lf-pipelines@tmp/jenkins-gitclient-ssh10478425915493616545.key > git fetch --no-tags --progress -- git@github.com:lfit/releng-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10 Checking out Revision b3dada9287033e4e81bc68320e01fd57bef02650 (master) > git config core.sparsecheckout # timeout=10 > git checkout -f b3dada9287033e4e81bc68320e01fd57bef02650 # timeout=10 Commit message: "Fix: Update requirements.txt, update global-jjb" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 Excluding src/test/ from checkout of git git@github.com:lfit/releng-pipelines.git so that shared library test code cannot be accessed by Pipelines. To remove this log message, move the test code outside of src/. To restore the previous behavior that allowed access to files in src/test/, pass -Dorg.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.INCLUDE_SRC_TEST_IN_LIBRARIES=true to the java command used to start Jenkins. [Pipeline] Start of Pipeline [Pipeline] echo ========================================================= [edgeXBuildGoApp] RAW Config: [project:device-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 All nodes of label ‘ubuntu20.04-docker-8c-8g’ are offline Running on prd-ubuntu20.04-docker-8c-8g-41805 in /w/workspace/xfoundry_device-modbus-go_PR-343 [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-343 # 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 34696552c2fac84d635c044d3d9d718bd3379cee into PR head commit e5f2a8e3721d1093ba85c237dea8e9bf07f944e2 Merge succeeded, producing 34a018714ea1f902c36d17577cc49c1f6302e56f Checking out Revision 34a018714ea1f902c36d17577cc49c1f6302e56f (PR-343) > 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/343/head:refs/remotes/origin/PR-343 +refs/heads/main:refs/remotes/origin/main # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f e5f2a8e3721d1093ba85c237dea8e9bf07f944e2 # 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 34696552c2fac84d635c044d3d9d718bd3379cee # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 34a018714ea1f902c36d17577cc49c1f6302e56f # timeout=10 Commit message: "Merge commit '34696552c2fac84d635c044d3d9d718bd3379cee' into HEAD" > git rev-list --no-walk e5f2a8e3721d1093ba85c237dea8e9bf07f944e2 # timeout=10 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 12:53:04 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 12:53:04 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 12:53:04 ========================================================= 12:53:04 EdgeX Global Pipelines Version Info 12:53:04 ========================================================= [Pipeline] libraryResource [Pipeline] sh 12:53:05 ------------------- 12:53:05 stable info: 12:53:05 ------------------- 12:53:05 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 12:53:05 Commit SHA: 61d3a14f5ee21304eadc9c25f102bcac80e1a589 12:53:05 Message: update stable to v1.0.227 12:53:05 ------------------- 12:53:05 experimental info: 12:53:05 ------------------- 12:53:05 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 12:53:05 Commit SHA: 821e2ffd3fa43eddc5db18cf710cdace1a36094c 12:53:05 Message: update experimental to v1.0.229 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 12:53:06 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-modbus-go-settings [Pipeline] echo 12:53:06 [edgeXSetupEnvironment]: set envvar PROJECT = device-modbus-go [Pipeline] echo 12:53:06 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 12:53:06 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 12:53:06 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 12:53:06 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.17 [Pipeline] echo 12:53:06 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 12:53:06 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 12:53:06 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 12:53:06 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 12:53:06 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 12:53:06 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-modbus [Pipeline] echo 12:53:06 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 12:53:06 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 12:53:06 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 12:53:06 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 12:53:06 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 12:53:06 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 12:53:06 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 12:53:06 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 12:53:06 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 12:53:06 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 12:53:06 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 12:53:06 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 12:53:06 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 12:53:06 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 12:53:06 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-343 [Pipeline] echo 12:53:06 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-343 [Pipeline] echo 12:53:06 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-343 [Pipeline] echo 12:53:06 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 34a018714ea1f902c36d17577cc49c1f6302e56f [Pipeline] echo 12:53:06 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 34a0187 [Pipeline] echo 12:53:06 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 12:53:06 provisioning config files... 12:53:06 copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-343@tmp/config3132052992783604124tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 12:53:06 ---> docker-login.sh 12:53:06 nexus3.edgexfoundry.org:10001 12:53:07 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:53:07 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:53:07 Configure a credential helper to remove this warning. See 12:53:07 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:53:07 12:53:07 Login Succeeded 12:53:07 nexus3.edgexfoundry.org:10002 12:53:07 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:53:07 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:53:07 Configure a credential helper to remove this warning. See 12:53:07 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:53:07 12:53:07 Login Succeeded 12:53:07 nexus3.edgexfoundry.org:10003 12:53:07 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:53:07 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:53:07 Configure a credential helper to remove this warning. See 12:53:07 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:53:07 12:53:07 Login Succeeded 12:53:07 nexus3.edgexfoundry.org:10004 12:53:07 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:53:07 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:53:07 Configure a credential helper to remove this warning. See 12:53:07 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:53:07 12:53:07 Login Succeeded 12:53:07 docker.io 12:53:07 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:53:08 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:53:08 Configure a credential helper to remove this warning. See 12:53:08 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:53:08 12:53:08 Login Succeeded 12:53:08 ---> docker-login.sh ends [Pipeline] } 12:53:08 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 12:53:08 + git rev-list -1 --merges 34a018714ea1f902c36d17577cc49c1f6302e56f~1..34a018714ea1f902c36d17577cc49c1f6302e56f [Pipeline] echo 12:53:08 -----------> git rev-list -1 --merges 34a018714ea1f902c36d17577cc49c1f6302e56f~1..34a018714ea1f902c36d17577cc49c1f6302e56f 34a018714ea1f902c36d17577cc49c1f6302e56f 12:53:08 34a018714ea1f902c36d17577cc49c1f6302e56f [false] [Pipeline] sh 12:53:09 + git log --format=format:%s -1 34a018714ea1f902c36d17577cc49c1f6302e56f [Pipeline] echo 12:53:09 ========================================================= 12:53:09 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 12:53:09 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 12:53:09 + git log --format=format:%s -1 34a018714ea1f902c36d17577cc49c1f6302e56f [Pipeline] echo 12:53:09 [semverPrep] GIT_COMMIT: 34a018714ea1f902c36d17577cc49c1f6302e56f, Commit Message: Merge commit '34696552c2fac84d635c044d3d9d718bd3379cee' into HEAD [Pipeline] echo 12:53:09 [semverPrep] This is not a build commit. [Pipeline] sh 12:53:09 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 12:53:09 + grep -v github /etc/ssh/ssh_known_hosts 12:53:09 + [ -e /tmp/ssh_known_hosts ] 12:53:09 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 12:53:09 + + sudo tee -a /etc/ssh/ssh_known_hosts 12:53:09 echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 12:53:09 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] sh 12:53:10 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest 12:53:10 12:53:10 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest [Pipeline] isUnix [Pipeline] sh 12:53:10 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest 12:53:10 latest: Pulling from edgex-devops/py-git-semver 12:53:10 1fe172e4850f: Pulling fs layer 12:53:10 caf521ccaac6: Pulling fs layer 12:53:10 3ead6fa29328: Pulling fs layer 12:53:10 5c2a1cbceb83: Pulling fs layer 12:53:10 a8d5f1318db7: Pulling fs layer 12:53:10 c427282e49a2: Pulling fs layer 12:53:10 1827001aaf11: Pulling fs layer 12:53:10 5c2a1cbceb83: Waiting 12:53:10 0714d37db230: Pulling fs layer 12:53:10 ac28cf19c067: Pulling fs layer 12:53:10 a8d5f1318db7: Waiting 12:53:10 ca983d60f3e2: Pulling fs layer 12:53:10 9f894cec8388: Pulling fs layer 12:53:10 c427282e49a2: Waiting 12:53:10 ac28cf19c067: Waiting 12:53:10 ca983d60f3e2: Waiting 12:53:10 9f894cec8388: Waiting 12:53:10 1827001aaf11: Waiting 12:53:10 0714d37db230: Waiting 12:53:10 caf521ccaac6: Verifying Checksum 12:53:10 caf521ccaac6: Download complete 12:53:10 5c2a1cbceb83: Verifying Checksum 12:53:10 5c2a1cbceb83: Download complete 12:53:10 a8d5f1318db7: Verifying Checksum 12:53:10 a8d5f1318db7: Download complete 12:53:10 c427282e49a2: Verifying Checksum 12:53:10 c427282e49a2: Download complete 12:53:10 3ead6fa29328: Download complete 12:53:10 0714d37db230: Verifying Checksum 12:53:10 0714d37db230: Download complete 12:53:10 ac28cf19c067: Verifying Checksum 12:53:10 ac28cf19c067: Download complete 12:53:10 ca983d60f3e2: Verifying Checksum 12:53:10 ca983d60f3e2: Download complete 12:53:10 9f894cec8388: Verifying Checksum 12:53:10 9f894cec8388: Download complete 12:53:10 1fe172e4850f: Download complete 12:53:11 1827001aaf11: Verifying Checksum 12:53:11 1827001aaf11: Download complete 12:53:12 1fe172e4850f: Pull complete 12:53:12 caf521ccaac6: Pull complete 12:53:13 3ead6fa29328: Pull complete 12:53:13 5c2a1cbceb83: Pull complete 12:53:13 a8d5f1318db7: Pull complete 12:53:13 c427282e49a2: Pull complete 12:53:15 1827001aaf11: Pull complete 12:53:15 0714d37db230: Pull complete 12:53:15 ac28cf19c067: Pull complete 12:53:16 ca983d60f3e2: Pull complete 12:53:16 9f894cec8388: Pull complete 12:53:16 Digest: sha256:90e63904a1edc574c23a580e5fc31fbcdccad1501625621f67a6be262171cfee 12:53:16 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest 12:53:16 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest [Pipeline] withDockerContainer 12:53:16 prd-ubuntu20.04-docker-8c-8g-41805 does not seem to be running inside a container 12:53:16 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/xfoundry_device-modbus-go_PR-343 -v /w/workspace/xfoundry_device-modbus-go_PR-343:/w/workspace/xfoundry_device-modbus-go_PR-343:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-343@tmp:/w/workspace/xfoundry_device-modbus-go_PR-343@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest cat 12:53:17 $ docker top b2dcfd3e71f65210963703e577f3e26b068769a6d36bfd6aace3d9c3ed211870 -eo pid,comm 12:53:17 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). 12:53:17 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 12:53:17 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 12:53:17 [ssh-agent] Looking for ssh-agent implementation... 12:53:17 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 12:53:17 $ docker exec b2dcfd3e71f65210963703e577f3e26b068769a6d36bfd6aace3d9c3ed211870 ssh-agent 12:53:17 SSH_AUTH_SOCK=/tmp/ssh-yVkc3JeMYC8w/agent.33 12:53:17 SSH_AGENT_PID=40 12:53:17 Running ssh-add (command line suppressed) 12:53:18 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-343@tmp/private_key_7992152935044808110.key (/w/workspace/xfoundry_device-modbus-go_PR-343@tmp/private_key_7992152935044808110.key) 12:53:18 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 12:53:18 + git tag --points-at HEAD [Pipeline] } 12:53:18 $ docker exec --env ******** --env ******** b2dcfd3e71f65210963703e577f3e26b068769a6d36bfd6aace3d9c3ed211870 ssh-agent -k 12:53:18 unset SSH_AUTH_SOCK; 12:53:18 unset SSH_AGENT_PID; 12:53:18 echo Agent pid 40 killed; 12:53:18 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 12:53:18 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 12:53:18 [ssh-agent] Looking for ssh-agent implementation... 12:53:18 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 12:53:18 $ docker exec b2dcfd3e71f65210963703e577f3e26b068769a6d36bfd6aace3d9c3ed211870 ssh-agent 12:53:18 SSH_AUTH_SOCK=/tmp/ssh-0rJuqq14L6qK/agent.72 12:53:18 SSH_AGENT_PID=79 12:53:18 Running ssh-add (command line suppressed) 12:53:18 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-343@tmp/private_key_2192638665203571432.key (/w/workspace/xfoundry_device-modbus-go_PR-343@tmp/private_key_2192638665203571432.key) 12:53:18 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 12:53:19 + git semver init 12:53:19 2022-05-09 12:53:19,445 [run_init] DEBUG init version:0.0.0 force:False 12:53:19 2022-05-09 12:53:19,446 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/xfoundry_device-modbus-go_PR-343/.semver 12:53:19 2022-05-09 12:53:19,446 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-modbus-go.git /w/workspace/xfoundry_device-modbus-go_PR-343/.semver 12:53:19 2022-05-09 12:53:19,446 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-modbus-go.git', '/w/workspace/xfoundry_device-modbus-go_PR-343/.semver'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-343, universal_newlines=False, shell=None, istream=None) 12:53:20 2022-05-09 12:53:20,247 [append_file] DEBUG append to file:/w/workspace/xfoundry_device-modbus-go_PR-343/.git/info/exclude 12:53:20 2022-05-09 12:53:20,247 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/xfoundry_device-modbus-go_PR-343/.semver/PR-343 with force:False 12:53:20 2022-05-09 12:53:20,248 [write_file] DEBUG write to file:/w/workspace/xfoundry_device-modbus-go_PR-343/.semver/PR-343 12:53:20 2022-05-09 12:53:20,252 [execute] INFO git cat-file --batch-check 12:53:20 2022-05-09 12:53:20,252 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-343/.semver, universal_newlines=False, shell=None, istream=) 12:53:20 2022-05-09 12:53:20,258 [execute] INFO git cat-file --batch 12:53:20 2022-05-09 12:53:20,259 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-343/.semver, universal_newlines=False, shell=None, istream=) 12:53:20 2022-05-09 12:53:20,265 [read_version] DEBUG read version from /w/workspace/xfoundry_device-modbus-go_PR-343/.semver/PR-343 12:53:20 0.0.0 [Pipeline] } 12:53:20 $ docker exec --env ******** --env ******** b2dcfd3e71f65210963703e577f3e26b068769a6d36bfd6aace3d9c3ed211870 ssh-agent -k 12:53:20 unset SSH_AUTH_SOCK; 12:53:20 unset SSH_AGENT_PID; 12:53:20 echo Agent pid 79 killed; 12:53:20 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 12:53:20 + git semver [Pipeline] } 12:53:21 $ docker stop --time=1 b2dcfd3e71f65210963703e577f3e26b068769a6d36bfd6aace3d9c3ed211870 12:53:22 $ docker rm -f b2dcfd3e71f65210963703e577f3e26b068769a6d36bfd6aace3d9c3ed211870 [Pipeline] // withDockerContainer [Pipeline] sh 12:53:22 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 12:53:23 Stashed 1 file(s) [Pipeline] echo 12:53:23 [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 12:53:23 provisioning config files... 12:53:23 copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-343@tmp/config733529884958230896tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 12:53:23 ---> docker-login.sh 12:53:23 nexus3.edgexfoundry.org:10001 12:53:23 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:53:23 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:53:23 Configure a credential helper to remove this warning. See 12:53:23 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:53:23 12:53:23 Login Succeeded 12:53:23 nexus3.edgexfoundry.org:10002 12:53:23 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:53:23 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:53:23 Configure a credential helper to remove this warning. See 12:53:23 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:53:23 12:53:23 Login Succeeded 12:53:23 nexus3.edgexfoundry.org:10003 12:53:23 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:53:23 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:53:23 Configure a credential helper to remove this warning. See 12:53:23 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:53:23 12:53:23 Login Succeeded 12:53:23 nexus3.edgexfoundry.org:10004 12:53:24 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:53:24 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:53:24 Configure a credential helper to remove this warning. See 12:53:24 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:53:24 12:53:24 Login Succeeded 12:53:24 docker.io 12:53:24 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:53:24 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:53:24 Configure a credential helper to remove this warning. See 12:53:24 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:53:24 12:53:24 Login Succeeded 12:53:24 ---> docker-login.sh ends [Pipeline] } 12:53:24 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 12:53:24 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 12:53:24 ========================================================= 12:53:24 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine] 12:53:24 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 12:53:24 + 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 . 12:53:24 Sending build context to Docker daemon 5.894MB 12:53:24 Step 1/10 : ARG BASE=golang:1.17-alpine3.15 12:53:24 Step 2/10 : FROM ${BASE} AS builder 12:53:24 1.17-alpine: Pulling from edgex-devops/edgex-golang-base 12:53:24 59bf1c3509f3: Pulling fs layer 12:53:24 666ba61612fd: Pulling fs layer 12:53:24 8ed8ca486205: Pulling fs layer 12:53:24 4fe6c5a15a65: Pulling fs layer 12:53:24 22a0e8bec74d: Pulling fs layer 12:53:24 ca2b28591e48: Pulling fs layer 12:53:24 a51346096db8: Pulling fs layer 12:53:24 daebc70d1ce1: Pulling fs layer 12:53:24 0e18a0eac166: Pulling fs layer 12:53:24 ca2b28591e48: Waiting 12:53:24 22a0e8bec74d: Waiting 12:53:24 a51346096db8: Waiting 12:53:24 daebc70d1ce1: Waiting 12:53:24 0e18a0eac166: Waiting 12:53:24 4fe6c5a15a65: Waiting 12:53:24 8ed8ca486205: Verifying Checksum 12:53:24 8ed8ca486205: Download complete 12:53:24 666ba61612fd: Download complete 12:53:24 22a0e8bec74d: Verifying Checksum 12:53:24 22a0e8bec74d: Download complete 12:53:25 ca2b28591e48: Verifying Checksum 12:53:25 ca2b28591e48: Download complete 12:53:25 a51346096db8: Verifying Checksum 12:53:25 a51346096db8: Download complete 12:53:25 59bf1c3509f3: Download complete 12:53:25 daebc70d1ce1: Verifying Checksum 12:53:25 daebc70d1ce1: Download complete 12:53:25 59bf1c3509f3: Pull complete 12:53:25 666ba61612fd: Pull complete 12:53:25 8ed8ca486205: Pull complete 12:53:25 0e18a0eac166: Verifying Checksum 12:53:25 0e18a0eac166: Download complete 12:53:25 4fe6c5a15a65: Verifying Checksum 12:53:25 4fe6c5a15a65: Download complete 12:53:29 4fe6c5a15a65: Pull complete 12:53:29 22a0e8bec74d: Pull complete 12:53:29 ca2b28591e48: Pull complete 12:53:29 a51346096db8: Pull complete 12:53:29 daebc70d1ce1: Pull complete 12:53:32 0e18a0eac166: Pull complete 12:53:32 Digest: sha256:5cf2d0a306c5171eb5b3008c4b83cc7b6044f1808c238cb17927cddb93576120 12:53:32 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine 12:53:32 ---> f018257e8ee9 12:53:32 Step 3/10 : ARG MAKE='make build' 12:53:33 ---> Running in c1f787e71f6e 12:53:33 Removing intermediate container c1f787e71f6e 12:53:33 ---> 5bbad4eb7291 12:53:33 Step 4/10 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 12:53:33 ---> Running in 7ea434f2da6e 12:53:34 Removing intermediate container 7ea434f2da6e 12:53:34 ---> ddbcaa0aeb30 12:53:34 Step 5/10 : RUN apk add --update --no-cache make git openssh gcc libc-dev zeromq-dev libsodium-dev 12:53:34 ---> Running in af58e982eb71 12:53:34 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 12:53:35 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 12:53:35 (1/8) Installing openssh-keygen (8.8_p1-r1) 12:53:36 (2/8) Installing libedit (20210910.3.1-r0) 12:53:36 (3/8) Installing openssh-client-common (8.8_p1-r1) 12:53:36 (4/8) Installing openssh-client-default (8.8_p1-r1) 12:53:36 (5/8) Installing openssh-sftp-server (8.8_p1-r1) 12:53:36 (6/8) Installing openssh-server-common (8.8_p1-r1) 12:53:36 (7/8) Installing openssh-server (8.8_p1-r1) 12:53:36 (8/8) Installing openssh (8.8_p1-r1) 12:53:36 Executing busybox-1.34.1-r3.trigger 12:53:36 OK: 226 MiB in 60 packages 12:53:37 Removing intermediate container af58e982eb71 12:53:37 ---> 1a1f5f74b493 12:53:37 Step 6/10 : WORKDIR /device-modbus-go 12:53:37 ---> Running in ff8e04f49a1b 12:53:37 Removing intermediate container ff8e04f49a1b 12:53:37 ---> 8b287fcee239 12:53:37 Step 7/10 : COPY go.mod vendor* ./ 12:53:37 ---> f0dff6ed73b3 12:53:37 Step 8/10 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 12:53:37 ---> Running in 3edf4ab7999e 12:53:38 Still waiting to schedule task 12:53:38 All nodes of label ‘ubuntu20.04-docker-arm64-4c-16g’ are offline 12:53:52 Removing intermediate container 3edf4ab7999e 12:53:52 ---> dda79114213c 12:53:52 Step 9/10 : COPY . . 12:53:52 ---> a1c317fed567 12:53:52 Step 10/10 : RUN ${MAKE} 12:53:52 ---> Running in a65895373ab0 12:53:52 noop 12:53:52 Removing intermediate container a65895373ab0 12:53:52 ---> 74e7c3da98e5 12:53:52 Successfully built 74e7c3da98e5 12:53:52 Successfully tagged ci-base-image-x86_64:latest [Pipeline] isUnix [Pipeline] sh 12:53:52 + docker inspect -f . ci-base-image-x86_64 12:53:52 . [Pipeline] withDockerContainer 12:53:52 prd-ubuntu20.04-docker-8c-8g-41805 does not seem to be running inside a container 12:53:52 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/xfoundry_device-modbus-go_PR-343 -v /w/workspace/xfoundry_device-modbus-go_PR-343:/w/workspace/xfoundry_device-modbus-go_PR-343:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-343@tmp:/w/workspace/xfoundry_device-modbus-go_PR-343@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 12:53:53 $ docker top 13f289caedb53d9fd125664bcc461e138779adbc77f9ee9567c6ac6ecf909b19 -eo pid,comm [Pipeline] { [Pipeline] sh 12:53:53 + go version 12:53:53 go version go1.17.6 linux/amd64 [Pipeline] } 12:53:53 $ docker stop --time=1 13f289caedb53d9fd125664bcc461e138779adbc77f9ee9567c6ac6ecf909b19 12:53:54 $ docker rm -f 13f289caedb53d9fd125664bcc461e138779adbc77f9ee9567c6ac6ecf909b19 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 12:53:55 + docker inspect -f . ci-base-image-x86_64 12:53:55 . [Pipeline] withDockerContainer 12:53:55 prd-ubuntu20.04-docker-8c-8g-41805 does not seem to be running inside a container 12:53:55 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/xfoundry_device-modbus-go_PR-343 -v /w/workspace/xfoundry_device-modbus-go_PR-343:/w/workspace/xfoundry_device-modbus-go_PR-343:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-343@tmp:/w/workspace/xfoundry_device-modbus-go_PR-343@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 12:53:55 $ docker top 72f2cd7631175b4df1498702ce621540fd35b68f81fb175e0bd5e91b6d12ab81 -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 12:53:56 + make test 12:53:56 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out 12:53:56 ? github.com/edgexfoundry/device-modbus-go [no test files] 12:54:06 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 12:54:06 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.015s coverage: 46.4% of statements 12:54:15 CGO_ENABLED=1 GO111MODULE=on go vet ./... 12:54:18 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 12:54:18 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 12:54:18 ./bin/test-attribution-txt.sh [Pipeline] echo 12:54:18 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 12:54:18 $ docker stop --time=1 72f2cd7631175b4df1498702ce621540fd35b68f81fb175e0bd5e91b6d12ab81 12:54:20 $ docker rm -f 72f2cd7631175b4df1498702ce621540fd35b68f81fb175e0bd5e91b6d12ab81 [Pipeline] // withDockerContainer [Pipeline] sh 12:54:21 + sudo chown -R jenkins:jenkins . [Pipeline] stash 12:54:21 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 12:54:21 + sudo chown -R jenkins:jenkins . [Pipeline] sh 12:54:22 + ls -al . 12:54:22 total 184 12:54:22 drwxrwxr-x 10 jenkins jenkins 4096 May 9 12:54 . 12:54:22 drwxrwxr-x 4 jenkins jenkins 4096 May 9 12:52 .. 12:54:22 -rw-rw-r-- 1 jenkins jenkins 140 May 9 12:53 .dockerignore 12:54:22 drwxrwxr-x 8 jenkins jenkins 4096 May 9 12:53 .git 12:54:22 drwxrwxr-x 3 jenkins jenkins 4096 May 9 12:53 .github 12:54:22 -rw-rw-r-- 1 jenkins jenkins 331 May 9 12:53 .gitignore 12:54:22 -rw-rw-r-- 1 jenkins jenkins 41 May 9 12:53 .golangci.yml 12:54:22 drwxr-xr-x 3 jenkins jenkins 4096 May 9 12:53 .semver 12:54:22 -rw-rw-r-- 1 jenkins jenkins 9377 May 9 12:53 Attribution.txt 12:54:22 -rw-rw-r-- 1 jenkins jenkins 10001 May 9 12:53 CHANGELOG.md 12:54:22 -rw-rw-r-- 1 jenkins jenkins 1546 May 9 12:53 Dockerfile 12:54:22 -rw-rw-r-- 1 jenkins jenkins 677 May 9 12:53 GOVERNANCE.md 12:54:22 -rw-rw-r-- 1 jenkins jenkins 680 May 9 12:53 Jenkinsfile 12:54:22 -rw-rw-r-- 1 jenkins jenkins 11340 May 9 12:53 LICENSE 12:54:22 -rw-rw-r-- 1 jenkins jenkins 1905 May 9 12:53 Makefile 12:54:22 -rw-rw-r-- 1 jenkins jenkins 622 May 9 12:53 OWNERS.md 12:54:22 -rw-rw-r-- 1 jenkins jenkins 3397 May 9 12:53 README.md 12:54:22 -rw-rw-r-- 1 jenkins jenkins 5 May 9 12:53 VERSION 12:54:22 drwxrwxr-x 2 jenkins jenkins 4096 May 9 12:53 bin 12:54:22 drwxrwxr-x 3 jenkins jenkins 4096 May 9 12:53 cmd 12:54:22 -rw-r--r-- 1 jenkins jenkins 24065 May 9 12:54 coverage.out 12:54:22 -rw-rw-r-- 1 jenkins jenkins 3399 May 9 12:53 go.mod 12:54:22 -rw-rw-r-- 1 jenkins jenkins 35558 May 9 12:53 go.sum 12:54:22 drwxrwxr-x 3 jenkins jenkins 4096 May 9 12:53 internal 12:54:22 drwxrwxr-x 2 jenkins jenkins 4096 May 9 12:53 simulator 12:54:22 drwxrwxr-x 4 jenkins jenkins 4096 May 9 12:53 snap 12:54:22 -rw-rw-r-- 1 jenkins jenkins 229 May 9 12:53 version.go [Pipeline] isUnix [Pipeline] sh 12:54:22 + 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=34a018714ea1f902c36d17577cc49c1f6302e56f --label arch=amd64 --label version=0.0.0 . 12:54:22 Sending build context to Docker daemon 5.919MB 12:54:22 Step 1/23 : ARG BASE=golang:1.17-alpine3.15 12:54:22 Step 2/23 : FROM ${BASE} AS builder 12:54:22 ---> 74e7c3da98e5 12:54:22 Step 3/23 : ARG MAKE='make build' 12:54:22 ---> Running in 541a1a9ae0ef 12:54:22 Removing intermediate container 541a1a9ae0ef 12:54:22 ---> 59384ac0416f 12:54:22 Step 4/23 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 12:54:22 ---> Running in 6b8850719ce9 12:54:23 Removing intermediate container 6b8850719ce9 12:54:23 ---> b72c4d71bcd9 12:54:23 Step 5/23 : RUN apk add --update --no-cache make git openssh gcc libc-dev zeromq-dev libsodium-dev 12:54:23 ---> Running in cc156ea0e7e4 12:54:23 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 12:54:24 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 12:54:24 OK: 226 MiB in 60 packages 12:54:24 Removing intermediate container cc156ea0e7e4 12:54:24 ---> 47fc5e1b3fb7 12:54:24 Step 6/23 : WORKDIR /device-modbus-go 12:54:25 ---> Running in 314d9f6e669e 12:54:25 Removing intermediate container 314d9f6e669e 12:54:25 ---> 40282b97d9ea 12:54:25 Step 7/23 : COPY go.mod vendor* ./ 12:54:25 ---> 6c858dcbb316 12:54:25 Step 8/23 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 12:54:25 ---> Running in da8baa06341a 12:54:26 Removing intermediate container da8baa06341a 12:54:26 ---> 35108e1eea3f 12:54:26 Step 9/23 : COPY . . 12:54:26 ---> 483c4408f434 12:54:26 Step 10/23 : RUN ${MAKE} 12:54:26 ---> Running in 75b537b1955d 12:54:26 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 12:54:48 Removing intermediate container 75b537b1955d 12:54:48 ---> 3382b1274617 12:54:48 Step 11/23 : FROM alpine:3.14 12:54:48 3.14: Pulling from library/alpine 12:54:48 8663204ce13b: Pulling fs layer 12:54:48 8663204ce13b: Verifying Checksum 12:54:48 8663204ce13b: Download complete 12:54:48 8663204ce13b: Pull complete 12:54:48 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 12:54:48 Status: Downloaded newer image for alpine:3.14 12:54:48 ---> e04c818066af 12:54:48 Step 12/23 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IoTech Ltd' 12:54:48 ---> Running in cc3954c34500 12:54:48 Removing intermediate container cc3954c34500 12:54:48 ---> cf72d978c686 12:54:48 Step 13/23 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 12:54:48 ---> Running in 67335eb3d34f 12:54:48 Removing intermediate container 67335eb3d34f 12:54:48 ---> f8be3eb975a7 12:54:48 Step 14/23 : RUN apk add --update --no-cache zeromq dumb-init 12:54:48 ---> Running in b6104d7744c8 12:54:48 fetch https://nl.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz 12:54:49 fetch https://nl.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz 12:54:49 (1/6) Installing dumb-init (1.2.5-r1) 12:54:49 (2/6) Installing libgcc (10.3.1_git20210424-r2) 12:54:49 (3/6) Installing libsodium (1.0.18-r0) 12:54:49 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 12:54:49 (5/6) Installing libzmq (4.3.4-r0) 12:54:49 (6/6) Installing zeromq (4.3.4-r0) 12:54:50 Executing busybox-1.33.1-r7.trigger 12:54:50 OK: 8 MiB in 20 packages 12:54:50 Removing intermediate container b6104d7744c8 12:54:50 ---> f4bf840a3d8c 12:54:50 Step 15/23 : COPY --from=builder /device-modbus-go/cmd / 12:54:50 ---> e7a3e010fe80 12:54:50 Step 16/23 : COPY --from=builder /device-modbus-go/LICENSE / 12:54:50 ---> e21ca3f0a54a 12:54:50 Step 17/23 : COPY --from=builder /device-modbus-go/Attribution.txt / 12:54:51 ---> 5021e98ce6c7 12:54:51 Step 18/23 : EXPOSE 59901 12:54:51 ---> Running in 1699bb9fbc3d 12:54:51 Removing intermediate container 1699bb9fbc3d 12:54:51 ---> 02fcce819017 12:54:51 Step 19/23 : ENTRYPOINT ["/device-modbus"] 12:54:51 ---> Running in 14538c1961ba 12:54:51 Removing intermediate container 14538c1961ba 12:54:51 ---> 2c4664e991a9 12:54:51 Step 20/23 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry", "--confdir=/res"] 12:54:51 ---> Running in 9af9df374b37 12:54:51 Removing intermediate container 9af9df374b37 12:54:51 ---> 6f97a7103a80 12:54:51 Step 21/23 : LABEL arch=amd64 12:54:51 ---> Running in 9a97536a95f2 12:54:51 Removing intermediate container 9a97536a95f2 12:54:51 ---> ff786a34434b 12:54:51 Step 22/23 : LABEL git_sha=34a018714ea1f902c36d17577cc49c1f6302e56f 12:54:51 ---> Running in d19b0c110b62 12:54:51 Removing intermediate container d19b0c110b62 12:54:51 ---> 62b091f39ea4 12:54:51 Step 23/23 : LABEL version=0.0.0 12:54:51 ---> Running in 38047f1705aa 12:54:52 Removing intermediate container 38047f1705aa 12:54:52 ---> 375fea5e3dd9 12:54:52 [Warning] One or more build-args [ARCH] were not consumed 12:54:52 Successfully built 375fea5e3dd9 12:54:52 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 12:54:52 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 12:54:52 12:54:52 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] sh 12:54:52 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 12:54:52 latest: Pulling from edgex-lftools-log-publisher 12:54:52 5eb5b503b376: Pulling fs layer 12:54:52 5c69ac0246d0: Pulling fs layer 12:54:52 ec43610c2a17: Pulling fs layer 12:54:52 3a2ae6a8a46f: Pulling fs layer 12:54:52 33b1e0a273af: Pulling fs layer 12:54:52 5d3b04190fa2: Pulling fs layer 12:54:52 2f39f015ded8: Pulling fs layer 12:54:52 3a2ae6a8a46f: Waiting 12:54:52 33b1e0a273af: Waiting 12:54:52 2f39f015ded8: Waiting 12:54:52 5d3b04190fa2: Waiting 12:54:52 5c69ac0246d0: Verifying Checksum 12:54:52 5c69ac0246d0: Download complete 12:54:52 3a2ae6a8a46f: Verifying Checksum 12:54:52 3a2ae6a8a46f: Download complete 12:54:52 33b1e0a273af: Verifying Checksum 12:54:52 33b1e0a273af: Download complete 12:54:52 5d3b04190fa2: Verifying Checksum 12:54:52 5d3b04190fa2: Download complete 12:54:53 ec43610c2a17: Verifying Checksum 12:54:53 ec43610c2a17: Download complete 12:54:53 5eb5b503b376: Verifying Checksum 12:54:53 5eb5b503b376: Download complete 12:54:53 2f39f015ded8: Verifying Checksum 12:54:53 2f39f015ded8: Download complete 12:54:54 5eb5b503b376: Pull complete 12:54:54 5c69ac0246d0: Pull complete 12:54:55 ec43610c2a17: Pull complete 12:54:55 3a2ae6a8a46f: Pull complete 12:54:55 33b1e0a273af: Pull complete 12:54:55 5d3b04190fa2: Pull complete 12:55:00 2f39f015ded8: Pull complete 12:55:00 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 12:55:00 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 12:55:00 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] withDockerContainer 12:55:00 prd-ubuntu20.04-docker-8c-8g-41805 does not seem to be running inside a container 12:55:00 $ 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-343 -v /w/workspace/xfoundry_device-modbus-go_PR-343:/w/workspace/xfoundry_device-modbus-go_PR-343:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-343@tmp:/w/workspace/xfoundry_device-modbus-go_PR-343@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 12:55:02 $ docker top 9d5638086cf36b969ea22e479b3a35e8ffff1adf7f38eb3ea656095c860809d1 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 12:55:02 ---> job-cost.sh 12:55:02 lf-activate-venv: SKIPPING 12:55:02 INFO: No Stack... 12:55:03 INFO: Retrieving Pricing Info for: v3-standard-8 12:55:03 INFO: Archiving Costs [Pipeline] sh 12:55:03 + cat /w/workspace/xfoundry_device-modbus-go_PR-343/archives/cost.csv 12:55:03 + cut -d, -f6 [Pipeline] lock 12:55:03 Trying to acquire lock on [jenkins-edgexfoundry-device-modbus-go-PR-343-3-stack-cost] 12:55:03 Resource [jenkins-edgexfoundry-device-modbus-go-PR-343-3-stack-cost] did not exist. Created. 12:55:03 Lock acquired on [jenkins-edgexfoundry-device-modbus-go-PR-343-3-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 12:55:04 + echo total: 0.2199999988079071 [Pipeline] stash 12:55:04 Stashed 1 file(s) [Pipeline] } 12:55:04 Lock released on resource [jenkins-edgexfoundry-device-modbus-go-PR-343-3-stack-cost] [Pipeline] // lock [Pipeline] } 12:55:04 $ docker stop --time=1 9d5638086cf36b969ea22e479b3a35e8ffff1adf7f38eb3ea656095c860809d1 12:55:05 $ docker rm -f 9d5638086cf36b969ea22e479b3a35e8ffff1adf7f38eb3ea656095c860809d1 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 12:55:28 Running on prd-ubuntu20.04-docker-arm64-4c-16g-41806 in /w/workspace/xfoundry_device-modbus-go_PR-343 [Pipeline] { [Pipeline] ws 12:55:28 Running in /w/workspace/device-modbus-go/3 [Pipeline] { [Pipeline] checkout 12:55:28 Selected Git installation does not exist. Using Default 12:55:28 The recommended git tool is: NONE 12:55:35 using credential edgex-jenkins-ssh 12:55:35 Cloning the remote Git repository 12:55:35 Cloning repository git@github.com:edgexfoundry/device-modbus-go.git 12:55:35 > git init /w/workspace/device-modbus-go/3 # timeout=10 12:55:35 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 12:55:35 > git --version # timeout=10 12:55:35 > git --version # 'git version 2.25.1' 12:55:35 using GIT_SSH to set credentials SSH Credentials for GitHub 12:55:35 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 12:55:36 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 12:55:36 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 12:55:37 Merging remotes/origin/main commit 34696552c2fac84d635c044d3d9d718bd3379cee into PR head commit e5f2a8e3721d1093ba85c237dea8e9bf07f944e2 12:55:37 Merge succeeded, producing 580aa4447f750eaeca36e989d1f452357d06e8ea 12:55:37 Checking out Revision 580aa4447f750eaeca36e989d1f452357d06e8ea (PR-343) 12:55:36 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 12:55:36 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 12:55:36 using GIT_SSH to set credentials SSH Credentials for GitHub 12:55:36 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/pull/343/head:refs/remotes/origin/PR-343 +refs/heads/main:refs/remotes/origin/main # timeout=10 12:55:37 > git config core.sparsecheckout # timeout=10 12:55:37 > git checkout -f e5f2a8e3721d1093ba85c237dea8e9bf07f944e2 # timeout=10 12:55:37 > git remote # timeout=10 12:55:37 > git config --get remote.origin.url # timeout=10 12:55:37 using GIT_SSH to set credentials SSH Credentials for GitHub 12:55:37 > git merge 34696552c2fac84d635c044d3d9d718bd3379cee # timeout=10 12:55:37 > git rev-parse HEAD^{commit} # timeout=10 12:55:37 > git config core.sparsecheckout # timeout=10 12:55:37 > git checkout -f 580aa4447f750eaeca36e989d1f452357d06e8ea # timeout=10 12:55:41 Commit message: "Merge commit '34696552c2fac84d635c044d3d9d718bd3379cee' into HEAD" 12:55:41 > git rev-list --no-walk e5f2a8e3721d1093ba85c237dea8e9bf07f944e2 # timeout=10 [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 12:55:42 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 12:55:42 % Total % Received % Xferd Average Speed Time Time Time Current 12:55:42 Dload Upload Total Spent Left Speed 12:55:42 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 11843 100 11843 0 0 72213 0 --:--:-- --:--:-- --:--:-- 72213 [Pipeline] sh 12:55:43 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 12:55:43 + sudo tee /etc/docker/daemon.new 12:55:43 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 12:55:43 { 12:55:43 "registry-mirrors": [ 12:55:43 "https://nexus3.edgexfoundry.org:10001" 12:55:43 ], 12:55:43 "bip": "10.250.0.254/24", 12:55:43 "hosts": [ 12:55:43 "tcp://0.0.0.0:5555", 12:55:43 "unix:///var/run/docker.sock" 12:55:43 ], 12:55:43 "mtu": 1458, 12:55:43 "selinux-enabled": true, 12:55:43 "seccomp-profile": "/etc/docker/seccomp.json" 12:55:43 } [Pipeline] sh 12:55:43 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 12:55:44 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 12:56:02 provisioning config files... 12:56:02 copy managed file [device-modbus-go-settings] to file:/w/workspace/device-modbus-go/3@tmp/config6233476853519609245tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 12:56:03 ---> docker-login.sh 12:56:03 nexus3.edgexfoundry.org:10001 12:56:03 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:56:03 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:56:03 Configure a credential helper to remove this warning. See 12:56:03 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:56:03 12:56:03 Login Succeeded 12:56:03 nexus3.edgexfoundry.org:10002 12:56:04 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:56:04 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:56:04 Configure a credential helper to remove this warning. See 12:56:04 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:56:04 12:56:04 Login Succeeded 12:56:04 nexus3.edgexfoundry.org:10003 12:56:04 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:56:04 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:56:04 Configure a credential helper to remove this warning. See 12:56:04 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:56:04 12:56:04 Login Succeeded 12:56:04 nexus3.edgexfoundry.org:10004 12:56:05 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:56:05 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:56:05 Configure a credential helper to remove this warning. See 12:56:05 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:56:05 12:56:05 Login Succeeded 12:56:05 docker.io 12:56:05 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:56:05 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:56:05 Configure a credential helper to remove this warning. See 12:56:05 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:56:05 12:56:05 Login Succeeded 12:56:05 ---> docker-login.sh ends [Pipeline] } 12:56:05 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 12:56:06 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 12:56:06 ========================================================= 12:56:06 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine] 12:56:06 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 12:56:06 + 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 . 12:56:06 Sending build context to Docker daemon 3.085MB 12:56:06 Step 1/10 : ARG BASE=golang:1.17-alpine3.15 12:56:06 Step 2/10 : FROM ${BASE} AS builder 12:56:07 1.17-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 12:56:07 9b3977197b4f: Pulling fs layer 12:56:07 1a89e8eeedd5: Pulling fs layer 12:56:07 94645a83ff95: Pulling fs layer 12:56:07 3f3a8bcf1eab: Pulling fs layer 12:56:07 0c92f367c5e7: Pulling fs layer 12:56:07 3096ccb668a1: Pulling fs layer 12:56:07 e8cf19c19ddd: Pulling fs layer 12:56:07 a4caa8a26152: Pulling fs layer 12:56:07 0c92f367c5e7: Waiting 12:56:07 3096ccb668a1: Waiting 12:56:07 e8cf19c19ddd: Waiting 12:56:07 a4caa8a26152: Waiting 12:56:07 3f3a8bcf1eab: Waiting 12:56:07 94645a83ff95: Verifying Checksum 12:56:07 94645a83ff95: Download complete 12:56:07 1a89e8eeedd5: Verifying Checksum 12:56:07 1a89e8eeedd5: Download complete 12:56:07 0c92f367c5e7: Verifying Checksum 12:56:07 0c92f367c5e7: Download complete 12:56:07 3096ccb668a1: Verifying Checksum 12:56:07 3096ccb668a1: Download complete 12:56:07 e8cf19c19ddd: Verifying Checksum 12:56:07 e8cf19c19ddd: Download complete 12:56:07 9b3977197b4f: Verifying Checksum 12:56:07 9b3977197b4f: Download complete 12:56:08 9b3977197b4f: Pull complete 12:56:08 1a89e8eeedd5: Pull complete 12:56:09 94645a83ff95: Pull complete 12:56:09 a4caa8a26152: Verifying Checksum 12:56:09 a4caa8a26152: Download complete 12:56:10 3f3a8bcf1eab: Verifying Checksum 12:56:10 3f3a8bcf1eab: Download complete 12:56:22 3f3a8bcf1eab: Pull complete 12:56:22 0c92f367c5e7: Pull complete 12:56:22 3096ccb668a1: Pull complete 12:56:22 e8cf19c19ddd: Pull complete 12:56:29 a4caa8a26152: Pull complete 12:56:29 Digest: sha256:b3ad895ecde34a7521bb8912598475bc58d052e1c2c58d00df7f0fe54a102a46 12:56:29 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine 12:56:29 ---> 725f1c02e7f9 12:56:29 Step 3/10 : ARG MAKE='make build' 12:56:29 ---> Running in 3ea17d6cb165 12:56:29 Removing intermediate container 3ea17d6cb165 12:56:29 ---> 33f9b13adb1a 12:56:29 Step 4/10 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 12:56:29 ---> Running in c5ead2bb642a 12:56:31 Removing intermediate container c5ead2bb642a 12:56:31 ---> b5d8a4693d2c 12:56:31 Step 5/10 : RUN apk add --update --no-cache make git openssh gcc libc-dev zeromq-dev libsodium-dev 12:56:31 ---> Running in 8b33f42e2e37 12:56:32 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 12:56:33 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 12:56:34 (1/8) Installing openssh-keygen (8.8_p1-r1) 12:56:34 (2/8) Installing libedit (20210910.3.1-r0) 12:56:34 (3/8) Installing openssh-client-common (8.8_p1-r1) 12:56:34 (4/8) Installing openssh-client-default (8.8_p1-r1) 12:56:34 (5/8) Installing openssh-sftp-server (8.8_p1-r1) 12:56:34 (6/8) Installing openssh-server-common (8.8_p1-r1) 12:56:34 (7/8) Installing openssh-server (8.8_p1-r1) 12:56:35 (8/8) Installing openssh (8.8_p1-r1) 12:56:35 Executing busybox-1.34.1-r3.trigger 12:56:35 OK: 226 MiB in 60 packages 12:56:37 Removing intermediate container 8b33f42e2e37 12:56:37 ---> 3a60b1e1ef53 12:56:37 Step 6/10 : WORKDIR /device-modbus-go 12:56:37 ---> Running in 201ed3f219cd 12:56:37 Removing intermediate container 201ed3f219cd 12:56:37 ---> 86e886dff629 12:56:37 Step 7/10 : COPY go.mod vendor* ./ 12:56:38 ---> 2f549c853dc1 12:56:38 Step 8/10 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 12:56:38 ---> Running in b903f7211e3e 12:57:25 Removing intermediate container b903f7211e3e 12:57:25 ---> 84059e76b39a 12:57:25 Step 9/10 : COPY . . 12:57:25 ---> 0c0e26e0e259 12:57:25 Step 10/10 : RUN ${MAKE} 12:57:25 ---> Running in 5cfcc91437cd 12:57:25 noop 12:57:25 Removing intermediate container 5cfcc91437cd 12:57:25 ---> 47f534f9dd2d 12:57:25 Successfully built 47f534f9dd2d 12:57:25 Successfully tagged ci-base-image-arm64:latest [Pipeline] isUnix [Pipeline] sh 12:57:25 + docker inspect -f . ci-base-image-arm64 12:57:25 . [Pipeline] withDockerContainer 12:57:25 prd-ubuntu20.04-docker-arm64-4c-16g-41806 does not seem to be running inside a container 12:57:26 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-modbus-go/3 -v /w/workspace/device-modbus-go/3:/w/workspace/device-modbus-go/3:rw,z -v /w/workspace/device-modbus-go/3@tmp:/w/workspace/device-modbus-go/3@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 12:57:27 $ docker top 6b830bd13c7de7766b213ceab89f37b4a7c60372134b2514b439e42d5f0375f6 -eo pid,comm [Pipeline] { [Pipeline] sh 12:57:28 + go version 12:57:28 go version go1.17.6 linux/arm64 [Pipeline] } 12:57:28 $ docker stop --time=1 6b830bd13c7de7766b213ceab89f37b4a7c60372134b2514b439e42d5f0375f6 12:57:29 $ docker rm -f 6b830bd13c7de7766b213ceab89f37b4a7c60372134b2514b439e42d5f0375f6 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 12:57:30 + docker inspect -f . ci-base-image-arm64 12:57:30 . [Pipeline] withDockerContainer 12:57:30 prd-ubuntu20.04-docker-arm64-4c-16g-41806 does not seem to be running inside a container 12:57:30 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-modbus-go/3 -v /w/workspace/device-modbus-go/3:/w/workspace/device-modbus-go/3:rw,z -v /w/workspace/device-modbus-go/3@tmp:/w/workspace/device-modbus-go/3@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 12:57:32 $ docker top 276253379a9a1ecd3f446f3fa2b4683600e7824b7689178c6a06419fb836b407 -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 12:57:33 + make test 12:57:33 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out 12:57:34 ? github.com/edgexfoundry/device-modbus-go [no test files] 12:58:56 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 12:58:56 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.062s coverage: 46.4% of statements 12:58:56 WARNING: Linting skipped (not on x86_64 or linter not installed) 12:58:56 CGO_ENABLED=1 GO111MODULE=on go vet ./... 12:59:18 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 12:59:18 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 12:59:18 ./bin/test-attribution-txt.sh [Pipeline] echo 12:59:18 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 12:59:18 $ docker stop --time=1 276253379a9a1ecd3f446f3fa2b4683600e7824b7689178c6a06419fb836b407 12:59:20 $ docker rm -f 276253379a9a1ecd3f446f3fa2b4683600e7824b7689178c6a06419fb836b407 [Pipeline] // withDockerContainer [Pipeline] sh 12:59:21 + sudo chown -R jenkins:jenkins . [Pipeline] stash 12:59:21 Warning: overwriting stash ‘coverage-report’ 12:59:21 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 12:59:22 + sudo chown -R jenkins:jenkins . [Pipeline] sh 12:59:22 + ls -al . 12:59:22 total 180 12:59:22 drwxrwxr-x 9 jenkins jenkins 4096 May 9 12:59 . 12:59:22 drwxrwxr-x 4 jenkins jenkins 4096 May 9 12:55 .. 12:59:22 -rw-rw-r-- 1 jenkins jenkins 140 May 9 12:55 .dockerignore 12:59:22 drwxrwxr-x 8 jenkins jenkins 4096 May 9 12:55 .git 12:59:22 drwxrwxr-x 3 jenkins jenkins 4096 May 9 12:55 .github 12:59:22 -rw-rw-r-- 1 jenkins jenkins 331 May 9 12:55 .gitignore 12:59:22 -rw-rw-r-- 1 jenkins jenkins 41 May 9 12:55 .golangci.yml 12:59:22 -rw-rw-r-- 1 jenkins jenkins 9377 May 9 12:55 Attribution.txt 12:59:22 -rw-rw-r-- 1 jenkins jenkins 10001 May 9 12:55 CHANGELOG.md 12:59:22 -rw-rw-r-- 1 jenkins jenkins 1546 May 9 12:55 Dockerfile 12:59:22 -rw-rw-r-- 1 jenkins jenkins 677 May 9 12:55 GOVERNANCE.md 12:59:22 -rw-rw-r-- 1 jenkins jenkins 680 May 9 12:55 Jenkinsfile 12:59:22 -rw-rw-r-- 1 jenkins jenkins 11340 May 9 12:55 LICENSE 12:59:22 -rw-rw-r-- 1 jenkins jenkins 1905 May 9 12:55 Makefile 12:59:22 -rw-rw-r-- 1 jenkins jenkins 622 May 9 12:55 OWNERS.md 12:59:22 -rw-rw-r-- 1 jenkins jenkins 3397 May 9 12:55 README.md 12:59:22 -rw-rw-r-- 1 jenkins jenkins 5 May 9 12:53 VERSION 12:59:22 drwxrwxr-x 2 jenkins jenkins 4096 May 9 12:55 bin 12:59:22 drwxrwxr-x 3 jenkins jenkins 4096 May 9 12:55 cmd 12:59:22 -rw-r--r-- 1 jenkins jenkins 24065 May 9 12:58 coverage.out 12:59:22 -rw-rw-r-- 1 jenkins jenkins 3399 May 9 12:55 go.mod 12:59:22 -rw-rw-r-- 1 jenkins jenkins 35558 May 9 12:55 go.sum 12:59:22 drwxrwxr-x 3 jenkins jenkins 4096 May 9 12:55 internal 12:59:22 drwxrwxr-x 2 jenkins jenkins 4096 May 9 12:55 simulator 12:59:22 drwxrwxr-x 4 jenkins jenkins 4096 May 9 12:55 snap 12:59:22 -rw-rw-r-- 1 jenkins jenkins 229 May 9 12:55 version.go [Pipeline] isUnix [Pipeline] sh 12:59:22 + 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=580aa4447f750eaeca36e989d1f452357d06e8ea --label arch=arm64 --label version=0.0.0 . 12:59:23 Sending build context to Docker daemon 3.11MB 12:59:23 Step 1/23 : ARG BASE=golang:1.17-alpine3.15 12:59:23 Step 2/23 : FROM ${BASE} AS builder 12:59:23 ---> 47f534f9dd2d 12:59:23 Step 3/23 : ARG MAKE='make build' 12:59:23 ---> Running in 6825f51cb755 12:59:23 Removing intermediate container 6825f51cb755 12:59:23 ---> 41a107fc8984 12:59:23 Step 4/23 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 12:59:23 ---> Running in 73646f2f0d05 12:59:25 Removing intermediate container 73646f2f0d05 12:59:25 ---> 3035bca8d12b 12:59:25 Step 5/23 : RUN apk add --update --no-cache make git openssh gcc libc-dev zeromq-dev libsodium-dev 12:59:25 ---> Running in 9c86bdf956ab 12:59:26 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 12:59:27 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 12:59:28 OK: 226 MiB in 60 packages 12:59:28 Removing intermediate container 9c86bdf956ab 12:59:28 ---> fce11985f377 12:59:28 Step 6/23 : WORKDIR /device-modbus-go 12:59:28 ---> Running in 63f556dc76bd 12:59:29 Removing intermediate container 63f556dc76bd 12:59:29 ---> e583fc55ff81 12:59:29 Step 7/23 : COPY go.mod vendor* ./ 12:59:29 ---> b8e29dc6558e 12:59:29 Step 8/23 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 12:59:29 ---> Running in 979c767a50b4 12:59:31 Removing intermediate container 979c767a50b4 12:59:31 ---> d83fc4e887b3 12:59:31 Step 9/23 : COPY . . 12:59:32 ---> 2d464ff253ec 12:59:32 Step 10/23 : RUN ${MAKE} 12:59:32 ---> Running in c17efc9a443c 12:59:33 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 13:01:40 Removing intermediate container c17efc9a443c 13:01:40 ---> 0a70bdd2cdbe 13:01:40 Step 11/23 : FROM alpine:3.14 13:01:40 3.14: Pulling from library/alpine 13:01:40 455c02918c45: Pulling fs layer 13:01:40 455c02918c45: Download complete 13:01:40 455c02918c45: Pull complete 13:01:40 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 13:01:40 Status: Downloaded newer image for alpine:3.14 13:01:40 ---> ac73e934f311 13:01:40 Step 12/23 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IoTech Ltd' 13:01:40 ---> Running in c7e854201395 13:01:40 Removing intermediate container c7e854201395 13:01:40 ---> 46ed829af3ca 13:01:40 Step 13/23 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 13:01:40 ---> Running in ae9740fc9191 13:01:40 Removing intermediate container ae9740fc9191 13:01:40 ---> 54978ee1f2ff 13:01:40 Step 14/23 : RUN apk add --update --no-cache zeromq dumb-init 13:01:40 ---> Running in db674de6fb34 13:01:40 fetch https://nl.alpinelinux.org/alpine/v3.14/main/aarch64/APKINDEX.tar.gz 13:01:40 fetch https://nl.alpinelinux.org/alpine/v3.14/community/aarch64/APKINDEX.tar.gz 13:01:40 (1/6) Installing dumb-init (1.2.5-r1) 13:01:40 (2/6) Installing libgcc (10.3.1_git20210424-r2) 13:01:40 (3/6) Installing libsodium (1.0.18-r0) 13:01:40 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 13:01:40 (5/6) Installing libzmq (4.3.4-r0) 13:01:40 (6/6) Installing zeromq (4.3.4-r0) 13:01:40 Executing busybox-1.33.1-r7.trigger 13:01:40 OK: 8 MiB in 20 packages 13:01:40 Removing intermediate container db674de6fb34 13:01:40 ---> e98e4482e9aa 13:01:40 Step 15/23 : COPY --from=builder /device-modbus-go/cmd / 13:01:40 ---> a4ebd8c5a1c4 13:01:40 Step 16/23 : COPY --from=builder /device-modbus-go/LICENSE / 13:01:40 ---> 7c581ce70087 13:01:40 Step 17/23 : COPY --from=builder /device-modbus-go/Attribution.txt / 13:01:40 ---> aec401d258af 13:01:40 Step 18/23 : EXPOSE 59901 13:01:40 ---> Running in 07bbb810af44 13:01:40 Removing intermediate container 07bbb810af44 13:01:40 ---> 3f34f436bb87 13:01:40 Step 19/23 : ENTRYPOINT ["/device-modbus"] 13:01:40 ---> Running in 0ea107b5669f 13:01:40 Removing intermediate container 0ea107b5669f 13:01:40 ---> dea249611b6f 13:01:40 Step 20/23 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry", "--confdir=/res"] 13:01:40 ---> Running in be5a1996452b 13:01:40 Removing intermediate container be5a1996452b 13:01:40 ---> a2208481d514 13:01:40 Step 21/23 : LABEL arch=arm64 13:01:40 ---> Running in 63a4dc00be39 13:01:40 Removing intermediate container 63a4dc00be39 13:01:40 ---> 2e22fe1ef295 13:01:40 Step 22/23 : LABEL git_sha=580aa4447f750eaeca36e989d1f452357d06e8ea 13:01:40 ---> Running in e3c03a2752a6 13:01:40 Removing intermediate container e3c03a2752a6 13:01:40 ---> 5e2aef9f2099 13:01:40 Step 23/23 : LABEL version=0.0.0 13:01:40 ---> Running in 759008a16193 13:01:40 Removing intermediate container 759008a16193 13:01:40 ---> 8e48df998d35 13:01:40 [Warning] One or more build-args [ARCH] were not consumed 13:01:40 Successfully built 8e48df998d35 13:01:40 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 13:01:41 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 13:01:41 13:01:41 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] sh 13:01:41 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 13:01:41 arm64: Pulling from edgex-lftools-log-publisher 13:01:41 8998bd30e6a1: Pulling fs layer 13:01:41 04944245beec: Pulling fs layer 13:01:41 699f458cf7ca: Pulling fs layer 13:01:41 765212b225bb: Pulling fs layer 13:01:41 f23df028b6ca: Pulling fs layer 13:01:41 d65c8cfc05b1: Pulling fs layer 13:01:41 2437ff75d9bd: Pulling fs layer 13:01:41 f23df028b6ca: Waiting 13:01:41 d65c8cfc05b1: Waiting 13:01:41 765212b225bb: Waiting 13:01:41 04944245beec: Verifying Checksum 13:01:41 04944245beec: Download complete 13:01:41 765212b225bb: Verifying Checksum 13:01:41 765212b225bb: Download complete 13:01:41 f23df028b6ca: Download complete 13:01:41 d65c8cfc05b1: Verifying Checksum 13:01:41 d65c8cfc05b1: Download complete 13:01:42 699f458cf7ca: Verifying Checksum 13:01:42 699f458cf7ca: Download complete 13:01:42 8998bd30e6a1: Verifying Checksum 13:01:42 8998bd30e6a1: Download complete 13:01:44 2437ff75d9bd: Verifying Checksum 13:01:44 2437ff75d9bd: Download complete 13:01:46 8998bd30e6a1: Pull complete 13:01:46 04944245beec: Pull complete 13:01:48 699f458cf7ca: Pull complete 13:01:48 765212b225bb: Pull complete 13:01:49 f23df028b6ca: Pull complete 13:01:49 d65c8cfc05b1: Pull complete 13:02:04 2437ff75d9bd: Pull complete 13:02:04 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 13:02:04 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 13:02:04 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] withDockerContainer 13:02:04 prd-ubuntu20.04-docker-arm64-4c-16g-41806 does not seem to be running inside a container 13:02:04 $ 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/3 -v /w/workspace/device-modbus-go/3:/w/workspace/device-modbus-go/3:rw,z -v /w/workspace/device-modbus-go/3@tmp:/w/workspace/device-modbus-go/3@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 13:02:07 $ docker top 74fc7cb63d0914b7c580d1fd534c9dbc15897194ce18efe48d1622e05a8eb95e -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 13:02:08 ---> job-cost.sh 13:02:08 lf-activate-venv: SKIPPING 13:02:08 INFO: No Stack... 13:02:09 INFO: Retrieving Pricing Info for: v3-standard-4 13:02:10 INFO: Archiving Costs [Pipeline] sh 13:02:10 + cut -d, -f6 13:02:10 + cat /w/workspace/device-modbus-go/3/archives/cost.csv [Pipeline] lock 13:02:10 Trying to acquire lock on [jenkins-edgexfoundry-device-modbus-go-PR-343-3-stack-cost] 13:02:10 Resource [jenkins-edgexfoundry-device-modbus-go-PR-343-3-stack-cost] did not exist. Created. 13:02:10 Lock acquired on [jenkins-edgexfoundry-device-modbus-go-PR-343-3-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 13:02:11 /w/workspace/device-modbus-go/3@tmp/durable-a42cdb8d/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 13:02:12 + echo total: 0.10999999940395355 [Pipeline] stash 13:02:12 Warning: overwriting stash ‘stack-cost’ 13:02:12 Stashed 1 file(s) [Pipeline] } 13:02:12 Lock released on resource [jenkins-edgexfoundry-device-modbus-go-PR-343-3-stack-cost] [Pipeline] // lock [Pipeline] } 13:02:12 $ docker stop --time=1 74fc7cb63d0914b7c580d1fd534c9dbc15897194ce18efe48d1622e05a8eb95e 13:02:13 $ docker rm -f 74fc7cb63d0914b7c580d1fd534c9dbc15897194ce18efe48d1622e05a8eb95e [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 13:02:14 provisioning config files... 13:02:14 copy managed file [device-modbus-go-codecov-token] to file:/w/workspace/xfoundry_device-modbus-go_PR-343@tmp/config2514439399216266818tmp [Pipeline] { [Pipeline] sh 13:02:14 + set +x 13:02:14 + curl -s https://codecov.io/bash 13:02:14 + bash -s -- 13:02:14 13:02:14 _____ _ 13:02:14 / ____| | | 13:02:14 | | ___ __| | ___ ___ _____ __ 13:02:14 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 13:02:14 | |___| (_) | (_| | __/ (_| (_) \ V / 13:02:14 \_____\___/ \__,_|\___|\___\___/ \_/ 13:02:14 Bash-1.0.6 13:02:14 13:02:14 13:02:14 ==> git version 2.25.1 found 13:02:14 ==> 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 13:02:14 Release-Date: 2020-01-08 13:02:14 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 13:02:14 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 13:02:14 ==> Jenkins CI detected. 13:02:14 current dir:  /w/workspace/xfoundry_device-modbus-go_PR-343 13:02:14 project root: . 13:02:14 --> token set from env 13:02:14 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 13:02:14 ==> Running gcov in . (disable via -X gcov) 13:02:14 ==> Python coveragepy not found 13:02:14 ==> Searching for coverage reports in: 13:02:14 + . 13:02:14 -> Found 1 reports 13:02:14 ==> Detecting git/mercurial file structure 13:02:14 ==> Reading reports 13:02:14 + ./coverage.out bytes=24065 13:02:14 ==> Appending adjustments 13:02:14 https://docs.codecov.io/docs/fixing-reports 13:02:14 + Found adjustments 13:02:14 ==> Gzipping contents 13:02:14 4.0K /tmp/codecov.2WeDt8.gz 13:02:14 ==> Uploading reports 13:02:14 url: https://codecov.io 13:02:14 query: branch=PR-343&commit=34a018714ea1f902c36d17577cc49c1f6302e56f&build=3&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-modbus-go%2Fjob%2FPR-343%2F3%2F&name=&tag=&slug=edgexfoundry%2Fdevice-modbus-go&service=jenkins&flags=&pr=343&job=&cmd_args= 13:02:14 -> Pinging Codecov 13:02:14 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=3a8d40b1-de00-4649-bfd4-bdc8ed99ae89&branch=PR-343&commit=34a018714ea1f902c36d17577cc49c1f6302e56f&build=3&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-modbus-go%2Fjob%2FPR-343%2F3%2F&name=&tag=&slug=edgexfoundry%2Fdevice-modbus-go&service=jenkins&flags=&pr=343&job=&cmd_args= 13:02:15 -> Uploading to 13:02:15 https://storage.googleapis.com/codecov/v4/raw/2022-05-09/55DBCA73C666E3227836607328DD7E49/34a018714ea1f902c36d17577cc49c1f6302e56f/024976fd-74ef-47de-8590-dbf1295bbcef.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20220509%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20220509T130214Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=ee9f2fde06c78609f35bf1a19aecad59ba1ec50124d11886bdba5883e9aa1fe5 13:02:15 % Total % Received % Xferd Average Speed Time Time Time Current 13:02:15 Dload Upload Total Spent Left Speed 13:02:15 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 4018 0 0 100 4018 0 18180 --:--:-- --:--:-- --:--:-- 18099 100 4018 0 0 100 4018 0 15818 --:--:-- --:--:-- --:--:-- 15756 13:02:15 -> Reports have been successfully queued for processing at https://codecov.io/github/edgexfoundry/device-modbus-go/commit/34a018714ea1f902c36d17577cc49c1f6302e56f [Pipeline] } 13:02:15 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 13:02:16 + [ -d /w/workspace/xfoundry_device-modbus-go_PR-343/archives ] 13:02:16 + ls -al /w/workspace/xfoundry_device-modbus-go_PR-343/archives 13:02:16 total 16 13:02:16 drwxr-xr-x 3 root root 4096 May 9 12:55 . 13:02:16 drwxrwxr-x 11 jenkins jenkins 4096 May 9 12:55 .. 13:02:16 drwxr-xr-x 2 root root 4096 May 9 12:55 cost 13:02:16 -rw-r--r-- 1 root root 87 May 9 12:55 cost.csv 13:02:16 + sudo chown -R jenkins:jenkins /w/workspace/xfoundry_device-modbus-go_PR-343/archives 13:02:16 + ls -al /w/workspace/xfoundry_device-modbus-go_PR-343/archives 13:02:16 total 16 13:02:16 drwxr-xr-x 3 jenkins jenkins 4096 May 9 12:55 . 13:02:16 drwxrwxr-x 11 jenkins jenkins 4096 May 9 12:55 .. 13:02:16 drwxr-xr-x 2 jenkins jenkins 4096 May 9 12:55 cost 13:02:16 -rw-r--r-- 1 jenkins jenkins 87 May 9 12:55 cost.csv [Pipeline] libraryResource [Pipeline] sh 13:02:16 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 13:02:17 ---> package-listing.sh 13:02:17 ++ facter osfamily 13:02:17 ++ tr '[:upper:]' '[:lower:]' 13:02:17 + OS_FAMILY=debian 13:02:17 + workspace=/w/workspace/xfoundry_device-modbus-go_PR-343 13:02:17 + START_PACKAGES=/tmp/packages_start.txt 13:02:17 + END_PACKAGES=/tmp/packages_end.txt 13:02:17 + DIFF_PACKAGES=/tmp/packages_diff.txt 13:02:17 + PACKAGES=/tmp/packages_start.txt 13:02:17 + '[' /w/workspace/xfoundry_device-modbus-go_PR-343 ']' 13:02:17 + PACKAGES=/tmp/packages_end.txt 13:02:17 + case "${OS_FAMILY}" in 13:02:17 + dpkg -l 13:02:17 + grep '^ii' 13:02:17 + '[' -f /tmp/packages_start.txt ']' 13:02:17 + '[' -f /tmp/packages_end.txt ']' 13:02:17 + diff /tmp/packages_start.txt /tmp/packages_end.txt 13:02:17 + '[' /w/workspace/xfoundry_device-modbus-go_PR-343 ']' 13:02:17 + mkdir -p /w/workspace/xfoundry_device-modbus-go_PR-343/archives/ 13:02:17 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/xfoundry_device-modbus-go_PR-343/archives/ [Pipeline] echo 13:02:17 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-343/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 13:02:17 + facter operatingsystem [Pipeline] isUnix [Pipeline] sh 13:02:18 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 13:02:18 . [Pipeline] withDockerContainer 13:02:18 prd-ubuntu20.04-docker-8c-8g-41805 does not seem to be running inside a container 13:02:18 $ 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-343/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-343 -v /w/workspace/xfoundry_device-modbus-go_PR-343:/w/workspace/xfoundry_device-modbus-go_PR-343:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-343@tmp:/w/workspace/xfoundry_device-modbus-go_PR-343@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 13:02:18 $ docker top 5714794e5dee982916f36ed56b921d881f08f479e719b7cdfe57858ea8ca9d93 -eo pid,comm [Pipeline] { [Pipeline] sh 13:02:19 + touch /tmp/pre-build-complete [Pipeline] sh 13:02:19 + mkdir -p /var/log/sysstat [Pipeline] sh 13:02:19 + ls /var/log/sa-host 13:02:19 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 13:02:20 provisioning config files... 13:02:20 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-343@tmp/config420158052225867034tmp [Pipeline] { [Pipeline] echo 13:02:20 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 13:02:20 ---> create-netrc.sh [Pipeline] } 13:02:20 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 13:02:20 ---> python-tools-install.sh [Pipeline] echo 13:02:20 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 13:02:21 ---> sudo-logs.sh 13:02:21 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 13:02:21 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 13:02:21 ---> job-cost.sh 13:02:21 lf-activate-venv: SKIPPING 13:02:21 DEBUG: total: 0.2199999988079071 13:02:21 INFO: Retrieving Stack Cost... 13:02:21 INFO: Retrieving Pricing Info for: v3-standard-8 13:02:22 INFO: Archiving Costs [Pipeline] echo 13:02:22 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 13:02:22 ---> logs-deploy.sh 13:02:22 lf-activate-venv: SKIPPING 13:02:22 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-modbus-go/PR-343/3 13:02:22 INFO: archiving workspace using pattern(s): 13:02:23 Archives upload complete. 13:02:23 INFO: archiving logs to Nexus