Pull request #399 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 lenny-intel for edgexfoundry/device-modbus-go Obtained Jenkinsfile from 8ba79e986c1f417b124bba82d3a1bb02831b1cb6+def1cc71e63d04479355a5672fe2144ca0f9c836 (86b924d32928b64dbb2ea2060af5af3442e937f1) 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-ssh12868903853277193084.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-ssh5905430576450332856.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-399/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-399/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh9826229177061034300.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-ssh14402216927512099638.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-399/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-399/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e@tmp/jenkins-gitclient-ssh17017525498132956957.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 Still waiting to schedule task ‘prd-centos7-blackbox-4c-2g-1315’ doesn’t have label ‘ubuntu20.04-docker-8c-8g’ ‘prd-centos7-blackbox-4c-2g-1316’ doesn’t have label ‘ubuntu20.04-docker-8c-8g’ ‘prd-ubuntu18.04-docker-8c-8g-1843’ doesn’t have label ‘ubuntu20.04-docker-8c-8g’ ‘prd-ubuntu20.04-docker-8c-8g-1880’ is offline ‘prd-ubuntu20.04-docker-8c-8g-1883’ is offline ‘prd-ubuntu20.04-docker-8c-8g-1886’ is offline ‘prd-ubuntu20.04-docker-8c-8g-1891’ is offline ‘prd-ubuntu20.04-docker-8c-8g-1892’ is offline ‘prd-ubuntu20.04-docker-arm64-4c-16g-1884’ doesn’t have label ‘ubuntu20.04-docker-8c-8g’ ‘prd-ubuntu20.04-docker-arm64-4c-16g-1885’ doesn’t have label ‘ubuntu20.04-docker-8c-8g’ ‘prd-ubuntu20.04-docker-arm64-4c-16g-1887’ doesn’t have label ‘ubuntu20.04-docker-8c-8g’ Running on prd-ubuntu20.04-docker-8c-8g-1893 in /w/workspace/xfoundry_device-modbus-go_PR-399 [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-399 # 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 > 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/399/head:refs/remotes/origin/PR-399 +refs/heads/main:refs/remotes/origin/main # timeout=10 Merging remotes/origin/main commit def1cc71e63d04479355a5672fe2144ca0f9c836 into PR head commit 8ba79e986c1f417b124bba82d3a1bb02831b1cb6 Merge succeeded, producing 8ba79e986c1f417b124bba82d3a1bb02831b1cb6 Checking out Revision 8ba79e986c1f417b124bba82d3a1bb02831b1cb6 (PR-399) > git config core.sparsecheckout # timeout=10 > git checkout -f 8ba79e986c1f417b124bba82d3a1bb02831b1cb6 # 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 def1cc71e63d04479355a5672fe2144ca0f9c836 # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 8ba79e986c1f417b124bba82d3a1bb02831b1cb6 # timeout=10 Commit message: "refactor!: Rework code for refactored MessageBus Configuration" First time build. Skipping changelog. > git rev-list --no-walk bf46cafa04ddf559a7ac28ebf876f422b7e1b604 # timeout=10 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 17:48:47 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 17:48:47 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 17:48:47 ========================================================= 17:48:47 EdgeX Global Pipelines Version Info 17:48:47 ========================================================= [Pipeline] libraryResource [Pipeline] sh 17:48:48 ------------------- 17:48:48 stable info: 17:48:48 ------------------- 17:48:48 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 17:48:48 Commit SHA: cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 17:48:48 Message: update stable to v1.0.244 17:48:49 ------------------- 17:48:49 experimental info: 17:48:49 ------------------- 17:48:49 Commited By: **** collab-it+edgex@linuxfoundation.org 17:48:49 Commit SHA: cb30d0c83a18e50222bc0bb3e81aa3df0103a8e3 17:48:49 Message: update experimental to v1.0.244 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 17:48:49 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-modbus-go-settings [Pipeline] echo 17:48:49 [edgeXSetupEnvironment]: set envvar PROJECT = device-modbus-go [Pipeline] echo 17:48:49 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 17:48:49 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 17:48:49 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 17:48:49 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.18 [Pipeline] echo 17:48:49 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 17:48:49 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 17:48:49 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 17:48:49 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 17:48:49 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 17:48:49 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-modbus [Pipeline] echo 17:48:49 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 17:48:49 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 17:48:49 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 17:48:49 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 17:48:49 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 17:48:49 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 17:48:49 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 17:48:49 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 17:48:49 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 17:48:49 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 17:48:49 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 17:48:49 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 17:48:49 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 17:48:49 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 17:48:49 [edgeXSetupEnvironment]: set envvar SNYK_DEBUG = false [Pipeline] echo 17:48:49 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-399 [Pipeline] echo 17:48:49 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-399 [Pipeline] echo 17:48:49 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-399 [Pipeline] echo 17:48:49 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 8ba79e986c1f417b124bba82d3a1bb02831b1cb6 [Pipeline] echo 17:48:49 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 8ba79e9 [Pipeline] echo 17:48:49 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 17:48:49 provisioning config files... 17:48:49 copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-399@tmp/config10542140022392634402tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 17:48:50 ---> docker-login.sh 17:48:50 nexus3.edgexfoundry.org:10001 17:48:50 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 17:48:50 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 17:48:50 Configure a credential helper to remove this warning. See 17:48:50 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 17:48:50 17:48:50 Login Succeeded 17:48:50 nexus3.edgexfoundry.org:10002 17:48:50 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 17:48:50 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 17:48:50 Configure a credential helper to remove this warning. See 17:48:50 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 17:48:50 17:48:50 Login Succeeded 17:48:50 nexus3.edgexfoundry.org:10003 17:48:50 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 17:48:50 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 17:48:50 Configure a credential helper to remove this warning. See 17:48:50 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 17:48:50 17:48:50 Login Succeeded 17:48:50 nexus3.edgexfoundry.org:10004 17:48:50 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 17:48:50 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 17:48:50 Configure a credential helper to remove this warning. See 17:48:50 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 17:48:50 17:48:50 Login Succeeded 17:48:50 docker.io 17:48:50 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 17:48:51 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 17:48:51 Configure a credential helper to remove this warning. See 17:48:51 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 17:48:51 17:48:51 Login Succeeded 17:48:51 ---> docker-login.sh ends [Pipeline] } 17:48:51 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 17:48:51 + git rev-list -1 --merges 8ba79e986c1f417b124bba82d3a1bb02831b1cb6~1..8ba79e986c1f417b124bba82d3a1bb02831b1cb6 [Pipeline] echo 17:48:51 -----------> git rev-list -1 --merges 8ba79e986c1f417b124bba82d3a1bb02831b1cb6~1..8ba79e986c1f417b124bba82d3a1bb02831b1cb6 8ba79e986c1f417b124bba82d3a1bb02831b1cb6 [false] [Pipeline] sh 17:48:51 + git log --format=format:%s -1 8ba79e986c1f417b124bba82d3a1bb02831b1cb6 [Pipeline] echo 17:48:51 ========================================================= 17:48:51 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 17:48:51 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 17:48:52 + git log --format=format:%s -1 8ba79e986c1f417b124bba82d3a1bb02831b1cb6 [Pipeline] echo 17:48:52 [semverPrep] GIT_COMMIT: 8ba79e986c1f417b124bba82d3a1bb02831b1cb6, Commit Message: refactor!: Rework code for refactored MessageBus Configuration [Pipeline] echo 17:48:52 [semverPrep] This is not a build commit. [Pipeline] sh 17:48:52 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 17:48:52 + grep -v github /etc/ssh/ssh_known_hosts 17:48:52 + [ -e /tmp/ssh_known_hosts ] 17:48:52 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 17:48:52 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 17:48:52 + sudo tee -a /etc/ssh/ssh_known_hosts 17:48:52 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 17:48:52 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 17:48:52 17:48:52 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 17:48:53 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 17:48:53 0.1.4: Pulling from edgex-devops/py-git-semver 17:48:53 b85a868b505f: Pulling fs layer 17:48:53 e2be974225ed: Pulling fs layer 17:48:53 339a4e72a1f5: Pulling fs layer 17:48:53 988bab9f4d93: Pulling fs layer 17:48:53 1469e6f7b9e6: Pulling fs layer 17:48:53 eaf3925da568: Pulling fs layer 17:48:53 bab4dde63d76: Pulling fs layer 17:48:53 bde34c3a00c8: Pulling fs layer 17:48:53 b352a97aabf1: Pulling fs layer 17:48:53 4872d77fe225: Pulling fs layer 17:48:53 5851b861e8e6: Pulling fs layer 17:48:53 988bab9f4d93: Waiting 17:48:53 1469e6f7b9e6: Waiting 17:48:53 eaf3925da568: Waiting 17:48:53 bde34c3a00c8: Waiting 17:48:53 5851b861e8e6: Waiting 17:48:53 4872d77fe225: Waiting 17:48:53 b352a97aabf1: Waiting 17:48:53 bab4dde63d76: Waiting 17:48:53 e2be974225ed: Verifying Checksum 17:48:53 e2be974225ed: Download complete 17:48:53 988bab9f4d93: Download complete 17:48:53 1469e6f7b9e6: Verifying Checksum 17:48:53 1469e6f7b9e6: Download complete 17:48:53 eaf3925da568: Download complete 17:48:53 339a4e72a1f5: Verifying Checksum 17:48:53 339a4e72a1f5: Download complete 17:48:53 bde34c3a00c8: Verifying Checksum 17:48:53 bde34c3a00c8: Download complete 17:48:53 b352a97aabf1: Download complete 17:48:53 4872d77fe225: Verifying Checksum 17:48:53 4872d77fe225: Download complete 17:48:53 5851b861e8e6: Verifying Checksum 17:48:53 5851b861e8e6: Download complete 17:48:53 b85a868b505f: Verifying Checksum 17:48:53 b85a868b505f: Download complete 17:48:54 bab4dde63d76: Verifying Checksum 17:48:54 bab4dde63d76: Download complete 17:48:54 b85a868b505f: Pull complete 17:48:54 e2be974225ed: Pull complete 17:48:55 339a4e72a1f5: Pull complete 17:48:55 988bab9f4d93: Pull complete 17:48:55 1469e6f7b9e6: Pull complete 17:48:55 eaf3925da568: Pull complete 17:48:57 bab4dde63d76: Pull complete 17:48:57 bde34c3a00c8: Pull complete 17:48:57 b352a97aabf1: Pull complete 17:48:57 4872d77fe225: Pull complete 17:48:57 5851b861e8e6: Pull complete 17:48:57 Digest: sha256:59a28aa3b44c0bc56b9c3d2e9ecabe42e63693d939cc6e425eb8786f29f663d8 17:48:57 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 17:48:57 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 17:48:57 prd-ubuntu20.04-docker-8c-8g-1893 does not seem to be running inside a container 17:48:57 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/xfoundry_device-modbus-go_PR-399 -v /w/workspace/xfoundry_device-modbus-go_PR-399:/w/workspace/xfoundry_device-modbus-go_PR-399:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-399@tmp:/w/workspace/xfoundry_device-modbus-go_PR-399@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 17:48:58 $ docker top 025db3917f3af364812212c34c20532366755ac07cfa2a5a6e031631b9df5e07 -eo pid,comm 17:48:58 ERROR: The container started but didn't run the expected command. Please double check your ENTRYPOINT does execute the command passed as docker run argument, as required by official docker images (see https://github.com/docker-library/official-images#consistency for entrypoint consistency requirements). 17:48:58 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 17:48:58 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 17:48:58 [ssh-agent] Looking for ssh-agent implementation... 17:48:58 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 17:48:58 $ docker exec 025db3917f3af364812212c34c20532366755ac07cfa2a5a6e031631b9df5e07 ssh-agent 17:48:58 SSH_AUTH_SOCK=/tmp/ssh-Z0JjUPXt5OnB/agent.32 17:48:58 SSH_AGENT_PID=38 17:48:58 Running ssh-add (command line suppressed) 17:48:59 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-399@tmp/private_key_1438874346587561648.key (/w/workspace/xfoundry_device-modbus-go_PR-399@tmp/private_key_1438874346587561648.key) 17:48:59 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 17:48:59 + git tag --points-at HEAD [Pipeline] } 17:48:59 $ docker exec --env ******** --env ******** 025db3917f3af364812212c34c20532366755ac07cfa2a5a6e031631b9df5e07 ssh-agent -k 17:48:59 unset SSH_AUTH_SOCK; 17:48:59 unset SSH_AGENT_PID; 17:48:59 echo Agent pid 38 killed; 17:48:59 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 17:48:59 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 17:48:59 [ssh-agent] Looking for ssh-agent implementation... 17:48:59 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 17:48:59 $ docker exec 025db3917f3af364812212c34c20532366755ac07cfa2a5a6e031631b9df5e07 ssh-agent 17:48:59 SSH_AUTH_SOCK=/tmp/ssh-bdn9XYL2idpF/agent.69 17:48:59 SSH_AGENT_PID=75 17:48:59 Running ssh-add (command line suppressed) 17:48:59 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-399@tmp/private_key_18182865151559329372.key (/w/workspace/xfoundry_device-modbus-go_PR-399@tmp/private_key_18182865151559329372.key) 17:48:59 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 17:49:00 + git semver init 17:49:00 2023-01-11 17:49:00,395 [run_init] DEBUG init version:0.0.0 force:False 17:49:00 2023-01-11 17:49:00,396 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/xfoundry_device-modbus-go_PR-399/.semver 17:49:00 2023-01-11 17:49:00,396 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-modbus-go.git /w/workspace/xfoundry_device-modbus-go_PR-399/.semver 17:49:00 2023-01-11 17:49:00,397 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-modbus-go.git', '/w/workspace/xfoundry_device-modbus-go_PR-399/.semver'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-399, universal_newlines=False, shell=None, istream=None) 17:49:01 2023-01-11 17:49:01,224 [append_file] DEBUG append to file:/w/workspace/xfoundry_device-modbus-go_PR-399/.git/info/exclude 17:49:01 2023-01-11 17:49:01,224 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/xfoundry_device-modbus-go_PR-399/.semver/PR-399 with force:False 17:49:01 2023-01-11 17:49:01,224 [write_file] DEBUG write to file:/w/workspace/xfoundry_device-modbus-go_PR-399/.semver/PR-399 17:49:01 2023-01-11 17:49:01,229 [execute] INFO git cat-file --batch-check 17:49:01 2023-01-11 17:49:01,229 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-399/.semver, universal_newlines=False, shell=None, istream=) 17:49:01 2023-01-11 17:49:01,235 [execute] INFO git cat-file --batch 17:49:01 2023-01-11 17:49:01,236 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-399/.semver, universal_newlines=False, shell=None, istream=) 17:49:01 2023-01-11 17:49:01,241 [read_version] DEBUG read version from /w/workspace/xfoundry_device-modbus-go_PR-399/.semver/PR-399 17:49:01 0.0.0 [Pipeline] } 17:49:01 $ docker exec --env ******** --env ******** 025db3917f3af364812212c34c20532366755ac07cfa2a5a6e031631b9df5e07 ssh-agent -k 17:49:01 unset SSH_AUTH_SOCK; 17:49:01 unset SSH_AGENT_PID; 17:49:01 echo Agent pid 75 killed; 17:49:01 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 17:49:01 + git semver [Pipeline] } 17:49:02 $ docker stop --time=1 025db3917f3af364812212c34c20532366755ac07cfa2a5a6e031631b9df5e07 17:49:03 $ docker rm -f --volumes 025db3917f3af364812212c34c20532366755ac07cfa2a5a6e031631b9df5e07 [Pipeline] // withDockerContainer [Pipeline] sh 17:49:03 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 17:49:03 Stashed 1 file(s) [Pipeline] echo 17:49:03 [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 17:49:04 provisioning config files... 17:49:04 copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-399@tmp/config10094150564419018995tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 17:49:04 ---> docker-login.sh 17:49:04 nexus3.edgexfoundry.org:10001 17:49:04 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 17:49:04 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 17:49:04 Configure a credential helper to remove this warning. See 17:49:04 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 17:49:04 17:49:04 Login Succeeded 17:49:04 nexus3.edgexfoundry.org:10002 17:49:04 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 17:49:04 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 17:49:04 Configure a credential helper to remove this warning. See 17:49:04 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 17:49:04 17:49:04 Login Succeeded 17:49:04 nexus3.edgexfoundry.org:10003 17:49:04 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 17:49:04 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 17:49:04 Configure a credential helper to remove this warning. See 17:49:04 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 17:49:04 17:49:04 Login Succeeded 17:49:04 nexus3.edgexfoundry.org:10004 17:49:04 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 17:49:04 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 17:49:04 Configure a credential helper to remove this warning. See 17:49:04 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 17:49:04 17:49:04 Login Succeeded 17:49:04 docker.io 17:49:04 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 17:49:04 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 17:49:04 Configure a credential helper to remove this warning. See 17:49:04 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 17:49:04 17:49:04 Login Succeeded 17:49:04 ---> docker-login.sh ends [Pipeline] } 17:49:04 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 17:49:05 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 17:49:05 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 17:49:05 ========================================================= 17:49:05 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.18-alpine] 17:49:05 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 17:49:05 + 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 . 17:49:05 Sending build context to Docker daemon 6.35MB 17:49:05 Step 1/10 : ARG BASE=golang:1.18-alpine3.16 17:49:05 Step 2/10 : FROM ${BASE} AS builder 17:49:05 1.18-alpine: Pulling from edgex-devops/edgex-golang-base 17:49:05 213ec9aee27d: Pulling fs layer 17:49:05 4583459ba037: Pulling fs layer 17:49:05 93c1e223e6f2: Pulling fs layer 17:49:05 53926ce57604: Pulling fs layer 17:49:05 21b2b0c7a3f4: Pulling fs layer 17:49:05 22ff95d597cd: Pulling fs layer 17:49:05 12d6caf4c0d1: Pulling fs layer 17:49:05 96b7cbca73a9: Pulling fs layer 17:49:05 53926ce57604: Waiting 17:49:05 21b2b0c7a3f4: Waiting 17:49:05 a7acece74701: Pulling fs layer 17:49:05 22ff95d597cd: Waiting 17:49:05 12d6caf4c0d1: Waiting 17:49:05 96b7cbca73a9: Waiting 17:49:05 a7acece74701: Waiting 17:49:05 93c1e223e6f2: Verifying Checksum 17:49:05 93c1e223e6f2: Download complete 17:49:05 4583459ba037: Download complete 17:49:05 21b2b0c7a3f4: Verifying Checksum 17:49:05 21b2b0c7a3f4: Download complete 17:49:05 22ff95d597cd: Download complete 17:49:05 213ec9aee27d: Verifying Checksum 17:49:05 213ec9aee27d: Download complete 17:49:05 12d6caf4c0d1: Verifying Checksum 17:49:05 12d6caf4c0d1: Download complete 17:49:05 213ec9aee27d: Pull complete 17:49:05 4583459ba037: Pull complete 17:49:05 93c1e223e6f2: Pull complete 17:49:06 a7acece74701: Verifying Checksum 17:49:06 a7acece74701: Download complete 17:49:06 53926ce57604: Verifying Checksum 17:49:06 53926ce57604: Download complete 17:49:06 96b7cbca73a9: Verifying Checksum 17:49:06 96b7cbca73a9: Download complete 17:49:10 53926ce57604: Pull complete 17:49:10 21b2b0c7a3f4: Pull complete 17:49:10 22ff95d597cd: Pull complete 17:49:10 12d6caf4c0d1: Pull complete 17:49:12 96b7cbca73a9: Pull complete 17:49:13 a7acece74701: Pull complete 17:49:13 Digest: sha256:f6a9ef70c52da88a2ff63a0c6767b24654f9f5185d1d85ca6cc3004fb48f6c2d 17:49:13 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.18-alpine 17:49:13 ---> db6d94c90886 17:49:13 Step 3/10 : ARG ADD_BUILD_TAGS="" 17:49:15 ---> Running in cccbed1ab962 17:49:15 Removing intermediate container cccbed1ab962 17:49:15 ---> 3ac91fee46b6 17:49:15 Step 4/10 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 17:49:15 ---> Running in 5d0e0a502808 17:49:15 Removing intermediate container 5d0e0a502808 17:49:15 ---> 62daa431de64 17:49:15 Step 5/10 : RUN apk add --update --no-cache make git openssh 17:49:15 ---> Running in c03966eeac78 17:49:16 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz 17:49:16 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz 17:49:16 (1/8) Installing openssh-keygen (9.0_p1-r2) 17:49:16 (2/8) Installing libedit (20210910.3.1-r0) 17:49:16 (3/8) Installing openssh-client-common (9.0_p1-r2) 17:49:16 (4/8) Installing openssh-client-default (9.0_p1-r2) 17:49:16 (5/8) Installing openssh-sftp-server (9.0_p1-r2) 17:49:16 (6/8) Installing openssh-server-common (9.0_p1-r2) 17:49:16 (7/8) Installing openssh-server (9.0_p1-r2) 17:49:16 (8/8) Installing openssh (9.0_p1-r2) 17:49:16 Executing busybox-1.35.0-r17.trigger 17:49:16 OK: 217 MiB in 59 packages 17:49:16 Removing intermediate container c03966eeac78 17:49:16 ---> 9f1bd3600df7 17:49:16 Step 6/10 : WORKDIR /device-modbus-go 17:49:16 ---> Running in 350e70a7666f 17:49:16 Removing intermediate container 350e70a7666f 17:49:16 ---> 4d251c19e533 17:49:16 Step 7/10 : COPY go.mod vendor* ./ 17:49:17 ---> fb4fe6060ea1 17:49:17 Step 8/10 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 17:49:17 ---> Running in e1bb77cad4ce 17:49:19 Still waiting to schedule task 17:49:19 Waiting for next available executor on ‘ubuntu20.04-docker-arm64-4c-16g’ 17:49:35 Removing intermediate container e1bb77cad4ce 17:49:35 ---> 5be92a4cccac 17:49:35 Step 9/10 : COPY . . 17:49:35 ---> 1f48158e4a6a 17:49:35 Step 10/10 : RUN ${MAKE} 17:49:35 ---> Running in ab32e4b5de4b 17:49:35 noop 17:49:35 Removing intermediate container ab32e4b5de4b 17:49:35 ---> f00d362ec3e0 17:49:35 Successfully built f00d362ec3e0 17:49:35 Successfully tagged ci-base-image-x86_64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 17:49:35 + docker inspect -f . ci-base-image-x86_64 17:49:35 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 17:49:35 prd-ubuntu20.04-docker-8c-8g-1893 does not seem to be running inside a container 17:49:35 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/xfoundry_device-modbus-go_PR-399 -v /w/workspace/xfoundry_device-modbus-go_PR-399:/w/workspace/xfoundry_device-modbus-go_PR-399:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-399@tmp:/w/workspace/xfoundry_device-modbus-go_PR-399@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 17:49:36 $ docker top 4a4d1db6240164b896f0fdb8fcf36859372855f32697407218f5130c36274bb3 -eo pid,comm [Pipeline] { [Pipeline] sh 17:49:36 + go version 17:49:36 go version go1.18.7 linux/amd64 [Pipeline] } 17:49:36 $ docker stop --time=1 4a4d1db6240164b896f0fdb8fcf36859372855f32697407218f5130c36274bb3 17:49:37 $ docker rm -f --volumes 4a4d1db6240164b896f0fdb8fcf36859372855f32697407218f5130c36274bb3 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 17:49:38 + docker inspect -f . ci-base-image-x86_64 17:49:38 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 17:49:38 prd-ubuntu20.04-docker-8c-8g-1893 does not seem to be running inside a container 17:49:38 $ 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-399 -v /w/workspace/xfoundry_device-modbus-go_PR-399:/w/workspace/xfoundry_device-modbus-go_PR-399:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-399@tmp:/w/workspace/xfoundry_device-modbus-go_PR-399@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 17:49:38 $ docker top 96a91aa9a91b1ef9ce9188269e34614a8212ff1998bfbcdc3e008a421c9e49e5 -eo pid,comm [Pipeline] { [Pipeline] sh 17:49:38 + git config --global --add safe.directory /w/workspace/xfoundry_device-modbus-go_PR-399 [Pipeline] fileExists [Pipeline] sh 17:49:39 + make test 17:49:39 go test ./... -coverprofile=coverage.out 17:49:39 ? github.com/edgexfoundry/device-modbus-go [no test files] 17:49:49 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 17:49:49 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.012s coverage: 47.7% of statements 17:49:54 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." 17:49:54 go vet ./... 17:49:57 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 17:49:57 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 17:49:57 ./bin/test-attribution-txt.sh [Pipeline] echo 17:49:57 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 17:49:57 $ docker stop --time=1 96a91aa9a91b1ef9ce9188269e34614a8212ff1998bfbcdc3e008a421c9e49e5 17:49:59 $ docker rm -f --volumes 96a91aa9a91b1ef9ce9188269e34614a8212ff1998bfbcdc3e008a421c9e49e5 [Pipeline] // withDockerContainer [Pipeline] sh 17:50:00 + sudo chown -R jenkins:jenkins . [Pipeline] stash 17:50:00 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 17:50:00 + sudo chown -R jenkins:jenkins . [Pipeline] sh 17:50:00 + ls -al . 17:50:00 total 196 17:50:00 drwxrwxr-x 10 jenkins jenkins 4096 Jan 11 17:49 . 17:50:00 drwxrwxr-x 4 jenkins jenkins 4096 Jan 11 17:48 .. 17:50:00 -rw-rw-r-- 1 jenkins jenkins 140 Jan 11 17:48 .dockerignore 17:50:00 drwxrwxr-x 8 jenkins jenkins 4096 Jan 11 17:49 .git 17:50:00 drwxrwxr-x 3 jenkins jenkins 4096 Jan 11 17:48 .github 17:50:00 -rw-rw-r-- 1 jenkins jenkins 331 Jan 11 17:48 .gitignore 17:50:00 -rw-rw-r-- 1 jenkins jenkins 41 Jan 11 17:48 .golangci.yml 17:50:00 drwxr-xr-x 3 jenkins jenkins 4096 Jan 11 17:49 .semver 17:50:00 -rw-rw-r-- 1 jenkins jenkins 10017 Jan 11 17:48 Attribution.txt 17:50:00 -rw-rw-r-- 1 jenkins jenkins 11576 Jan 11 17:48 CHANGELOG.md 17:50:00 -rw-rw-r-- 1 jenkins jenkins 1365 Jan 11 17:48 Dockerfile 17:50:00 -rw-rw-r-- 1 jenkins jenkins 677 Jan 11 17:48 GOVERNANCE.md 17:50:00 -rw-rw-r-- 1 jenkins jenkins 680 Jan 11 17:48 Jenkinsfile 17:50:00 -rw-rw-r-- 1 jenkins jenkins 11340 Jan 11 17:48 LICENSE 17:50:00 -rw-rw-r-- 1 jenkins jenkins 1670 Jan 11 17:48 Makefile 17:50:00 -rw-rw-r-- 1 jenkins jenkins 622 Jan 11 17:48 OWNERS.md 17:50:00 -rw-rw-r-- 1 jenkins jenkins 4061 Jan 11 17:48 README.md 17:50:00 -rw-rw-r-- 1 jenkins jenkins 5 Jan 11 17:49 VERSION 17:50:00 drwxrwxr-x 2 jenkins jenkins 4096 Jan 11 17:48 bin 17:50:00 drwxrwxr-x 3 jenkins jenkins 4096 Jan 11 17:48 cmd 17:50:00 -rw-r--r-- 1 jenkins jenkins 23241 Jan 11 17:49 coverage.out 17:50:00 -rw-rw-r-- 1 jenkins jenkins 3584 Jan 11 17:48 go.mod 17:50:00 -rw-rw-r-- 1 jenkins jenkins 45355 Jan 11 17:48 go.sum 17:50:00 drwxrwxr-x 3 jenkins jenkins 4096 Jan 11 17:48 internal 17:50:00 drwxrwxr-x 2 jenkins jenkins 4096 Jan 11 17:48 simulator 17:50:00 drwxrwxr-x 4 jenkins jenkins 4096 Jan 11 17:48 snap 17:50:00 -rw-rw-r-- 1 jenkins jenkins 229 Jan 11 17:48 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 17:50:01 + 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=8ba79e986c1f417b124bba82d3a1bb02831b1cb6 --label arch=amd64 --label version=0.0.0 . 17:50:01 Sending build context to Docker daemon 6.374MB 17:50:01 Step 1/22 : ARG BASE=golang:1.18-alpine3.16 17:50:01 Step 2/22 : FROM ${BASE} AS builder 17:50:01 ---> f00d362ec3e0 17:50:01 Step 3/22 : ARG ADD_BUILD_TAGS="" 17:50:01 ---> Running in bd068ab39fac 17:50:01 Removing intermediate container bd068ab39fac 17:50:01 ---> 08ad38dfefca 17:50:01 Step 4/22 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 17:50:01 ---> Running in b67435d032e5 17:50:01 Removing intermediate container b67435d032e5 17:50:01 ---> 5bee8527ca86 17:50:01 Step 5/22 : RUN apk add --update --no-cache make git openssh 17:50:01 ---> Running in fea3c23ef3ee 17:50:01 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz 17:50:01 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz 17:50:02 OK: 217 MiB in 59 packages 17:50:02 Removing intermediate container fea3c23ef3ee 17:50:02 ---> fe3952c60718 17:50:02 Step 6/22 : WORKDIR /device-modbus-go 17:50:02 ---> Running in 0eb76a54beb5 17:50:02 Removing intermediate container 0eb76a54beb5 17:50:02 ---> 6f5fb8715268 17:50:02 Step 7/22 : COPY go.mod vendor* ./ 17:50:02 ---> f601d724d246 17:50:02 Step 8/22 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 17:50:02 ---> Running in 775f91e28375 17:50:03 Removing intermediate container 775f91e28375 17:50:03 ---> fe1397e160d7 17:50:03 Step 9/22 : COPY . . 17:50:03 ---> e46611195319 17:50:03 Step 10/22 : RUN ${MAKE} 17:50:03 ---> Running in 3a382906e129 17:50:03 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 17:50:21 Removing intermediate container 3a382906e129 17:50:21 ---> aa615bb3a521 17:50:21 Step 11/22 : FROM alpine:3.14 17:50:21 3.14: Pulling from library/alpine 17:50:21 c7ed990a2339: Pulling fs layer 17:50:21 c7ed990a2339: Download complete 17:50:21 c7ed990a2339: Pull complete 17:50:21 Digest: sha256:4c869a63e1b7c0722fed1e402a6466610327c3b83bdddb94bd94fb71da7f638a 17:50:21 Status: Downloaded newer image for alpine:3.14 17:50:21 ---> dd53f409bf0b 17:50:21 Step 12/22 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IoTech Ltd' 17:50:21 ---> Running in 407e103461f8 17:50:21 Removing intermediate container 407e103461f8 17:50:21 ---> 1addb4116d35 17:50:21 Step 13/22 : RUN apk add --update --no-cache dumb-init 17:50:21 ---> Running in 8d1458c2e50a 17:50:21 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz 17:50:21 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz 17:50:21 (1/1) Installing dumb-init (1.2.5-r1) 17:50:21 Executing busybox-1.33.1-r8.trigger 17:50:21 OK: 6 MiB in 15 packages 17:50:21 Removing intermediate container 8d1458c2e50a 17:50:21 ---> 46f37ae9d7d1 17:50:21 Step 14/22 : COPY --from=builder /device-modbus-go/cmd / 17:50:21 ---> 817da1070fde 17:50:21 Step 15/22 : COPY --from=builder /device-modbus-go/LICENSE / 17:50:21 ---> d43d7244f6ef 17:50:21 Step 16/22 : COPY --from=builder /device-modbus-go/Attribution.txt / 17:50:22 ---> 0f6b99ca9ce7 17:50:22 Step 17/22 : EXPOSE 59901 17:50:22 ---> Running in 54c7aa919d7d 17:50:22 Removing intermediate container 54c7aa919d7d 17:50:22 ---> be707367ad2c 17:50:22 Step 18/22 : ENTRYPOINT ["/device-modbus"] 17:50:22 ---> Running in 5af136f29d48 17:50:22 Removing intermediate container 5af136f29d48 17:50:22 ---> 464b51e7f758 17:50:22 Step 19/22 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 17:50:22 ---> Running in 4bf63db7543d 17:50:22 Removing intermediate container 4bf63db7543d 17:50:22 ---> 73237de36cad 17:50:22 Step 20/22 : LABEL arch=amd64 17:50:22 ---> Running in 8dbe7761e1f3 17:50:22 Removing intermediate container 8dbe7761e1f3 17:50:22 ---> aa76329d3c9b 17:50:22 Step 21/22 : LABEL git_sha=8ba79e986c1f417b124bba82d3a1bb02831b1cb6 17:50:22 ---> Running in 2f49fc9e1585 17:50:22 Removing intermediate container 2f49fc9e1585 17:50:22 ---> d271f560e2ce 17:50:22 Step 22/22 : LABEL version=0.0.0 17:50:22 ---> Running in 0e945669e9f5 17:50:22 Removing intermediate container 0e945669e9f5 17:50:22 ---> 915dd41e7e5a 17:50:22 [Warning] One or more build-args [ARCH] were not consumed 17:50:22 Successfully built 915dd41e7e5a 17:50:22 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 17:50:23 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 17:50:23 17:50:23 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 17:50:23 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 17:50:23 latest: Pulling from edgex-lftools-log-publisher 17:50:23 5eb5b503b376: Pulling fs layer 17:50:23 5c69ac0246d0: Pulling fs layer 17:50:23 ec43610c2a17: Pulling fs layer 17:50:23 3a2ae6a8a46f: Pulling fs layer 17:50:23 33b1e0a273af: Pulling fs layer 17:50:23 5d3b04190fa2: Pulling fs layer 17:50:23 2f39f015ded8: Pulling fs layer 17:50:23 3a2ae6a8a46f: Waiting 17:50:23 33b1e0a273af: Waiting 17:50:23 5d3b04190fa2: Waiting 17:50:23 2f39f015ded8: Waiting 17:50:23 5c69ac0246d0: Verifying Checksum 17:50:23 5c69ac0246d0: Download complete 17:50:23 3a2ae6a8a46f: Verifying Checksum 17:50:23 3a2ae6a8a46f: Download complete 17:50:23 33b1e0a273af: Download complete 17:50:23 5d3b04190fa2: Verifying Checksum 17:50:23 5d3b04190fa2: Download complete 17:50:23 ec43610c2a17: Verifying Checksum 17:50:23 ec43610c2a17: Download complete 17:50:23 5eb5b503b376: Verifying Checksum 17:50:23 5eb5b503b376: Download complete 17:50:24 2f39f015ded8: Verifying Checksum 17:50:24 2f39f015ded8: Download complete 17:50:24 5eb5b503b376: Pull complete 17:50:24 5c69ac0246d0: Pull complete 17:50:25 ec43610c2a17: Pull complete 17:50:25 3a2ae6a8a46f: Pull complete 17:50:25 33b1e0a273af: Pull complete 17:50:25 5d3b04190fa2: Pull complete 17:50:28 2f39f015ded8: Pull complete 17:50:28 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 17:50:28 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 17:50:28 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 17:50:28 prd-ubuntu20.04-docker-8c-8g-1893 does not seem to be running inside a container 17:50:28 $ 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-399 -v /w/workspace/xfoundry_device-modbus-go_PR-399:/w/workspace/xfoundry_device-modbus-go_PR-399:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-399@tmp:/w/workspace/xfoundry_device-modbus-go_PR-399@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 17:50:30 $ docker top 1e1283a9e106e12687d5c2c23822aafdc0a34cf15c9280a46809b0cce2e19015 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 17:50:30 ---> job-cost.sh 17:50:30 lf-activate-venv: SKIPPING 17:50:30 INFO: No Stack... 17:50:31 INFO: Retrieving Pricing Info for: v3-standard-8 17:50:31 INFO: Archiving Costs [Pipeline] sh 17:50:31 + cat /w/workspace/xfoundry_device-modbus-go_PR-399/archives/cost.csv 17:50:31 + cut -d, -f6 [Pipeline] lock 17:50:31 Trying to acquire lock on [jenkins-edgexfoundry-device-modbus-go-PR-399-2-stack-cost] 17:50:31 Resource [jenkins-edgexfoundry-device-modbus-go-PR-399-2-stack-cost] did not exist. Created. 17:50:31 Lock acquired on [jenkins-edgexfoundry-device-modbus-go-PR-399-2-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 17:50:31 + echo total: 0.2199999988079071 [Pipeline] stash 17:50:31 Stashed 1 file(s) [Pipeline] } 17:50:31 Lock released on resource [jenkins-edgexfoundry-device-modbus-go-PR-399-2-stack-cost] [Pipeline] // lock [Pipeline] } 17:50:31 $ docker stop --time=1 1e1283a9e106e12687d5c2c23822aafdc0a34cf15c9280a46809b0cce2e19015 17:50:33 $ docker rm -f --volumes 1e1283a9e106e12687d5c2c23822aafdc0a34cf15c9280a46809b0cce2e19015 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 17:52:19 Running on prd-ubuntu20.04-docker-arm64-4c-16g-1898 in /w/workspace/xfoundry_device-modbus-go_PR-399 [Pipeline] { [Pipeline] ws 17:52:19 Running in /w/workspace/device-modbus-go/2 [Pipeline] { [Pipeline] checkout 17:52:19 Selected Git installation does not exist. Using Default 17:52:19 The recommended git tool is: NONE 17:52:25 using credential edgex-jenkins-ssh 17:52:25 Cloning the remote Git repository 17:52:25 Cloning repository git@github.com:edgexfoundry/device-modbus-go.git 17:52:25 > git init /w/workspace/device-modbus-go/2 # timeout=10 17:52:26 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 17:52:26 > git --version # timeout=10 17:52:26 > git --version # 'git version 2.25.1' 17:52:26 using GIT_SSH to set credentials SSH Credentials for GitHub 17:52:26 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 17:52:27 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 17:52:27 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 17:52:29 Merging remotes/origin/main commit def1cc71e63d04479355a5672fe2144ca0f9c836 into PR head commit 8ba79e986c1f417b124bba82d3a1bb02831b1cb6 17:52:29 Merge succeeded, producing 8ba79e986c1f417b124bba82d3a1bb02831b1cb6 17:52:29 Checking out Revision 8ba79e986c1f417b124bba82d3a1bb02831b1cb6 (PR-399) 17:52:28 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 17:52:28 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 17:52:28 using GIT_SSH to set credentials SSH Credentials for GitHub 17:52:28 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/pull/399/head:refs/remotes/origin/PR-399 +refs/heads/main:refs/remotes/origin/main # timeout=10 17:52:29 > git config core.sparsecheckout # timeout=10 17:52:29 > git checkout -f 8ba79e986c1f417b124bba82d3a1bb02831b1cb6 # timeout=10 17:52:29 > git remote # timeout=10 17:52:29 > git config --get remote.origin.url # timeout=10 17:52:29 using GIT_SSH to set credentials SSH Credentials for GitHub 17:52:29 > git merge def1cc71e63d04479355a5672fe2144ca0f9c836 # timeout=10 17:52:29 > git rev-parse HEAD^{commit} # timeout=10 17:52:29 > git config core.sparsecheckout # timeout=10 17:52:29 > git checkout -f 8ba79e986c1f417b124bba82d3a1bb02831b1cb6 # timeout=10 17:52:33 Commit message: "refactor!: Rework code for refactored MessageBus Configuration" [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 17:52:34 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 17:52:34 % Total % Received % Xferd Average Speed Time Time Time Current 17:52:34 Dload Upload Total Spent Left Speed 17:52:34 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 12751 100 12751 0 0 200k 0 --:--:-- --:--:-- --:--:-- 204k [Pipeline] sh 17:52:35 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 17:52:35 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 17:52:35 + sudo tee /etc/docker/daemon.new 17:52:35 { 17:52:35 "registry-mirrors": [ 17:52:35 "https://nexus3.edgexfoundry.org:10001" 17:52:35 ], 17:52:35 "bip": "10.250.0.254/24", 17:52:35 "hosts": [ 17:52:35 "tcp://0.0.0.0:5555", 17:52:35 "unix:///var/run/docker.sock" 17:52:35 ], 17:52:35 "mtu": 1458, 17:52:35 "selinux-enabled": true, 17:52:35 "seccomp-profile": "/etc/docker/seccomp.json" 17:52:35 } [Pipeline] sh 17:52:35 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 17:52:36 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 17:52:54 provisioning config files... 17:52:54 copy managed file [device-modbus-go-settings] to file:/w/workspace/device-modbus-go/2@tmp/config18321413977156338939tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 17:52:54 ---> docker-login.sh 17:52:54 nexus3.edgexfoundry.org:10001 17:52:55 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 17:52:55 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 17:52:55 Configure a credential helper to remove this warning. See 17:52:55 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 17:52:55 17:52:55 Login Succeeded 17:52:55 nexus3.edgexfoundry.org:10002 17:52:55 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 17:52:56 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 17:52:56 Configure a credential helper to remove this warning. See 17:52:56 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 17:52:56 17:52:56 Login Succeeded 17:52:56 nexus3.edgexfoundry.org:10003 17:52:56 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 17:52:56 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 17:52:56 Configure a credential helper to remove this warning. See 17:52:56 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 17:52:56 17:52:56 Login Succeeded 17:52:56 nexus3.edgexfoundry.org:10004 17:52:56 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 17:52:56 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 17:52:56 Configure a credential helper to remove this warning. See 17:52:56 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 17:52:56 17:52:56 Login Succeeded 17:52:56 docker.io 17:52:57 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 17:52:57 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 17:52:57 Configure a credential helper to remove this warning. See 17:52:57 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 17:52:57 17:52:57 Login Succeeded 17:52:57 ---> docker-login.sh ends [Pipeline] } 17:52:57 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 17:52:57 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 17:52:57 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 17:52:57 ========================================================= 17:52:57 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.18-alpine] 17:52:57 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 17:52:58 + 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 . 17:52:58 Sending build context to Docker daemon 3.323MB 17:52:58 Step 1/10 : ARG BASE=golang:1.18-alpine3.16 17:52:58 Step 2/10 : FROM ${BASE} AS builder 17:52:58 1.18-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 17:52:58 9b18e9b68314: Pulling fs layer 17:52:58 35d82f9e3411: Pulling fs layer 17:52:58 e16973657156: Pulling fs layer 17:52:58 fc693d55d65f: Pulling fs layer 17:52:58 7e9fc2657dce: Pulling fs layer 17:52:58 dda99020689f: Pulling fs layer 17:52:58 db1c61fa0a46: Pulling fs layer 17:52:58 891c053d2c06: Pulling fs layer 17:52:58 dda99020689f: Waiting 17:52:58 fc693d55d65f: Waiting 17:52:58 db1c61fa0a46: Waiting 17:52:58 891c053d2c06: Waiting 17:52:58 7e9fc2657dce: Waiting 17:52:58 e16973657156: Verifying Checksum 17:52:58 e16973657156: Download complete 17:52:58 35d82f9e3411: Verifying Checksum 17:52:58 35d82f9e3411: Download complete 17:52:58 7e9fc2657dce: Verifying Checksum 17:52:58 7e9fc2657dce: Download complete 17:52:58 dda99020689f: Download complete 17:52:58 9b18e9b68314: Verifying Checksum 17:52:58 9b18e9b68314: Download complete 17:52:59 9b18e9b68314: Pull complete 17:52:59 891c053d2c06: Verifying Checksum 17:52:59 891c053d2c06: Download complete 17:53:00 35d82f9e3411: Pull complete 17:53:00 e16973657156: Pull complete 17:53:01 db1c61fa0a46: Verifying Checksum 17:53:01 db1c61fa0a46: Download complete 17:53:02 fc693d55d65f: Verifying Checksum 17:53:02 fc693d55d65f: Download complete 17:53:14 fc693d55d65f: Pull complete 17:53:14 7e9fc2657dce: Pull complete 17:53:15 dda99020689f: Pull complete 17:53:21 db1c61fa0a46: Pull complete 17:53:24 891c053d2c06: Pull complete 17:53:24 Digest: sha256:2cacf8bfc28650abd52610e42dcfc04852e818eb73900ea96edaef96a54d0b45 17:53:24 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.18-alpine 17:53:24 ---> f96f9c87975a 17:53:24 Step 3/10 : ARG ADD_BUILD_TAGS="" 17:53:26 ---> Running in f9bac05c3fbe 17:53:26 Removing intermediate container f9bac05c3fbe 17:53:26 ---> b64c192f5ed0 17:53:26 Step 4/10 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 17:53:26 ---> Running in 0f01f4cca986 17:53:27 Removing intermediate container 0f01f4cca986 17:53:27 ---> 1b13654a5b7c 17:53:27 Step 5/10 : RUN apk add --update --no-cache make git openssh 17:53:27 ---> Running in bdd4517a8628 17:53:28 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/aarch64/APKINDEX.tar.gz 17:53:28 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/aarch64/APKINDEX.tar.gz 17:53:30 (1/8) Installing openssh-keygen (9.0_p1-r2) 17:53:30 (2/8) Installing libedit (20210910.3.1-r0) 17:53:30 (3/8) Installing openssh-client-common (9.0_p1-r2) 17:53:30 (4/8) Installing openssh-client-default (9.0_p1-r2) 17:53:30 (5/8) Installing openssh-sftp-server (9.0_p1-r2) 17:53:30 (6/8) Installing openssh-server-common (9.0_p1-r2) 17:53:30 (7/8) Installing openssh-server (9.0_p1-r2) 17:53:30 (8/8) Installing openssh (9.0_p1-r2) 17:53:30 Executing busybox-1.35.0-r17.trigger 17:53:30 OK: 228 MiB in 59 packages 17:53:32 Removing intermediate container bdd4517a8628 17:53:32 ---> 9db5e31f1de8 17:53:32 Step 6/10 : WORKDIR /device-modbus-go 17:53:32 ---> Running in 69493d4e0661 17:53:32 Removing intermediate container 69493d4e0661 17:53:32 ---> 0a9e3add5730 17:53:32 Step 7/10 : COPY go.mod vendor* ./ 17:53:33 ---> 97c86c031d72 17:53:33 Step 8/10 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 17:53:33 ---> Running in 15b18204ea95 17:54:29 Removing intermediate container 15b18204ea95 17:54:29 ---> cea452f63138 17:54:29 Step 9/10 : COPY . . 17:54:30 ---> 1495a562ff88 17:54:30 Step 10/10 : RUN ${MAKE} 17:54:30 ---> Running in 24f218def9d2 17:54:31 noop 17:54:32 Removing intermediate container 24f218def9d2 17:54:32 ---> e8ef73f6fe10 17:54:32 Successfully built e8ef73f6fe10 17:54:32 Successfully tagged ci-base-image-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 17:54:33 + docker inspect -f . ci-base-image-arm64 17:54:33 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 17:54:33 prd-ubuntu20.04-docker-arm64-4c-16g-1898 does not seem to be running inside a container 17:54:33 $ 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 17:54:34 $ docker top 602d87476838d9bc65947d5de87d36a5fe861e79e2f714a7a5c750eea1abbff4 -eo pid,comm [Pipeline] { [Pipeline] sh 17:54:35 + go version 17:54:35 go version go1.18.7 linux/arm64 [Pipeline] } 17:54:35 $ docker stop --time=1 602d87476838d9bc65947d5de87d36a5fe861e79e2f714a7a5c750eea1abbff4 17:54:37 $ docker rm -f --volumes 602d87476838d9bc65947d5de87d36a5fe861e79e2f714a7a5c750eea1abbff4 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 17:54:37 + docker inspect -f . ci-base-image-arm64 17:54:37 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 17:54:38 prd-ubuntu20.04-docker-arm64-4c-16g-1898 does not seem to be running inside a container 17:54:38 $ 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 17:54:39 $ docker top 889766c3dc77c6fd67c3dc52346c2f944799d79ee025c9a931d206511607e140 -eo pid,comm [Pipeline] { [Pipeline] sh 17:54:40 + git config --global --add safe.directory /w/workspace/device-modbus-go/2 [Pipeline] fileExists [Pipeline] sh 17:54:41 + make test 17:54:41 go test ./... -coverprofile=coverage.out 17:54:42 ? github.com/edgexfoundry/device-modbus-go [no test files] 17:56:19 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 17:56:19 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.072s coverage: 47.7% of statements 17:56:19 WARNING: Linting skipped (not on x86_64 or linter not installed) 17:56:19 go vet ./... 17:56:52 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 17:56:52 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 17:56:52 ./bin/test-attribution-txt.sh [Pipeline] echo 17:56:52 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 17:56:52 $ docker stop --time=1 889766c3dc77c6fd67c3dc52346c2f944799d79ee025c9a931d206511607e140 17:56:54 $ docker rm -f --volumes 889766c3dc77c6fd67c3dc52346c2f944799d79ee025c9a931d206511607e140 [Pipeline] // withDockerContainer [Pipeline] sh 17:56:55 + sudo chown -R jenkins:jenkins . [Pipeline] stash 17:56:55 Warning: overwriting stash ‘coverage-report’ 17:56:56 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 17:56:57 + sudo chown -R jenkins:jenkins . [Pipeline] sh 17:56:57 + ls -al . 17:56:57 total 192 17:56:57 drwxrwxr-x 9 jenkins jenkins 4096 Jan 11 17:54 . 17:56:57 drwxrwxr-x 4 jenkins jenkins 4096 Jan 11 17:52 .. 17:56:57 -rw-rw-r-- 1 jenkins jenkins 140 Jan 11 17:52 .dockerignore 17:56:57 drwxrwxr-x 8 jenkins jenkins 4096 Jan 11 17:52 .git 17:56:57 drwxrwxr-x 3 jenkins jenkins 4096 Jan 11 17:52 .github 17:56:57 -rw-rw-r-- 1 jenkins jenkins 331 Jan 11 17:52 .gitignore 17:56:57 -rw-rw-r-- 1 jenkins jenkins 41 Jan 11 17:52 .golangci.yml 17:56:57 -rw-rw-r-- 1 jenkins jenkins 10017 Jan 11 17:52 Attribution.txt 17:56:57 -rw-rw-r-- 1 jenkins jenkins 11576 Jan 11 17:52 CHANGELOG.md 17:56:57 -rw-rw-r-- 1 jenkins jenkins 1365 Jan 11 17:52 Dockerfile 17:56:57 -rw-rw-r-- 1 jenkins jenkins 677 Jan 11 17:52 GOVERNANCE.md 17:56:57 -rw-rw-r-- 1 jenkins jenkins 680 Jan 11 17:52 Jenkinsfile 17:56:57 -rw-rw-r-- 1 jenkins jenkins 11340 Jan 11 17:52 LICENSE 17:56:57 -rw-rw-r-- 1 jenkins jenkins 1670 Jan 11 17:52 Makefile 17:56:57 -rw-rw-r-- 1 jenkins jenkins 622 Jan 11 17:52 OWNERS.md 17:56:57 -rw-rw-r-- 1 jenkins jenkins 4061 Jan 11 17:52 README.md 17:56:57 -rw-rw-r-- 1 jenkins jenkins 5 Jan 11 17:49 VERSION 17:56:57 drwxrwxr-x 2 jenkins jenkins 4096 Jan 11 17:52 bin 17:56:57 drwxrwxr-x 3 jenkins jenkins 4096 Jan 11 17:52 cmd 17:56:57 -rw-r--r-- 1 jenkins jenkins 23241 Jan 11 17:56 coverage.out 17:56:57 -rw-rw-r-- 1 jenkins jenkins 3584 Jan 11 17:52 go.mod 17:56:57 -rw-rw-r-- 1 jenkins jenkins 45355 Jan 11 17:52 go.sum 17:56:57 drwxrwxr-x 3 jenkins jenkins 4096 Jan 11 17:52 internal 17:56:57 drwxrwxr-x 2 jenkins jenkins 4096 Jan 11 17:52 simulator 17:56:57 drwxrwxr-x 4 jenkins jenkins 4096 Jan 11 17:52 snap 17:56:57 -rw-rw-r-- 1 jenkins jenkins 229 Jan 11 17:52 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 17:56:57 + 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=8ba79e986c1f417b124bba82d3a1bb02831b1cb6 --label arch=arm64 --label version=0.0.0 . 17:56:58 Sending build context to Docker daemon 3.347MB 17:56:58 Step 1/22 : ARG BASE=golang:1.18-alpine3.16 17:56:58 Step 2/22 : FROM ${BASE} AS builder 17:56:58 ---> e8ef73f6fe10 17:56:58 Step 3/22 : ARG ADD_BUILD_TAGS="" 17:56:58 ---> Running in adf877682f89 17:56:58 Removing intermediate container adf877682f89 17:56:58 ---> 40c8bb6e3e66 17:56:58 Step 4/22 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 17:56:58 ---> Running in 3719ea23ecb9 17:56:59 Removing intermediate container 3719ea23ecb9 17:56:59 ---> 9499beb6088e 17:56:59 Step 5/22 : RUN apk add --update --no-cache make git openssh 17:56:59 ---> Running in d697a4df6c8d 17:57:00 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/aarch64/APKINDEX.tar.gz 17:57:00 fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/aarch64/APKINDEX.tar.gz 17:57:02 OK: 228 MiB in 59 packages 17:57:03 Removing intermediate container d697a4df6c8d 17:57:03 ---> dda16b24bd96 17:57:03 Step 6/22 : WORKDIR /device-modbus-go 17:57:03 ---> Running in 65e62572e68c 17:57:03 Removing intermediate container 65e62572e68c 17:57:03 ---> 534f17683404 17:57:03 Step 7/22 : COPY go.mod vendor* ./ 17:57:04 ---> b0fb37366260 17:57:04 Step 8/22 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 17:57:04 ---> Running in 6157bd7ae2ed 17:57:06 Removing intermediate container 6157bd7ae2ed 17:57:06 ---> 0084a110de12 17:57:06 Step 9/22 : COPY . . 17:57:07 ---> 6bcd3881ccde 17:57:07 Step 10/22 : RUN ${MAKE} 17:57:07 ---> Running in 28e41bb5a94c 17:57:08 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 17:59:30 Removing intermediate container 28e41bb5a94c 17:59:30 ---> d3b177bb46f7 17:59:30 Step 11/22 : FROM alpine:3.14 17:59:30 3.14: Pulling from library/alpine 17:59:30 90cda3b7c325: Pulling fs layer 17:59:30 90cda3b7c325: Download complete 17:59:30 90cda3b7c325: Pull complete 17:59:30 Digest: sha256:4c869a63e1b7c0722fed1e402a6466610327c3b83bdddb94bd94fb71da7f638a 17:59:30 Status: Downloaded newer image for alpine:3.14 17:59:30 ---> 275902a1839d 17:59:30 Step 12/22 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IoTech Ltd' 17:59:30 ---> Running in 243f79d09a9c 17:59:30 Removing intermediate container 243f79d09a9c 17:59:30 ---> 3da445b8801f 17:59:30 Step 13/22 : RUN apk add --update --no-cache dumb-init 17:59:30 ---> Running in edd0602c5acf 17:59:31 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/aarch64/APKINDEX.tar.gz 17:59:31 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/aarch64/APKINDEX.tar.gz 17:59:32 (1/1) Installing dumb-init (1.2.5-r1) 17:59:32 Executing busybox-1.33.1-r8.trigger 17:59:32 OK: 6 MiB in 15 packages 17:59:33 Removing intermediate container edd0602c5acf 17:59:33 ---> abe79f73be47 17:59:33 Step 14/22 : COPY --from=builder /device-modbus-go/cmd / 17:59:35 ---> 842793b9322f 17:59:35 Step 15/22 : COPY --from=builder /device-modbus-go/LICENSE / 17:59:35 ---> 244ab6102adb 17:59:35 Step 16/22 : COPY --from=builder /device-modbus-go/Attribution.txt / 17:59:36 ---> c3d90928fbc7 17:59:36 Step 17/22 : EXPOSE 59901 17:59:36 ---> Running in 880634e3f567 17:59:36 Removing intermediate container 880634e3f567 17:59:36 ---> fac28c9ea0be 17:59:36 Step 18/22 : ENTRYPOINT ["/device-modbus"] 17:59:36 ---> Running in ce8e4a864999 17:59:36 Removing intermediate container ce8e4a864999 17:59:36 ---> f272fcdb1505 17:59:36 Step 19/22 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 17:59:36 ---> Running in 4aad203e47e9 17:59:37 Removing intermediate container 4aad203e47e9 17:59:37 ---> 8bfba8f574d6 17:59:37 Step 20/22 : LABEL arch=arm64 17:59:37 ---> Running in 32e9297dd020 17:59:37 Removing intermediate container 32e9297dd020 17:59:37 ---> f39be04e6508 17:59:37 Step 21/22 : LABEL git_sha=8ba79e986c1f417b124bba82d3a1bb02831b1cb6 17:59:37 ---> Running in 619b29895a45 17:59:38 Removing intermediate container 619b29895a45 17:59:38 ---> 602703945b01 17:59:38 Step 22/22 : LABEL version=0.0.0 17:59:38 ---> Running in 1b78c4f3afe4 17:59:38 Removing intermediate container 1b78c4f3afe4 17:59:38 ---> f40cd24e825c 17:59:38 [Warning] One or more build-args [ARCH] were not consumed 17:59:38 Successfully built f40cd24e825c 17:59:38 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 17:59:38 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 17:59:38 17:59:38 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 17:59:39 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 17:59:39 arm64: Pulling from edgex-lftools-log-publisher 17:59:39 8998bd30e6a1: Pulling fs layer 17:59:39 04944245beec: Pulling fs layer 17:59:39 699f458cf7ca: Pulling fs layer 17:59:39 765212b225bb: Pulling fs layer 17:59:39 f23df028b6ca: Pulling fs layer 17:59:39 d65c8cfc05b1: Pulling fs layer 17:59:39 2437ff75d9bd: Pulling fs layer 17:59:39 f23df028b6ca: Waiting 17:59:39 d65c8cfc05b1: Waiting 17:59:39 2437ff75d9bd: Waiting 17:59:39 765212b225bb: Waiting 17:59:39 04944245beec: Verifying Checksum 17:59:39 04944245beec: Download complete 17:59:39 765212b225bb: Download complete 17:59:39 f23df028b6ca: Verifying Checksum 17:59:39 f23df028b6ca: Download complete 17:59:39 d65c8cfc05b1: Verifying Checksum 17:59:39 d65c8cfc05b1: Download complete 17:59:39 699f458cf7ca: Verifying Checksum 17:59:39 699f458cf7ca: Download complete 17:59:39 8998bd30e6a1: Verifying Checksum 17:59:39 8998bd30e6a1: Download complete 17:59:42 2437ff75d9bd: Verifying Checksum 17:59:42 2437ff75d9bd: Download complete 17:59:43 8998bd30e6a1: Pull complete 17:59:44 04944245beec: Pull complete 17:59:45 699f458cf7ca: Pull complete 17:59:45 765212b225bb: Pull complete 17:59:46 f23df028b6ca: Pull complete 17:59:46 d65c8cfc05b1: Pull complete 17:59:58 2437ff75d9bd: Pull complete 17:59:58 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 17:59:58 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 17:59:58 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 17:59:58 prd-ubuntu20.04-docker-arm64-4c-16g-1898 does not seem to be running inside a container 17:59:58 $ 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 18:00:01 $ docker top 2fcd8da15eff44be69f78b0420470dc0b757b839d65ad08204c4f06003477dc2 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 18:00:02 ---> job-cost.sh 18:00:02 lf-activate-venv: SKIPPING 18:00:02 INFO: No Stack... 18:00:03 INFO: Retrieving Pricing Info for: v3-standard-4 18:00:04 INFO: Archiving Costs [Pipeline] sh 18:00:04 + cat /w/workspace/device-modbus-go/2/archives/cost.csv 18:00:04 + cut -d, -f6 [Pipeline] lock 18:00:04 Trying to acquire lock on [jenkins-edgexfoundry-device-modbus-go-PR-399-2-stack-cost] 18:00:04 Resource [jenkins-edgexfoundry-device-modbus-go-PR-399-2-stack-cost] did not exist. Created. 18:00:04 Lock acquired on [jenkins-edgexfoundry-device-modbus-go-PR-399-2-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 18:00:05 /w/workspace/device-modbus-go/2@tmp/durable-e1beff16/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 18:00:06 + echo total: 0.10999999940395355 [Pipeline] stash 18:00:06 Warning: overwriting stash ‘stack-cost’ 18:00:06 Stashed 1 file(s) [Pipeline] } 18:00:06 Lock released on resource [jenkins-edgexfoundry-device-modbus-go-PR-399-2-stack-cost] [Pipeline] // lock [Pipeline] } 18:00:06 $ docker stop --time=1 2fcd8da15eff44be69f78b0420470dc0b757b839d65ad08204c4f06003477dc2 18:00:07 $ docker rm -f --volumes 2fcd8da15eff44be69f78b0420470dc0b757b839d65ad08204c4f06003477dc2 [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 18:00:08 provisioning config files... 18:00:08 copy managed file [device-modbus-go-codecov-token] to file:/w/workspace/xfoundry_device-modbus-go_PR-399@tmp/config9426940920257137089tmp [Pipeline] { [Pipeline] sh 18:00:08 + set +x 18:00:08 + bash -s -- 18:00:08 + curl -s https://codecov.io/bash 18:00:08 18:00:08 _____ _ 18:00:08 / ____| | | 18:00:08 | | ___ __| | ___ ___ _____ __ 18:00:08 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 18:00:08 | |___| (_) | (_| | __/ (_| (_) \ V / 18:00:08 \_____\___/ \__,_|\___|\___\___/ \_/ 18:00:08 Bash-1.0.6 18:00:08 18:00:08 18:00:08 ==> git version 2.25.1 found 18:00:08 ==> 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 18:00:08 Release-Date: 2020-01-08 18:00:08 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 18:00:08 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 18:00:08 ==> Jenkins CI detected. 18:00:08 current dir:  /w/workspace/xfoundry_device-modbus-go_PR-399 18:00:08 project root: . 18:00:08 --> token set from env 18:00:08 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 18:00:08 ==> Running gcov in . (disable via -X gcov) 18:00:08 ==> Python coveragepy not found 18:00:08 ==> Searching for coverage reports in: 18:00:08 + . 18:00:08 -> Found 1 reports 18:00:08 ==> Detecting git/mercurial file structure 18:00:08 ==> Reading reports 18:00:08 + ./coverage.out bytes=23241 18:00:08 ==> Appending adjustments 18:00:08 https://docs.codecov.io/docs/fixing-reports 18:00:08 + Found adjustments 18:00:08 ==> Gzipping contents 18:00:08 4.0K /tmp/codecov.hk7H2u.gz 18:00:08 ==> Uploading reports 18:00:08 url: https://codecov.io 18:00:08 query: branch=PR-399&commit=8ba79e986c1f417b124bba82d3a1bb02831b1cb6&build=2&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-modbus-go%2Fjob%2FPR-399%2F2%2F&name=&tag=&slug=edgexfoundry%2Fdevice-modbus-go&service=jenkins&flags=&pr=399&job=&cmd_args= 18:00:08 -> Pinging Codecov 18:00:08 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=3a8d40b1-de00-4649-bfd4-bdc8ed99ae89&branch=PR-399&commit=8ba79e986c1f417b124bba82d3a1bb02831b1cb6&build=2&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-modbus-go%2Fjob%2FPR-399%2F2%2F&name=&tag=&slug=edgexfoundry%2Fdevice-modbus-go&service=jenkins&flags=&pr=399&job=&cmd_args= 18:00:08 -> Uploading to 18:00:08 https://storage.googleapis.com/codecov/v4/raw/2023-01-11/55DBCA73C666E3227836607328DD7E49/8ba79e986c1f417b124bba82d3a1bb02831b1cb6/1f833f15-2f50-4e3b-b0d5-e64b585bf9c0.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20230111%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20230111T180008Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=c0cbd41e175acf4cb3b416003a1f30af18a9a5e8d4e66bec7cb761b55a3b964d 18:00:08 % Total % Received % Xferd Average Speed Time Time Time Current 18:00:08 Dload Upload Total Spent Left Speed 18:00:09 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 3906 0 0 100 3906 0 18252 --:--:-- --:--:-- --:--:-- 18252 18:00:09 -> Reports have been successfully queued for processing at https://app.codecov.io/github/edgexfoundry/device-modbus-go/commit/8ba79e986c1f417b124bba82d3a1bb02831b1cb6 [Pipeline] } 18:00:09 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 18:00:09 + [ -d /w/workspace/xfoundry_device-modbus-go_PR-399/archives ] 18:00:09 + ls -al /w/workspace/xfoundry_device-modbus-go_PR-399/archives 18:00:09 total 16 18:00:09 drwxr-xr-x 3 root root 4096 Jan 11 17:50 . 18:00:09 drwxrwxr-x 11 jenkins jenkins 4096 Jan 11 17:50 .. 18:00:09 drwxr-xr-x 2 root root 4096 Jan 11 17:50 cost 18:00:09 -rw-r--r-- 1 root root 88 Jan 11 17:50 cost.csv 18:00:09 + sudo chown -R jenkins:jenkins /w/workspace/xfoundry_device-modbus-go_PR-399/archives 18:00:09 + ls -al /w/workspace/xfoundry_device-modbus-go_PR-399/archives 18:00:09 total 16 18:00:09 drwxr-xr-x 3 jenkins jenkins 4096 Jan 11 17:50 . 18:00:09 drwxrwxr-x 11 jenkins jenkins 4096 Jan 11 17:50 .. 18:00:09 drwxr-xr-x 2 jenkins jenkins 4096 Jan 11 17:50 cost 18:00:09 -rw-r--r-- 1 jenkins jenkins 88 Jan 11 17:50 cost.csv [Pipeline] libraryResource [Pipeline] sh 18:00:10 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 18:00:11 ---> package-listing.sh 18:00:11 ++ tr '[:upper:]' '[:lower:]' 18:00:11 ++ facter osfamily 18:00:11 + OS_FAMILY=debian 18:00:11 + workspace=/w/workspace/xfoundry_device-modbus-go_PR-399 18:00:11 + START_PACKAGES=/tmp/packages_start.txt 18:00:11 + END_PACKAGES=/tmp/packages_end.txt 18:00:11 + DIFF_PACKAGES=/tmp/packages_diff.txt 18:00:11 + PACKAGES=/tmp/packages_start.txt 18:00:11 + '[' /w/workspace/xfoundry_device-modbus-go_PR-399 ']' 18:00:11 + PACKAGES=/tmp/packages_end.txt 18:00:11 + case "${OS_FAMILY}" in 18:00:11 + dpkg -l 18:00:11 + grep '^ii' 18:00:11 + '[' -f /tmp/packages_start.txt ']' 18:00:11 + '[' -f /tmp/packages_end.txt ']' 18:00:11 + diff /tmp/packages_start.txt /tmp/packages_end.txt 18:00:11 + '[' /w/workspace/xfoundry_device-modbus-go_PR-399 ']' 18:00:11 + mkdir -p /w/workspace/xfoundry_device-modbus-go_PR-399/archives/ 18:00:11 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/xfoundry_device-modbus-go_PR-399/archives/ [Pipeline] echo 18:00:11 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-399/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 18:00:11 + facter operatingsystem [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 18:00:12 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 18:00:12 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 18:00:12 prd-ubuntu20.04-docker-8c-8g-1893 does not seem to be running inside a container 18:00:12 $ 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-399/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-399 -v /w/workspace/xfoundry_device-modbus-go_PR-399:/w/workspace/xfoundry_device-modbus-go_PR-399:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-399@tmp:/w/workspace/xfoundry_device-modbus-go_PR-399@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 18:00:12 $ docker top 6009f393ba5adc6eff61e77547d435f51a41fdb3c33d490b295afd8fb15b987c -eo pid,comm [Pipeline] { [Pipeline] sh 18:00:12 + touch /tmp/pre-build-complete [Pipeline] sh 18:00:13 + mkdir -p /var/log/sysstat [Pipeline] sh 18:00:13 + ls /var/log/sa-host 18:00:13 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 18:00:13 provisioning config files... 18:00:13 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-399@tmp/config9832643755528229527tmp [Pipeline] { [Pipeline] echo 18:00:13 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 18:00:13 ---> create-netrc.sh [Pipeline] } 18:00:13 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 18:00:14 ---> python-tools-install.sh [Pipeline] echo 18:00:14 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 18:00:14 ---> sudo-logs.sh 18:00:14 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 18:00:14 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 18:00:14 ---> job-cost.sh 18:00:14 lf-activate-venv: SKIPPING 18:00:14 DEBUG: total: 0.2199999988079071 18:00:14 INFO: Retrieving Stack Cost... 18:00:14 INFO: Retrieving Pricing Info for: v3-standard-8 18:00:15 INFO: Archiving Costs [Pipeline] echo 18:00:15 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 18:00:15 ---> logs-deploy.sh 18:00:15 lf-activate-venv: SKIPPING 18:00:15 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-modbus-go/PR-399/2 18:00:15 INFO: archiving workspace using pattern(s): 18:00:16 Archives upload complete. 18:00:16 INFO: archiving logs to Nexus