Pull request #503 opened Connecting to https://api.github.com using edgex-jenkins github personal access token Connecting to https://api.github.com to check permissions of obtain list of ernestojeda for edgexfoundry/device-modbus-go Obtained Jenkinsfile from a1e294ccebe5d32c658330e9975c905eff52af94+51bdb209bfe3268f564ccfe93ba09768b0d9e930 (27e1cf0cad4703a647dbb68a0f7239829e27f83e) 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-ssh10232133599544868162.key > git ls-remote -h -t -- git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Found match: refs/tags/stable revision e143027787c0ac28563f7e92b6cefc600d3b7107 Resolving tag commit... (remote references may be a lightweight tag or an annotated tag) > git rev-parse --resolve-git-dir /var/lib/jenkins/caches/git-95b00d7e16de695d9f4849f078f37a0f/.git # timeout=10 Setting origin to git@github.com:edgexfoundry/edgex-global-pipelines.git > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Fetching origin... Fetching upstream changes from origin > git --version # timeout=10 > git --version # 'git version 2.16.6' > git config --get remote.origin.url # timeout=10 using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/caches/git-95b00d7e16de695d9f4849f078f37a0f@tmp/jenkins-gitclient-ssh96266801272416518.key > git fetch --tags --progress -- origin +refs/heads/*:refs/remotes/origin/* # timeout=10 > git rev-parse refs/tags/stable^{commit} # timeout=10 Resolved tag stable revision e143027787c0ac28563f7e92b6cefc600d3b7107 The recommended git tool is: git using credential edgex-jenkins-ssh Cloning the remote Git repository Cloning with configured refspecs honoured and with tags Cloning repository git@github.com:edgexfoundry/edgex-global-pipelines.git > git init /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-503/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-503/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh11920025733874733076.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-503/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh9411615378966393802.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision e143027787c0ac28563f7e92b6cefc600d3b7107 (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f e143027787c0ac28563f7e92b6cefc600d3b7107 # timeout=10 Commit message: "Merge pull request #442 from ernestojeda/golang-1.21" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 > git --version # timeout=10 > git --version # 'git version 2.16.6' Excluding src/test/ from checkout of git git@github.com:edgexfoundry/edgex-global-pipelines.git so that library test code cannot be accessed by Pipelines. To remove this log message, move the test code outside of src/. To restore the previous behavior that allowed access to files in src/test/, pass -Dorg.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.INCLUDE_SRC_TEST_IN_LIBRARIES=true to the java command used to start Jenkins. Loading library lf-pipelines@master Attempting to resolve master from remote references... > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /tmp/jenkins-gitclient-ssh1076236242828050038.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-503/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-503/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e@tmp/jenkins-gitclient-ssh13790366659594790173.key > git fetch --no-tags --progress -- git@github.com:lfit/releng-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:lfit/releng-pipelines.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 Avoid second fetch Checking out Revision 65355178549468b165f8106641c96c3190b1d843 (master) > git config core.sparsecheckout # timeout=10 > git checkout -f 65355178549468b165f8106641c96c3190b1d843 # timeout=10 Commit message: "Fix: Add S3 URL in href to ship logs" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 > git --version # timeout=10 > git --version # 'git version 2.16.6' fatal: bad object e143027787c0ac28563f7e92b6cefc600d3b7107 Excluding src/test/ from checkout of git git@github.com:lfit/releng-pipelines.git so that library test code cannot be accessed by Pipelines. To remove this log message, move the test code outside of src/. To restore the previous behavior that allowed access to files in src/test/, pass -Dorg.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.INCLUDE_SRC_TEST_IN_LIBRARIES=true to the java command used to start Jenkins. [Pipeline] Start of Pipeline [Pipeline] echo ========================================================= [edgeXBuildGoApp] RAW Config: [project:device-modbus-go, buildSnap:false] ========================================================= [Pipeline] echo Setting up nodes based on requested architectures [[amd64, arm64]] [Pipeline] echo Nodes requested: [[ubuntu20.04-docker-8c-8g, ubuntu20.04-docker-arm64-4c-16g]] [Pipeline] echo ========================================================= [edgeXBuildGoApp] Pipeline Parameters: ========================================================= [Pipeline] echo MAVEN_SETTINGS: device-modbus-go-settings PROJECT: device-modbus-go USE_SEMVER: true TEST_SCRIPT: make test BUILD_SCRIPT: make build GO_VERSION: 1.21 USE_ALPINE: true DOCKER_FILE_PATH: Dockerfile DOCKER_BUILD_FILE_PATH: Dockerfile.build DOCKER_BUILD_CONTEXT: . DOCKER_BUILD_IMAGE_TARGET: builder DOCKER_IMAGE_NAME: device-modbus DOCKER_REGISTRY_NAMESPACE: DOCKER_NEXUS_REPO: staging BUILD_DOCKER_IMAGE: true PUSH_DOCKER_IMAGE: true BUILD_EXPERIMENTAL_DOCKER_IMAGE: false BUILD_STABLE_DOCKER_IMAGE: false SEMVER_BUMP_LEVEL: pre BUILD_SNAP: false PUBLISH_SWAGGER_DOCS: false SWAGGER_API_FOLDERS: openapi/v1 ARTIFACT_ROOT: archives/bin ARTIFACT_TYPES: docker SHOULD_BUILD: true BUILD_FAILURE_NOTIFY_LIST: edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org SNYK_DEBUG: false [Pipeline] node Still waiting to schedule task Waiting for next available executor on ‘prd-ubuntu20.04-docker-8c-8g-6728’ Running on prd-ubuntu20.04-docker-8c-8g-6734 in /w/workspace/xfoundry_device-modbus-go_PR-503 [Pipeline] { [Pipeline] stage [Pipeline] { (Declarative: Checkout SCM) [Pipeline] checkout Selected Git installation does not exist. Using Default The recommended git tool is: NONE using credential edgex-jenkins-ssh Cloning the remote Git repository Cloning repository git@github.com:edgexfoundry/device-modbus-go.git > git init /w/workspace/xfoundry_device-modbus-go_PR-503 # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git > git --version # timeout=10 > git --version # 'git version 2.25.1' using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/pull/503/head:refs/remotes/origin/PR-503 +refs/heads/main:refs/remotes/origin/main # timeout=10 Merging remotes/origin/main commit 51bdb209bfe3268f564ccfe93ba09768b0d9e930 into PR head commit a1e294ccebe5d32c658330e9975c905eff52af94 Merge succeeded, producing a1e294ccebe5d32c658330e9975c905eff52af94 Checking out Revision a1e294ccebe5d32c658330e9975c905eff52af94 (PR-503) > git config core.sparsecheckout # timeout=10 > git checkout -f a1e294ccebe5d32c658330e9975c905eff52af94 # timeout=10 > git remote # timeout=10 > git config --get remote.origin.url # timeout=10 using GIT_SSH to set credentials SSH Credentials for GitHub > git merge 51bdb209bfe3268f564ccfe93ba09768b0d9e930 # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f a1e294ccebe5d32c658330e9975c905eff52af94 # timeout=10 Commit message: "ci: add automated release workflow on tag creation" First time build. Skipping changelog. > git --version # timeout=10 > git --version # 'git version 2.25.1' fatal: bad object e143027787c0ac28563f7e92b6cefc600d3b7107 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 17:22:17 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 17:22:17 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 17:22:17 ========================================================= 17:22:17 EdgeX Global Pipelines Version Info 17:22:17 ========================================================= [Pipeline] libraryResource [Pipeline] sh 17:22:18 ------------------- 17:22:18 stable info: 17:22:18 ------------------- 17:22:18 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 17:22:18 Commit SHA: e143027787c0ac28563f7e92b6cefc600d3b7107 17:22:18 Message: update stable to v1.0.254 17:22:19 ------------------- 17:22:19 experimental info: 17:22:19 ------------------- 17:22:19 Commited By: **** collab-it+edgex@linuxfoundation.org 17:22:19 Commit SHA: e143027787c0ac28563f7e92b6cefc600d3b7107 17:22:19 Message: update experimental to v1.0.254 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 17:22:19 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-modbus-go-settings [Pipeline] echo 17:22:19 [edgeXSetupEnvironment]: set envvar PROJECT = device-modbus-go [Pipeline] echo 17:22:19 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 17:22:19 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 17:22:19 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 17:22:19 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.21 [Pipeline] echo 17:22:19 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 17:22:19 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 17:22:19 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 17:22:19 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 17:22:19 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 17:22:19 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-modbus [Pipeline] echo 17:22:19 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 17:22:19 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 17:22:20 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 17:22:20 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 17:22:20 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 17:22:20 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 17:22:20 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 17:22:20 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 17:22:20 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 17:22:20 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 17:22:20 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 17:22:20 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 17:22:20 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 17:22:20 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 17:22:20 [edgeXSetupEnvironment]: set envvar SNYK_DEBUG = false [Pipeline] echo 17:22:20 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-503 [Pipeline] echo 17:22:20 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-503 [Pipeline] echo 17:22:20 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-503 [Pipeline] echo 17:22:20 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = a1e294ccebe5d32c658330e9975c905eff52af94 [Pipeline] echo 17:22:20 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = a1e294c [Pipeline] echo 17:22:20 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 17:22:20 provisioning config files... 17:22:20 copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-503@tmp/config11745558529171383450tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 17:22:21 ---> docker-login.sh 17:22:21 nexus3.edgexfoundry.org:10001 17:22:21 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 17:22:21 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 17:22:21 Configure a credential helper to remove this warning. See 17:22:21 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 17:22:21 17:22:21 Login Succeeded 17:22:21 nexus3.edgexfoundry.org:10002 17:22:21 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 17:22:21 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 17:22:21 Configure a credential helper to remove this warning. See 17:22:21 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 17:22:21 17:22:21 Login Succeeded 17:22:21 nexus3.edgexfoundry.org:10003 17:22:21 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 17:22:21 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 17:22:21 Configure a credential helper to remove this warning. See 17:22:21 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 17:22:21 17:22:21 Login Succeeded 17:22:21 nexus3.edgexfoundry.org:10004 17:22:21 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 17:22:21 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 17:22:21 Configure a credential helper to remove this warning. See 17:22:21 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 17:22:21 17:22:21 Login Succeeded 17:22:21 docker.io 17:22:22 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 17:22:22 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 17:22:22 Configure a credential helper to remove this warning. See 17:22:22 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 17:22:22 17:22:22 Login Succeeded 17:22:22 ---> docker-login.sh ends [Pipeline] } 17:22:22 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 17:22:23 + git rev-list -1 --merges a1e294ccebe5d32c658330e9975c905eff52af94~1..a1e294ccebe5d32c658330e9975c905eff52af94 [Pipeline] echo 17:22:23 -----------> git rev-list -1 --merges a1e294ccebe5d32c658330e9975c905eff52af94~1..a1e294ccebe5d32c658330e9975c905eff52af94 a1e294ccebe5d32c658330e9975c905eff52af94 [false] [Pipeline] sh 17:22:23 + git log --format=format:%s -1 a1e294ccebe5d32c658330e9975c905eff52af94 [Pipeline] echo 17:22:23 ========================================================= 17:22:23 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 17:22:23 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 17:22:24 + git log --format=format:%s -1 a1e294ccebe5d32c658330e9975c905eff52af94 [Pipeline] echo 17:22:24 [semverPrep] GIT_COMMIT: a1e294ccebe5d32c658330e9975c905eff52af94, Commit Message: ci: add automated release workflow on tag creation [Pipeline] echo 17:22:24 [semverPrep] This is not a build commit. [Pipeline] sh 17:22:24 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 17:22:24 + grep -v github /etc/ssh/ssh_known_hosts 17:22:24 + [ -e /tmp/ssh_known_hosts ] 17:22:24 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 17:22:24 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 17:22:24 + sudo tee -a /etc/ssh/ssh_known_hosts 17:22:24 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 17:22:25 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 17:22:25 17:22:25 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 17:22:25 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 17:22:25 0.1.4: Pulling from edgex-devops/py-git-semver 17:22:25 b85a868b505f: Pulling fs layer 17:22:25 e2be974225ed: Pulling fs layer 17:22:25 339a4e72a1f5: Pulling fs layer 17:22:25 988bab9f4d93: Pulling fs layer 17:22:25 1469e6f7b9e6: Pulling fs layer 17:22:25 eaf3925da568: Pulling fs layer 17:22:25 bab4dde63d76: Pulling fs layer 17:22:25 bde34c3a00c8: Pulling fs layer 17:22:25 b352a97aabf1: Pulling fs layer 17:22:25 4872d77fe225: Pulling fs layer 17:22:25 5851b861e8e6: Pulling fs layer 17:22:25 988bab9f4d93: Waiting 17:22:25 1469e6f7b9e6: Waiting 17:22:25 eaf3925da568: Waiting 17:22:25 bab4dde63d76: Waiting 17:22:25 bde34c3a00c8: Waiting 17:22:25 b352a97aabf1: Waiting 17:22:25 4872d77fe225: Waiting 17:22:25 5851b861e8e6: Waiting 17:22:25 e2be974225ed: Verifying Checksum 17:22:25 e2be974225ed: Download complete 17:22:25 988bab9f4d93: Verifying Checksum 17:22:25 988bab9f4d93: Download complete 17:22:25 339a4e72a1f5: Verifying Checksum 17:22:25 339a4e72a1f5: Download complete 17:22:25 1469e6f7b9e6: Verifying Checksum 17:22:25 1469e6f7b9e6: Download complete 17:22:25 eaf3925da568: Verifying Checksum 17:22:25 eaf3925da568: Download complete 17:22:25 bde34c3a00c8: Download complete 17:22:25 b352a97aabf1: Download complete 17:22:25 4872d77fe225: Download complete 17:22:25 5851b861e8e6: Verifying Checksum 17:22:25 5851b861e8e6: Download complete 17:22:25 b85a868b505f: Verifying Checksum 17:22:25 b85a868b505f: Download complete 17:22:25 bab4dde63d76: Verifying Checksum 17:22:25 bab4dde63d76: Download complete 17:22:26 b85a868b505f: Pull complete 17:22:27 e2be974225ed: Pull complete 17:22:27 339a4e72a1f5: Pull complete 17:22:27 988bab9f4d93: Pull complete 17:22:27 1469e6f7b9e6: Pull complete 17:22:28 eaf3925da568: Pull complete 17:22:30 bab4dde63d76: Pull complete 17:22:30 bde34c3a00c8: Pull complete 17:22:30 b352a97aabf1: Pull complete 17:22:30 4872d77fe225: Pull complete 17:22:30 5851b861e8e6: Pull complete 17:22:30 Digest: sha256:59a28aa3b44c0bc56b9c3d2e9ecabe42e63693d939cc6e425eb8786f29f663d8 17:22:30 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 17:22:30 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 17:22:30 prd-ubuntu20.04-docker-8c-8g-6734 does not seem to be running inside a container 17:22:30 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/xfoundry_device-modbus-go_PR-503 -v /w/workspace/xfoundry_device-modbus-go_PR-503:/w/workspace/xfoundry_device-modbus-go_PR-503:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-503@tmp:/w/workspace/xfoundry_device-modbus-go_PR-503@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-devops/py-git-semver:0.1.4 cat 17:22:33 $ docker top 2316d61e6c8a9c765af67808aaacda26baa16b5854f4cc344ac79116ac8994d5 -eo pid,comm 17:22:33 ERROR: The container started but didn't run the expected command. Please double check your ENTRYPOINT does execute the command passed as docker run argument, as required by official docker images (see https://github.com/docker-library/official-images#consistency for entrypoint consistency requirements). 17:22:33 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 17:22:33 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 17:22:33 [ssh-agent] Looking for ssh-agent implementation... 17:22:33 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 17:22:33 $ docker exec 2316d61e6c8a9c765af67808aaacda26baa16b5854f4cc344ac79116ac8994d5 ssh-agent 17:22:33 SSH_AUTH_SOCK=/tmp/ssh-sGWvEdlEazm0/agent.32 17:22:33 SSH_AGENT_PID=38 17:22:33 Running ssh-add (command line suppressed) 17:22:33 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-503@tmp/private_key_17387695750515243849.key (/w/workspace/xfoundry_device-modbus-go_PR-503@tmp/private_key_17387695750515243849.key) 17:22:33 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 17:22:34 + git tag --points-at HEAD [Pipeline] } 17:22:34 $ docker exec --env ******** --env ******** 2316d61e6c8a9c765af67808aaacda26baa16b5854f4cc344ac79116ac8994d5 ssh-agent -k 17:22:34 unset SSH_AUTH_SOCK; 17:22:34 unset SSH_AGENT_PID; 17:22:34 echo Agent pid 38 killed; 17:22:34 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 17:22:34 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 17:22:34 [ssh-agent] Looking for ssh-agent implementation... 17:22:34 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 17:22:34 $ docker exec 2316d61e6c8a9c765af67808aaacda26baa16b5854f4cc344ac79116ac8994d5 ssh-agent 17:22:34 SSH_AUTH_SOCK=/tmp/ssh-QzClzXf1ZPnR/agent.70 17:22:34 SSH_AGENT_PID=76 17:22:34 Running ssh-add (command line suppressed) 17:22:34 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-503@tmp/private_key_17401452548906222907.key (/w/workspace/xfoundry_device-modbus-go_PR-503@tmp/private_key_17401452548906222907.key) 17:22:34 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 17:22:34 + git semver init 17:22:35 2023-09-20 17:22:35,163 [run_init] DEBUG init version:0.0.0 force:False 17:22:35 2023-09-20 17:22:35,164 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/xfoundry_device-modbus-go_PR-503/.semver 17:22:35 2023-09-20 17:22:35,164 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-modbus-go.git /w/workspace/xfoundry_device-modbus-go_PR-503/.semver 17:22:35 2023-09-20 17:22:35,164 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-modbus-go.git', '/w/workspace/xfoundry_device-modbus-go_PR-503/.semver'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-503, universal_newlines=False, shell=None, istream=None) 17:22:36 2023-09-20 17:22:35,996 [append_file] DEBUG append to file:/w/workspace/xfoundry_device-modbus-go_PR-503/.git/info/exclude 17:22:36 2023-09-20 17:22:35,997 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/xfoundry_device-modbus-go_PR-503/.semver/PR-503 with force:False 17:22:36 2023-09-20 17:22:35,997 [write_file] DEBUG write to file:/w/workspace/xfoundry_device-modbus-go_PR-503/.semver/PR-503 17:22:36 2023-09-20 17:22:36,001 [execute] INFO git cat-file --batch-check 17:22:36 2023-09-20 17:22:36,001 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-503/.semver, universal_newlines=False, shell=None, istream=) 17:22:36 2023-09-20 17:22:36,008 [execute] INFO git cat-file --batch 17:22:36 2023-09-20 17:22:36,008 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-503/.semver, universal_newlines=False, shell=None, istream=) 17:22:36 2023-09-20 17:22:36,013 [read_version] DEBUG read version from /w/workspace/xfoundry_device-modbus-go_PR-503/.semver/PR-503 17:22:36 0.0.0 [Pipeline] } 17:22:36 $ docker exec --env ******** --env ******** 2316d61e6c8a9c765af67808aaacda26baa16b5854f4cc344ac79116ac8994d5 ssh-agent -k 17:22:36 unset SSH_AUTH_SOCK; 17:22:36 unset SSH_AGENT_PID; 17:22:36 echo Agent pid 76 killed; 17:22:36 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 17:22:36 + git semver [Pipeline] } 17:22:37 $ docker stop --time=1 2316d61e6c8a9c765af67808aaacda26baa16b5854f4cc344ac79116ac8994d5 17:22:38 $ docker rm -f --volumes 2316d61e6c8a9c765af67808aaacda26baa16b5854f4cc344ac79116ac8994d5 [Pipeline] // withDockerContainer [Pipeline] sh 17:22:38 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 17:22:38 Stashed 1 file(s) [Pipeline] echo 17:22:39 [edgeXSemver]: initialized semver on version 0.0.0 [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] parallel [Pipeline] { (Branch: amd64) [Pipeline] { (Branch: arm64) [Pipeline] stage [Pipeline] { (amd64) [Pipeline] stage [Pipeline] { (arm64) [Pipeline] withEnv [Pipeline] { [Pipeline] node [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 17:22:39 provisioning config files... 17:22:39 copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-503@tmp/config12074837928108537568tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 17:22:39 ---> docker-login.sh 17:22:39 nexus3.edgexfoundry.org:10001 17:22:39 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 17:22:39 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 17:22:39 Configure a credential helper to remove this warning. See 17:22:39 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 17:22:39 17:22:39 Login Succeeded 17:22:39 nexus3.edgexfoundry.org:10002 17:22:39 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 17:22:39 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 17:22:39 Configure a credential helper to remove this warning. See 17:22:39 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 17:22:39 17:22:39 Login Succeeded 17:22:39 nexus3.edgexfoundry.org:10003 17:22:40 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 17:22:40 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 17:22:40 Configure a credential helper to remove this warning. See 17:22:40 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 17:22:40 17:22:40 Login Succeeded 17:22:40 nexus3.edgexfoundry.org:10004 17:22:40 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 17:22:40 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 17:22:40 Configure a credential helper to remove this warning. See 17:22:40 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 17:22:40 17:22:40 Login Succeeded 17:22:40 docker.io 17:22:40 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 17:22:40 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 17:22:40 Configure a credential helper to remove this warning. See 17:22:40 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 17:22:40 17:22:40 Login Succeeded 17:22:40 ---> docker-login.sh ends [Pipeline] } 17:22:40 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 17:22:40 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 17:22:41 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 17:22:41 ========================================================= 17:22:41 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.21-alpine] 17:22:41 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 17:22:41 + 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 . 17:22:41 Sending build context to Docker daemon 6.453MB 17:22:41 Step 1/10 : ARG BASE=golang:1.21-alpine3.18 17:22:41 Step 2/10 : FROM ${BASE} AS builder 17:22:41 1.21-alpine: Pulling from edgex-devops/edgex-golang-base 17:22:41 7264a8db6415: Pulling fs layer 17:22:41 c4d48a809fc2: Pulling fs layer 17:22:41 4f1c88b9dad5: Pulling fs layer 17:22:41 ad3a456e5733: Pulling fs layer 17:22:41 33e27b845d1e: Pulling fs layer 17:22:41 c68163c4e522: Pulling fs layer 17:22:41 ad3a456e5733: Waiting 17:22:41 c68163c4e522: Waiting 17:22:41 33e27b845d1e: Waiting 17:22:41 50da416c3ac9: Pulling fs layer 17:22:41 23d2d4c4bb30: Pulling fs layer 17:22:41 23d2d4c4bb30: Waiting 17:22:41 ad3a456e5733: Verifying Checksum 17:22:41 ad3a456e5733: Download complete 17:22:41 33e27b845d1e: Verifying Checksum 17:22:41 33e27b845d1e: Download complete 17:22:41 7264a8db6415: Verifying Checksum 17:22:41 7264a8db6415: Download complete 17:22:41 c68163c4e522: Verifying Checksum 17:22:41 c68163c4e522: Download complete 17:22:42 7264a8db6415: Pull complete 17:22:42 23d2d4c4bb30: Verifying Checksum 17:22:42 23d2d4c4bb30: Download complete 17:22:42 c4d48a809fc2: Pull complete 17:22:42 4f1c88b9dad5: Verifying Checksum 17:22:42 4f1c88b9dad5: Download complete 17:22:42 50da416c3ac9: Download complete 17:22:45 4f1c88b9dad5: Pull complete 17:22:45 ad3a456e5733: Pull complete 17:22:45 33e27b845d1e: Pull complete 17:22:45 c68163c4e522: Pull complete 17:22:48 50da416c3ac9: Pull complete 17:22:48 23d2d4c4bb30: Pull complete 17:22:48 Digest: sha256:869f8081a9cc57a47d9be3c92245bb8518e7edea9beab93563b77b0fbed5fa8c 17:22:48 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.21-alpine 17:22:48 ---> 0786185ac409 17:22:48 Step 3/10 : ARG ADD_BUILD_TAGS="" 17:22:51 ---> Running in 51d4128cedb6 17:22:51 Removing intermediate container 51d4128cedb6 17:22:51 ---> 2496284e80f8 17:22:51 Step 4/10 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 17:22:51 ---> Running in 18bc406d7bd5 17:22:51 Removing intermediate container 18bc406d7bd5 17:22:51 ---> c2d2adc5a423 17:22:51 Step 5/10 : RUN apk add --update --no-cache make git openssh 17:22:51 ---> Running in c349ce916762 17:22:52 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/APKINDEX.tar.gz 17:22:52 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/x86_64/APKINDEX.tar.gz 17:22:52 (1/8) Installing openssh-keygen (9.3_p2-r0) 17:22:52 (2/8) Installing libedit (20221030.3.1-r1) 17:22:52 (3/8) Installing openssh-client-common (9.3_p2-r0) 17:22:52 (4/8) Installing openssh-client-default (9.3_p2-r0) 17:22:52 (5/8) Installing openssh-sftp-server (9.3_p2-r0) 17:22:52 (6/8) Installing openssh-server-common (9.3_p2-r0) 17:22:52 (7/8) Installing openssh-server (9.3_p2-r0) 17:22:53 (8/8) Installing openssh (9.3_p2-r0) 17:22:53 Executing busybox-1.36.1-r2.trigger 17:22:53 OK: 270 MiB in 60 packages 17:22:53 Removing intermediate container c349ce916762 17:22:53 ---> 93e477c9b280 17:22:53 Step 6/10 : WORKDIR /device-modbus-go 17:22:53 ---> Running in 70908b8d2da4 17:22:53 Removing intermediate container 70908b8d2da4 17:22:53 ---> b2dfa913520b 17:22:53 Step 7/10 : COPY go.mod vendor* ./ 17:22:53 ---> 2930b7659b14 17:22:53 Step 8/10 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 17:22:53 ---> Running in fc8a45fc5b33 17:22:54 Still waiting to schedule task 17:22:54 Waiting for next available executor on ‘prd-ubuntu20.04-docker-arm64-4c-16g-6729’ 17:23:33 Removing intermediate container fc8a45fc5b33 17:23:33 ---> 9a688342f821 17:23:33 Step 9/10 : COPY . . 17:23:33 ---> a252f405beb3 17:23:33 Step 10/10 : RUN ${MAKE} 17:23:33 ---> Running in aaac3ac9b703 17:23:33 noop 17:23:33 Removing intermediate container aaac3ac9b703 17:23:33 ---> 6ce37226f9d7 17:23:33 Successfully built 6ce37226f9d7 17:23:33 Successfully tagged ci-base-image-x86_64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 17:23:34 + docker inspect -f . ci-base-image-x86_64 17:23:34 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 17:23:34 prd-ubuntu20.04-docker-8c-8g-6734 does not seem to be running inside a container 17:23:34 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/xfoundry_device-modbus-go_PR-503 -v /w/workspace/xfoundry_device-modbus-go_PR-503:/w/workspace/xfoundry_device-modbus-go_PR-503:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-503@tmp:/w/workspace/xfoundry_device-modbus-go_PR-503@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 17:23:34 $ docker top bd6d32c1a228befb357a1a20669aca119b8e982911f3516617762b927ad4ca9f -eo pid,comm [Pipeline] { [Pipeline] sh 17:23:35 + go version 17:23:35 go version go1.21.0 linux/amd64 [Pipeline] } 17:23:35 $ docker stop --time=1 bd6d32c1a228befb357a1a20669aca119b8e982911f3516617762b927ad4ca9f 17:23:36 $ docker rm -f --volumes bd6d32c1a228befb357a1a20669aca119b8e982911f3516617762b927ad4ca9f [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 17:23:37 + docker inspect -f . ci-base-image-x86_64 17:23:37 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 17:23:37 prd-ubuntu20.04-docker-8c-8g-6734 does not seem to be running inside a container 17:23:37 $ 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-503 -v /w/workspace/xfoundry_device-modbus-go_PR-503:/w/workspace/xfoundry_device-modbus-go_PR-503:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-503@tmp:/w/workspace/xfoundry_device-modbus-go_PR-503@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 17:23:37 $ docker top 59407c9fd6f07d5ab174c3d8e9aafa1fb00d6920e4faf3ad032bd9f49d23c291 -eo pid,comm [Pipeline] { [Pipeline] sh 17:23:38 + git config --global --add safe.directory /w/workspace/xfoundry_device-modbus-go_PR-503 [Pipeline] fileExists [Pipeline] sh 17:23:38 + make test 17:23:38 go test ./... -coverprofile=coverage.out 17:23:39 ? github.com/edgexfoundry/device-modbus-go [no test files] 17:23:52 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 17:23:52 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.016s coverage: 47.9% of statements 17:23:57 go vet ./... 17:24:01 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 17:24:01 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 17:24:01 ./bin/test-attribution-txt.sh [Pipeline] echo 17:24:01 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 17:24:01 $ docker stop --time=1 59407c9fd6f07d5ab174c3d8e9aafa1fb00d6920e4faf3ad032bd9f49d23c291 17:24:05 $ docker rm -f --volumes 59407c9fd6f07d5ab174c3d8e9aafa1fb00d6920e4faf3ad032bd9f49d23c291 [Pipeline] // withDockerContainer [Pipeline] sh 17:24:06 + sudo chown -R jenkins:jenkins . [Pipeline] stash 17:24:06 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 17:24:06 + sudo chown -R jenkins:jenkins . [Pipeline] sh 17:24:07 + ls -al . 17:24:07 total 192 17:24:07 drwxrwxr-x 10 jenkins jenkins 4096 Sep 20 17:23 . 17:24:07 drwxrwxr-x 4 jenkins jenkins 4096 Sep 20 17:22 .. 17:24:07 -rw-rw-r-- 1 jenkins jenkins 140 Sep 20 17:22 .dockerignore 17:24:07 drwxrwxr-x 8 jenkins jenkins 4096 Sep 20 17:23 .git 17:24:07 drwxrwxr-x 3 jenkins jenkins 4096 Sep 20 17:22 .github 17:24:07 -rw-rw-r-- 1 jenkins jenkins 331 Sep 20 17:22 .gitignore 17:24:07 -rw-rw-r-- 1 jenkins jenkins 41 Sep 20 17:22 .golangci.yml 17:24:07 drwxr-xr-x 3 jenkins jenkins 4096 Sep 20 17:22 .semver 17:24:07 -rw-rw-r-- 1 jenkins jenkins 11101 Sep 20 17:22 Attribution.txt 17:24:07 -rw-rw-r-- 1 jenkins jenkins 14764 Sep 20 17:22 CHANGELOG.md 17:24:07 -rw-rw-r-- 1 jenkins jenkins 1365 Sep 20 17:22 Dockerfile 17:24:07 -rw-rw-r-- 1 jenkins jenkins 677 Sep 20 17:22 GOVERNANCE.md 17:24:07 -rw-rw-r-- 1 jenkins jenkins 680 Sep 20 17:22 Jenkinsfile 17:24:07 -rw-rw-r-- 1 jenkins jenkins 11340 Sep 20 17:22 LICENSE 17:24:07 -rw-rw-r-- 1 jenkins jenkins 1936 Sep 20 17:22 Makefile 17:24:07 -rw-rw-r-- 1 jenkins jenkins 622 Sep 20 17:22 OWNERS.md 17:24:07 -rw-rw-r-- 1 jenkins jenkins 4578 Sep 20 17:22 README.md 17:24:07 -rw-rw-r-- 1 jenkins jenkins 5 Sep 20 17:22 VERSION 17:24:07 drwxrwxr-x 2 jenkins jenkins 4096 Sep 20 17:22 bin 17:24:07 drwxrwxr-x 3 jenkins jenkins 4096 Sep 20 17:22 cmd 17:24:07 -rw-r--r-- 1 jenkins jenkins 24334 Sep 20 17:23 coverage.out 17:24:07 -rw-rw-r-- 1 jenkins jenkins 3941 Sep 20 17:22 go.mod 17:24:07 -rw-rw-r-- 1 jenkins jenkins 35965 Sep 20 17:22 go.sum 17:24:07 drwxrwxr-x 3 jenkins jenkins 4096 Sep 20 17:22 internal 17:24:07 drwxrwxr-x 2 jenkins jenkins 4096 Sep 20 17:22 simulator 17:24:07 drwxrwxr-x 4 jenkins jenkins 4096 Sep 20 17:22 snap 17:24:07 -rw-rw-r-- 1 jenkins jenkins 229 Sep 20 17:22 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 17:24:07 + 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=a1e294ccebe5d32c658330e9975c905eff52af94 --label arch=amd64 --label version=0.0.0 . 17:24:07 Sending build context to Docker daemon 6.478MB 17:24:07 Step 1/22 : ARG BASE=golang:1.21-alpine3.18 17:24:07 Step 2/22 : FROM ${BASE} AS builder 17:24:07 ---> 6ce37226f9d7 17:24:07 Step 3/22 : ARG ADD_BUILD_TAGS="" 17:24:07 ---> Running in f5479cdb5acc 17:24:07 Removing intermediate container f5479cdb5acc 17:24:07 ---> b0928297eead 17:24:07 Step 4/22 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 17:24:07 ---> Running in c487d96718f0 17:24:08 Removing intermediate container c487d96718f0 17:24:08 ---> b6a3d0c51b15 17:24:08 Step 5/22 : RUN apk add --update --no-cache make git openssh 17:24:08 ---> Running in 7d9e1ec1a6fa 17:24:08 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/APKINDEX.tar.gz 17:24:08 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/x86_64/APKINDEX.tar.gz 17:24:08 OK: 270 MiB in 60 packages 17:24:08 Removing intermediate container 7d9e1ec1a6fa 17:24:08 ---> 30f374f6021b 17:24:08 Step 6/22 : WORKDIR /device-modbus-go 17:24:09 ---> Running in 7160e5dc0f4a 17:24:09 Removing intermediate container 7160e5dc0f4a 17:24:09 ---> 8c779f1e4aad 17:24:09 Step 7/22 : COPY go.mod vendor* ./ 17:24:09 ---> 67b3ee2c23cc 17:24:09 Step 8/22 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 17:24:09 ---> Running in 05280f61099e 17:24:10 Removing intermediate container 05280f61099e 17:24:10 ---> 0601e4c67abb 17:24:10 Step 9/22 : COPY . . 17:24:10 ---> 74998ea9eb29 17:24:10 Step 10/22 : RUN ${MAKE} 17:24:10 ---> Running in 647604f3d5fd 17:24:10 CGO_ENABLED=0 go build -tags "" -ldflags "-X github.com/edgexfoundry/device-modbus-go.Version=0.0.0 -X github.com/edgexfoundry/device-sdk-go/v3/internal/common.SDKVersion=v3.1.0-dev.24" -trimpath -mod=readonly -o cmd/device-modbus ./cmd 17:24:33 Removing intermediate container 647604f3d5fd 17:24:33 ---> 71d4b1afb048 17:24:33 Step 11/22 : FROM alpine:3.18 17:24:33 3.18: Pulling from library/alpine 17:24:33 7264a8db6415: Already exists 17:24:33 Digest: sha256:7144f7bab3d4c2648d7e59409f15ec52a18006a128c733fcff20d3a4a54ba44a 17:24:33 Status: Downloaded newer image for alpine:3.18 17:24:33 ---> 7e01a0d0a1dc 17:24:33 Step 12/22 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IoTech Ltd' 17:24:33 ---> Running in f0e5dabebf08 17:24:33 Removing intermediate container f0e5dabebf08 17:24:33 ---> 35a7ee9b4838 17:24:33 Step 13/22 : RUN apk add --update --no-cache dumb-init 17:24:33 ---> Running in f172983dac52 17:24:33 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/APKINDEX.tar.gz 17:24:33 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/x86_64/APKINDEX.tar.gz 17:24:33 (1/1) Installing dumb-init (1.2.5-r2) 17:24:33 Executing busybox-1.36.1-r2.trigger 17:24:33 OK: 7 MiB in 16 packages 17:24:33 Removing intermediate container f172983dac52 17:24:33 ---> 9e9aae77b4d4 17:24:33 Step 14/22 : COPY --from=builder /device-modbus-go/cmd / 17:24:33 ---> 7115a5d805af 17:24:33 Step 15/22 : COPY --from=builder /device-modbus-go/LICENSE / 17:24:33 ---> 16e00f02a81d 17:24:33 Step 16/22 : COPY --from=builder /device-modbus-go/Attribution.txt / 17:24:33 ---> 7f59230824fa 17:24:33 Step 17/22 : EXPOSE 59901 17:24:33 ---> Running in af4a0370f248 17:24:33 Removing intermediate container af4a0370f248 17:24:33 ---> a7219ac21682 17:24:33 Step 18/22 : ENTRYPOINT ["/device-modbus"] 17:24:33 ---> Running in ab737e5d9d56 17:24:33 Removing intermediate container ab737e5d9d56 17:24:33 ---> f64bcf044cf9 17:24:33 Step 19/22 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 17:24:33 ---> Running in 0bd4f3eef2d8 17:24:33 Removing intermediate container 0bd4f3eef2d8 17:24:33 ---> 532ed0ec2b50 17:24:33 Step 20/22 : LABEL arch=amd64 17:24:33 ---> Running in 99dce3a1bf88 17:24:33 Removing intermediate container 99dce3a1bf88 17:24:33 ---> ef3b60770ec5 17:24:33 Step 21/22 : LABEL git_sha=a1e294ccebe5d32c658330e9975c905eff52af94 17:24:33 ---> Running in 9b3640c48d88 17:24:34 Removing intermediate container 9b3640c48d88 17:24:34 ---> b9b2cc38e663 17:24:34 Step 22/22 : LABEL version=0.0.0 17:24:34 ---> Running in a9b5cd4831cb 17:24:34 Removing intermediate container a9b5cd4831cb 17:24:34 ---> e36700439167 17:24:34 [Warning] One or more build-args [ARCH] were not consumed 17:24:34 Successfully built e36700439167 17:24:34 Successfully tagged device-modbus:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Docker Push) Stage "Docker Push" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Snap) Stage "Snap" skipped due to when conditional [Pipeline] } [Pipeline] // stage Post stage [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 17:24:35 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 17:24:35 17:24:35 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 17:24:35 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 17:24:35 latest: Pulling from edgex-lftools-log-publisher 17:24:35 5eb5b503b376: Pulling fs layer 17:24:35 5c69ac0246d0: Pulling fs layer 17:24:35 ec43610c2a17: Pulling fs layer 17:24:35 3a2ae6a8a46f: Pulling fs layer 17:24:35 33b1e0a273af: Pulling fs layer 17:24:35 5d3b04190fa2: Pulling fs layer 17:24:35 2f39f015ded8: Pulling fs layer 17:24:35 2f39f015ded8: Waiting 17:24:35 33b1e0a273af: Waiting 17:24:35 5d3b04190fa2: Waiting 17:24:35 3a2ae6a8a46f: Waiting 17:24:35 5c69ac0246d0: Verifying Checksum 17:24:35 5c69ac0246d0: Download complete 17:24:35 3a2ae6a8a46f: Download complete 17:24:35 ec43610c2a17: Verifying Checksum 17:24:35 ec43610c2a17: Download complete 17:24:35 33b1e0a273af: Verifying Checksum 17:24:35 33b1e0a273af: Download complete 17:24:35 5d3b04190fa2: Verifying Checksum 17:24:35 5d3b04190fa2: Download complete 17:24:35 5eb5b503b376: Verifying Checksum 17:24:35 5eb5b503b376: Download complete 17:24:37 5eb5b503b376: Pull complete 17:24:37 5c69ac0246d0: Pull complete 17:24:37 ec43610c2a17: Pull complete 17:24:37 3a2ae6a8a46f: Pull complete 17:24:37 33b1e0a273af: Pull complete 17:24:37 5d3b04190fa2: Pull complete 17:24:43 2f39f015ded8: Pull complete 17:24:43 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 17:24:43 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 17:24:43 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 17:24:43 prd-ubuntu20.04-docker-8c-8g-6734 does not seem to be running inside a container 17:24:43 $ 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-503 -v /w/workspace/xfoundry_device-modbus-go_PR-503:/w/workspace/xfoundry_device-modbus-go_PR-503:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-503@tmp:/w/workspace/xfoundry_device-modbus-go_PR-503@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 17:24:48 $ docker top 13830b4fd1039ac820ae60415340d1f9a4dbf1fb598c1ea5c28bdd77050fdd53 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 17:24:48 ---> job-cost.sh 17:24:48 lf-activate-venv: SKIPPING 17:24:48 INFO: No Stack... 17:24:48 INFO: Retrieving Pricing Info for: v3-standard-8 17:24:49 INFO: Archiving Costs [Pipeline] sh 17:24:49 + cat /w/workspace/xfoundry_device-modbus-go_PR-503/archives/cost.csv 17:24:49 + cut -d, -f6 [Pipeline] lock 17:24:49 Trying to acquire lock on [jenkins-edgexfoundry-device-modbus-go-PR-503-1-stack-cost] 17:24:49 Resource [jenkins-edgexfoundry-device-modbus-go-PR-503-1-stack-cost] did not exist. Created. 17:24:49 Lock acquired on [jenkins-edgexfoundry-device-modbus-go-PR-503-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 17:24:50 + echo total: 0.2199999988079071 [Pipeline] stash 17:24:50 Stashed 1 file(s) [Pipeline] } 17:24:50 Lock released on resource [jenkins-edgexfoundry-device-modbus-go-PR-503-1-stack-cost] [Pipeline] // lock [Pipeline] } 17:24:50 $ docker stop --time=1 13830b4fd1039ac820ae60415340d1f9a4dbf1fb598c1ea5c28bdd77050fdd53 17:24:51 $ docker rm -f --volumes 13830b4fd1039ac820ae60415340d1f9a4dbf1fb598c1ea5c28bdd77050fdd53 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 17:25:50 Running on prd-ubuntu20.04-docker-arm64-4c-16g-6745 in /w/workspace/xfoundry_device-modbus-go_PR-503 [Pipeline] { [Pipeline] ws 17:25:50 Running in /w/workspace/device-modbus-go/1 [Pipeline] { [Pipeline] checkout 17:25:50 Selected Git installation does not exist. Using Default 17:25:50 The recommended git tool is: NONE 17:25:58 using credential edgex-jenkins-ssh 17:25:58 Cloning the remote Git repository 17:25:58 Cloning repository git@github.com:edgexfoundry/device-modbus-go.git 17:25:58 > git init /w/workspace/device-modbus-go/1 # timeout=10 17:25:58 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 17:25:58 > git --version # timeout=10 17:25:58 > git --version # 'git version 2.25.1' 17:25:58 using GIT_SSH to set credentials SSH Credentials for GitHub 17:25:58 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 17:26:00 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 17:26:00 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 17:26:02 Merging remotes/origin/main commit 51bdb209bfe3268f564ccfe93ba09768b0d9e930 into PR head commit a1e294ccebe5d32c658330e9975c905eff52af94 17:26:02 Merge succeeded, producing a1e294ccebe5d32c658330e9975c905eff52af94 17:26:02 Checking out Revision a1e294ccebe5d32c658330e9975c905eff52af94 (PR-503) 17:26:01 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 17:26:01 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 17:26:01 using GIT_SSH to set credentials SSH Credentials for GitHub 17:26:01 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/pull/503/head:refs/remotes/origin/PR-503 +refs/heads/main:refs/remotes/origin/main # timeout=10 17:26:02 > git config core.sparsecheckout # timeout=10 17:26:02 > git checkout -f a1e294ccebe5d32c658330e9975c905eff52af94 # timeout=10 17:26:02 > git remote # timeout=10 17:26:02 > git config --get remote.origin.url # timeout=10 17:26:02 using GIT_SSH to set credentials SSH Credentials for GitHub 17:26:02 > git merge 51bdb209bfe3268f564ccfe93ba09768b0d9e930 # timeout=10 17:26:02 > git rev-parse HEAD^{commit} # timeout=10 17:26:02 > git config core.sparsecheckout # timeout=10 17:26:02 > git checkout -f a1e294ccebe5d32c658330e9975c905eff52af94 # timeout=10 17:26:06 Commit message: "ci: add automated release workflow on tag creation" 17:26:06 > git --version # timeout=10 17:26:06 > git --version # 'git version 2.25.1' 17:26:06 fatal: bad object e143027787c0ac28563f7e92b6cefc600d3b7107 [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 17:26:07 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 17:26:07 % Total % Received % Xferd Average Speed Time Time Time Current 17:26:07 Dload Upload Total Spent Left Speed 17:26:07 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 12751 100 12751 0 0 177k 0 --:--:-- --:--:-- --:--:-- 180k [Pipeline] sh 17:26:08 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 17:26:08 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 17:26:08 + sudo tee /etc/docker/daemon.new 17:26:08 { 17:26:08 "registry-mirrors": [ 17:26:08 "https://nexus3.edgexfoundry.org:10001" 17:26:08 ], 17:26:08 "bip": "10.250.0.254/24", 17:26:08 "hosts": [ 17:26:08 "tcp://0.0.0.0:5555", 17:26:08 "unix:///var/run/docker.sock" 17:26:08 ], 17:26:08 "mtu": 1458, 17:26:08 "selinux-enabled": true, 17:26:08 "seccomp-profile": "/etc/docker/seccomp.json" 17:26:08 } [Pipeline] sh 17:26:09 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 17:26:09 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 17:26:28 provisioning config files... 17:26:28 copy managed file [device-modbus-go-settings] to file:/w/workspace/device-modbus-go/1@tmp/config3338519032221220856tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 17:26:28 ---> docker-login.sh 17:26:28 nexus3.edgexfoundry.org:10001 17:26:29 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 17:26:29 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 17:26:29 Configure a credential helper to remove this warning. See 17:26:29 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 17:26:29 17:26:29 Login Succeeded 17:26:29 nexus3.edgexfoundry.org:10002 17:26:29 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 17:26:29 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 17:26:29 Configure a credential helper to remove this warning. See 17:26:29 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 17:26:29 17:26:29 Login Succeeded 17:26:29 nexus3.edgexfoundry.org:10003 17:26:29 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 17:26:30 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 17:26:30 Configure a credential helper to remove this warning. See 17:26:30 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 17:26:30 17:26:30 Login Succeeded 17:26:30 nexus3.edgexfoundry.org:10004 17:26:30 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 17:26:30 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 17:26:30 Configure a credential helper to remove this warning. See 17:26:30 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 17:26:30 17:26:30 Login Succeeded 17:26:30 docker.io 17:26:31 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 17:26:31 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 17:26:31 Configure a credential helper to remove this warning. See 17:26:31 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 17:26:31 17:26:31 Login Succeeded 17:26:31 ---> docker-login.sh ends [Pipeline] } 17:26:31 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 17:26:31 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 17:26:31 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 17:26:32 ========================================================= 17:26:32 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.21-alpine] 17:26:32 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 17:26:32 + 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 . 17:26:32 Sending build context to Docker daemon 3.351MB 17:26:32 Step 1/10 : ARG BASE=golang:1.21-alpine3.18 17:26:32 Step 2/10 : FROM ${BASE} AS builder 17:26:33 1.21-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 17:26:33 9fda8d8052c6: Pulling fs layer 17:26:33 5d54e960e981: Pulling fs layer 17:26:33 c4a7e357bf2a: Pulling fs layer 17:26:33 f0e02332f6b5: Pulling fs layer 17:26:33 cefa15bbcfad: Pulling fs layer 17:26:33 17808c966233: Pulling fs layer 17:26:33 f4c1fc716caa: Pulling fs layer 17:26:33 cefa15bbcfad: Waiting 17:26:33 17808c966233: Waiting 17:26:33 f4c1fc716caa: Waiting 17:26:33 f0e02332f6b5: Waiting 17:26:33 5d54e960e981: Verifying Checksum 17:26:33 5d54e960e981: Download complete 17:26:33 f0e02332f6b5: Download complete 17:26:33 cefa15bbcfad: Verifying Checksum 17:26:33 cefa15bbcfad: Download complete 17:26:33 9fda8d8052c6: Download complete 17:26:34 f4c1fc716caa: Verifying Checksum 17:26:34 f4c1fc716caa: Download complete 17:26:34 9fda8d8052c6: Pull complete 17:26:34 5d54e960e981: Pull complete 17:26:35 c4a7e357bf2a: Verifying Checksum 17:26:35 c4a7e357bf2a: Download complete 17:26:36 17808c966233: Verifying Checksum 17:26:36 17808c966233: Download complete 17:26:46 c4a7e357bf2a: Pull complete 17:26:46 f0e02332f6b5: Pull complete 17:26:47 cefa15bbcfad: Pull complete 17:26:54 17808c966233: Pull complete 17:26:55 f4c1fc716caa: Pull complete 17:26:55 Digest: sha256:f9b5da702465edd0a2564459334de068a24595700ad6c8d0b85b07445f0b3000 17:26:55 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.21-alpine 17:26:55 ---> ea914061e18c 17:26:55 Step 3/10 : ARG ADD_BUILD_TAGS="" 17:26:58 ---> Running in 937ec3f15eab 17:26:58 Removing intermediate container 937ec3f15eab 17:26:58 ---> 4ca1fa3ea921 17:26:58 Step 4/10 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 17:26:58 ---> Running in 2e44806d71a7 17:26:59 Removing intermediate container 2e44806d71a7 17:26:59 ---> 4267683f9b4d 17:26:59 Step 5/10 : RUN apk add --update --no-cache make git openssh 17:26:59 ---> Running in aee37b1a7953 17:27:01 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/aarch64/APKINDEX.tar.gz 17:27:01 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/aarch64/APKINDEX.tar.gz 17:27:03 (1/8) Installing openssh-keygen (9.3_p2-r0) 17:27:03 (2/8) Installing libedit (20221030.3.1-r1) 17:27:03 (3/8) Installing openssh-client-common (9.3_p2-r0) 17:27:03 (4/8) Installing openssh-client-default (9.3_p2-r0) 17:27:03 (5/8) Installing openssh-sftp-server (9.3_p2-r0) 17:27:03 (6/8) Installing openssh-server-common (9.3_p2-r0) 17:27:03 (7/8) Installing openssh-server (9.3_p2-r0) 17:27:03 (8/8) Installing openssh (9.3_p2-r0) 17:27:03 Executing busybox-1.36.1-r2.trigger 17:27:03 OK: 272 MiB in 60 packages 17:27:04 Removing intermediate container aee37b1a7953 17:27:04 ---> 929ede285e81 17:27:04 Step 6/10 : WORKDIR /device-modbus-go 17:27:04 ---> Running in 22034821b0e2 17:27:05 Removing intermediate container 22034821b0e2 17:27:05 ---> a17d729664b7 17:27:05 Step 7/10 : COPY go.mod vendor* ./ 17:27:06 ---> 70da6641d157 17:27:06 Step 8/10 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 17:27:06 ---> Running in c31e167bb06c 17:28:27 Removing intermediate container c31e167bb06c 17:28:27 ---> 62a6f43d0348 17:28:27 Step 9/10 : COPY . . 17:28:27 ---> 8edb6a83c5d7 17:28:27 Step 10/10 : RUN ${MAKE} 17:28:27 ---> Running in dab3b446d20d 17:28:27 noop 17:28:27 Removing intermediate container dab3b446d20d 17:28:27 ---> 07a5770e72b1 17:28:27 Successfully built 07a5770e72b1 17:28:27 Successfully tagged ci-base-image-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 17:28:28 + docker inspect -f . ci-base-image-arm64 17:28:28 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 17:28:28 prd-ubuntu20.04-docker-arm64-4c-16g-6745 does not seem to be running inside a container 17:28:28 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-modbus-go/1 -v /w/workspace/device-modbus-go/1:/w/workspace/device-modbus-go/1:rw,z -v /w/workspace/device-modbus-go/1@tmp:/w/workspace/device-modbus-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 17:28:30 $ docker top ab054222856f2192e96c44d8b1610717bce2cec0a92df6836f190a57f7be7d8d -eo pid,comm [Pipeline] { [Pipeline] sh 17:28:31 + go version 17:28:31 go version go1.21.0 linux/arm64 [Pipeline] } 17:28:31 $ docker stop --time=1 ab054222856f2192e96c44d8b1610717bce2cec0a92df6836f190a57f7be7d8d 17:28:33 $ docker rm -f --volumes ab054222856f2192e96c44d8b1610717bce2cec0a92df6836f190a57f7be7d8d [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 17:28:34 + docker inspect -f . ci-base-image-arm64 17:28:34 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 17:28:34 prd-ubuntu20.04-docker-arm64-4c-16g-6745 does not seem to be running inside a container 17:28:34 $ 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 ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 17:28:35 $ docker top 5fe232da598f26c5827b80d2fe436bbafa43cf401a1b1fb6455b631d8e226a96 -eo pid,comm [Pipeline] { [Pipeline] sh 17:28:36 + git config --global --add safe.directory /w/workspace/device-modbus-go/1 [Pipeline] fileExists [Pipeline] sh 17:28:37 + make test 17:28:37 go test ./... -coverprofile=coverage.out 17:28:42 ? github.com/edgexfoundry/device-modbus-go [no test files] 17:31:19 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 17:31:21 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.112s coverage: 47.9% of statements 17:31:21 WARNING: Linting skipped (not on x86_64 or linter not installed) 17:31:21 go vet ./... 17:32:00 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 17:32:00 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 17:32:00 ./bin/test-attribution-txt.sh [Pipeline] echo 17:32:00 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 17:32:00 $ docker stop --time=1 5fe232da598f26c5827b80d2fe436bbafa43cf401a1b1fb6455b631d8e226a96 17:32:03 $ docker rm -f --volumes 5fe232da598f26c5827b80d2fe436bbafa43cf401a1b1fb6455b631d8e226a96 [Pipeline] // withDockerContainer [Pipeline] sh 17:32:04 + sudo chown -R jenkins:jenkins . [Pipeline] stash 17:32:04 Warning: overwriting stash ‘coverage-report’ 17:32:05 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 17:32:06 + sudo chown -R jenkins:jenkins . [Pipeline] sh 17:32:06 + ls -al . 17:32:06 total 188 17:32:06 drwxrwxr-x 9 jenkins jenkins 4096 Sep 20 17:28 . 17:32:06 drwxrwxr-x 4 jenkins jenkins 4096 Sep 20 17:25 .. 17:32:06 -rw-rw-r-- 1 jenkins jenkins 140 Sep 20 17:26 .dockerignore 17:32:06 drwxrwxr-x 8 jenkins jenkins 4096 Sep 20 17:26 .git 17:32:06 drwxrwxr-x 3 jenkins jenkins 4096 Sep 20 17:26 .github 17:32:06 -rw-rw-r-- 1 jenkins jenkins 331 Sep 20 17:26 .gitignore 17:32:06 -rw-rw-r-- 1 jenkins jenkins 41 Sep 20 17:26 .golangci.yml 17:32:06 -rw-rw-r-- 1 jenkins jenkins 11101 Sep 20 17:26 Attribution.txt 17:32:06 -rw-rw-r-- 1 jenkins jenkins 14764 Sep 20 17:26 CHANGELOG.md 17:32:06 -rw-rw-r-- 1 jenkins jenkins 1365 Sep 20 17:26 Dockerfile 17:32:06 -rw-rw-r-- 1 jenkins jenkins 677 Sep 20 17:26 GOVERNANCE.md 17:32:06 -rw-rw-r-- 1 jenkins jenkins 680 Sep 20 17:26 Jenkinsfile 17:32:06 -rw-rw-r-- 1 jenkins jenkins 11340 Sep 20 17:26 LICENSE 17:32:06 -rw-rw-r-- 1 jenkins jenkins 1936 Sep 20 17:26 Makefile 17:32:06 -rw-rw-r-- 1 jenkins jenkins 622 Sep 20 17:26 OWNERS.md 17:32:06 -rw-rw-r-- 1 jenkins jenkins 4578 Sep 20 17:26 README.md 17:32:06 -rw-rw-r-- 1 jenkins jenkins 5 Sep 20 17:22 VERSION 17:32:06 drwxrwxr-x 2 jenkins jenkins 4096 Sep 20 17:26 bin 17:32:06 drwxrwxr-x 3 jenkins jenkins 4096 Sep 20 17:26 cmd 17:32:06 -rw-r--r-- 1 jenkins jenkins 24334 Sep 20 17:31 coverage.out 17:32:06 -rw-rw-r-- 1 jenkins jenkins 3941 Sep 20 17:26 go.mod 17:32:06 -rw-rw-r-- 1 jenkins jenkins 35965 Sep 20 17:26 go.sum 17:32:06 drwxrwxr-x 3 jenkins jenkins 4096 Sep 20 17:26 internal 17:32:06 drwxrwxr-x 2 jenkins jenkins 4096 Sep 20 17:26 simulator 17:32:06 drwxrwxr-x 4 jenkins jenkins 4096 Sep 20 17:26 snap 17:32:06 -rw-rw-r-- 1 jenkins jenkins 229 Sep 20 17:26 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 17:32:07 + 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=a1e294ccebe5d32c658330e9975c905eff52af94 --label arch=arm64 --label version=0.0.0 . 17:32:07 Sending build context to Docker daemon 3.376MB 17:32:07 Step 1/22 : ARG BASE=golang:1.21-alpine3.18 17:32:07 Step 2/22 : FROM ${BASE} AS builder 17:32:07 ---> 07a5770e72b1 17:32:07 Step 3/22 : ARG ADD_BUILD_TAGS="" 17:32:07 ---> Running in e10d5dac7f15 17:32:09 Removing intermediate container e10d5dac7f15 17:32:09 ---> cad7c96fe62d 17:32:09 Step 4/22 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 17:32:09 ---> Running in 21343c22e9c3 17:32:09 Removing intermediate container 21343c22e9c3 17:32:09 ---> 96f5ad9a6366 17:32:09 Step 5/22 : RUN apk add --update --no-cache make git openssh 17:32:09 ---> Running in 8c18af039010 17:32:09 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/aarch64/APKINDEX.tar.gz 17:32:10 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/aarch64/APKINDEX.tar.gz 17:32:11 OK: 272 MiB in 60 packages 17:32:12 Removing intermediate container 8c18af039010 17:32:12 ---> 56609542559f 17:32:12 Step 6/22 : WORKDIR /device-modbus-go 17:32:13 ---> Running in 0d154eb1a972 17:32:13 Removing intermediate container 0d154eb1a972 17:32:13 ---> 488432fe37e8 17:32:13 Step 7/22 : COPY go.mod vendor* ./ 17:32:14 ---> 3bbd5af3719d 17:32:14 Step 8/22 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 17:32:14 ---> Running in 736f6b872854 17:32:16 Removing intermediate container 736f6b872854 17:32:16 ---> 25e1b3d22818 17:32:16 Step 9/22 : COPY . . 17:32:17 ---> 96dfea98bab3 17:32:17 Step 10/22 : RUN ${MAKE} 17:32:17 ---> Running in e319b1a9ee80 17:32:18 CGO_ENABLED=0 go build -tags "" -ldflags "-X github.com/edgexfoundry/device-modbus-go.Version=0.0.0 -X github.com/edgexfoundry/device-sdk-go/v3/internal/common.SDKVersion=v3.1.0-dev.24" -trimpath -mod=readonly -o cmd/device-modbus ./cmd 17:34:55 Removing intermediate container e319b1a9ee80 17:34:55 ---> d83698e623cd 17:34:55 Step 11/22 : FROM alpine:3.18 17:34:55 3.18: Pulling from library/alpine 17:34:55 9fda8d8052c6: Already exists 17:34:55 Digest: sha256:7144f7bab3d4c2648d7e59409f15ec52a18006a128c733fcff20d3a4a54ba44a 17:34:55 Status: Downloaded newer image for alpine:3.18 17:34:55 ---> f6648c04cd6c 17:34:55 Step 12/22 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IoTech Ltd' 17:34:55 ---> Running in 6a0714dec404 17:34:55 Removing intermediate container 6a0714dec404 17:34:55 ---> 24ad4fbfe921 17:34:55 Step 13/22 : RUN apk add --update --no-cache dumb-init 17:34:55 ---> Running in b07cfaa7cabd 17:34:55 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/aarch64/APKINDEX.tar.gz 17:34:55 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/aarch64/APKINDEX.tar.gz 17:34:55 (1/1) Installing dumb-init (1.2.5-r2) 17:34:55 Executing busybox-1.36.1-r2.trigger 17:34:55 OK: 8 MiB in 16 packages 17:34:55 Removing intermediate container b07cfaa7cabd 17:34:55 ---> 520002a6286b 17:34:55 Step 14/22 : COPY --from=builder /device-modbus-go/cmd / 17:34:55 ---> 5f356b34e022 17:34:55 Step 15/22 : COPY --from=builder /device-modbus-go/LICENSE / 17:34:55 ---> 50c5a04635e5 17:34:55 Step 16/22 : COPY --from=builder /device-modbus-go/Attribution.txt / 17:34:55 ---> d8c28fc8ea04 17:34:55 Step 17/22 : EXPOSE 59901 17:34:55 ---> Running in d9dd52878cc4 17:34:55 Removing intermediate container d9dd52878cc4 17:34:55 ---> ea5d65c9fd8b 17:34:55 Step 18/22 : ENTRYPOINT ["/device-modbus"] 17:34:55 ---> Running in 7a602a9ab2b6 17:34:55 Removing intermediate container 7a602a9ab2b6 17:34:55 ---> 78d2d66a20b3 17:34:55 Step 19/22 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 17:34:55 ---> Running in 3b04fe838bae 17:34:55 Removing intermediate container 3b04fe838bae 17:34:55 ---> 5d54aa55c846 17:34:55 Step 20/22 : LABEL arch=arm64 17:34:55 ---> Running in 1117ae334244 17:34:55 Removing intermediate container 1117ae334244 17:34:55 ---> 296f3d24953e 17:34:55 Step 21/22 : LABEL git_sha=a1e294ccebe5d32c658330e9975c905eff52af94 17:34:55 ---> Running in ec7bfc46f238 17:34:55 Removing intermediate container ec7bfc46f238 17:34:55 ---> cbcc22de43d3 17:34:55 Step 22/22 : LABEL version=0.0.0 17:34:55 ---> Running in a9eae192519c 17:34:55 Removing intermediate container a9eae192519c 17:34:55 ---> cd549b5ba0b6 17:34:55 [Warning] One or more build-args [ARCH] were not consumed 17:34:55 Successfully built cd549b5ba0b6 17:34:55 Successfully tagged device-modbus-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Docker Push) Stage "Docker Push" skipped due to when conditional [Pipeline] } [Pipeline] // stage Post stage [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 17:34:56 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 17:34:56 17:34:56 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 17:34:56 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 17:34:57 arm64: Pulling from edgex-lftools-log-publisher 17:34:57 8998bd30e6a1: Pulling fs layer 17:34:57 04944245beec: Pulling fs layer 17:34:57 699f458cf7ca: Pulling fs layer 17:34:57 765212b225bb: Pulling fs layer 17:34:57 f23df028b6ca: Pulling fs layer 17:34:57 d65c8cfc05b1: Pulling fs layer 17:34:57 2437ff75d9bd: Pulling fs layer 17:34:57 765212b225bb: Waiting 17:34:57 f23df028b6ca: Waiting 17:34:57 d65c8cfc05b1: Waiting 17:34:57 2437ff75d9bd: Waiting 17:34:57 04944245beec: Verifying Checksum 17:34:57 04944245beec: Download complete 17:34:57 765212b225bb: Verifying Checksum 17:34:57 765212b225bb: Download complete 17:34:57 f23df028b6ca: Verifying Checksum 17:34:57 f23df028b6ca: Download complete 17:34:57 d65c8cfc05b1: Verifying Checksum 17:34:57 d65c8cfc05b1: Download complete 17:34:57 699f458cf7ca: Verifying Checksum 17:34:57 699f458cf7ca: Download complete 17:34:58 8998bd30e6a1: Verifying Checksum 17:34:58 8998bd30e6a1: Download complete 17:35:00 2437ff75d9bd: Verifying Checksum 17:35:00 2437ff75d9bd: Download complete 17:35:02 8998bd30e6a1: Pull complete 17:35:02 04944245beec: Pull complete 17:35:03 699f458cf7ca: Pull complete 17:35:04 765212b225bb: Pull complete 17:35:05 f23df028b6ca: Pull complete 17:35:05 d65c8cfc05b1: Pull complete 17:35:20 2437ff75d9bd: Pull complete 17:35:20 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 17:35:20 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 17:35:20 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 17:35:20 prd-ubuntu20.04-docker-arm64-4c-16g-6745 does not seem to be running inside a container 17:35:20 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/device-modbus-go/1 -v /w/workspace/device-modbus-go/1:/w/workspace/device-modbus-go/1:rw,z -v /w/workspace/device-modbus-go/1@tmp:/w/workspace/device-modbus-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 17:35:24 $ docker top 194ed31e4d59342c9a4ce7c561a9bdfb4c044ccf33ad3c6d8b4db4fa6dc62cef -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 17:35:24 ---> job-cost.sh 17:35:24 lf-activate-venv: SKIPPING 17:35:24 INFO: No Stack... 17:35:25 INFO: Retrieving Pricing Info for: v3-standard-4 17:35:26 INFO: Archiving Costs [Pipeline] sh 17:35:27 + cut -d, -f6 17:35:27 + cat /w/workspace/device-modbus-go/1/archives/cost.csv [Pipeline] lock 17:35:27 Trying to acquire lock on [jenkins-edgexfoundry-device-modbus-go-PR-503-1-stack-cost] 17:35:27 Resource [jenkins-edgexfoundry-device-modbus-go-PR-503-1-stack-cost] did not exist. Created. 17:35:27 Lock acquired on [jenkins-edgexfoundry-device-modbus-go-PR-503-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 17:35:28 /w/workspace/device-modbus-go/1@tmp/durable-11ce74c5/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 17:35:28 + echo total: 0.10999999940395355 [Pipeline] stash 17:35:28 Warning: overwriting stash ‘stack-cost’ 17:35:28 Stashed 1 file(s) [Pipeline] } 17:35:28 Lock released on resource [jenkins-edgexfoundry-device-modbus-go-PR-503-1-stack-cost] [Pipeline] // lock [Pipeline] } 17:35:28 $ docker stop --time=1 194ed31e4d59342c9a4ce7c561a9bdfb4c044ccf33ad3c6d8b4db4fa6dc62cef 17:35:30 $ docker rm -f --volumes 194ed31e4d59342c9a4ce7c561a9bdfb4c044ccf33ad3c6d8b4db4fa6dc62cef [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 17:35:31 provisioning config files... 17:35:31 copy managed file [device-modbus-go-codecov-token] to file:/w/workspace/xfoundry_device-modbus-go_PR-503@tmp/config13190569776604457826tmp [Pipeline] { [Pipeline] sh 17:35:31 + set +x 17:35:31 + curl -s https://codecov.io/bash 17:35:31 + bash -s -- 17:35:31 17:35:31 _____ _ 17:35:31 / ____| | | 17:35:31 | | ___ __| | ___ ___ _____ __ 17:35:31 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 17:35:31 | |___| (_) | (_| | __/ (_| (_) \ V / 17:35:31 \_____\___/ \__,_|\___|\___\___/ \_/ 17:35:31 Bash-1.0.6 17:35:31 17:35:31 17:35:31 ==> git version 2.25.1 found 17:35:31 ==> 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 17:35:31 Release-Date: 2020-01-08 17:35:31 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 17:35:31 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 17:35:31 ==> Jenkins CI detected. 17:35:31 current dir:  /w/workspace/xfoundry_device-modbus-go_PR-503 17:35:31 project root: . 17:35:31 --> token set from env 17:35:31 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 17:35:31 ==> Running gcov in . (disable via -X gcov) 17:35:31 ==> Python coveragepy not found 17:35:31 ==> Searching for coverage reports in: 17:35:31 + . 17:35:31 -> Found 1 reports 17:35:31 ==> Detecting git/mercurial file structure 17:35:31 ==> Reading reports 17:35:32 + ./coverage.out bytes=24334 17:35:32 ==> Appending adjustments 17:35:32 https://docs.codecov.io/docs/fixing-reports 17:35:32 + Found adjustments 17:35:32 ==> Gzipping contents 17:35:32 4.0K /tmp/codecov.58buZH.gz 17:35:32 ==> Uploading reports 17:35:32 url: https://codecov.io 17:35:32 query: branch=PR-503&commit=a1e294ccebe5d32c658330e9975c905eff52af94&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-modbus-go%2Fjob%2FPR-503%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-modbus-go&service=jenkins&flags=&pr=503&job=&cmd_args= 17:35:32 -> Pinging Codecov 17:35:32 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=3a8d40b1-de00-4649-bfd4-bdc8ed99ae89&branch=PR-503&commit=a1e294ccebe5d32c658330e9975c905eff52af94&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-modbus-go%2Fjob%2FPR-503%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-modbus-go&service=jenkins&flags=&pr=503&job=&cmd_args= 17:35:40 -> Uploading to 17:35:40 https://storage.googleapis.com/codecov/v4/raw/2023-09-20/55DBCA73C666E3227836607328DD7E49/a1e294ccebe5d32c658330e9975c905eff52af94/d47010ad-95c8-4af0-9b1b-6a3db792f5f5.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20230920%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20230920T173540Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=1b881a1e70210471bfd75a8ab4e728fa85603b05d3754148aa5b5e81a6487355 17:35:40 % Total % Received % Xferd Average Speed Time Time Time Current 17:35:40 Dload Upload Total Spent Left Speed 17:35:40 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 3974 0 0 100 3974 0 22325 --:--:-- --:--:-- --:--:-- 22325 17:35:40 -> Reports have been successfully queued for processing at https://app.codecov.io/github/edgexfoundry/device-modbus-go/commit/a1e294ccebe5d32c658330e9975c905eff52af94 [Pipeline] } 17:35:40 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Snyk Dependency Scan) Stage "Snyk Dependency Scan" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Archive Prep) Stage "Archive Prep" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Publish Swagger) Stage "Publish Swagger" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Semver) Stage "Semver" skipped due to when conditional [Pipeline] stage [Pipeline] { (Tag) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Pre-Release Version) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Experimental Tag) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Stable (Named) Tag) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Declarative: Post Actions) [Pipeline] stage [Pipeline] { (LF Post Build Actions) [Pipeline] sh 17:35:42 + [ -d /w/workspace/xfoundry_device-modbus-go_PR-503/archives ] 17:35:42 + ls -al /w/workspace/xfoundry_device-modbus-go_PR-503/archives 17:35:42 total 16 17:35:42 drwxr-xr-x 3 root root 4096 Sep 20 17:24 . 17:35:42 drwxrwxr-x 11 jenkins jenkins 4096 Sep 20 17:24 .. 17:35:42 drwxr-xr-x 2 root root 4096 Sep 20 17:24 cost 17:35:42 -rw-r--r-- 1 root root 88 Sep 20 17:24 cost.csv 17:35:42 + sudo chown -R jenkins:jenkins /w/workspace/xfoundry_device-modbus-go_PR-503/archives 17:35:42 + ls -al /w/workspace/xfoundry_device-modbus-go_PR-503/archives 17:35:42 total 16 17:35:42 drwxr-xr-x 3 jenkins jenkins 4096 Sep 20 17:24 . 17:35:42 drwxrwxr-x 11 jenkins jenkins 4096 Sep 20 17:24 .. 17:35:42 drwxr-xr-x 2 jenkins jenkins 4096 Sep 20 17:24 cost 17:35:42 -rw-r--r-- 1 jenkins jenkins 88 Sep 20 17:24 cost.csv [Pipeline] libraryResource [Pipeline] sh 17:35:42 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 17:35:43 ---> package-listing.sh 17:35:43 ++ facter osfamily 17:35:43 ++ tr '[:upper:]' '[:lower:]' 17:35:43 + OS_FAMILY=debian 17:35:43 + workspace=/w/workspace/xfoundry_device-modbus-go_PR-503 17:35:43 + START_PACKAGES=/tmp/packages_start.txt 17:35:43 + END_PACKAGES=/tmp/packages_end.txt 17:35:43 + DIFF_PACKAGES=/tmp/packages_diff.txt 17:35:43 + PACKAGES=/tmp/packages_start.txt 17:35:43 + '[' /w/workspace/xfoundry_device-modbus-go_PR-503 ']' 17:35:43 + PACKAGES=/tmp/packages_end.txt 17:35:43 + case "${OS_FAMILY}" in 17:35:43 + dpkg -l 17:35:43 + grep '^ii' 17:35:43 + '[' -f /tmp/packages_start.txt ']' 17:35:43 + '[' -f /tmp/packages_end.txt ']' 17:35:43 + diff /tmp/packages_start.txt /tmp/packages_end.txt 17:35:43 + '[' /w/workspace/xfoundry_device-modbus-go_PR-503 ']' 17:35:43 + mkdir -p /w/workspace/xfoundry_device-modbus-go_PR-503/archives/ 17:35:43 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/xfoundry_device-modbus-go_PR-503/archives/ [Pipeline] echo 17:35:43 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-503/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 17:35:44 + facter operatingsystem [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 17:35:44 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 17:35:44 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 17:35:44 prd-ubuntu20.04-docker-8c-8g-6734 does not seem to be running inside a container 17:35:44 $ 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-503/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-503 -v /w/workspace/xfoundry_device-modbus-go_PR-503:/w/workspace/xfoundry_device-modbus-go_PR-503:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-503@tmp:/w/workspace/xfoundry_device-modbus-go_PR-503@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 17:35:45 $ docker top 92c5e9adefe86ab5564dc0f46cbcaaa1477cbffab6f0e95b49972d965be1a102 -eo pid,comm [Pipeline] { [Pipeline] sh 17:35:45 + touch /tmp/pre-build-complete [Pipeline] sh 17:35:45 + mkdir -p /var/log/sysstat [Pipeline] sh 17:35:46 + ls /var/log/sa-host 17:35:46 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 17:35:46 provisioning config files... 17:35:46 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-503@tmp/config12186135050319071001tmp [Pipeline] { [Pipeline] echo 17:35:46 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 17:35:46 ---> create-netrc.sh [Pipeline] } 17:35:46 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 17:35:47 ---> python-tools-install.sh [Pipeline] echo 17:35:47 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 17:35:47 ---> sudo-logs.sh 17:35:47 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 17:35:47 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 17:35:48 ---> job-cost.sh 17:35:48 lf-activate-venv: SKIPPING 17:35:48 DEBUG: total: 0.2199999988079071 17:35:48 INFO: Retrieving Stack Cost... 17:35:48 INFO: Retrieving Pricing Info for: v3-standard-8 17:35:48 INFO: Archiving Costs [Pipeline] echo 17:35:48 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 17:35:49 ---> logs-deploy.sh 17:35:49 lf-activate-venv: SKIPPING 17:35:49 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-modbus-go/PR-503/1 17:35:49 INFO: archiving workspace using pattern(s): 17:35:50 Archives upload complete. 17:35:50 INFO: archiving logs to Nexus