Pull request #346 opened Connecting to https://api.github.com using edgex-jenkins github personal access token Connecting to https://api.github.com to check permissions of obtain list of jinlinGuan for edgexfoundry/device-modbus-go Loading trusted files from base branch main at 74a050b5b4bd28a6f3c6004725ec0b1be1ff5180 rather than 1705a6d7d55ea2e414d2e8a0eb8a8eb1c75fa499 Obtained Jenkinsfile from 74a050b5b4bd28a6f3c6004725ec0b1be1ff5180 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-ssh8719443449768056573.key > git ls-remote -h -t -- git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Found match: refs/tags/stable revision 95c76d14630896f3c9cf825147e1b1e2bad20cbb 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-ssh884319712468149309.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 95c76d14630896f3c9cf825147e1b1e2bad20cbb The recommended git tool is: git using credential edgex-jenkins-ssh Cloning the remote Git repository Cloning with configured refspecs honoured and with tags Cloning repository git@github.com:edgexfoundry/edgex-global-pipelines.git > git init /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-346/workspace@libs/edgex-global-pipelines # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/edgex-global-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-346/workspace@libs/edgex-global-pipelines@tmp/jenkins-gitclient-ssh12656950284482348674.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 > git config --add remote.origin.fetch +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Fetching with tags Fetching upstream changes from git@github.com:edgexfoundry/edgex-global-pipelines.git using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-346/workspace@libs/edgex-global-pipelines@tmp/jenkins-gitclient-ssh1969623236532714019.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision 95c76d14630896f3c9cf825147e1b1e2bad20cbb (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f 95c76d14630896f3c9cf825147e1b1e2bad20cbb # timeout=10 Commit message: "Merge pull request #387 from ernestojeda/disable-concurrent-builds" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 > git --version # timeout=10 > git --version # 'git version 2.16.6' Excluding src/test/ from checkout of git git@github.com:edgexfoundry/edgex-global-pipelines.git so that shared library test code cannot be accessed by Pipelines. To remove this log message, move the test code outside of src/. To restore the previous behavior that allowed access to files in src/test/, pass -Dorg.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.INCLUDE_SRC_TEST_IN_LIBRARIES=true to the java command used to start Jenkins. Loading library lf-pipelines@master Attempting to resolve master from remote references... > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /tmp/jenkins-gitclient-ssh7697484632190217953.key > git ls-remote -h -- git@github.com:lfit/releng-pipelines.git # timeout=10 Found match: refs/heads/master revision b3dada9287033e4e81bc68320e01fd57bef02650 The recommended git tool is: NONE using credential edgex-jenkins-ssh Cloning the remote Git repository Cloning with configured refspecs honoured and without tags Cloning repository git@github.com:lfit/releng-pipelines.git > git init /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-346/workspace@libs/lf-pipelines # timeout=10 Fetching upstream changes from git@github.com:lfit/releng-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-346/workspace@libs/lf-pipelines@tmp/jenkins-gitclient-ssh5745980224019811636.key > git fetch --no-tags --progress -- git@github.com:lfit/releng-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:lfit/releng-pipelines.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 Avoid second fetch Checking out Revision b3dada9287033e4e81bc68320e01fd57bef02650 (master) > git config core.sparsecheckout # timeout=10 > git checkout -f b3dada9287033e4e81bc68320e01fd57bef02650 # timeout=10 Commit message: "Fix: Update requirements.txt, update global-jjb" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 > git --version # timeout=10 > git --version # 'git version 2.16.6' fatal: bad object 95c76d14630896f3c9cf825147e1b1e2bad20cbb Excluding src/test/ from checkout of git git@github.com:lfit/releng-pipelines.git so that shared library test code cannot be accessed by Pipelines. To remove this log message, move the test code outside of src/. To restore the previous behavior that allowed access to files in src/test/, pass -Dorg.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.INCLUDE_SRC_TEST_IN_LIBRARIES=true to the java command used to start Jenkins. [Pipeline] Start of Pipeline [Pipeline] echo ========================================================= [edgeXBuildGoApp] RAW Config: [project:device-modbus-go, buildSnap:false] ========================================================= [Pipeline] echo Setting up nodes based on requested architectures [[amd64, arm64]] [Pipeline] echo Nodes requested: [[ubuntu20.04-docker-8c-8g, ubuntu20.04-docker-arm64-4c-16g]] [Pipeline] echo ========================================================= [edgeXBuildGoApp] Pipeline Parameters: ========================================================= [Pipeline] echo MAVEN_SETTINGS: device-modbus-go-settings PROJECT: device-modbus-go USE_SEMVER: true TEST_SCRIPT: make test BUILD_SCRIPT: make build GO_VERSION: 1.17 USE_ALPINE: true DOCKER_FILE_PATH: Dockerfile DOCKER_BUILD_FILE_PATH: Dockerfile.build DOCKER_BUILD_CONTEXT: . DOCKER_BUILD_IMAGE_TARGET: builder DOCKER_IMAGE_NAME: device-modbus DOCKER_REGISTRY_NAMESPACE: DOCKER_NEXUS_REPO: staging BUILD_DOCKER_IMAGE: true PUSH_DOCKER_IMAGE: true BUILD_EXPERIMENTAL_DOCKER_IMAGE: false BUILD_STABLE_DOCKER_IMAGE: false SEMVER_BUMP_LEVEL: pre BUILD_SNAP: false PUBLISH_SWAGGER_DOCS: false SWAGGER_API_FOLDERS: openapi/v1 ARTIFACT_ROOT: archives/bin ARTIFACT_TYPES: docker SHOULD_BUILD: true BUILD_FAILURE_NOTIFY_LIST: edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] node Still waiting to schedule task Waiting for next available executor on ‘prd-ubuntu20.04-docker-8c-8g-63042’ Running on prd-ubuntu20.04-docker-8c-8g-63045 in /w/workspace/xfoundry_device-modbus-go_PR-346 [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-346 # 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 74a050b5b4bd28a6f3c6004725ec0b1be1ff5180 into PR head commit 1705a6d7d55ea2e414d2e8a0eb8a8eb1c75fa499 Merge succeeded, producing 1705a6d7d55ea2e414d2e8a0eb8a8eb1c75fa499 Checking out Revision 1705a6d7d55ea2e414d2e8a0eb8a8eb1c75fa499 (PR-346) > 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/346/head:refs/remotes/origin/PR-346 +refs/heads/main:refs/remotes/origin/main # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 1705a6d7d55ea2e414d2e8a0eb8a8eb1c75fa499 # 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 74a050b5b4bd28a6f3c6004725ec0b1be1ff5180 # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 1705a6d7d55ea2e414d2e8a0eb8a8eb1c75fa499 # timeout=10 Commit message: "build: Update to released Go Mods" First time build. Skipping changelog. > git --version # timeout=10 > git --version # 'git version 2.25.1' fatal: bad object 95c76d14630896f3c9cf825147e1b1e2bad20cbb [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 05:21:23 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 05:21:23 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 05:21:23 ========================================================= 05:21:23 EdgeX Global Pipelines Version Info 05:21:23 ========================================================= [Pipeline] libraryResource [Pipeline] sh 05:21:24 ------------------- 05:21:24 stable info: 05:21:24 ------------------- 05:21:24 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 05:21:24 Commit SHA: 95c76d14630896f3c9cf825147e1b1e2bad20cbb 05:21:24 Message: update stable to v1.0.230 05:21:24 ------------------- 05:21:24 experimental info: 05:21:24 ------------------- 05:21:24 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 05:21:24 Commit SHA: 95c76d14630896f3c9cf825147e1b1e2bad20cbb 05:21:24 Message: update experimental to v1.0.230 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 05:21:25 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-modbus-go-settings [Pipeline] echo 05:21:25 [edgeXSetupEnvironment]: set envvar PROJECT = device-modbus-go [Pipeline] echo 05:21:25 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 05:21:25 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 05:21:25 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 05:21:25 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.17 [Pipeline] echo 05:21:25 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 05:21:25 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 05:21:25 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 05:21:25 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 05:21:25 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 05:21:25 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-modbus [Pipeline] echo 05:21:25 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 05:21:25 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 05:21:25 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 05:21:25 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 05:21:25 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 05:21:26 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 05:21:26 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 05:21:26 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 05:21:26 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 05:21:26 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 05:21:26 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 05:21:26 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 05:21:26 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 05:21:26 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 05:21:26 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-346 [Pipeline] echo 05:21:26 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-346 [Pipeline] echo 05:21:26 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-346 [Pipeline] echo 05:21:26 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 1705a6d7d55ea2e414d2e8a0eb8a8eb1c75fa499 [Pipeline] echo 05:21:26 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 1705a6d [Pipeline] echo 05:21:26 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 05:21:26 provisioning config files... 05:21:26 copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-346@tmp/config6335648432223998172tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 05:21:27 ---> docker-login.sh 05:21:27 nexus3.edgexfoundry.org:10001 05:21:27 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:21:27 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:21:27 Configure a credential helper to remove this warning. See 05:21:27 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:21:27 05:21:27 Login Succeeded 05:21:27 nexus3.edgexfoundry.org:10002 05:21:27 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:21:27 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:21:27 Configure a credential helper to remove this warning. See 05:21:27 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:21:27 05:21:27 Login Succeeded 05:21:27 nexus3.edgexfoundry.org:10003 05:21:27 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:21:27 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:21:27 Configure a credential helper to remove this warning. See 05:21:27 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:21:27 05:21:27 Login Succeeded 05:21:27 nexus3.edgexfoundry.org:10004 05:21:27 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:21:28 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:21:28 Configure a credential helper to remove this warning. See 05:21:28 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:21:28 05:21:28 Login Succeeded 05:21:28 docker.io 05:21:28 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:21:28 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:21:28 Configure a credential helper to remove this warning. See 05:21:28 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:21:28 05:21:28 Login Succeeded 05:21:28 ---> docker-login.sh ends [Pipeline] } 05:21:28 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 05:21:29 + git rev-list -1 --merges 1705a6d7d55ea2e414d2e8a0eb8a8eb1c75fa499~1..1705a6d7d55ea2e414d2e8a0eb8a8eb1c75fa499 [Pipeline] echo 05:21:29 -----------> git rev-list -1 --merges 1705a6d7d55ea2e414d2e8a0eb8a8eb1c75fa499~1..1705a6d7d55ea2e414d2e8a0eb8a8eb1c75fa499 1705a6d7d55ea2e414d2e8a0eb8a8eb1c75fa499 [false] [Pipeline] sh 05:21:29 + git log --format=format:%s -1 1705a6d7d55ea2e414d2e8a0eb8a8eb1c75fa499 [Pipeline] echo 05:21:29 ========================================================= 05:21:29 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 05:21:29 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 05:21:30 + git log --format=format:%s -1 1705a6d7d55ea2e414d2e8a0eb8a8eb1c75fa499 [Pipeline] echo 05:21:30 [semverPrep] GIT_COMMIT: 1705a6d7d55ea2e414d2e8a0eb8a8eb1c75fa499, Commit Message: build: Update to released Go Mods [Pipeline] echo 05:21:30 [semverPrep] This is not a build commit. [Pipeline] sh 05:21:30 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 05:21:30 + grep -v github /etc/ssh/ssh_known_hosts 05:21:30 + [ -e /tmp/ssh_known_hosts ] 05:21:30 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 05:21:30 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 05:21:30 + sudo tee -a /etc/ssh/ssh_known_hosts 05:21:30 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] sh 05:21:30 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest 05:21:30 05:21:30 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest [Pipeline] isUnix [Pipeline] sh 05:21:31 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest 05:21:31 latest: Pulling from edgex-devops/py-git-semver 05:21:31 1fe172e4850f: Pulling fs layer 05:21:31 caf521ccaac6: Pulling fs layer 05:21:31 3ead6fa29328: Pulling fs layer 05:21:31 5c2a1cbceb83: Pulling fs layer 05:21:31 a8d5f1318db7: Pulling fs layer 05:21:31 c427282e49a2: Pulling fs layer 05:21:31 1827001aaf11: Pulling fs layer 05:21:31 0714d37db230: Pulling fs layer 05:21:31 ac28cf19c067: Pulling fs layer 05:21:31 ca983d60f3e2: Pulling fs layer 05:21:31 9f894cec8388: Pulling fs layer 05:21:31 a8d5f1318db7: Waiting 05:21:31 c427282e49a2: Waiting 05:21:31 1827001aaf11: Waiting 05:21:31 0714d37db230: Waiting 05:21:31 9f894cec8388: Waiting 05:21:31 ac28cf19c067: Waiting 05:21:31 ca983d60f3e2: Waiting 05:21:31 5c2a1cbceb83: Waiting 05:21:31 caf521ccaac6: Download complete 05:21:31 5c2a1cbceb83: Verifying Checksum 05:21:31 5c2a1cbceb83: Download complete 05:21:31 a8d5f1318db7: Verifying Checksum 05:21:31 a8d5f1318db7: Download complete 05:21:31 c427282e49a2: Download complete 05:21:31 3ead6fa29328: Verifying Checksum 05:21:31 3ead6fa29328: Download complete 05:21:31 0714d37db230: Verifying Checksum 05:21:31 0714d37db230: Download complete 05:21:31 ac28cf19c067: Verifying Checksum 05:21:31 ac28cf19c067: Download complete 05:21:31 ca983d60f3e2: Download complete 05:21:31 9f894cec8388: Verifying Checksum 05:21:31 9f894cec8388: Download complete 05:21:31 1fe172e4850f: Verifying Checksum 05:21:31 1fe172e4850f: Download complete 05:21:31 1827001aaf11: Verifying Checksum 05:21:31 1827001aaf11: Download complete 05:21:33 1fe172e4850f: Pull complete 05:21:33 caf521ccaac6: Pull complete 05:21:33 3ead6fa29328: Pull complete 05:21:33 5c2a1cbceb83: Pull complete 05:21:34 a8d5f1318db7: Pull complete 05:21:34 c427282e49a2: Pull complete 05:21:36 1827001aaf11: Pull complete 05:21:36 0714d37db230: Pull complete 05:21:36 ac28cf19c067: Pull complete 05:21:36 ca983d60f3e2: Pull complete 05:21:36 9f894cec8388: Pull complete 05:21:36 Digest: sha256:90e63904a1edc574c23a580e5fc31fbcdccad1501625621f67a6be262171cfee 05:21:36 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest 05:21:36 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest [Pipeline] withDockerContainer 05:21:36 prd-ubuntu20.04-docker-8c-8g-63045 does not seem to be running inside a container 05:21:36 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/xfoundry_device-modbus-go_PR-346 -v /w/workspace/xfoundry_device-modbus-go_PR-346:/w/workspace/xfoundry_device-modbus-go_PR-346:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-346@tmp:/w/workspace/xfoundry_device-modbus-go_PR-346@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:latest cat 05:21:38 $ docker top d4d963a320f3d305184040c1736d39f66fab89a3f93fdd4a0b8bd4022055562b -eo pid,comm 05:21:38 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). 05:21:38 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 05:21:38 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 05:21:38 [ssh-agent] Looking for ssh-agent implementation... 05:21:38 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 05:21:38 $ docker exec d4d963a320f3d305184040c1736d39f66fab89a3f93fdd4a0b8bd4022055562b ssh-agent 05:21:38 SSH_AUTH_SOCK=/tmp/ssh-BDdDdeA6iYph/agent.32 05:21:38 SSH_AGENT_PID=39 05:21:38 Running ssh-add (command line suppressed) 05:21:38 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-346@tmp/private_key_3395666341591830258.key (/w/workspace/xfoundry_device-modbus-go_PR-346@tmp/private_key_3395666341591830258.key) 05:21:38 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 05:21:39 + git tag --points-at HEAD [Pipeline] } 05:21:39 $ docker exec --env ******** --env ******** d4d963a320f3d305184040c1736d39f66fab89a3f93fdd4a0b8bd4022055562b ssh-agent -k 05:21:39 unset SSH_AUTH_SOCK; 05:21:39 unset SSH_AGENT_PID; 05:21:39 echo Agent pid 39 killed; 05:21:39 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 05:21:39 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 05:21:39 [ssh-agent] Looking for ssh-agent implementation... 05:21:39 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 05:21:39 $ docker exec d4d963a320f3d305184040c1736d39f66fab89a3f93fdd4a0b8bd4022055562b ssh-agent 05:21:39 SSH_AUTH_SOCK=/tmp/ssh-VpNZOgHdzR2X/agent.73 05:21:39 SSH_AGENT_PID=80 05:21:39 Running ssh-add (command line suppressed) 05:21:39 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-346@tmp/private_key_7860520402698680946.key (/w/workspace/xfoundry_device-modbus-go_PR-346@tmp/private_key_7860520402698680946.key) 05:21:39 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 05:21:40 + git semver init 05:21:40 2022-05-11 05:21:40,480 [run_init] DEBUG init version:0.0.0 force:False 05:21:40 2022-05-11 05:21:40,481 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/xfoundry_device-modbus-go_PR-346/.semver 05:21:40 2022-05-11 05:21:40,481 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-modbus-go.git /w/workspace/xfoundry_device-modbus-go_PR-346/.semver 05:21:40 2022-05-11 05:21:40,482 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-modbus-go.git', '/w/workspace/xfoundry_device-modbus-go_PR-346/.semver'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-346, universal_newlines=False, shell=None, istream=None) 05:21:41 2022-05-11 05:21:41,332 [append_file] DEBUG append to file:/w/workspace/xfoundry_device-modbus-go_PR-346/.git/info/exclude 05:21:41 2022-05-11 05:21:41,333 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/xfoundry_device-modbus-go_PR-346/.semver/PR-346 with force:False 05:21:41 2022-05-11 05:21:41,333 [write_file] DEBUG write to file:/w/workspace/xfoundry_device-modbus-go_PR-346/.semver/PR-346 05:21:41 2022-05-11 05:21:41,338 [execute] INFO git cat-file --batch-check 05:21:41 2022-05-11 05:21:41,338 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-346/.semver, universal_newlines=False, shell=None, istream=) 05:21:41 2022-05-11 05:21:41,345 [execute] INFO git cat-file --batch 05:21:41 2022-05-11 05:21:41,345 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-346/.semver, universal_newlines=False, shell=None, istream=) 05:21:41 2022-05-11 05:21:41,351 [read_version] DEBUG read version from /w/workspace/xfoundry_device-modbus-go_PR-346/.semver/PR-346 05:21:41 0.0.0 [Pipeline] } 05:21:41 $ docker exec --env ******** --env ******** d4d963a320f3d305184040c1736d39f66fab89a3f93fdd4a0b8bd4022055562b ssh-agent -k 05:21:41 unset SSH_AUTH_SOCK; 05:21:41 unset SSH_AGENT_PID; 05:21:41 echo Agent pid 80 killed; 05:21:41 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 05:21:42 + git semver [Pipeline] } 05:21:42 $ docker stop --time=1 d4d963a320f3d305184040c1736d39f66fab89a3f93fdd4a0b8bd4022055562b 05:21:43 $ docker rm -f d4d963a320f3d305184040c1736d39f66fab89a3f93fdd4a0b8bd4022055562b [Pipeline] // withDockerContainer [Pipeline] sh 05:21:44 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 05:21:44 Stashed 1 file(s) [Pipeline] echo 05:21:44 [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 05:21:45 provisioning config files... 05:21:45 copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-346@tmp/config6389313576041658117tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 05:21:45 ---> docker-login.sh 05:21:45 nexus3.edgexfoundry.org:10001 05:21:45 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:21:45 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:21:45 Configure a credential helper to remove this warning. See 05:21:45 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:21:45 05:21:45 Login Succeeded 05:21:45 nexus3.edgexfoundry.org:10002 05:21:45 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:21:45 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:21:45 Configure a credential helper to remove this warning. See 05:21:45 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:21:45 05:21:45 Login Succeeded 05:21:45 nexus3.edgexfoundry.org:10003 05:21:45 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:21:45 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:21:45 Configure a credential helper to remove this warning. See 05:21:45 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:21:45 05:21:45 Login Succeeded 05:21:45 nexus3.edgexfoundry.org:10004 05:21:45 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:21:45 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:21:45 Configure a credential helper to remove this warning. See 05:21:45 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:21:45 05:21:45 Login Succeeded 05:21:45 docker.io 05:21:45 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:21:46 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:21:46 Configure a credential helper to remove this warning. See 05:21:46 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:21:46 05:21:46 Login Succeeded 05:21:46 ---> docker-login.sh ends [Pipeline] } 05:21:46 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 05:21:46 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 05:21:46 ========================================================= 05:21:46 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine] 05:21:46 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 05:21:47 + 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 . 05:21:47 Sending build context to Docker daemon 5.917MB 05:21:47 Step 1/10 : ARG BASE=golang:1.17-alpine3.15 05:21:47 Step 2/10 : FROM ${BASE} AS builder 05:21:47 1.17-alpine: Pulling from edgex-devops/edgex-golang-base 05:21:47 59bf1c3509f3: Pulling fs layer 05:21:47 666ba61612fd: Pulling fs layer 05:21:47 8ed8ca486205: Pulling fs layer 05:21:47 4fe6c5a15a65: Pulling fs layer 05:21:47 22a0e8bec74d: Pulling fs layer 05:21:47 ca2b28591e48: Pulling fs layer 05:21:47 a51346096db8: Pulling fs layer 05:21:47 daebc70d1ce1: Pulling fs layer 05:21:47 0e18a0eac166: Pulling fs layer 05:21:47 4fe6c5a15a65: Waiting 05:21:47 ca2b28591e48: Waiting 05:21:47 a51346096db8: Waiting 05:21:47 daebc70d1ce1: Waiting 05:21:47 0e18a0eac166: Waiting 05:21:47 22a0e8bec74d: Waiting 05:21:47 8ed8ca486205: Download complete 05:21:47 666ba61612fd: Download complete 05:21:47 22a0e8bec74d: Verifying Checksum 05:21:47 22a0e8bec74d: Download complete 05:21:47 ca2b28591e48: Verifying Checksum 05:21:47 ca2b28591e48: Download complete 05:21:47 59bf1c3509f3: Verifying Checksum 05:21:47 59bf1c3509f3: Download complete 05:21:47 a51346096db8: Verifying Checksum 05:21:47 a51346096db8: Download complete 05:21:47 daebc70d1ce1: Verifying Checksum 05:21:47 daebc70d1ce1: Download complete 05:21:47 59bf1c3509f3: Pull complete 05:21:47 666ba61612fd: Pull complete 05:21:47 8ed8ca486205: Pull complete 05:21:48 0e18a0eac166: Verifying Checksum 05:21:48 4fe6c5a15a65: Verifying Checksum 05:21:48 4fe6c5a15a65: Download complete 05:21:52 4fe6c5a15a65: Pull complete 05:21:52 22a0e8bec74d: Pull complete 05:21:52 ca2b28591e48: Pull complete 05:21:52 a51346096db8: Pull complete 05:21:52 daebc70d1ce1: Pull complete 05:21:55 0e18a0eac166: Pull complete 05:21:55 Digest: sha256:5cf2d0a306c5171eb5b3008c4b83cc7b6044f1808c238cb17927cddb93576120 05:21:55 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine 05:21:55 ---> f018257e8ee9 05:21:55 Step 3/10 : ARG MAKE='make build' 05:21:56 ---> Running in 356aa6b7e068 05:21:56 Removing intermediate container 356aa6b7e068 05:21:56 ---> 05d62c18c448 05:21:56 Step 4/10 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 05:21:56 ---> Running in c5e622d0ed63 05:21:57 Removing intermediate container c5e622d0ed63 05:21:57 ---> 91b70ca34411 05:21:57 Step 5/10 : RUN apk add --update --no-cache make git openssh gcc libc-dev zeromq-dev libsodium-dev 05:21:57 ---> Running in b898875dcbe4 05:21:57 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 05:21:58 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 05:21:58 (1/8) Installing openssh-keygen (8.8_p1-r1) 05:21:58 (2/8) Installing libedit (20210910.3.1-r0) 05:21:58 (3/8) Installing openssh-client-common (8.8_p1-r1) 05:21:58 (4/8) Installing openssh-client-default (8.8_p1-r1) 05:21:58 (5/8) Installing openssh-sftp-server (8.8_p1-r1) 05:21:59 (6/8) Installing openssh-server-common (8.8_p1-r1) 05:21:59 (7/8) Installing openssh-server (8.8_p1-r1) 05:21:59 (8/8) Installing openssh (8.8_p1-r1) 05:21:59 Executing busybox-1.34.1-r3.trigger 05:21:59 OK: 226 MiB in 60 packages 05:21:59 Removing intermediate container b898875dcbe4 05:21:59 ---> 98a539b4f2f9 05:21:59 Step 6/10 : WORKDIR /device-modbus-go 05:21:59 Still waiting to schedule task 05:21:59 Waiting for next available executor on ‘prd-ubuntu20.04-docker-arm64-4c-16g-63043’ 05:21:59 ---> Running in 0381f47e2003 05:21:59 Removing intermediate container 0381f47e2003 05:21:59 ---> 0ce1c734986c 05:21:59 Step 7/10 : COPY go.mod vendor* ./ 05:21:59 ---> 91b759274fb5 05:21:59 Step 8/10 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 05:22:00 ---> Running in dbbc58ae3aa9 05:22:15 Removing intermediate container dbbc58ae3aa9 05:22:15 ---> 5188cbfd70f5 05:22:15 Step 9/10 : COPY . . 05:22:15 ---> 9e0dbf279a45 05:22:15 Step 10/10 : RUN ${MAKE} 05:22:15 ---> Running in cead982370e3 05:22:15 noop 05:22:15 Removing intermediate container cead982370e3 05:22:15 ---> cb7b881c9cb7 05:22:15 Successfully built cb7b881c9cb7 05:22:15 Successfully tagged ci-base-image-x86_64:latest [Pipeline] isUnix [Pipeline] sh 05:22:15 + docker inspect -f . ci-base-image-x86_64 05:22:15 . [Pipeline] withDockerContainer 05:22:15 prd-ubuntu20.04-docker-8c-8g-63045 does not seem to be running inside a container 05:22:15 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/xfoundry_device-modbus-go_PR-346 -v /w/workspace/xfoundry_device-modbus-go_PR-346:/w/workspace/xfoundry_device-modbus-go_PR-346:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-346@tmp:/w/workspace/xfoundry_device-modbus-go_PR-346@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 05:22:16 $ docker top 0f8801cbf74f8ec4b60b990634d0e42f39a5579adf3821148b59304068015c58 -eo pid,comm [Pipeline] { [Pipeline] sh 05:22:16 + go version 05:22:16 go version go1.17.6 linux/amd64 [Pipeline] } 05:22:16 $ docker stop --time=1 0f8801cbf74f8ec4b60b990634d0e42f39a5579adf3821148b59304068015c58 05:22:17 $ docker rm -f 0f8801cbf74f8ec4b60b990634d0e42f39a5579adf3821148b59304068015c58 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 05:22:18 + docker inspect -f . ci-base-image-x86_64 05:22:18 . [Pipeline] withDockerContainer 05:22:18 prd-ubuntu20.04-docker-8c-8g-63045 does not seem to be running inside a container 05:22:18 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/xfoundry_device-modbus-go_PR-346 -v /w/workspace/xfoundry_device-modbus-go_PR-346:/w/workspace/xfoundry_device-modbus-go_PR-346:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-346@tmp:/w/workspace/xfoundry_device-modbus-go_PR-346@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 05:22:19 $ docker top 5de334159efb4e90feddb9e1ed89fa45ec66be3f0a44328345502f80549086b2 -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 05:22:19 + make test 05:22:19 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out 05:22:19 ? github.com/edgexfoundry/device-modbus-go [no test files] 05:22:29 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 05:22:29 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.027s coverage: 46.4% of statements 05:22:36 CGO_ENABLED=1 GO111MODULE=on go vet ./... 05:22:40 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 05:22:40 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 05:22:40 ./bin/test-attribution-txt.sh [Pipeline] echo 05:22:40 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 05:22:40 $ docker stop --time=1 5de334159efb4e90feddb9e1ed89fa45ec66be3f0a44328345502f80549086b2 05:22:42 $ docker rm -f 5de334159efb4e90feddb9e1ed89fa45ec66be3f0a44328345502f80549086b2 [Pipeline] // withDockerContainer [Pipeline] sh 05:22:42 + sudo chown -R jenkins:jenkins . [Pipeline] stash 05:22:43 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 05:22:43 + sudo chown -R jenkins:jenkins . [Pipeline] sh 05:22:44 + ls -al . 05:22:44 total 184 05:22:44 drwxrwxr-x 10 jenkins jenkins 4096 May 11 05:22 . 05:22:44 drwxrwxr-x 4 jenkins jenkins 4096 May 11 05:21 .. 05:22:44 -rw-rw-r-- 1 jenkins jenkins 140 May 11 05:21 .dockerignore 05:22:44 drwxrwxr-x 8 jenkins jenkins 4096 May 11 05:21 .git 05:22:44 drwxrwxr-x 3 jenkins jenkins 4096 May 11 05:21 .github 05:22:44 -rw-rw-r-- 1 jenkins jenkins 331 May 11 05:21 .gitignore 05:22:44 -rw-rw-r-- 1 jenkins jenkins 41 May 11 05:21 .golangci.yml 05:22:44 drwxr-xr-x 3 jenkins jenkins 4096 May 11 05:21 .semver 05:22:44 -rw-rw-r-- 1 jenkins jenkins 9377 May 11 05:21 Attribution.txt 05:22:44 -rw-rw-r-- 1 jenkins jenkins 10001 May 11 05:21 CHANGELOG.md 05:22:44 -rw-rw-r-- 1 jenkins jenkins 1546 May 11 05:21 Dockerfile 05:22:44 -rw-rw-r-- 1 jenkins jenkins 677 May 11 05:21 GOVERNANCE.md 05:22:44 -rw-rw-r-- 1 jenkins jenkins 680 May 11 05:21 Jenkinsfile 05:22:44 -rw-rw-r-- 1 jenkins jenkins 11340 May 11 05:21 LICENSE 05:22:44 -rw-rw-r-- 1 jenkins jenkins 1905 May 11 05:21 Makefile 05:22:44 -rw-rw-r-- 1 jenkins jenkins 622 May 11 05:21 OWNERS.md 05:22:44 -rw-rw-r-- 1 jenkins jenkins 3397 May 11 05:21 README.md 05:22:44 -rw-rw-r-- 1 jenkins jenkins 5 May 11 05:21 VERSION 05:22:44 drwxrwxr-x 2 jenkins jenkins 4096 May 11 05:21 bin 05:22:44 drwxrwxr-x 3 jenkins jenkins 4096 May 11 05:21 cmd 05:22:44 -rw-r--r-- 1 jenkins jenkins 24065 May 11 05:22 coverage.out 05:22:44 -rw-rw-r-- 1 jenkins jenkins 3353 May 11 05:21 go.mod 05:22:44 -rw-rw-r-- 1 jenkins jenkins 34983 May 11 05:21 go.sum 05:22:44 drwxrwxr-x 3 jenkins jenkins 4096 May 11 05:21 internal 05:22:44 drwxrwxr-x 2 jenkins jenkins 4096 May 11 05:21 simulator 05:22:44 drwxrwxr-x 4 jenkins jenkins 4096 May 11 05:21 snap 05:22:44 -rw-rw-r-- 1 jenkins jenkins 229 May 11 05:21 version.go [Pipeline] isUnix [Pipeline] sh 05:22:44 + 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=1705a6d7d55ea2e414d2e8a0eb8a8eb1c75fa499 --label arch=amd64 --label version=0.0.0 . 05:22:44 Sending build context to Docker daemon 5.942MB 05:22:44 Step 1/23 : ARG BASE=golang:1.17-alpine3.15 05:22:44 Step 2/23 : FROM ${BASE} AS builder 05:22:44 ---> cb7b881c9cb7 05:22:44 Step 3/23 : ARG MAKE='make build' 05:22:44 ---> Running in cc160a4e4348 05:22:44 Removing intermediate container cc160a4e4348 05:22:44 ---> 1ad650c006e2 05:22:44 Step 4/23 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 05:22:44 ---> Running in 5f5558c48bb3 05:22:45 Removing intermediate container 5f5558c48bb3 05:22:45 ---> 2ba445b2267e 05:22:45 Step 5/23 : RUN apk add --update --no-cache make git openssh gcc libc-dev zeromq-dev libsodium-dev 05:22:45 ---> Running in a81c7e04f8c8 05:22:45 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 05:22:46 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 05:22:46 OK: 226 MiB in 60 packages 05:22:47 Removing intermediate container a81c7e04f8c8 05:22:47 ---> 5dd2443dbf53 05:22:47 Step 6/23 : WORKDIR /device-modbus-go 05:22:47 ---> Running in a9890809793c 05:22:47 Removing intermediate container a9890809793c 05:22:47 ---> 8f32c60f922c 05:22:47 Step 7/23 : COPY go.mod vendor* ./ 05:22:47 ---> a55e185bb810 05:22:47 Step 8/23 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 05:22:47 ---> Running in 8fed88ada776 05:22:47 Removing intermediate container 8fed88ada776 05:22:47 ---> 2268afa4c4e6 05:22:47 Step 9/23 : COPY . . 05:22:48 ---> a7d8a66b7c70 05:22:48 Step 10/23 : RUN ${MAKE} 05:22:48 ---> Running in 05e0f7f8a11b 05:22:48 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 05:23:10 Removing intermediate container 05e0f7f8a11b 05:23:10 ---> 72b68a01a6e0 05:23:10 Step 11/23 : FROM alpine:3.14 05:23:10 3.14: Pulling from library/alpine 05:23:10 8663204ce13b: Pulling fs layer 05:23:10 8663204ce13b: Download complete 05:23:10 8663204ce13b: Pull complete 05:23:10 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 05:23:10 Status: Downloaded newer image for alpine:3.14 05:23:10 ---> e04c818066af 05:23:10 Step 12/23 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IoTech Ltd' 05:23:10 ---> Running in 8286df07d6ba 05:23:10 Removing intermediate container 8286df07d6ba 05:23:10 ---> 90220aaa6db4 05:23:10 Step 13/23 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 05:23:10 ---> Running in 3985e65a97d1 05:23:10 Removing intermediate container 3985e65a97d1 05:23:10 ---> 4f72a95ba4cc 05:23:10 Step 14/23 : RUN apk add --update --no-cache zeromq dumb-init 05:23:10 ---> Running in 204dbb8a307a 05:23:10 fetch https://nl.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz 05:23:10 fetch https://nl.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz 05:23:10 (1/6) Installing dumb-init (1.2.5-r1) 05:23:10 (2/6) Installing libgcc (10.3.1_git20210424-r2) 05:23:10 (3/6) Installing libsodium (1.0.18-r0) 05:23:11 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 05:23:11 (5/6) Installing libzmq (4.3.4-r0) 05:23:11 (6/6) Installing zeromq (4.3.4-r0) 05:23:11 Executing busybox-1.33.1-r7.trigger 05:23:11 OK: 8 MiB in 20 packages 05:23:11 Removing intermediate container 204dbb8a307a 05:23:11 ---> a8722398629b 05:23:11 Step 15/23 : COPY --from=builder /device-modbus-go/cmd / 05:23:12 ---> 821d63d633dd 05:23:12 Step 16/23 : COPY --from=builder /device-modbus-go/LICENSE / 05:23:12 ---> 33617f471048 05:23:12 Step 17/23 : COPY --from=builder /device-modbus-go/Attribution.txt / 05:23:12 ---> bd4349a1bc8f 05:23:12 Step 18/23 : EXPOSE 59901 05:23:12 ---> Running in 4f35b2a23e24 05:23:12 Removing intermediate container 4f35b2a23e24 05:23:12 ---> 810d706895ac 05:23:12 Step 19/23 : ENTRYPOINT ["/device-modbus"] 05:23:12 ---> Running in b56ad150a32a 05:23:12 Removing intermediate container b56ad150a32a 05:23:12 ---> 7e428a55a120 05:23:12 Step 20/23 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry", "--confdir=/res"] 05:23:12 ---> Running in 7303a7cf0d71 05:23:12 Removing intermediate container 7303a7cf0d71 05:23:12 ---> b0ba77373fa5 05:23:12 Step 21/23 : LABEL arch=amd64 05:23:12 ---> Running in 2d42876ba42a 05:23:12 Removing intermediate container 2d42876ba42a 05:23:12 ---> c452ddef9ae4 05:23:12 Step 22/23 : LABEL git_sha=1705a6d7d55ea2e414d2e8a0eb8a8eb1c75fa499 05:23:12 ---> Running in aec8d43755de 05:23:13 Removing intermediate container aec8d43755de 05:23:13 ---> 36af4d4aeccb 05:23:13 Step 23/23 : LABEL version=0.0.0 05:23:13 ---> Running in 17f07d4fe994 05:23:13 Removing intermediate container 17f07d4fe994 05:23:13 ---> 4c979b918a28 05:23:13 [Warning] One or more build-args [ARCH] were not consumed 05:23:13 Successfully built 4c979b918a28 05:23:13 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 05:23:13 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 05:23:13 05:23:13 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] sh 05:23:14 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 05:23:14 latest: Pulling from edgex-lftools-log-publisher 05:23:14 5eb5b503b376: Pulling fs layer 05:23:14 5c69ac0246d0: Pulling fs layer 05:23:14 ec43610c2a17: Pulling fs layer 05:23:14 3a2ae6a8a46f: Pulling fs layer 05:23:14 33b1e0a273af: Pulling fs layer 05:23:14 5d3b04190fa2: Pulling fs layer 05:23:14 2f39f015ded8: Pulling fs layer 05:23:14 3a2ae6a8a46f: Waiting 05:23:14 5d3b04190fa2: Waiting 05:23:14 33b1e0a273af: Waiting 05:23:14 5c69ac0246d0: Download complete 05:23:14 3a2ae6a8a46f: Verifying Checksum 05:23:14 3a2ae6a8a46f: Download complete 05:23:14 33b1e0a273af: Verifying Checksum 05:23:14 33b1e0a273af: Download complete 05:23:14 5d3b04190fa2: Download complete 05:23:14 ec43610c2a17: Verifying Checksum 05:23:14 ec43610c2a17: Download complete 05:23:14 5eb5b503b376: Verifying Checksum 05:23:14 5eb5b503b376: Download complete 05:23:15 2f39f015ded8: Verifying Checksum 05:23:15 2f39f015ded8: Download complete 05:23:16 5eb5b503b376: Pull complete 05:23:16 5c69ac0246d0: Pull complete 05:23:16 ec43610c2a17: Pull complete 05:23:16 3a2ae6a8a46f: Pull complete 05:23:16 33b1e0a273af: Pull complete 05:23:16 5d3b04190fa2: Pull complete 05:23:22 2f39f015ded8: Pull complete 05:23:22 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 05:23:22 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 05:23:22 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] withDockerContainer 05:23:22 prd-ubuntu20.04-docker-8c-8g-63045 does not seem to be running inside a container 05:23:22 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/xfoundry_device-modbus-go_PR-346 -v /w/workspace/xfoundry_device-modbus-go_PR-346:/w/workspace/xfoundry_device-modbus-go_PR-346:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-346@tmp:/w/workspace/xfoundry_device-modbus-go_PR-346@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 05:23:24 $ docker top 06793736486d11bf6d92c258856f692f98c03b446b7bd304b33e12d1373fedbd -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 05:23:24 ---> job-cost.sh 05:23:24 lf-activate-venv: SKIPPING 05:23:24 INFO: No Stack... 05:23:24 INFO: Retrieving Pricing Info for: v3-standard-8 05:23:25 INFO: Archiving Costs [Pipeline] sh 05:23:25 + cat /w/workspace/xfoundry_device-modbus-go_PR-346/archives/cost.csv 05:23:25 + cut -d, -f6 [Pipeline] lock 05:23:25 Trying to acquire lock on [jenkins-edgexfoundry-device-modbus-go-PR-346-1-stack-cost] 05:23:25 Resource [jenkins-edgexfoundry-device-modbus-go-PR-346-1-stack-cost] did not exist. Created. 05:23:25 Lock acquired on [jenkins-edgexfoundry-device-modbus-go-PR-346-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 05:23:26 + echo total: 0.2199999988079071 [Pipeline] stash 05:23:26 Stashed 1 file(s) [Pipeline] } 05:23:26 Lock released on resource [jenkins-edgexfoundry-device-modbus-go-PR-346-1-stack-cost] [Pipeline] // lock [Pipeline] } 05:23:26 $ docker stop --time=1 06793736486d11bf6d92c258856f692f98c03b446b7bd304b33e12d1373fedbd 05:23:27 $ docker rm -f 06793736486d11bf6d92c258856f692f98c03b446b7bd304b33e12d1373fedbd [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 05:24:47 Running on prd-ubuntu20.04-docker-arm64-4c-16g-63047 in /w/workspace/xfoundry_device-modbus-go_PR-346 [Pipeline] { [Pipeline] ws 05:24:47 Running in /w/workspace/device-modbus-go/1 [Pipeline] { [Pipeline] checkout 05:24:48 Selected Git installation does not exist. Using Default 05:24:48 The recommended git tool is: NONE 05:24:55 using credential edgex-jenkins-ssh 05:24:55 Cloning the remote Git repository 05:24:55 Cloning repository git@github.com:edgexfoundry/device-modbus-go.git 05:24:55 > git init /w/workspace/device-modbus-go/1 # timeout=10 05:24:55 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 05:24:55 > git --version # timeout=10 05:24:55 > git --version # 'git version 2.25.1' 05:24:55 using GIT_SSH to set credentials SSH Credentials for GitHub 05:24:55 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 05:24:57 Merging remotes/origin/main commit 74a050b5b4bd28a6f3c6004725ec0b1be1ff5180 into PR head commit 1705a6d7d55ea2e414d2e8a0eb8a8eb1c75fa499 05:24:58 Merge succeeded, producing 1705a6d7d55ea2e414d2e8a0eb8a8eb1c75fa499 05:24:58 Checking out Revision 1705a6d7d55ea2e414d2e8a0eb8a8eb1c75fa499 (PR-346) 05:24:57 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 05:24:57 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 05:24:57 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 05:24:57 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 05:24:57 using GIT_SSH to set credentials SSH Credentials for GitHub 05:24:57 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/pull/346/head:refs/remotes/origin/PR-346 +refs/heads/main:refs/remotes/origin/main # timeout=10 05:24:57 > git config core.sparsecheckout # timeout=10 05:24:57 > git checkout -f 1705a6d7d55ea2e414d2e8a0eb8a8eb1c75fa499 # timeout=10 05:24:58 > git remote # timeout=10 05:24:58 > git config --get remote.origin.url # timeout=10 05:24:58 using GIT_SSH to set credentials SSH Credentials for GitHub 05:24:58 > git merge 74a050b5b4bd28a6f3c6004725ec0b1be1ff5180 # timeout=10 05:24:58 > git rev-parse HEAD^{commit} # timeout=10 05:24:58 > git config core.sparsecheckout # timeout=10 05:24:58 > git checkout -f 1705a6d7d55ea2e414d2e8a0eb8a8eb1c75fa499 # timeout=10 05:25:02 Commit message: "build: Update to released Go Mods" 05:25:02 > git --version # timeout=10 05:25:02 > git --version # 'git version 2.25.1' 05:25:02 fatal: bad object 95c76d14630896f3c9cf825147e1b1e2bad20cbb [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 05:25:03 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 05:25:03 % Total % Received % Xferd Average Speed Time Time Time Current 05:25:03 Dload Upload Total Spent Left Speed 05:25:03 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 11843 100 11843 0 0 177k 0 --:--:-- --:--:-- --:--:-- 177k [Pipeline] sh 05:25:04 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 05:25:04 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 05:25:04 + sudo tee /etc/docker/daemon.new 05:25:04 { 05:25:04 "registry-mirrors": [ 05:25:04 "https://nexus3.edgexfoundry.org:10001" 05:25:04 ], 05:25:04 "bip": "10.250.0.254/24", 05:25:04 "hosts": [ 05:25:04 "tcp://0.0.0.0:5555", 05:25:04 "unix:///var/run/docker.sock" 05:25:04 ], 05:25:04 "mtu": 1458, 05:25:04 "selinux-enabled": true, 05:25:04 "seccomp-profile": "/etc/docker/seccomp.json" 05:25:04 } [Pipeline] sh 05:25:05 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 05:25:05 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 05:25:23 provisioning config files... 05:25:23 copy managed file [device-modbus-go-settings] to file:/w/workspace/device-modbus-go/1@tmp/config4844457156013204864tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 05:25:24 ---> docker-login.sh 05:25:24 nexus3.edgexfoundry.org:10001 05:25:25 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:25:25 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:25:25 Configure a credential helper to remove this warning. See 05:25:25 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:25:25 05:25:25 Login Succeeded 05:25:25 nexus3.edgexfoundry.org:10002 05:25:26 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:25:26 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:25:26 Configure a credential helper to remove this warning. See 05:25:26 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:25:26 05:25:26 Login Succeeded 05:25:26 nexus3.edgexfoundry.org:10003 05:25:26 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:25:26 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:25:26 Configure a credential helper to remove this warning. See 05:25:26 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:25:26 05:25:26 Login Succeeded 05:25:26 nexus3.edgexfoundry.org:10004 05:25:26 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:25:27 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:25:27 Configure a credential helper to remove this warning. See 05:25:27 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:25:27 05:25:27 Login Succeeded 05:25:27 docker.io 05:25:27 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:25:28 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:25:28 Configure a credential helper to remove this warning. See 05:25:28 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:25:28 05:25:28 Login Succeeded 05:25:28 ---> docker-login.sh ends [Pipeline] } 05:25:28 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 05:25:28 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 05:25:28 ========================================================= 05:25:28 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine] 05:25:28 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 05:25:29 + 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 . 05:25:29 Sending build context to Docker daemon 3.097MB 05:25:29 Step 1/10 : ARG BASE=golang:1.17-alpine3.15 05:25:29 Step 2/10 : FROM ${BASE} AS builder 05:25:29 1.17-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 05:25:29 9b3977197b4f: Pulling fs layer 05:25:29 1a89e8eeedd5: Pulling fs layer 05:25:29 94645a83ff95: Pulling fs layer 05:25:29 3f3a8bcf1eab: Pulling fs layer 05:25:29 0c92f367c5e7: Pulling fs layer 05:25:29 3096ccb668a1: Pulling fs layer 05:25:29 e8cf19c19ddd: Pulling fs layer 05:25:29 a4caa8a26152: Pulling fs layer 05:25:29 3f3a8bcf1eab: Waiting 05:25:29 0c92f367c5e7: Waiting 05:25:29 3096ccb668a1: Waiting 05:25:29 e8cf19c19ddd: Waiting 05:25:29 a4caa8a26152: Waiting 05:25:29 94645a83ff95: Verifying Checksum 05:25:29 94645a83ff95: Download complete 05:25:29 1a89e8eeedd5: Verifying Checksum 05:25:29 1a89e8eeedd5: Download complete 05:25:29 0c92f367c5e7: Download complete 05:25:29 3096ccb668a1: Verifying Checksum 05:25:29 3096ccb668a1: Download complete 05:25:29 9b3977197b4f: Download complete 05:25:29 e8cf19c19ddd: Verifying Checksum 05:25:29 e8cf19c19ddd: Download complete 05:25:30 9b3977197b4f: Pull complete 05:25:31 1a89e8eeedd5: Pull complete 05:25:31 94645a83ff95: Pull complete 05:25:31 a4caa8a26152: Verifying Checksum 05:25:31 a4caa8a26152: Download complete 05:25:32 3f3a8bcf1eab: Verifying Checksum 05:25:32 3f3a8bcf1eab: Download complete 05:25:45 3f3a8bcf1eab: Pull complete 05:25:45 0c92f367c5e7: Pull complete 05:25:45 3096ccb668a1: Pull complete 05:25:45 e8cf19c19ddd: Pull complete 05:25:52 a4caa8a26152: Pull complete 05:25:52 Digest: sha256:b3ad895ecde34a7521bb8912598475bc58d052e1c2c58d00df7f0fe54a102a46 05:25:52 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine 05:25:52 ---> 725f1c02e7f9 05:25:52 Step 3/10 : ARG MAKE='make build' 05:25:53 ---> Running in 8b86ce283c3a 05:25:53 Removing intermediate container 8b86ce283c3a 05:25:53 ---> abd22bfa4ed9 05:25:53 Step 4/10 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 05:25:53 ---> Running in 330a9823721e 05:25:55 Removing intermediate container 330a9823721e 05:25:55 ---> f55d0ff99bb5 05:25:55 Step 5/10 : RUN apk add --update --no-cache make git openssh gcc libc-dev zeromq-dev libsodium-dev 05:25:55 ---> Running in 7c0f93765289 05:25:57 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 05:25:58 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 05:25:59 (1/8) Installing openssh-keygen (8.8_p1-r1) 05:25:59 (2/8) Installing libedit (20210910.3.1-r0) 05:25:59 (3/8) Installing openssh-client-common (8.8_p1-r1) 05:25:59 (4/8) Installing openssh-client-default (8.8_p1-r1) 05:26:00 (5/8) Installing openssh-sftp-server (8.8_p1-r1) 05:26:00 (6/8) Installing openssh-server-common (8.8_p1-r1) 05:26:00 (7/8) Installing openssh-server (8.8_p1-r1) 05:26:00 (8/8) Installing openssh (8.8_p1-r1) 05:26:00 Executing busybox-1.34.1-r3.trigger 05:26:00 OK: 226 MiB in 60 packages 05:26:01 Removing intermediate container 7c0f93765289 05:26:01 ---> 082cde23c9c5 05:26:01 Step 6/10 : WORKDIR /device-modbus-go 05:26:01 ---> Running in 4a5f3a8cd0da 05:26:01 Removing intermediate container 4a5f3a8cd0da 05:26:01 ---> 46dc7f5bc036 05:26:01 Step 7/10 : COPY go.mod vendor* ./ 05:26:02 ---> 56fd206f98d9 05:26:02 Step 8/10 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 05:26:02 ---> Running in c6d52887e615 05:26:49 Removing intermediate container c6d52887e615 05:26:49 ---> b57f11c1e45d 05:26:49 Step 9/10 : COPY . . 05:26:49 ---> 4fdcd0b83a63 05:26:49 Step 10/10 : RUN ${MAKE} 05:26:49 ---> Running in cf78931a0560 05:26:50 noop 05:26:50 Removing intermediate container cf78931a0560 05:26:50 ---> 8e8830cd9da9 05:26:50 Successfully built 8e8830cd9da9 05:26:50 Successfully tagged ci-base-image-arm64:latest [Pipeline] isUnix [Pipeline] sh 05:26:51 + docker inspect -f . ci-base-image-arm64 05:26:51 . [Pipeline] withDockerContainer 05:26:51 prd-ubuntu20.04-docker-arm64-4c-16g-63047 does not seem to be running inside a container 05:26:51 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-modbus-go/1 -v /w/workspace/device-modbus-go/1:/w/workspace/device-modbus-go/1:rw,z -v /w/workspace/device-modbus-go/1@tmp:/w/workspace/device-modbus-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 05:26:52 $ docker top 7b84f537b535f616b81726198d037e819e1a8dbb592c5a60b0c1aee2696dcc10 -eo pid,comm [Pipeline] { [Pipeline] sh 05:26:53 + go version 05:26:53 go version go1.17.6 linux/arm64 [Pipeline] } 05:26:53 $ docker stop --time=1 7b84f537b535f616b81726198d037e819e1a8dbb592c5a60b0c1aee2696dcc10 05:26:55 $ docker rm -f 7b84f537b535f616b81726198d037e819e1a8dbb592c5a60b0c1aee2696dcc10 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 05:26:56 + docker inspect -f . ci-base-image-arm64 05:26:56 . [Pipeline] withDockerContainer 05:26:56 prd-ubuntu20.04-docker-arm64-4c-16g-63047 does not seem to be running inside a container 05:26:56 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-modbus-go/1 -v /w/workspace/device-modbus-go/1:/w/workspace/device-modbus-go/1:rw,z -v /w/workspace/device-modbus-go/1@tmp:/w/workspace/device-modbus-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 05:26:58 $ docker top 1a467b4c7ee3abedd9c550bff1aed0dcb903b4887d05a2f9e1a577676f42397c -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 05:26:59 + make test 05:26:59 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out 05:27:01 ? github.com/edgexfoundry/device-modbus-go [no test files] 05:28:38 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 05:28:38 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.081s coverage: 46.4% of statements 05:28:38 WARNING: Linting skipped (not on x86_64 or linter not installed) 05:28:38 CGO_ENABLED=1 GO111MODULE=on go vet ./... 05:28:56 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 05:28:56 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 05:28:56 ./bin/test-attribution-txt.sh [Pipeline] echo 05:28:58 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 05:28:58 $ docker stop --time=1 1a467b4c7ee3abedd9c550bff1aed0dcb903b4887d05a2f9e1a577676f42397c 05:28:59 $ docker rm -f 1a467b4c7ee3abedd9c550bff1aed0dcb903b4887d05a2f9e1a577676f42397c [Pipeline] // withDockerContainer [Pipeline] sh 05:29:00 + sudo chown -R jenkins:jenkins . [Pipeline] stash 05:29:00 Warning: overwriting stash ‘coverage-report’ 05:29:01 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 05:29:02 + sudo chown -R jenkins:jenkins . [Pipeline] sh 05:29:02 + ls -al . 05:29:02 total 180 05:29:02 drwxrwxr-x 9 jenkins jenkins 4096 May 11 05:28 . 05:29:02 drwxrwxr-x 4 jenkins jenkins 4096 May 11 05:24 .. 05:29:02 -rw-rw-r-- 1 jenkins jenkins 140 May 11 05:24 .dockerignore 05:29:02 drwxrwxr-x 8 jenkins jenkins 4096 May 11 05:25 .git 05:29:02 drwxrwxr-x 3 jenkins jenkins 4096 May 11 05:24 .github 05:29:02 -rw-rw-r-- 1 jenkins jenkins 331 May 11 05:24 .gitignore 05:29:02 -rw-rw-r-- 1 jenkins jenkins 41 May 11 05:24 .golangci.yml 05:29:02 -rw-rw-r-- 1 jenkins jenkins 9377 May 11 05:24 Attribution.txt 05:29:02 -rw-rw-r-- 1 jenkins jenkins 10001 May 11 05:24 CHANGELOG.md 05:29:02 -rw-rw-r-- 1 jenkins jenkins 1546 May 11 05:24 Dockerfile 05:29:02 -rw-rw-r-- 1 jenkins jenkins 677 May 11 05:24 GOVERNANCE.md 05:29:02 -rw-rw-r-- 1 jenkins jenkins 680 May 11 05:24 Jenkinsfile 05:29:02 -rw-rw-r-- 1 jenkins jenkins 11340 May 11 05:24 LICENSE 05:29:02 -rw-rw-r-- 1 jenkins jenkins 1905 May 11 05:24 Makefile 05:29:02 -rw-rw-r-- 1 jenkins jenkins 622 May 11 05:24 OWNERS.md 05:29:02 -rw-rw-r-- 1 jenkins jenkins 3397 May 11 05:24 README.md 05:29:02 -rw-rw-r-- 1 jenkins jenkins 5 May 11 05:21 VERSION 05:29:02 drwxrwxr-x 2 jenkins jenkins 4096 May 11 05:24 bin 05:29:02 drwxrwxr-x 3 jenkins jenkins 4096 May 11 05:24 cmd 05:29:02 -rw-r--r-- 1 jenkins jenkins 24065 May 11 05:28 coverage.out 05:29:02 -rw-rw-r-- 1 jenkins jenkins 3353 May 11 05:24 go.mod 05:29:02 -rw-rw-r-- 1 jenkins jenkins 34983 May 11 05:24 go.sum 05:29:02 drwxrwxr-x 3 jenkins jenkins 4096 May 11 05:24 internal 05:29:02 drwxrwxr-x 2 jenkins jenkins 4096 May 11 05:24 simulator 05:29:02 drwxrwxr-x 4 jenkins jenkins 4096 May 11 05:24 snap 05:29:02 -rw-rw-r-- 1 jenkins jenkins 229 May 11 05:24 version.go [Pipeline] isUnix [Pipeline] sh 05:29:02 + 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=1705a6d7d55ea2e414d2e8a0eb8a8eb1c75fa499 --label arch=arm64 --label version=0.0.0 . 05:29:03 Sending build context to Docker daemon 3.122MB 05:29:03 Step 1/23 : ARG BASE=golang:1.17-alpine3.15 05:29:03 Step 2/23 : FROM ${BASE} AS builder 05:29:03 ---> 8e8830cd9da9 05:29:03 Step 3/23 : ARG MAKE='make build' 05:29:03 ---> Running in 3c392f26c227 05:29:03 Removing intermediate container 3c392f26c227 05:29:03 ---> 50344388204a 05:29:03 Step 4/23 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 05:29:03 ---> Running in 54c6ee207b02 05:29:05 Removing intermediate container 54c6ee207b02 05:29:05 ---> f2cccdaed544 05:29:05 Step 5/23 : RUN apk add --update --no-cache make git openssh gcc libc-dev zeromq-dev libsodium-dev 05:29:05 ---> Running in a098bce8c510 05:29:06 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 05:29:07 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 05:29:08 OK: 226 MiB in 60 packages 05:29:09 Removing intermediate container a098bce8c510 05:29:09 ---> a845277bbb85 05:29:09 Step 6/23 : WORKDIR /device-modbus-go 05:29:09 ---> Running in 8cb48bde2ebd 05:29:09 Removing intermediate container 8cb48bde2ebd 05:29:09 ---> 3e6a9c9641e1 05:29:09 Step 7/23 : COPY go.mod vendor* ./ 05:29:10 ---> 969196eb3710 05:29:10 Step 8/23 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 05:29:10 ---> Running in e99c14466c3f 05:29:12 Removing intermediate container e99c14466c3f 05:29:12 ---> 7088adbb0165 05:29:12 Step 9/23 : COPY . . 05:29:13 ---> 880e170fe017 05:29:13 Step 10/23 : RUN ${MAKE} 05:29:13 ---> Running in 6dbe9af8af49 05:29:14 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 05:31:20 Removing intermediate container 6dbe9af8af49 05:31:20 ---> a59f58cae36e 05:31:20 Step 11/23 : FROM alpine:3.14 05:31:20 3.14: Pulling from library/alpine 05:31:20 455c02918c45: Pulling fs layer 05:31:20 455c02918c45: Verifying Checksum 05:31:20 455c02918c45: Download complete 05:31:20 455c02918c45: Pull complete 05:31:20 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 05:31:20 Status: Downloaded newer image for alpine:3.14 05:31:20 ---> ac73e934f311 05:31:20 Step 12/23 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IoTech Ltd' 05:31:20 ---> Running in 094b7fcbd692 05:31:20 Removing intermediate container 094b7fcbd692 05:31:20 ---> a72e6bd1c365 05:31:20 Step 13/23 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 05:31:20 ---> Running in 38297949dfda 05:31:20 Removing intermediate container 38297949dfda 05:31:20 ---> ef5d97c5c568 05:31:20 Step 14/23 : RUN apk add --update --no-cache zeromq dumb-init 05:31:20 ---> Running in d311fdb0753e 05:31:20 fetch https://nl.alpinelinux.org/alpine/v3.14/main/aarch64/APKINDEX.tar.gz 05:31:20 fetch https://nl.alpinelinux.org/alpine/v3.14/community/aarch64/APKINDEX.tar.gz 05:31:21 (1/6) Installing dumb-init (1.2.5-r1) 05:31:21 (2/6) Installing libgcc (10.3.1_git20210424-r2) 05:31:21 (3/6) Installing libsodium (1.0.18-r0) 05:31:21 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 05:31:22 (5/6) Installing libzmq (4.3.4-r0) 05:31:22 (6/6) Installing zeromq (4.3.4-r0) 05:31:22 Executing busybox-1.33.1-r7.trigger 05:31:22 OK: 8 MiB in 20 packages 05:31:23 Removing intermediate container d311fdb0753e 05:31:23 ---> d40fee31f45a 05:31:23 Step 15/23 : COPY --from=builder /device-modbus-go/cmd / 05:31:24 ---> 74246c8442c5 05:31:24 Step 16/23 : COPY --from=builder /device-modbus-go/LICENSE / 05:31:25 ---> 6f2131a68ab7 05:31:25 Step 17/23 : COPY --from=builder /device-modbus-go/Attribution.txt / 05:31:25 ---> 19f295841a39 05:31:25 Step 18/23 : EXPOSE 59901 05:31:25 ---> Running in 2e3ae6d13355 05:31:26 Removing intermediate container 2e3ae6d13355 05:31:26 ---> cc98239e36eb 05:31:26 Step 19/23 : ENTRYPOINT ["/device-modbus"] 05:31:26 ---> Running in 919fa654fe91 05:31:26 Removing intermediate container 919fa654fe91 05:31:26 ---> 68e5e7c710c9 05:31:26 Step 20/23 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry", "--confdir=/res"] 05:31:26 ---> Running in 86349b5787f8 05:31:26 Removing intermediate container 86349b5787f8 05:31:26 ---> 7b25b4ad55f8 05:31:26 Step 21/23 : LABEL arch=arm64 05:31:26 ---> Running in f91d650cd8ca 05:31:27 Removing intermediate container f91d650cd8ca 05:31:27 ---> 546f6f887f5a 05:31:27 Step 22/23 : LABEL git_sha=1705a6d7d55ea2e414d2e8a0eb8a8eb1c75fa499 05:31:27 ---> Running in d09212eda8b5 05:31:27 Removing intermediate container d09212eda8b5 05:31:27 ---> 26feab442998 05:31:27 Step 23/23 : LABEL version=0.0.0 05:31:27 ---> Running in a5a1878a597f 05:31:27 Removing intermediate container a5a1878a597f 05:31:27 ---> e137a189ed01 05:31:27 [Warning] One or more build-args [ARCH] were not consumed 05:31:27 Successfully built e137a189ed01 05:31:27 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 05:31:28 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 05:31:28 05:31:28 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] sh 05:31:29 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 05:31:29 arm64: Pulling from edgex-lftools-log-publisher 05:31:29 8998bd30e6a1: Pulling fs layer 05:31:29 04944245beec: Pulling fs layer 05:31:29 699f458cf7ca: Pulling fs layer 05:31:29 765212b225bb: Pulling fs layer 05:31:29 f23df028b6ca: Pulling fs layer 05:31:29 d65c8cfc05b1: Pulling fs layer 05:31:29 765212b225bb: Waiting 05:31:29 f23df028b6ca: Waiting 05:31:29 2437ff75d9bd: Pulling fs layer 05:31:29 2437ff75d9bd: Waiting 05:31:29 04944245beec: Verifying Checksum 05:31:29 04944245beec: Download complete 05:31:29 765212b225bb: Download complete 05:31:29 f23df028b6ca: Verifying Checksum 05:31:29 f23df028b6ca: Download complete 05:31:29 d65c8cfc05b1: Download complete 05:31:29 699f458cf7ca: Verifying Checksum 05:31:29 699f458cf7ca: Download complete 05:31:29 8998bd30e6a1: Verifying Checksum 05:31:29 8998bd30e6a1: Download complete 05:31:31 2437ff75d9bd: Verifying Checksum 05:31:31 2437ff75d9bd: Download complete 05:31:34 8998bd30e6a1: Pull complete 05:31:34 04944245beec: Pull complete 05:31:36 699f458cf7ca: Pull complete 05:31:36 765212b225bb: Pull complete 05:31:37 f23df028b6ca: Pull complete 05:31:37 d65c8cfc05b1: Pull complete 05:31:52 2437ff75d9bd: Pull complete 05:31:52 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 05:31:52 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 05:31:52 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] withDockerContainer 05:31:52 prd-ubuntu20.04-docker-arm64-4c-16g-63047 does not seem to be running inside a container 05:31:52 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/device-modbus-go/1 -v /w/workspace/device-modbus-go/1:/w/workspace/device-modbus-go/1:rw,z -v /w/workspace/device-modbus-go/1@tmp:/w/workspace/device-modbus-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 05:31:55 $ docker top e878d6788f01ee51ca019e8fdb7549f458b0213eb7972b74ecd638b5aea99bac -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 05:31:56 ---> job-cost.sh 05:31:56 lf-activate-venv: SKIPPING 05:31:56 INFO: No Stack... 05:31:57 INFO: Retrieving Pricing Info for: v3-standard-4 05:31:57 INFO: Archiving Costs [Pipeline] sh 05:31:58 + + cutcat -d, /w/workspace/device-modbus-go/1/archives/cost.csv -f6 05:31:58 [Pipeline] lock 05:31:58 Trying to acquire lock on [jenkins-edgexfoundry-device-modbus-go-PR-346-1-stack-cost] 05:31:58 Resource [jenkins-edgexfoundry-device-modbus-go-PR-346-1-stack-cost] did not exist. Created. 05:31:58 Lock acquired on [jenkins-edgexfoundry-device-modbus-go-PR-346-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 05:31:59 /w/workspace/device-modbus-go/1@tmp/durable-b54d30e6/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 05:31:59 + echo total: 0.10999999940395355 [Pipeline] stash 05:31:59 Warning: overwriting stash ‘stack-cost’ 05:32:00 Stashed 1 file(s) [Pipeline] } 05:32:00 Lock released on resource [jenkins-edgexfoundry-device-modbus-go-PR-346-1-stack-cost] [Pipeline] // lock [Pipeline] } 05:32:00 $ docker stop --time=1 e878d6788f01ee51ca019e8fdb7549f458b0213eb7972b74ecd638b5aea99bac 05:32:01 $ docker rm -f e878d6788f01ee51ca019e8fdb7549f458b0213eb7972b74ecd638b5aea99bac [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 05:32:02 provisioning config files... 05:32:02 copy managed file [device-modbus-go-codecov-token] to file:/w/workspace/xfoundry_device-modbus-go_PR-346@tmp/config5168183697824778035tmp [Pipeline] { [Pipeline] sh 05:32:03 + set +x 05:32:03 + curl -s https://codecov.io/bash 05:32:03 + bash -s -- 05:32:03 05:32:03 _____ _ 05:32:03 / ____| | | 05:32:03 | | ___ __| | ___ ___ _____ __ 05:32:03 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 05:32:03 | |___| (_) | (_| | __/ (_| (_) \ V / 05:32:03 \_____\___/ \__,_|\___|\___\___/ \_/ 05:32:03 Bash-1.0.6 05:32:03 05:32:03 05:32:03 ==> git version 2.25.1 found 05:32:03 ==> 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 05:32:03 Release-Date: 2020-01-08 05:32:03 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 05:32:03 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 05:32:03 ==> Jenkins CI detected. 05:32:03 current dir:  /w/workspace/xfoundry_device-modbus-go_PR-346 05:32:03 project root: . 05:32:03 --> token set from env 05:32:03 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 05:32:03 ==> Running gcov in . (disable via -X gcov) 05:32:03 ==> Python coveragepy not found 05:32:03 ==> Searching for coverage reports in: 05:32:03 + . 05:32:03 -> Found 1 reports 05:32:03 ==> Detecting git/mercurial file structure 05:32:03 ==> Reading reports 05:32:03 + ./coverage.out bytes=24065 05:32:03 ==> Appending adjustments 05:32:03 https://docs.codecov.io/docs/fixing-reports 05:32:03 + Found adjustments 05:32:03 ==> Gzipping contents 05:32:03 4.0K /tmp/codecov.Rse2ba.gz 05:32:03 ==> Uploading reports 05:32:03 url: https://codecov.io 05:32:03 query: branch=PR-346&commit=1705a6d7d55ea2e414d2e8a0eb8a8eb1c75fa499&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-modbus-go%2Fjob%2FPR-346%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-modbus-go&service=jenkins&flags=&pr=346&job=&cmd_args= 05:32:03 -> Pinging Codecov 05:32:03 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=3a8d40b1-de00-4649-bfd4-bdc8ed99ae89&branch=PR-346&commit=1705a6d7d55ea2e414d2e8a0eb8a8eb1c75fa499&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-modbus-go%2Fjob%2FPR-346%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-modbus-go&service=jenkins&flags=&pr=346&job=&cmd_args= 05:32:03 -> Uploading to 05:32:03 https://storage.googleapis.com/codecov/v4/raw/2022-05-11/55DBCA73C666E3227836607328DD7E49/1705a6d7d55ea2e414d2e8a0eb8a8eb1c75fa499/8fd26165-ffe7-4efd-a274-7f823be60437.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20220511%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20220511T053203Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=f6289f33af99b3048aff3914da701d8503fe7d4864f2e21a98df7ac80c5f34c2 05:32:03 % Total % Received % Xferd Average Speed Time Time Time Current 05:32:03 Dload Upload Total Spent Left Speed 05:32:03 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 4011 0 0 100 4011 0 19758 --:--:-- --:--:-- --:--:-- 19661 100 4011 0 0 100 4011 0 18742 --:--:-- --:--:-- --:--:-- 18742 05:32:03 -> Reports have been successfully queued for processing at https://codecov.io/github/edgexfoundry/device-modbus-go/commit/1705a6d7d55ea2e414d2e8a0eb8a8eb1c75fa499 [Pipeline] } 05:32:03 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 05:32:05 + [ -d /w/workspace/xfoundry_device-modbus-go_PR-346/archives ] 05:32:05 + ls -al /w/workspace/xfoundry_device-modbus-go_PR-346/archives 05:32:05 total 16 05:32:05 drwxr-xr-x 3 root root 4096 May 11 05:23 . 05:32:05 drwxrwxr-x 11 jenkins jenkins 4096 May 11 05:23 .. 05:32:05 drwxr-xr-x 2 root root 4096 May 11 05:23 cost 05:32:05 -rw-r--r-- 1 root root 87 May 11 05:23 cost.csv 05:32:05 + sudo chown -R jenkins:jenkins /w/workspace/xfoundry_device-modbus-go_PR-346/archives 05:32:05 + ls -al /w/workspace/xfoundry_device-modbus-go_PR-346/archives 05:32:05 total 16 05:32:05 drwxr-xr-x 3 jenkins jenkins 4096 May 11 05:23 . 05:32:05 drwxrwxr-x 11 jenkins jenkins 4096 May 11 05:23 .. 05:32:05 drwxr-xr-x 2 jenkins jenkins 4096 May 11 05:23 cost 05:32:05 -rw-r--r-- 1 jenkins jenkins 87 May 11 05:23 cost.csv [Pipeline] libraryResource [Pipeline] sh 05:32:05 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 05:32:06 ---> package-listing.sh 05:32:06 ++ facter osfamily 05:32:06 ++ tr '[:upper:]' '[:lower:]' 05:32:07 + OS_FAMILY=debian 05:32:07 + workspace=/w/workspace/xfoundry_device-modbus-go_PR-346 05:32:07 + START_PACKAGES=/tmp/packages_start.txt 05:32:07 + END_PACKAGES=/tmp/packages_end.txt 05:32:07 + DIFF_PACKAGES=/tmp/packages_diff.txt 05:32:07 + PACKAGES=/tmp/packages_start.txt 05:32:07 + '[' /w/workspace/xfoundry_device-modbus-go_PR-346 ']' 05:32:07 + PACKAGES=/tmp/packages_end.txt 05:32:07 + case "${OS_FAMILY}" in 05:32:07 + dpkg -l 05:32:07 + grep '^ii' 05:32:07 + '[' -f /tmp/packages_start.txt ']' 05:32:07 + '[' -f /tmp/packages_end.txt ']' 05:32:07 + diff /tmp/packages_start.txt /tmp/packages_end.txt 05:32:07 + '[' /w/workspace/xfoundry_device-modbus-go_PR-346 ']' 05:32:07 + mkdir -p /w/workspace/xfoundry_device-modbus-go_PR-346/archives/ 05:32:07 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/xfoundry_device-modbus-go_PR-346/archives/ [Pipeline] echo 05:32:07 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-346/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 05:32:07 + facter operatingsystem [Pipeline] isUnix [Pipeline] sh 05:32:07 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 05:32:07 . [Pipeline] withDockerContainer 05:32:08 prd-ubuntu20.04-docker-8c-8g-63045 does not seem to be running inside a container 05:32:08 $ 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-346/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-346 -v /w/workspace/xfoundry_device-modbus-go_PR-346:/w/workspace/xfoundry_device-modbus-go_PR-346:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-346@tmp:/w/workspace/xfoundry_device-modbus-go_PR-346@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 05:32:08 $ docker top fbeb75c74aa065eebcf1d624c134d1fa4a8ee6db3c053474286d5a4dfa8b6733 -eo pid,comm [Pipeline] { [Pipeline] sh 05:32:08 + touch /tmp/pre-build-complete [Pipeline] sh 05:32:09 + mkdir -p /var/log/sysstat [Pipeline] sh 05:32:09 + ls /var/log/sa-host 05:32:09 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 05:32:09 provisioning config files... 05:32:09 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-346@tmp/config1324800311799537926tmp [Pipeline] { [Pipeline] echo 05:32:09 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 05:32:09 ---> create-netrc.sh [Pipeline] } 05:32:09 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 05:32:10 ---> python-tools-install.sh [Pipeline] echo 05:32:10 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 05:32:10 ---> sudo-logs.sh 05:32:10 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 05:32:10 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 05:32:11 ---> job-cost.sh 05:32:11 lf-activate-venv: SKIPPING 05:32:11 DEBUG: total: 0.2199999988079071 05:32:11 INFO: Retrieving Stack Cost... 05:32:11 INFO: Retrieving Pricing Info for: v3-standard-8 05:32:11 INFO: Archiving Costs [Pipeline] echo 05:32:11 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 05:32:12 ---> logs-deploy.sh 05:32:12 lf-activate-venv: SKIPPING 05:32:12 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-modbus-go/PR-346/1 05:32:12 INFO: archiving workspace using pattern(s): 05:32:13 Archives upload complete. 05:32:13 INFO: archiving logs to Nexus