Pull request #566 opened Connecting to https://api.github.com using edgex-jenkins github personal access token Obtained Jenkinsfile from 437c7792f48fd2191ad43373e3cdf143a2981074+d9d7c9445bd01df0ee4a07f33637a5782cac6865 (1d3b5dc4045f207512bfdf0cd376ff74416136e2) 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-ssh2483502694201657173.key > git ls-remote -h -t -- git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Found match: refs/tags/stable revision 590556114a56c6d90cc8043840e039c2f74196dc 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-ssh16062568600668282010.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 590556114a56c6d90cc8043840e039c2f74196dc 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-566/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-566/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh1211000049104603237.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-566/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh8897262231859196116.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision 590556114a56c6d90cc8043840e039c2f74196dc (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f 590556114a56c6d90cc8043840e039c2f74196dc # timeout=10 Commit message: "Merge pull request #451 from jinlinGuan/fix-snyk" > 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-ssh17060167406330236472.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-566/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-566/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e@tmp/jenkins-gitclient-ssh5712381652154960204.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 590556114a56c6d90cc8043840e039c2f74196dc 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] ========================================================= [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 Still waiting to schedule task ‘prd-ubuntu20.04-docker-8c-8g-7366’ is offline Running on prd-ubuntu20.04-docker-8c-8g-7369 in /w/workspace/xfoundry_device-modbus-go_PR-566 [Pipeline] { [Pipeline] stage [Pipeline] { (Declarative: Checkout SCM) [Pipeline] checkout The recommended git tool is: git 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-566 # 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 d9d7c9445bd01df0ee4a07f33637a5782cac6865 into PR head commit 437c7792f48fd2191ad43373e3cdf143a2981074 > 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/566/head:refs/remotes/origin/PR-566 +refs/heads/main:refs/remotes/origin/main # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 437c7792f48fd2191ad43373e3cdf143a2981074 # timeout=10 > git remote # timeout=10 Merge succeeded, producing 437c7792f48fd2191ad43373e3cdf143a2981074 Checking out Revision 437c7792f48fd2191ad43373e3cdf143a2981074 (PR-566) 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 590556114a56c6d90cc8043840e039c2f74196dc > git config --get remote.origin.url # timeout=10 using GIT_SSH to set credentials SSH Credentials for GitHub > git merge d9d7c9445bd01df0ee4a07f33637a5782cac6865 # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 437c7792f48fd2191ad43373e3cdf143a2981074 # timeout=10 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 05:08:15 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 05:08:15 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 05:08:15 ========================================================= 05:08:15 EdgeX Global Pipelines Version Info 05:08:15 ========================================================= [Pipeline] libraryResource [Pipeline] sh 05:08:16 ------------------- 05:08:16 stable info: 05:08:16 ------------------- 05:08:16 Commited By: Ginny Guan ginny@iotechsys.com 05:08:16 Commit SHA: 590556114a56c6d90cc8043840e039c2f74196dc 05:08:16 Message: update stable to v1.0.260 05:08:17 ------------------- 05:08:17 experimental info: 05:08:17 ------------------- 05:08:17 Commited By: Ginny Guan ginny@iotechsys.com 05:08:17 Commit SHA: f5e0e1f8358a839901f1a476b3a28a62f8570917 05:08:17 Message: update experimental to v1.0.259 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 05:08:17 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-modbus-go-settings [Pipeline] echo 05:08:17 [edgeXSetupEnvironment]: set envvar PROJECT = device-modbus-go [Pipeline] echo 05:08:17 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 05:08:17 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 05:08:17 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 05:08:17 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.21 [Pipeline] echo 05:08:17 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 05:08:17 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 05:08:17 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 05:08:18 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 05:08:18 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 05:08:18 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-modbus [Pipeline] echo 05:08:18 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 05:08:18 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 05:08:18 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 05:08:18 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 05:08:18 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 05:08:18 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 05:08:18 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 05:08:18 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 05:08:18 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 05:08:18 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 05:08:19 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 05:08:19 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 05:08:19 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 05:08:19 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 05:08:19 [edgeXSetupEnvironment]: set envvar SNYK_DEBUG = false [Pipeline] echo 05:08:19 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-566 [Pipeline] echo 05:08:19 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-566 [Pipeline] echo 05:08:19 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-566 [Pipeline] echo 05:08:19 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 437c7792f48fd2191ad43373e3cdf143a2981074 [Pipeline] echo 05:08:20 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 437c779 [Pipeline] echo 05:08:20 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 05:08:20 provisioning config files... 05:08:20 copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-566@tmp/config18439460065155557667tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 05:08:20 ---> ****-login.sh 05:08:20 nexus3.edgexfoundry.org:10001 05:08:22 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:08:23 WARNING! Your password will be stored unencrypted in /home/jenkins/.****/config.json. 05:08:23 Configure a credential helper to remove this warning. See 05:08:23 https://docs.****.com/engine/reference/commandline/login/#credentials-store 05:08:23 05:08:23 Login Succeeded 05:08:23 nexus3.edgexfoundry.org:10002 05:08:23 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:08:23 WARNING! Your password will be stored unencrypted in /home/jenkins/.****/config.json. 05:08:23 Configure a credential helper to remove this warning. See 05:08:23 https://docs.****.com/engine/reference/commandline/login/#credentials-store 05:08:23 05:08:23 Login Succeeded 05:08:23 nexus3.edgexfoundry.org:10003 05:08:23 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:08:23 WARNING! Your password will be stored unencrypted in /home/jenkins/.****/config.json. 05:08:23 Configure a credential helper to remove this warning. See 05:08:23 https://docs.****.com/engine/reference/commandline/login/#credentials-store 05:08:23 05:08:23 Login Succeeded 05:08:23 nexus3.edgexfoundry.org:10004 05:08:23 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:08:23 WARNING! Your password will be stored unencrypted in /home/jenkins/.****/config.json. 05:08:23 Configure a credential helper to remove this warning. See 05:08:23 https://docs.****.com/engine/reference/commandline/login/#credentials-store 05:08:23 05:08:23 Login Succeeded 05:08:23 ****.io 05:08:23 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:08:23 WARNING! Your password will be stored unencrypted in /home/jenkins/.****/config.json. 05:08:23 Configure a credential helper to remove this warning. See 05:08:23 https://docs.****.com/engine/reference/commandline/login/#credentials-store 05:08:23 05:08:23 Login Succeeded 05:08:23 ---> ****-login.sh ends [Pipeline] } 05:08:23 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 05:08:25 + git rev-list -1 --merges 437c7792f48fd2191ad43373e3cdf143a2981074~1..437c7792f48fd2191ad43373e3cdf143a2981074 [Pipeline] echo 05:08:25 -----------> git rev-list -1 --merges 437c7792f48fd2191ad43373e3cdf143a2981074~1..437c7792f48fd2191ad43373e3cdf143a2981074 437c7792f48fd2191ad43373e3cdf143a2981074 [false] [Pipeline] sh 05:08:26 + git log --format=format:%s -1 437c7792f48fd2191ad43373e3cdf143a2981074 [Pipeline] echo 05:08:26 ========================================================= 05:08:26 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 05:08:26 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 05:08:27 + git log --format=format:%s -1 437c7792f48fd2191ad43373e3cdf143a2981074 [Pipeline] echo 05:08:27 [semverPrep] GIT_COMMIT: 437c7792f48fd2191ad43373e3cdf143a2981074, Commit Message: build(deps): Bump github.com/edgexfoundry/device-sdk-go/v3 [Pipeline] echo 05:08:27 [semverPrep] This is not a build commit. [Pipeline] sh 05:08:27 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 05:08:27 + grep -v github /etc/ssh/ssh_known_hosts 05:08:27 + [ -e /tmp/ssh_known_hosts ] 05:08:27 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 05:08:27 + + echosudo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= tee 05:08:27 -a /etc/ssh/ssh_known_hosts 05:08:27 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:08:28 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 05:08:28 05:08:28 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:08:28 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 05:08:28 0.1.4: Pulling from edgex-devops/py-git-semver 05:08:28 b85a868b505f: Pulling fs layer 05:08:28 e2be974225ed: Pulling fs layer 05:08:28 339a4e72a1f5: Pulling fs layer 05:08:28 988bab9f4d93: Pulling fs layer 05:08:28 1469e6f7b9e6: Pulling fs layer 05:08:28 eaf3925da568: Pulling fs layer 05:08:28 bab4dde63d76: Pulling fs layer 05:08:28 bde34c3a00c8: Pulling fs layer 05:08:28 b352a97aabf1: Pulling fs layer 05:08:28 4872d77fe225: Pulling fs layer 05:08:28 5851b861e8e6: Pulling fs layer 05:08:28 988bab9f4d93: Waiting 05:08:28 1469e6f7b9e6: Waiting 05:08:28 eaf3925da568: Waiting 05:08:28 bab4dde63d76: Waiting 05:08:28 5851b861e8e6: Waiting 05:08:28 bde34c3a00c8: Waiting 05:08:28 4872d77fe225: Waiting 05:08:28 b352a97aabf1: Waiting 05:08:29 e2be974225ed: Download complete 05:08:29 988bab9f4d93: Verifying Checksum 05:08:29 988bab9f4d93: Download complete 05:08:29 1469e6f7b9e6: Verifying Checksum 05:08:29 1469e6f7b9e6: Download complete 05:08:29 eaf3925da568: Verifying Checksum 05:08:29 eaf3925da568: Download complete 05:08:29 339a4e72a1f5: Verifying Checksum 05:08:29 339a4e72a1f5: Download complete 05:08:29 bde34c3a00c8: Verifying Checksum 05:08:29 bde34c3a00c8: Download complete 05:08:29 b352a97aabf1: Download complete 05:08:29 4872d77fe225: Verifying Checksum 05:08:29 4872d77fe225: Download complete 05:08:29 5851b861e8e6: Verifying Checksum 05:08:29 5851b861e8e6: Download complete 05:08:29 b85a868b505f: Verifying Checksum 05:08:29 b85a868b505f: Download complete 05:08:30 bab4dde63d76: Verifying Checksum 05:08:30 bab4dde63d76: Download complete 05:08:31 b85a868b505f: Pull complete 05:08:31 e2be974225ed: Pull complete 05:08:31 339a4e72a1f5: Pull complete 05:08:31 988bab9f4d93: Pull complete 05:08:31 1469e6f7b9e6: Pull complete 05:08:31 eaf3925da568: Pull complete 05:08:33 bab4dde63d76: Pull complete 05:08:33 bde34c3a00c8: Pull complete 05:08:33 b352a97aabf1: Pull complete 05:08:34 4872d77fe225: Pull complete 05:08:34 5851b861e8e6: Pull complete 05:08:34 Digest: sha256:59a28aa3b44c0bc56b9c3d2e9ecabe42e63693d939cc6e425eb8786f29f663d8 05:08:34 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 05:08:34 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 05:08:34 prd-ubuntu20.04-docker-8c-8g-7369 does not seem to be running inside a container 05:08:34 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/xfoundry_device-modbus-go_PR-566 -v /w/workspace/xfoundry_device-modbus-go_PR-566:/w/workspace/xfoundry_device-modbus-go_PR-566:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-566@tmp:/w/workspace/xfoundry_device-modbus-go_PR-566@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 ******** nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 cat 05:08:39 $ docker top 8e8327822f6d0e3a566460c40d2e42a7b6348c8f404673f8545b33f24ce08fec -eo pid,comm 05:08:39 ERROR: The container started but didn't run the expected command. Please double check your ENTRYPOINT does execute the command passed as docker run argument, as required by official docker images (see https://github.com/docker-library/official-images#consistency for entrypoint consistency requirements). 05:08:39 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 05:08:39 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 05:08:39 [ssh-agent] Looking for ssh-agent implementation... 05:08:39 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 05:08:39 $ docker exec 8e8327822f6d0e3a566460c40d2e42a7b6348c8f404673f8545b33f24ce08fec ssh-agent 05:08:39 SSH_AUTH_SOCK=/tmp/ssh-hQBPCBwMtLR9/agent.32 05:08:39 SSH_AGENT_PID=38 05:08:39 Running ssh-add (command line suppressed) 05:08:40 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-566@tmp/private_key_16345044630033474081.key (/w/workspace/xfoundry_device-modbus-go_PR-566@tmp/private_key_16345044630033474081.key) 05:08:40 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 05:08:40 + git tag --points-at HEAD [Pipeline] } 05:08:40 $ docker exec --env ******** --env ******** 8e8327822f6d0e3a566460c40d2e42a7b6348c8f404673f8545b33f24ce08fec ssh-agent -k 05:08:40 unset SSH_AUTH_SOCK; 05:08:40 unset SSH_AGENT_PID; 05:08:40 echo Agent pid 38 killed; 05:08:40 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 05:08:40 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 05:08:40 [ssh-agent] Looking for ssh-agent implementation... 05:08:41 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 05:08:41 $ docker exec 8e8327822f6d0e3a566460c40d2e42a7b6348c8f404673f8545b33f24ce08fec ssh-agent 05:08:41 SSH_AUTH_SOCK=/tmp/ssh-lmWbt8ta5Z6H/agent.71 05:08:41 SSH_AGENT_PID=77 05:08:41 Running ssh-add (command line suppressed) 05:08:41 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-566@tmp/private_key_10014610924260465926.key (/w/workspace/xfoundry_device-modbus-go_PR-566@tmp/private_key_10014610924260465926.key) 05:08:41 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 05:08:41 + git semver init 05:08:41 2024-08-08 05:08:41,939 [run_init] DEBUG init version:0.0.0 force:False 05:08:41 2024-08-08 05:08:41,939 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/xfoundry_device-modbus-go_PR-566/.semver 05:08:41 2024-08-08 05:08:41,940 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-modbus-go.git /w/workspace/xfoundry_device-modbus-go_PR-566/.semver 05:08:41 2024-08-08 05:08:41,940 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-modbus-go.git', '/w/workspace/xfoundry_device-modbus-go_PR-566/.semver'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-566, universal_newlines=False, shell=None, istream=None) 05:08:43 2024-08-08 05:08:42,994 [append_file] DEBUG append to file:/w/workspace/xfoundry_device-modbus-go_PR-566/.git/info/exclude 05:08:43 2024-08-08 05:08:42,995 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/xfoundry_device-modbus-go_PR-566/.semver/PR-566 with force:False 05:08:43 2024-08-08 05:08:42,995 [write_file] DEBUG write to file:/w/workspace/xfoundry_device-modbus-go_PR-566/.semver/PR-566 05:08:43 2024-08-08 05:08:43,001 [execute] INFO git cat-file --batch-check 05:08:43 2024-08-08 05:08:43,002 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-566/.semver, universal_newlines=False, shell=None, istream=) 05:08:43 2024-08-08 05:08:43,010 [execute] INFO git cat-file --batch 05:08:43 2024-08-08 05:08:43,010 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-566/.semver, universal_newlines=False, shell=None, istream=) 05:08:43 2024-08-08 05:08:43,017 [read_version] DEBUG read version from /w/workspace/xfoundry_device-modbus-go_PR-566/.semver/PR-566 05:08:43 0.0.0 [Pipeline] } 05:08:43 $ docker exec --env ******** --env ******** 8e8327822f6d0e3a566460c40d2e42a7b6348c8f404673f8545b33f24ce08fec ssh-agent -k 05:08:43 unset SSH_AUTH_SOCK; 05:08:43 unset SSH_AGENT_PID; 05:08:43 echo Agent pid 77 killed; 05:08:43 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 05:08:44 + git semver [Pipeline] } 05:08:44 $ docker stop --time=1 8e8327822f6d0e3a566460c40d2e42a7b6348c8f404673f8545b33f24ce08fec 05:08:45 $ docker rm -f --volumes 8e8327822f6d0e3a566460c40d2e42a7b6348c8f404673f8545b33f24ce08fec [Pipeline] // withDockerContainer [Pipeline] sh 05:08:46 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 05:08:46 Stashed 1 file(s) [Pipeline] echo 05:08:46 [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:08:47 provisioning config files... 05:08:47 copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-566@tmp/config15404043597182614608tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 05:08:48 ---> ****-login.sh 05:08:48 nexus3.edgexfoundry.org:10001 05:08:48 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:08:48 WARNING! Your password will be stored unencrypted in /home/jenkins/.****/config.json. 05:08:48 Configure a credential helper to remove this warning. See 05:08:48 https://docs.****.com/engine/reference/commandline/login/#credentials-store 05:08:48 05:08:48 Login Succeeded 05:08:48 nexus3.edgexfoundry.org:10002 05:08:48 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:08:48 WARNING! Your password will be stored unencrypted in /home/jenkins/.****/config.json. 05:08:48 Configure a credential helper to remove this warning. See 05:08:48 https://docs.****.com/engine/reference/commandline/login/#credentials-store 05:08:48 05:08:48 Login Succeeded 05:08:48 nexus3.edgexfoundry.org:10003 05:08:53 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:08:53 WARNING! Your password will be stored unencrypted in /home/jenkins/.****/config.json. 05:08:53 Configure a credential helper to remove this warning. See 05:08:53 https://docs.****.com/engine/reference/commandline/login/#credentials-store 05:08:53 05:08:53 Login Succeeded 05:08:53 nexus3.edgexfoundry.org:10004 05:08:53 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:08:53 WARNING! Your password will be stored unencrypted in /home/jenkins/.****/config.json. 05:08:53 Configure a credential helper to remove this warning. See 05:08:53 https://docs.****.com/engine/reference/commandline/login/#credentials-store 05:08:53 05:08:53 Login Succeeded 05:08:53 ****.io 05:08:53 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:08:54 WARNING! Your password will be stored unencrypted in /home/jenkins/.****/config.json. 05:08:54 Configure a credential helper to remove this warning. See 05:08:54 https://docs.****.com/engine/reference/commandline/login/#credentials-store 05:08:54 05:08:54 Login Succeeded 05:08:54 ---> ****-login.sh ends [Pipeline] } 05:08:54 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 05:08:54 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^napa$, ^lts-test$]] [Pipeline] echo 05:08:54 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^napa$, ^lts-test$]] [Pipeline] echo 05:08:54 ========================================================= 05:08:54 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.21-alpine] 05:08:54 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:08:56 + 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:08:56 Sending build context to Docker daemon 17.91MB 05:08:56 Step 1/10 : ARG BASE=golang:1.21-alpine3.18 05:08:56 Step 2/10 : FROM ${BASE} AS builder 05:08:56 1.21-alpine: Pulling from edgex-devops/edgex-golang-base 05:08:56 619be1103602: Pulling fs layer 05:08:56 7862e08f4a3e: Pulling fs layer 05:08:56 5df492c9dc93: Pulling fs layer 05:08:56 7629e6793208: Pulling fs layer 05:08:56 4f4fb700ef54: Pulling fs layer 05:08:56 fb5054dd5b73: Pulling fs layer 05:08:56 eeca6798cff9: Pulling fs layer 05:08:56 aa269ceb94a6: Pulling fs layer 05:08:56 ada007ff1a6a: Pulling fs layer 05:08:56 aa269ceb94a6: Waiting 05:08:56 ada007ff1a6a: Waiting 05:08:56 eeca6798cff9: Waiting 05:08:56 4f4fb700ef54: Waiting 05:08:56 7862e08f4a3e: Download complete 05:08:56 7629e6793208: Verifying Checksum 05:08:56 7629e6793208: Download complete 05:08:56 4f4fb700ef54: Verifying Checksum 05:08:56 4f4fb700ef54: Download complete 05:08:56 fb5054dd5b73: Download complete 05:08:56 619be1103602: Verifying Checksum 05:08:56 619be1103602: Download complete 05:08:56 eeca6798cff9: Verifying Checksum 05:08:56 eeca6798cff9: Download complete 05:08:56 619be1103602: Pull complete 05:08:56 ada007ff1a6a: Verifying Checksum 05:08:56 ada007ff1a6a: Download complete 05:08:57 7862e08f4a3e: Pull complete 05:08:57 5df492c9dc93: Download complete 05:08:57 aa269ceb94a6: Verifying Checksum 05:08:57 aa269ceb94a6: Download complete 05:09:00 5df492c9dc93: Pull complete 05:09:00 7629e6793208: Pull complete 05:09:00 4f4fb700ef54: Pull complete 05:09:00 fb5054dd5b73: Pull complete 05:09:00 eeca6798cff9: Pull complete 05:09:02 Still waiting to schedule task 05:09:02 ‘prd-ubuntu20.04-docker-arm64-4c-16g-7367’ is offline 05:09:03 aa269ceb94a6: Pull complete 05:09:03 ada007ff1a6a: Pull complete 05:09:03 Digest: sha256:69d97b8d72889085871306873fcae42e135f8428d5f0f63f88bd56e040916423 05:09:03 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.21-alpine 05:09:03 ---> f489d0715acc 05:09:03 Step 3/10 : ARG ADD_BUILD_TAGS="" 05:09:12 ---> Running in 94a04e1742de 05:09:12 Removing intermediate container 94a04e1742de 05:09:12 ---> d7aa9ebeb664 05:09:12 Step 4/10 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 05:09:12 ---> Running in 13a9ef660441 05:09:12 Removing intermediate container 13a9ef660441 05:09:12 ---> 991428b70aca 05:09:12 Step 5/10 : RUN apk add --update --no-cache make git openssh 05:09:12 ---> Running in dafd7f991366 05:09:12 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/APKINDEX.tar.gz 05:09:12 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/x86_64/APKINDEX.tar.gz 05:09:12 (1/8) Installing openssh-keygen (9.3_p2-r2) 05:09:12 (2/8) Installing libedit (20221030.3.1-r1) 05:09:12 (3/8) Installing openssh-client-common (9.3_p2-r2) 05:09:12 (4/8) Installing openssh-client-default (9.3_p2-r2) 05:09:12 (5/8) Installing openssh-sftp-server (9.3_p2-r2) 05:09:12 (6/8) Installing openssh-server-common (9.3_p2-r2) 05:09:12 (7/8) Installing openssh-server (9.3_p2-r2) 05:09:12 (8/8) Installing openssh (9.3_p2-r2) 05:09:12 Executing busybox-1.36.1-r5.trigger 05:09:12 OK: 270 MiB in 60 packages 05:09:13 Removing intermediate container dafd7f991366 05:09:13 ---> 6134847cf3c0 05:09:13 Step 6/10 : WORKDIR /device-modbus-go 05:09:13 ---> Running in ef3ffb98d4f9 05:09:13 Removing intermediate container ef3ffb98d4f9 05:09:13 ---> 52f15d868ba9 05:09:13 Step 7/10 : COPY go.mod vendor* ./ 05:09:13 ---> b8c3ce7b642b 05:09:13 Step 8/10 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 05:09:13 ---> Running in 2b67b67be3c5 05:10:21 Removing intermediate container 2b67b67be3c5 05:10:21 ---> 6e992d04c9d0 05:10:21 Step 9/10 : COPY . . 05:10:21 ---> 9857192e606d 05:10:21 Step 10/10 : RUN ${MAKE} 05:10:21 ---> Running in 15635e51d1a0 05:10:21 noop 05:10:21 Removing intermediate container 15635e51d1a0 05:10:21 ---> fe470ba8bd23 05:10:21 Successfully built fe470ba8bd23 05:10:21 Successfully tagged ci-base-image-x86_64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:10:22 + docker inspect -f . ci-base-image-x86_64 05:10:22 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 05:10:22 prd-ubuntu20.04-docker-8c-8g-7369 does not seem to be running inside a container 05:10:22 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/xfoundry_device-modbus-go_PR-566 -v /w/workspace/xfoundry_device-modbus-go_PR-566:/w/workspace/xfoundry_device-modbus-go_PR-566:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-566@tmp:/w/workspace/xfoundry_device-modbus-go_PR-566@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-x86_64 cat 05:10:22 $ docker top aa54ddc9487115628c2377d4c9be8307cb3f6b4ca5754ab5ca8ee7bb58b431a1 -eo pid,comm [Pipeline] { [Pipeline] sh 05:10:23 + go version 05:10:23 go version go1.21.9 linux/amd64 [Pipeline] } 05:10:23 $ docker stop --time=1 aa54ddc9487115628c2377d4c9be8307cb3f6b4ca5754ab5ca8ee7bb58b431a1 05:10:24 $ docker rm -f --volumes aa54ddc9487115628c2377d4c9be8307cb3f6b4ca5754ab5ca8ee7bb58b431a1 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:10:25 + docker inspect -f . ci-base-image-x86_64 05:10:25 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 05:10:26 prd-ubuntu20.04-docker-8c-8g-7369 does not seem to be running inside a container 05:10:26 $ 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-566 -v /w/workspace/xfoundry_device-modbus-go_PR-566:/w/workspace/xfoundry_device-modbus-go_PR-566:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-566@tmp:/w/workspace/xfoundry_device-modbus-go_PR-566@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-x86_64 cat 05:10:26 $ docker top df33e823a066c3705dffc89f7c7c936d17b6e01de90adbc2a423a3b976cdf170 -eo pid,comm [Pipeline] { [Pipeline] sh 05:10:26 + git config --global --add safe.directory /w/workspace/xfoundry_device-modbus-go_PR-566 [Pipeline] fileExists [Pipeline] sh 05:10:27 + make test 05:10:27 go test ./... -coverprofile=coverage.out 05:10:29 ? github.com/edgexfoundry/device-modbus-go [no test files] 05:10:47 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 05:10:47 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.010s coverage: 47.9% of statements 05:11:03 go vet ./... 05:11:03 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 05:11:03 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 05:11:03 ./bin/test-attribution-txt.sh 05:11:03 An attribution for github.com/panjf2000/ants/v2 is missing from Attribution.txt, please add [Pipeline] echo 05:11:03 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^napa$, ^lts-test$]] [Pipeline] } 05:11:03 $ docker stop --time=1 df33e823a066c3705dffc89f7c7c936d17b6e01de90adbc2a423a3b976cdf170 05:11:04 Running on prd-ubuntu20.04-docker-arm64-4c-16g-7370 in /w/workspace/xfoundry_device-modbus-go_PR-566 05:11:10 $ docker rm -f --volumes df33e823a066c3705dffc89f7c7c936d17b6e01de90adbc2a423a3b976cdf170 [Pipeline] // withDockerContainer [Pipeline] { [Pipeline] sh [Pipeline] ws 05:11:11 Running in /w/workspace/device-modbus-go/1 [Pipeline] { [Pipeline] checkout 05:11:11 The recommended git tool is: git 05:11:11 + sudo chown -R jenkins:jenkins . [Pipeline] stash 05:11:12 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 05:11:13 + sudo chown -R jenkins:jenkins . [Pipeline] sh 05:11:13 + ls -al . 05:11:13 total 272 05:11:13 drwxrwxr-x 9 jenkins jenkins 4096 Aug 8 05:10 . 05:11:13 drwxrwxr-x 4 jenkins jenkins 4096 Aug 8 05:08 .. 05:11:13 -rw-rw-r-- 1 jenkins jenkins 140 Aug 8 05:08 .dockerignore 05:11:13 drwxrwxr-x 8 jenkins jenkins 4096 Aug 8 05:10 .git 05:11:13 drwxrwxr-x 3 jenkins jenkins 4096 Aug 8 05:08 .github 05:11:13 -rw-rw-r-- 1 jenkins jenkins 266 Aug 8 05:08 .gitignore 05:11:13 -rw-rw-r-- 1 jenkins jenkins 41 Aug 8 05:08 .golangci.yml 05:11:13 drwxr-xr-x 3 jenkins jenkins 4096 Aug 8 05:08 .semver 05:11:13 -rw-rw-r-- 1 jenkins jenkins 19432 Aug 8 05:08 Attribution.txt 05:11:13 -rw-rw-r-- 1 jenkins jenkins 16388 Aug 8 05:08 CHANGELOG.md 05:11:13 -rw-rw-r-- 1 jenkins jenkins 1474 Aug 8 05:08 Dockerfile 05:11:13 -rw-rw-r-- 1 jenkins jenkins 677 Aug 8 05:08 GOVERNANCE.md 05:11:13 -rw-rw-r-- 1 jenkins jenkins 658 Aug 8 05:08 Jenkinsfile 05:11:13 -rw-rw-r-- 1 jenkins jenkins 11340 Aug 8 05:08 LICENSE 05:11:13 -rw-rw-r-- 1 jenkins jenkins 1942 Aug 8 05:08 Makefile 05:11:13 -rw-rw-r-- 1 jenkins jenkins 622 Aug 8 05:08 OWNERS.md 05:11:13 -rw-rw-r-- 1 jenkins jenkins 4463 Aug 8 05:08 README.md 05:11:13 -rw-rw-r-- 1 jenkins jenkins 5 Aug 8 05:08 VERSION 05:11:13 drwxrwxr-x 2 jenkins jenkins 4096 Aug 8 05:08 bin 05:11:13 drwxrwxr-x 3 jenkins jenkins 4096 Aug 8 05:08 cmd 05:11:13 -rw-r--r-- 1 jenkins jenkins 24601 Aug 8 05:10 coverage.out 05:11:13 -rw-rw-r-- 1 jenkins jenkins 7185 Aug 8 05:08 go.mod 05:11:13 -rw-rw-r-- 1 jenkins jenkins 102015 Aug 8 05:08 go.sum 05:11:13 drwxrwxr-x 3 jenkins jenkins 4096 Aug 8 05:08 internal 05:11:13 drwxrwxr-x 2 jenkins jenkins 4096 Aug 8 05:08 simulator 05:11:13 -rw-rw-r-- 1 jenkins jenkins 229 Aug 8 05:08 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:11:14 + 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=437c7792f48fd2191ad43373e3cdf143a2981074 --label arch=amd64 --label version=0.0.0 . 05:11:14 Sending build context to Docker daemon 17.93MB 05:11:14 Step 1/23 : ARG BASE=golang:1.21-alpine3.18 05:11:14 Step 2/23 : FROM ${BASE} AS builder 05:11:14 ---> fe470ba8bd23 05:11:14 Step 3/23 : ARG ADD_BUILD_TAGS="" 05:11:14 ---> Running in 0aeecae894e6 05:11:14 Removing intermediate container 0aeecae894e6 05:11:14 ---> b87fdf5edb03 05:11:14 Step 4/23 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 05:11:14 ---> Running in ddca0988e71c 05:11:14 Removing intermediate container ddca0988e71c 05:11:14 ---> 3fa5a21593a0 05:11:14 Step 5/23 : RUN apk add --update --no-cache make git openssh 05:11:14 ---> Running in 9fa9dd3d5fde 05:11:14 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/APKINDEX.tar.gz 05:11:15 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/x86_64/APKINDEX.tar.gz 05:11:15 OK: 270 MiB in 60 packages 05:11:15 Removing intermediate container 9fa9dd3d5fde 05:11:15 ---> 3e1559782912 05:11:15 Step 6/23 : WORKDIR /device-modbus-go 05:11:15 ---> Running in d3d4a6429898 05:11:15 Removing intermediate container d3d4a6429898 05:11:15 ---> afd764126b5e 05:11:15 Step 7/23 : COPY go.mod vendor* ./ 05:11:15 ---> 537dac85c8df 05:11:15 Step 8/23 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 05:11:15 ---> Running in 0239be05535c 05:11:20 Removing intermediate container 0239be05535c 05:11:20 ---> a352a3184076 05:11:20 Step 9/23 : COPY . . 05:11:20 ---> 6f744f53815f 05:11:20 Step 10/23 : RUN ${MAKE} 05:11:20 ---> Running in 32051ce8edcc 05:11:20 CGO_ENABLED=0 go build -tags "" -ldflags "-s -w -X github.com/edgexfoundry/device-modbus-go.Version=0.0.0 -X github.com/edgexfoundry/device-sdk-go/v3/internal/common.SDKVersion=v3.2.0-dev.30" -trimpath -mod=readonly -o cmd/device-modbus ./cmd 05:11:21 using credential edgex-jenkins-ssh 05:11:21 Cloning the remote Git repository 05:11:21 Cloning repository git@github.com:edgexfoundry/device-modbus-go.git 05:11:21 > git init /w/workspace/device-modbus-go/1 # timeout=10 05:11:22 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 05:11:22 > git --version # timeout=10 05:11:22 > git --version # 'git version 2.25.1' 05:11:22 using GIT_SSH to set credentials SSH Credentials for GitHub 05:11:22 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 05:11:24 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 05:11:24 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 05:11:25 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 05:11:25 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 05:11:25 using GIT_SSH to set credentials SSH Credentials for GitHub 05:11:25 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/pull/566/head:refs/remotes/origin/PR-566 +refs/heads/main:refs/remotes/origin/main # timeout=10 05:11:25 Merging remotes/origin/main commit d9d7c9445bd01df0ee4a07f33637a5782cac6865 into PR head commit 437c7792f48fd2191ad43373e3cdf143a2981074 05:11:25 Merge succeeded, producing 437c7792f48fd2191ad43373e3cdf143a2981074 05:11:25 Checking out Revision 437c7792f48fd2191ad43373e3cdf143a2981074 (PR-566) 05:11:26 Commit message: "build(deps): Bump github.com/edgexfoundry/device-sdk-go/v3" 05:11:26 > git --version # timeout=10 05:11:26 > git --version # 'git version 2.25.1' 05:11:26 fatal: bad object 590556114a56c6d90cc8043840e039c2f74196dc 05:11:25 > git config core.sparsecheckout # timeout=10 05:11:25 > git checkout -f 437c7792f48fd2191ad43373e3cdf143a2981074 # timeout=10 05:11:25 > git remote # timeout=10 05:11:25 > git config --get remote.origin.url # timeout=10 05:11:25 using GIT_SSH to set credentials SSH Credentials for GitHub 05:11:25 > git merge d9d7c9445bd01df0ee4a07f33637a5782cac6865 # timeout=10 05:11:25 > git rev-parse HEAD^{commit} # timeout=10 05:11:25 > git config core.sparsecheckout # timeout=10 05:11:25 > git checkout -f 437c7792f48fd2191ad43373e3cdf143a2981074 # timeout=10 [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 05:11:31 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 05:11:31 % Total % Received % Xferd Average Speed Time Time Time Current 05:11:31 Dload Upload Total Spent Left Speed 05:11:31 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 12828 100 12828 0 0 102k 0 --:--:-- --:--:-- --:--:-- 102k [Pipeline] sh 05:11:31 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 05:11:32 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 05:11:32 + sudo tee /etc/docker/daemon.new 05:11:32 { 05:11:32 "registry-mirrors": [ 05:11:32 "https://nexus3.edgexfoundry.org:10001" 05:11:32 ], 05:11:32 "bip": "10.250.0.254/24", 05:11:32 "hosts": [ 05:11:32 "tcp://0.0.0.0:5555", 05:11:32 "unix:///var/run/docker.sock" 05:11:32 ], 05:11:32 "mtu": 1458, 05:11:32 "selinux-enabled": true, 05:11:32 "seccomp-profile": "/etc/docker/seccomp.json" 05:11:32 } [Pipeline] sh 05:11:32 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 05:11:33 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 05:11:51 provisioning config files... 05:11:51 copy managed file [device-modbus-go-settings] to file:/w/workspace/device-modbus-go/1@tmp/config15362218435847605890tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 05:11:51 ---> ****-login.sh 05:11:51 nexus3.edgexfoundry.org:10001 05:11:52 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:11:52 WARNING! Your password will be stored unencrypted in /home/jenkins/.****/config.json. 05:11:52 Configure a credential helper to remove this warning. See 05:11:52 https://docs.****.com/engine/reference/commandline/login/#credentials-store 05:11:52 05:11:52 Login Succeeded 05:11:52 nexus3.edgexfoundry.org:10002 05:11:52 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:11:53 WARNING! Your password will be stored unencrypted in /home/jenkins/.****/config.json. 05:11:53 Configure a credential helper to remove this warning. See 05:11:53 https://docs.****.com/engine/reference/commandline/login/#credentials-store 05:11:53 05:11:53 Login Succeeded 05:11:53 nexus3.edgexfoundry.org:10003 05:11:53 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:11:53 WARNING! Your password will be stored unencrypted in /home/jenkins/.****/config.json. 05:11:53 Configure a credential helper to remove this warning. See 05:11:53 https://docs.****.com/engine/reference/commandline/login/#credentials-store 05:11:53 05:11:53 Login Succeeded 05:11:53 nexus3.edgexfoundry.org:10004 05:11:53 Removing intermediate container 32051ce8edcc 05:11:53 ---> ef661ab554be 05:11:53 Step 11/23 : FROM alpine:3.18 05:11:53 3.18: Pulling from library/alpine 05:11:53 930bdd4d222e: Pulling fs layer 05:11:53 930bdd4d222e: Verifying Checksum 05:11:53 930bdd4d222e: Pull complete 05:11:53 Digest: sha256:5292533eb4efd4b5cf35e93b5a2b7d0e07ea193224c49446c7802c19ee4f2da5 05:11:53 Status: Downloaded newer image for alpine:3.18 05:11:53 ---> 18f865063206 05:11:53 Step 12/23 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IoTech Ltd' 05:11:53 ---> Running in 7d2cb2142f64 05:11:53 Removing intermediate container 7d2cb2142f64 05:11:53 ---> 25ee7eedc294 05:11:53 Step 13/23 : RUN apk add --update --no-cache dumb-init 05:11:53 ---> Running in 934696326efe 05:11:53 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/APKINDEX.tar.gz 05:11:53 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/x86_64/APKINDEX.tar.gz 05:11:53 (1/1) Installing dumb-init (1.2.5-r2) 05:11:53 Executing busybox-1.36.1-r7.trigger 05:11:53 OK: 7 MiB in 16 packages 05:11:53 Removing intermediate container 934696326efe 05:11:53 ---> bc8c6ecb10da 05:11:53 Step 14/23 : RUN apk --no-cache upgrade 05:11:53 ---> Running in 008a4747e6e0 05:11:53 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/APKINDEX.tar.gz 05:11:53 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/x86_64/APKINDEX.tar.gz 05:11:53 OK: 7 MiB in 16 packages 05:11:53 Removing intermediate container 008a4747e6e0 05:11:53 ---> 9a0382df1d5c 05:11:53 Step 15/23 : COPY --from=builder /device-modbus-go/cmd / 05:11:53 ---> a72407edc49e 05:11:53 Step 16/23 : COPY --from=builder /device-modbus-go/LICENSE / 05:11:53 ---> 2c64433c53ce 05:11:53 Step 17/23 : COPY --from=builder /device-modbus-go/Attribution.txt / 05:11:53 ---> 3e4fd0ec5fe3 05:11:53 Step 18/23 : EXPOSE 59901 05:11:53 ---> Running in 94c1bade911c 05:11:53 Removing intermediate container 94c1bade911c 05:11:53 ---> 4f462596ca0c 05:11:53 Step 19/23 : ENTRYPOINT ["/device-modbus"] 05:11:53 ---> Running in 9e74b7859685 05:11:53 Removing intermediate container 9e74b7859685 05:11:53 ---> faa804bfa8f6 05:11:53 Step 20/23 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 05:11:53 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:11:53 WARNING! Your password will be stored unencrypted in /home/jenkins/.****/config.json. 05:11:53 Configure a credential helper to remove this warning. See 05:11:53 https://docs.****.com/engine/reference/commandline/login/#credentials-store 05:11:53 05:11:53 Login Succeeded 05:11:53 ****.io 05:11:53 ---> Running in 4a5c34599498 05:11:53 Removing intermediate container 4a5c34599498 05:11:53 ---> 6b14fe725bdb 05:11:53 Step 21/23 : LABEL arch=amd64 05:11:53 ---> Running in 93484e226113 05:11:53 Removing intermediate container 93484e226113 05:11:53 ---> 002e82349366 05:11:53 Step 22/23 : LABEL git_sha=437c7792f48fd2191ad43373e3cdf143a2981074 05:11:53 ---> Running in 04291bda7ad0 05:11:53 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:11:53 Removing intermediate container 04291bda7ad0 05:11:53 ---> 85d30c076356 05:11:53 Step 23/23 : LABEL version=0.0.0 05:11:53 ---> Running in bd3c4b004d85 05:11:53 Removing intermediate container bd3c4b004d85 05:11:53 ---> 554acbc30217 05:11:53 [Warning] One or more build-args [ARCH] were not consumed 05:11:53 Successfully built 554acbc30217 05:11:53 Successfully tagged device-modbus:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage 05:11:54 WARNING! Your password will be stored unencrypted in /home/jenkins/.****/config.json. 05:11:54 Configure a credential helper to remove this warning. See 05:11:54 https://docs.****.com/engine/reference/commandline/login/#credentials-store 05:11:54 05:11:54 Login Succeeded 05:11:54 ---> ****-login.sh ends [Pipeline] } 05:11:54 Deleting 1 temporary files [Pipeline] stage [Pipeline] { (Docker Push) [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash Stage "Docker Push" skipped due to when conditional [Pipeline] getContext [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Snap) Stage "Snap" skipped due to when conditional [Pipeline] getContext [Pipeline] } [Pipeline] // stage Post stage [Pipeline] echo 05:11:54 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^napa$, ^lts-test$]] [Pipeline] script [Pipeline] { [Pipeline] echo 05:11:55 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^napa$, ^lts-test$]] [Pipeline] echo 05:11:55 ========================================================= 05:11:55 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.21-alpine] 05:11:55 ========================================================= [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] fileExists [Pipeline] sh [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:11:55 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 05:11:55 05:11:55 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:11:55 + 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:11:55 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 05:11:55 latest: Pulling from edgex-lftools-log-publisher 05:11:55 5eb5b503b376: Pulling fs layer 05:11:55 5c69ac0246d0: Pulling fs layer 05:11:55 ec43610c2a17: Pulling fs layer 05:11:55 3a2ae6a8a46f: Pulling fs layer 05:11:55 33b1e0a273af: Pulling fs layer 05:11:55 5d3b04190fa2: Pulling fs layer 05:11:55 2f39f015ded8: Pulling fs layer 05:11:55 33b1e0a273af: Waiting 05:11:55 5d3b04190fa2: Waiting 05:11:55 3a2ae6a8a46f: Waiting 05:11:55 5c69ac0246d0: Verifying Checksum 05:11:55 5c69ac0246d0: Download complete 05:11:55 3a2ae6a8a46f: Download complete 05:11:55 33b1e0a273af: Verifying Checksum 05:11:55 33b1e0a273af: Download complete 05:11:55 5d3b04190fa2: Download complete 05:11:55 ec43610c2a17: Verifying Checksum 05:11:55 ec43610c2a17: Download complete 05:11:56 5eb5b503b376: Verifying Checksum 05:11:56 5eb5b503b376: Download complete 05:11:56 Sending build context to Docker daemon 9.091MB 05:11:56 Step 1/10 : ARG BASE=golang:1.21-alpine3.18 05:11:56 Step 2/10 : FROM ${BASE} AS builder 05:11:56 1.21-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 05:11:56 c6b39de5b339: Pulling fs layer 05:11:56 a69c41024577: Pulling fs layer 05:11:56 d6de4b400683: Pulling fs layer 05:11:56 35cb2a7552d0: Pulling fs layer 05:11:56 4f4fb700ef54: Pulling fs layer 05:11:56 464afbd9ba4c: Pulling fs layer 05:11:56 00f215d4a9da: Pulling fs layer 05:11:56 d496ad576159: Pulling fs layer 05:11:56 464afbd9ba4c: Waiting 05:11:56 4f4fb700ef54: Waiting 05:11:56 d496ad576159: Waiting 05:11:56 00f215d4a9da: Waiting 05:11:56 a69c41024577: Verifying Checksum 05:11:56 a69c41024577: Download complete 05:11:56 35cb2a7552d0: Verifying Checksum 05:11:56 35cb2a7552d0: Download complete 05:11:56 4f4fb700ef54: Verifying Checksum 05:11:56 4f4fb700ef54: Download complete 05:11:56 464afbd9ba4c: Verifying Checksum 05:11:56 464afbd9ba4c: Download complete 05:11:56 c6b39de5b339: Verifying Checksum 05:11:56 c6b39de5b339: Download complete 05:11:56 2f39f015ded8: Verifying Checksum 05:11:56 2f39f015ded8: Download complete 05:11:56 d496ad576159: Verifying Checksum 05:11:56 d496ad576159: Download complete 05:11:57 5eb5b503b376: Pull complete 05:11:57 5c69ac0246d0: Pull complete 05:11:57 c6b39de5b339: Pull complete 05:11:57 ec43610c2a17: Pull complete 05:11:57 3a2ae6a8a46f: Pull complete 05:11:58 a69c41024577: Pull complete 05:11:58 33b1e0a273af: Pull complete 05:11:58 5d3b04190fa2: Pull complete 05:11:58 d6de4b400683: Download complete 05:11:59 00f215d4a9da: Verifying Checksum 05:11:59 00f215d4a9da: Download complete 05:12:02 2f39f015ded8: Pull complete 05:12:02 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 05:12:02 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 05:12:02 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 05:12:02 prd-ubuntu20.04-docker-8c-8g-7369 does not seem to be running inside a container 05:12:02 $ 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-566 -v /w/workspace/xfoundry_device-modbus-go_PR-566:/w/workspace/xfoundry_device-modbus-go_PR-566:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-566@tmp:/w/workspace/xfoundry_device-modbus-go_PR-566@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 05:12:09 $ docker top d8d13bd90fe5b94a51709b1b09819e45faab28069fdfcebdb459170bb6c11788 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 05:12:10 ---> job-cost.sh 05:12:10 lf-activate-venv: SKIPPING 05:12:10 INFO: No Stack... 05:12:10 INFO: Retrieving Pricing Info for: v3-standard-8 05:12:10 INFO: Archiving Costs [Pipeline] sh 05:12:11 + cat /w/workspace/xfoundry_device-modbus-go_PR-566/archives/cost.csv 05:12:11 + cut -d, -f6 [Pipeline] lock 05:12:11 Trying to acquire lock on [Resource: jenkins-edgexfoundry-device-modbus-go-PR-566-1-stack-cost] 05:12:11 Resource [jenkins-edgexfoundry-device-modbus-go-PR-566-1-stack-cost] did not exist. Created. 05:12:11 Lock acquired on [Resource: jenkins-edgexfoundry-device-modbus-go-PR-566-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 05:12:11 + echo total: 0.2199999988079071 [Pipeline] stash 05:12:11 Stashed 1 file(s) [Pipeline] } 05:12:11 Lock released on resource [Resource: jenkins-edgexfoundry-device-modbus-go-PR-566-1-stack-cost] [Pipeline] // lock [Pipeline] } 05:12:11 $ docker stop --time=1 d8d13bd90fe5b94a51709b1b09819e45faab28069fdfcebdb459170bb6c11788 05:12:12 d6de4b400683: Pull complete 05:12:12 35cb2a7552d0: Pull complete 05:12:12 4f4fb700ef54: Pull complete 05:12:12 464afbd9ba4c: Pull complete 05:12:13 $ docker rm -f --volumes d8d13bd90fe5b94a51709b1b09819e45faab28069fdfcebdb459170bb6c11788 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 05:12:20 00f215d4a9da: Pull complete 05:12:21 d496ad576159: Pull complete 05:12:21 Digest: sha256:94db8a0955b4c8a8fb4ef40f1d66dd6a37c55842a5f6085bb7a69a85e2cfc316 05:12:21 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.21-alpine 05:12:21 ---> f246e2811388 05:12:21 Step 3/10 : ARG ADD_BUILD_TAGS="" 05:12:23 ---> Running in 7d8dfc634bf5 05:12:23 Removing intermediate container 7d8dfc634bf5 05:12:23 ---> a797515b71bf 05:12:23 Step 4/10 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 05:12:23 ---> Running in 01c6d0691228 05:12:24 Removing intermediate container 01c6d0691228 05:12:24 ---> cbeabaf3a4db 05:12:24 Step 5/10 : RUN apk add --update --no-cache make git openssh 05:12:24 ---> Running in 064f528eb70e 05:12:25 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/aarch64/APKINDEX.tar.gz 05:12:25 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/aarch64/APKINDEX.tar.gz 05:12:26 (1/8) Installing openssh-keygen (9.3_p2-r2) 05:12:26 (2/8) Installing libedit (20221030.3.1-r1) 05:12:26 (3/8) Installing openssh-client-common (9.3_p2-r2) 05:12:26 (4/8) Installing openssh-client-default (9.3_p2-r2) 05:12:26 (5/8) Installing openssh-sftp-server (9.3_p2-r2) 05:12:26 (6/8) Installing openssh-server-common (9.3_p2-r2) 05:12:26 (7/8) Installing openssh-server (9.3_p2-r2) 05:12:26 (8/8) Installing openssh (9.3_p2-r2) 05:12:26 Executing busybox-1.36.1-r5.trigger 05:12:26 OK: 272 MiB in 60 packages 05:12:28 Removing intermediate container 064f528eb70e 05:12:28 ---> 198ab1bce686 05:12:28 Step 6/10 : WORKDIR /device-modbus-go 05:12:28 ---> Running in 5d3b13435cc7 05:12:28 Removing intermediate container 5d3b13435cc7 05:12:28 ---> 89e1d1dcee01 05:12:28 Step 7/10 : COPY go.mod vendor* ./ 05:12:28 ---> 50b8d299f57d 05:12:28 Step 8/10 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 05:12:28 ---> Running in 4f81feba633f 05:14:20 Removing intermediate container 4f81feba633f 05:14:20 ---> 5ff046716abb 05:14:20 Step 9/10 : COPY . . 05:14:20 ---> b2401adf52db 05:14:20 Step 10/10 : RUN ${MAKE} 05:14:20 ---> Running in 0413b4a19782 05:14:20 noop 05:14:20 Removing intermediate container 0413b4a19782 05:14:20 ---> 5d592b3fed86 05:14:20 Successfully built 5d592b3fed86 05:14:20 Successfully tagged ci-base-image-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:14:20 + docker inspect -f . ci-base-image-arm64 05:14:20 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 05:14:21 prd-ubuntu20.04-docker-arm64-4c-16g-7370 does not seem to be running inside a container 05:14:21 $ 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:14:22 $ docker top c4297556ab040e8060b4f6beef9fd18ac03bc6cfa6986e48b9cdafcfe89d9f16 -eo pid,comm [Pipeline] { [Pipeline] sh 05:14:23 + go version 05:14:23 go version go1.21.9 linux/arm64 [Pipeline] } 05:14:23 $ docker stop --time=1 c4297556ab040e8060b4f6beef9fd18ac03bc6cfa6986e48b9cdafcfe89d9f16 05:14:24 $ docker rm -f --volumes c4297556ab040e8060b4f6beef9fd18ac03bc6cfa6986e48b9cdafcfe89d9f16 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:14:25 + docker inspect -f . ci-base-image-arm64 05:14:25 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 05:14:26 prd-ubuntu20.04-docker-arm64-4c-16g-7370 does not seem to be running inside a container 05:14:26 $ 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:14:27 $ docker top a9756ab1f6334d00442d8a8cd08f2a1dd27f9fb7d1d004208a003b8ae044b6c2 -eo pid,comm [Pipeline] { [Pipeline] sh 05:14:27 + git config --global --add safe.directory /w/workspace/device-modbus-go/1 [Pipeline] fileExists [Pipeline] sh 05:14:28 + make test 05:14:28 go test ./... -coverprofile=coverage.out 05:14:35 ? github.com/edgexfoundry/device-modbus-go [no test files] 05:17:42 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 05:17:42 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.049s coverage: 47.9% of statements 05:17:43 WARNING: Linting skipped (not on x86_64 or linter not installed) 05:17:43 go vet ./... 05:18:29 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 05:18:29 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 05:18:29 ./bin/test-attribution-txt.sh 05:18:29 An attribution for github.com/panjf2000/ants/v2 is missing from Attribution.txt, please add [Pipeline] echo 05:18:30 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^napa$, ^lts-test$]] [Pipeline] } 05:18:30 $ docker stop --time=1 a9756ab1f6334d00442d8a8cd08f2a1dd27f9fb7d1d004208a003b8ae044b6c2 05:18:31 $ docker rm -f --volumes a9756ab1f6334d00442d8a8cd08f2a1dd27f9fb7d1d004208a003b8ae044b6c2 [Pipeline] // withDockerContainer [Pipeline] sh 05:18:33 + sudo chown -R jenkins:jenkins . [Pipeline] stash 05:18:33 Warning: overwriting stash ‘coverage-report’ 05:18:34 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 05:18:34 + sudo chown -R jenkins:jenkins . [Pipeline] sh 05:18:35 + ls -al . 05:18:35 total 268 05:18:35 drwxrwxr-x 8 jenkins jenkins 4096 Aug 8 05:14 . 05:18:35 drwxrwxr-x 4 jenkins jenkins 4096 Aug 8 05:11 .. 05:18:35 -rw-rw-r-- 1 jenkins jenkins 140 Aug 8 05:11 .dockerignore 05:18:35 drwxrwxr-x 8 jenkins jenkins 4096 Aug 8 05:11 .git 05:18:35 drwxrwxr-x 3 jenkins jenkins 4096 Aug 8 05:11 .github 05:18:35 -rw-rw-r-- 1 jenkins jenkins 266 Aug 8 05:11 .gitignore 05:18:35 -rw-rw-r-- 1 jenkins jenkins 41 Aug 8 05:11 .golangci.yml 05:18:35 -rw-rw-r-- 1 jenkins jenkins 19432 Aug 8 05:11 Attribution.txt 05:18:35 -rw-rw-r-- 1 jenkins jenkins 16388 Aug 8 05:11 CHANGELOG.md 05:18:35 -rw-rw-r-- 1 jenkins jenkins 1474 Aug 8 05:11 Dockerfile 05:18:35 -rw-rw-r-- 1 jenkins jenkins 677 Aug 8 05:11 GOVERNANCE.md 05:18:35 -rw-rw-r-- 1 jenkins jenkins 658 Aug 8 05:11 Jenkinsfile 05:18:35 -rw-rw-r-- 1 jenkins jenkins 11340 Aug 8 05:11 LICENSE 05:18:35 -rw-rw-r-- 1 jenkins jenkins 1942 Aug 8 05:11 Makefile 05:18:35 -rw-rw-r-- 1 jenkins jenkins 622 Aug 8 05:11 OWNERS.md 05:18:35 -rw-rw-r-- 1 jenkins jenkins 4463 Aug 8 05:11 README.md 05:18:35 -rw-rw-r-- 1 jenkins jenkins 5 Aug 8 05:08 VERSION 05:18:35 drwxrwxr-x 2 jenkins jenkins 4096 Aug 8 05:11 bin 05:18:35 drwxrwxr-x 3 jenkins jenkins 4096 Aug 8 05:11 cmd 05:18:35 -rw-r--r-- 1 jenkins jenkins 24601 Aug 8 05:17 coverage.out 05:18:35 -rw-rw-r-- 1 jenkins jenkins 7185 Aug 8 05:11 go.mod 05:18:35 -rw-rw-r-- 1 jenkins jenkins 102015 Aug 8 05:11 go.sum 05:18:35 drwxrwxr-x 3 jenkins jenkins 4096 Aug 8 05:11 internal 05:18:35 drwxrwxr-x 2 jenkins jenkins 4096 Aug 8 05:11 simulator 05:18:35 -rw-rw-r-- 1 jenkins jenkins 229 Aug 8 05:11 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:18:35 + 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=437c7792f48fd2191ad43373e3cdf143a2981074 --label arch=arm64 --label version=0.0.0 . 05:18:36 Sending build context to Docker daemon 9.117MB 05:18:36 Step 1/23 : ARG BASE=golang:1.21-alpine3.18 05:18:36 Step 2/23 : FROM ${BASE} AS builder 05:18:36 ---> 5d592b3fed86 05:18:36 Step 3/23 : ARG ADD_BUILD_TAGS="" 05:18:36 ---> Running in 8ece7d3b0303 05:18:36 Removing intermediate container 8ece7d3b0303 05:18:36 ---> b96dbbb58d2a 05:18:36 Step 4/23 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 05:18:36 ---> Running in 3c836368ffa4 05:18:36 Removing intermediate container 3c836368ffa4 05:18:36 ---> 2d54ce753072 05:18:36 Step 5/23 : RUN apk add --update --no-cache make git openssh 05:18:36 ---> Running in 7f57bc743a3a 05:18:37 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/aarch64/APKINDEX.tar.gz 05:18:38 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/aarch64/APKINDEX.tar.gz 05:18:39 OK: 272 MiB in 60 packages 05:18:40 Removing intermediate container 7f57bc743a3a 05:18:40 ---> cd76b3ff3016 05:18:40 Step 6/23 : WORKDIR /device-modbus-go 05:18:40 ---> Running in 72f94cb1ab9b 05:18:40 Removing intermediate container 72f94cb1ab9b 05:18:40 ---> 7e12cf7235cb 05:18:40 Step 7/23 : COPY go.mod vendor* ./ 05:18:40 ---> a3b4f2f3d41b 05:18:40 Step 8/23 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 05:18:40 ---> Running in 83b9ddada633 05:18:42 Removing intermediate container 83b9ddada633 05:18:42 ---> 19ffc03d5aea 05:18:42 Step 9/23 : COPY . . 05:18:44 ---> b5b693eedc4e 05:18:44 Step 10/23 : RUN ${MAKE} 05:18:44 ---> Running in ed9d71889e3a 05:18:45 CGO_ENABLED=0 go build -tags "" -ldflags "-s -w -X github.com/edgexfoundry/device-modbus-go.Version=0.0.0 -X github.com/edgexfoundry/device-sdk-go/v3/internal/common.SDKVersion=v3.2.0-dev.30" -trimpath -mod=readonly -o cmd/device-modbus ./cmd 05:22:07 Removing intermediate container ed9d71889e3a 05:22:07 ---> a53c22128cff 05:22:07 Step 11/23 : FROM alpine:3.18 05:22:07 3.18: Pulling from library/alpine 05:22:07 4983c3fe2029: Pulling fs layer 05:22:07 4983c3fe2029: Verifying Checksum 05:22:07 4983c3fe2029: Download complete 05:22:07 4983c3fe2029: Pull complete 05:22:07 Digest: sha256:5292533eb4efd4b5cf35e93b5a2b7d0e07ea193224c49446c7802c19ee4f2da5 05:22:07 Status: Downloaded newer image for alpine:3.18 05:22:07 ---> a0237000ae83 05:22:07 Step 12/23 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IoTech Ltd' 05:22:07 ---> Running in d0f2d056e8ab 05:22:07 Removing intermediate container d0f2d056e8ab 05:22:07 ---> 27bb55dfbe7b 05:22:07 Step 13/23 : RUN apk add --update --no-cache dumb-init 05:22:07 ---> Running in a6ab5eda55a9 05:22:07 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/aarch64/APKINDEX.tar.gz 05:22:07 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/aarch64/APKINDEX.tar.gz 05:22:07 (1/1) Installing dumb-init (1.2.5-r2) 05:22:07 Executing busybox-1.36.1-r7.trigger 05:22:07 OK: 8 MiB in 16 packages 05:22:07 Removing intermediate container a6ab5eda55a9 05:22:07 ---> f38841f7f7a8 05:22:07 Step 14/23 : RUN apk --no-cache upgrade 05:22:07 ---> Running in 0cd727de2f08 05:22:07 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/aarch64/APKINDEX.tar.gz 05:22:07 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/aarch64/APKINDEX.tar.gz 05:22:07 OK: 8 MiB in 16 packages 05:22:07 Removing intermediate container 0cd727de2f08 05:22:07 ---> 7c92ece33f59 05:22:07 Step 15/23 : COPY --from=builder /device-modbus-go/cmd / 05:22:07 ---> e16e3d7ad835 05:22:07 Step 16/23 : COPY --from=builder /device-modbus-go/LICENSE / 05:22:07 ---> a1c19c447a56 05:22:07 Step 17/23 : COPY --from=builder /device-modbus-go/Attribution.txt / 05:22:08 ---> 5cfa132dbad2 05:22:08 Step 18/23 : EXPOSE 59901 05:22:08 ---> Running in ea9f604c88ef 05:22:12 Removing intermediate container ea9f604c88ef 05:22:12 ---> 8985a22c0684 05:22:12 Step 19/23 : ENTRYPOINT ["/device-modbus"] 05:22:12 ---> Running in 089cba9764cf 05:22:12 Removing intermediate container 089cba9764cf 05:22:12 ---> 52c751aa8c25 05:22:12 Step 20/23 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 05:22:12 ---> Running in c80f2e81bdd0 05:22:12 Removing intermediate container c80f2e81bdd0 05:22:12 ---> e3a0f058627a 05:22:12 Step 21/23 : LABEL arch=arm64 05:22:12 ---> Running in 91ad0e2f719e 05:22:12 Removing intermediate container 91ad0e2f719e 05:22:12 ---> cda28abe2548 05:22:12 Step 22/23 : LABEL git_sha=437c7792f48fd2191ad43373e3cdf143a2981074 05:22:12 ---> Running in 28fcd608651c 05:22:12 Removing intermediate container 28fcd608651c 05:22:12 ---> 05350d9afc23 05:22:12 Step 23/23 : LABEL version=0.0.0 05:22:12 ---> Running in a8aea77ba5c8 05:22:12 Removing intermediate container a8aea77ba5c8 05:22:12 ---> 211dafb30757 05:22:12 [Warning] One or more build-args [ARCH] were not consumed 05:22:12 Successfully built 211dafb30757 05:22:12 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] getContext [Pipeline] } [Pipeline] // stage Post stage [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:22:13 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 05:22:13 05:22:13 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:22:13 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 05:22:13 arm64: Pulling from edgex-lftools-log-publisher 05:22:13 8998bd30e6a1: Pulling fs layer 05:22:13 04944245beec: Pulling fs layer 05:22:13 699f458cf7ca: Pulling fs layer 05:22:13 765212b225bb: Pulling fs layer 05:22:13 f23df028b6ca: Pulling fs layer 05:22:13 d65c8cfc05b1: Pulling fs layer 05:22:13 2437ff75d9bd: Pulling fs layer 05:22:13 d65c8cfc05b1: Waiting 05:22:13 f23df028b6ca: Waiting 05:22:13 2437ff75d9bd: Waiting 05:22:13 765212b225bb: Waiting 05:22:14 04944245beec: Verifying Checksum 05:22:14 04944245beec: Download complete 05:22:14 765212b225bb: Verifying Checksum 05:22:14 765212b225bb: Download complete 05:22:14 f23df028b6ca: Verifying Checksum 05:22:14 f23df028b6ca: Download complete 05:22:14 d65c8cfc05b1: Verifying Checksum 05:22:14 d65c8cfc05b1: Download complete 05:22:14 699f458cf7ca: Verifying Checksum 05:22:14 699f458cf7ca: Download complete 05:22:14 8998bd30e6a1: Verifying Checksum 05:22:14 8998bd30e6a1: Download complete 05:22:17 2437ff75d9bd: Verifying Checksum 05:22:17 2437ff75d9bd: Download complete 05:22:19 8998bd30e6a1: Pull complete 05:22:19 04944245beec: Pull complete 05:22:21 699f458cf7ca: Pull complete 05:22:21 765212b225bb: Pull complete 05:22:22 f23df028b6ca: Pull complete 05:22:22 d65c8cfc05b1: Pull complete 05:22:40 2437ff75d9bd: Pull complete 05:22:40 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 05:22:40 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 05:22:40 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 05:22:40 prd-ubuntu20.04-docker-arm64-4c-16g-7370 does not seem to be running inside a container 05:22:40 $ 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:22:43 $ docker top 65ca6dc8b653a762ea30014d5d41b984fd9821633e468a44335c22b2125d20ad -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 05:22:44 ---> job-cost.sh 05:22:44 lf-activate-venv: SKIPPING 05:22:44 INFO: No Stack... 05:22:44 INFO: Retrieving Pricing Info for: v3-standard-4 05:22:45 INFO: Archiving Costs [Pipeline] sh 05:22:47 + cat+ cut -d, -f6 05:22:47 /w/workspace/device-modbus-go/1/archives/cost.csv [Pipeline] lock 05:22:47 Trying to acquire lock on [Resource: jenkins-edgexfoundry-device-modbus-go-PR-566-1-stack-cost] 05:22:47 Resource [jenkins-edgexfoundry-device-modbus-go-PR-566-1-stack-cost] did not exist. Created. 05:22:47 Lock acquired on [Resource: jenkins-edgexfoundry-device-modbus-go-PR-566-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 05:22:47 /w/workspace/device-modbus-go/1@tmp/durable-60230656/script.sh.copy: 1: Syntax error: Unterminated quoted string [Pipeline] sh 05:22:48 + echo total: 0.10999999940395355 [Pipeline] stash 05:22:48 Warning: overwriting stash ‘stack-cost’ 05:22:48 Stashed 1 file(s) [Pipeline] } 05:22:48 Lock released on resource [Resource: jenkins-edgexfoundry-device-modbus-go-PR-566-1-stack-cost] [Pipeline] // lock [Pipeline] } 05:22:48 $ docker stop --time=1 65ca6dc8b653a762ea30014d5d41b984fd9821633e468a44335c22b2125d20ad 05:22:49 $ docker rm -f --volumes 65ca6dc8b653a762ea30014d5d41b984fd9821633e468a44335c22b2125d20ad [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:22:51 provisioning config files... 05:22:51 copy managed file [device-modbus-go-codecov-token] to file:/w/workspace/xfoundry_device-modbus-go_PR-566@tmp/config1706582690267699989tmp [Pipeline] { [Pipeline] sh 05:22:52 + set +x 05:22:52 + curl -s https://codecov.io/bash 05:22:52 + bash -s -- 05:22:52 05:22:52 _____ _ 05:22:52 / ____| | | 05:22:52 | | ___ __| | ___ ___ _____ __ 05:22:52 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 05:22:52 | |___| (_) | (_| | __/ (_| (_) \ V / 05:22:52 \_____\___/ \__,_|\___|\___\___/ \_/ 05:22:52 Bash-1.0.6 05:22:52 05:22:52 05:22:52 ==> git version 2.25.1 found 05:22:52 ==> 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:22:52 Release-Date: 2020-01-08 05:22:52 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:22:52 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 05:22:52 ==> Jenkins CI detected. 05:22:52 current dir:  /w/workspace/xfoundry_device-modbus-go_PR-566 05:22:52 project root: . 05:22:52 --> token set from env 05:22:52 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 05:22:52 ==> Running gcov in . (disable via -X gcov) 05:22:52 ==> Python coveragepy not found 05:22:52 ==> Searching for coverage reports in: 05:22:52 + . 05:22:52 -> Found 1 reports 05:22:52 ==> Detecting git/mercurial file structure 05:22:52 ==> Reading reports 05:22:52 + ./coverage.out bytes=24601 05:22:52 ==> Appending adjustments 05:22:52 https://docs.codecov.io/docs/fixing-reports 05:22:52 + Found adjustments 05:22:52 ==> Gzipping contents 05:22:52 4.0K /tmp/codecov.ELotkK.gz 05:22:52 ==> Uploading reports 05:22:52 url: https://codecov.io 05:22:52 query: branch=PR-566&commit=437c7792f48fd2191ad43373e3cdf143a2981074&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-modbus-go%2Fjob%2FPR-566%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-modbus-go&service=jenkins&flags=&pr=566&job=&cmd_args= 05:22:52 -> Pinging Codecov 05:22:52 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=****&branch=PR-566&commit=437c7792f48fd2191ad43373e3cdf143a2981074&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-modbus-go%2Fjob%2FPR-566%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-modbus-go&service=jenkins&flags=&pr=566&job=&cmd_args= 05:22:52 -> Uploading to 05:22:52 https://storage.googleapis.com/codecov/v4/raw/2024-08-08/55DBCA73C666E3227836607328DD7E49/437c7792f48fd2191ad43373e3cdf143a2981074/a88646af-9704-4871-b363-35ecd963f31b.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20240808%2Fus-west2%2Fs3%2Faws4_request&X-Amz-Date=20240808T052252Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=98a9eea10ca9f9c6a85f1b3330eec27d73f246cef381a10d5c28dea666efb29f 05:22:52 % Total % Received % Xferd Average Speed Time Time Time Current 05:22:52 Dload Upload Total Spent Left Speed 05:22:52 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 3843 0 0 100 3843 0 15189 --:--:-- --:--:-- --:--:-- 15189 05:22:52 -> Reports have been successfully queued for processing at https://app.codecov.io/github/edgexfoundry/device-modbus-go/commit/437c7792f48fd2191ad43373e3cdf143a2981074 [Pipeline] } 05:22:52 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] getContext [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Archive Prep) Stage "Archive Prep" skipped due to when conditional [Pipeline] getContext [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Publish Swagger) Stage "Publish Swagger" skipped due to when conditional [Pipeline] getContext [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Semver) Stage "Semver" skipped due to when conditional [Pipeline] getContext [Pipeline] stage [Pipeline] { (Tag) Stage "Semver" skipped due to when conditional [Pipeline] getContext [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Pre-Release Version) Stage "Semver" skipped due to when conditional [Pipeline] getContext [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Experimental Tag) Stage "Semver" skipped due to when conditional [Pipeline] getContext [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Stable (Named) Tag) Stage "Semver" skipped due to when conditional [Pipeline] getContext [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:22:54 + [ -d /w/workspace/xfoundry_device-modbus-go_PR-566/archives ] 05:22:54 + ls -al /w/workspace/xfoundry_device-modbus-go_PR-566/archives 05:22:54 total 16 05:22:54 drwxr-xr-x 3 root root 4096 Aug 8 05:12 . 05:22:54 drwxrwxr-x 10 jenkins jenkins 4096 Aug 8 05:12 .. 05:22:54 drwxr-xr-x 2 root root 4096 Aug 8 05:12 cost 05:22:54 -rw-r--r-- 1 root root 88 Aug 8 05:12 cost.csv 05:22:54 + sudo chown -R jenkins:jenkins /w/workspace/xfoundry_device-modbus-go_PR-566/archives 05:22:54 + ls -al /w/workspace/xfoundry_device-modbus-go_PR-566/archives 05:22:54 total 16 05:22:54 drwxr-xr-x 3 jenkins jenkins 4096 Aug 8 05:12 . 05:22:54 drwxrwxr-x 10 jenkins jenkins 4096 Aug 8 05:12 .. 05:22:54 drwxr-xr-x 2 jenkins jenkins 4096 Aug 8 05:12 cost 05:22:54 -rw-r--r-- 1 jenkins jenkins 88 Aug 8 05:12 cost.csv [Pipeline] libraryResource [Pipeline] sh 05:22:55 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 05:22:56 ---> package-listing.sh 05:22:56 ++ facter osfamily 05:22:56 ++ tr '[:upper:]' '[:lower:]' 05:22:56 + OS_FAMILY=debian 05:22:56 + workspace=/w/workspace/xfoundry_device-modbus-go_PR-566 05:22:56 + START_PACKAGES=/tmp/packages_start.txt 05:22:56 + END_PACKAGES=/tmp/packages_end.txt 05:22:56 + DIFF_PACKAGES=/tmp/packages_diff.txt 05:22:56 + PACKAGES=/tmp/packages_start.txt 05:22:56 + '[' /w/workspace/xfoundry_device-modbus-go_PR-566 ']' 05:22:56 + PACKAGES=/tmp/packages_end.txt 05:22:56 + case "${OS_FAMILY}" in 05:22:56 + dpkg -l 05:22:56 + grep '^ii' 05:22:56 + '[' -f /tmp/packages_start.txt ']' 05:22:56 + '[' -f /tmp/packages_end.txt ']' 05:22:56 + diff /tmp/packages_start.txt /tmp/packages_end.txt 05:22:56 + '[' /w/workspace/xfoundry_device-modbus-go_PR-566 ']' 05:22:56 + mkdir -p /w/workspace/xfoundry_device-modbus-go_PR-566/archives/ 05:22:56 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/xfoundry_device-modbus-go_PR-566/archives/ [Pipeline] echo 05:22:56 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-566/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 05:22:57 + facter operatingsystem [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:22:57 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 05:22:57 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 05:22:57 prd-ubuntu20.04-docker-8c-8g-7369 does not seem to be running inside a container 05:22:57 $ 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-566/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-566 -v /w/workspace/xfoundry_device-modbus-go_PR-566:/w/workspace/xfoundry_device-modbus-go_PR-566:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-566@tmp:/w/workspace/xfoundry_device-modbus-go_PR-566@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:22:58 $ docker top 6559b9670760690568b91a424c5cf64507f953fcfdab47067e91e84d6a00f55c -eo pid,comm [Pipeline] { [Pipeline] sh 05:22:58 + touch /tmp/pre-build-complete [Pipeline] sh 05:22:58 + mkdir -p /var/log/sysstat [Pipeline] sh 05:22:59 + ls /var/log/sa-host 05:22:59 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 05:22:59 provisioning config files... 05:22:59 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-566@tmp/config11677906948927245155tmp [Pipeline] { [Pipeline] echo 05:22:59 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 05:22:59 ---> create-netrc.sh [Pipeline] } 05:22:59 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 05:23:00 ---> python-tools-install.sh [Pipeline] echo 05:23:00 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 05:23:00 ---> sudo-logs.sh 05:23:00 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 05:23:00 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 05:23:01 ---> job-cost.sh 05:23:01 lf-activate-venv: SKIPPING 05:23:01 DEBUG: total: 0.2199999988079071 05:23:01 INFO: Retrieving Stack Cost... 05:23:01 INFO: Retrieving Pricing Info for: v3-standard-8 05:23:01 INFO: Archiving Costs [Pipeline] echo 05:23:02 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 05:23:02 ---> logs-deploy.sh 05:23:02 lf-activate-venv: SKIPPING 05:23:02 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-modbus-go/PR-566/1 05:23:02 INFO: archiving workspace using pattern(s): 05:23:03 Archives upload complete. 05:23:03 INFO: archiving logs to Nexus