Pull request #403 updated 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 hahattan for edgexfoundry/device-modbus-go Obtained Jenkinsfile from 26ac16efdcde74a1898f26614f2f68eca481b681+bb2f4bd64c3941eb86d6cd8a035d25878e21dc53 (89bb602ecea55be52c2d44971edd92ce416bb6b0) 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-ssh7444729593498420232.key > git ls-remote -h -t -- git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Found match: refs/tags/stable revision cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 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-ssh13851200241061147907.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 cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 The recommended git tool is: git using credential edgex-jenkins-ssh > git rev-parse --resolve-git-dir /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-403/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82/.git # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Fetching with tags Fetching upstream changes from git@github.com:edgexfoundry/edgex-global-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-403/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh12949108694644878342.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 # timeout=10 Commit message: "Merge pull request #420 from bill-mahoney/levski-update" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 Excluding src/test/ from checkout of git git@github.com:edgexfoundry/edgex-global-pipelines.git so that 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-ssh488991605547196343.key > git ls-remote -h -- git@github.com:lfit/releng-pipelines.git # timeout=10 Found match: refs/heads/master revision 65355178549468b165f8106641c96c3190b1d843 The recommended git tool is: NONE using credential edgex-jenkins-ssh > git rev-parse --resolve-git-dir /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-403/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e/.git # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url git@github.com:lfit/releng-pipelines.git # timeout=10 Fetching without tags Fetching upstream changes from git@github.com:lfit/releng-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-403/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e@tmp/jenkins-gitclient-ssh1179639320088630130.key > git fetch --no-tags --progress -- git@github.com:lfit/releng-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10 Checking out Revision 65355178549468b165f8106641c96c3190b1d843 (master) > git config core.sparsecheckout # timeout=10 > git checkout -f 65355178549468b165f8106641c96c3190b1d843 # timeout=10 Commit message: "Fix: Add S3 URL in href to ship logs" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 Excluding src/test/ from checkout of git git@github.com:lfit/releng-pipelines.git so that 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.18 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 SNYK_DEBUG: false [Pipeline] node Running on prd-ubuntu20.04-docker-8c-8g-4612 in /w/workspace/xfoundry_device-modbus-go_PR-403 [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-403 # 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 bb2f4bd64c3941eb86d6cd8a035d25878e21dc53 into PR head commit 26ac16efdcde74a1898f26614f2f68eca481b681 > 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/403/head:refs/remotes/origin/PR-403 +refs/heads/main:refs/remotes/origin/main # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 26ac16efdcde74a1898f26614f2f68eca481b681 # 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 bb2f4bd64c3941eb86d6cd8a035d25878e21dc53 # timeout=10 Merge succeeded, producing 26ac16efdcde74a1898f26614f2f68eca481b681 Checking out Revision 26ac16efdcde74a1898f26614f2f68eca481b681 (PR-403) > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 26ac16efdcde74a1898f26614f2f68eca481b681 # timeout=10 Commit message: "build(deps): bump device-sdk-go and go-mod dependencies" First time build. Skipping changelog. [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 03:56:30 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 03:56:30 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 03:56:30 ========================================================= 03:56:30 EdgeX Global Pipelines Version Info 03:56:30 ========================================================= [Pipeline] libraryResource [Pipeline] sh > git rev-list --no-walk a3d6c5c3fe6636d0378c96d112b34be3b0f662fd # timeout=10 03:56:31 ------------------- 03:56:31 stable info: 03:56:31 ------------------- 03:56:31 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 03:56:31 Commit SHA: cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 03:56:31 Message: update stable to v1.0.244 03:56:31 ------------------- 03:56:31 experimental info: 03:56:31 ------------------- 03:56:31 Commited By: **** collab-it+edgex@linuxfoundation.org 03:56:31 Commit SHA: cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 03:56:31 Message: update experimental to v1.0.244 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 03:56:32 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-modbus-go-settings [Pipeline] echo 03:56:32 [edgeXSetupEnvironment]: set envvar PROJECT = device-modbus-go [Pipeline] echo 03:56:32 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 03:56:32 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 03:56:32 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 03:56:32 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.18 [Pipeline] echo 03:56:32 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 03:56:32 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 03:56:32 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 03:56:32 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 03:56:32 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 03:56:32 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-modbus [Pipeline] echo 03:56:32 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 03:56:32 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 03:56:32 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 03:56:32 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 03:56:32 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 03:56:32 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 03:56:32 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 03:56:32 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 03:56:32 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 03:56:32 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 03:56:32 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 03:56:32 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 03:56:32 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 03:56:32 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 03:56:32 [edgeXSetupEnvironment]: set envvar SNYK_DEBUG = false [Pipeline] echo 03:56:32 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-403 [Pipeline] echo 03:56:32 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-403 [Pipeline] echo 03:56:32 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-403 [Pipeline] echo 03:56:32 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 26ac16efdcde74a1898f26614f2f68eca481b681 [Pipeline] echo 03:56:32 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 26ac16e [Pipeline] echo 03:56:32 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 03:56:32 provisioning config files... 03:56:32 copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-403@tmp/config1261337547566185150tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 03:56:32 ---> docker-login.sh 03:56:32 nexus3.edgexfoundry.org:10001 03:56:33 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:56:33 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:56:33 Configure a credential helper to remove this warning. See 03:56:33 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:56:33 03:56:33 Login Succeeded 03:56:33 nexus3.edgexfoundry.org:10002 03:56:33 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:56:33 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:56:33 Configure a credential helper to remove this warning. See 03:56:33 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:56:33 03:56:33 Login Succeeded 03:56:33 nexus3.edgexfoundry.org:10003 03:56:33 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:56:33 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:56:33 Configure a credential helper to remove this warning. See 03:56:33 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:56:33 03:56:33 Login Succeeded 03:56:33 nexus3.edgexfoundry.org:10004 03:56:33 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:56:33 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:56:33 Configure a credential helper to remove this warning. See 03:56:33 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:56:33 03:56:33 Login Succeeded 03:56:33 docker.io 03:56:33 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:56:33 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:56:33 Configure a credential helper to remove this warning. See 03:56:33 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:56:33 03:56:33 Login Succeeded 03:56:33 ---> docker-login.sh ends [Pipeline] } 03:56:33 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 03:56:34 + git rev-list -1 --merges 26ac16efdcde74a1898f26614f2f68eca481b681~1..26ac16efdcde74a1898f26614f2f68eca481b681 [Pipeline] echo 03:56:34 -----------> git rev-list -1 --merges 26ac16efdcde74a1898f26614f2f68eca481b681~1..26ac16efdcde74a1898f26614f2f68eca481b681 26ac16efdcde74a1898f26614f2f68eca481b681 [false] [Pipeline] sh 03:56:34 + git log --format=format:%s -1 26ac16efdcde74a1898f26614f2f68eca481b681 [Pipeline] echo 03:56:34 ========================================================= 03:56:34 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 03:56:34 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 03:56:34 + git log --format=format:%s -1 26ac16efdcde74a1898f26614f2f68eca481b681 [Pipeline] echo 03:56:34 [semverPrep] GIT_COMMIT: 26ac16efdcde74a1898f26614f2f68eca481b681, Commit Message: build(deps): bump device-sdk-go and go-mod dependencies [Pipeline] echo 03:56:35 [semverPrep] This is not a build commit. [Pipeline] sh 03:56:35 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 03:56:35 + grep -v github /etc/ssh/ssh_known_hosts 03:56:35 + [ -e /tmp/ssh_known_hosts ] 03:56:35 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 03:56:35 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 03:56:35 + sudo tee -a /etc/ssh/ssh_known_hosts 03:56:35 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 03:56:35 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 03:56:35 03:56:35 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 03:56:36 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 03:56:36 0.1.4: Pulling from edgex-devops/py-git-semver 03:56:36 b85a868b505f: Pulling fs layer 03:56:36 e2be974225ed: Pulling fs layer 03:56:36 339a4e72a1f5: Pulling fs layer 03:56:36 988bab9f4d93: Pulling fs layer 03:56:36 1469e6f7b9e6: Pulling fs layer 03:56:36 eaf3925da568: Pulling fs layer 03:56:36 bab4dde63d76: Pulling fs layer 03:56:36 bde34c3a00c8: Pulling fs layer 03:56:36 b352a97aabf1: Pulling fs layer 03:56:36 4872d77fe225: Pulling fs layer 03:56:36 5851b861e8e6: Pulling fs layer 03:56:36 eaf3925da568: Waiting 03:56:36 bab4dde63d76: Waiting 03:56:36 bde34c3a00c8: Waiting 03:56:36 988bab9f4d93: Waiting 03:56:36 1469e6f7b9e6: Waiting 03:56:36 b352a97aabf1: Waiting 03:56:36 5851b861e8e6: Waiting 03:56:36 e2be974225ed: Verifying Checksum 03:56:36 e2be974225ed: Download complete 03:56:36 988bab9f4d93: Download complete 03:56:36 339a4e72a1f5: Verifying Checksum 03:56:36 339a4e72a1f5: Download complete 03:56:36 1469e6f7b9e6: Verifying Checksum 03:56:36 1469e6f7b9e6: Download complete 03:56:36 eaf3925da568: Verifying Checksum 03:56:36 eaf3925da568: Download complete 03:56:36 bde34c3a00c8: Verifying Checksum 03:56:36 bde34c3a00c8: Download complete 03:56:36 b352a97aabf1: Verifying Checksum 03:56:36 b352a97aabf1: Download complete 03:56:36 4872d77fe225: Verifying Checksum 03:56:36 4872d77fe225: Download complete 03:56:36 5851b861e8e6: Download complete 03:56:36 b85a868b505f: Verifying Checksum 03:56:36 b85a868b505f: Download complete 03:56:36 bab4dde63d76: Verifying Checksum 03:56:36 bab4dde63d76: Download complete 03:56:37 b85a868b505f: Pull complete 03:56:37 e2be974225ed: Pull complete 03:56:38 339a4e72a1f5: Pull complete 03:56:38 988bab9f4d93: Pull complete 03:56:38 1469e6f7b9e6: Pull complete 03:56:38 eaf3925da568: Pull complete 03:56:39 bab4dde63d76: Pull complete 03:56:40 bde34c3a00c8: Pull complete 03:56:40 b352a97aabf1: Pull complete 03:56:40 4872d77fe225: Pull complete 03:56:40 5851b861e8e6: Pull complete 03:56:40 Digest: sha256:59a28aa3b44c0bc56b9c3d2e9ecabe42e63693d939cc6e425eb8786f29f663d8 03:56:40 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 03:56:40 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 03:56:40 prd-ubuntu20.04-docker-8c-8g-4612 does not seem to be running inside a container 03:56:40 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/xfoundry_device-modbus-go_PR-403 -v /w/workspace/xfoundry_device-modbus-go_PR-403:/w/workspace/xfoundry_device-modbus-go_PR-403:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-403@tmp:/w/workspace/xfoundry_device-modbus-go_PR-403@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 cat 03:56:41 $ docker top 3f17a751ee87b1089b6215d3e245a53c1c45471f32777231b68b7088f0ae4464 -eo pid,comm [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 03:56:42 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 03:56:42 [ssh-agent] Looking for ssh-agent implementation... 03:56:42 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 03:56:42 $ docker exec 3f17a751ee87b1089b6215d3e245a53c1c45471f32777231b68b7088f0ae4464 ssh-agent 03:56:42 SSH_AUTH_SOCK=/tmp/ssh-JOe098rjlaDW/agent.32 03:56:42 SSH_AGENT_PID=38 03:56:42 Running ssh-add (command line suppressed) 03:56:42 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-403@tmp/private_key_13106507722229891007.key (/w/workspace/xfoundry_device-modbus-go_PR-403@tmp/private_key_13106507722229891007.key) 03:56:42 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 03:56:42 + git tag --points-at HEAD [Pipeline] } 03:56:42 $ docker exec --env ******** --env ******** 3f17a751ee87b1089b6215d3e245a53c1c45471f32777231b68b7088f0ae4464 ssh-agent -k 03:56:42 unset SSH_AUTH_SOCK; 03:56:42 unset SSH_AGENT_PID; 03:56:42 echo Agent pid 38 killed; 03:56:42 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 03:56:42 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 03:56:42 [ssh-agent] Looking for ssh-agent implementation... 03:56:42 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 03:56:42 $ docker exec 3f17a751ee87b1089b6215d3e245a53c1c45471f32777231b68b7088f0ae4464 ssh-agent 03:56:43 SSH_AUTH_SOCK=/tmp/ssh-UOnxdkEDbs3U/agent.70 03:56:43 SSH_AGENT_PID=76 03:56:43 Running ssh-add (command line suppressed) 03:56:43 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-403@tmp/private_key_10909213864747221424.key (/w/workspace/xfoundry_device-modbus-go_PR-403@tmp/private_key_10909213864747221424.key) 03:56:43 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 03:56:43 + git semver init 03:56:43 2023-02-06 03:56:43,594 [run_init] DEBUG init version:0.0.0 force:False 03:56:43 2023-02-06 03:56:43,595 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/xfoundry_device-modbus-go_PR-403/.semver 03:56:43 2023-02-06 03:56:43,596 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-modbus-go.git /w/workspace/xfoundry_device-modbus-go_PR-403/.semver 03:56:43 2023-02-06 03:56:43,596 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-modbus-go.git', '/w/workspace/xfoundry_device-modbus-go_PR-403/.semver'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-403, universal_newlines=False, shell=None, istream=None) 03:56:45 2023-02-06 03:56:44,864 [append_file] DEBUG append to file:/w/workspace/xfoundry_device-modbus-go_PR-403/.git/info/exclude 03:56:45 2023-02-06 03:56:44,864 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/xfoundry_device-modbus-go_PR-403/.semver/PR-403 with force:False 03:56:45 2023-02-06 03:56:44,864 [write_file] DEBUG write to file:/w/workspace/xfoundry_device-modbus-go_PR-403/.semver/PR-403 03:56:45 2023-02-06 03:56:44,868 [execute] INFO git cat-file --batch-check 03:56:45 2023-02-06 03:56:44,869 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-403/.semver, universal_newlines=False, shell=None, istream=) 03:56:45 2023-02-06 03:56:44,875 [execute] INFO git cat-file --batch 03:56:45 2023-02-06 03:56:44,875 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-403/.semver, universal_newlines=False, shell=None, istream=) 03:56:45 2023-02-06 03:56:44,880 [read_version] DEBUG read version from /w/workspace/xfoundry_device-modbus-go_PR-403/.semver/PR-403 03:56:45 0.0.0 [Pipeline] } 03:56:45 $ docker exec --env ******** --env ******** 3f17a751ee87b1089b6215d3e245a53c1c45471f32777231b68b7088f0ae4464 ssh-agent -k 03:56:45 unset SSH_AUTH_SOCK; 03:56:45 unset SSH_AGENT_PID; 03:56:45 echo Agent pid 76 killed; 03:56:45 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 03:56:45 + git semver [Pipeline] } 03:56:45 $ docker stop --time=1 3f17a751ee87b1089b6215d3e245a53c1c45471f32777231b68b7088f0ae4464 03:56:47 $ docker rm -f --volumes 3f17a751ee87b1089b6215d3e245a53c1c45471f32777231b68b7088f0ae4464 [Pipeline] // withDockerContainer [Pipeline] sh 03:56:47 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 03:56:47 Stashed 1 file(s) [Pipeline] echo 03:56:47 [edgeXSemver]: initialized semver on version 0.0.0 [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] parallel [Pipeline] { (Branch: amd64) [Pipeline] { (Branch: arm64) [Pipeline] stage [Pipeline] { (amd64) [Pipeline] stage [Pipeline] { (arm64) [Pipeline] withEnv [Pipeline] { [Pipeline] node [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 03:56:47 provisioning config files... 03:56:47 copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-403@tmp/config14664251789488658393tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 03:56:48 ---> docker-login.sh 03:56:48 nexus3.edgexfoundry.org:10001 03:56:48 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:56:48 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:56:48 Configure a credential helper to remove this warning. See 03:56:48 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:56:48 03:56:48 Login Succeeded 03:56:48 nexus3.edgexfoundry.org:10002 03:56:48 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:56:48 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:56:48 Configure a credential helper to remove this warning. See 03:56:48 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:56:48 03:56:48 Login Succeeded 03:56:48 nexus3.edgexfoundry.org:10003 03:56:48 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:56:48 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:56:48 Configure a credential helper to remove this warning. See 03:56:48 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:56:48 03:56:48 Login Succeeded 03:56:48 nexus3.edgexfoundry.org:10004 03:56:48 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:56:48 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:56:48 Configure a credential helper to remove this warning. See 03:56:48 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:56:48 03:56:48 Login Succeeded 03:56:48 docker.io 03:56:48 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:56:48 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:56:48 Configure a credential helper to remove this warning. See 03:56:48 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:56:48 03:56:48 Login Succeeded 03:56:48 ---> docker-login.sh ends [Pipeline] } 03:56:48 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 03:56:48 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 03:56:48 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 03:56:48 ========================================================= 03:56:48 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.18-alpine] 03:56:48 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 03:56:48 + docker build -t ci-base-image-x86_64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.18-alpine --build-arg MAKE=echo noop --target=builder . 03:56:48 Sending build context to Docker daemon 6.369MB 03:56:48 Step 1/10 : ARG BASE=golang:1.18-alpine3.16 03:56:48 Step 2/10 : FROM ${BASE} AS builder 03:56:48 1.18-alpine: Pulling from edgex-devops/edgex-golang-base 03:56:48 213ec9aee27d: Pulling fs layer 03:56:48 4583459ba037: Pulling fs layer 03:56:48 93c1e223e6f2: Pulling fs layer 03:56:48 53926ce57604: Pulling fs layer 03:56:48 21b2b0c7a3f4: Pulling fs layer 03:56:48 22ff95d597cd: Pulling fs layer 03:56:48 12d6caf4c0d1: Pulling fs layer 03:56:48 96b7cbca73a9: Pulling fs layer 03:56:48 a7acece74701: Pulling fs layer 03:56:48 53926ce57604: Waiting 03:56:48 21b2b0c7a3f4: Waiting 03:56:48 22ff95d597cd: Waiting 03:56:48 12d6caf4c0d1: Waiting 03:56:48 a7acece74701: Waiting 03:56:48 96b7cbca73a9: Waiting 03:56:48 93c1e223e6f2: Download complete 03:56:48 4583459ba037: Verifying Checksum 03:56:48 4583459ba037: Download complete 03:56:49 21b2b0c7a3f4: Download complete 03:56:49 213ec9aee27d: Verifying Checksum 03:56:49 213ec9aee27d: Download complete 03:56:49 12d6caf4c0d1: Download complete 03:56:49 213ec9aee27d: Pull complete 03:56:49 4583459ba037: Pull complete 03:56:49 93c1e223e6f2: Pull complete 03:56:50 53926ce57604: Download complete 03:56:50 a7acece74701: Verifying Checksum 03:56:50 a7acece74701: Download complete 03:56:51 96b7cbca73a9: Verifying Checksum 03:56:51 96b7cbca73a9: Download complete 03:56:54 53926ce57604: Pull complete 03:56:54 21b2b0c7a3f4: Pull complete 03:56:54 22ff95d597cd: Pull complete 03:56:54 12d6caf4c0d1: Pull complete 03:56:56 96b7cbca73a9: Pull complete 03:56:56 a7acece74701: Pull complete 03:56:56 Digest: sha256:f6a9ef70c52da88a2ff63a0c6767b24654f9f5185d1d85ca6cc3004fb48f6c2d 03:56:56 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.18-alpine 03:56:56 ---> db6d94c90886 03:56:56 Step 3/10 : ARG ADD_BUILD_TAGS="" 03:56:59 ---> Running in 19ad3db30ecd 03:56:59 Removing intermediate container 19ad3db30ecd 03:56:59 ---> 85a6702b1786 03:56:59 Step 4/10 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 03:56:59 ---> Running in c9d37366e7ca 03:56:59 Removing intermediate container c9d37366e7ca 03:56:59 ---> 9c51f3764e33 03:56:59 Step 5/10 : RUN apk add --update --no-cache make git openssh 03:56:59 ---> Running in 9e7df73ce55b 03:56:59 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz 03:56:59 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz 03:57:00 (1/8) Installing openssh-keygen (9.0_p1-r2) 03:57:00 (2/8) Installing libedit (20210910.3.1-r0) 03:57:00 (3/8) Installing openssh-client-common (9.0_p1-r2) 03:57:00 (4/8) Installing openssh-client-default (9.0_p1-r2) 03:57:00 (5/8) Installing openssh-sftp-server (9.0_p1-r2) 03:57:00 (6/8) Installing openssh-server-common (9.0_p1-r2) 03:57:00 (7/8) Installing openssh-server (9.0_p1-r2) 03:57:00 (8/8) Installing openssh (9.0_p1-r2) 03:57:00 Executing busybox-1.35.0-r17.trigger 03:57:00 OK: 217 MiB in 59 packages 03:57:00 Removing intermediate container 9e7df73ce55b 03:57:00 ---> ca3828e775d7 03:57:00 Step 6/10 : WORKDIR /device-modbus-go 03:57:01 ---> Running in 2cbb1b07d2e7 03:57:01 Removing intermediate container 2cbb1b07d2e7 03:57:01 ---> 594f3704f15d 03:57:01 Step 7/10 : COPY go.mod vendor* ./ 03:57:01 ---> 8128fb2da613 03:57:01 Step 8/10 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 03:57:01 ---> Running in 1b0a1f9d4503 03:57:02 Still waiting to schedule task 03:57:02 All nodes of label ‘ubuntu20.04-docker-arm64-4c-16g’ are offline 03:57:27 Removing intermediate container 1b0a1f9d4503 03:57:27 ---> 19bd42e7c998 03:57:27 Step 9/10 : COPY . . 03:57:27 ---> 43d216979241 03:57:27 Step 10/10 : RUN ${MAKE} 03:57:27 ---> Running in 2d7a26c64f6b 03:57:27 noop 03:57:27 Removing intermediate container 2d7a26c64f6b 03:57:27 ---> 35493b136116 03:57:27 Successfully built 35493b136116 03:57:27 Successfully tagged ci-base-image-x86_64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 03:57:27 + docker inspect -f . ci-base-image-x86_64 03:57:27 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 03:57:27 prd-ubuntu20.04-docker-8c-8g-4612 does not seem to be running inside a container 03:57:27 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/xfoundry_device-modbus-go_PR-403 -v /w/workspace/xfoundry_device-modbus-go_PR-403:/w/workspace/xfoundry_device-modbus-go_PR-403:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-403@tmp:/w/workspace/xfoundry_device-modbus-go_PR-403@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 03:57:28 $ docker top c9418ae09030eb95f9fd57a7388210ea1a0e91e0b820b4d0facfd60ad291dd4b -eo pid,comm [Pipeline] { [Pipeline] sh 03:57:28 + go version 03:57:28 go version go1.18.7 linux/amd64 [Pipeline] } 03:57:28 $ docker stop --time=1 c9418ae09030eb95f9fd57a7388210ea1a0e91e0b820b4d0facfd60ad291dd4b 03:57:29 $ docker rm -f --volumes c9418ae09030eb95f9fd57a7388210ea1a0e91e0b820b4d0facfd60ad291dd4b [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 03:57:30 + docker inspect -f . ci-base-image-x86_64 03:57:30 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 03:57:30 prd-ubuntu20.04-docker-8c-8g-4612 does not seem to be running inside a container 03:57:30 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged -v /var/run/docker.sock:/var/run/docker.sock -w /w/workspace/xfoundry_device-modbus-go_PR-403 -v /w/workspace/xfoundry_device-modbus-go_PR-403:/w/workspace/xfoundry_device-modbus-go_PR-403:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-403@tmp:/w/workspace/xfoundry_device-modbus-go_PR-403@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 03:57:30 $ docker top 5c83a155355ea4de7195da6035a191a5e781dd9cdc9d6acb18209d4ec752a227 -eo pid,comm [Pipeline] { [Pipeline] sh 03:57:31 + git config --global --add safe.directory /w/workspace/xfoundry_device-modbus-go_PR-403 [Pipeline] fileExists [Pipeline] sh 03:57:31 + make test 03:57:31 go test ./... -coverprofile=coverage.out 03:57:31 ? github.com/edgexfoundry/device-modbus-go [no test files] 03:57:40 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 03:57:40 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.014s coverage: 47.7% of statements 03:57:46 level=warning msg="[linters context] structcheck is disabled because of go1.18. You can track the evolution of the go1.18 support by following the https://github.com/golangci/golangci-lint/issues/2649." 03:57:46 go vet ./... 03:57:49 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 03:57:49 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 03:57:49 ./bin/test-attribution-txt.sh 03:57:49 An attribution for golang.org/x/mod is missing from Attribution.txt, please add 03:57:49 An attribution for golang.org/x/tools is missing from Attribution.txt, please add [Pipeline] echo 03:57:49 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 03:57:49 $ docker stop --time=1 5c83a155355ea4de7195da6035a191a5e781dd9cdc9d6acb18209d4ec752a227 03:57:50 $ docker rm -f --volumes 5c83a155355ea4de7195da6035a191a5e781dd9cdc9d6acb18209d4ec752a227 [Pipeline] // withDockerContainer [Pipeline] sh 03:57:51 + sudo chown -R jenkins:jenkins . [Pipeline] stash 03:57:51 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 03:57:52 + sudo chown -R jenkins:jenkins . [Pipeline] sh 03:57:52 + ls -al . 03:57:52 total 184 03:57:52 drwxrwxr-x 10 jenkins jenkins 4096 Feb 6 03:57 . 03:57:52 drwxrwxr-x 4 jenkins jenkins 4096 Feb 6 03:56 .. 03:57:52 -rw-rw-r-- 1 jenkins jenkins 140 Feb 6 03:56 .dockerignore 03:57:52 drwxrwxr-x 8 jenkins jenkins 4096 Feb 6 03:57 .git 03:57:52 drwxrwxr-x 3 jenkins jenkins 4096 Feb 6 03:56 .github 03:57:52 -rw-rw-r-- 1 jenkins jenkins 331 Feb 6 03:56 .gitignore 03:57:52 -rw-rw-r-- 1 jenkins jenkins 41 Feb 6 03:56 .golangci.yml 03:57:52 drwxr-xr-x 3 jenkins jenkins 4096 Feb 6 03:56 .semver 03:57:52 -rw-rw-r-- 1 jenkins jenkins 10017 Feb 6 03:56 Attribution.txt 03:57:52 -rw-rw-r-- 1 jenkins jenkins 11576 Feb 6 03:56 CHANGELOG.md 03:57:52 -rw-rw-r-- 1 jenkins jenkins 1365 Feb 6 03:56 Dockerfile 03:57:52 -rw-rw-r-- 1 jenkins jenkins 677 Feb 6 03:56 GOVERNANCE.md 03:57:52 -rw-rw-r-- 1 jenkins jenkins 680 Feb 6 03:56 Jenkinsfile 03:57:52 -rw-rw-r-- 1 jenkins jenkins 11340 Feb 6 03:56 LICENSE 03:57:52 -rw-rw-r-- 1 jenkins jenkins 1670 Feb 6 03:56 Makefile 03:57:52 -rw-rw-r-- 1 jenkins jenkins 622 Feb 6 03:56 OWNERS.md 03:57:52 -rw-rw-r-- 1 jenkins jenkins 4061 Feb 6 03:56 README.md 03:57:52 -rw-rw-r-- 1 jenkins jenkins 5 Feb 6 03:56 VERSION 03:57:52 drwxrwxr-x 2 jenkins jenkins 4096 Feb 6 03:56 bin 03:57:52 drwxrwxr-x 3 jenkins jenkins 4096 Feb 6 03:56 cmd 03:57:52 -rw-r--r-- 1 jenkins jenkins 23241 Feb 6 03:57 coverage.out 03:57:52 -rw-rw-r-- 1 jenkins jenkins 3495 Feb 6 03:56 go.mod 03:57:52 -rw-rw-r-- 1 jenkins jenkins 33619 Feb 6 03:56 go.sum 03:57:52 drwxrwxr-x 3 jenkins jenkins 4096 Feb 6 03:56 internal 03:57:52 drwxrwxr-x 2 jenkins jenkins 4096 Feb 6 03:56 simulator 03:57:52 drwxrwxr-x 4 jenkins jenkins 4096 Feb 6 03:56 snap 03:57:52 -rw-rw-r-- 1 jenkins jenkins 229 Feb 6 03:56 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 03:57:52 + 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=26ac16efdcde74a1898f26614f2f68eca481b681 --label arch=amd64 --label version=0.0.0 . 03:57:52 Sending build context to Docker daemon 6.393MB 03:57:52 Step 1/22 : ARG BASE=golang:1.18-alpine3.16 03:57:52 Step 2/22 : FROM ${BASE} AS builder 03:57:52 ---> 35493b136116 03:57:52 Step 3/22 : ARG ADD_BUILD_TAGS="" 03:57:52 ---> Running in f10fb93da400 03:57:52 Removing intermediate container f10fb93da400 03:57:52 ---> 0627f8729358 03:57:52 Step 4/22 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 03:57:52 ---> Running in b66026d5488c 03:57:52 Removing intermediate container b66026d5488c 03:57:52 ---> de4609c09321 03:57:52 Step 5/22 : RUN apk add --update --no-cache make git openssh 03:57:52 ---> Running in 3ba768c0cad5 03:57:53 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz 03:57:53 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz 03:57:53 OK: 217 MiB in 59 packages 03:57:53 Removing intermediate container 3ba768c0cad5 03:57:53 ---> 7c02a0a94bba 03:57:53 Step 6/22 : WORKDIR /device-modbus-go 03:57:53 ---> Running in 6ac3c840205e 03:57:54 Removing intermediate container 6ac3c840205e 03:57:54 ---> 730287f8dda7 03:57:54 Step 7/22 : COPY go.mod vendor* ./ 03:57:54 ---> 6049fb03d173 03:57:54 Step 8/22 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 03:57:54 ---> Running in d2c858b02059 03:57:55 Removing intermediate container d2c858b02059 03:57:55 ---> eb81b157a9cc 03:57:55 Step 9/22 : COPY . . 03:57:55 ---> b752dba49ac6 03:57:55 Step 10/22 : RUN ${MAKE} 03:57:55 ---> Running in dfd86a47d1c4 03:57:55 CGO_ENABLED=0 go build -tags "" -ldflags "-X github.com/edgexfoundry/device-modbus-go.Version=0.0.0" -trimpath -mod=readonly -o cmd/device-modbus ./cmd 03:58:13 Removing intermediate container dfd86a47d1c4 03:58:13 ---> e257a92b1c76 03:58:13 Step 11/22 : FROM alpine:3.14 03:58:13 3.14: Pulling from library/alpine 03:58:13 c7ed990a2339: Pulling fs layer 03:58:13 c7ed990a2339: Verifying Checksum 03:58:13 c7ed990a2339: Download complete 03:58:13 c7ed990a2339: Pull complete 03:58:13 Digest: sha256:4c869a63e1b7c0722fed1e402a6466610327c3b83bdddb94bd94fb71da7f638a 03:58:13 Status: Downloaded newer image for alpine:3.14 03:58:13 ---> dd53f409bf0b 03:58:13 Step 12/22 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IoTech Ltd' 03:58:13 ---> Running in 578b42c4a290 03:58:13 Removing intermediate container 578b42c4a290 03:58:13 ---> ef396d51a066 03:58:13 Step 13/22 : RUN apk add --update --no-cache dumb-init 03:58:13 ---> Running in 9e659f4ef7b2 03:58:13 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz 03:58:13 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz 03:58:13 (1/1) Installing dumb-init (1.2.5-r1) 03:58:13 Executing busybox-1.33.1-r8.trigger 03:58:13 OK: 6 MiB in 15 packages 03:58:14 Removing intermediate container 9e659f4ef7b2 03:58:14 ---> 8b1311ec014f 03:58:14 Step 14/22 : COPY --from=builder /device-modbus-go/cmd / 03:58:14 ---> c8723c817287 03:58:14 Step 15/22 : COPY --from=builder /device-modbus-go/LICENSE / 03:58:14 ---> 3fbea0389b5c 03:58:14 Step 16/22 : COPY --from=builder /device-modbus-go/Attribution.txt / 03:58:14 ---> 2a068f109e7b 03:58:14 Step 17/22 : EXPOSE 59901 03:58:14 ---> Running in 89ca1e7790c5 03:58:14 Removing intermediate container 89ca1e7790c5 03:58:14 ---> bd66555b03f7 03:58:14 Step 18/22 : ENTRYPOINT ["/device-modbus"] 03:58:14 ---> Running in 2cae307c8981 03:58:15 Removing intermediate container 2cae307c8981 03:58:15 ---> c31cf69c00ec 03:58:15 Step 19/22 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 03:58:15 ---> Running in 06db2a3b09e5 03:58:15 Removing intermediate container 06db2a3b09e5 03:58:15 ---> d685b386a239 03:58:15 Step 20/22 : LABEL arch=amd64 03:58:15 ---> Running in a28ea1990c6e 03:58:15 Removing intermediate container a28ea1990c6e 03:58:15 ---> 54a85808229e 03:58:15 Step 21/22 : LABEL git_sha=26ac16efdcde74a1898f26614f2f68eca481b681 03:58:15 ---> Running in 8ffeedf3bbcb 03:58:15 Removing intermediate container 8ffeedf3bbcb 03:58:15 ---> 8dea66f52a7d 03:58:15 Step 22/22 : LABEL version=0.0.0 03:58:15 ---> Running in 2fd42384a92a 03:58:15 Removing intermediate container 2fd42384a92a 03:58:15 ---> cf135384c2ba 03:58:15 [Warning] One or more build-args [ARCH] were not consumed 03:58:15 Successfully built cf135384c2ba 03:58:15 Successfully tagged device-modbus:latest [Pipeline] } [Pipeline] // withEnv [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] withEnv [Pipeline] { [Pipeline] sh 03:58:15 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 03:58:15 03:58:15 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 03:58:16 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 03:58:16 latest: Pulling from edgex-lftools-log-publisher 03:58:16 5eb5b503b376: Pulling fs layer 03:58:16 5c69ac0246d0: Pulling fs layer 03:58:16 ec43610c2a17: Pulling fs layer 03:58:16 3a2ae6a8a46f: Pulling fs layer 03:58:16 33b1e0a273af: Pulling fs layer 03:58:16 5d3b04190fa2: Pulling fs layer 03:58:16 2f39f015ded8: Pulling fs layer 03:58:16 3a2ae6a8a46f: Waiting 03:58:16 33b1e0a273af: Waiting 03:58:16 5d3b04190fa2: Waiting 03:58:16 2f39f015ded8: Waiting 03:58:16 5c69ac0246d0: Download complete 03:58:16 3a2ae6a8a46f: Verifying Checksum 03:58:16 3a2ae6a8a46f: Download complete 03:58:16 33b1e0a273af: Verifying Checksum 03:58:16 33b1e0a273af: Download complete 03:58:16 5d3b04190fa2: Verifying Checksum 03:58:16 5d3b04190fa2: Download complete 03:58:16 ec43610c2a17: Verifying Checksum 03:58:16 ec43610c2a17: Download complete 03:58:16 5eb5b503b376: Verifying Checksum 03:58:16 5eb5b503b376: Download complete 03:58:17 2f39f015ded8: Verifying Checksum 03:58:17 2f39f015ded8: Download complete 03:58:17 5eb5b503b376: Pull complete 03:58:18 5c69ac0246d0: Pull complete 03:58:19 ec43610c2a17: Pull complete 03:58:19 3a2ae6a8a46f: Pull complete 03:58:19 33b1e0a273af: Pull complete 03:58:19 5d3b04190fa2: Pull complete 03:58:23 2f39f015ded8: Pull complete 03:58:23 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 03:58:23 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 03:58:23 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 03:58:23 prd-ubuntu20.04-docker-8c-8g-4612 does not seem to be running inside a container 03:58:23 $ 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-403 -v /w/workspace/xfoundry_device-modbus-go_PR-403:/w/workspace/xfoundry_device-modbus-go_PR-403:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-403@tmp:/w/workspace/xfoundry_device-modbus-go_PR-403@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 03:58:25 $ docker top 581956f501cbac7800f5157eed27e7b3851b0acf14851581464dfffc7102d40d -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 03:58:25 ---> job-cost.sh 03:58:25 lf-activate-venv: SKIPPING 03:58:25 INFO: No Stack... 03:58:25 INFO: Retrieving Pricing Info for: v3-standard-8 03:58:26 INFO: Archiving Costs [Pipeline] sh 03:58:26 + cat /w/workspace/xfoundry_device-modbus-go_PR-403/archives/cost.csv 03:58:26 + cut -d, -f6 [Pipeline] lock 03:58:26 Trying to acquire lock on [jenkins-edgexfoundry-device-modbus-go-PR-403-2-stack-cost] 03:58:26 Resource [jenkins-edgexfoundry-device-modbus-go-PR-403-2-stack-cost] did not exist. Created. 03:58:26 Lock acquired on [jenkins-edgexfoundry-device-modbus-go-PR-403-2-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 03:58:27 + echo total: 0.2199999988079071 [Pipeline] stash 03:58:27 Stashed 1 file(s) [Pipeline] } 03:58:27 Lock released on resource [jenkins-edgexfoundry-device-modbus-go-PR-403-2-stack-cost] [Pipeline] // lock [Pipeline] } 03:58:27 $ docker stop --time=1 581956f501cbac7800f5157eed27e7b3851b0acf14851581464dfffc7102d40d 03:58:28 $ docker rm -f --volumes 581956f501cbac7800f5157eed27e7b3851b0acf14851581464dfffc7102d40d [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 03:58:36 Running on prd-ubuntu20.04-docker-arm64-4c-16g-4615 in /w/workspace/xfoundry_device-modbus-go_PR-403 [Pipeline] { [Pipeline] ws 03:58:36 Running in /w/workspace/device-modbus-go/2 [Pipeline] { [Pipeline] checkout 03:58:36 Selected Git installation does not exist. Using Default 03:58:36 The recommended git tool is: NONE 03:58:41 using credential edgex-jenkins-ssh 03:58:41 Cloning the remote Git repository 03:58:41 Cloning repository git@github.com:edgexfoundry/device-modbus-go.git 03:58:41 > git init /w/workspace/device-modbus-go/2 # timeout=10 03:58:41 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 03:58:41 > git --version # timeout=10 03:58:41 > git --version # 'git version 2.25.1' 03:58:41 using GIT_SSH to set credentials SSH Credentials for GitHub 03:58:41 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 03:58:43 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 03:58:43 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 03:58:43 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 03:58:43 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 03:58:43 using GIT_SSH to set credentials SSH Credentials for GitHub 03:58:43 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/pull/403/head:refs/remotes/origin/PR-403 +refs/heads/main:refs/remotes/origin/main # timeout=10 03:58:44 Merging remotes/origin/main commit bb2f4bd64c3941eb86d6cd8a035d25878e21dc53 into PR head commit 26ac16efdcde74a1898f26614f2f68eca481b681 03:58:44 Merge succeeded, producing 26ac16efdcde74a1898f26614f2f68eca481b681 03:58:44 Checking out Revision 26ac16efdcde74a1898f26614f2f68eca481b681 (PR-403) 03:58:44 > git config core.sparsecheckout # timeout=10 03:58:44 > git checkout -f 26ac16efdcde74a1898f26614f2f68eca481b681 # timeout=10 03:58:44 > git remote # timeout=10 03:58:44 > git config --get remote.origin.url # timeout=10 03:58:44 using GIT_SSH to set credentials SSH Credentials for GitHub 03:58:44 > git merge bb2f4bd64c3941eb86d6cd8a035d25878e21dc53 # timeout=10 03:58:44 > git rev-parse HEAD^{commit} # timeout=10 03:58:44 > git config core.sparsecheckout # timeout=10 03:58:44 > git checkout -f 26ac16efdcde74a1898f26614f2f68eca481b681 # timeout=10 03:58:48 Commit message: "build(deps): bump device-sdk-go and go-mod dependencies" [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 03:58:49 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 03:58:49 % Total % Received % Xferd Average Speed Time Time Time Current 03:58:49 Dload Upload Total Spent Left Speed 03:58:49 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 12751 100 12751 0 0 77278 0 --:--:-- --:--:-- --:--:-- 77278 [Pipeline] sh 03:58:49 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 03:58:50 + sudo tee /etc/docker/daemon.new 03:58:50 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 03:58:50 { 03:58:50 "registry-mirrors": [ 03:58:50 "https://nexus3.edgexfoundry.org:10001" 03:58:50 ], 03:58:50 "bip": "10.250.0.254/24", 03:58:50 "hosts": [ 03:58:50 "tcp://0.0.0.0:5555", 03:58:50 "unix:///var/run/docker.sock" 03:58:50 ], 03:58:50 "mtu": 1458, 03:58:50 "selinux-enabled": true, 03:58:50 "seccomp-profile": "/etc/docker/seccomp.json" 03:58:50 } [Pipeline] sh 03:58:50 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 03:58:50 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 03:59:08 provisioning config files... 03:59:08 copy managed file [device-modbus-go-settings] to file:/w/workspace/device-modbus-go/2@tmp/config3548123491519316838tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 03:59:09 ---> docker-login.sh 03:59:09 nexus3.edgexfoundry.org:10001 03:59:09 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:59:09 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:59:09 Configure a credential helper to remove this warning. See 03:59:09 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:59:09 03:59:09 Login Succeeded 03:59:09 nexus3.edgexfoundry.org:10002 03:59:10 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:59:10 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:59:10 Configure a credential helper to remove this warning. See 03:59:10 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:59:10 03:59:10 Login Succeeded 03:59:10 nexus3.edgexfoundry.org:10003 03:59:10 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:59:10 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:59:10 Configure a credential helper to remove this warning. See 03:59:10 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:59:10 03:59:10 Login Succeeded 03:59:10 nexus3.edgexfoundry.org:10004 03:59:10 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:59:10 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:59:10 Configure a credential helper to remove this warning. See 03:59:10 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:59:10 03:59:10 Login Succeeded 03:59:10 docker.io 03:59:11 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:59:11 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:59:11 Configure a credential helper to remove this warning. See 03:59:11 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:59:11 03:59:11 Login Succeeded 03:59:11 ---> docker-login.sh ends [Pipeline] } 03:59:11 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 03:59:11 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 03:59:11 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 03:59:11 ========================================================= 03:59:11 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.18-alpine] 03:59:11 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 03:59:12 + docker build -t ci-base-image-arm64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.18-alpine --build-arg MAKE=echo noop --target=builder . 03:59:12 Sending build context to Docker daemon 3.333MB 03:59:12 Step 1/10 : ARG BASE=golang:1.18-alpine3.16 03:59:12 Step 2/10 : FROM ${BASE} AS builder 03:59:12 1.18-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 03:59:12 9b18e9b68314: Pulling fs layer 03:59:12 35d82f9e3411: Pulling fs layer 03:59:12 e16973657156: Pulling fs layer 03:59:12 fc693d55d65f: Pulling fs layer 03:59:12 7e9fc2657dce: Pulling fs layer 03:59:12 dda99020689f: Pulling fs layer 03:59:12 db1c61fa0a46: Pulling fs layer 03:59:12 891c053d2c06: Pulling fs layer 03:59:12 dda99020689f: Waiting 03:59:12 fc693d55d65f: Waiting 03:59:12 7e9fc2657dce: Waiting 03:59:12 db1c61fa0a46: Waiting 03:59:12 891c053d2c06: Waiting 03:59:12 e16973657156: Verifying Checksum 03:59:12 e16973657156: Download complete 03:59:12 35d82f9e3411: Download complete 03:59:12 7e9fc2657dce: Download complete 03:59:12 dda99020689f: Download complete 03:59:12 9b18e9b68314: Download complete 03:59:13 891c053d2c06: Verifying Checksum 03:59:13 891c053d2c06: Download complete 03:59:14 9b18e9b68314: Pull complete 03:59:14 35d82f9e3411: Pull complete 03:59:14 e16973657156: Pull complete 03:59:14 db1c61fa0a46: Verifying Checksum 03:59:15 fc693d55d65f: Verifying Checksum 03:59:15 fc693d55d65f: Download complete 03:59:27 fc693d55d65f: Pull complete 03:59:27 7e9fc2657dce: Pull complete 03:59:27 dda99020689f: Pull complete 03:59:34 db1c61fa0a46: Pull complete 03:59:35 891c053d2c06: Pull complete 03:59:35 Digest: sha256:2cacf8bfc28650abd52610e42dcfc04852e818eb73900ea96edaef96a54d0b45 03:59:35 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.18-alpine 03:59:35 ---> f96f9c87975a 03:59:35 Step 3/10 : ARG ADD_BUILD_TAGS="" 03:59:37 ---> Running in 864be1d44fad 03:59:37 Removing intermediate container 864be1d44fad 03:59:37 ---> 9fede85413eb 03:59:37 Step 4/10 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 03:59:37 ---> Running in 40501464ac07 03:59:38 Removing intermediate container 40501464ac07 03:59:38 ---> 0b74c8b8f8c6 03:59:38 Step 5/10 : RUN apk add --update --no-cache make git openssh 03:59:38 ---> Running in 7eb6c1e20c38 03:59:39 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/aarch64/APKINDEX.tar.gz 03:59:39 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/aarch64/APKINDEX.tar.gz 03:59:40 (1/8) Installing openssh-keygen (9.0_p1-r2) 03:59:40 (2/8) Installing libedit (20210910.3.1-r0) 03:59:40 (3/8) Installing openssh-client-common (9.0_p1-r2) 03:59:40 (4/8) Installing openssh-client-default (9.0_p1-r2) 03:59:40 (5/8) Installing openssh-sftp-server (9.0_p1-r2) 03:59:40 (6/8) Installing openssh-server-common (9.0_p1-r2) 03:59:40 (7/8) Installing openssh-server (9.0_p1-r2) 03:59:40 (8/8) Installing openssh (9.0_p1-r2) 03:59:40 Executing busybox-1.35.0-r17.trigger 03:59:40 OK: 228 MiB in 59 packages 03:59:41 Removing intermediate container 7eb6c1e20c38 03:59:41 ---> d5688b424387 03:59:41 Step 6/10 : WORKDIR /device-modbus-go 03:59:41 ---> Running in db879159947a 03:59:41 Removing intermediate container db879159947a 03:59:41 ---> 311c8257ff0e 03:59:41 Step 7/10 : COPY go.mod vendor* ./ 03:59:42 ---> f05ab1290cfc 03:59:42 Step 8/10 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 03:59:42 ---> Running in af4920b354bc 04:00:50 Removing intermediate container af4920b354bc 04:00:50 ---> baedb9b05db9 04:00:50 Step 9/10 : COPY . . 04:00:50 ---> 484b675ad619 04:00:50 Step 10/10 : RUN ${MAKE} 04:00:50 ---> Running in ac03c82e68ab 04:00:50 noop 04:00:50 Removing intermediate container ac03c82e68ab 04:00:50 ---> 2f489f08dc46 04:00:50 Successfully built 2f489f08dc46 04:00:50 Successfully tagged ci-base-image-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:00:50 + docker inspect -f . ci-base-image-arm64 04:00:50 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 04:00:50 prd-ubuntu20.04-docker-arm64-4c-16g-4615 does not seem to be running inside a container 04:00:50 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-modbus-go/2 -v /w/workspace/device-modbus-go/2:/w/workspace/device-modbus-go/2:rw,z -v /w/workspace/device-modbus-go/2@tmp:/w/workspace/device-modbus-go/2@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 04:00:52 $ docker top 69a16f151a0af941d23ed428877349c752934437511db05ef211f99a2e6b4bf0 -eo pid,comm [Pipeline] { [Pipeline] sh 04:00:52 + go version 04:00:52 go version go1.18.7 linux/arm64 [Pipeline] } 04:00:52 $ docker stop --time=1 69a16f151a0af941d23ed428877349c752934437511db05ef211f99a2e6b4bf0 04:00:56 $ docker rm -f --volumes 69a16f151a0af941d23ed428877349c752934437511db05ef211f99a2e6b4bf0 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:00:57 + docker inspect -f . ci-base-image-arm64 04:00:57 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 04:00:57 prd-ubuntu20.04-docker-arm64-4c-16g-4615 does not seem to be running inside a container 04:00:57 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged -v /var/run/docker.sock:/var/run/docker.sock -w /w/workspace/device-modbus-go/2 -v /w/workspace/device-modbus-go/2:/w/workspace/device-modbus-go/2:rw,z -v /w/workspace/device-modbus-go/2@tmp:/w/workspace/device-modbus-go/2@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 04:00:58 $ docker top 806196d209ddd205d1602c7f8ac3f6b755eee866b562ff7a6ee2cb2086a2e70b -eo pid,comm [Pipeline] { [Pipeline] sh 04:00:59 + git config --global --add safe.directory /w/workspace/device-modbus-go/2 [Pipeline] fileExists [Pipeline] sh 04:00:59 + make test 04:01:00 go test ./... -coverprofile=coverage.out 04:01:01 ? github.com/edgexfoundry/device-modbus-go [no test files] 04:02:23 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 04:02:23 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.082s coverage: 47.7% of statements 04:02:23 WARNING: Linting skipped (not on x86_64 or linter not installed) 04:02:23 go vet ./... 04:02:41 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 04:02:41 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 04:02:41 ./bin/test-attribution-txt.sh 04:02:41 An attribution for golang.org/x/mod is missing from Attribution.txt, please add 04:02:41 An attribution for golang.org/x/tools is missing from Attribution.txt, please add [Pipeline] echo 04:02:41 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 04:02:41 $ docker stop --time=1 806196d209ddd205d1602c7f8ac3f6b755eee866b562ff7a6ee2cb2086a2e70b 04:02:43 $ docker rm -f --volumes 806196d209ddd205d1602c7f8ac3f6b755eee866b562ff7a6ee2cb2086a2e70b [Pipeline] // withDockerContainer [Pipeline] sh 04:02:44 + sudo chown -R jenkins:jenkins . [Pipeline] stash 04:02:44 Warning: overwriting stash ‘coverage-report’ 04:02:44 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 04:02:44 + sudo chown -R jenkins:jenkins . [Pipeline] sh 04:02:45 + ls -al . 04:02:45 total 180 04:02:45 drwxrwxr-x 9 jenkins jenkins 4096 Feb 6 04:01 . 04:02:45 drwxrwxr-x 4 jenkins jenkins 4096 Feb 6 03:58 .. 04:02:45 -rw-rw-r-- 1 jenkins jenkins 140 Feb 6 03:58 .dockerignore 04:02:45 drwxrwxr-x 8 jenkins jenkins 4096 Feb 6 03:58 .git 04:02:45 drwxrwxr-x 3 jenkins jenkins 4096 Feb 6 03:58 .github 04:02:45 -rw-rw-r-- 1 jenkins jenkins 331 Feb 6 03:58 .gitignore 04:02:45 -rw-rw-r-- 1 jenkins jenkins 41 Feb 6 03:58 .golangci.yml 04:02:45 -rw-rw-r-- 1 jenkins jenkins 10017 Feb 6 03:58 Attribution.txt 04:02:45 -rw-rw-r-- 1 jenkins jenkins 11576 Feb 6 03:58 CHANGELOG.md 04:02:45 -rw-rw-r-- 1 jenkins jenkins 1365 Feb 6 03:58 Dockerfile 04:02:45 -rw-rw-r-- 1 jenkins jenkins 677 Feb 6 03:58 GOVERNANCE.md 04:02:45 -rw-rw-r-- 1 jenkins jenkins 680 Feb 6 03:58 Jenkinsfile 04:02:45 -rw-rw-r-- 1 jenkins jenkins 11340 Feb 6 03:58 LICENSE 04:02:45 -rw-rw-r-- 1 jenkins jenkins 1670 Feb 6 03:58 Makefile 04:02:45 -rw-rw-r-- 1 jenkins jenkins 622 Feb 6 03:58 OWNERS.md 04:02:45 -rw-rw-r-- 1 jenkins jenkins 4061 Feb 6 03:58 README.md 04:02:45 -rw-rw-r-- 1 jenkins jenkins 5 Feb 6 03:56 VERSION 04:02:45 drwxrwxr-x 2 jenkins jenkins 4096 Feb 6 03:58 bin 04:02:45 drwxrwxr-x 3 jenkins jenkins 4096 Feb 6 03:58 cmd 04:02:45 -rw-r--r-- 1 jenkins jenkins 23241 Feb 6 04:02 coverage.out 04:02:45 -rw-rw-r-- 1 jenkins jenkins 3495 Feb 6 03:58 go.mod 04:02:45 -rw-rw-r-- 1 jenkins jenkins 33619 Feb 6 03:58 go.sum 04:02:45 drwxrwxr-x 3 jenkins jenkins 4096 Feb 6 03:58 internal 04:02:45 drwxrwxr-x 2 jenkins jenkins 4096 Feb 6 03:58 simulator 04:02:45 drwxrwxr-x 4 jenkins jenkins 4096 Feb 6 03:58 snap 04:02:45 -rw-rw-r-- 1 jenkins jenkins 229 Feb 6 03:58 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:02:45 + 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=26ac16efdcde74a1898f26614f2f68eca481b681 --label arch=arm64 --label version=0.0.0 . 04:02:45 Sending build context to Docker daemon 3.357MB 04:02:45 Step 1/22 : ARG BASE=golang:1.18-alpine3.16 04:02:45 Step 2/22 : FROM ${BASE} AS builder 04:02:45 ---> 2f489f08dc46 04:02:45 Step 3/22 : ARG ADD_BUILD_TAGS="" 04:02:46 ---> Running in a20e1dbee9e8 04:02:46 Removing intermediate container a20e1dbee9e8 04:02:46 ---> 3101b63083b3 04:02:46 Step 4/22 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 04:02:46 ---> Running in 7c4ffd05297e 04:02:46 Removing intermediate container 7c4ffd05297e 04:02:46 ---> 4bcf1537cc7b 04:02:46 Step 5/22 : RUN apk add --update --no-cache make git openssh 04:02:46 ---> Running in 0b4853831253 04:02:47 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/aarch64/APKINDEX.tar.gz 04:02:47 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/aarch64/APKINDEX.tar.gz 04:02:48 OK: 228 MiB in 59 packages 04:02:49 Removing intermediate container 0b4853831253 04:02:49 ---> fa444d25aa9a 04:02:49 Step 6/22 : WORKDIR /device-modbus-go 04:02:49 ---> Running in aa4461ea5161 04:02:50 Removing intermediate container aa4461ea5161 04:02:50 ---> 637e81f5f9a5 04:02:50 Step 7/22 : COPY go.mod vendor* ./ 04:02:50 ---> c239d0195420 04:02:50 Step 8/22 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 04:02:50 ---> Running in 66fe59481c12 04:02:53 Removing intermediate container 66fe59481c12 04:02:53 ---> eb9652897b64 04:02:53 Step 9/22 : COPY . . 04:02:54 ---> ded4e76f999d 04:02:54 Step 10/22 : RUN ${MAKE} 04:02:54 ---> Running in 3a0f0cf1253e 04:02:57 CGO_ENABLED=0 go build -tags "" -ldflags "-X github.com/edgexfoundry/device-modbus-go.Version=0.0.0" -trimpath -mod=readonly -o cmd/device-modbus ./cmd 04:05:19 Removing intermediate container 3a0f0cf1253e 04:05:19 ---> 4c5adbf7817d 04:05:19 Step 11/22 : FROM alpine:3.14 04:05:19 3.14: Pulling from library/alpine 04:05:19 90cda3b7c325: Pulling fs layer 04:05:19 90cda3b7c325: Verifying Checksum 04:05:19 90cda3b7c325: Download complete 04:05:19 90cda3b7c325: Pull complete 04:05:19 Digest: sha256:4c869a63e1b7c0722fed1e402a6466610327c3b83bdddb94bd94fb71da7f638a 04:05:19 Status: Downloaded newer image for alpine:3.14 04:05:19 ---> 275902a1839d 04:05:19 Step 12/22 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IoTech Ltd' 04:05:19 ---> Running in cdc9e0aed5a8 04:05:19 Removing intermediate container cdc9e0aed5a8 04:05:19 ---> 87a79659883e 04:05:19 Step 13/22 : RUN apk add --update --no-cache dumb-init 04:05:19 ---> Running in 1b4fbbedc6e1 04:05:19 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/aarch64/APKINDEX.tar.gz 04:05:19 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/aarch64/APKINDEX.tar.gz 04:05:19 (1/1) Installing dumb-init (1.2.5-r1) 04:05:19 Executing busybox-1.33.1-r8.trigger 04:05:19 OK: 6 MiB in 15 packages 04:05:19 Removing intermediate container 1b4fbbedc6e1 04:05:19 ---> dffa2105eb6a 04:05:19 Step 14/22 : COPY --from=builder /device-modbus-go/cmd / 04:05:19 ---> 849795ae5c45 04:05:19 Step 15/22 : COPY --from=builder /device-modbus-go/LICENSE / 04:05:20 ---> 145ba4b6f382 04:05:20 Step 16/22 : COPY --from=builder /device-modbus-go/Attribution.txt / 04:05:20 ---> a3178652b3da 04:05:20 Step 17/22 : EXPOSE 59901 04:05:20 ---> Running in 0f88ad24077e 04:05:20 Removing intermediate container 0f88ad24077e 04:05:20 ---> 176af04d7c9f 04:05:20 Step 18/22 : ENTRYPOINT ["/device-modbus"] 04:05:20 ---> Running in b823719927d6 04:05:21 Removing intermediate container b823719927d6 04:05:21 ---> 8d4c033e404f 04:05:21 Step 19/22 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 04:05:21 ---> Running in 044158e38be1 04:05:21 Removing intermediate container 044158e38be1 04:05:21 ---> 182e2d313d78 04:05:21 Step 20/22 : LABEL arch=arm64 04:05:23 ---> Running in c8b593910d69 04:05:23 Removing intermediate container c8b593910d69 04:05:23 ---> 757eb2f1c468 04:05:23 Step 21/22 : LABEL git_sha=26ac16efdcde74a1898f26614f2f68eca481b681 04:05:23 ---> Running in e0cf239e5234 04:05:24 Removing intermediate container e0cf239e5234 04:05:24 ---> 3160c6592793 04:05:24 Step 22/22 : LABEL version=0.0.0 04:05:24 ---> Running in 834b67b02819 04:05:24 Removing intermediate container 834b67b02819 04:05:24 ---> bbbb97804296 04:05:24 [Warning] One or more build-args [ARCH] were not consumed 04:05:24 Successfully built bbbb97804296 04:05:24 Successfully tagged device-modbus-arm64:latest [Pipeline] } [Pipeline] // withEnv [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] withEnv [Pipeline] { [Pipeline] sh 04:05:25 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 04:05:25 04:05:25 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:05:25 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 04:05:25 arm64: Pulling from edgex-lftools-log-publisher 04:05:25 8998bd30e6a1: Pulling fs layer 04:05:25 04944245beec: Pulling fs layer 04:05:25 699f458cf7ca: Pulling fs layer 04:05:25 765212b225bb: Pulling fs layer 04:05:25 f23df028b6ca: Pulling fs layer 04:05:25 d65c8cfc05b1: Pulling fs layer 04:05:25 2437ff75d9bd: Pulling fs layer 04:05:25 f23df028b6ca: Waiting 04:05:25 d65c8cfc05b1: Waiting 04:05:25 2437ff75d9bd: Waiting 04:05:25 765212b225bb: Waiting 04:05:25 04944245beec: Verifying Checksum 04:05:25 04944245beec: Download complete 04:05:25 765212b225bb: Verifying Checksum 04:05:25 765212b225bb: Download complete 04:05:25 f23df028b6ca: Verifying Checksum 04:05:25 f23df028b6ca: Download complete 04:05:26 d65c8cfc05b1: Verifying Checksum 04:05:26 d65c8cfc05b1: Download complete 04:05:26 699f458cf7ca: Verifying Checksum 04:05:26 699f458cf7ca: Download complete 04:05:26 8998bd30e6a1: Verifying Checksum 04:05:26 8998bd30e6a1: Download complete 04:05:28 2437ff75d9bd: Verifying Checksum 04:05:28 2437ff75d9bd: Download complete 04:05:30 8998bd30e6a1: Pull complete 04:05:30 04944245beec: Pull complete 04:05:32 699f458cf7ca: Pull complete 04:05:32 765212b225bb: Pull complete 04:05:33 f23df028b6ca: Pull complete 04:05:33 d65c8cfc05b1: Pull complete 04:05:48 2437ff75d9bd: Pull complete 04:05:48 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 04:05:48 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 04:05:48 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 04:05:48 prd-ubuntu20.04-docker-arm64-4c-16g-4615 does not seem to be running inside a container 04:05:48 $ 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/2 -v /w/workspace/device-modbus-go/2:/w/workspace/device-modbus-go/2:rw,z -v /w/workspace/device-modbus-go/2@tmp:/w/workspace/device-modbus-go/2@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 04:05:51 $ docker top b1b337b4bd23778cd8822fcf2cdfcc42c4524e0d29cbfafe126d2e18e75e7eb3 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 04:05:52 ---> job-cost.sh 04:05:52 lf-activate-venv: SKIPPING 04:05:52 INFO: No Stack... 04:05:52 INFO: Retrieving Pricing Info for: v3-standard-4 04:05:53 INFO: Archiving Costs [Pipeline] sh 04:05:54 + cat /w/workspace/device-modbus-go/2/archives/cost.csv 04:05:54 + cut -d, -f6 [Pipeline] lock 04:05:54 Trying to acquire lock on [jenkins-edgexfoundry-device-modbus-go-PR-403-2-stack-cost] 04:05:54 Resource [jenkins-edgexfoundry-device-modbus-go-PR-403-2-stack-cost] did not exist. Created. 04:05:54 Lock acquired on [jenkins-edgexfoundry-device-modbus-go-PR-403-2-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 04:05:55 /w/workspace/device-modbus-go/2@tmp/durable-43fc1fe8/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 04:05:55 + echo total: 0.10999999940395355 [Pipeline] stash 04:05:55 Warning: overwriting stash ‘stack-cost’ 04:05:55 Stashed 1 file(s) [Pipeline] } 04:05:55 Lock released on resource [jenkins-edgexfoundry-device-modbus-go-PR-403-2-stack-cost] [Pipeline] // lock [Pipeline] } 04:05:55 $ docker stop --time=1 b1b337b4bd23778cd8822fcf2cdfcc42c4524e0d29cbfafe126d2e18e75e7eb3 04:05:57 $ docker rm -f --volumes b1b337b4bd23778cd8822fcf2cdfcc42c4524e0d29cbfafe126d2e18e75e7eb3 [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 04:05:57 provisioning config files... 04:05:57 copy managed file [device-modbus-go-codecov-token] to file:/w/workspace/xfoundry_device-modbus-go_PR-403@tmp/config17434174032908129233tmp [Pipeline] { [Pipeline] sh 04:05:58 + set +x 04:05:58 + curl -s https://codecov.io/bash 04:05:58 + bash -s -- 04:05:58 04:05:58 _____ _ 04:05:58 / ____| | | 04:05:58 | | ___ __| | ___ ___ _____ __ 04:05:58 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 04:05:58 | |___| (_) | (_| | __/ (_| (_) \ V / 04:05:58 \_____\___/ \__,_|\___|\___\___/ \_/ 04:05:58 Bash-1.0.6 04:05:58 04:05:58 04:05:58 ==> git version 2.25.1 found 04:05:58 ==> 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 04:05:58 Release-Date: 2020-01-08 04:05:58 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 04:05:58 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 04:05:58 ==> Jenkins CI detected. 04:05:58 current dir:  /w/workspace/xfoundry_device-modbus-go_PR-403 04:05:58 project root: . 04:05:58 --> token set from env 04:05:58 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 04:05:58 ==> Running gcov in . (disable via -X gcov) 04:05:58 ==> Python coveragepy not found 04:05:58 ==> Searching for coverage reports in: 04:05:58 + . 04:05:58 -> Found 1 reports 04:05:58 ==> Detecting git/mercurial file structure 04:05:58 ==> Reading reports 04:05:58 + ./coverage.out bytes=23241 04:05:58 ==> Appending adjustments 04:05:58 https://docs.codecov.io/docs/fixing-reports 04:05:58 + Found adjustments 04:05:58 ==> Gzipping contents 04:05:58 4.0K /tmp/codecov.dNpZHs.gz 04:05:58 ==> Uploading reports 04:05:58 url: https://codecov.io 04:05:58 query: branch=PR-403&commit=26ac16efdcde74a1898f26614f2f68eca481b681&build=2&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-modbus-go%2Fjob%2FPR-403%2F2%2F&name=&tag=&slug=edgexfoundry%2Fdevice-modbus-go&service=jenkins&flags=&pr=403&job=&cmd_args= 04:05:58 -> Pinging Codecov 04:05:58 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=3a8d40b1-de00-4649-bfd4-bdc8ed99ae89&branch=PR-403&commit=26ac16efdcde74a1898f26614f2f68eca481b681&build=2&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-modbus-go%2Fjob%2FPR-403%2F2%2F&name=&tag=&slug=edgexfoundry%2Fdevice-modbus-go&service=jenkins&flags=&pr=403&job=&cmd_args= 04:05:58 -> Uploading to 04:05:58 https://storage.googleapis.com/codecov/v4/raw/2023-02-06/55DBCA73C666E3227836607328DD7E49/26ac16efdcde74a1898f26614f2f68eca481b681/2a0c9232-9090-421f-9ad5-c98ef2cd2991.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20230206%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20230206T040558Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=dce6a27a0ed152963ada4e49c3d75d69a7cc6bd40d763f070835ce97077056f0 04:05:58 % Total % Received % Xferd Average Speed Time Time Time Current 04:05:58 Dload Upload Total Spent Left Speed 04:05:58 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 3907 0 0 100 3907 0 15321 --:--:-- --:--:-- --:--:-- 15321 04:05:58 -> Reports have been successfully queued for processing at https://app.codecov.io/github/edgexfoundry/device-modbus-go/commit/26ac16efdcde74a1898f26614f2f68eca481b681 [Pipeline] } 04:05:58 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 04:05:59 + [ -d /w/workspace/xfoundry_device-modbus-go_PR-403/archives ] 04:05:59 + ls -al /w/workspace/xfoundry_device-modbus-go_PR-403/archives 04:05:59 total 16 04:05:59 drwxr-xr-x 3 root root 4096 Feb 6 03:58 . 04:05:59 drwxrwxr-x 11 jenkins jenkins 4096 Feb 6 03:58 .. 04:05:59 drwxr-xr-x 2 root root 4096 Feb 6 03:58 cost 04:05:59 -rw-r--r-- 1 root root 89 Feb 6 03:58 cost.csv 04:05:59 + sudo chown -R jenkins:jenkins /w/workspace/xfoundry_device-modbus-go_PR-403/archives 04:05:59 + ls -al /w/workspace/xfoundry_device-modbus-go_PR-403/archives 04:05:59 total 16 04:05:59 drwxr-xr-x 3 jenkins jenkins 4096 Feb 6 03:58 . 04:05:59 drwxrwxr-x 11 jenkins jenkins 4096 Feb 6 03:58 .. 04:05:59 drwxr-xr-x 2 jenkins jenkins 4096 Feb 6 03:58 cost 04:05:59 -rw-r--r-- 1 jenkins jenkins 89 Feb 6 03:58 cost.csv [Pipeline] libraryResource [Pipeline] sh 04:05:59 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 04:06:00 ---> package-listing.sh 04:06:00 ++ facter osfamily 04:06:00 ++ tr '[:upper:]' '[:lower:]' 04:06:00 + OS_FAMILY=debian 04:06:00 + workspace=/w/workspace/xfoundry_device-modbus-go_PR-403 04:06:00 + START_PACKAGES=/tmp/packages_start.txt 04:06:00 + END_PACKAGES=/tmp/packages_end.txt 04:06:00 + DIFF_PACKAGES=/tmp/packages_diff.txt 04:06:00 + PACKAGES=/tmp/packages_start.txt 04:06:00 + '[' /w/workspace/xfoundry_device-modbus-go_PR-403 ']' 04:06:00 + PACKAGES=/tmp/packages_end.txt 04:06:00 + case "${OS_FAMILY}" in 04:06:00 + dpkg -l 04:06:00 + grep '^ii' 04:06:00 + '[' -f /tmp/packages_start.txt ']' 04:06:00 + '[' -f /tmp/packages_end.txt ']' 04:06:00 + diff /tmp/packages_start.txt /tmp/packages_end.txt 04:06:00 + '[' /w/workspace/xfoundry_device-modbus-go_PR-403 ']' 04:06:00 + mkdir -p /w/workspace/xfoundry_device-modbus-go_PR-403/archives/ 04:06:00 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/xfoundry_device-modbus-go_PR-403/archives/ [Pipeline] echo 04:06:00 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-403/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 04:06:01 + facter operatingsystem [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 04:06:01 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 04:06:01 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 04:06:01 prd-ubuntu20.04-docker-8c-8g-4612 does not seem to be running inside a container 04:06:01 $ 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-403/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-403 -v /w/workspace/xfoundry_device-modbus-go_PR-403:/w/workspace/xfoundry_device-modbus-go_PR-403:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-403@tmp:/w/workspace/xfoundry_device-modbus-go_PR-403@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 04:06:02 $ docker top 16ccc415e4bce0484e5af8b9fa21853a7a21172cd3538d1339c14057f462bf15 -eo pid,comm [Pipeline] { [Pipeline] sh 04:06:02 + touch /tmp/pre-build-complete [Pipeline] sh 04:06:02 + mkdir -p /var/log/sysstat [Pipeline] sh 04:06:03 + ls /var/log/sa-host 04:06:03 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 04:06:03 provisioning config files... 04:06:03 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-403@tmp/config2793826852444487799tmp [Pipeline] { [Pipeline] echo 04:06:03 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 04:06:03 ---> create-netrc.sh [Pipeline] } 04:06:03 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 04:06:03 ---> python-tools-install.sh [Pipeline] echo 04:06:03 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 04:06:04 ---> sudo-logs.sh 04:06:04 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 04:06:04 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 04:06:04 ---> job-cost.sh 04:06:04 lf-activate-venv: SKIPPING 04:06:04 DEBUG: total: 0.2199999988079071 04:06:04 INFO: Retrieving Stack Cost... 04:06:05 INFO: Retrieving Pricing Info for: v3-standard-8 04:06:05 INFO: Archiving Costs [Pipeline] echo 04:06:05 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 04:06:05 ---> logs-deploy.sh 04:06:05 lf-activate-venv: SKIPPING 04:06:05 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-modbus-go/PR-403/2 04:06:05 INFO: archiving workspace using pattern(s): 04:06:06 Archives upload complete. 04:06:06 INFO: archiving logs to Nexus