Pull request #502 opened Connecting to https://api.github.com using edgex-jenkins github personal access token Obtained Jenkinsfile from e7d4f928b35e767f084d3bb0adede9b769adbb2f+51bdb209bfe3268f564ccfe93ba09768b0d9e930 (684101d5be1748d1d1e8cd2e3f2ab6f2bce06df9) 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-ssh11357299141027269805.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-ssh12586109842210220952.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-502/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-502/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh1130001704854434040.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-502/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh6972511977174152157.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-ssh9619540632876599638.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-502/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-502/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e@tmp/jenkins-gitclient-ssh9178677923963043159.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-6665’ Running on prd-ubuntu20.04-docker-8c-8g-6668 in /w/workspace/xfoundry_device-modbus-go_PR-502 [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-502 # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git > git --version # timeout=10 > git --version # 'git version 2.25.1' using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 Merging remotes/origin/main commit 51bdb209bfe3268f564ccfe93ba09768b0d9e930 into PR head commit e7d4f928b35e767f084d3bb0adede9b769adbb2f > 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/502/head:refs/remotes/origin/PR-502 +refs/heads/main:refs/remotes/origin/main # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f e7d4f928b35e767f084d3bb0adede9b769adbb2f # timeout=10 > git remote # timeout=10 > git config --get remote.origin.url # timeout=10 Merge succeeded, producing e7d4f928b35e767f084d3bb0adede9b769adbb2f Checking out Revision e7d4f928b35e767f084d3bb0adede9b769adbb2f (PR-502) Commit message: "build(deps): Bump github.com/edgexfoundry/device-sdk-go/v3" First time build. Skipping changelog. > git --version # timeout=10 > git --version # 'git version 2.25.1' fatal: bad object e143027787c0ac28563f7e92b6cefc600d3b7107 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 05:13:49 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 05:13:49 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 05:13:49 ========================================================= 05:13:49 EdgeX Global Pipelines Version Info 05:13:49 ========================================================= [Pipeline] libraryResource [Pipeline] sh 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 e7d4f928b35e767f084d3bb0adede9b769adbb2f # timeout=10 05:13:50 ------------------- 05:13:50 stable info: 05:13:50 ------------------- 05:13:50 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 05:13:50 Commit SHA: e143027787c0ac28563f7e92b6cefc600d3b7107 05:13:50 Message: update stable to v1.0.254 05:13:51 ------------------- 05:13:51 experimental info: 05:13:51 ------------------- 05:13:51 Commited By: **** collab-it+edgex@linuxfoundation.org 05:13:51 Commit SHA: e143027787c0ac28563f7e92b6cefc600d3b7107 05:13:51 Message: update experimental to v1.0.254 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 05:13:51 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-modbus-go-settings [Pipeline] echo 05:13:51 [edgeXSetupEnvironment]: set envvar PROJECT = device-modbus-go [Pipeline] echo 05:13:51 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 05:13:51 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 05:13:51 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 05:13:51 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.21 [Pipeline] echo 05:13:51 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 05:13:51 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 05:13:51 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 05:13:51 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 05:13:52 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 05:13:52 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-modbus [Pipeline] echo 05:13:52 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 05:13:52 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 05:13:52 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 05:13:52 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 05:13:52 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 05:13:52 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 05:13:52 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 05:13:52 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 05:13:52 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 05:13:52 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 05:13:52 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 05:13:52 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 05:13:52 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 05:13:52 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 05:13:52 [edgeXSetupEnvironment]: set envvar SNYK_DEBUG = false [Pipeline] echo 05:13:52 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-502 [Pipeline] echo 05:13:52 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-502 [Pipeline] echo 05:13:52 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-502 [Pipeline] echo 05:13:52 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = e7d4f928b35e767f084d3bb0adede9b769adbb2f [Pipeline] echo 05:13:52 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = e7d4f92 [Pipeline] echo 05:13:52 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 05:13:53 provisioning config files... 05:13:53 copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-502@tmp/config3161150162768237078tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 05:13:53 ---> docker-login.sh 05:13:53 nexus3.edgexfoundry.org:10001 05:13:53 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:13:53 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:13:53 Configure a credential helper to remove this warning. See 05:13:53 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:13:53 05:13:53 Login Succeeded 05:13:53 nexus3.edgexfoundry.org:10002 05:13:53 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:13:53 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:13:53 Configure a credential helper to remove this warning. See 05:13:53 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:13:53 05:13:53 Login Succeeded 05:13:53 nexus3.edgexfoundry.org:10003 05:13:53 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:13:53 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:13:53 Configure a credential helper to remove this warning. See 05:13:53 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:13:53 05:13:53 Login Succeeded 05:13:53 nexus3.edgexfoundry.org:10004 05:13:53 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:13:53 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:13:53 Configure a credential helper to remove this warning. See 05:13:53 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:13:53 05:13:53 Login Succeeded 05:13:53 docker.io 05:13:54 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:13:54 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:13:54 Configure a credential helper to remove this warning. See 05:13:54 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:13:54 05:13:54 Login Succeeded 05:13:54 ---> docker-login.sh ends [Pipeline] } 05:13:54 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 05:13:55 + git rev-list -1 --merges e7d4f928b35e767f084d3bb0adede9b769adbb2f~1..e7d4f928b35e767f084d3bb0adede9b769adbb2f [Pipeline] echo 05:13:55 -----------> git rev-list -1 --merges e7d4f928b35e767f084d3bb0adede9b769adbb2f~1..e7d4f928b35e767f084d3bb0adede9b769adbb2f e7d4f928b35e767f084d3bb0adede9b769adbb2f [false] [Pipeline] sh 05:13:55 + git log --format=format:%s -1 e7d4f928b35e767f084d3bb0adede9b769adbb2f [Pipeline] echo 05:13:55 ========================================================= 05:13:55 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 05:13:55 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 05:13:56 + git log --format=format:%s -1 e7d4f928b35e767f084d3bb0adede9b769adbb2f [Pipeline] echo 05:13:56 [semverPrep] GIT_COMMIT: e7d4f928b35e767f084d3bb0adede9b769adbb2f, Commit Message: build(deps): Bump github.com/edgexfoundry/device-sdk-go/v3 [Pipeline] echo 05:13:56 [semverPrep] This is not a build commit. [Pipeline] sh 05:13:56 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 05:13:56 + grep -v github /etc/ssh/ssh_known_hosts 05:13:56 + [ -e /tmp/ssh_known_hosts ] 05:13:56 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 05:13:56 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 05:13:56 + sudo tee -a /etc/ssh/ssh_known_hosts 05:13:56 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:13:56 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 05:13:56 05:13:56 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:13:57 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 05:13:57 0.1.4: Pulling from edgex-devops/py-git-semver 05:13:57 b85a868b505f: Pulling fs layer 05:13:57 e2be974225ed: Pulling fs layer 05:13:57 339a4e72a1f5: Pulling fs layer 05:13:57 988bab9f4d93: Pulling fs layer 05:13:57 1469e6f7b9e6: Pulling fs layer 05:13:57 eaf3925da568: Pulling fs layer 05:13:57 bab4dde63d76: Pulling fs layer 05:13:57 bde34c3a00c8: Pulling fs layer 05:13:57 b352a97aabf1: Pulling fs layer 05:13:57 988bab9f4d93: Waiting 05:13:57 1469e6f7b9e6: Waiting 05:13:57 eaf3925da568: Waiting 05:13:57 bab4dde63d76: Waiting 05:13:57 bde34c3a00c8: Waiting 05:13:57 4872d77fe225: Pulling fs layer 05:13:57 5851b861e8e6: Pulling fs layer 05:13:57 b352a97aabf1: Waiting 05:13:57 5851b861e8e6: Waiting 05:13:57 4872d77fe225: Waiting 05:13:57 e2be974225ed: Download complete 05:13:57 988bab9f4d93: Download complete 05:13:57 1469e6f7b9e6: Verifying Checksum 05:13:57 1469e6f7b9e6: Download complete 05:13:57 eaf3925da568: Verifying Checksum 05:13:57 eaf3925da568: Download complete 05:13:57 339a4e72a1f5: Verifying Checksum 05:13:57 339a4e72a1f5: Download complete 05:13:57 bde34c3a00c8: Verifying Checksum 05:13:57 bde34c3a00c8: Download complete 05:13:57 b352a97aabf1: Verifying Checksum 05:13:57 b352a97aabf1: Download complete 05:13:57 4872d77fe225: Verifying Checksum 05:13:57 4872d77fe225: Download complete 05:13:57 5851b861e8e6: Download complete 05:13:57 b85a868b505f: Download complete 05:13:57 bab4dde63d76: Verifying Checksum 05:13:57 bab4dde63d76: Download complete 05:13:58 b85a868b505f: Pull complete 05:13:59 e2be974225ed: Pull complete 05:13:59 339a4e72a1f5: Pull complete 05:13:59 988bab9f4d93: Pull complete 05:13:59 1469e6f7b9e6: Pull complete 05:13:59 eaf3925da568: Pull complete 05:14:01 bab4dde63d76: Pull complete 05:14:01 bde34c3a00c8: Pull complete 05:14:01 b352a97aabf1: Pull complete 05:14:02 4872d77fe225: Pull complete 05:14:02 5851b861e8e6: Pull complete 05:14:02 Digest: sha256:59a28aa3b44c0bc56b9c3d2e9ecabe42e63693d939cc6e425eb8786f29f663d8 05:14:02 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 05:14:02 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 05:14:02 prd-ubuntu20.04-docker-8c-8g-6668 does not seem to be running inside a container 05:14:02 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/xfoundry_device-modbus-go_PR-502 -v /w/workspace/xfoundry_device-modbus-go_PR-502:/w/workspace/xfoundry_device-modbus-go_PR-502:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-502@tmp:/w/workspace/xfoundry_device-modbus-go_PR-502@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 cat 05:14:04 $ docker top d3c9098d9f3e6f4c9722c3f8cdf3724f9d5c8d8a2db331f4424a00581e229e48 -eo pid,comm 05:14:04 ERROR: The container started but didn't run the expected command. Please double check your ENTRYPOINT does execute the command passed as docker run argument, as required by official docker images (see https://github.com/docker-library/official-images#consistency for entrypoint consistency requirements). 05:14:04 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 05:14:04 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 05:14:04 [ssh-agent] Looking for ssh-agent implementation... 05:14:05 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 05:14:05 $ docker exec d3c9098d9f3e6f4c9722c3f8cdf3724f9d5c8d8a2db331f4424a00581e229e48 ssh-agent 05:14:05 SSH_AUTH_SOCK=/tmp/ssh-xwy2y03IomEr/agent.33 05:14:05 SSH_AGENT_PID=39 05:14:05 Running ssh-add (command line suppressed) 05:14:05 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-502@tmp/private_key_12557628731941161711.key (/w/workspace/xfoundry_device-modbus-go_PR-502@tmp/private_key_12557628731941161711.key) 05:14:05 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 05:14:05 + git tag --points-at HEAD [Pipeline] } 05:14:05 $ docker exec --env ******** --env ******** d3c9098d9f3e6f4c9722c3f8cdf3724f9d5c8d8a2db331f4424a00581e229e48 ssh-agent -k 05:14:05 unset SSH_AUTH_SOCK; 05:14:05 unset SSH_AGENT_PID; 05:14:05 echo Agent pid 39 killed; 05:14:05 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 05:14:05 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 05:14:05 [ssh-agent] Looking for ssh-agent implementation... 05:14:05 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 05:14:06 $ docker exec d3c9098d9f3e6f4c9722c3f8cdf3724f9d5c8d8a2db331f4424a00581e229e48 ssh-agent 05:14:06 SSH_AUTH_SOCK=/tmp/ssh-kRW0K2m5oCnW/agent.71 05:14:06 SSH_AGENT_PID=77 05:14:06 Running ssh-add (command line suppressed) 05:14:06 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-502@tmp/private_key_11516950960489233202.key (/w/workspace/xfoundry_device-modbus-go_PR-502@tmp/private_key_11516950960489233202.key) 05:14:06 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 05:14:06 + git semver init 05:14:06 2023-09-20 05:14:06,772 [run_init] DEBUG init version:0.0.0 force:False 05:14:06 2023-09-20 05:14:06,773 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/xfoundry_device-modbus-go_PR-502/.semver 05:14:06 2023-09-20 05:14:06,774 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-modbus-go.git /w/workspace/xfoundry_device-modbus-go_PR-502/.semver 05:14:06 2023-09-20 05:14:06,774 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-modbus-go.git', '/w/workspace/xfoundry_device-modbus-go_PR-502/.semver'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-502, universal_newlines=False, shell=None, istream=None) 05:14:07 2023-09-20 05:14:07,522 [append_file] DEBUG append to file:/w/workspace/xfoundry_device-modbus-go_PR-502/.git/info/exclude 05:14:07 2023-09-20 05:14:07,524 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/xfoundry_device-modbus-go_PR-502/.semver/PR-502 with force:False 05:14:07 2023-09-20 05:14:07,524 [write_file] DEBUG write to file:/w/workspace/xfoundry_device-modbus-go_PR-502/.semver/PR-502 05:14:07 2023-09-20 05:14:07,529 [execute] INFO git cat-file --batch-check 05:14:07 2023-09-20 05:14:07,530 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-502/.semver, universal_newlines=False, shell=None, istream=) 05:14:07 2023-09-20 05:14:07,536 [execute] INFO git cat-file --batch 05:14:07 2023-09-20 05:14:07,536 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-502/.semver, universal_newlines=False, shell=None, istream=) 05:14:07 2023-09-20 05:14:07,542 [read_version] DEBUG read version from /w/workspace/xfoundry_device-modbus-go_PR-502/.semver/PR-502 05:14:07 0.0.0 [Pipeline] } 05:14:07 $ docker exec --env ******** --env ******** d3c9098d9f3e6f4c9722c3f8cdf3724f9d5c8d8a2db331f4424a00581e229e48 ssh-agent -k 05:14:07 unset SSH_AUTH_SOCK; 05:14:07 unset SSH_AGENT_PID; 05:14:07 echo Agent pid 77 killed; 05:14:07 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 05:14:08 + git semver [Pipeline] } 05:14:08 $ docker stop --time=1 d3c9098d9f3e6f4c9722c3f8cdf3724f9d5c8d8a2db331f4424a00581e229e48 05:14:09 $ docker rm -f --volumes d3c9098d9f3e6f4c9722c3f8cdf3724f9d5c8d8a2db331f4424a00581e229e48 [Pipeline] // withDockerContainer [Pipeline] sh 05:14:10 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 05:14:10 Stashed 1 file(s) [Pipeline] echo 05:14:10 [edgeXSemver]: initialized semver on version 0.0.0 [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] parallel [Pipeline] { (Branch: amd64) [Pipeline] { (Branch: arm64) [Pipeline] stage [Pipeline] { (amd64) [Pipeline] stage [Pipeline] { (arm64) [Pipeline] withEnv [Pipeline] { [Pipeline] node [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 05:14:11 provisioning config files... 05:14:11 copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-502@tmp/config6197921708315160971tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 05:14:11 ---> docker-login.sh 05:14:11 nexus3.edgexfoundry.org:10001 05:14:11 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:14:11 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:14:11 Configure a credential helper to remove this warning. See 05:14:11 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:14:11 05:14:11 Login Succeeded 05:14:11 nexus3.edgexfoundry.org:10002 05:14:11 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:14:11 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:14:11 Configure a credential helper to remove this warning. See 05:14:11 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:14:11 05:14:11 Login Succeeded 05:14:11 nexus3.edgexfoundry.org:10003 05:14:11 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:14:11 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:14:11 Configure a credential helper to remove this warning. See 05:14:11 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:14:11 05:14:11 Login Succeeded 05:14:11 nexus3.edgexfoundry.org:10004 05:14:11 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:14:11 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:14:11 Configure a credential helper to remove this warning. See 05:14:11 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:14:11 05:14:11 Login Succeeded 05:14:11 docker.io 05:14:12 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:14:12 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:14:12 Configure a credential helper to remove this warning. See 05:14:12 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:14:12 05:14:12 Login Succeeded 05:14:12 ---> docker-login.sh ends [Pipeline] } 05:14:12 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 05:14:12 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 05:14:12 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 05:14:12 ========================================================= 05:14:12 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.21-alpine] 05:14:12 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:14:13 + docker build -t ci-base-image-x86_64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.21-alpine --build-arg MAKE=echo noop --target=builder . 05:14:13 Sending build context to Docker daemon 6.472MB 05:14:13 Step 1/10 : ARG BASE=golang:1.21-alpine3.18 05:14:13 Step 2/10 : FROM ${BASE} AS builder 05:14:13 1.21-alpine: Pulling from edgex-devops/edgex-golang-base 05:14:13 7264a8db6415: Pulling fs layer 05:14:13 c4d48a809fc2: Pulling fs layer 05:14:13 4f1c88b9dad5: Pulling fs layer 05:14:13 ad3a456e5733: Pulling fs layer 05:14:13 9e4f439ed901: Pulling fs layer 05:14:13 feaf6a47b606: Pulling fs layer 05:14:13 5e8b037d7d82: Pulling fs layer 05:14:13 8ac70367396e: Pulling fs layer 05:14:13 6db16350a2e2: Pulling fs layer 05:14:13 9250d5d63582: Pulling fs layer 05:14:13 5e8b037d7d82: Waiting 05:14:13 8ac70367396e: Waiting 05:14:13 6db16350a2e2: Waiting 05:14:13 9250d5d63582: Waiting 05:14:13 ad3a456e5733: Waiting 05:14:13 9e4f439ed901: Waiting 05:14:13 feaf6a47b606: Waiting 05:14:13 c4d48a809fc2: Download complete 05:14:13 ad3a456e5733: Verifying Checksum 05:14:13 ad3a456e5733: Download complete 05:14:13 9e4f439ed901: Verifying Checksum 05:14:13 9e4f439ed901: Download complete 05:14:13 7264a8db6415: Verifying Checksum 05:14:13 7264a8db6415: Download complete 05:14:13 feaf6a47b606: Verifying Checksum 05:14:13 feaf6a47b606: Download complete 05:14:13 7264a8db6415: Pull complete 05:14:13 8ac70367396e: Verifying Checksum 05:14:13 8ac70367396e: Download complete 05:14:13 c4d48a809fc2: Pull complete 05:14:13 4f1c88b9dad5: Verifying Checksum 05:14:13 4f1c88b9dad5: Download complete 05:14:14 6db16350a2e2: Verifying Checksum 05:14:14 6db16350a2e2: Download complete 05:14:14 9250d5d63582: Verifying Checksum 05:14:14 9250d5d63582: Download complete 05:14:14 5e8b037d7d82: Verifying Checksum 05:14:14 5e8b037d7d82: Download complete 05:14:17 4f1c88b9dad5: Pull complete 05:14:17 ad3a456e5733: Pull complete 05:14:17 9e4f439ed901: Pull complete 05:14:17 feaf6a47b606: Pull complete 05:14:20 5e8b037d7d82: Pull complete 05:14:20 8ac70367396e: Pull complete 05:14:20 6db16350a2e2: Pull complete 05:14:20 9250d5d63582: Pull complete 05:14:20 Digest: sha256:3646cb4089a714386d09daba17fdee0803df1ec33e73c4ae92f9989f90c6e4e0 05:14:20 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.21-alpine 05:14:20 ---> fa269f55d9b9 05:14:20 Step 3/10 : ARG ADD_BUILD_TAGS="" 05:14:25 ---> Running in e577a499d085 05:14:25 Removing intermediate container e577a499d085 05:14:25 ---> 6ca7066dd6f9 05:14:25 Step 4/10 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 05:14:25 ---> Running in d2b9b3831096 05:14:25 Removing intermediate container d2b9b3831096 05:14:25 ---> 9b353c0374e3 05:14:25 Step 5/10 : RUN apk add --update --no-cache make git openssh 05:14:25 ---> Running in 88d2470129c8 05:14:25 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/APKINDEX.tar.gz 05:14:25 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/x86_64/APKINDEX.tar.gz 05:14:25 (1/8) Installing openssh-keygen (9.3_p2-r0) 05:14:25 (2/8) Installing libedit (20221030.3.1-r1) 05:14:25 (3/8) Installing openssh-client-common (9.3_p2-r0) 05:14:25 (4/8) Installing openssh-client-default (9.3_p2-r0) 05:14:25 (5/8) Installing openssh-sftp-server (9.3_p2-r0) 05:14:25 (6/8) Installing openssh-server-common (9.3_p2-r0) 05:14:25 (7/8) Installing openssh-server (9.3_p2-r0) 05:14:25 (8/8) Installing openssh (9.3_p2-r0) 05:14:25 Executing busybox-1.36.1-r2.trigger 05:14:25 OK: 271 MiB in 64 packages 05:14:26 Still waiting to schedule task 05:14:26 ‘prd-ubuntu20.04-docker-arm64-4c-16g-6666’ is offline 05:14:26 Removing intermediate container 88d2470129c8 05:14:26 ---> 4a72ed3cca82 05:14:26 Step 6/10 : WORKDIR /device-modbus-go 05:14:26 ---> Running in ed4ad2db4586 05:14:26 Removing intermediate container ed4ad2db4586 05:14:26 ---> e22e0d74cae7 05:14:26 Step 7/10 : COPY go.mod vendor* ./ 05:14:26 ---> 8dc34ff2d1a1 05:14:26 Step 8/10 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 05:14:26 ---> Running in 8ad68e474747 05:15:34 Removing intermediate container 8ad68e474747 05:15:34 ---> 7d1b2c4443f9 05:15:34 Step 9/10 : COPY . . 05:15:34 ---> fbe117b19ac9 05:15:34 Step 10/10 : RUN ${MAKE} 05:15:34 ---> Running in 4a4fb9e0e628 05:15:34 noop 05:15:34 Removing intermediate container 4a4fb9e0e628 05:15:34 ---> acaa890067ac 05:15:34 Successfully built acaa890067ac 05:15:34 Successfully tagged ci-base-image-x86_64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:15:34 + docker inspect -f . ci-base-image-x86_64 05:15:34 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 05:15:34 prd-ubuntu20.04-docker-8c-8g-6668 does not seem to be running inside a container 05:15:34 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/xfoundry_device-modbus-go_PR-502 -v /w/workspace/xfoundry_device-modbus-go_PR-502:/w/workspace/xfoundry_device-modbus-go_PR-502:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-502@tmp:/w/workspace/xfoundry_device-modbus-go_PR-502@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 05:15:35 $ docker top 55402e8d0287fb281729b323b37d335effcd59e34f4e08e818a60ac1d1029fdc -eo pid,comm [Pipeline] { [Pipeline] sh 05:15:35 + go version 05:15:35 go version go1.21.0 linux/amd64 [Pipeline] } 05:15:35 $ docker stop --time=1 55402e8d0287fb281729b323b37d335effcd59e34f4e08e818a60ac1d1029fdc 05:15:36 $ docker rm -f --volumes 55402e8d0287fb281729b323b37d335effcd59e34f4e08e818a60ac1d1029fdc [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:15:37 + docker inspect -f . ci-base-image-x86_64 05:15:37 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 05:15:37 prd-ubuntu20.04-docker-8c-8g-6668 does not seem to be running inside a container 05:15: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-502 -v /w/workspace/xfoundry_device-modbus-go_PR-502:/w/workspace/xfoundry_device-modbus-go_PR-502:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-502@tmp:/w/workspace/xfoundry_device-modbus-go_PR-502@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 05:15:38 $ docker top 608acbb260a3e4063bcd74942a36f279b939521f85f126cdc0b7c592309cb994 -eo pid,comm [Pipeline] { [Pipeline] sh 05:15:38 + git config --global --add safe.directory /w/workspace/xfoundry_device-modbus-go_PR-502 [Pipeline] fileExists [Pipeline] sh 05:15:39 + make test 05:15:39 go test ./... -coverprofile=coverage.out 05:15:40 ? github.com/edgexfoundry/device-modbus-go [no test files] 05:15:50 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 05:15:50 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.015s coverage: 47.9% of statements 05:15:52 Running on prd-ubuntu20.04-docker-arm64-4c-16g-6670 in /w/workspace/xfoundry_device-modbus-go_PR-502 [Pipeline] { [Pipeline] ws 05:15:52 Running in /w/workspace/device-modbus-go/1 [Pipeline] { [Pipeline] checkout 05:15:52 Selected Git installation does not exist. Using Default 05:15:52 The recommended git tool is: NONE 05:15:57 using credential edgex-jenkins-ssh 05:15:57 Cloning the remote Git repository 05:15:57 Cloning repository git@github.com:edgexfoundry/device-modbus-go.git 05:15:57 > git init /w/workspace/device-modbus-go/1 # timeout=10 05:15:57 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 05:15:57 > git --version # timeout=10 05:15:57 > git --version # 'git version 2.25.1' 05:15:57 using GIT_SSH to set credentials SSH Credentials for GitHub 05:15:57 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 05:15:58 go vet ./... 05:15:58 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 05:15:58 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 05:15:59 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 05:15:59 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 05:15:59 using GIT_SSH to set credentials SSH Credentials for GitHub 05:15:59 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/pull/502/head:refs/remotes/origin/PR-502 +refs/heads/main:refs/remotes/origin/main # timeout=10 05:16:00 Merging remotes/origin/main commit 51bdb209bfe3268f564ccfe93ba09768b0d9e930 into PR head commit e7d4f928b35e767f084d3bb0adede9b769adbb2f 05:16:00 Merge succeeded, producing e7d4f928b35e767f084d3bb0adede9b769adbb2f 05:16:00 Checking out Revision e7d4f928b35e767f084d3bb0adede9b769adbb2f (PR-502) 05:16:00 Commit message: "build(deps): Bump github.com/edgexfoundry/device-sdk-go/v3" 05:16:00 > git --version # timeout=10 05:16:00 > git --version # 'git version 2.25.1' 05:16:00 fatal: bad object e143027787c0ac28563f7e92b6cefc600d3b7107 05:16:00 > git config core.sparsecheckout # timeout=10 05:16:00 > git checkout -f e7d4f928b35e767f084d3bb0adede9b769adbb2f # timeout=10 05:16:00 > git remote # timeout=10 05:16:00 > git config --get remote.origin.url # timeout=10 05:16:00 using GIT_SSH to set credentials SSH Credentials for GitHub 05:16:00 > git merge 51bdb209bfe3268f564ccfe93ba09768b0d9e930 # timeout=10 05:16:00 > git rev-parse HEAD^{commit} # timeout=10 05:16:00 > git config core.sparsecheckout # timeout=10 05:16:00 > git checkout -f e7d4f928b35e767f084d3bb0adede9b769adbb2f # timeout=10 [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 05:16:02 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 05:16:02 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 05:16:02 ./bin/test-attribution-txt.sh [Pipeline] echo 05:16:02 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 05:16:02 $ docker stop --time=1 608acbb260a3e4063bcd74942a36f279b939521f85f126cdc0b7c592309cb994 05:16:02 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 05:16:02 % Total % Received % Xferd Average Speed Time Time Time Current 05:16:02 Dload Upload Total Spent Left Speed 05:16:02 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 12751 100 12751 0 0 98k 0 --:--:-- --:--:-- --:--:-- 98k 05:16:05 $ docker rm -f --volumes 608acbb260a3e4063bcd74942a36f279b939521f85f126cdc0b7c592309cb994 [Pipeline] // withDockerContainer [Pipeline] sh [Pipeline] sh 05:16:05 + sudo chown -R jenkins:jenkins . [Pipeline] stash 05:16:05 Stashed 1 file(s) 05:16:05 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] sh [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) 05:16:06 + sudo tee /etc/docker/daemon.new 05:16:06 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json [Pipeline] sh 05:16:06 + sudo chown -R jenkins:jenkins . [Pipeline] sh 05:16:07 + ls -al . 05:16:07 total 192 05:16:07 drwxrwxr-x 10 jenkins jenkins 4096 Sep 20 05:15 . 05:16:07 drwxrwxr-x 4 jenkins jenkins 4096 Sep 20 05:13 .. 05:16:07 -rw-rw-r-- 1 jenkins jenkins 140 Sep 20 05:13 .dockerignore 05:16:07 drwxrwxr-x 8 jenkins jenkins 4096 Sep 20 05:15 .git 05:16:07 drwxrwxr-x 3 jenkins jenkins 4096 Sep 20 05:13 .github 05:16:07 -rw-rw-r-- 1 jenkins jenkins 331 Sep 20 05:13 .gitignore 05:16:07 -rw-rw-r-- 1 jenkins jenkins 41 Sep 20 05:13 .golangci.yml 05:16:07 drwxr-xr-x 3 jenkins jenkins 4096 Sep 20 05:14 .semver 05:16:07 -rw-rw-r-- 1 jenkins jenkins 11101 Sep 20 05:13 Attribution.txt 05:16:07 -rw-rw-r-- 1 jenkins jenkins 14764 Sep 20 05:13 CHANGELOG.md 05:16:07 -rw-rw-r-- 1 jenkins jenkins 1365 Sep 20 05:13 Dockerfile 05:16:07 -rw-rw-r-- 1 jenkins jenkins 677 Sep 20 05:13 GOVERNANCE.md 05:16:07 -rw-rw-r-- 1 jenkins jenkins 680 Sep 20 05:13 Jenkinsfile 05:16:07 -rw-rw-r-- 1 jenkins jenkins 11340 Sep 20 05:13 LICENSE 05:16:07 -rw-rw-r-- 1 jenkins jenkins 1936 Sep 20 05:13 Makefile 05:16:07 -rw-rw-r-- 1 jenkins jenkins 622 Sep 20 05:13 OWNERS.md 05:16:07 -rw-rw-r-- 1 jenkins jenkins 4578 Sep 20 05:13 README.md 05:16:07 -rw-rw-r-- 1 jenkins jenkins 5 Sep 20 05:14 VERSION 05:16:07 drwxrwxr-x 2 jenkins jenkins 4096 Sep 20 05:13 bin 05:16:07 drwxrwxr-x 3 jenkins jenkins 4096 Sep 20 05:13 cmd 05:16:07 -rw-r--r-- 1 jenkins jenkins 24334 Sep 20 05:15 coverage.out 05:16:07 -rw-rw-r-- 1 jenkins jenkins 3941 Sep 20 05:13 go.mod 05:16:07 -rw-rw-r-- 1 jenkins jenkins 35965 Sep 20 05:13 go.sum 05:16:07 drwxrwxr-x 3 jenkins jenkins 4096 Sep 20 05:13 internal 05:16:07 drwxrwxr-x 2 jenkins jenkins 4096 Sep 20 05:13 simulator 05:16:07 drwxrwxr-x 4 jenkins jenkins 4096 Sep 20 05:13 snap 05:16:07 -rw-rw-r-- 1 jenkins jenkins 229 Sep 20 05:13 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:16:07 { 05:16:07 "registry-mirrors": [ 05:16:07 "https://nexus3.edgexfoundry.org:10001" 05:16:07 ], 05:16:07 "bip": "10.250.0.254/24", 05:16:07 "hosts": [ 05:16:07 "tcp://0.0.0.0:5555", 05:16:07 "unix:///var/run/docker.sock" 05:16:07 ], 05:16:07 "mtu": 1458, 05:16:07 "selinux-enabled": true, 05:16:07 "seccomp-profile": "/etc/docker/seccomp.json" 05:16:07 } 05:16: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=e7d4f928b35e767f084d3bb0adede9b769adbb2f --label arch=amd64 --label version=0.0.0 . 05:16:07 Sending build context to Docker daemon 6.497MB 05:16:07 Step 1/22 : ARG BASE=golang:1.21-alpine3.18 05:16:07 Step 2/22 : FROM ${BASE} AS builder 05:16:07 ---> acaa890067ac 05:16:07 Step 3/22 : ARG ADD_BUILD_TAGS="" 05:16:07 ---> Running in 9de8854e7b28 [Pipeline] sh 05:16:07 Removing intermediate container 9de8854e7b28 05:16:07 ---> 4e3f00fafd5f 05:16:07 Step 4/22 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 05:16:07 ---> Running in 1f7604ac8bcf 05:16:07 Removing intermediate container 1f7604ac8bcf 05:16:07 ---> cc3c8e879263 05:16:07 Step 5/22 : RUN apk add --update --no-cache make git openssh 05:16:07 ---> Running in 24b4ba1ea035 05:16:07 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 05:16:08 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/APKINDEX.tar.gz 05:16:08 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/x86_64/APKINDEX.tar.gz 05:16:08 + sudo service docker restart 05:16:08 OK: 271 MiB in 64 packages 05:16:08 Removing intermediate container 24b4ba1ea035 05:16:08 ---> 24b618ea552e 05:16:08 Step 6/22 : WORKDIR /device-modbus-go 05:16:08 ---> Running in b889f653f103 05:16:08 Removing intermediate container b889f653f103 05:16:08 ---> 2e4b49652d11 05:16:08 Step 7/22 : COPY go.mod vendor* ./ 05:16:08 ---> bbcfb8c62e50 05:16:08 Step 8/22 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 05:16:08 ---> Running in 89b7c572662e 05:16:09 Removing intermediate container 89b7c572662e 05:16:09 ---> f44ca1f3ceed 05:16:09 Step 9/22 : COPY . . 05:16:10 ---> e90814454480 05:16:10 Step 10/22 : RUN ${MAKE} 05:16:10 ---> Running in 239696e245e4 05:16: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.27" -trimpath -mod=readonly -o cmd/device-modbus ./cmd [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 05:16:26 provisioning config files... 05:16:26 copy managed file [device-modbus-go-settings] to file:/w/workspace/device-modbus-go/1@tmp/config18291054569997187326tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 05:16:27 ---> docker-login.sh 05:16:27 nexus3.edgexfoundry.org:10001 05:16:27 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:16:27 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:16:27 Configure a credential helper to remove this warning. See 05:16:27 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:16:27 05:16:27 Login Succeeded 05:16:27 nexus3.edgexfoundry.org:10002 05:16:27 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:16:27 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:16:27 Configure a credential helper to remove this warning. See 05:16:27 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:16:27 05:16:27 Login Succeeded 05:16:28 nexus3.edgexfoundry.org:10003 05:16:28 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:16:28 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:16:28 Configure a credential helper to remove this warning. See 05:16:28 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:16:28 05:16:28 Login Succeeded 05:16:28 nexus3.edgexfoundry.org:10004 05:16:28 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:16:28 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:16:28 Configure a credential helper to remove this warning. See 05:16:28 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:16:28 05:16:28 Login Succeeded 05:16:28 docker.io 05:16:28 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:16:29 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:16:29 Configure a credential helper to remove this warning. See 05:16:29 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:16:29 05:16:29 Login Succeeded 05:16:29 ---> docker-login.sh ends [Pipeline] } 05:16:29 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 05:16:29 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 05:16:29 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 05:16:29 ========================================================= 05:16:29 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.21-alpine] 05:16:29 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:16:30 + docker build -t ci-base-image-arm64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.21-alpine --build-arg MAKE=echo noop --target=builder . 05:16:30 Sending build context to Docker daemon 3.359MB 05:16:30 Step 1/10 : ARG BASE=golang:1.21-alpine3.18 05:16:30 Step 2/10 : FROM ${BASE} AS builder 05:16:30 1.21-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 05:16:30 9fda8d8052c6: Pulling fs layer 05:16:30 5d54e960e981: Pulling fs layer 05:16:30 c4a7e357bf2a: Pulling fs layer 05:16:30 f0e02332f6b5: Pulling fs layer 05:16:30 66412af1f25a: Pulling fs layer 05:16:30 1baf3a5c0e64: Pulling fs layer 05:16:30 9a37bb91b891: Pulling fs layer 05:16:30 a29adfc67d43: Pulling fs layer 05:16:30 d5de9f91c1a4: Pulling fs layer 05:16:30 f0e02332f6b5: Waiting 05:16:30 66412af1f25a: Waiting 05:16:30 1baf3a5c0e64: Waiting 05:16:30 9a37bb91b891: Waiting 05:16:30 a29adfc67d43: Waiting 05:16:30 d5de9f91c1a4: Waiting 05:16:30 5d54e960e981: Verifying Checksum 05:16:30 5d54e960e981: Download complete 05:16:30 f0e02332f6b5: Verifying Checksum 05:16:30 f0e02332f6b5: Download complete 05:16:30 66412af1f25a: Verifying Checksum 05:16:30 66412af1f25a: Download complete 05:16:30 9fda8d8052c6: Verifying Checksum 05:16:30 9fda8d8052c6: Download complete 05:16:30 9a37bb91b891: Verifying Checksum 05:16:30 9a37bb91b891: Download complete 05:16:31 a29adfc67d43: Download complete 05:16:32 d5de9f91c1a4: Verifying Checksum 05:16:32 d5de9f91c1a4: Download complete 05:16:32 c4a7e357bf2a: Verifying Checksum 05:16:32 c4a7e357bf2a: Download complete 05:16:32 Removing intermediate container 239696e245e4 05:16:32 ---> a14c5baad41f 05:16:32 Step 11/22 : FROM alpine:3.18 05:16:32 3.18: Pulling from library/alpine 05:16:32 7264a8db6415: Already exists 05:16:32 Digest: sha256:7144f7bab3d4c2648d7e59409f15ec52a18006a128c733fcff20d3a4a54ba44a 05:16:32 Status: Downloaded newer image for alpine:3.18 05:16:32 ---> 7e01a0d0a1dc 05:16:32 Step 12/22 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IoTech Ltd' 05:16:32 ---> Running in 78c688d5a50b 05:16:32 Removing intermediate container 78c688d5a50b 05:16:32 ---> 0229ebcab4c3 05:16:32 Step 13/22 : RUN apk add --update --no-cache dumb-init 05:16:32 ---> Running in dd848112f514 05:16:32 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/APKINDEX.tar.gz 05:16:32 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/x86_64/APKINDEX.tar.gz 05:16:32 (1/1) Installing dumb-init (1.2.5-r2) 05:16:32 Executing busybox-1.36.1-r2.trigger 05:16:32 OK: 7 MiB in 16 packages 05:16:32 Removing intermediate container dd848112f514 05:16:32 ---> 892e85b451f5 05:16:32 Step 14/22 : COPY --from=builder /device-modbus-go/cmd / 05:16:32 ---> 24b5939da5fc 05:16:32 Step 15/22 : COPY --from=builder /device-modbus-go/LICENSE / 05:16:32 ---> afc477225df3 05:16:32 Step 16/22 : COPY --from=builder /device-modbus-go/Attribution.txt / 05:16:32 ---> 6b1ab16eb255 05:16:32 Step 17/22 : EXPOSE 59901 05:16:32 ---> Running in 2d56e8fa5d9c 05:16:32 Removing intermediate container 2d56e8fa5d9c 05:16:32 ---> 18c2d3233209 05:16:32 Step 18/22 : ENTRYPOINT ["/device-modbus"] 05:16:32 ---> Running in 6cc05b8dc8ba 05:16:32 Removing intermediate container 6cc05b8dc8ba 05:16:32 ---> a6ed8b735f4c 05:16:32 Step 19/22 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 05:16:32 ---> Running in b9562b5f1407 05:16:32 Removing intermediate container b9562b5f1407 05:16:32 ---> a3edd9c78240 05:16:32 Step 20/22 : LABEL arch=amd64 05:16:32 ---> Running in f2b42420af3c 05:16:32 Removing intermediate container f2b42420af3c 05:16:32 ---> ce8d1adf585e 05:16:32 Step 21/22 : LABEL git_sha=e7d4f928b35e767f084d3bb0adede9b769adbb2f 05:16:32 ---> Running in e082db3a48be 05:16:32 Removing intermediate container e082db3a48be 05:16:32 ---> aec3d0c2f268 05:16:32 Step 22/22 : LABEL version=0.0.0 05:16:32 ---> Running in 253707510f27 05:16:32 Removing intermediate container 253707510f27 05:16:32 ---> 3a7e98c13b3c 05:16:32 [Warning] One or more build-args [ARCH] were not consumed 05:16:32 Successfully built 3a7e98c13b3c 05:16:32 Successfully tagged device-modbus:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Docker Push) Stage "Docker Push" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Snap) Stage "Snap" skipped due to when conditional [Pipeline] } [Pipeline] // stage Post stage [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:16:33 1baf3a5c0e64: Verifying Checksum 05:16:33 1baf3a5c0e64: Download complete 05:16:33 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 05:16:33 05:16:33 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:16:33 9fda8d8052c6: Pull complete 05:16:33 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 05:16:33 latest: Pulling from edgex-lftools-log-publisher 05:16:33 5eb5b503b376: Pulling fs layer 05:16:33 5c69ac0246d0: Pulling fs layer 05:16:33 ec43610c2a17: Pulling fs layer 05:16:33 3a2ae6a8a46f: Pulling fs layer 05:16:33 33b1e0a273af: Pulling fs layer 05:16:33 5d3b04190fa2: Pulling fs layer 05:16:33 2f39f015ded8: Pulling fs layer 05:16:33 33b1e0a273af: Waiting 05:16:33 5d3b04190fa2: Waiting 05:16:33 3a2ae6a8a46f: Waiting 05:16:33 2f39f015ded8: Waiting 05:16:33 5c69ac0246d0: Download complete 05:16:33 3a2ae6a8a46f: Download complete 05:16:33 33b1e0a273af: Verifying Checksum 05:16:33 33b1e0a273af: Download complete 05:16:33 5d3b04190fa2: Verifying Checksum 05:16:33 5d3b04190fa2: Download complete 05:16:33 ec43610c2a17: Verifying Checksum 05:16:33 ec43610c2a17: Download complete 05:16:33 5eb5b503b376: Verifying Checksum 05:16:33 5eb5b503b376: Download complete 05:16:34 5d54e960e981: Pull complete 05:16:34 2f39f015ded8: Download complete 05:16:35 5eb5b503b376: Pull complete 05:16:35 5c69ac0246d0: Pull complete 05:16:35 ec43610c2a17: Pull complete 05:16:35 3a2ae6a8a46f: Pull complete 05:16:35 33b1e0a273af: Pull complete 05:16:36 5d3b04190fa2: Pull complete 05:16:40 2f39f015ded8: Pull complete 05:16:40 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 05:16:40 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 05:16:40 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 05:16:40 prd-ubuntu20.04-docker-8c-8g-6668 does not seem to be running inside a container 05:16:40 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/xfoundry_device-modbus-go_PR-502 -v /w/workspace/xfoundry_device-modbus-go_PR-502:/w/workspace/xfoundry_device-modbus-go_PR-502:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-502@tmp:/w/workspace/xfoundry_device-modbus-go_PR-502@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 05:16:43 $ docker top f4f1f49cf8db498683cd2d15daeb3e4fd298cee8e4a0b969d516c1c5c11f2d1e -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 05:16:44 ---> job-cost.sh 05:16:44 lf-activate-venv: SKIPPING 05:16:44 INFO: No Stack... 05:16:44 INFO: Retrieving Pricing Info for: v3-standard-8 05:16:44 INFO: Archiving Costs [Pipeline] sh 05:16:45 + cat /w/workspace/xfoundry_device-modbus-go_PR-502/archives/cost.csv 05:16:45 + cut -d, -f6 [Pipeline] lock 05:16:45 Trying to acquire lock on [jenkins-edgexfoundry-device-modbus-go-PR-502-1-stack-cost] 05:16:45 Resource [jenkins-edgexfoundry-device-modbus-go-PR-502-1-stack-cost] did not exist. Created. 05:16:45 Lock acquired on [jenkins-edgexfoundry-device-modbus-go-PR-502-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 05:16:45 + echo total: 0.2199999988079071 [Pipeline] stash 05:16:45 Stashed 1 file(s) [Pipeline] } 05:16:45 Lock released on resource [jenkins-edgexfoundry-device-modbus-go-PR-502-1-stack-cost] [Pipeline] // lock [Pipeline] } 05:16:45 $ docker stop --time=1 f4f1f49cf8db498683cd2d15daeb3e4fd298cee8e4a0b969d516c1c5c11f2d1e 05:16:46 $ docker rm -f --volumes f4f1f49cf8db498683cd2d15daeb3e4fd298cee8e4a0b969d516c1c5c11f2d1e [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 05:16:49 c4a7e357bf2a: Pull complete 05:16:49 f0e02332f6b5: Pull complete 05:16:49 66412af1f25a: Pull complete 05:16:54 1baf3a5c0e64: Pull complete 05:16:55 9a37bb91b891: Pull complete 05:16:57 a29adfc67d43: Pull complete 05:16:58 d5de9f91c1a4: Pull complete 05:16:58 Digest: sha256:1924af6f0b663904b942a9ee07fc1d4556a77458ebf1950facbcfc555602d6a5 05:16:58 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.21-alpine 05:16:58 ---> 746ca1b523b5 05:16:58 Step 3/10 : ARG ADD_BUILD_TAGS="" 05:17:00 ---> Running in 9649b7458a40 05:17:00 Removing intermediate container 9649b7458a40 05:17:00 ---> 8b2f3fc8a4b8 05:17:00 Step 4/10 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 05:17:00 ---> Running in 798525b14cba 05:17:00 Removing intermediate container 798525b14cba 05:17:00 ---> 1b92d781e4c9 05:17:00 Step 5/10 : RUN apk add --update --no-cache make git openssh 05:17:01 ---> Running in 2bcd92c752f7 05:17:02 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/aarch64/APKINDEX.tar.gz 05:17:02 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/aarch64/APKINDEX.tar.gz 05:17:03 (1/8) Installing openssh-keygen (9.3_p2-r0) 05:17:03 (2/8) Installing libedit (20221030.3.1-r1) 05:17:03 (3/8) Installing openssh-client-common (9.3_p2-r0) 05:17:03 (4/8) Installing openssh-client-default (9.3_p2-r0) 05:17:03 (5/8) Installing openssh-sftp-server (9.3_p2-r0) 05:17:03 (6/8) Installing openssh-server-common (9.3_p2-r0) 05:17:03 (7/8) Installing openssh-server (9.3_p2-r0) 05:17:03 (8/8) Installing openssh (9.3_p2-r0) 05:17:03 Executing busybox-1.36.1-r2.trigger 05:17:03 OK: 274 MiB in 64 packages 05:17:04 Removing intermediate container 2bcd92c752f7 05:17:04 ---> 06d25d3d5c2a 05:17:04 Step 6/10 : WORKDIR /device-modbus-go 05:17:04 ---> Running in 90aa2162ad90 05:17:05 Removing intermediate container 90aa2162ad90 05:17:05 ---> 2cb9bb5e268e 05:17:05 Step 7/10 : COPY go.mod vendor* ./ 05:17:05 ---> d573fb5e12e8 05:17:05 Step 8/10 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 05:17:05 ---> Running in 0c933cc7a944 05:18:13 Removing intermediate container 0c933cc7a944 05:18:13 ---> 12f6c6e89f6b 05:18:13 Step 9/10 : COPY . . 05:18:13 ---> ca9c5d70781b 05:18:13 Step 10/10 : RUN ${MAKE} 05:18:13 ---> Running in 33a9985737b6 05:18:13 noop 05:18:13 Removing intermediate container 33a9985737b6 05:18:13 ---> 229558781a3d 05:18:13 Successfully built 229558781a3d 05:18:13 Successfully tagged ci-base-image-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:18:14 + docker inspect -f . ci-base-image-arm64 05:18:14 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 05:18:14 prd-ubuntu20.04-docker-arm64-4c-16g-6670 does not seem to be running inside a container 05:18:14 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-modbus-go/1 -v /w/workspace/device-modbus-go/1:/w/workspace/device-modbus-go/1:rw,z -v /w/workspace/device-modbus-go/1@tmp:/w/workspace/device-modbus-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 05:18:15 $ docker top c280014f4c86e631cab08c7d40a0a4b2b5b9b867fc61d1b69e6ce969a7a97dc7 -eo pid,comm [Pipeline] { [Pipeline] sh 05:18:16 + go version 05:18:16 go version go1.21.0 linux/arm64 [Pipeline] } 05:18:16 $ docker stop --time=1 c280014f4c86e631cab08c7d40a0a4b2b5b9b867fc61d1b69e6ce969a7a97dc7 05:18:17 $ docker rm -f --volumes c280014f4c86e631cab08c7d40a0a4b2b5b9b867fc61d1b69e6ce969a7a97dc7 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:18:18 + docker inspect -f . ci-base-image-arm64 05:18:18 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 05:18:19 prd-ubuntu20.04-docker-arm64-4c-16g-6670 does not seem to be running inside a container 05:18:19 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged -v /var/run/docker.sock:/var/run/docker.sock -w /w/workspace/device-modbus-go/1 -v /w/workspace/device-modbus-go/1:/w/workspace/device-modbus-go/1:rw,z -v /w/workspace/device-modbus-go/1@tmp:/w/workspace/device-modbus-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 05:18:21 $ docker top 128fac51420ce83d39f79ab6709a84a3a22dd8ee334af10f8832b421e4ef4c33 -eo pid,comm [Pipeline] { [Pipeline] sh 05:18:22 + git config --global --add safe.directory /w/workspace/device-modbus-go/1 [Pipeline] fileExists [Pipeline] sh 05:18:22 + make test 05:18:22 go test ./... -coverprofile=coverage.out 05:18:27 ? github.com/edgexfoundry/device-modbus-go [no test files] 05:20:03 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 05:20:03 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.061s coverage: 47.9% of statements 05:20:03 WARNING: Linting skipped (not on x86_64 or linter not installed) 05:20:03 go vet ./... 05:20:11 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 05:20:11 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 05:20:11 ./bin/test-attribution-txt.sh [Pipeline] echo 05:20:11 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 05:20:11 $ docker stop --time=1 128fac51420ce83d39f79ab6709a84a3a22dd8ee334af10f8832b421e4ef4c33 05:20:13 $ docker rm -f --volumes 128fac51420ce83d39f79ab6709a84a3a22dd8ee334af10f8832b421e4ef4c33 [Pipeline] // withDockerContainer [Pipeline] sh 05:20:15 + sudo chown -R jenkins:jenkins . [Pipeline] stash 05:20:15 Warning: overwriting stash ‘coverage-report’ 05:20:15 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 05:20:16 + sudo chown -R jenkins:jenkins . [Pipeline] sh 05:20:16 + ls -al . 05:20:16 total 188 05:20:16 drwxrwxr-x 9 jenkins jenkins 4096 Sep 20 05:18 . 05:20:16 drwxrwxr-x 4 jenkins jenkins 4096 Sep 20 05:15 .. 05:20:16 -rw-rw-r-- 1 jenkins jenkins 140 Sep 20 05:16 .dockerignore 05:20:16 drwxrwxr-x 8 jenkins jenkins 4096 Sep 20 05:16 .git 05:20:16 drwxrwxr-x 3 jenkins jenkins 4096 Sep 20 05:16 .github 05:20:16 -rw-rw-r-- 1 jenkins jenkins 331 Sep 20 05:16 .gitignore 05:20:16 -rw-rw-r-- 1 jenkins jenkins 41 Sep 20 05:16 .golangci.yml 05:20:16 -rw-rw-r-- 1 jenkins jenkins 11101 Sep 20 05:16 Attribution.txt 05:20:16 -rw-rw-r-- 1 jenkins jenkins 14764 Sep 20 05:16 CHANGELOG.md 05:20:16 -rw-rw-r-- 1 jenkins jenkins 1365 Sep 20 05:16 Dockerfile 05:20:16 -rw-rw-r-- 1 jenkins jenkins 677 Sep 20 05:16 GOVERNANCE.md 05:20:16 -rw-rw-r-- 1 jenkins jenkins 680 Sep 20 05:16 Jenkinsfile 05:20:16 -rw-rw-r-- 1 jenkins jenkins 11340 Sep 20 05:16 LICENSE 05:20:16 -rw-rw-r-- 1 jenkins jenkins 1936 Sep 20 05:16 Makefile 05:20:16 -rw-rw-r-- 1 jenkins jenkins 622 Sep 20 05:16 OWNERS.md 05:20:16 -rw-rw-r-- 1 jenkins jenkins 4578 Sep 20 05:16 README.md 05:20:16 -rw-rw-r-- 1 jenkins jenkins 5 Sep 20 05:14 VERSION 05:20:16 drwxrwxr-x 2 jenkins jenkins 4096 Sep 20 05:16 bin 05:20:16 drwxrwxr-x 3 jenkins jenkins 4096 Sep 20 05:16 cmd 05:20:16 -rw-r--r-- 1 jenkins jenkins 24334 Sep 20 05:19 coverage.out 05:20:16 -rw-rw-r-- 1 jenkins jenkins 3941 Sep 20 05:16 go.mod 05:20:16 -rw-rw-r-- 1 jenkins jenkins 35965 Sep 20 05:16 go.sum 05:20:16 drwxrwxr-x 3 jenkins jenkins 4096 Sep 20 05:16 internal 05:20:16 drwxrwxr-x 2 jenkins jenkins 4096 Sep 20 05:16 simulator 05:20:16 drwxrwxr-x 4 jenkins jenkins 4096 Sep 20 05:16 snap 05:20:16 -rw-rw-r-- 1 jenkins jenkins 229 Sep 20 05:16 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:20:16 + 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=e7d4f928b35e767f084d3bb0adede9b769adbb2f --label arch=arm64 --label version=0.0.0 . 05:20:18 Sending build context to Docker daemon 3.384MB 05:20:18 Step 1/22 : ARG BASE=golang:1.21-alpine3.18 05:20:18 Step 2/22 : FROM ${BASE} AS builder 05:20:18 ---> 229558781a3d 05:20:18 Step 3/22 : ARG ADD_BUILD_TAGS="" 05:20:18 ---> Running in 62e2a03eb307 05:20:18 Removing intermediate container 62e2a03eb307 05:20:18 ---> 7d30d9712871 05:20:18 Step 4/22 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 05:20:18 ---> Running in e2614e42fa80 05:20:19 Removing intermediate container e2614e42fa80 05:20:19 ---> da69c76e8d83 05:20:19 Step 5/22 : RUN apk add --update --no-cache make git openssh 05:20:19 ---> Running in 9539f963be56 05:20:20 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/aarch64/APKINDEX.tar.gz 05:20:20 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/aarch64/APKINDEX.tar.gz 05:20:22 OK: 274 MiB in 64 packages 05:20:24 Removing intermediate container 9539f963be56 05:20:24 ---> 4afd4e3bf5a9 05:20:24 Step 6/22 : WORKDIR /device-modbus-go 05:20:24 ---> Running in 875180ade12a 05:20:24 Removing intermediate container 875180ade12a 05:20:24 ---> c1f522916384 05:20:24 Step 7/22 : COPY go.mod vendor* ./ 05:20:25 ---> 9ff7067632ea 05:20:25 Step 8/22 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 05:20:25 ---> Running in b98e3b2aab90 05:20:28 Removing intermediate container b98e3b2aab90 05:20:28 ---> 69238cd6328f 05:20:28 Step 9/22 : COPY . . 05:20:29 ---> 68ed9250a101 05:20:29 Step 10/22 : RUN ${MAKE} 05:20:29 ---> Running in f912ea9ac653 05:20:30 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.27" -trimpath -mod=readonly -o cmd/device-modbus ./cmd 05:22:37 Removing intermediate container f912ea9ac653 05:22:37 ---> 5082b3705fb8 05:22:37 Step 11/22 : FROM alpine:3.18 05:22:37 3.18: Pulling from library/alpine 05:22:37 9fda8d8052c6: Already exists 05:22:37 Digest: sha256:7144f7bab3d4c2648d7e59409f15ec52a18006a128c733fcff20d3a4a54ba44a 05:22:37 Status: Downloaded newer image for alpine:3.18 05:22:37 ---> f6648c04cd6c 05:22:37 Step 12/22 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IoTech Ltd' 05:22:37 ---> Running in 1d0c73fd7dcb 05:22:37 Removing intermediate container 1d0c73fd7dcb 05:22:37 ---> 7e23ecff7f7b 05:22:37 Step 13/22 : RUN apk add --update --no-cache dumb-init 05:22:37 ---> Running in edad55aacb15 05:22:37 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/aarch64/APKINDEX.tar.gz 05:22:37 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/aarch64/APKINDEX.tar.gz 05:22:37 (1/1) Installing dumb-init (1.2.5-r2) 05:22:37 Executing busybox-1.36.1-r2.trigger 05:22:37 OK: 8 MiB in 16 packages 05:22:37 Removing intermediate container edad55aacb15 05:22:37 ---> fd3a5f8156ff 05:22:37 Step 14/22 : COPY --from=builder /device-modbus-go/cmd / 05:22:37 ---> a0c782f13c00 05:22:37 Step 15/22 : COPY --from=builder /device-modbus-go/LICENSE / 05:22:37 ---> bda9fad5f6fe 05:22:37 Step 16/22 : COPY --from=builder /device-modbus-go/Attribution.txt / 05:22:37 ---> 2de592e16676 05:22:37 Step 17/22 : EXPOSE 59901 05:22:37 ---> Running in de4c0e88b19a 05:22:37 Removing intermediate container de4c0e88b19a 05:22:37 ---> bea0bc0cd645 05:22:37 Step 18/22 : ENTRYPOINT ["/device-modbus"] 05:22:37 ---> Running in 84c98521d475 05:22:37 Removing intermediate container 84c98521d475 05:22:37 ---> b28b3566cad9 05:22:37 Step 19/22 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 05:22:37 ---> Running in 31d11eca9b5c 05:22:37 Removing intermediate container 31d11eca9b5c 05:22:37 ---> 1d9474624744 05:22:37 Step 20/22 : LABEL arch=arm64 05:22:37 ---> Running in 1209e5f28049 05:22:37 Removing intermediate container 1209e5f28049 05:22:37 ---> 3faf316ac836 05:22:37 Step 21/22 : LABEL git_sha=e7d4f928b35e767f084d3bb0adede9b769adbb2f 05:22:37 ---> Running in 69b322eb5f29 05:22:37 Removing intermediate container 69b322eb5f29 05:22:37 ---> bf53e70fa466 05:22:37 Step 22/22 : LABEL version=0.0.0 05:22:37 ---> Running in 6e0ac03b8e30 05:22:37 Removing intermediate container 6e0ac03b8e30 05:22:37 ---> 672591183ac7 05:22:37 [Warning] One or more build-args [ARCH] were not consumed 05:22:37 Successfully built 672591183ac7 05:22:37 Successfully tagged device-modbus-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Docker Push) Stage "Docker Push" skipped due to when conditional [Pipeline] } [Pipeline] // stage Post stage [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:22:38 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 05:22:38 05:22:38 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:22:38 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 05:22:38 arm64: Pulling from edgex-lftools-log-publisher 05:22:38 8998bd30e6a1: Pulling fs layer 05:22:38 04944245beec: Pulling fs layer 05:22:38 699f458cf7ca: Pulling fs layer 05:22:38 765212b225bb: Pulling fs layer 05:22:38 f23df028b6ca: Pulling fs layer 05:22:38 d65c8cfc05b1: Pulling fs layer 05:22:38 2437ff75d9bd: Pulling fs layer 05:22:38 765212b225bb: Waiting 05:22:38 f23df028b6ca: Waiting 05:22:38 d65c8cfc05b1: Waiting 05:22:38 2437ff75d9bd: Waiting 05:22:38 04944245beec: Verifying Checksum 05:22:38 04944245beec: Download complete 05:22:38 765212b225bb: Download complete 05:22:38 f23df028b6ca: Verifying Checksum 05:22:38 f23df028b6ca: Download complete 05:22:38 d65c8cfc05b1: Verifying Checksum 05:22:38 d65c8cfc05b1: Download complete 05:22:38 699f458cf7ca: Verifying Checksum 05:22:38 699f458cf7ca: Download complete 05:22:39 8998bd30e6a1: Verifying Checksum 05:22:39 8998bd30e6a1: Download complete 05:22:41 2437ff75d9bd: Verifying Checksum 05:22:41 2437ff75d9bd: Download complete 05:22:43 8998bd30e6a1: Pull complete 05:22:43 04944245beec: Pull complete 05:22:44 699f458cf7ca: Pull complete 05:22:44 765212b225bb: Pull complete 05:22:45 f23df028b6ca: Pull complete 05:22:45 d65c8cfc05b1: Pull complete 05:23:00 2437ff75d9bd: Pull complete 05:23:00 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 05:23:00 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 05:23:00 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 05:23:01 prd-ubuntu20.04-docker-arm64-4c-16g-6670 does not seem to be running inside a container 05:23:01 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/device-modbus-go/1 -v /w/workspace/device-modbus-go/1:/w/workspace/device-modbus-go/1:rw,z -v /w/workspace/device-modbus-go/1@tmp:/w/workspace/device-modbus-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 05:23:03 $ docker top e83b833188fbc2ef685e0c49f7ce0e0f1cd7b97ffd22c636f43ed59c54964e7e -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 05:23:04 ---> job-cost.sh 05:23:04 lf-activate-venv: SKIPPING 05:23:04 INFO: No Stack... 05:23:04 INFO: Retrieving Pricing Info for: v3-standard-4 05:23:05 INFO: Archiving Costs [Pipeline] sh 05:23:06 + cat /w/workspace/device-modbus-go/1/archives/cost.csv 05:23:06 + cut -d, -f6 [Pipeline] lock 05:23:06 Trying to acquire lock on [jenkins-edgexfoundry-device-modbus-go-PR-502-1-stack-cost] 05:23:06 Resource [jenkins-edgexfoundry-device-modbus-go-PR-502-1-stack-cost] did not exist. Created. 05:23:06 Lock acquired on [jenkins-edgexfoundry-device-modbus-go-PR-502-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 05:23:06 /w/workspace/device-modbus-go/1@tmp/durable-c1b44986/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 05:23:07 + echo total: 0.10999999940395355 [Pipeline] stash 05:23:07 Warning: overwriting stash ‘stack-cost’ 05:23:07 Stashed 1 file(s) [Pipeline] } 05:23:07 Lock released on resource [jenkins-edgexfoundry-device-modbus-go-PR-502-1-stack-cost] [Pipeline] // lock [Pipeline] } 05:23:07 $ docker stop --time=1 e83b833188fbc2ef685e0c49f7ce0e0f1cd7b97ffd22c636f43ed59c54964e7e 05:23:08 $ docker rm -f --volumes e83b833188fbc2ef685e0c49f7ce0e0f1cd7b97ffd22c636f43ed59c54964e7e [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // ws [Pipeline] } [Pipeline] // node [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // parallel [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (CodeCov) [Pipeline] unstash [Pipeline] configFileProvider 05:23:09 provisioning config files... 05:23:09 copy managed file [device-modbus-go-codecov-token] to file:/w/workspace/xfoundry_device-modbus-go_PR-502@tmp/config6995157289544462211tmp [Pipeline] { [Pipeline] sh 05:23:10 + set +x 05:23:10 + curl -s https://codecov.io/bash 05:23:10 + bash -s -- 05:23:10 05:23:10 _____ _ 05:23:10 / ____| | | 05:23:10 | | ___ __| | ___ ___ _____ __ 05:23:10 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 05:23:10 | |___| (_) | (_| | __/ (_| (_) \ V / 05:23:10 \_____\___/ \__,_|\___|\___\___/ \_/ 05:23:10 Bash-1.0.6 05:23:10 05:23:10 05:23:10 ==> git version 2.25.1 found 05:23:10 ==> curl 7.68.0 (x86_64-pc-linux-gnu) libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3 05:23:10 Release-Date: 2020-01-08 05:23:10 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 05:23:10 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 05:23:10 ==> Jenkins CI detected. 05:23:10 current dir:  /w/workspace/xfoundry_device-modbus-go_PR-502 05:23:10 project root: . 05:23:10 --> token set from env 05:23:10 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 05:23:10 ==> Running gcov in . (disable via -X gcov) 05:23:10 ==> Python coveragepy not found 05:23:10 ==> Searching for coverage reports in: 05:23:10 + . 05:23:10 -> Found 1 reports 05:23:10 ==> Detecting git/mercurial file structure 05:23:10 ==> Reading reports 05:23:10 + ./coverage.out bytes=24334 05:23:10 ==> Appending adjustments 05:23:10 https://docs.codecov.io/docs/fixing-reports 05:23:10 + Found adjustments 05:23:10 ==> Gzipping contents 05:23:10 4.0K /tmp/codecov.l3OFua.gz 05:23:10 ==> Uploading reports 05:23:10 url: https://codecov.io 05:23:10 query: branch=PR-502&commit=e7d4f928b35e767f084d3bb0adede9b769adbb2f&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-modbus-go%2Fjob%2FPR-502%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-modbus-go&service=jenkins&flags=&pr=502&job=&cmd_args= 05:23:10 -> Pinging Codecov 05:23:10 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=3a8d40b1-de00-4649-bfd4-bdc8ed99ae89&branch=PR-502&commit=e7d4f928b35e767f084d3bb0adede9b769adbb2f&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-modbus-go%2Fjob%2FPR-502%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-modbus-go&service=jenkins&flags=&pr=502&job=&cmd_args= 05:23:10 -> Uploading to 05:23:10 https://storage.googleapis.com/codecov/v4/raw/2023-09-20/55DBCA73C666E3227836607328DD7E49/e7d4f928b35e767f084d3bb0adede9b769adbb2f/c3068c09-df2a-4af1-acfb-18c3a10d3240.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20230920%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20230920T052310Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=1ce5113eb0b676d796c5d7e3720a5c433c5cb4ad8720a91625fb8cd1d3c2cc3a 05:23:10 % Total % Received % Xferd Average Speed Time Time Time Current 05:23:10 Dload Upload Total Spent Left Speed 05:23:10 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 3974 0 0 100 3974 0 20379 --:--:-- --:--:-- --:--:-- 20379 05:23:10 -> Reports have been successfully queued for processing at https://app.codecov.io/github/edgexfoundry/device-modbus-go/commit/e7d4f928b35e767f084d3bb0adede9b769adbb2f [Pipeline] } 05:23:10 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Snyk Dependency Scan) Stage "Snyk Dependency Scan" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Archive Prep) Stage "Archive Prep" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Publish Swagger) Stage "Publish Swagger" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Semver) Stage "Semver" skipped due to when conditional [Pipeline] stage [Pipeline] { (Tag) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Pre-Release Version) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Experimental Tag) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Stable (Named) Tag) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Declarative: Post Actions) [Pipeline] stage [Pipeline] { (LF Post Build Actions) [Pipeline] sh 05:23:12 + [ -d /w/workspace/xfoundry_device-modbus-go_PR-502/archives ] 05:23:12 + ls -al /w/workspace/xfoundry_device-modbus-go_PR-502/archives 05:23:12 total 16 05:23:12 drwxr-xr-x 3 root root 4096 Sep 20 05:16 . 05:23:12 drwxrwxr-x 11 jenkins jenkins 4096 Sep 20 05:16 .. 05:23:12 drwxr-xr-x 2 root root 4096 Sep 20 05:16 cost 05:23:12 -rw-r--r-- 1 root root 88 Sep 20 05:16 cost.csv 05:23:12 + sudo chown -R jenkins:jenkins /w/workspace/xfoundry_device-modbus-go_PR-502/archives 05:23:12 + ls -al /w/workspace/xfoundry_device-modbus-go_PR-502/archives 05:23:12 total 16 05:23:12 drwxr-xr-x 3 jenkins jenkins 4096 Sep 20 05:16 . 05:23:12 drwxrwxr-x 11 jenkins jenkins 4096 Sep 20 05:16 .. 05:23:12 drwxr-xr-x 2 jenkins jenkins 4096 Sep 20 05:16 cost 05:23:12 -rw-r--r-- 1 jenkins jenkins 88 Sep 20 05:16 cost.csv [Pipeline] libraryResource [Pipeline] sh 05:23:13 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 05:23:13 ---> package-listing.sh 05:23:13 ++ facter osfamily 05:23:13 ++ tr '[:upper:]' '[:lower:]' 05:23:14 + OS_FAMILY=debian 05:23:14 + workspace=/w/workspace/xfoundry_device-modbus-go_PR-502 05:23:14 + START_PACKAGES=/tmp/packages_start.txt 05:23:14 + END_PACKAGES=/tmp/packages_end.txt 05:23:14 + DIFF_PACKAGES=/tmp/packages_diff.txt 05:23:14 + PACKAGES=/tmp/packages_start.txt 05:23:14 + '[' /w/workspace/xfoundry_device-modbus-go_PR-502 ']' 05:23:14 + PACKAGES=/tmp/packages_end.txt 05:23:14 + case "${OS_FAMILY}" in 05:23:14 + dpkg -l 05:23:14 + grep '^ii' 05:23:14 + '[' -f /tmp/packages_start.txt ']' 05:23:14 + '[' -f /tmp/packages_end.txt ']' 05:23:14 + diff /tmp/packages_start.txt /tmp/packages_end.txt 05:23:14 + '[' /w/workspace/xfoundry_device-modbus-go_PR-502 ']' 05:23:14 + mkdir -p /w/workspace/xfoundry_device-modbus-go_PR-502/archives/ 05:23:14 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/xfoundry_device-modbus-go_PR-502/archives/ [Pipeline] echo 05:23:14 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-502/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 05:23:14 + facter operatingsystem [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 05:23:15 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 05:23:15 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 05:23:15 prd-ubuntu20.04-docker-8c-8g-6668 does not seem to be running inside a container 05:23:15 $ 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-502/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-502 -v /w/workspace/xfoundry_device-modbus-go_PR-502:/w/workspace/xfoundry_device-modbus-go_PR-502:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-502@tmp:/w/workspace/xfoundry_device-modbus-go_PR-502@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 05:23:15 $ docker top a324a3bbc51b2cc032368d497364f9c9ed98ae3439e36b4116ea7796b707165f -eo pid,comm [Pipeline] { [Pipeline] sh 05:23:15 + touch /tmp/pre-build-complete [Pipeline] sh 05:23:16 + mkdir -p /var/log/sysstat [Pipeline] sh 05:23:16 + ls /var/log/sa-host 05:23:16 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 05:23:16 provisioning config files... 05:23:16 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-502@tmp/config1160412930454852382tmp [Pipeline] { [Pipeline] echo 05:23:16 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 05:23:17 ---> create-netrc.sh [Pipeline] } 05:23:17 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 05:23:17 ---> python-tools-install.sh [Pipeline] echo 05:23:17 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 05:23:17 ---> sudo-logs.sh 05:23:17 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 05:23:17 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 05:23:18 ---> job-cost.sh 05:23:18 lf-activate-venv: SKIPPING 05:23:18 DEBUG: total: 0.2199999988079071 05:23:18 INFO: Retrieving Stack Cost... 05:23:18 INFO: Retrieving Pricing Info for: v3-standard-8 05:23:19 INFO: Archiving Costs [Pipeline] echo 05:23:19 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 05:23:19 ---> logs-deploy.sh 05:23:19 lf-activate-venv: SKIPPING 05:23:19 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-modbus-go/PR-502/1 05:23:19 INFO: archiving workspace using pattern(s): 05:23:20 Archives upload complete. 05:23:20 INFO: archiving logs to Nexus