Pull request #504 opened Connecting to https://api.github.com using edgex-jenkins github personal access token Obtained Jenkinsfile from e9a611d3314405f2406eaa904f269061f02f7dd4+b2f2f615ccfcf5318ec79c2e71f89de9d6136a7c (c7606d803c720a4ff9fde359a3b951baa42bc24d) 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-ssh18101175927749944937.key > git ls-remote -h -t -- git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Found match: refs/tags/stable revision e143027787c0ac28563f7e92b6cefc600d3b7107 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-ssh4692980813207635448.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 e143027787c0ac28563f7e92b6cefc600d3b7107 The recommended git tool is: git using credential edgex-jenkins-ssh Cloning the remote Git repository Cloning with configured refspecs honoured and with tags Cloning repository git@github.com:edgexfoundry/edgex-global-pipelines.git > git init /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-504/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82 # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/edgex-global-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-504/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh14543886789242102365.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 > git config --add remote.origin.fetch +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Fetching with tags Fetching upstream changes from git@github.com:edgexfoundry/edgex-global-pipelines.git using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-504/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh2782231547541235808.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision e143027787c0ac28563f7e92b6cefc600d3b7107 (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f e143027787c0ac28563f7e92b6cefc600d3b7107 # timeout=10 Commit message: "Merge pull request #442 from ernestojeda/golang-1.21" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 > git --version # timeout=10 > git --version # 'git version 2.16.6' Excluding src/test/ from checkout of git git@github.com:edgexfoundry/edgex-global-pipelines.git so that 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-ssh18355459454616661631.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 Cloning the remote Git repository Cloning with configured refspecs honoured and without tags Cloning repository git@github.com:lfit/releng-pipelines.git > git init /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-504/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e # timeout=10 Fetching upstream changes from git@github.com:lfit/releng-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-504/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e@tmp/jenkins-gitclient-ssh654641900542469170.key > git fetch --no-tags --progress -- git@github.com:lfit/releng-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:lfit/releng-pipelines.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 Avoid second fetch Checking out Revision 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 > git --version # timeout=10 > git --version # 'git version 2.16.6' fatal: bad object e143027787c0ac28563f7e92b6cefc600d3b7107 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.21 USE_ALPINE: true DOCKER_FILE_PATH: Dockerfile DOCKER_BUILD_FILE_PATH: Dockerfile.build DOCKER_BUILD_CONTEXT: . DOCKER_BUILD_IMAGE_TARGET: builder DOCKER_IMAGE_NAME: device-modbus DOCKER_REGISTRY_NAMESPACE: DOCKER_NEXUS_REPO: staging BUILD_DOCKER_IMAGE: true PUSH_DOCKER_IMAGE: true BUILD_EXPERIMENTAL_DOCKER_IMAGE: false BUILD_STABLE_DOCKER_IMAGE: false SEMVER_BUMP_LEVEL: pre BUILD_SNAP: false PUBLISH_SWAGGER_DOCS: false SWAGGER_API_FOLDERS: openapi/v1 ARTIFACT_ROOT: archives/bin ARTIFACT_TYPES: docker SHOULD_BUILD: true BUILD_FAILURE_NOTIFY_LIST: edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org SNYK_DEBUG: false [Pipeline] node Running on prd-ubuntu20.04-docker-8c-8g-7541 in /w/workspace/xfoundry_device-modbus-go_PR-504 [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-504 # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git > git --version # timeout=10 > git --version # 'git version 2.25.1' using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 Merging remotes/origin/main commit b2f2f615ccfcf5318ec79c2e71f89de9d6136a7c into PR head commit e9a611d3314405f2406eaa904f269061f02f7dd4 > 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/504/head:refs/remotes/origin/PR-504 +refs/heads/main:refs/remotes/origin/main # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f e9a611d3314405f2406eaa904f269061f02f7dd4 # 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 b2f2f615ccfcf5318ec79c2e71f89de9d6136a7c # timeout=10 Merge succeeded, producing e9a611d3314405f2406eaa904f269061f02f7dd4 Checking out Revision e9a611d3314405f2406eaa904f269061f02f7dd4 (PR-504) Commit message: "build(deps): Bump github.com/edgexfoundry/device-sdk-go/v3" First time build. Skipping changelog. > git --version # timeout=10 > git --version # 'git version 2.25.1' fatal: bad object e143027787c0ac28563f7e92b6cefc600d3b7107 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 05:07:05 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 05:07:05 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 05:07:05 ========================================================= 05:07:05 EdgeX Global Pipelines Version Info 05:07:05 ========================================================= [Pipeline] libraryResource [Pipeline] sh > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f e9a611d3314405f2406eaa904f269061f02f7dd4 # timeout=10 05:07:06 ------------------- 05:07:06 stable info: 05:07:06 ------------------- 05:07:06 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 05:07:06 Commit SHA: e143027787c0ac28563f7e92b6cefc600d3b7107 05:07:06 Message: update stable to v1.0.254 05:07:07 ------------------- 05:07:07 experimental info: 05:07:07 ------------------- 05:07:07 Commited By: **** collab-it+edgex@linuxfoundation.org 05:07:07 Commit SHA: e143027787c0ac28563f7e92b6cefc600d3b7107 05:07:07 Message: update experimental to v1.0.254 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 05:07:07 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-modbus-go-settings [Pipeline] echo 05:07:07 [edgeXSetupEnvironment]: set envvar PROJECT = device-modbus-go [Pipeline] echo 05:07:07 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 05:07:07 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 05:07:07 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 05:07:07 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.21 [Pipeline] echo 05:07:07 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 05:07:07 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 05:07:07 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 05:07:07 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 05:07:07 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 05:07:07 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-modbus [Pipeline] echo 05:07:07 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 05:07:07 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 05:07:07 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 05:07:08 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 05:07:08 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 05:07:08 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 05:07:08 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 05:07:08 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 05:07:08 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 05:07:08 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 05:07:08 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 05:07:08 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 05:07:08 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 05:07:08 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 05:07:08 [edgeXSetupEnvironment]: set envvar SNYK_DEBUG = false [Pipeline] echo 05:07:08 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-504 [Pipeline] echo 05:07:08 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-504 [Pipeline] echo 05:07:08 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-504 [Pipeline] echo 05:07:08 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = e9a611d3314405f2406eaa904f269061f02f7dd4 [Pipeline] echo 05:07:08 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = e9a611d [Pipeline] echo 05:07:08 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 05:07:08 provisioning config files... 05:07:08 copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-504@tmp/config1835771395183345812tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 05:07:09 ---> docker-login.sh 05:07:09 nexus3.edgexfoundry.org:10001 05:07:09 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:07:09 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:07:09 Configure a credential helper to remove this warning. See 05:07:09 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:07:09 05:07:09 Login Succeeded 05:07:09 nexus3.edgexfoundry.org:10002 05:07:09 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:07:09 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:07:09 Configure a credential helper to remove this warning. See 05:07:09 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:07:09 05:07:09 Login Succeeded 05:07:09 nexus3.edgexfoundry.org:10003 05:07:09 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:07:09 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:07:09 Configure a credential helper to remove this warning. See 05:07:09 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:07:09 05:07:09 Login Succeeded 05:07:09 nexus3.edgexfoundry.org:10004 05:07:09 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:07:09 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:07:09 Configure a credential helper to remove this warning. See 05:07:09 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:07:09 05:07:09 Login Succeeded 05:07:09 docker.io 05:07:10 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:07:10 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:07:10 Configure a credential helper to remove this warning. See 05:07:10 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:07:10 05:07:10 Login Succeeded 05:07:10 ---> docker-login.sh ends [Pipeline] } 05:07:10 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 05:07:10 + git rev-list -1 --merges e9a611d3314405f2406eaa904f269061f02f7dd4~1..e9a611d3314405f2406eaa904f269061f02f7dd4 [Pipeline] echo 05:07:10 -----------> git rev-list -1 --merges e9a611d3314405f2406eaa904f269061f02f7dd4~1..e9a611d3314405f2406eaa904f269061f02f7dd4 e9a611d3314405f2406eaa904f269061f02f7dd4 [false] [Pipeline] sh 05:07:11 + git log --format=format:%s -1 e9a611d3314405f2406eaa904f269061f02f7dd4 [Pipeline] echo 05:07:11 ========================================================= 05:07:11 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 05:07:11 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 05:07:11 + git log --format=format:%s -1 e9a611d3314405f2406eaa904f269061f02f7dd4 [Pipeline] echo 05:07:11 [semverPrep] GIT_COMMIT: e9a611d3314405f2406eaa904f269061f02f7dd4, Commit Message: build(deps): Bump github.com/edgexfoundry/device-sdk-go/v3 [Pipeline] echo 05:07:11 [semverPrep] This is not a build commit. [Pipeline] sh 05:07:12 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 05:07:12 + grep -v github /etc/ssh/ssh_known_hosts 05:07:12 + [ -e /tmp/ssh_known_hosts ] 05:07:12 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 05:07:12 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 05:07:12 + sudo tee -a /etc/ssh/ssh_known_hosts 05:07:12 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:07:12 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 05:07:12 05:07:12 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:07:12 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 05:07:12 0.1.4: Pulling from edgex-devops/py-git-semver 05:07:12 b85a868b505f: Pulling fs layer 05:07:12 e2be974225ed: Pulling fs layer 05:07:12 339a4e72a1f5: Pulling fs layer 05:07:12 988bab9f4d93: Pulling fs layer 05:07:12 1469e6f7b9e6: Pulling fs layer 05:07:12 eaf3925da568: Pulling fs layer 05:07:12 bab4dde63d76: Pulling fs layer 05:07:12 bde34c3a00c8: Pulling fs layer 05:07:12 b352a97aabf1: Pulling fs layer 05:07:12 4872d77fe225: Pulling fs layer 05:07:12 5851b861e8e6: Pulling fs layer 05:07:12 1469e6f7b9e6: Waiting 05:07:12 988bab9f4d93: Waiting 05:07:12 eaf3925da568: Waiting 05:07:12 bab4dde63d76: Waiting 05:07:12 bde34c3a00c8: Waiting 05:07:12 b352a97aabf1: Waiting 05:07:12 4872d77fe225: Waiting 05:07:12 5851b861e8e6: Waiting 05:07:12 e2be974225ed: Download complete 05:07:12 988bab9f4d93: Verifying Checksum 05:07:12 988bab9f4d93: Download complete 05:07:12 1469e6f7b9e6: Verifying Checksum 05:07:12 1469e6f7b9e6: Download complete 05:07:13 339a4e72a1f5: Verifying Checksum 05:07:13 339a4e72a1f5: Download complete 05:07:13 eaf3925da568: Verifying Checksum 05:07:13 eaf3925da568: Download complete 05:07:13 bde34c3a00c8: Verifying Checksum 05:07:13 bde34c3a00c8: Download complete 05:07:13 b352a97aabf1: Verifying Checksum 05:07:13 b352a97aabf1: Download complete 05:07:13 4872d77fe225: Verifying Checksum 05:07:13 4872d77fe225: Download complete 05:07:13 5851b861e8e6: Download complete 05:07:13 b85a868b505f: Verifying Checksum 05:07:13 b85a868b505f: Download complete 05:07:13 bab4dde63d76: Verifying Checksum 05:07:13 bab4dde63d76: Download complete 05:07:14 b85a868b505f: Pull complete 05:07:14 e2be974225ed: Pull complete 05:07:14 339a4e72a1f5: Pull complete 05:07:14 988bab9f4d93: Pull complete 05:07:15 1469e6f7b9e6: Pull complete 05:07:15 eaf3925da568: Pull complete 05:07:16 bab4dde63d76: Pull complete 05:07:16 bde34c3a00c8: Pull complete 05:07:16 b352a97aabf1: Pull complete 05:07:16 4872d77fe225: Pull complete 05:07:17 5851b861e8e6: Pull complete 05:07:17 Digest: sha256:59a28aa3b44c0bc56b9c3d2e9ecabe42e63693d939cc6e425eb8786f29f663d8 05:07:17 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 05:07:17 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 05:07:17 prd-ubuntu20.04-docker-8c-8g-7541 does not seem to be running inside a container 05:07:17 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/xfoundry_device-modbus-go_PR-504 -v /w/workspace/xfoundry_device-modbus-go_PR-504:/w/workspace/xfoundry_device-modbus-go_PR-504:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-504@tmp:/w/workspace/xfoundry_device-modbus-go_PR-504@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 ******** nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 cat 05:07:19 $ docker top e04508d6513f39a20da8a38b627779b718e15a343437bf16f6f4e6b69c8fb9b5 -eo pid,comm [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 05:07:19 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 05:07:19 [ssh-agent] Looking for ssh-agent implementation... 05:07:19 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 05:07:19 $ docker exec e04508d6513f39a20da8a38b627779b718e15a343437bf16f6f4e6b69c8fb9b5 ssh-agent 05:07:19 SSH_AUTH_SOCK=/tmp/ssh-shx6ZCvgHYf4/agent.32 05:07:19 SSH_AGENT_PID=38 05:07:19 Running ssh-add (command line suppressed) 05:07:19 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-504@tmp/private_key_18375006216808442666.key (/w/workspace/xfoundry_device-modbus-go_PR-504@tmp/private_key_18375006216808442666.key) 05:07:19 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 05:07:20 + git tag --points-at HEAD [Pipeline] } 05:07:20 $ docker exec --env ******** --env ******** e04508d6513f39a20da8a38b627779b718e15a343437bf16f6f4e6b69c8fb9b5 ssh-agent -k 05:07:20 unset SSH_AUTH_SOCK; 05:07:20 unset SSH_AGENT_PID; 05:07:20 echo Agent pid 38 killed; 05:07:20 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 05:07:20 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 05:07:20 [ssh-agent] Looking for ssh-agent implementation... 05:07:20 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 05:07:20 $ docker exec e04508d6513f39a20da8a38b627779b718e15a343437bf16f6f4e6b69c8fb9b5 ssh-agent 05:07:20 SSH_AUTH_SOCK=/tmp/ssh-YMb4awRxnxRc/agent.71 05:07:20 SSH_AGENT_PID=77 05:07:20 Running ssh-add (command line suppressed) 05:07:20 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-504@tmp/private_key_300116820152092850.key (/w/workspace/xfoundry_device-modbus-go_PR-504@tmp/private_key_300116820152092850.key) 05:07:20 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 05:07:21 + git semver init 05:07:21 2023-09-21 05:07:21,225 [run_init] DEBUG init version:0.0.0 force:False 05:07:21 2023-09-21 05:07:21,225 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/xfoundry_device-modbus-go_PR-504/.semver 05:07:21 2023-09-21 05:07:21,226 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-modbus-go.git /w/workspace/xfoundry_device-modbus-go_PR-504/.semver 05:07:21 2023-09-21 05:07:21,226 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-modbus-go.git', '/w/workspace/xfoundry_device-modbus-go_PR-504/.semver'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-504, universal_newlines=False, shell=None, istream=None) 05:07:22 2023-09-21 05:07:22,033 [append_file] DEBUG append to file:/w/workspace/xfoundry_device-modbus-go_PR-504/.git/info/exclude 05:07:22 2023-09-21 05:07:22,033 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/xfoundry_device-modbus-go_PR-504/.semver/PR-504 with force:False 05:07:22 2023-09-21 05:07:22,034 [write_file] DEBUG write to file:/w/workspace/xfoundry_device-modbus-go_PR-504/.semver/PR-504 05:07:22 2023-09-21 05:07:22,038 [execute] INFO git cat-file --batch-check 05:07:22 2023-09-21 05:07:22,038 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-504/.semver, universal_newlines=False, shell=None, istream=) 05:07:22 2023-09-21 05:07:22,043 [execute] INFO git cat-file --batch 05:07:22 2023-09-21 05:07:22,043 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-504/.semver, universal_newlines=False, shell=None, istream=) 05:07:22 2023-09-21 05:07:22,046 [read_version] DEBUG read version from /w/workspace/xfoundry_device-modbus-go_PR-504/.semver/PR-504 05:07:22 0.0.0 [Pipeline] } 05:07:22 $ docker exec --env ******** --env ******** e04508d6513f39a20da8a38b627779b718e15a343437bf16f6f4e6b69c8fb9b5 ssh-agent -k 05:07:22 unset SSH_AUTH_SOCK; 05:07:22 unset SSH_AGENT_PID; 05:07:22 echo Agent pid 77 killed; 05:07:22 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 05:07:22 + git semver [Pipeline] } 05:07:23 $ docker stop --time=1 e04508d6513f39a20da8a38b627779b718e15a343437bf16f6f4e6b69c8fb9b5 05:07:24 $ docker rm -f --volumes e04508d6513f39a20da8a38b627779b718e15a343437bf16f6f4e6b69c8fb9b5 [Pipeline] // withDockerContainer [Pipeline] sh 05:07:24 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 05:07:24 Stashed 1 file(s) [Pipeline] echo 05:07:24 [edgeXSemver]: initialized semver on version 0.0.0 [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] parallel [Pipeline] { (Branch: amd64) [Pipeline] { (Branch: arm64) [Pipeline] stage [Pipeline] { (amd64) [Pipeline] stage [Pipeline] { (arm64) [Pipeline] withEnv [Pipeline] { [Pipeline] node [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 05:07:25 provisioning config files... 05:07:25 copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-504@tmp/config17673944156300532397tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 05:07:25 ---> docker-login.sh 05:07:25 nexus3.edgexfoundry.org:10001 05:07:25 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:07:25 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:07:25 Configure a credential helper to remove this warning. See 05:07:25 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:07:25 05:07:25 Login Succeeded 05:07:25 nexus3.edgexfoundry.org:10002 05:07:25 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:07:25 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:07:25 Configure a credential helper to remove this warning. See 05:07:25 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:07:25 05:07:25 Login Succeeded 05:07:25 nexus3.edgexfoundry.org:10003 05:07:26 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:07:26 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:07:26 Configure a credential helper to remove this warning. See 05:07:26 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:07:26 05:07:26 Login Succeeded 05:07:26 nexus3.edgexfoundry.org:10004 05:07:26 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:07:26 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:07:26 Configure a credential helper to remove this warning. See 05:07:26 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:07:26 05:07:26 Login Succeeded 05:07:26 docker.io 05:07:26 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:07:26 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:07:26 Configure a credential helper to remove this warning. See 05:07:26 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:07:26 05:07:26 Login Succeeded 05:07:26 ---> docker-login.sh ends [Pipeline] } 05:07:26 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 05:07:26 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 05:07:26 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 05:07:26 ========================================================= 05:07:26 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.21-alpine] 05:07:26 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:07:27 + docker build -t ci-base-image-x86_64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.21-alpine --build-arg MAKE=echo noop --target=builder . 05:07:27 Sending build context to Docker daemon 6.482MB 05:07:27 Step 1/10 : ARG BASE=golang:1.21-alpine3.18 05:07:27 Step 2/10 : FROM ${BASE} AS builder 05:07:27 1.21-alpine: Pulling from edgex-devops/edgex-golang-base 05:07:27 7264a8db6415: Pulling fs layer 05:07:27 c4d48a809fc2: Pulling fs layer 05:07:27 4f1c88b9dad5: Pulling fs layer 05:07:27 ad3a456e5733: Pulling fs layer 05:07:27 33e27b845d1e: Pulling fs layer 05:07:27 c68163c4e522: Pulling fs layer 05:07:27 50da416c3ac9: Pulling fs layer 05:07:27 23d2d4c4bb30: Pulling fs layer 05:07:27 ad3a456e5733: Waiting 05:07:27 33e27b845d1e: Waiting 05:07:27 c68163c4e522: Waiting 05:07:27 50da416c3ac9: Waiting 05:07:27 23d2d4c4bb30: Waiting 05:07:27 c4d48a809fc2: Verifying Checksum 05:07:27 c4d48a809fc2: Download complete 05:07:27 ad3a456e5733: Verifying Checksum 05:07:27 ad3a456e5733: Download complete 05:07:27 33e27b845d1e: Download complete 05:07:27 7264a8db6415: Download complete 05:07:27 c68163c4e522: Verifying Checksum 05:07:27 c68163c4e522: Download complete 05:07:27 7264a8db6415: Pull complete 05:07:27 c4d48a809fc2: Pull complete 05:07:27 23d2d4c4bb30: Verifying Checksum 05:07:27 23d2d4c4bb30: Download complete 05:07:27 4f1c88b9dad5: Verifying Checksum 05:07:27 4f1c88b9dad5: Download complete 05:07:28 50da416c3ac9: Download complete 05:07:30 4f1c88b9dad5: Pull complete 05:07:30 ad3a456e5733: Pull complete 05:07:30 33e27b845d1e: Pull complete 05:07:30 c68163c4e522: Pull complete 05:07:32 50da416c3ac9: Pull complete 05:07:33 23d2d4c4bb30: Pull complete 05:07:33 Digest: sha256:869f8081a9cc57a47d9be3c92245bb8518e7edea9beab93563b77b0fbed5fa8c 05:07:33 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.21-alpine 05:07:33 ---> 0786185ac409 05:07:33 Step 3/10 : ARG ADD_BUILD_TAGS="" 05:07:36 ---> Running in b34a086ce472 05:07:36 Removing intermediate container b34a086ce472 05:07:36 ---> 9f991dfdb68d 05:07:36 Step 4/10 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 05:07:36 ---> Running in 269b43f9971d 05:07:36 Removing intermediate container 269b43f9971d 05:07:36 ---> 682d967496e4 05:07:36 Step 5/10 : RUN apk add --update --no-cache make git openssh 05:07:36 ---> Running in cdc75ac79f21 05:07:36 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/APKINDEX.tar.gz 05:07:36 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/x86_64/APKINDEX.tar.gz 05:07:36 (1/8) Installing openssh-keygen (9.3_p2-r0) 05:07:36 (2/8) Installing libedit (20221030.3.1-r1) 05:07:36 (3/8) Installing openssh-client-common (9.3_p2-r0) 05:07:36 (4/8) Installing openssh-client-default (9.3_p2-r0) 05:07:36 (5/8) Installing openssh-sftp-server (9.3_p2-r0) 05:07:36 (6/8) Installing openssh-server-common (9.3_p2-r0) 05:07:36 (7/8) Installing openssh-server (9.3_p2-r0) 05:07:36 (8/8) Installing openssh (9.3_p2-r0) 05:07:36 Executing busybox-1.36.1-r2.trigger 05:07:36 OK: 270 MiB in 60 packages 05:07:37 Removing intermediate container cdc75ac79f21 05:07:37 ---> 8c15ccca36cf 05:07:37 Step 6/10 : WORKDIR /device-modbus-go 05:07:37 ---> Running in f876c7d6af9f 05:07:37 Removing intermediate container f876c7d6af9f 05:07:37 ---> 24f128e79efd 05:07:37 Step 7/10 : COPY go.mod vendor* ./ 05:07:37 ---> e9c1e4e080e0 05:07:37 Step 8/10 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 05:07:37 ---> Running in 0a02db961597 05:07:40 Still waiting to schedule task 05:07:40 All nodes of label ‘ubuntu20.04-docker-arm64-4c-16g’ are offline 05:08:04 Removing intermediate container 0a02db961597 05:08:04 ---> 9b42269e8d22 05:08:04 Step 9/10 : COPY . . 05:08:04 ---> d0a5577ade21 05:08:04 Step 10/10 : RUN ${MAKE} 05:08:04 ---> Running in 00be0dea0444 05:08:04 noop 05:08:04 Removing intermediate container 00be0dea0444 05:08:04 ---> a4cd94af893e 05:08:04 Successfully built a4cd94af893e 05:08:04 Successfully tagged ci-base-image-x86_64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:08:05 + docker inspect -f . ci-base-image-x86_64 05:08:05 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 05:08:05 prd-ubuntu20.04-docker-8c-8g-7541 does not seem to be running inside a container 05:08:05 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/xfoundry_device-modbus-go_PR-504 -v /w/workspace/xfoundry_device-modbus-go_PR-504:/w/workspace/xfoundry_device-modbus-go_PR-504:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-504@tmp:/w/workspace/xfoundry_device-modbus-go_PR-504@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 ******** ci-base-image-x86_64 cat 05:08:05 $ docker top cb0914cd12e1bf8127f65e7e6b6f87e1cbb78330959d8de07d01e6a4259b5426 -eo pid,comm [Pipeline] { [Pipeline] sh 05:08:05 + go version 05:08:05 go version go1.21.0 linux/amd64 [Pipeline] } 05:08:06 $ docker stop --time=1 cb0914cd12e1bf8127f65e7e6b6f87e1cbb78330959d8de07d01e6a4259b5426 05:08:07 $ docker rm -f --volumes cb0914cd12e1bf8127f65e7e6b6f87e1cbb78330959d8de07d01e6a4259b5426 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:08:08 + docker inspect -f . ci-base-image-x86_64 05:08:08 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 05:08:08 prd-ubuntu20.04-docker-8c-8g-7541 does not seem to be running inside a container 05:08:08 $ 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-504 -v /w/workspace/xfoundry_device-modbus-go_PR-504:/w/workspace/xfoundry_device-modbus-go_PR-504:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-504@tmp:/w/workspace/xfoundry_device-modbus-go_PR-504@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 ******** ci-base-image-x86_64 cat 05:08:08 $ docker top b63450a2d3fa174381d124a2df0ac4b337924b9d4bfa2ed3520edd7c4ffdb6cd -eo pid,comm [Pipeline] { [Pipeline] sh 05:08:08 + git config --global --add safe.directory /w/workspace/xfoundry_device-modbus-go_PR-504 [Pipeline] fileExists [Pipeline] sh 05:08:09 + make test 05:08:09 go test ./... -coverprofile=coverage.out 05:08:10 ? github.com/edgexfoundry/device-modbus-go [no test files] 05:08:20 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 05:08:20 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.010s coverage: 47.9% of statements 05:08:27 go vet ./... 05:08:29 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 05:08:29 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 05:08:29 ./bin/test-attribution-txt.sh [Pipeline] echo 05:08:29 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 05:08:29 $ docker stop --time=1 b63450a2d3fa174381d124a2df0ac4b337924b9d4bfa2ed3520edd7c4ffdb6cd 05:08:32 $ docker rm -f --volumes b63450a2d3fa174381d124a2df0ac4b337924b9d4bfa2ed3520edd7c4ffdb6cd [Pipeline] // withDockerContainer [Pipeline] sh 05:08:33 + sudo chown -R jenkins:jenkins . [Pipeline] stash 05:08:33 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 05:08:33 + sudo chown -R jenkins:jenkins . [Pipeline] sh 05:08:34 + ls -al . 05:08:34 total 192 05:08:34 drwxrwxr-x 10 jenkins jenkins 4096 Sep 21 05:08 . 05:08:34 drwxrwxr-x 4 jenkins jenkins 4096 Sep 21 05:07 .. 05:08:34 -rw-rw-r-- 1 jenkins jenkins 140 Sep 21 05:07 .dockerignore 05:08:34 drwxrwxr-x 8 jenkins jenkins 4096 Sep 21 05:08 .git 05:08:34 drwxrwxr-x 3 jenkins jenkins 4096 Sep 21 05:07 .github 05:08:34 -rw-rw-r-- 1 jenkins jenkins 331 Sep 21 05:07 .gitignore 05:08:34 -rw-rw-r-- 1 jenkins jenkins 41 Sep 21 05:07 .golangci.yml 05:08:34 drwxr-xr-x 3 jenkins jenkins 4096 Sep 21 05:07 .semver 05:08:34 -rw-rw-r-- 1 jenkins jenkins 11101 Sep 21 05:07 Attribution.txt 05:08:34 -rw-rw-r-- 1 jenkins jenkins 14764 Sep 21 05:07 CHANGELOG.md 05:08:34 -rw-rw-r-- 1 jenkins jenkins 1365 Sep 21 05:07 Dockerfile 05:08:34 -rw-rw-r-- 1 jenkins jenkins 677 Sep 21 05:07 GOVERNANCE.md 05:08:34 -rw-rw-r-- 1 jenkins jenkins 680 Sep 21 05:07 Jenkinsfile 05:08:34 -rw-rw-r-- 1 jenkins jenkins 11340 Sep 21 05:07 LICENSE 05:08:34 -rw-rw-r-- 1 jenkins jenkins 1936 Sep 21 05:07 Makefile 05:08:34 -rw-rw-r-- 1 jenkins jenkins 622 Sep 21 05:07 OWNERS.md 05:08:34 -rw-rw-r-- 1 jenkins jenkins 4578 Sep 21 05:07 README.md 05:08:34 -rw-rw-r-- 1 jenkins jenkins 5 Sep 21 05:07 VERSION 05:08:34 drwxrwxr-x 2 jenkins jenkins 4096 Sep 21 05:07 bin 05:08:34 drwxrwxr-x 3 jenkins jenkins 4096 Sep 21 05:07 cmd 05:08:34 -rw-r--r-- 1 jenkins jenkins 24334 Sep 21 05:08 coverage.out 05:08:34 -rw-rw-r-- 1 jenkins jenkins 3941 Sep 21 05:07 go.mod 05:08:34 -rw-rw-r-- 1 jenkins jenkins 35965 Sep 21 05:07 go.sum 05:08:34 drwxrwxr-x 3 jenkins jenkins 4096 Sep 21 05:07 internal 05:08:34 drwxrwxr-x 2 jenkins jenkins 4096 Sep 21 05:07 simulator 05:08:34 drwxrwxr-x 4 jenkins jenkins 4096 Sep 21 05:07 snap 05:08:34 -rw-rw-r-- 1 jenkins jenkins 229 Sep 21 05:07 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:08:34 + 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=e9a611d3314405f2406eaa904f269061f02f7dd4 --label arch=amd64 --label version=0.0.0 . 05:08:34 Sending build context to Docker daemon 6.507MB 05:08:34 Step 1/22 : ARG BASE=golang:1.21-alpine3.18 05:08:34 Step 2/22 : FROM ${BASE} AS builder 05:08:34 ---> a4cd94af893e 05:08:34 Step 3/22 : ARG ADD_BUILD_TAGS="" 05:08:34 ---> Running in c3fa06ce9aee 05:08:34 Removing intermediate container c3fa06ce9aee 05:08:34 ---> e0580eeacbad 05:08:34 Step 4/22 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 05:08:34 ---> Running in 111c5aaf76ae 05:08:34 Removing intermediate container 111c5aaf76ae 05:08:34 ---> a8373eba4b96 05:08:34 Step 5/22 : RUN apk add --update --no-cache make git openssh 05:08:34 ---> Running in 6954752d842a 05:08:35 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/APKINDEX.tar.gz 05:08:35 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/x86_64/APKINDEX.tar.gz 05:08:35 OK: 270 MiB in 60 packages 05:08:35 Removing intermediate container 6954752d842a 05:08:35 ---> c8295b0831eb 05:08:35 Step 6/22 : WORKDIR /device-modbus-go 05:08:36 ---> Running in 867b6b77beab 05:08:36 Removing intermediate container 867b6b77beab 05:08:36 ---> 787822c716c0 05:08:36 Step 7/22 : COPY go.mod vendor* ./ 05:08:36 ---> 266b94f8c265 05:08:36 Step 8/22 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 05:08:36 ---> Running in 7665a6bb35a6 05:08:36 Removing intermediate container 7665a6bb35a6 05:08:36 ---> 89a4a046d6b2 05:08:36 Step 9/22 : COPY . . 05:08:37 ---> 6d00f9119162 05:08:37 Step 10/22 : RUN ${MAKE} 05:08:37 ---> Running in 7327c50c8302 05:08:37 CGO_ENABLED=0 go build -tags "" -ldflags "-X github.com/edgexfoundry/device-modbus-go.Version=0.0.0 -X github.com/edgexfoundry/device-sdk-go/v3/internal/common.SDKVersion=v3.1.0-dev.29" -trimpath -mod=readonly -o cmd/device-modbus ./cmd 05:08:55 Removing intermediate container 7327c50c8302 05:08:55 ---> faea2471e936 05:08:55 Step 11/22 : FROM alpine:3.18 05:08:55 3.18: Pulling from library/alpine 05:08:55 7264a8db6415: Already exists 05:08:55 Digest: sha256:7144f7bab3d4c2648d7e59409f15ec52a18006a128c733fcff20d3a4a54ba44a 05:08:55 Status: Downloaded newer image for alpine:3.18 05:08:55 ---> 7e01a0d0a1dc 05:08:55 Step 12/22 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IoTech Ltd' 05:08:55 ---> Running in 24ec45798ffc 05:08:55 Removing intermediate container 24ec45798ffc 05:08:55 ---> cba3e81986b0 05:08:55 Step 13/22 : RUN apk add --update --no-cache dumb-init 05:08:55 ---> Running in f26fa3b92877 05:08:55 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/APKINDEX.tar.gz 05:08:55 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/x86_64/APKINDEX.tar.gz 05:08:55 (1/1) Installing dumb-init (1.2.5-r2) 05:08:55 Executing busybox-1.36.1-r2.trigger 05:08:55 OK: 7 MiB in 16 packages 05:08:55 Removing intermediate container f26fa3b92877 05:08:55 ---> 6ee501d83fbe 05:08:55 Step 14/22 : COPY --from=builder /device-modbus-go/cmd / 05:08:56 ---> c9d3ea3864d2 05:08:56 Step 15/22 : COPY --from=builder /device-modbus-go/LICENSE / 05:08:56 ---> 9aa8442d8e26 05:08:56 Step 16/22 : COPY --from=builder /device-modbus-go/Attribution.txt / 05:08:56 ---> 79df7a2e4a13 05:08:56 Step 17/22 : EXPOSE 59901 05:08:56 ---> Running in 6d6d9c880a0e 05:08:57 Removing intermediate container 6d6d9c880a0e 05:08:57 ---> 8cc7c30b774a 05:08:57 Step 18/22 : ENTRYPOINT ["/device-modbus"] 05:08:57 ---> Running in 59797cfa543b 05:08:57 Removing intermediate container 59797cfa543b 05:08:57 ---> 7a7c1bb91885 05:08:57 Step 19/22 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 05:08:57 ---> Running in cd9831860623 05:08:57 Removing intermediate container cd9831860623 05:08:57 ---> 1367dae5bebc 05:08:57 Step 20/22 : LABEL arch=amd64 05:08:57 ---> Running in 20c242775c66 05:08:57 Removing intermediate container 20c242775c66 05:08:57 ---> c07b366f94d1 05:08:57 Step 21/22 : LABEL git_sha=e9a611d3314405f2406eaa904f269061f02f7dd4 05:08:57 ---> Running in 5e20bbad661b 05:08:57 Removing intermediate container 5e20bbad661b 05:08:57 ---> bb9cb7053df3 05:08:57 Step 22/22 : LABEL version=0.0.0 05:08:57 ---> Running in 3f8fbc73dee8 05:08:57 Removing intermediate container 3f8fbc73dee8 05:08:57 ---> f008bf5c5fe0 05:08:57 [Warning] One or more build-args [ARCH] were not consumed 05:08:57 Successfully built f008bf5c5fe0 05:08:57 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 05:08:58 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 05:08:58 05:08:58 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:08:58 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 05:08:58 latest: Pulling from edgex-lftools-log-publisher 05:08:58 5eb5b503b376: Pulling fs layer 05:08:58 5c69ac0246d0: Pulling fs layer 05:08:58 ec43610c2a17: Pulling fs layer 05:08:58 3a2ae6a8a46f: Pulling fs layer 05:08:58 33b1e0a273af: Pulling fs layer 05:08:58 5d3b04190fa2: Pulling fs layer 05:08:58 2f39f015ded8: Pulling fs layer 05:08:58 3a2ae6a8a46f: Waiting 05:08:58 33b1e0a273af: Waiting 05:08:58 2f39f015ded8: Waiting 05:08:58 5d3b04190fa2: Waiting 05:08:58 5c69ac0246d0: Download complete 05:08:58 3a2ae6a8a46f: Verifying Checksum 05:08:58 3a2ae6a8a46f: Download complete 05:08:58 33b1e0a273af: Verifying Checksum 05:08:58 33b1e0a273af: Download complete 05:08:58 5d3b04190fa2: Download complete 05:08:58 ec43610c2a17: Verifying Checksum 05:08:58 ec43610c2a17: Download complete 05:08:58 5eb5b503b376: Verifying Checksum 05:08:58 5eb5b503b376: Download complete 05:08:59 2f39f015ded8: Download complete 05:08:59 5eb5b503b376: Pull complete 05:08:59 5c69ac0246d0: Pull complete 05:09:00 ec43610c2a17: Pull complete 05:09:00 3a2ae6a8a46f: Pull complete 05:09:00 33b1e0a273af: Pull complete 05:09:00 5d3b04190fa2: Pull complete 05:09:04 2f39f015ded8: Pull complete 05:09:04 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 05:09:04 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 05:09:04 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 05:09:05 prd-ubuntu20.04-docker-8c-8g-7541 does not seem to be running inside a container 05:09:05 $ 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-504 -v /w/workspace/xfoundry_device-modbus-go_PR-504:/w/workspace/xfoundry_device-modbus-go_PR-504:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-504@tmp:/w/workspace/xfoundry_device-modbus-go_PR-504@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 ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 05:09:08 $ docker top 82e74244cff49e8a4c0e752da0b0dff06c1c04cc4ebbd4d4f31d7eeae7126c8b -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 05:09:08 ---> job-cost.sh 05:09:08 lf-activate-venv: SKIPPING 05:09:08 INFO: No Stack... 05:09:09 INFO: Retrieving Pricing Info for: v3-standard-8 05:09:09 INFO: Archiving Costs [Pipeline] sh 05:09:10 + cut -d, -f6 05:09:10 + cat /w/workspace/xfoundry_device-modbus-go_PR-504/archives/cost.csv [Pipeline] lock 05:09:10 Trying to acquire lock on [jenkins-edgexfoundry-device-modbus-go-PR-504-1-stack-cost] 05:09:10 Resource [jenkins-edgexfoundry-device-modbus-go-PR-504-1-stack-cost] did not exist. Created. 05:09:10 Lock acquired on [jenkins-edgexfoundry-device-modbus-go-PR-504-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 05:09:10 + echo total: 0.2199999988079071 [Pipeline] stash 05:09:10 Stashed 1 file(s) [Pipeline] } 05:09:10 Lock released on resource [jenkins-edgexfoundry-device-modbus-go-PR-504-1-stack-cost] [Pipeline] // lock [Pipeline] } 05:09:10 $ docker stop --time=1 82e74244cff49e8a4c0e752da0b0dff06c1c04cc4ebbd4d4f31d7eeae7126c8b 05:09:11 $ docker rm -f --volumes 82e74244cff49e8a4c0e752da0b0dff06c1c04cc4ebbd4d4f31d7eeae7126c8b [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 05:09:12 Running on prd-ubuntu20.04-docker-arm64-4c-16g-7544 in /w/workspace/xfoundry_device-modbus-go_PR-504 [Pipeline] { [Pipeline] ws 05:09:12 Running in /w/workspace/device-modbus-go/1 [Pipeline] { [Pipeline] checkout 05:09:12 Selected Git installation does not exist. Using Default 05:09:12 The recommended git tool is: NONE 05:09:17 using credential edgex-jenkins-ssh 05:09:17 Cloning the remote Git repository 05:09:17 Cloning repository git@github.com:edgexfoundry/device-modbus-go.git 05:09:17 > git init /w/workspace/device-modbus-go/1 # timeout=10 05:09:18 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 05:09:18 > git --version # timeout=10 05:09:18 > git --version # 'git version 2.25.1' 05:09:18 using GIT_SSH to set credentials SSH Credentials for GitHub 05:09:18 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 05:09:19 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 05:09:19 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 05:09:20 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 05:09:20 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 05:09:20 using GIT_SSH to set credentials SSH Credentials for GitHub 05:09:20 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/pull/504/head:refs/remotes/origin/PR-504 +refs/heads/main:refs/remotes/origin/main # timeout=10 05:09:20 Merging remotes/origin/main commit b2f2f615ccfcf5318ec79c2e71f89de9d6136a7c into PR head commit e9a611d3314405f2406eaa904f269061f02f7dd4 05:09:20 Merge succeeded, producing e9a611d3314405f2406eaa904f269061f02f7dd4 05:09:20 Checking out Revision e9a611d3314405f2406eaa904f269061f02f7dd4 (PR-504) 05:09:21 Commit message: "build(deps): Bump github.com/edgexfoundry/device-sdk-go/v3" 05:09:21 > git --version # timeout=10 05:09:21 > git --version # 'git version 2.25.1' 05:09:21 fatal: bad object e143027787c0ac28563f7e92b6cefc600d3b7107 05:09:20 > git config core.sparsecheckout # timeout=10 05:09:20 > git checkout -f e9a611d3314405f2406eaa904f269061f02f7dd4 # timeout=10 05:09:20 > git remote # timeout=10 05:09:20 > git config --get remote.origin.url # timeout=10 05:09:20 using GIT_SSH to set credentials SSH Credentials for GitHub 05:09:20 > git merge b2f2f615ccfcf5318ec79c2e71f89de9d6136a7c # timeout=10 05:09:20 > git rev-parse HEAD^{commit} # timeout=10 05:09:20 > git config core.sparsecheckout # timeout=10 05:09:20 > git checkout -f e9a611d3314405f2406eaa904f269061f02f7dd4 # timeout=10 [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 05:09:22 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 05:09:22 % Total % Received % Xferd Average Speed Time Time Time Current 05:09:22 Dload Upload Total Spent Left Speed 05:09:22 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 12751 100 12751 0 0 102k 0 --:--:-- --:--:-- --:--:-- 102k [Pipeline] sh 05:09:23 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 05:09:23 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 05:09:23 + sudo tee /etc/docker/daemon.new 05:09:23 { 05:09:23 "registry-mirrors": [ 05:09:23 "https://nexus3.edgexfoundry.org:10001" 05:09:23 ], 05:09:23 "bip": "10.250.0.254/24", 05:09:23 "hosts": [ 05:09:23 "tcp://0.0.0.0:5555", 05:09:23 "unix:///var/run/docker.sock" 05:09:23 ], 05:09:23 "mtu": 1458, 05:09:23 "selinux-enabled": true, 05:09:23 "seccomp-profile": "/etc/docker/seccomp.json" 05:09:23 } [Pipeline] sh 05:09:23 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 05:09:24 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 05:09:42 provisioning config files... 05:09:42 copy managed file [device-modbus-go-settings] to file:/w/workspace/device-modbus-go/1@tmp/config13861606393105857693tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 05:09:43 ---> docker-login.sh 05:09:43 nexus3.edgexfoundry.org:10001 05:09:43 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:09:43 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:09:43 Configure a credential helper to remove this warning. See 05:09:43 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:09:43 05:09:43 Login Succeeded 05:09:43 nexus3.edgexfoundry.org:10002 05:09:43 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:09:43 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:09:43 Configure a credential helper to remove this warning. See 05:09:43 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:09:43 05:09:43 Login Succeeded 05:09:43 nexus3.edgexfoundry.org:10003 05:09:44 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:09:44 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:09:44 Configure a credential helper to remove this warning. See 05:09:44 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:09:44 05:09:44 Login Succeeded 05:09:44 nexus3.edgexfoundry.org:10004 05:09:44 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:09:44 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:09:44 Configure a credential helper to remove this warning. See 05:09:44 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:09:44 05:09:44 Login Succeeded 05:09:44 docker.io 05:09:44 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:09:44 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:09:44 Configure a credential helper to remove this warning. See 05:09:44 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:09:44 05:09:44 Login Succeeded 05:09:45 ---> docker-login.sh ends [Pipeline] } 05:09:45 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 05:09:45 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 05:09:45 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 05:09:45 ========================================================= 05:09:45 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.21-alpine] 05:09:45 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:09:46 + docker build -t ci-base-image-arm64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.21-alpine --build-arg MAKE=echo noop --target=builder . 05:09:46 Sending build context to Docker daemon 3.365MB 05:09:46 Step 1/10 : ARG BASE=golang:1.21-alpine3.18 05:09:46 Step 2/10 : FROM ${BASE} AS builder 05:09:46 1.21-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 05:09:46 9fda8d8052c6: Pulling fs layer 05:09:46 5d54e960e981: Pulling fs layer 05:09:46 c4a7e357bf2a: Pulling fs layer 05:09:46 f0e02332f6b5: Pulling fs layer 05:09:46 cefa15bbcfad: Pulling fs layer 05:09:46 17808c966233: Pulling fs layer 05:09:46 f4c1fc716caa: Pulling fs layer 05:09:46 f0e02332f6b5: Waiting 05:09:46 cefa15bbcfad: Waiting 05:09:46 17808c966233: Waiting 05:09:46 f4c1fc716caa: Waiting 05:09:46 5d54e960e981: Verifying Checksum 05:09:46 5d54e960e981: Download complete 05:09:46 f0e02332f6b5: Verifying Checksum 05:09:46 f0e02332f6b5: Download complete 05:09:46 cefa15bbcfad: Verifying Checksum 05:09:46 cefa15bbcfad: Download complete 05:09:46 9fda8d8052c6: Verifying Checksum 05:09:46 9fda8d8052c6: Download complete 05:09:47 f4c1fc716caa: Verifying Checksum 05:09:47 f4c1fc716caa: Download complete 05:09:48 c4a7e357bf2a: Verifying Checksum 05:09:48 c4a7e357bf2a: Download complete 05:09:48 17808c966233: Download complete 05:09:49 9fda8d8052c6: Pull complete 05:09:50 5d54e960e981: Pull complete 05:10:02 c4a7e357bf2a: Pull complete 05:10:02 f0e02332f6b5: Pull complete 05:10:02 cefa15bbcfad: Pull complete 05:10:07 17808c966233: Pull complete 05:10:08 f4c1fc716caa: Pull complete 05:10:08 Digest: sha256:f9b5da702465edd0a2564459334de068a24595700ad6c8d0b85b07445f0b3000 05:10:08 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.21-alpine 05:10:08 ---> ea914061e18c 05:10:08 Step 3/10 : ARG ADD_BUILD_TAGS="" 05:10:10 ---> Running in 826d263016d5 05:10:10 Removing intermediate container 826d263016d5 05:10:10 ---> 4c61f9b35624 05:10:10 Step 4/10 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 05:10:10 ---> Running in c5a9edd1e473 05:10:11 Removing intermediate container c5a9edd1e473 05:10:11 ---> 3d8ba8d0e195 05:10:11 Step 5/10 : RUN apk add --update --no-cache make git openssh 05:10:11 ---> Running in 4fe165210faf 05:10:12 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/aarch64/APKINDEX.tar.gz 05:10:12 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/aarch64/APKINDEX.tar.gz 05:10:13 (1/8) Installing openssh-keygen (9.3_p2-r0) 05:10:13 (2/8) Installing libedit (20221030.3.1-r1) 05:10:13 (3/8) Installing openssh-client-common (9.3_p2-r0) 05:10:13 (4/8) Installing openssh-client-default (9.3_p2-r0) 05:10:13 (5/8) Installing openssh-sftp-server (9.3_p2-r0) 05:10:13 (6/8) Installing openssh-server-common (9.3_p2-r0) 05:10:13 (7/8) Installing openssh-server (9.3_p2-r0) 05:10:13 (8/8) Installing openssh (9.3_p2-r0) 05:10:13 Executing busybox-1.36.1-r2.trigger 05:10:13 OK: 272 MiB in 60 packages 05:10:14 Removing intermediate container 4fe165210faf 05:10:14 ---> 21f2e1dfc7c0 05:10:14 Step 6/10 : WORKDIR /device-modbus-go 05:10:15 ---> Running in d8e7dd9d23bc 05:10:15 Removing intermediate container d8e7dd9d23bc 05:10:15 ---> 2589dde37818 05:10:15 Step 7/10 : COPY go.mod vendor* ./ 05:10:15 ---> ecc87dd6cfd9 05:10:15 Step 8/10 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 05:10:16 ---> Running in ea89f15b9110 05:11:24 Removing intermediate container ea89f15b9110 05:11:24 ---> 6e3b82e4df80 05:11:24 Step 9/10 : COPY . . 05:11:24 ---> d5816827861d 05:11:24 Step 10/10 : RUN ${MAKE} 05:11:24 ---> Running in 566caad8b646 05:11:24 noop 05:11:24 Removing intermediate container 566caad8b646 05:11:24 ---> 7a972133e24d 05:11:24 Successfully built 7a972133e24d 05:11:24 Successfully tagged ci-base-image-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:11:24 + docker inspect -f . ci-base-image-arm64 05:11:24 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 05:11:24 prd-ubuntu20.04-docker-arm64-4c-16g-7544 does not seem to be running inside a container 05:11:24 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-modbus-go/1 -v /w/workspace/device-modbus-go/1:/w/workspace/device-modbus-go/1:rw,z -v /w/workspace/device-modbus-go/1@tmp:/w/workspace/device-modbus-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 05:11:26 $ docker top 2a3e37dbf0aa93a64bd60b300bffadef138f4d1ab8dbd57474e084c42c408473 -eo pid,comm [Pipeline] { [Pipeline] sh 05:11:26 + go version 05:11:26 go version go1.21.0 linux/arm64 [Pipeline] } 05:11:27 $ docker stop --time=1 2a3e37dbf0aa93a64bd60b300bffadef138f4d1ab8dbd57474e084c42c408473 05:11:28 $ docker rm -f --volumes 2a3e37dbf0aa93a64bd60b300bffadef138f4d1ab8dbd57474e084c42c408473 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:11:29 + docker inspect -f . ci-base-image-arm64 05:11:29 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 05:11:29 prd-ubuntu20.04-docker-arm64-4c-16g-7544 does not seem to be running inside a container 05:11:29 $ 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/1 -v /w/workspace/device-modbus-go/1:/w/workspace/device-modbus-go/1:rw,z -v /w/workspace/device-modbus-go/1@tmp:/w/workspace/device-modbus-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 05:11:30 $ docker top 24331b35fb64616aa37a3e679223bb5478ab55bd8bab48aba4077618c34a8bec -eo pid,comm [Pipeline] { [Pipeline] sh 05:11:31 + git config --global --add safe.directory /w/workspace/device-modbus-go/1 [Pipeline] fileExists [Pipeline] sh 05:11:31 + make test 05:11:31 go test ./... -coverprofile=coverage.out 05:11:38 ? github.com/edgexfoundry/device-modbus-go [no test files] 05:13:15 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 05:13:15 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.058s coverage: 47.9% of statements 05:13:15 WARNING: Linting skipped (not on x86_64 or linter not installed) 05:13:15 go vet ./... 05:13:23 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 05:13:23 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 05:13:23 ./bin/test-attribution-txt.sh [Pipeline] echo 05:13:23 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 05:13:23 $ docker stop --time=1 24331b35fb64616aa37a3e679223bb5478ab55bd8bab48aba4077618c34a8bec 05:13:25 $ docker rm -f --volumes 24331b35fb64616aa37a3e679223bb5478ab55bd8bab48aba4077618c34a8bec [Pipeline] // withDockerContainer [Pipeline] sh 05:13:26 + sudo chown -R jenkins:jenkins . [Pipeline] stash 05:13:26 Warning: overwriting stash ‘coverage-report’ 05:13:26 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 05:13:27 + sudo chown -R jenkins:jenkins . [Pipeline] sh 05:13:27 + ls -al . 05:13:27 total 188 05:13:27 drwxrwxr-x 9 jenkins jenkins 4096 Sep 21 05:11 . 05:13:27 drwxrwxr-x 4 jenkins jenkins 4096 Sep 21 05:09 .. 05:13:27 -rw-rw-r-- 1 jenkins jenkins 140 Sep 21 05:09 .dockerignore 05:13:27 drwxrwxr-x 8 jenkins jenkins 4096 Sep 21 05:09 .git 05:13:27 drwxrwxr-x 3 jenkins jenkins 4096 Sep 21 05:09 .github 05:13:27 -rw-rw-r-- 1 jenkins jenkins 331 Sep 21 05:09 .gitignore 05:13:27 -rw-rw-r-- 1 jenkins jenkins 41 Sep 21 05:09 .golangci.yml 05:13:27 -rw-rw-r-- 1 jenkins jenkins 11101 Sep 21 05:09 Attribution.txt 05:13:27 -rw-rw-r-- 1 jenkins jenkins 14764 Sep 21 05:09 CHANGELOG.md 05:13:27 -rw-rw-r-- 1 jenkins jenkins 1365 Sep 21 05:09 Dockerfile 05:13:27 -rw-rw-r-- 1 jenkins jenkins 677 Sep 21 05:09 GOVERNANCE.md 05:13:27 -rw-rw-r-- 1 jenkins jenkins 680 Sep 21 05:09 Jenkinsfile 05:13:27 -rw-rw-r-- 1 jenkins jenkins 11340 Sep 21 05:09 LICENSE 05:13:27 -rw-rw-r-- 1 jenkins jenkins 1936 Sep 21 05:09 Makefile 05:13:27 -rw-rw-r-- 1 jenkins jenkins 622 Sep 21 05:09 OWNERS.md 05:13:27 -rw-rw-r-- 1 jenkins jenkins 4578 Sep 21 05:09 README.md 05:13:27 -rw-rw-r-- 1 jenkins jenkins 5 Sep 21 05:07 VERSION 05:13:27 drwxrwxr-x 2 jenkins jenkins 4096 Sep 21 05:09 bin 05:13:27 drwxrwxr-x 3 jenkins jenkins 4096 Sep 21 05:09 cmd 05:13:27 -rw-r--r-- 1 jenkins jenkins 24334 Sep 21 05:13 coverage.out 05:13:27 -rw-rw-r-- 1 jenkins jenkins 3941 Sep 21 05:09 go.mod 05:13:27 -rw-rw-r-- 1 jenkins jenkins 35965 Sep 21 05:09 go.sum 05:13:27 drwxrwxr-x 3 jenkins jenkins 4096 Sep 21 05:09 internal 05:13:27 drwxrwxr-x 2 jenkins jenkins 4096 Sep 21 05:09 simulator 05:13:27 drwxrwxr-x 4 jenkins jenkins 4096 Sep 21 05:09 snap 05:13:27 -rw-rw-r-- 1 jenkins jenkins 229 Sep 21 05:09 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:13:28 + 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=e9a611d3314405f2406eaa904f269061f02f7dd4 --label arch=arm64 --label version=0.0.0 . 05:13:28 Sending build context to Docker daemon 3.39MB 05:13:28 Step 1/22 : ARG BASE=golang:1.21-alpine3.18 05:13:28 Step 2/22 : FROM ${BASE} AS builder 05:13:28 ---> 7a972133e24d 05:13:28 Step 3/22 : ARG ADD_BUILD_TAGS="" 05:13:28 ---> Running in 0662282af577 05:13:28 Removing intermediate container 0662282af577 05:13:28 ---> 1423c1a24a29 05:13:28 Step 4/22 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 05:13:29 ---> Running in 8ad7d2102706 05:13:29 Removing intermediate container 8ad7d2102706 05:13:29 ---> bc5d6760acdb 05:13:29 Step 5/22 : RUN apk add --update --no-cache make git openssh 05:13:29 ---> Running in 194537956dad 05:13:30 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/aarch64/APKINDEX.tar.gz 05:13:30 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/aarch64/APKINDEX.tar.gz 05:13:31 OK: 272 MiB in 60 packages 05:13:32 Removing intermediate container 194537956dad 05:13:32 ---> 32185d81e2e1 05:13:32 Step 6/22 : WORKDIR /device-modbus-go 05:13:32 ---> Running in b0f75b127437 05:13:33 Removing intermediate container b0f75b127437 05:13:33 ---> 442860d22228 05:13:33 Step 7/22 : COPY go.mod vendor* ./ 05:13:37 ---> 4be74da79785 05:13:37 Step 8/22 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 05:13:37 ---> Running in a672cd7918cc 05:13:39 Removing intermediate container a672cd7918cc 05:13:39 ---> e4d7c46d4e0e 05:13:39 Step 9/22 : COPY . . 05:13:41 ---> e38c5250dece 05:13:41 Step 10/22 : RUN ${MAKE} 05:13:41 ---> Running in ea1ce4345d05 05:13:42 CGO_ENABLED=0 go build -tags "" -ldflags "-X github.com/edgexfoundry/device-modbus-go.Version=0.0.0 -X github.com/edgexfoundry/device-sdk-go/v3/internal/common.SDKVersion=v3.1.0-dev.29" -trimpath -mod=readonly -o cmd/device-modbus ./cmd 05:15:48 Removing intermediate container ea1ce4345d05 05:15:48 ---> 41b78947986e 05:15:48 Step 11/22 : FROM alpine:3.18 05:15:48 3.18: Pulling from library/alpine 05:15:48 9fda8d8052c6: Already exists 05:15:48 Digest: sha256:7144f7bab3d4c2648d7e59409f15ec52a18006a128c733fcff20d3a4a54ba44a 05:15:48 Status: Downloaded newer image for alpine:3.18 05:15:48 ---> f6648c04cd6c 05:15:48 Step 12/22 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IoTech Ltd' 05:15:48 ---> Running in 5333c972aebc 05:15:48 Removing intermediate container 5333c972aebc 05:15:48 ---> facda17bae68 05:15:48 Step 13/22 : RUN apk add --update --no-cache dumb-init 05:15:48 ---> Running in 66334728cdb3 05:15:48 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/aarch64/APKINDEX.tar.gz 05:15:48 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/aarch64/APKINDEX.tar.gz 05:15:48 (1/1) Installing dumb-init (1.2.5-r2) 05:15:48 Executing busybox-1.36.1-r2.trigger 05:15:48 OK: 8 MiB in 16 packages 05:15:48 Removing intermediate container 66334728cdb3 05:15:48 ---> c34b1050fe4d 05:15:48 Step 14/22 : COPY --from=builder /device-modbus-go/cmd / 05:15:48 ---> 71f7c25a06a5 05:15:48 Step 15/22 : COPY --from=builder /device-modbus-go/LICENSE / 05:15:48 ---> e0cf4c328179 05:15:48 Step 16/22 : COPY --from=builder /device-modbus-go/Attribution.txt / 05:15:48 ---> 4fe8d78796e3 05:15:48 Step 17/22 : EXPOSE 59901 05:15:48 ---> Running in b90abd7be471 05:15:49 Removing intermediate container b90abd7be471 05:15:49 ---> 15372dace690 05:15:49 Step 18/22 : ENTRYPOINT ["/device-modbus"] 05:15:49 ---> Running in 64fa914f8655 05:15:49 Removing intermediate container 64fa914f8655 05:15:49 ---> 7da37f4b2a37 05:15:49 Step 19/22 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 05:15:49 ---> Running in 22c0f963fb1d 05:15:49 Removing intermediate container 22c0f963fb1d 05:15:49 ---> 87014d7e4942 05:15:49 Step 20/22 : LABEL arch=arm64 05:15:49 ---> Running in 80fca23dffb0 05:15:50 Removing intermediate container 80fca23dffb0 05:15:50 ---> 3b887479b96c 05:15:50 Step 21/22 : LABEL git_sha=e9a611d3314405f2406eaa904f269061f02f7dd4 05:15:50 ---> Running in e591f53ad390 05:15:50 Removing intermediate container e591f53ad390 05:15:50 ---> 1e1421b90911 05:15:50 Step 22/22 : LABEL version=0.0.0 05:15:50 ---> Running in 934affa3a490 05:15:50 Removing intermediate container 934affa3a490 05:15:50 ---> e4f9e7e97765 05:15:50 [Warning] One or more build-args [ARCH] were not consumed 05:15:50 Successfully built e4f9e7e97765 05:15:50 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 05:15:51 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 05:15:51 05:15:51 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:15:52 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 05:15:52 arm64: Pulling from edgex-lftools-log-publisher 05:15:52 8998bd30e6a1: Pulling fs layer 05:15:52 04944245beec: Pulling fs layer 05:15:52 699f458cf7ca: Pulling fs layer 05:15:52 765212b225bb: Pulling fs layer 05:15:52 f23df028b6ca: Pulling fs layer 05:15:52 d65c8cfc05b1: Pulling fs layer 05:15:52 2437ff75d9bd: Pulling fs layer 05:15:52 2437ff75d9bd: Waiting 05:15:52 d65c8cfc05b1: Waiting 05:15:52 765212b225bb: Waiting 05:15:52 f23df028b6ca: Waiting 05:15:52 04944245beec: Verifying Checksum 05:15:52 04944245beec: Download complete 05:15:52 765212b225bb: Verifying Checksum 05:15:52 765212b225bb: Download complete 05:15:52 f23df028b6ca: Verifying Checksum 05:15:52 f23df028b6ca: Download complete 05:15:52 d65c8cfc05b1: Verifying Checksum 05:15:52 d65c8cfc05b1: Download complete 05:15:52 699f458cf7ca: Verifying Checksum 05:15:52 699f458cf7ca: Download complete 05:15:52 8998bd30e6a1: Verifying Checksum 05:15:52 8998bd30e6a1: Download complete 05:15:54 2437ff75d9bd: Verifying Checksum 05:15:54 2437ff75d9bd: Download complete 05:15:57 8998bd30e6a1: Pull complete 05:15:57 04944245beec: Pull complete 05:15:58 699f458cf7ca: Pull complete 05:15:59 765212b225bb: Pull complete 05:15:59 f23df028b6ca: Pull complete 05:16:00 d65c8cfc05b1: Pull complete 05:16:15 2437ff75d9bd: Pull complete 05:16:15 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 05:16:15 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 05:16:15 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 05:16:15 prd-ubuntu20.04-docker-arm64-4c-16g-7544 does not seem to be running inside a container 05:16:15 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/device-modbus-go/1 -v /w/workspace/device-modbus-go/1:/w/workspace/device-modbus-go/1:rw,z -v /w/workspace/device-modbus-go/1@tmp:/w/workspace/device-modbus-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 05:16:17 $ docker top 1a733f41013f8ff8472017e506d96cf0107bcc25f69373d2549bf502c001f71e -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 05:16:18 ---> job-cost.sh 05:16:18 lf-activate-venv: SKIPPING 05:16:18 INFO: No Stack... 05:16:18 INFO: Retrieving Pricing Info for: v3-standard-4 05:16:19 INFO: Archiving Costs [Pipeline] sh 05:16:20 + cat /w/workspace/device-modbus-go/1/archives/cost.csv 05:16:20 + cut -d, -f6 [Pipeline] lock 05:16:20 Trying to acquire lock on [jenkins-edgexfoundry-device-modbus-go-PR-504-1-stack-cost] 05:16:20 Resource [jenkins-edgexfoundry-device-modbus-go-PR-504-1-stack-cost] did not exist. Created. 05:16:20 Lock acquired on [jenkins-edgexfoundry-device-modbus-go-PR-504-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 05:16:20 /w/workspace/device-modbus-go/1@tmp/durable-e9ff41a5/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 05:16:21 + echo total: 0.10999999940395355 [Pipeline] stash 05:16:21 Warning: overwriting stash ‘stack-cost’ 05:16:21 Stashed 1 file(s) [Pipeline] } 05:16:21 Lock released on resource [jenkins-edgexfoundry-device-modbus-go-PR-504-1-stack-cost] [Pipeline] // lock [Pipeline] } 05:16:21 $ docker stop --time=1 1a733f41013f8ff8472017e506d96cf0107bcc25f69373d2549bf502c001f71e 05:16:23 $ docker rm -f --volumes 1a733f41013f8ff8472017e506d96cf0107bcc25f69373d2549bf502c001f71e [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // ws [Pipeline] } [Pipeline] // node [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // parallel [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (CodeCov) [Pipeline] unstash [Pipeline] configFileProvider 05:16:24 provisioning config files... 05:16:24 copy managed file [device-modbus-go-codecov-token] to file:/w/workspace/xfoundry_device-modbus-go_PR-504@tmp/config18357123006250112269tmp [Pipeline] { [Pipeline] sh 05:16:24 + set +x 05:16:24 + curl -s+ https://codecov.io/bash 05:16:24 bash -s -- 05:16:24 05:16:24 _____ _ 05:16:24 / ____| | | 05:16:24 | | ___ __| | ___ ___ _____ __ 05:16:24 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 05:16:24 | |___| (_) | (_| | __/ (_| (_) \ V / 05:16:24 \_____\___/ \__,_|\___|\___\___/ \_/ 05:16:24 Bash-1.0.6 05:16:24 05:16:24 05:16:24 ==> git version 2.25.1 found 05:16:24 ==> curl 7.68.0 (x86_64-pc-linux-gnu) libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3 05:16:24 Release-Date: 2020-01-08 05:16:24 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 05:16:24 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 05:16:24 ==> Jenkins CI detected. 05:16:24 current dir:  /w/workspace/xfoundry_device-modbus-go_PR-504 05:16:24 project root: . 05:16:24 --> token set from env 05:16:24 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 05:16:24 ==> Running gcov in . (disable via -X gcov) 05:16:24 ==> Python coveragepy not found 05:16:24 ==> Searching for coverage reports in: 05:16:24 + . 05:16:24 -> Found 1 reports 05:16:24 ==> Detecting git/mercurial file structure 05:16:24 ==> Reading reports 05:16:24 + ./coverage.out bytes=24334 05:16:24 ==> Appending adjustments 05:16:24 https://docs.codecov.io/docs/fixing-reports 05:16:24 + Found adjustments 05:16:24 ==> Gzipping contents 05:16:24 4.0K /tmp/codecov.thK3Ri.gz 05:16:24 ==> Uploading reports 05:16:24 url: https://codecov.io 05:16:24 query: branch=PR-504&commit=e9a611d3314405f2406eaa904f269061f02f7dd4&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-modbus-go%2Fjob%2FPR-504%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-modbus-go&service=jenkins&flags=&pr=504&job=&cmd_args= 05:16:24 -> Pinging Codecov 05:16:24 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=3a8d40b1-de00-4649-bfd4-bdc8ed99ae89&branch=PR-504&commit=e9a611d3314405f2406eaa904f269061f02f7dd4&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-modbus-go%2Fjob%2FPR-504%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-modbus-go&service=jenkins&flags=&pr=504&job=&cmd_args= 05:16:24 -> Uploading to 05:16:24 https://storage.googleapis.com/codecov/v4/raw/2023-09-21/55DBCA73C666E3227836607328DD7E49/e9a611d3314405f2406eaa904f269061f02f7dd4/5b8c88ed-7687-4c59-a1a4-6df7bcabb1ae.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20230921%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20230921T051624Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=f00a85da09d39c1bcd032f3411cfc78fe243ecade309756dd9eee2b1de11773b 05:16:24 % Total % Received % Xferd Average Speed Time Time Time Current 05:16:24 Dload Upload Total Spent Left Speed 05:16:24 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 3974 0 0 100 3974 0 19291 --:--:-- --:--:-- --:--:-- 19291 05:16:24 -> Reports have been successfully queued for processing at https://app.codecov.io/github/edgexfoundry/device-modbus-go/commit/e9a611d3314405f2406eaa904f269061f02f7dd4 [Pipeline] } 05:16:24 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Snyk Dependency Scan) Stage "Snyk Dependency Scan" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Archive Prep) Stage "Archive Prep" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Publish Swagger) Stage "Publish Swagger" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Semver) Stage "Semver" skipped due to when conditional [Pipeline] stage [Pipeline] { (Tag) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Pre-Release Version) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Experimental Tag) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Stable (Named) Tag) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Declarative: Post Actions) [Pipeline] stage [Pipeline] { (LF Post Build Actions) [Pipeline] sh 05:16:26 + [ -d /w/workspace/xfoundry_device-modbus-go_PR-504/archives ] 05:16:26 + ls -al /w/workspace/xfoundry_device-modbus-go_PR-504/archives 05:16:26 total 16 05:16:26 drwxr-xr-x 3 root root 4096 Sep 21 05:09 . 05:16:26 drwxrwxr-x 11 jenkins jenkins 4096 Sep 21 05:09 .. 05:16:26 drwxr-xr-x 2 root root 4096 Sep 21 05:09 cost 05:16:26 -rw-r--r-- 1 root root 89 Sep 21 05:09 cost.csv 05:16:26 + sudo chown -R jenkins:jenkins /w/workspace/xfoundry_device-modbus-go_PR-504/archives 05:16:26 + ls -al /w/workspace/xfoundry_device-modbus-go_PR-504/archives 05:16:26 total 16 05:16:26 drwxr-xr-x 3 jenkins jenkins 4096 Sep 21 05:09 . 05:16:26 drwxrwxr-x 11 jenkins jenkins 4096 Sep 21 05:09 .. 05:16:26 drwxr-xr-x 2 jenkins jenkins 4096 Sep 21 05:09 cost 05:16:26 -rw-r--r-- 1 jenkins jenkins 89 Sep 21 05:09 cost.csv [Pipeline] libraryResource [Pipeline] sh 05:16:27 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 05:16:27 ---> package-listing.sh 05:16:27 ++ facter osfamily 05:16:27 ++ tr '[:upper:]' '[:lower:]' 05:16:28 + OS_FAMILY=debian 05:16:28 + workspace=/w/workspace/xfoundry_device-modbus-go_PR-504 05:16:28 + START_PACKAGES=/tmp/packages_start.txt 05:16:28 + END_PACKAGES=/tmp/packages_end.txt 05:16:28 + DIFF_PACKAGES=/tmp/packages_diff.txt 05:16:28 + PACKAGES=/tmp/packages_start.txt 05:16:28 + '[' /w/workspace/xfoundry_device-modbus-go_PR-504 ']' 05:16:28 + PACKAGES=/tmp/packages_end.txt 05:16:28 + case "${OS_FAMILY}" in 05:16:28 + dpkg -l 05:16:28 + grep '^ii' 05:16:28 + '[' -f /tmp/packages_start.txt ']' 05:16:28 + '[' -f /tmp/packages_end.txt ']' 05:16:28 + diff /tmp/packages_start.txt /tmp/packages_end.txt 05:16:28 + '[' /w/workspace/xfoundry_device-modbus-go_PR-504 ']' 05:16:28 + mkdir -p /w/workspace/xfoundry_device-modbus-go_PR-504/archives/ 05:16:28 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/xfoundry_device-modbus-go_PR-504/archives/ [Pipeline] echo 05:16:28 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-504/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 05:16:28 + facter operatingsystem [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:16:29 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 05:16:29 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 05:16:29 prd-ubuntu20.04-docker-8c-8g-7541 does not seem to be running inside a container 05:16:29 $ 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-504/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-504 -v /w/workspace/xfoundry_device-modbus-go_PR-504:/w/workspace/xfoundry_device-modbus-go_PR-504:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-504@tmp:/w/workspace/xfoundry_device-modbus-go_PR-504@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 05:16:29 $ docker top 1219a0d57fc7cb6f8375f465ba57a3ff74ff5199b362b008127528efb98c797a -eo pid,comm [Pipeline] { [Pipeline] sh 05:16:29 + touch /tmp/pre-build-complete [Pipeline] sh 05:16:30 + mkdir -p /var/log/sysstat [Pipeline] sh 05:16:30 + ls /var/log/sa-host 05:16:30 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 05:16:30 provisioning config files... 05:16:30 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-504@tmp/config14156585348968723724tmp [Pipeline] { [Pipeline] echo 05:16:30 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 05:16:31 ---> create-netrc.sh [Pipeline] } 05:16:31 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 05:16:31 ---> python-tools-install.sh [Pipeline] echo 05:16:31 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 05:16:31 ---> sudo-logs.sh 05:16:31 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 05:16:32 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 05:16:32 ---> job-cost.sh 05:16:32 lf-activate-venv: SKIPPING 05:16:32 DEBUG: total: 0.2199999988079071 05:16:32 INFO: Retrieving Stack Cost... 05:16:32 INFO: Retrieving Pricing Info for: v3-standard-8 05:16:32 INFO: Archiving Costs [Pipeline] echo 05:16:32 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 05:16:33 ---> logs-deploy.sh 05:16:33 lf-activate-venv: SKIPPING 05:16:33 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-modbus-go/PR-504/1 05:16:33 INFO: archiving workspace using pattern(s): 05:16:34 Archives upload complete. 05:16:34 INFO: archiving logs to Nexus