Pull request #480 event Connecting to https://api.github.com using edgex-jenkins github personal access token Obtained Jenkinsfile from cff51a9ff6984741fa695930352945683dc0d381+4043164b7337e1db1bede6ff26841e4d6947650d (24028864502d3252ae3ffda1e4617cb65327d73e) 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-ssh17740056454693756617.key > git ls-remote -h -t -- git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Found match: refs/tags/stable revision 4fc256d9079ed2258907e613f84b1b8da264a4bd 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-ssh3462204103175625187.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 4fc256d9079ed2258907e613f84b1b8da264a4bd The recommended git tool is: git using credential edgex-jenkins-ssh > git rev-parse --resolve-git-dir /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-480/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82/.git # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Fetching with tags Fetching upstream changes from git@github.com:edgexfoundry/edgex-global-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-480/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh847015238622649601.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision 4fc256d9079ed2258907e613f84b1b8da264a4bd (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f 4fc256d9079ed2258907e613f84b1b8da264a4bd # timeout=10 Commit message: "Merge pull request #430 from ernestojeda/release-lock" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 Excluding src/test/ from checkout of git git@github.com:edgexfoundry/edgex-global-pipelines.git so that library test code cannot be accessed by Pipelines. To remove this log message, move the test code outside of src/. To restore the previous behavior that allowed access to files in src/test/, pass -Dorg.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.INCLUDE_SRC_TEST_IN_LIBRARIES=true to the java command used to start Jenkins. Loading library lf-pipelines@master Attempting to resolve master from remote references... > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /tmp/jenkins-gitclient-ssh17791857371363446773.key > git ls-remote -h -- git@github.com:lfit/releng-pipelines.git # timeout=10 Found match: refs/heads/master revision 65355178549468b165f8106641c96c3190b1d843 The recommended git tool is: NONE using credential edgex-jenkins-ssh > git rev-parse --resolve-git-dir /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-480/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e/.git # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url git@github.com:lfit/releng-pipelines.git # timeout=10 Fetching without tags Fetching upstream changes from git@github.com:lfit/releng-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-480/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e@tmp/jenkins-gitclient-ssh6341327620407961192.key > git fetch --no-tags --progress -- git@github.com:lfit/releng-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10 Checking out Revision 65355178549468b165f8106641c96c3190b1d843 (master) > git config core.sparsecheckout # timeout=10 > git checkout -f 65355178549468b165f8106641c96c3190b1d843 # timeout=10 Commit message: "Fix: Add S3 URL in href to ship logs" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 Excluding src/test/ from checkout of git git@github.com:lfit/releng-pipelines.git so that library test code cannot be accessed by Pipelines. To remove this log message, move the test code outside of src/. To restore the previous behavior that allowed access to files in src/test/, pass -Dorg.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.INCLUDE_SRC_TEST_IN_LIBRARIES=true to the java command used to start Jenkins. [Pipeline] Start of Pipeline [Pipeline] echo ========================================================= [edgeXBuildGoApp] RAW Config: [project:device-modbus-go, buildSnap:false] ========================================================= [Pipeline] echo Setting up nodes based on requested architectures [[amd64, arm64]] [Pipeline] echo Nodes requested: [[ubuntu20.04-docker-8c-8g, ubuntu20.04-docker-arm64-4c-16g]] [Pipeline] echo ========================================================= [edgeXBuildGoApp] Pipeline Parameters: ========================================================= [Pipeline] echo MAVEN_SETTINGS: device-modbus-go-settings PROJECT: device-modbus-go USE_SEMVER: true TEST_SCRIPT: make test BUILD_SCRIPT: make build GO_VERSION: 1.20 USE_ALPINE: true DOCKER_FILE_PATH: Dockerfile DOCKER_BUILD_FILE_PATH: Dockerfile.build DOCKER_BUILD_CONTEXT: . DOCKER_BUILD_IMAGE_TARGET: builder DOCKER_IMAGE_NAME: device-modbus DOCKER_REGISTRY_NAMESPACE: DOCKER_NEXUS_REPO: staging BUILD_DOCKER_IMAGE: true PUSH_DOCKER_IMAGE: true BUILD_EXPERIMENTAL_DOCKER_IMAGE: false BUILD_STABLE_DOCKER_IMAGE: false SEMVER_BUMP_LEVEL: pre BUILD_SNAP: false PUBLISH_SWAGGER_DOCS: false SWAGGER_API_FOLDERS: openapi/v1 ARTIFACT_ROOT: archives/bin ARTIFACT_TYPES: docker SHOULD_BUILD: true BUILD_FAILURE_NOTIFY_LIST: edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org SNYK_DEBUG: false [Pipeline] node Still waiting to schedule task ‘prd-centos7-builder-2c-1g-16844’ doesn’t have label ‘ubuntu20.04-docker-8c-8g’ ‘prd-centos7-docker-4c-2g-16845’ doesn’t have label ‘ubuntu20.04-docker-8c-8g’ ‘prd-ubuntu18.04-docker-8c-8g-16840’ doesn’t have label ‘ubuntu20.04-docker-8c-8g’ ‘prd-ubuntu20.04-docker-8c-8g-16824’ is offline ‘prd-ubuntu20.04-docker-8c-8g-16827’ is offline ‘prd-ubuntu20.04-docker-8c-8g-16828’ is offline ‘prd-ubuntu20.04-docker-8c-8g-16829’ is offline ‘prd-ubuntu20.04-docker-8c-8g-16830’ is offline ‘prd-ubuntu20.04-docker-8c-8g-16837’ is offline ‘prd-ubuntu20.04-docker-8c-8g-16838’ is offline ‘prd-ubuntu20.04-docker-8c-8g-16848’ is offline ‘prd-ubuntu20.04-docker-8c-8g-16850’ is offline ‘prd-ubuntu20.04-docker-8c-8g-16851’ is offline ‘prd-ubuntu20.04-docker-8c-8g-16852’ is offline ‘prd-ubuntu20.04-docker-8c-8g-16855’ is offline ‘prd-ubuntu20.04-docker-arm64-4c-16g-16826’ doesn’t have label ‘ubuntu20.04-docker-8c-8g’ ‘prd-ubuntu20.04-docker-arm64-4c-16g-16831’ doesn’t have label ‘ubuntu20.04-docker-8c-8g’ ‘prd-ubuntu20.04-docker-arm64-4c-16g-16832’ doesn’t have label ‘ubuntu20.04-docker-8c-8g’ ‘prd-ubuntu20.04-docker-arm64-4c-16g-16833’ doesn’t have label ‘ubuntu20.04-docker-8c-8g’ ‘prd-ubuntu20.04-docker-arm64-4c-16g-16835’ doesn’t have label ‘ubuntu20.04-docker-8c-8g’ ‘prd-ubuntu20.04-docker-arm64-4c-16g-16836’ doesn’t have label ‘ubuntu20.04-docker-8c-8g’ ‘prd-ubuntu20.04-docker-arm64-4c-16g-16842’ doesn’t have label ‘ubuntu20.04-docker-8c-8g’ Running on prd-ubuntu20.04-docker-8c-8g-16853 in /w/workspace/xfoundry_device-modbus-go_PR-480 [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-480 # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git > git --version # timeout=10 > git --version # 'git version 2.25.1' using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/pull/480/head:refs/remotes/origin/PR-480 +refs/heads/main:refs/remotes/origin/main # timeout=10 Merging remotes/origin/main commit 4043164b7337e1db1bede6ff26841e4d6947650d into PR head commit cff51a9ff6984741fa695930352945683dc0d381 Merge succeeded, producing cff51a9ff6984741fa695930352945683dc0d381 Checking out Revision cff51a9ff6984741fa695930352945683dc0d381 (PR-480) Commit message: "build(deps): Bump github.com/spf13/cast from 1.5.0 to 1.5.1" First time build. Skipping changelog. [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 00:14:51 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 00:14:51 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 00:14:51 ========================================================= 00:14:51 EdgeX Global Pipelines Version Info 00:14:51 ========================================================= [Pipeline] libraryResource [Pipeline] sh > git config core.sparsecheckout # timeout=10 > git checkout -f cff51a9ff6984741fa695930352945683dc0d381 # timeout=10 > git remote # timeout=10 > git config --get remote.origin.url # timeout=10 using GIT_SSH to set credentials SSH Credentials for GitHub > git merge 4043164b7337e1db1bede6ff26841e4d6947650d # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f cff51a9ff6984741fa695930352945683dc0d381 # timeout=10 > git rev-list --no-walk 0c3f6a60187eeeff7b7df055b6cf7399659b9316 # timeout=10 00:14:52 ------------------- 00:14:52 stable info: 00:14:52 ------------------- 00:14:52 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 00:14:52 Commit SHA: 4fc256d9079ed2258907e613f84b1b8da264a4bd 00:14:52 Message: update stable to v1.0.249 00:14:52 ------------------- 00:14:52 experimental info: 00:14:52 ------------------- 00:14:52 Commited By: **** collab-it+edgex@linuxfoundation.org 00:14:52 Commit SHA: 4fc256d9079ed2258907e613f84b1b8da264a4bd 00:14:52 Message: update experimental to v1.0.249 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 00:14:53 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-modbus-go-settings [Pipeline] echo 00:14:53 [edgeXSetupEnvironment]: set envvar PROJECT = device-modbus-go [Pipeline] echo 00:14:53 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 00:14:53 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 00:14:53 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 00:14:53 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.20 [Pipeline] echo 00:14:53 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 00:14:53 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 00:14:53 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 00:14:53 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 00:14:53 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 00:14:53 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-modbus [Pipeline] echo 00:14:53 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 00:14:53 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 00:14:53 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 00:14:53 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 00:14:53 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 00:14:53 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 00:14:53 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 00:14:53 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 00:14:53 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 00:14:53 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 00:14:53 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 00:14:53 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 00:14:53 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 00:14:53 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 00:14:53 [edgeXSetupEnvironment]: set envvar SNYK_DEBUG = false [Pipeline] echo 00:14:53 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-480 [Pipeline] echo 00:14:53 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-480 [Pipeline] echo 00:14:53 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-480 [Pipeline] echo 00:14:53 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = cff51a9ff6984741fa695930352945683dc0d381 [Pipeline] echo 00:14:53 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = cff51a9 [Pipeline] echo 00:14:53 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 00:14:53 provisioning config files... 00:14:53 copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-480@tmp/config8442673902744072629tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 00:14:53 ---> docker-login.sh 00:14:53 nexus3.edgexfoundry.org:10001 00:14:54 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:14:54 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:14:54 Configure a credential helper to remove this warning. See 00:14:54 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:14:54 00:14:54 Login Succeeded 00:14:54 nexus3.edgexfoundry.org:10002 00:14:54 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:14:54 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:14:54 Configure a credential helper to remove this warning. See 00:14:54 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:14:54 00:14:54 Login Succeeded 00:14:54 nexus3.edgexfoundry.org:10003 00:14:54 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:14:54 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:14:54 Configure a credential helper to remove this warning. See 00:14:54 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:14:54 00:14:54 Login Succeeded 00:14:54 nexus3.edgexfoundry.org:10004 00:14:54 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:14:54 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:14:54 Configure a credential helper to remove this warning. See 00:14:54 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:14:54 00:14:54 Login Succeeded 00:14:54 docker.io 00:14:54 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:14:54 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:14:54 Configure a credential helper to remove this warning. See 00:14:54 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:14:54 00:14:54 Login Succeeded 00:14:54 ---> docker-login.sh ends [Pipeline] } 00:14:54 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 00:14:55 + git rev-list -1 --merges cff51a9ff6984741fa695930352945683dc0d381~1..cff51a9ff6984741fa695930352945683dc0d381 [Pipeline] echo 00:14:55 -----------> git rev-list -1 --merges cff51a9ff6984741fa695930352945683dc0d381~1..cff51a9ff6984741fa695930352945683dc0d381 cff51a9ff6984741fa695930352945683dc0d381 [false] [Pipeline] sh 00:14:55 + git log --format=format:%s -1 cff51a9ff6984741fa695930352945683dc0d381 [Pipeline] echo 00:14:55 ========================================================= 00:14:55 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 00:14:55 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 00:14:55 + git log --format=format:%s -1 cff51a9ff6984741fa695930352945683dc0d381 [Pipeline] echo 00:14:55 [semverPrep] GIT_COMMIT: cff51a9ff6984741fa695930352945683dc0d381, Commit Message: build(deps): Bump github.com/spf13/cast from 1.5.0 to 1.5.1 [Pipeline] echo 00:14:55 [semverPrep] This is not a build commit. [Pipeline] sh 00:14:56 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 00:14:56 + grep -v github /etc/ssh/ssh_known_hosts 00:14:56 + [ -e /tmp/ssh_known_hosts ] 00:14:56 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 00:14:56 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 00:14:56 + sudo tee -a /etc/ssh/ssh_known_hosts 00:14:56 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 00:14:56 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 00:14:56 00:14:56 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 00:14:56 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 00:14:56 0.1.4: Pulling from edgex-devops/py-git-semver 00:14:56 b85a868b505f: Pulling fs layer 00:14:56 e2be974225ed: Pulling fs layer 00:14:56 339a4e72a1f5: Pulling fs layer 00:14:56 988bab9f4d93: Pulling fs layer 00:14:56 1469e6f7b9e6: Pulling fs layer 00:14:56 eaf3925da568: Pulling fs layer 00:14:56 bab4dde63d76: Pulling fs layer 00:14:56 bde34c3a00c8: Pulling fs layer 00:14:56 b352a97aabf1: Pulling fs layer 00:14:56 4872d77fe225: Pulling fs layer 00:14:56 5851b861e8e6: Pulling fs layer 00:14:56 988bab9f4d93: Waiting 00:14:56 1469e6f7b9e6: Waiting 00:14:56 eaf3925da568: Waiting 00:14:56 bab4dde63d76: Waiting 00:14:56 bde34c3a00c8: Waiting 00:14:56 b352a97aabf1: Waiting 00:14:56 4872d77fe225: Waiting 00:14:56 e2be974225ed: Verifying Checksum 00:14:56 e2be974225ed: Download complete 00:14:56 988bab9f4d93: Verifying Checksum 00:14:56 988bab9f4d93: Download complete 00:14:57 1469e6f7b9e6: Download complete 00:14:57 eaf3925da568: Verifying Checksum 00:14:57 eaf3925da568: Download complete 00:14:57 339a4e72a1f5: Verifying Checksum 00:14:57 339a4e72a1f5: Download complete 00:14:57 bde34c3a00c8: Verifying Checksum 00:14:57 bde34c3a00c8: Download complete 00:14:57 b352a97aabf1: Verifying Checksum 00:14:57 b352a97aabf1: Download complete 00:14:57 4872d77fe225: Download complete 00:14:57 5851b861e8e6: Verifying Checksum 00:14:57 5851b861e8e6: Download complete 00:14:57 b85a868b505f: Verifying Checksum 00:14:57 b85a868b505f: Download complete 00:14:58 bab4dde63d76: Verifying Checksum 00:14:58 bab4dde63d76: Download complete 00:14:58 b85a868b505f: Pull complete 00:14:58 e2be974225ed: Pull complete 00:14:59 339a4e72a1f5: Pull complete 00:14:59 988bab9f4d93: Pull complete 00:14:59 1469e6f7b9e6: Pull complete 00:14:59 eaf3925da568: Pull complete 00:15:01 bab4dde63d76: Pull complete 00:15:01 bde34c3a00c8: Pull complete 00:15:01 b352a97aabf1: Pull complete 00:15:01 4872d77fe225: Pull complete 00:15:01 5851b861e8e6: Pull complete 00:15:01 Digest: sha256:59a28aa3b44c0bc56b9c3d2e9ecabe42e63693d939cc6e425eb8786f29f663d8 00:15:01 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 00:15:01 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 00:15:02 prd-ubuntu20.04-docker-8c-8g-16853 does not seem to be running inside a container 00:15:02 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/xfoundry_device-modbus-go_PR-480 -v /w/workspace/xfoundry_device-modbus-go_PR-480:/w/workspace/xfoundry_device-modbus-go_PR-480:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-480@tmp:/w/workspace/xfoundry_device-modbus-go_PR-480@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 cat 00:15:03 $ docker top 05e60b95efd98e4bceb18b56ef16f23c67799ac0a4b05f6d1f93cfa3b3c0e6c9 -eo pid,comm 00:15:03 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). 00:15:03 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 00:15:03 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 00:15:03 [ssh-agent] Looking for ssh-agent implementation... 00:15:03 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 00:15:03 $ docker exec 05e60b95efd98e4bceb18b56ef16f23c67799ac0a4b05f6d1f93cfa3b3c0e6c9 ssh-agent 00:15:03 SSH_AUTH_SOCK=/tmp/ssh-pWtF6nZpXxLe/agent.32 00:15:03 SSH_AGENT_PID=38 00:15:03 Running ssh-add (command line suppressed) 00:15:03 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-480@tmp/private_key_15718494219824321996.key (/w/workspace/xfoundry_device-modbus-go_PR-480@tmp/private_key_15718494219824321996.key) 00:15:03 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 00:15:04 + git tag --points-at HEAD [Pipeline] } 00:15:04 $ docker exec --env ******** --env ******** 05e60b95efd98e4bceb18b56ef16f23c67799ac0a4b05f6d1f93cfa3b3c0e6c9 ssh-agent -k 00:15:04 unset SSH_AUTH_SOCK; 00:15:04 unset SSH_AGENT_PID; 00:15:04 echo Agent pid 38 killed; 00:15:04 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 00:15:04 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 00:15:04 [ssh-agent] Looking for ssh-agent implementation... 00:15:04 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 00:15:04 $ docker exec 05e60b95efd98e4bceb18b56ef16f23c67799ac0a4b05f6d1f93cfa3b3c0e6c9 ssh-agent 00:15:04 SSH_AUTH_SOCK=/tmp/ssh-ulLcAdINPxjm/agent.71 00:15:04 SSH_AGENT_PID=77 00:15:04 Running ssh-add (command line suppressed) 00:15:04 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-480@tmp/private_key_11716256658310871003.key (/w/workspace/xfoundry_device-modbus-go_PR-480@tmp/private_key_11716256658310871003.key) 00:15:04 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 00:15:04 + git semver init 00:15:05 2023-05-25 00:15:05,074 [run_init] DEBUG init version:0.0.0 force:False 00:15:05 2023-05-25 00:15:05,075 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/xfoundry_device-modbus-go_PR-480/.semver 00:15:05 2023-05-25 00:15:05,075 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-modbus-go.git /w/workspace/xfoundry_device-modbus-go_PR-480/.semver 00:15:05 2023-05-25 00:15:05,075 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-modbus-go.git', '/w/workspace/xfoundry_device-modbus-go_PR-480/.semver'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-480, universal_newlines=False, shell=None, istream=None) 00:15:05 2023-05-25 00:15:05,938 [append_file] DEBUG append to file:/w/workspace/xfoundry_device-modbus-go_PR-480/.git/info/exclude 00:15:05 2023-05-25 00:15:05,938 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/xfoundry_device-modbus-go_PR-480/.semver/PR-480 with force:False 00:15:05 2023-05-25 00:15:05,938 [write_file] DEBUG write to file:/w/workspace/xfoundry_device-modbus-go_PR-480/.semver/PR-480 00:15:05 2023-05-25 00:15:05,941 [execute] INFO git cat-file --batch-check 00:15:05 2023-05-25 00:15:05,941 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-480/.semver, universal_newlines=False, shell=None, istream=) 00:15:05 2023-05-25 00:15:05,945 [execute] INFO git cat-file --batch 00:15:05 2023-05-25 00:15:05,946 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-480/.semver, universal_newlines=False, shell=None, istream=) 00:15:06 2023-05-25 00:15:05,950 [read_version] DEBUG read version from /w/workspace/xfoundry_device-modbus-go_PR-480/.semver/PR-480 00:15:06 0.0.0 [Pipeline] } 00:15:06 $ docker exec --env ******** --env ******** 05e60b95efd98e4bceb18b56ef16f23c67799ac0a4b05f6d1f93cfa3b3c0e6c9 ssh-agent -k 00:15:06 unset SSH_AUTH_SOCK; 00:15:06 unset SSH_AGENT_PID; 00:15:06 echo Agent pid 77 killed; 00:15:06 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 00:15:06 + git semver [Pipeline] } 00:15:06 $ docker stop --time=1 05e60b95efd98e4bceb18b56ef16f23c67799ac0a4b05f6d1f93cfa3b3c0e6c9 00:15:08 $ docker rm -f --volumes 05e60b95efd98e4bceb18b56ef16f23c67799ac0a4b05f6d1f93cfa3b3c0e6c9 [Pipeline] // withDockerContainer [Pipeline] sh 00:15:08 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 00:15:08 Stashed 1 file(s) [Pipeline] echo 00:15:08 [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 00:15:08 provisioning config files... 00:15:08 copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-480@tmp/config3367432917087285106tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 00:15:09 ---> docker-login.sh 00:15:09 nexus3.edgexfoundry.org:10001 00:15:09 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:15:09 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:15:09 Configure a credential helper to remove this warning. See 00:15:09 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:15:09 00:15:09 Login Succeeded 00:15:09 nexus3.edgexfoundry.org:10002 00:15:09 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:15:09 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:15:09 Configure a credential helper to remove this warning. See 00:15:09 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:15:09 00:15:09 Login Succeeded 00:15:09 nexus3.edgexfoundry.org:10003 00:15:09 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:15:09 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:15:09 Configure a credential helper to remove this warning. See 00:15:09 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:15:09 00:15:09 Login Succeeded 00:15:09 nexus3.edgexfoundry.org:10004 00:15:09 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:15:09 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:15:09 Configure a credential helper to remove this warning. See 00:15:09 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:15:09 00:15:09 Login Succeeded 00:15:09 docker.io 00:15:09 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:15:09 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:15:09 Configure a credential helper to remove this warning. See 00:15:09 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:15:09 00:15:09 Login Succeeded 00:15:09 ---> docker-login.sh ends [Pipeline] } 00:15:09 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 00:15:09 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 00:15:09 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 00:15:09 ========================================================= 00:15:09 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine] 00:15:09 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 00:15:10 + docker build -t ci-base-image-x86_64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine --build-arg MAKE=echo noop --target=builder . 00:15:10 Sending build context to Docker daemon 6.544MB 00:15:10 Step 1/10 : ARG BASE=golang:1.20-alpine3.17 00:15:10 Step 2/10 : FROM ${BASE} AS builder 00:15:10 1.20-alpine: Pulling from edgex-devops/edgex-golang-base 00:15:10 f56be85fc22e: Pulling fs layer 00:15:10 85791d961cd3: Pulling fs layer 00:15:10 d694b5ae8c79: Pulling fs layer 00:15:10 9f32a84ed3da: Pulling fs layer 00:15:10 4d19c01a9841: Pulling fs layer 00:15:10 4d19c01a9841: Waiting 00:15:10 9f32a84ed3da: Waiting 00:15:10 9325e15d5711: Pulling fs layer 00:15:10 556b6ee489ea: Pulling fs layer 00:15:10 c5a4b2cf53e6: Pulling fs layer 00:15:10 9325e15d5711: Waiting 00:15:10 556b6ee489ea: Waiting 00:15:10 c5a4b2cf53e6: Waiting 00:15:10 85791d961cd3: Download complete 00:15:10 9f32a84ed3da: Download complete 00:15:10 4d19c01a9841: Download complete 00:15:10 f56be85fc22e: Download complete 00:15:10 9325e15d5711: Verifying Checksum 00:15:10 9325e15d5711: Download complete 00:15:10 f56be85fc22e: Pull complete 00:15:10 85791d961cd3: Pull complete 00:15:10 c5a4b2cf53e6: Verifying Checksum 00:15:10 c5a4b2cf53e6: Download complete 00:15:10 d694b5ae8c79: Verifying Checksum 00:15:10 d694b5ae8c79: Download complete 00:15:11 556b6ee489ea: Verifying Checksum 00:15:11 556b6ee489ea: Download complete 00:15:14 d694b5ae8c79: Pull complete 00:15:14 9f32a84ed3da: Pull complete 00:15:14 4d19c01a9841: Pull complete 00:15:14 9325e15d5711: Pull complete 00:15:17 556b6ee489ea: Pull complete 00:15:18 c5a4b2cf53e6: Pull complete 00:15:18 Digest: sha256:cdb650785bd12602035d3ff87499385c169773a4d12d6eaf394b34464d3a0f2b 00:15:18 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine 00:15:18 ---> c4be618373d6 00:15:18 Step 3/10 : ARG ADD_BUILD_TAGS="" 00:15:20 ---> Running in 5b71bc45aeaf 00:15:20 Removing intermediate container 5b71bc45aeaf 00:15:20 ---> 6832d496c57b 00:15:20 Step 4/10 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 00:15:20 ---> Running in 6d63d22b896d 00:15:20 Removing intermediate container 6d63d22b896d 00:15:20 ---> 8a7e748944c9 00:15:20 Step 5/10 : RUN apk add --update --no-cache make git openssh 00:15:20 ---> Running in 22580fe75890 00:15:20 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 00:15:20 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 00:15:20 (1/8) Installing openssh-keygen (9.1_p1-r3) 00:15:20 (2/8) Installing libedit (20221030.3.1-r0) 00:15:20 (3/8) Installing openssh-client-common (9.1_p1-r3) 00:15:20 (4/8) Installing openssh-client-default (9.1_p1-r3) 00:15:20 (5/8) Installing openssh-sftp-server (9.1_p1-r3) 00:15:20 (6/8) Installing openssh-server-common (9.1_p1-r3) 00:15:20 (7/8) Installing openssh-server (9.1_p1-r3) 00:15:20 (8/8) Installing openssh (9.1_p1-r3) 00:15:20 Executing busybox-1.35.0-r29.trigger 00:15:20 OK: 270 MiB in 61 packages 00:15:21 Removing intermediate container 22580fe75890 00:15:21 ---> 089db99040b2 00:15:21 Step 6/10 : WORKDIR /device-modbus-go 00:15:21 ---> Running in ba96eb8449cf 00:15:21 Removing intermediate container ba96eb8449cf 00:15:21 ---> ce6e5fd96188 00:15:21 Step 7/10 : COPY go.mod vendor* ./ 00:15:21 ---> 14507c91af33 00:15:21 Step 8/10 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 00:15:21 ---> Running in 82d8b795340c 00:15:23 Still waiting to schedule task 00:15:23 Waiting for next available executor on ‘ubuntu20.04-docker-arm64-4c-16g’ 00:15:39 Removing intermediate container 82d8b795340c 00:15:39 ---> 2b123f0df4c4 00:15:39 Step 9/10 : COPY . . 00:15:40 ---> 426374847b6d 00:15:40 Step 10/10 : RUN ${MAKE} 00:15:40 ---> Running in 7dcd2f1f880d 00:15:40 noop 00:15:40 Removing intermediate container 7dcd2f1f880d 00:15:40 ---> 50b37de8bace 00:15:40 Successfully built 50b37de8bace 00:15:40 Successfully tagged ci-base-image-x86_64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 00:15:41 + docker inspect -f . ci-base-image-x86_64 00:15:41 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 00:15:41 prd-ubuntu20.04-docker-8c-8g-16853 does not seem to be running inside a container 00:15:41 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/xfoundry_device-modbus-go_PR-480 -v /w/workspace/xfoundry_device-modbus-go_PR-480:/w/workspace/xfoundry_device-modbus-go_PR-480:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-480@tmp:/w/workspace/xfoundry_device-modbus-go_PR-480@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 00:15:42 $ docker top 44ab895e927d0c3d2632a9b95d36247f80f90359bcef08e4bb6dc9e6399e9222 -eo pid,comm [Pipeline] { [Pipeline] sh 00:15:43 + go version 00:15:43 go version go1.20.2 linux/amd64 [Pipeline] } 00:15:43 $ docker stop --time=1 44ab895e927d0c3d2632a9b95d36247f80f90359bcef08e4bb6dc9e6399e9222 00:15:44 $ docker rm -f --volumes 44ab895e927d0c3d2632a9b95d36247f80f90359bcef08e4bb6dc9e6399e9222 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 00:15:45 + docker inspect -f . ci-base-image-x86_64 00:15:45 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 00:15:45 prd-ubuntu20.04-docker-8c-8g-16853 does not seem to be running inside a container 00:15:45 $ 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-480 -v /w/workspace/xfoundry_device-modbus-go_PR-480:/w/workspace/xfoundry_device-modbus-go_PR-480:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-480@tmp:/w/workspace/xfoundry_device-modbus-go_PR-480@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 00:15:45 $ docker top 89839c3d2bb0bbc810bd868d522b6d10d45775e642e6f4ff50b02342a5cd8967 -eo pid,comm [Pipeline] { [Pipeline] sh 00:15:45 + git config --global --add safe.directory /w/workspace/xfoundry_device-modbus-go_PR-480 [Pipeline] fileExists [Pipeline] sh 00:15:46 + make test 00:15:46 go test ./... -coverprofile=coverage.out 00:15:51 ? github.com/edgexfoundry/device-modbus-go [no test files] 00:15:59 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 00:15:59 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.011s coverage: 47.4% of statements 00:16:06 go vet ./... 00:16:08 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 00:16:08 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 00:16:08 ./bin/test-attribution-txt.sh [Pipeline] echo 00:16:08 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 00:16:09 $ docker stop --time=1 89839c3d2bb0bbc810bd868d522b6d10d45775e642e6f4ff50b02342a5cd8967 00:16:11 $ docker rm -f --volumes 89839c3d2bb0bbc810bd868d522b6d10d45775e642e6f4ff50b02342a5cd8967 [Pipeline] // withDockerContainer [Pipeline] sh 00:16:12 + sudo chown -R jenkins:jenkins . [Pipeline] stash 00:16:12 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 00:16:12 + sudo chown -R jenkins:jenkins . [Pipeline] sh 00:16:12 + ls -al . 00:16:12 total 184 00:16:12 drwxrwxr-x 10 jenkins jenkins 4096 May 25 00:15 . 00:16:12 drwxrwxr-x 4 jenkins jenkins 4096 May 25 00:14 .. 00:16:12 -rw-rw-r-- 1 jenkins jenkins 140 May 25 00:14 .dockerignore 00:16:12 drwxrwxr-x 8 jenkins jenkins 4096 May 25 00:15 .git 00:16:12 drwxrwxr-x 3 jenkins jenkins 4096 May 25 00:14 .github 00:16:12 -rw-rw-r-- 1 jenkins jenkins 331 May 25 00:14 .gitignore 00:16:12 -rw-rw-r-- 1 jenkins jenkins 41 May 25 00:14 .golangci.yml 00:16:12 drwxr-xr-x 3 jenkins jenkins 4096 May 25 00:15 .semver 00:16:12 -rw-rw-r-- 1 jenkins jenkins 10132 May 25 00:14 Attribution.txt 00:16:12 -rw-rw-r-- 1 jenkins jenkins 11576 May 25 00:14 CHANGELOG.md 00:16:12 -rw-rw-r-- 1 jenkins jenkins 1365 May 25 00:14 Dockerfile 00:16:12 -rw-rw-r-- 1 jenkins jenkins 677 May 25 00:14 GOVERNANCE.md 00:16:12 -rw-rw-r-- 1 jenkins jenkins 680 May 25 00:14 Jenkinsfile 00:16:12 -rw-rw-r-- 1 jenkins jenkins 11340 May 25 00:14 LICENSE 00:16:12 -rw-rw-r-- 1 jenkins jenkins 1705 May 25 00:14 Makefile 00:16:12 -rw-rw-r-- 1 jenkins jenkins 622 May 25 00:14 OWNERS.md 00:16:12 -rw-rw-r-- 1 jenkins jenkins 4554 May 25 00:14 README.md 00:16:12 -rw-rw-r-- 1 jenkins jenkins 5 May 25 00:15 VERSION 00:16:12 drwxrwxr-x 2 jenkins jenkins 4096 May 25 00:14 bin 00:16:12 drwxrwxr-x 3 jenkins jenkins 4096 May 25 00:14 cmd 00:16:12 -rw-r--r-- 1 jenkins jenkins 24160 May 25 00:15 coverage.out 00:16:12 -rw-rw-r-- 1 jenkins jenkins 3405 May 25 00:14 go.mod 00:16:12 -rw-rw-r-- 1 jenkins jenkins 31574 May 25 00:14 go.sum 00:16:12 drwxrwxr-x 3 jenkins jenkins 4096 May 25 00:14 internal 00:16:12 drwxrwxr-x 2 jenkins jenkins 4096 May 25 00:14 simulator 00:16:12 drwxrwxr-x 4 jenkins jenkins 4096 May 25 00:14 snap 00:16:12 -rw-rw-r-- 1 jenkins jenkins 229 May 25 00:14 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 00:16:13 + 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=cff51a9ff6984741fa695930352945683dc0d381 --label arch=amd64 --label version=0.0.0 . 00:16:13 Sending build context to Docker daemon 6.569MB 00:16:13 Step 1/22 : ARG BASE=golang:1.20-alpine3.17 00:16:13 Step 2/22 : FROM ${BASE} AS builder 00:16:13 ---> 50b37de8bace 00:16:13 Step 3/22 : ARG ADD_BUILD_TAGS="" 00:16:13 ---> Running in a582a092806c 00:16:13 Removing intermediate container a582a092806c 00:16:13 ---> 8b9a01bab330 00:16:13 Step 4/22 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 00:16:13 ---> Running in 816058d837ed 00:16:13 Removing intermediate container 816058d837ed 00:16:13 ---> 517dcc2e19a6 00:16:13 Step 5/22 : RUN apk add --update --no-cache make git openssh 00:16:13 ---> Running in 4823fc7f31b8 00:16:13 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 00:16:14 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 00:16:14 OK: 270 MiB in 61 packages 00:16:14 Removing intermediate container 4823fc7f31b8 00:16:14 ---> 28af8a85b0ad 00:16:14 Step 6/22 : WORKDIR /device-modbus-go 00:16:14 ---> Running in f56b418a3310 00:16:14 Removing intermediate container f56b418a3310 00:16:14 ---> 0d5d136ee6e8 00:16:14 Step 7/22 : COPY go.mod vendor* ./ 00:16:14 ---> f98b354120a9 00:16:14 Step 8/22 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 00:16:14 ---> Running in 708edc85d8b8 00:16:15 Removing intermediate container 708edc85d8b8 00:16:15 ---> 0ca3f8c1ea4b 00:16:15 Step 9/22 : COPY . . 00:16:15 ---> 0f27c20bbde3 00:16:15 Step 10/22 : RUN ${MAKE} 00:16:15 ---> Running in 7aa5d4ad3e6a 00:16:16 CGO_ENABLED=0 go build -tags "" -ldflags "-X github.com/edgexfoundry/device-modbus-go.Version=0.0.0" -trimpath -mod=readonly -o cmd/device-modbus ./cmd 00:16:34 Removing intermediate container 7aa5d4ad3e6a 00:16:34 ---> b11d28832036 00:16:34 Step 11/22 : FROM alpine:3.17 00:16:34 3.17: Pulling from library/alpine 00:16:34 f56be85fc22e: Already exists 00:16:34 Digest: sha256:124c7d2707904eea7431fffe91522a01e5a861a624ee31d03372cc1d138a3126 00:16:34 Status: Downloaded newer image for alpine:3.17 00:16:34 ---> 9ed4aefc74f6 00:16:34 Step 12/22 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IoTech Ltd' 00:16:34 ---> Running in 2588257b7b96 00:16:34 Removing intermediate container 2588257b7b96 00:16:34 ---> 6440dfad0e42 00:16:34 Step 13/22 : RUN apk add --update --no-cache dumb-init 00:16:34 ---> Running in 8c2cb3c98d38 00:16:34 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 00:16:34 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 00:16:34 (1/1) Installing dumb-init (1.2.5-r2) 00:16:34 Executing busybox-1.35.0-r29.trigger 00:16:34 OK: 7 MiB in 16 packages 00:16:34 Removing intermediate container 8c2cb3c98d38 00:16:34 ---> 65d7a2ba59bd 00:16:34 Step 14/22 : COPY --from=builder /device-modbus-go/cmd / 00:16:35 ---> 20b3b30c0c50 00:16:35 Step 15/22 : COPY --from=builder /device-modbus-go/LICENSE / 00:16:35 ---> acbbae5b204e 00:16:35 Step 16/22 : COPY --from=builder /device-modbus-go/Attribution.txt / 00:16:35 ---> f49ef7fc5446 00:16:35 Step 17/22 : EXPOSE 59901 00:16:35 ---> Running in d144c79de0bc 00:16:35 Removing intermediate container d144c79de0bc 00:16:35 ---> f8a6a0e73ed3 00:16:35 Step 18/22 : ENTRYPOINT ["/device-modbus"] 00:16:35 ---> Running in 3338b533ffdf 00:16:35 Removing intermediate container 3338b533ffdf 00:16:35 ---> 52679c70cad7 00:16:35 Step 19/22 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 00:16:35 ---> Running in 518b33d94830 00:16:35 Removing intermediate container 518b33d94830 00:16:35 ---> 311dcfd4a645 00:16:35 Step 20/22 : LABEL arch=amd64 00:16:35 ---> Running in 433ebfc61a49 00:16:35 Removing intermediate container 433ebfc61a49 00:16:35 ---> a7aa3633d2f2 00:16:35 Step 21/22 : LABEL git_sha=cff51a9ff6984741fa695930352945683dc0d381 00:16:35 ---> Running in 8413c35ed0f0 00:16:36 Removing intermediate container 8413c35ed0f0 00:16:36 ---> 8fe4dcbc7fd3 00:16:36 Step 22/22 : LABEL version=0.0.0 00:16:36 ---> Running in b707015bbf9a 00:16:36 Removing intermediate container b707015bbf9a 00:16:36 ---> ddc1aa4ca4f3 00:16:36 [Warning] One or more build-args [ARCH] were not consumed 00:16:36 Successfully built ddc1aa4ca4f3 00:16:36 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 00:16:36 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 00:16:36 00:16:36 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 00:16:36 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 00:16:36 latest: Pulling from edgex-lftools-log-publisher 00:16:36 5eb5b503b376: Pulling fs layer 00:16:36 5c69ac0246d0: Pulling fs layer 00:16:36 ec43610c2a17: Pulling fs layer 00:16:36 3a2ae6a8a46f: Pulling fs layer 00:16:36 33b1e0a273af: Pulling fs layer 00:16:36 5d3b04190fa2: Pulling fs layer 00:16:36 2f39f015ded8: Pulling fs layer 00:16:36 33b1e0a273af: Waiting 00:16:36 5d3b04190fa2: Waiting 00:16:36 2f39f015ded8: Waiting 00:16:36 3a2ae6a8a46f: Waiting 00:16:36 5c69ac0246d0: Verifying Checksum 00:16:36 5c69ac0246d0: Download complete 00:16:36 3a2ae6a8a46f: Verifying Checksum 00:16:36 3a2ae6a8a46f: Download complete 00:16:36 33b1e0a273af: Verifying Checksum 00:16:36 33b1e0a273af: Download complete 00:16:36 5d3b04190fa2: Verifying Checksum 00:16:36 5d3b04190fa2: Download complete 00:16:36 ec43610c2a17: Verifying Checksum 00:16:36 ec43610c2a17: Download complete 00:16:37 5eb5b503b376: Verifying Checksum 00:16:37 5eb5b503b376: Download complete 00:16:37 2f39f015ded8: Download complete 00:16:38 5eb5b503b376: Pull complete 00:16:38 5c69ac0246d0: Pull complete 00:16:38 ec43610c2a17: Pull complete 00:16:38 3a2ae6a8a46f: Pull complete 00:16:38 33b1e0a273af: Pull complete 00:16:38 5d3b04190fa2: Pull complete 00:16:42 2f39f015ded8: Pull complete 00:16:42 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 00:16:42 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 00:16:42 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 00:16:42 prd-ubuntu20.04-docker-8c-8g-16853 does not seem to be running inside a container 00:16:42 $ 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-480 -v /w/workspace/xfoundry_device-modbus-go_PR-480:/w/workspace/xfoundry_device-modbus-go_PR-480:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-480@tmp:/w/workspace/xfoundry_device-modbus-go_PR-480@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 00:16:45 $ docker top 957309b8a062ebdbc98864ed963384ecd55d4b07d5bb9c5d41966dce60c38fc7 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 00:16:46 ---> job-cost.sh 00:16:46 lf-activate-venv: SKIPPING 00:16:46 INFO: No Stack... 00:16:46 INFO: Retrieving Pricing Info for: v3-standard-8 00:16:46 INFO: Archiving Costs [Pipeline] sh 00:16:46 + cat /w/workspace/xfoundry_device-modbus-go_PR-480/archives/cost.csv 00:16:46 + cut -d, -f6 [Pipeline] lock 00:16:46 Trying to acquire lock on [jenkins-edgexfoundry-device-modbus-go-PR-480-8-stack-cost] 00:16:46 Resource [jenkins-edgexfoundry-device-modbus-go-PR-480-8-stack-cost] did not exist. Created. 00:16:46 Lock acquired on [jenkins-edgexfoundry-device-modbus-go-PR-480-8-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 00:16:47 + echo total: 0.2199999988079071 [Pipeline] stash 00:16:47 Stashed 1 file(s) [Pipeline] } 00:16:47 Lock released on resource [jenkins-edgexfoundry-device-modbus-go-PR-480-8-stack-cost] [Pipeline] // lock [Pipeline] } 00:16:47 $ docker stop --time=1 957309b8a062ebdbc98864ed963384ecd55d4b07d5bb9c5d41966dce60c38fc7 00:16:48 $ docker rm -f --volumes 957309b8a062ebdbc98864ed963384ecd55d4b07d5bb9c5d41966dce60c38fc7 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 00:18:14 Running on prd-ubuntu20.04-docker-arm64-4c-16g-16875 in /w/workspace/xfoundry_device-modbus-go_PR-480 [Pipeline] { [Pipeline] ws 00:18:14 Running in /w/workspace/device-modbus-go/8 [Pipeline] { [Pipeline] checkout 00:18:14 Selected Git installation does not exist. Using Default 00:18:14 The recommended git tool is: NONE 00:18:21 using credential edgex-jenkins-ssh 00:18:21 Cloning the remote Git repository 00:18:21 Cloning repository git@github.com:edgexfoundry/device-modbus-go.git 00:18:21 > git init /w/workspace/device-modbus-go/8 # timeout=10 00:18:21 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 00:18:21 > git --version # timeout=10 00:18:21 > git --version # 'git version 2.25.1' 00:18:21 using GIT_SSH to set credentials SSH Credentials for GitHub 00:18:21 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 00:18:23 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 00:18:23 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 00:18:24 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 00:18:24 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 00:18:24 using GIT_SSH to set credentials SSH Credentials for GitHub 00:18:24 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/pull/480/head:refs/remotes/origin/PR-480 +refs/heads/main:refs/remotes/origin/main # timeout=10 00:18:24 Merging remotes/origin/main commit 4043164b7337e1db1bede6ff26841e4d6947650d into PR head commit cff51a9ff6984741fa695930352945683dc0d381 00:18:25 Merge succeeded, producing cff51a9ff6984741fa695930352945683dc0d381 00:18:25 Checking out Revision cff51a9ff6984741fa695930352945683dc0d381 (PR-480) 00:18:24 > git config core.sparsecheckout # timeout=10 00:18:25 > git checkout -f cff51a9ff6984741fa695930352945683dc0d381 # timeout=10 00:18:25 > git remote # timeout=10 00:18:25 > git config --get remote.origin.url # timeout=10 00:18:25 using GIT_SSH to set credentials SSH Credentials for GitHub 00:18:25 > git merge 4043164b7337e1db1bede6ff26841e4d6947650d # timeout=10 00:18:25 > git rev-parse HEAD^{commit} # timeout=10 00:18:25 > git config core.sparsecheckout # timeout=10 00:18:25 > git checkout -f cff51a9ff6984741fa695930352945683dc0d381 # timeout=10 00:18:25 Commit message: "build(deps): Bump github.com/spf13/cast from 1.5.0 to 1.5.1" [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 00:18:26 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 00:18:26 % Total % Received % Xferd Average Speed Time Time Time Current 00:18:26 Dload Upload Total Spent Left Speed 00:18:26 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 12751 100 12751 0 0 166k 0 --:--:-- --:--:-- --:--:-- 168k [Pipeline] sh 00:18:27 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 00:18:28 + + sudosudo jq tee . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 00:18:28 /etc/docker/daemon.new 00:18:28 { 00:18:28 "registry-mirrors": [ 00:18:28 "https://nexus3.edgexfoundry.org:10001" 00:18:28 ], 00:18:28 "bip": "10.250.0.254/24", 00:18:28 "hosts": [ 00:18:28 "tcp://0.0.0.0:5555", 00:18:28 "unix:///var/run/docker.sock" 00:18:28 ], 00:18:28 "mtu": 1458, 00:18:28 "selinux-enabled": true, 00:18:28 "seccomp-profile": "/etc/docker/seccomp.json" 00:18:28 } [Pipeline] sh 00:18:28 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 00:18:29 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 00:18:47 provisioning config files... 00:18:47 copy managed file [device-modbus-go-settings] to file:/w/workspace/device-modbus-go/8@tmp/config15874462787773984191tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 00:18:48 ---> docker-login.sh 00:18:48 nexus3.edgexfoundry.org:10001 00:18:48 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:18:48 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:18:48 Configure a credential helper to remove this warning. See 00:18:48 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:18:48 00:18:48 Login Succeeded 00:18:48 nexus3.edgexfoundry.org:10002 00:18:49 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:18:49 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:18:49 Configure a credential helper to remove this warning. See 00:18:49 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:18:49 00:18:49 Login Succeeded 00:18:49 nexus3.edgexfoundry.org:10003 00:18:49 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:18:49 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:18:49 Configure a credential helper to remove this warning. See 00:18:49 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:18:49 00:18:49 Login Succeeded 00:18:49 nexus3.edgexfoundry.org:10004 00:18:50 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:18:50 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:18:50 Configure a credential helper to remove this warning. See 00:18:50 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:18:50 00:18:50 Login Succeeded 00:18:50 docker.io 00:18:50 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:18:50 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:18:50 Configure a credential helper to remove this warning. See 00:18:50 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:18:50 00:18:50 Login Succeeded 00:18:50 ---> docker-login.sh ends [Pipeline] } 00:18:50 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 00:18:51 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 00:18:51 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 00:18:51 ========================================================= 00:18:51 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine] 00:18:51 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 00:18:51 + docker build -t ci-base-image-arm64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine --build-arg MAKE=echo noop --target=builder . 00:18:51 Sending build context to Docker daemon 3.427MB 00:18:51 Step 1/10 : ARG BASE=golang:1.20-alpine3.17 00:18:51 Step 2/10 : FROM ${BASE} AS builder 00:18:51 1.20-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 00:18:51 c41833b44d91: Pulling fs layer 00:18:51 ed15518f5707: Pulling fs layer 00:18:51 feae8fd75edb: Pulling fs layer 00:18:51 242c74f7c9fa: Pulling fs layer 00:18:51 3cdef696dda3: Pulling fs layer 00:18:51 2ced38df9373: Pulling fs layer 00:18:51 58f1dce35555: Pulling fs layer 00:18:51 242c74f7c9fa: Waiting 00:18:51 3cdef696dda3: Waiting 00:18:51 2ced38df9373: Waiting 00:18:51 58f1dce35555: Waiting 00:18:52 ed15518f5707: Download complete 00:18:52 242c74f7c9fa: Verifying Checksum 00:18:52 242c74f7c9fa: Download complete 00:18:52 3cdef696dda3: Verifying Checksum 00:18:52 3cdef696dda3: Download complete 00:18:52 c41833b44d91: Verifying Checksum 00:18:52 c41833b44d91: Download complete 00:18:53 c41833b44d91: Pull complete 00:18:53 58f1dce35555: Verifying Checksum 00:18:53 58f1dce35555: Download complete 00:18:54 ed15518f5707: Pull complete 00:18:55 feae8fd75edb: Verifying Checksum 00:18:55 feae8fd75edb: Download complete 00:18:55 2ced38df9373: Verifying Checksum 00:18:55 2ced38df9373: Download complete 00:19:07 feae8fd75edb: Pull complete 00:19:08 242c74f7c9fa: Pull complete 00:19:08 3cdef696dda3: Pull complete 00:19:16 2ced38df9373: Pull complete 00:19:18 58f1dce35555: Pull complete 00:19:18 Digest: sha256:3b55595e96c696ae732e8cb20cde5b1ff7282a1fe1423a8de67617af8d15ea1e 00:19:18 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine 00:19:18 ---> fadd8f120f05 00:19:18 Step 3/10 : ARG ADD_BUILD_TAGS="" 00:19:20 ---> Running in 4641e9447b96 00:19:20 Removing intermediate container 4641e9447b96 00:19:20 ---> 8e43a7d67b5e 00:19:20 Step 4/10 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 00:19:20 ---> Running in d83082d9472a 00:19:20 Removing intermediate container d83082d9472a 00:19:20 ---> bbacbcb4fdfc 00:19:20 Step 5/10 : RUN apk add --update --no-cache make git openssh 00:19:20 ---> Running in da98ebbeaae5 00:19:22 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 00:19:23 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 00:19:24 (1/8) Installing openssh-keygen (9.1_p1-r3) 00:19:24 (2/8) Installing libedit (20221030.3.1-r0) 00:19:24 (3/8) Installing openssh-client-common (9.1_p1-r3) 00:19:24 (4/8) Installing openssh-client-default (9.1_p1-r3) 00:19:24 (5/8) Installing openssh-sftp-server (9.1_p1-r3) 00:19:24 (6/8) Installing openssh-server-common (9.1_p1-r3) 00:19:24 (7/8) Installing openssh-server (9.1_p1-r3) 00:19:24 (8/8) Installing openssh (9.1_p1-r3) 00:19:24 Executing busybox-1.35.0-r29.trigger 00:19:24 OK: 270 MiB in 61 packages 00:19:26 Removing intermediate container da98ebbeaae5 00:19:26 ---> 38c1803cd9a7 00:19:26 Step 6/10 : WORKDIR /device-modbus-go 00:19:26 ---> Running in e0ecaa895d0e 00:19:26 Removing intermediate container e0ecaa895d0e 00:19:26 ---> be626d76fc65 00:19:26 Step 7/10 : COPY go.mod vendor* ./ 00:19:27 ---> a8c40e8b6635 00:19:27 Step 8/10 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 00:19:27 ---> Running in 0df697c6cf7d 00:20:49 Removing intermediate container 0df697c6cf7d 00:20:49 ---> c4abeef044a2 00:20:49 Step 9/10 : COPY . . 00:20:49 ---> 43b71cf83d3d 00:20:49 Step 10/10 : RUN ${MAKE} 00:20:49 ---> Running in 3628532cfb01 00:20:49 noop 00:20:49 Removing intermediate container 3628532cfb01 00:20:49 ---> 753d5c84df54 00:20:49 Successfully built 753d5c84df54 00:20:49 Successfully tagged ci-base-image-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 00:20:49 + docker inspect -f . ci-base-image-arm64 00:20:49 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 00:20:50 prd-ubuntu20.04-docker-arm64-4c-16g-16875 does not seem to be running inside a container 00:20:50 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-modbus-go/8 -v /w/workspace/device-modbus-go/8:/w/workspace/device-modbus-go/8:rw,z -v /w/workspace/device-modbus-go/8@tmp:/w/workspace/device-modbus-go/8@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 00:20:51 $ docker top 2125fb35afc61f8f1f730c2d5b92c43151e55f120e711f6c46154e3df80d33b0 -eo pid,comm [Pipeline] { [Pipeline] sh 00:20:52 + go version 00:20:52 go version go1.20.2 linux/arm64 [Pipeline] } 00:20:52 $ docker stop --time=1 2125fb35afc61f8f1f730c2d5b92c43151e55f120e711f6c46154e3df80d33b0 00:20:54 $ docker rm -f --volumes 2125fb35afc61f8f1f730c2d5b92c43151e55f120e711f6c46154e3df80d33b0 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 00:20:55 + docker inspect -f . ci-base-image-arm64 00:20:55 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 00:20:55 prd-ubuntu20.04-docker-arm64-4c-16g-16875 does not seem to be running inside a container 00:20:55 $ 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/8 -v /w/workspace/device-modbus-go/8:/w/workspace/device-modbus-go/8:rw,z -v /w/workspace/device-modbus-go/8@tmp:/w/workspace/device-modbus-go/8@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 00:20:56 $ docker top 06edeab2184e67512e5771987171e4f0d88fb71ef03a499a308863d41ee24e17 -eo pid,comm [Pipeline] { [Pipeline] sh 00:20:57 + git config --global --add safe.directory /w/workspace/device-modbus-go/8 [Pipeline] fileExists [Pipeline] sh 00:20:58 + make test 00:20:58 go test ./... -coverprofile=coverage.out 00:21:45 ? github.com/edgexfoundry/device-modbus-go [no test files] 00:24:37 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 00:24:37 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.085s coverage: 47.4% of statements 00:24:37 WARNING: Linting skipped (not on x86_64 or linter not installed) 00:24:37 go vet ./... 00:25:09 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 00:25:09 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 00:25:09 ./bin/test-attribution-txt.sh [Pipeline] echo 00:25:09 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 00:25:09 $ docker stop --time=1 06edeab2184e67512e5771987171e4f0d88fb71ef03a499a308863d41ee24e17 00:25:15 $ docker rm -f --volumes 06edeab2184e67512e5771987171e4f0d88fb71ef03a499a308863d41ee24e17 [Pipeline] // withDockerContainer [Pipeline] sh 00:25:16 + sudo chown -R jenkins:jenkins . [Pipeline] stash 00:25:16 Warning: overwriting stash ‘coverage-report’ 00:25:17 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 00:25:17 + sudo chown -R jenkins:jenkins . [Pipeline] sh 00:25:17 + ls -al . 00:25:17 total 180 00:25:17 drwxrwxr-x 9 jenkins jenkins 4096 May 25 00:21 . 00:25:17 drwxrwxr-x 4 jenkins jenkins 4096 May 25 00:18 .. 00:25:17 -rw-rw-r-- 1 jenkins jenkins 140 May 25 00:18 .dockerignore 00:25:17 drwxrwxr-x 8 jenkins jenkins 4096 May 25 00:18 .git 00:25:17 drwxrwxr-x 3 jenkins jenkins 4096 May 25 00:18 .github 00:25:17 -rw-rw-r-- 1 jenkins jenkins 331 May 25 00:18 .gitignore 00:25:17 -rw-rw-r-- 1 jenkins jenkins 41 May 25 00:18 .golangci.yml 00:25:17 -rw-rw-r-- 1 jenkins jenkins 10132 May 25 00:18 Attribution.txt 00:25:17 -rw-rw-r-- 1 jenkins jenkins 11576 May 25 00:18 CHANGELOG.md 00:25:17 -rw-rw-r-- 1 jenkins jenkins 1365 May 25 00:18 Dockerfile 00:25:17 -rw-rw-r-- 1 jenkins jenkins 677 May 25 00:18 GOVERNANCE.md 00:25:17 -rw-rw-r-- 1 jenkins jenkins 680 May 25 00:18 Jenkinsfile 00:25:17 -rw-rw-r-- 1 jenkins jenkins 11340 May 25 00:18 LICENSE 00:25:17 -rw-rw-r-- 1 jenkins jenkins 1705 May 25 00:18 Makefile 00:25:17 -rw-rw-r-- 1 jenkins jenkins 622 May 25 00:18 OWNERS.md 00:25:17 -rw-rw-r-- 1 jenkins jenkins 4554 May 25 00:18 README.md 00:25:17 -rw-rw-r-- 1 jenkins jenkins 5 May 25 00:15 VERSION 00:25:17 drwxrwxr-x 2 jenkins jenkins 4096 May 25 00:18 bin 00:25:17 drwxrwxr-x 3 jenkins jenkins 4096 May 25 00:18 cmd 00:25:17 -rw-r--r-- 1 jenkins jenkins 24160 May 25 00:24 coverage.out 00:25:17 -rw-rw-r-- 1 jenkins jenkins 3405 May 25 00:18 go.mod 00:25:17 -rw-rw-r-- 1 jenkins jenkins 31574 May 25 00:18 go.sum 00:25:17 drwxrwxr-x 3 jenkins jenkins 4096 May 25 00:18 internal 00:25:17 drwxrwxr-x 2 jenkins jenkins 4096 May 25 00:18 simulator 00:25:17 drwxrwxr-x 4 jenkins jenkins 4096 May 25 00:18 snap 00:25:17 -rw-rw-r-- 1 jenkins jenkins 229 May 25 00:18 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 00:25:18 + 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=cff51a9ff6984741fa695930352945683dc0d381 --label arch=arm64 --label version=0.0.0 . 00:25:18 Sending build context to Docker daemon 3.452MB 00:25:18 Step 1/22 : ARG BASE=golang:1.20-alpine3.17 00:25:18 Step 2/22 : FROM ${BASE} AS builder 00:25:18 ---> 753d5c84df54 00:25:18 Step 3/22 : ARG ADD_BUILD_TAGS="" 00:25:18 ---> Running in 02c81d1936ee 00:25:19 Removing intermediate container 02c81d1936ee 00:25:19 ---> 8d74d3be6034 00:25:19 Step 4/22 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 00:25:19 ---> Running in e12111f3fed0 00:25:19 Removing intermediate container e12111f3fed0 00:25:19 ---> 60738a59ea14 00:25:19 Step 5/22 : RUN apk add --update --no-cache make git openssh 00:25:19 ---> Running in f649cd9deaa6 00:25:20 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 00:25:21 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 00:25:23 OK: 270 MiB in 61 packages 00:25:24 Removing intermediate container f649cd9deaa6 00:25:24 ---> a3c418383947 00:25:24 Step 6/22 : WORKDIR /device-modbus-go 00:25:24 ---> Running in b2e8d8a9cfb4 00:25:24 Removing intermediate container b2e8d8a9cfb4 00:25:24 ---> f77c09eb0e2d 00:25:24 Step 7/22 : COPY go.mod vendor* ./ 00:25:25 ---> 981cffab92e2 00:25:25 Step 8/22 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 00:25:25 ---> Running in a575f4d9c83b 00:25:28 Removing intermediate container a575f4d9c83b 00:25:28 ---> e81e907b4bbb 00:25:28 Step 9/22 : COPY . . 00:25:29 ---> 4acbf87fa3ca 00:25:29 Step 10/22 : RUN ${MAKE} 00:25:29 ---> Running in 91dca025ea91 00:25:30 CGO_ENABLED=0 go build -tags "" -ldflags "-X github.com/edgexfoundry/device-modbus-go.Version=0.0.0" -trimpath -mod=readonly -o cmd/device-modbus ./cmd 00:28:06 Removing intermediate container 91dca025ea91 00:28:06 ---> ac9f1d9bda0d 00:28:06 Step 11/22 : FROM alpine:3.17 00:28:07 3.17: Pulling from library/alpine 00:28:07 c41833b44d91: Already exists 00:28:07 Digest: sha256:124c7d2707904eea7431fffe91522a01e5a861a624ee31d03372cc1d138a3126 00:28:07 Status: Downloaded newer image for alpine:3.17 00:28:07 ---> 51e60588ff2c 00:28:07 Step 12/22 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IoTech Ltd' 00:28:07 ---> Running in cbcb30f3da44 00:28:08 Removing intermediate container cbcb30f3da44 00:28:08 ---> 3afe50113693 00:28:08 Step 13/22 : RUN apk add --update --no-cache dumb-init 00:28:08 ---> Running in 87ed1e9b769d 00:28:09 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 00:28:09 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 00:28:11 (1/1) Installing dumb-init (1.2.5-r2) 00:28:11 Executing busybox-1.35.0-r29.trigger 00:28:11 OK: 8 MiB in 16 packages 00:28:12 Removing intermediate container 87ed1e9b769d 00:28:12 ---> 917acf07e3e1 00:28:12 Step 14/22 : COPY --from=builder /device-modbus-go/cmd / 00:28:13 ---> aa9bfdd8e38e 00:28:13 Step 15/22 : COPY --from=builder /device-modbus-go/LICENSE / 00:28:14 ---> c766afd09692 00:28:14 Step 16/22 : COPY --from=builder /device-modbus-go/Attribution.txt / 00:28:15 ---> dd38945bd19a 00:28:15 Step 17/22 : EXPOSE 59901 00:28:15 ---> Running in efabe456bcd2 00:28:15 Removing intermediate container efabe456bcd2 00:28:15 ---> 512f67c68909 00:28:15 Step 18/22 : ENTRYPOINT ["/device-modbus"] 00:28:15 ---> Running in 91cd3dd38835 00:28:15 Removing intermediate container 91cd3dd38835 00:28:15 ---> 220d0df57acf 00:28:15 Step 19/22 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 00:28:15 ---> Running in 1d83b0b0c5be 00:28:16 Removing intermediate container 1d83b0b0c5be 00:28:16 ---> dbb151bd00ea 00:28:16 Step 20/22 : LABEL arch=arm64 00:28:16 ---> Running in 0d06717ca871 00:28:16 Removing intermediate container 0d06717ca871 00:28:16 ---> 4cbebafb656b 00:28:16 Step 21/22 : LABEL git_sha=cff51a9ff6984741fa695930352945683dc0d381 00:28:16 ---> Running in 3b62670b8e4f 00:28:17 Removing intermediate container 3b62670b8e4f 00:28:17 ---> 17d36ea0e548 00:28:17 Step 22/22 : LABEL version=0.0.0 00:28:17 ---> Running in 8eb113dfdb14 00:28:17 Removing intermediate container 8eb113dfdb14 00:28:17 ---> 9d4ed6b51c13 00:28:17 [Warning] One or more build-args [ARCH] were not consumed 00:28:17 Successfully built 9d4ed6b51c13 00:28:17 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 00:28:18 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 00:28:18 00:28:18 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 00:28:18 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 00:28:18 arm64: Pulling from edgex-lftools-log-publisher 00:28:18 8998bd30e6a1: Pulling fs layer 00:28:18 04944245beec: Pulling fs layer 00:28:18 699f458cf7ca: Pulling fs layer 00:28:18 765212b225bb: Pulling fs layer 00:28:18 f23df028b6ca: Pulling fs layer 00:28:18 d65c8cfc05b1: Pulling fs layer 00:28:18 2437ff75d9bd: Pulling fs layer 00:28:18 765212b225bb: Waiting 00:28:18 f23df028b6ca: Waiting 00:28:18 d65c8cfc05b1: Waiting 00:28:18 2437ff75d9bd: Waiting 00:28:18 04944245beec: Verifying Checksum 00:28:18 04944245beec: Download complete 00:28:18 765212b225bb: Verifying Checksum 00:28:18 765212b225bb: Download complete 00:28:18 f23df028b6ca: Verifying Checksum 00:28:18 f23df028b6ca: Download complete 00:28:18 d65c8cfc05b1: Verifying Checksum 00:28:18 d65c8cfc05b1: Download complete 00:28:18 699f458cf7ca: Verifying Checksum 00:28:18 699f458cf7ca: Download complete 00:28:19 8998bd30e6a1: Download complete 00:28:21 2437ff75d9bd: Verifying Checksum 00:28:21 2437ff75d9bd: Download complete 00:28:26 8998bd30e6a1: Pull complete 00:28:26 04944245beec: Pull complete 00:28:27 699f458cf7ca: Pull complete 00:28:27 765212b225bb: Pull complete 00:28:28 f23df028b6ca: Pull complete 00:28:28 d65c8cfc05b1: Pull complete 00:28:43 2437ff75d9bd: Pull complete 00:28:43 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 00:28:43 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 00:28:43 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 00:28:43 prd-ubuntu20.04-docker-arm64-4c-16g-16875 does not seem to be running inside a container 00:28:43 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/device-modbus-go/8 -v /w/workspace/device-modbus-go/8:/w/workspace/device-modbus-go/8:rw,z -v /w/workspace/device-modbus-go/8@tmp:/w/workspace/device-modbus-go/8@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 00:28:46 $ docker top a0b32bea7a4d7241d39bb8261ef55ba6f2d05f5ed46c70fdd34d65e5ef2a67d6 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 00:28:47 ---> job-cost.sh 00:28:47 lf-activate-venv: SKIPPING 00:28:47 INFO: No Stack... 00:28:47 INFO: Retrieving Pricing Info for: v3-standard-4 00:28:48 INFO: Archiving Costs [Pipeline] sh 00:28:49 + cat /w/workspace/device-modbus-go/8/archives/cost.csv 00:28:49 + cut -d, -f6 [Pipeline] lock 00:28:49 Trying to acquire lock on [jenkins-edgexfoundry-device-modbus-go-PR-480-8-stack-cost] 00:28:49 Resource [jenkins-edgexfoundry-device-modbus-go-PR-480-8-stack-cost] did not exist. Created. 00:28:49 Lock acquired on [jenkins-edgexfoundry-device-modbus-go-PR-480-8-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 00:28:50 /w/workspace/device-modbus-go/8@tmp/durable-4153f30c/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 00:28:50 + echo total: 0.10999999940395355 [Pipeline] stash 00:28:50 Warning: overwriting stash ‘stack-cost’ 00:28:50 Stashed 1 file(s) [Pipeline] } 00:28:50 Lock released on resource [jenkins-edgexfoundry-device-modbus-go-PR-480-8-stack-cost] [Pipeline] // lock [Pipeline] } 00:28:50 $ docker stop --time=1 a0b32bea7a4d7241d39bb8261ef55ba6f2d05f5ed46c70fdd34d65e5ef2a67d6 00:28:52 $ docker rm -f --volumes a0b32bea7a4d7241d39bb8261ef55ba6f2d05f5ed46c70fdd34d65e5ef2a67d6 [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 00:28:53 provisioning config files... 00:28:53 copy managed file [device-modbus-go-codecov-token] to file:/w/workspace/xfoundry_device-modbus-go_PR-480@tmp/config7593680080660740280tmp [Pipeline] { [Pipeline] sh 00:28:53 + set +x 00:28:53 + curl -s https://codecov.io/bash 00:28:53 + bash -s -- 00:28:53 00:28:53 _____ _ 00:28:53 / ____| | | 00:28:53 | | ___ __| | ___ ___ _____ __ 00:28:53 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 00:28:53 | |___| (_) | (_| | __/ (_| (_) \ V / 00:28:53 \_____\___/ \__,_|\___|\___\___/ \_/ 00:28:53 Bash-1.0.6 00:28:53 00:28:53 00:28:53 ==> git version 2.25.1 found 00:28:53 ==> 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 00:28:53 Release-Date: 2020-01-08 00:28:53 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 00:28:53 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 00:28:53 ==> Jenkins CI detected. 00:28:53 current dir:  /w/workspace/xfoundry_device-modbus-go_PR-480 00:28:53 project root: . 00:28:53 --> token set from env 00:28:53 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 00:28:53 ==> Running gcov in . (disable via -X gcov) 00:28:53 ==> Python coveragepy not found 00:28:53 ==> Searching for coverage reports in: 00:28:53 + . 00:28:53 -> Found 1 reports 00:28:53 ==> Detecting git/mercurial file structure 00:28:53 ==> Reading reports 00:28:53 + ./coverage.out bytes=24160 00:28:53 ==> Appending adjustments 00:28:53 https://docs.codecov.io/docs/fixing-reports 00:28:53 + Found adjustments 00:28:53 ==> Gzipping contents 00:28:53 4.0K /tmp/codecov.iX7Yel.gz 00:28:53 ==> Uploading reports 00:28:53 url: https://codecov.io 00:28:53 query: branch=PR-480&commit=cff51a9ff6984741fa695930352945683dc0d381&build=8&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-modbus-go%2Fjob%2FPR-480%2F8%2F&name=&tag=&slug=edgexfoundry%2Fdevice-modbus-go&service=jenkins&flags=&pr=480&job=&cmd_args= 00:28:53 -> Pinging Codecov 00:28:53 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=3a8d40b1-de00-4649-bfd4-bdc8ed99ae89&branch=PR-480&commit=cff51a9ff6984741fa695930352945683dc0d381&build=8&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-modbus-go%2Fjob%2FPR-480%2F8%2F&name=&tag=&slug=edgexfoundry%2Fdevice-modbus-go&service=jenkins&flags=&pr=480&job=&cmd_args= 00:28:53 -> Uploading to 00:28:53 https://storage.googleapis.com/codecov/v4/raw/2023-05-25/55DBCA73C666E3227836607328DD7E49/cff51a9ff6984741fa695930352945683dc0d381/6d3c372f-2478-44a0-893f-aea4e945e63d.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20230525%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20230525T002853Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=61f88c632aeac3ff78e41ed444c8d039c257c376ab0fefca882b5dd97e6d1c46 00:28:54 % Total % Received % Xferd Average Speed Time Time Time Current 00:28:54 Dload Upload Total Spent Left Speed 00:28:54 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 3924 0 0 100 3924 0 19330 --:--:-- --:--:-- --:--:-- 19235 100 3924 0 0 100 3924 0 18597 --:--:-- --:--:-- --:--:-- 18509 00:28:54 -> Reports have been successfully queued for processing at https://app.codecov.io/github/edgexfoundry/device-modbus-go/commit/cff51a9ff6984741fa695930352945683dc0d381 [Pipeline] } 00:28:54 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 00:28:54 + [ -d /w/workspace/xfoundry_device-modbus-go_PR-480/archives ] 00:28:54 + ls -al /w/workspace/xfoundry_device-modbus-go_PR-480/archives 00:28:54 total 16 00:28:54 drwxr-xr-x 3 root root 4096 May 25 00:16 . 00:28:54 drwxrwxr-x 11 jenkins jenkins 4096 May 25 00:16 .. 00:28:54 drwxr-xr-x 2 root root 4096 May 25 00:16 cost 00:28:54 -rw-r--r-- 1 root root 88 May 25 00:16 cost.csv 00:28:54 + sudo chown -R jenkins:jenkins /w/workspace/xfoundry_device-modbus-go_PR-480/archives 00:28:54 + ls -al /w/workspace/xfoundry_device-modbus-go_PR-480/archives 00:28:54 total 16 00:28:54 drwxr-xr-x 3 jenkins jenkins 4096 May 25 00:16 . 00:28:54 drwxrwxr-x 11 jenkins jenkins 4096 May 25 00:16 .. 00:28:54 drwxr-xr-x 2 jenkins jenkins 4096 May 25 00:16 cost 00:28:54 -rw-r--r-- 1 jenkins jenkins 88 May 25 00:16 cost.csv [Pipeline] libraryResource [Pipeline] sh 00:28:54 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 00:28:55 ---> package-listing.sh 00:28:55 ++ facter osfamily 00:28:55 ++ tr '[:upper:]' '[:lower:]' 00:28:56 + OS_FAMILY=debian 00:28:56 + workspace=/w/workspace/xfoundry_device-modbus-go_PR-480 00:28:56 + START_PACKAGES=/tmp/packages_start.txt 00:28:56 + END_PACKAGES=/tmp/packages_end.txt 00:28:56 + DIFF_PACKAGES=/tmp/packages_diff.txt 00:28:56 + PACKAGES=/tmp/packages_start.txt 00:28:56 + '[' /w/workspace/xfoundry_device-modbus-go_PR-480 ']' 00:28:56 + PACKAGES=/tmp/packages_end.txt 00:28:56 + case "${OS_FAMILY}" in 00:28:56 + dpkg -l 00:28:56 + grep '^ii' 00:28:56 + '[' -f /tmp/packages_start.txt ']' 00:28:56 + '[' -f /tmp/packages_end.txt ']' 00:28:56 + diff /tmp/packages_start.txt /tmp/packages_end.txt 00:28:56 + '[' /w/workspace/xfoundry_device-modbus-go_PR-480 ']' 00:28:56 + mkdir -p /w/workspace/xfoundry_device-modbus-go_PR-480/archives/ 00:28:56 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/xfoundry_device-modbus-go_PR-480/archives/ [Pipeline] echo 00:28:56 Launching container with: [--privileged -u 0:0 --net host -v /var/log/sysstat:/var/log/sysstat -v /var/log/secure:/var/log/secure -v /var/log/auth.log:/var/log/auth.log -v /w/workspace/xfoundry_device-modbus-go_PR-480/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 00:28:56 + facter operatingsystem [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 00:28:56 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 00:28:56 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 00:28:57 prd-ubuntu20.04-docker-8c-8g-16853 does not seem to be running inside a container 00:28:57 $ docker run -t -d -u 1001:1001 --privileged -u 0:0 --net host -v /var/log/sysstat:/var/log/sysstat -v /var/log/secure:/var/log/secure -v /var/log/auth.log:/var/log/auth.log -v /w/workspace/xfoundry_device-modbus-go_PR-480/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-480 -v /w/workspace/xfoundry_device-modbus-go_PR-480:/w/workspace/xfoundry_device-modbus-go_PR-480:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-480@tmp:/w/workspace/xfoundry_device-modbus-go_PR-480@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 00:28:57 $ docker top 19d692b2ce1ab9c9270818df84569f6f14f3b0c2a0714f47c7f73c33f40cb3aa -eo pid,comm [Pipeline] { [Pipeline] sh 00:28:57 + touch /tmp/pre-build-complete [Pipeline] sh 00:28:57 + mkdir -p /var/log/sysstat [Pipeline] sh 00:28:58 + ls /var/log/sa-host 00:28:58 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 00:28:58 provisioning config files... 00:28:58 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-480@tmp/config10710260791762300713tmp [Pipeline] { [Pipeline] echo 00:28:58 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 00:28:58 ---> create-netrc.sh [Pipeline] } 00:28:58 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 00:28:58 ---> python-tools-install.sh [Pipeline] echo 00:28:58 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 00:28:59 ---> sudo-logs.sh 00:28:59 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 00:28:59 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 00:28:59 ---> job-cost.sh 00:28:59 lf-activate-venv: SKIPPING 00:28:59 DEBUG: total: 0.2199999988079071 00:28:59 INFO: Retrieving Stack Cost... 00:28:59 INFO: Retrieving Pricing Info for: v3-standard-8 00:29:00 INFO: Archiving Costs [Pipeline] echo 00:29:00 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 00:29:00 ---> logs-deploy.sh 00:29:00 lf-activate-venv: SKIPPING 00:29:00 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-modbus-go/PR-480/8 00:29:00 INFO: archiving workspace using pattern(s): 00:29:01 Archives upload complete. 00:29:01 INFO: archiving logs to Nexus