Pull request #484 event Connecting to https://api.github.com using edgex-jenkins github personal access token Obtained Jenkinsfile from 9bde2d747de05544a39dfcd72cdc82a601752da1+4043164b7337e1db1bede6ff26841e4d6947650d (3196cb0728364c304596f7e1c718cef22c5589d1) 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-ssh16121014994167900971.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-ssh10426344074482300076.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-484/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-484/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh13914286997507992030.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-ssh2689439210341794610.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-484/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-484/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e@tmp/jenkins-gitclient-ssh11343204060574953067.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-16857 in /w/workspace/xfoundry_device-modbus-go_PR-484 [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-484 # 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/484/head:refs/remotes/origin/PR-484 +refs/heads/main:refs/remotes/origin/main # timeout=10 Merging remotes/origin/main commit 4043164b7337e1db1bede6ff26841e4d6947650d into PR head commit 9bde2d747de05544a39dfcd72cdc82a601752da1 Merge succeeded, producing 9bde2d747de05544a39dfcd72cdc82a601752da1 Checking out Revision 9bde2d747de05544a39dfcd72cdc82a601752da1 (PR-484) Commit message: "build(deps): Bump github.com/stretchr/testify from 1.8.2 to 1.8.3" First time build. Skipping changelog. [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 00:15:13 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 00:15:13 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 00:15:13 ========================================================= 00:15:13 EdgeX Global Pipelines Version Info 00:15:13 ========================================================= [Pipeline] libraryResource [Pipeline] sh > git config core.sparsecheckout # timeout=10 > git checkout -f 9bde2d747de05544a39dfcd72cdc82a601752da1 # 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 9bde2d747de05544a39dfcd72cdc82a601752da1 # timeout=10 > git rev-list --no-walk 6798326889d3c79811c4f7a8f040e734aba625e5 # timeout=10 00:15:14 ------------------- 00:15:14 stable info: 00:15:14 ------------------- 00:15:14 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 00:15:14 Commit SHA: 4fc256d9079ed2258907e613f84b1b8da264a4bd 00:15:14 Message: update stable to v1.0.249 00:15:14 ------------------- 00:15:14 experimental info: 00:15:14 ------------------- 00:15:14 Commited By: **** collab-it+edgex@linuxfoundation.org 00:15:14 Commit SHA: 4fc256d9079ed2258907e613f84b1b8da264a4bd 00:15:14 Message: update experimental to v1.0.249 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 00:15:15 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-modbus-go-settings [Pipeline] echo 00:15:15 [edgeXSetupEnvironment]: set envvar PROJECT = device-modbus-go [Pipeline] echo 00:15:15 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 00:15:15 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 00:15:15 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 00:15:15 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.20 [Pipeline] echo 00:15:15 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 00:15:15 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 00:15:15 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 00:15:15 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 00:15:15 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 00:15:15 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-modbus [Pipeline] echo 00:15:15 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 00:15:15 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 00:15:15 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 00:15:15 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 00:15:15 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 00:15:15 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 00:15:15 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 00:15:15 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 00:15:15 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 00:15:15 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 00:15:15 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 00:15:15 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 00:15:15 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 00:15:15 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 00:15:15 [edgeXSetupEnvironment]: set envvar SNYK_DEBUG = false [Pipeline] echo 00:15:15 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-484 [Pipeline] echo 00:15:15 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-484 [Pipeline] echo 00:15:15 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-484 [Pipeline] echo 00:15:15 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 9bde2d747de05544a39dfcd72cdc82a601752da1 [Pipeline] echo 00:15:15 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 9bde2d7 [Pipeline] echo 00:15:15 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 00:15:15 provisioning config files... 00:15:15 copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-484@tmp/config3457067951132990089tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 00:15:15 ---> docker-login.sh 00:15:15 nexus3.edgexfoundry.org:10001 00:15:16 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:15:16 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:15:16 Configure a credential helper to remove this warning. See 00:15:16 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:15:16 00:15:16 Login Succeeded 00:15:16 nexus3.edgexfoundry.org:10002 00:15:16 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:15:16 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:15:16 Configure a credential helper to remove this warning. See 00:15:16 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:15:16 00:15:16 Login Succeeded 00:15:16 nexus3.edgexfoundry.org:10003 00:15:16 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:15:16 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:15:16 Configure a credential helper to remove this warning. See 00:15:16 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:15:16 00:15:16 Login Succeeded 00:15:16 nexus3.edgexfoundry.org:10004 00:15:16 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:15:16 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:15:16 Configure a credential helper to remove this warning. See 00:15:16 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:15:16 00:15:16 Login Succeeded 00:15:16 docker.io 00:15:16 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:15:16 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:15:16 Configure a credential helper to remove this warning. See 00:15:16 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:15:16 00:15:16 Login Succeeded 00:15:16 ---> docker-login.sh ends [Pipeline] } 00:15:16 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 00:15:17 + git rev-list -1 --merges 9bde2d747de05544a39dfcd72cdc82a601752da1~1..9bde2d747de05544a39dfcd72cdc82a601752da1 [Pipeline] echo 00:15:17 -----------> git rev-list -1 --merges 9bde2d747de05544a39dfcd72cdc82a601752da1~1..9bde2d747de05544a39dfcd72cdc82a601752da1 9bde2d747de05544a39dfcd72cdc82a601752da1 [false] [Pipeline] sh 00:15:17 + git log --format=format:%s -1 9bde2d747de05544a39dfcd72cdc82a601752da1 [Pipeline] echo 00:15:17 ========================================================= 00:15:17 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 00:15:17 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 00:15:17 + git log --format=format:%s -1 9bde2d747de05544a39dfcd72cdc82a601752da1 [Pipeline] echo 00:15:17 [semverPrep] GIT_COMMIT: 9bde2d747de05544a39dfcd72cdc82a601752da1, Commit Message: build(deps): Bump github.com/stretchr/testify from 1.8.2 to 1.8.3 [Pipeline] echo 00:15:17 [semverPrep] This is not a build commit. [Pipeline] sh 00:15:18 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 00:15:18 + grep -v github /etc/ssh/ssh_known_hosts 00:15:18 + [ -e /tmp/ssh_known_hosts ] 00:15:18 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 00:15:18 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 00:15:18 + sudo tee -a /etc/ssh/ssh_known_hosts 00:15:18 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 00:15:18 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 00:15:18 00:15:18 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 00:15:18 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 00:15:18 0.1.4: Pulling from edgex-devops/py-git-semver 00:15:18 b85a868b505f: Pulling fs layer 00:15:18 e2be974225ed: Pulling fs layer 00:15:18 339a4e72a1f5: Pulling fs layer 00:15:18 988bab9f4d93: Pulling fs layer 00:15:18 1469e6f7b9e6: Pulling fs layer 00:15:18 eaf3925da568: Pulling fs layer 00:15:18 bab4dde63d76: Pulling fs layer 00:15:18 bde34c3a00c8: Pulling fs layer 00:15:18 b352a97aabf1: Pulling fs layer 00:15:18 4872d77fe225: Pulling fs layer 00:15:18 5851b861e8e6: Pulling fs layer 00:15:18 eaf3925da568: Waiting 00:15:18 bab4dde63d76: Waiting 00:15:18 bde34c3a00c8: Waiting 00:15:18 b352a97aabf1: Waiting 00:15:18 4872d77fe225: Waiting 00:15:18 5851b861e8e6: Waiting 00:15:18 1469e6f7b9e6: Waiting 00:15:18 988bab9f4d93: Waiting 00:15:18 e2be974225ed: Download complete 00:15:18 988bab9f4d93: Verifying Checksum 00:15:18 988bab9f4d93: Download complete 00:15:19 1469e6f7b9e6: Verifying Checksum 00:15:19 1469e6f7b9e6: Download complete 00:15:19 eaf3925da568: Verifying Checksum 00:15:19 eaf3925da568: Download complete 00:15:19 339a4e72a1f5: Verifying Checksum 00:15:19 339a4e72a1f5: Download complete 00:15:19 bde34c3a00c8: Download complete 00:15:19 b85a868b505f: Download complete 00:15:19 4872d77fe225: Verifying Checksum 00:15:19 4872d77fe225: Download complete 00:15:19 5851b861e8e6: Verifying Checksum 00:15:19 5851b861e8e6: Download complete 00:15:19 b352a97aabf1: Download complete 00:15:19 bab4dde63d76: Verifying Checksum 00:15:19 bab4dde63d76: Download complete 00:15:20 b85a868b505f: Pull complete 00:15:20 e2be974225ed: Pull complete 00:15:21 339a4e72a1f5: Pull complete 00:15:21 988bab9f4d93: Pull complete 00:15:21 1469e6f7b9e6: Pull complete 00:15:21 eaf3925da568: Pull complete 00:15:23 bab4dde63d76: Pull complete 00:15:23 bde34c3a00c8: Pull complete 00:15:24 b352a97aabf1: Pull complete 00:15:24 4872d77fe225: Pull complete 00:15:24 5851b861e8e6: Pull complete 00:15:24 Digest: sha256:59a28aa3b44c0bc56b9c3d2e9ecabe42e63693d939cc6e425eb8786f29f663d8 00:15:24 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 00:15:24 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 00:15:24 prd-ubuntu20.04-docker-8c-8g-16857 does not seem to be running inside a container 00:15:24 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/xfoundry_device-modbus-go_PR-484 -v /w/workspace/xfoundry_device-modbus-go_PR-484:/w/workspace/xfoundry_device-modbus-go_PR-484:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-484@tmp:/w/workspace/xfoundry_device-modbus-go_PR-484@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:28 $ docker top 1fe737396d10b22b60a481346e0f8a9049674fbe0f041cc654bb629b88019f1a -eo pid,comm 00:15:28 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:28 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 00:15:28 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 00:15:28 [ssh-agent] Looking for ssh-agent implementation... 00:15:28 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 00:15:28 $ docker exec 1fe737396d10b22b60a481346e0f8a9049674fbe0f041cc654bb629b88019f1a ssh-agent 00:15:28 SSH_AUTH_SOCK=/tmp/ssh-jbLIbXUYTxod/agent.31 00:15:28 SSH_AGENT_PID=37 00:15:28 Running ssh-add (command line suppressed) 00:15:28 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-484@tmp/private_key_2686958581373162056.key (/w/workspace/xfoundry_device-modbus-go_PR-484@tmp/private_key_2686958581373162056.key) 00:15:28 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 00:15:28 + git tag --points-at HEAD [Pipeline] } 00:15:28 $ docker exec --env ******** --env ******** 1fe737396d10b22b60a481346e0f8a9049674fbe0f041cc654bb629b88019f1a ssh-agent -k 00:15:28 unset SSH_AUTH_SOCK; 00:15:28 unset SSH_AGENT_PID; 00:15:28 echo Agent pid 37 killed; 00:15:28 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 00:15:28 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 00:15:28 [ssh-agent] Looking for ssh-agent implementation... 00:15:29 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 00:15:29 $ docker exec 1fe737396d10b22b60a481346e0f8a9049674fbe0f041cc654bb629b88019f1a ssh-agent 00:15:29 SSH_AUTH_SOCK=/tmp/ssh-BXQgTT4xMJkR/agent.71 00:15:29 SSH_AGENT_PID=77 00:15:29 Running ssh-add (command line suppressed) 00:15:29 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-484@tmp/private_key_15512458782897277935.key (/w/workspace/xfoundry_device-modbus-go_PR-484@tmp/private_key_15512458782897277935.key) 00:15:29 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 00:15:29 + git semver init 00:15:29 2023-05-25 00:15:29,791 [run_init] DEBUG init version:0.0.0 force:False 00:15:29 2023-05-25 00:15:29,793 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/xfoundry_device-modbus-go_PR-484/.semver 00:15:29 2023-05-25 00:15:29,794 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-modbus-go.git /w/workspace/xfoundry_device-modbus-go_PR-484/.semver 00:15:29 2023-05-25 00:15:29,794 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-modbus-go.git', '/w/workspace/xfoundry_device-modbus-go_PR-484/.semver'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-484, universal_newlines=False, shell=None, istream=None) 00:15:30 2023-05-25 00:15:30,568 [append_file] DEBUG append to file:/w/workspace/xfoundry_device-modbus-go_PR-484/.git/info/exclude 00:15:30 2023-05-25 00:15:30,568 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/xfoundry_device-modbus-go_PR-484/.semver/PR-484 with force:False 00:15:30 2023-05-25 00:15:30,569 [write_file] DEBUG write to file:/w/workspace/xfoundry_device-modbus-go_PR-484/.semver/PR-484 00:15:30 2023-05-25 00:15:30,572 [execute] INFO git cat-file --batch-check 00:15:30 2023-05-25 00:15:30,572 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-484/.semver, universal_newlines=False, shell=None, istream=) 00:15:30 2023-05-25 00:15:30,579 [execute] INFO git cat-file --batch 00:15:30 2023-05-25 00:15:30,580 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/xfoundry_device-modbus-go_PR-484/.semver, universal_newlines=False, shell=None, istream=) 00:15:30 2023-05-25 00:15:30,586 [read_version] DEBUG read version from /w/workspace/xfoundry_device-modbus-go_PR-484/.semver/PR-484 00:15:30 0.0.0 [Pipeline] } 00:15:30 $ docker exec --env ******** --env ******** 1fe737396d10b22b60a481346e0f8a9049674fbe0f041cc654bb629b88019f1a ssh-agent -k 00:15:30 unset SSH_AUTH_SOCK; 00:15:30 unset SSH_AGENT_PID; 00:15:30 echo Agent pid 77 killed; 00:15:30 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 00:15:31 + git semver [Pipeline] } 00:15:31 $ docker stop --time=1 1fe737396d10b22b60a481346e0f8a9049674fbe0f041cc654bb629b88019f1a 00:15:32 $ docker rm -f --volumes 1fe737396d10b22b60a481346e0f8a9049674fbe0f041cc654bb629b88019f1a [Pipeline] // withDockerContainer [Pipeline] sh 00:15:33 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 00:15:33 Stashed 1 file(s) [Pipeline] echo 00:15:33 [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:33 provisioning config files... 00:15:33 copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-484@tmp/config11285382328924120157tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 00:15:33 ---> docker-login.sh 00:15:33 nexus3.edgexfoundry.org:10001 00:15:33 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:15:33 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:15:33 Configure a credential helper to remove this warning. See 00:15:33 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:15:33 00:15:33 Login Succeeded 00:15:33 nexus3.edgexfoundry.org:10002 00:15:33 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:15:33 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:15:33 Configure a credential helper to remove this warning. See 00:15:33 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:15:33 00:15:33 Login Succeeded 00:15:33 nexus3.edgexfoundry.org:10003 00:15:34 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:15:34 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:15:34 Configure a credential helper to remove this warning. See 00:15:34 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:15:34 00:15:34 Login Succeeded 00:15:34 nexus3.edgexfoundry.org:10004 00:15:34 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:15:34 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:15:34 Configure a credential helper to remove this warning. See 00:15:34 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:15:34 00:15:34 Login Succeeded 00:15:34 docker.io 00:15:34 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:15:34 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:15:34 Configure a credential helper to remove this warning. See 00:15:34 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:15:34 00:15:34 Login Succeeded 00:15:34 ---> docker-login.sh ends [Pipeline] } 00:15:34 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 00:15:34 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 00:15:34 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 00:15:34 ========================================================= 00:15:34 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine] 00:15:34 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 00:15:34 + 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:34 Sending build context to Docker daemon 6.543MB 00:15:34 Step 1/10 : ARG BASE=golang:1.20-alpine3.17 00:15:34 Step 2/10 : FROM ${BASE} AS builder 00:15:34 1.20-alpine: Pulling from edgex-devops/edgex-golang-base 00:15:34 f56be85fc22e: Pulling fs layer 00:15:34 85791d961cd3: Pulling fs layer 00:15:34 d694b5ae8c79: Pulling fs layer 00:15:34 9f32a84ed3da: Pulling fs layer 00:15:34 4d19c01a9841: Pulling fs layer 00:15:34 9325e15d5711: Pulling fs layer 00:15:34 556b6ee489ea: Pulling fs layer 00:15:34 c5a4b2cf53e6: Pulling fs layer 00:15:34 9f32a84ed3da: Waiting 00:15:34 4d19c01a9841: Waiting 00:15:34 9325e15d5711: Waiting 00:15:34 556b6ee489ea: Waiting 00:15:34 c5a4b2cf53e6: Waiting 00:15:34 85791d961cd3: Verifying Checksum 00:15:34 85791d961cd3: Download complete 00:15:34 9f32a84ed3da: Download complete 00:15:34 4d19c01a9841: Verifying Checksum 00:15:34 4d19c01a9841: Download complete 00:15:34 f56be85fc22e: Verifying Checksum 00:15:34 f56be85fc22e: Download complete 00:15:34 9325e15d5711: Verifying Checksum 00:15:34 9325e15d5711: Download complete 00:15:34 f56be85fc22e: Pull complete 00:15:35 85791d961cd3: Pull complete 00:15:35 c5a4b2cf53e6: Verifying Checksum 00:15:35 c5a4b2cf53e6: Download complete 00:15:35 d694b5ae8c79: Verifying Checksum 00:15:35 d694b5ae8c79: Download complete 00:15:35 556b6ee489ea: Verifying Checksum 00:15:35 556b6ee489ea: Download complete 00:15:39 d694b5ae8c79: Pull complete 00:15:39 9f32a84ed3da: Pull complete 00:15:39 4d19c01a9841: Pull complete 00:15:39 9325e15d5711: Pull complete 00:15:42 556b6ee489ea: Pull complete 00:15:43 c5a4b2cf53e6: Pull complete 00:15:43 Digest: sha256:cdb650785bd12602035d3ff87499385c169773a4d12d6eaf394b34464d3a0f2b 00:15:43 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine 00:15:43 ---> c4be618373d6 00:15:43 Step 3/10 : ARG ADD_BUILD_TAGS="" 00:15:48 ---> Running in 6e13ad0104eb 00:15:48 Removing intermediate container 6e13ad0104eb 00:15:48 ---> f5d8464b1a42 00:15:48 Step 4/10 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 00:15:48 ---> Running in 5beb020956f6 00:15:48 Removing intermediate container 5beb020956f6 00:15:48 ---> fd15abc90b80 00:15:48 Step 5/10 : RUN apk add --update --no-cache make git openssh 00:15:48 ---> Running in 8ee500c56ee4 00:15:48 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 00:15:48 Still waiting to schedule task 00:15:48 Waiting for next available executor on ‘ubuntu20.04-docker-arm64-4c-16g’ 00:15:48 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 00:15:48 (1/8) Installing openssh-keygen (9.1_p1-r3) 00:15:48 (2/8) Installing libedit (20221030.3.1-r0) 00:15:48 (3/8) Installing openssh-client-common (9.1_p1-r3) 00:15:48 (4/8) Installing openssh-client-default (9.1_p1-r3) 00:15:48 (5/8) Installing openssh-sftp-server (9.1_p1-r3) 00:15:48 (6/8) Installing openssh-server-common (9.1_p1-r3) 00:15:48 (7/8) Installing openssh-server (9.1_p1-r3) 00:15:48 (8/8) Installing openssh (9.1_p1-r3) 00:15:48 Executing busybox-1.35.0-r29.trigger 00:15:48 OK: 270 MiB in 61 packages 00:15:49 Removing intermediate container 8ee500c56ee4 00:15:49 ---> 1da604692530 00:15:49 Step 6/10 : WORKDIR /device-modbus-go 00:15:49 ---> Running in 0b726f22186f 00:15:49 Removing intermediate container 0b726f22186f 00:15:49 ---> 2151f9f38f2d 00:15:49 Step 7/10 : COPY go.mod vendor* ./ 00:15:49 ---> 957ba65fc8f5 00:15:49 Step 8/10 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 00:15:49 ---> Running in 0c0f0f3b7e17 00:16:21 Removing intermediate container 0c0f0f3b7e17 00:16:21 ---> 351a881ff05d 00:16:21 Step 9/10 : COPY . . 00:16:21 ---> 3d7a5b3e084d 00:16:21 Step 10/10 : RUN ${MAKE} 00:16:21 ---> Running in 2fd58eb80169 00:16:22 noop 00:16:22 Removing intermediate container 2fd58eb80169 00:16:22 ---> b1a476fb48b9 00:16:22 Successfully built b1a476fb48b9 00:16:22 Successfully tagged ci-base-image-x86_64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 00:16:22 + docker inspect -f . ci-base-image-x86_64 00:16:22 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 00:16:22 prd-ubuntu20.04-docker-8c-8g-16857 does not seem to be running inside a container 00:16:22 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/xfoundry_device-modbus-go_PR-484 -v /w/workspace/xfoundry_device-modbus-go_PR-484:/w/workspace/xfoundry_device-modbus-go_PR-484:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-484@tmp:/w/workspace/xfoundry_device-modbus-go_PR-484@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:16:23 $ docker top 0ae4ce96b21c882dd18fd29e51163df4edda3be6bc5d19142189a4abd071f6b3 -eo pid,comm [Pipeline] { [Pipeline] sh 00:16:23 + go version 00:16:23 go version go1.20.2 linux/amd64 [Pipeline] } 00:16:23 $ docker stop --time=1 0ae4ce96b21c882dd18fd29e51163df4edda3be6bc5d19142189a4abd071f6b3 00:16:24 $ docker rm -f --volumes 0ae4ce96b21c882dd18fd29e51163df4edda3be6bc5d19142189a4abd071f6b3 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 00:16:25 + docker inspect -f . ci-base-image-x86_64 00:16:25 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 00:16:25 prd-ubuntu20.04-docker-8c-8g-16857 does not seem to be running inside a container 00:16:25 $ 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-484 -v /w/workspace/xfoundry_device-modbus-go_PR-484:/w/workspace/xfoundry_device-modbus-go_PR-484:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-484@tmp:/w/workspace/xfoundry_device-modbus-go_PR-484@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:16:25 $ docker top f7cdb203120235dc3c65141096584595f788e318629ac6b35bde936d4dfb84b5 -eo pid,comm [Pipeline] { [Pipeline] sh 00:16:25 + git config --global --add safe.directory /w/workspace/xfoundry_device-modbus-go_PR-484 [Pipeline] fileExists [Pipeline] sh 00:16:26 + make test 00:16:26 go test ./... -coverprofile=coverage.out 00:16:31 ? github.com/edgexfoundry/device-modbus-go [no test files] 00:16:41 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 00:16:41 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.015s coverage: 47.4% of statements 00:16:46 go vet ./... 00:16:50 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 00:16:50 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 00:16:50 ./bin/test-attribution-txt.sh [Pipeline] echo 00:16:50 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 00:16:50 $ docker stop --time=1 f7cdb203120235dc3c65141096584595f788e318629ac6b35bde936d4dfb84b5 00:16:53 $ docker rm -f --volumes f7cdb203120235dc3c65141096584595f788e318629ac6b35bde936d4dfb84b5 [Pipeline] // withDockerContainer [Pipeline] sh 00:16:54 + sudo chown -R jenkins:jenkins . [Pipeline] stash 00:16:54 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 00:16:54 + sudo chown -R jenkins:jenkins . [Pipeline] sh 00:16:55 + ls -al . 00:16:55 total 184 00:16:55 drwxrwxr-x 10 jenkins jenkins 4096 May 25 00:16 . 00:16:55 drwxrwxr-x 4 jenkins jenkins 4096 May 25 00:15 .. 00:16:55 -rw-rw-r-- 1 jenkins jenkins 140 May 25 00:15 .dockerignore 00:16:55 drwxrwxr-x 8 jenkins jenkins 4096 May 25 00:15 .git 00:16:55 drwxrwxr-x 3 jenkins jenkins 4096 May 25 00:15 .github 00:16:55 -rw-rw-r-- 1 jenkins jenkins 331 May 25 00:15 .gitignore 00:16:55 -rw-rw-r-- 1 jenkins jenkins 41 May 25 00:15 .golangci.yml 00:16:55 drwxr-xr-x 3 jenkins jenkins 4096 May 25 00:15 .semver 00:16:55 -rw-rw-r-- 1 jenkins jenkins 10132 May 25 00:15 Attribution.txt 00:16:55 -rw-rw-r-- 1 jenkins jenkins 11576 May 25 00:15 CHANGELOG.md 00:16:55 -rw-rw-r-- 1 jenkins jenkins 1365 May 25 00:15 Dockerfile 00:16:55 -rw-rw-r-- 1 jenkins jenkins 677 May 25 00:15 GOVERNANCE.md 00:16:55 -rw-rw-r-- 1 jenkins jenkins 680 May 25 00:15 Jenkinsfile 00:16:55 -rw-rw-r-- 1 jenkins jenkins 11340 May 25 00:15 LICENSE 00:16:55 -rw-rw-r-- 1 jenkins jenkins 1705 May 25 00:15 Makefile 00:16:55 -rw-rw-r-- 1 jenkins jenkins 622 May 25 00:15 OWNERS.md 00:16:55 -rw-rw-r-- 1 jenkins jenkins 4554 May 25 00:15 README.md 00:16:55 -rw-rw-r-- 1 jenkins jenkins 5 May 25 00:15 VERSION 00:16:55 drwxrwxr-x 2 jenkins jenkins 4096 May 25 00:15 bin 00:16:55 drwxrwxr-x 3 jenkins jenkins 4096 May 25 00:15 cmd 00:16:55 -rw-r--r-- 1 jenkins jenkins 24160 May 25 00:16 coverage.out 00:16:55 -rw-rw-r-- 1 jenkins jenkins 3405 May 25 00:15 go.mod 00:16:55 -rw-rw-r-- 1 jenkins jenkins 31664 May 25 00:15 go.sum 00:16:55 drwxrwxr-x 3 jenkins jenkins 4096 May 25 00:15 internal 00:16:55 drwxrwxr-x 2 jenkins jenkins 4096 May 25 00:15 simulator 00:16:55 drwxrwxr-x 4 jenkins jenkins 4096 May 25 00:15 snap 00:16:55 -rw-rw-r-- 1 jenkins jenkins 229 May 25 00:15 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 00:16:55 + 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=9bde2d747de05544a39dfcd72cdc82a601752da1 --label arch=amd64 --label version=0.0.0 . 00:16:55 Sending build context to Docker daemon 6.568MB 00:16:55 Step 1/22 : ARG BASE=golang:1.20-alpine3.17 00:16:55 Step 2/22 : FROM ${BASE} AS builder 00:16:55 ---> b1a476fb48b9 00:16:55 Step 3/22 : ARG ADD_BUILD_TAGS="" 00:16:55 ---> Running in 14b3d9102b35 00:16:55 Removing intermediate container 14b3d9102b35 00:16:55 ---> dbfc0f0df398 00:16:55 Step 4/22 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 00:16:55 ---> Running in 92f8fb8e95e6 00:16:55 Removing intermediate container 92f8fb8e95e6 00:16:55 ---> 395499b0fa4e 00:16:55 Step 5/22 : RUN apk add --update --no-cache make git openssh 00:16:56 ---> Running in fa5943e69ae2 00:16:56 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 00:16:56 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 00:16:56 OK: 270 MiB in 61 packages 00:16:56 Removing intermediate container fa5943e69ae2 00:16:56 ---> 141b8bdfaed7 00:16:56 Step 6/22 : WORKDIR /device-modbus-go 00:16:56 ---> Running in 70da923e291d 00:16:56 Removing intermediate container 70da923e291d 00:16:56 ---> 0d23c167193c 00:16:56 Step 7/22 : COPY go.mod vendor* ./ 00:16:57 ---> 58cf7662a3ed 00:16:57 Step 8/22 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 00:16:57 ---> Running in 4e136465de7f 00:16:57 Removing intermediate container 4e136465de7f 00:16:57 ---> d90150ec1d1e 00:16:57 Step 9/22 : COPY . . 00:16:58 ---> 3fa25cbd769a 00:16:58 Step 10/22 : RUN ${MAKE} 00:16:58 ---> Running in 225aaa019778 00:16:58 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:17:20 Removing intermediate container 225aaa019778 00:17:20 ---> 71efadaac5eb 00:17:20 Step 11/22 : FROM alpine:3.17 00:17:20 3.17: Pulling from library/alpine 00:17:20 f56be85fc22e: Already exists 00:17:20 Digest: sha256:124c7d2707904eea7431fffe91522a01e5a861a624ee31d03372cc1d138a3126 00:17:20 Status: Downloaded newer image for alpine:3.17 00:17:20 ---> 9ed4aefc74f6 00:17:20 Step 12/22 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IoTech Ltd' 00:17:20 ---> Running in a6261c56e308 00:17:20 Removing intermediate container a6261c56e308 00:17:20 ---> 31b6294e0674 00:17:20 Step 13/22 : RUN apk add --update --no-cache dumb-init 00:17:20 ---> Running in 4c30a57b55b3 00:17:20 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 00:17:21 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 00:17:21 (1/1) Installing dumb-init (1.2.5-r2) 00:17:21 Executing busybox-1.35.0-r29.trigger 00:17:21 OK: 7 MiB in 16 packages 00:17:21 Removing intermediate container 4c30a57b55b3 00:17:21 ---> a2f808795b28 00:17:21 Step 14/22 : COPY --from=builder /device-modbus-go/cmd / 00:17:22 ---> 784dd653c006 00:17:22 Step 15/22 : COPY --from=builder /device-modbus-go/LICENSE / 00:17:22 ---> 2e9d201ddcd0 00:17:22 Step 16/22 : COPY --from=builder /device-modbus-go/Attribution.txt / 00:17:22 ---> 485d0104dafe 00:17:22 Step 17/22 : EXPOSE 59901 00:17:22 ---> Running in 33f9bd5a48e1 00:17:23 Removing intermediate container 33f9bd5a48e1 00:17:23 ---> 99f695e7c290 00:17:23 Step 18/22 : ENTRYPOINT ["/device-modbus"] 00:17:23 ---> Running in 0cb751f1f127 00:17:23 Removing intermediate container 0cb751f1f127 00:17:23 ---> 3c588a3d9058 00:17:23 Step 19/22 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 00:17:23 ---> Running in f830e7b46dda 00:17:23 Removing intermediate container f830e7b46dda 00:17:23 ---> 44fc0abff941 00:17:23 Step 20/22 : LABEL arch=amd64 00:17:23 ---> Running in d657c376b5aa 00:17:23 Removing intermediate container d657c376b5aa 00:17:23 ---> ed9d513d7bea 00:17:23 Step 21/22 : LABEL git_sha=9bde2d747de05544a39dfcd72cdc82a601752da1 00:17:23 ---> Running in 2b27db071a49 00:17:23 Removing intermediate container 2b27db071a49 00:17:23 ---> fc826aa7f084 00:17:23 Step 22/22 : LABEL version=0.0.0 00:17:23 ---> Running in 1396af5251aa 00:17:23 Removing intermediate container 1396af5251aa 00:17:23 ---> e9f8c0514173 00:17:23 [Warning] One or more build-args [ARCH] were not consumed 00:17:23 Successfully built e9f8c0514173 00:17:23 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:17:23 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 00:17:23 00:17:23 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 00:17:24 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 00:17:24 latest: Pulling from edgex-lftools-log-publisher 00:17:24 5eb5b503b376: Pulling fs layer 00:17:24 5c69ac0246d0: Pulling fs layer 00:17:24 ec43610c2a17: Pulling fs layer 00:17:24 3a2ae6a8a46f: Pulling fs layer 00:17:24 33b1e0a273af: Pulling fs layer 00:17:24 5d3b04190fa2: Pulling fs layer 00:17:24 2f39f015ded8: Pulling fs layer 00:17:24 3a2ae6a8a46f: Waiting 00:17:24 33b1e0a273af: Waiting 00:17:24 2f39f015ded8: Waiting 00:17:24 5d3b04190fa2: Waiting 00:17:24 5c69ac0246d0: Download complete 00:17:24 3a2ae6a8a46f: Download complete 00:17:24 33b1e0a273af: Verifying Checksum 00:17:24 33b1e0a273af: Download complete 00:17:24 5d3b04190fa2: Verifying Checksum 00:17:24 5d3b04190fa2: Download complete 00:17:24 ec43610c2a17: Verifying Checksum 00:17:24 ec43610c2a17: Download complete 00:17:24 5eb5b503b376: Verifying Checksum 00:17:24 5eb5b503b376: Download complete 00:17:24 2f39f015ded8: Download complete 00:17:25 5eb5b503b376: Pull complete 00:17:25 5c69ac0246d0: Pull complete 00:17:25 ec43610c2a17: Pull complete 00:17:25 3a2ae6a8a46f: Pull complete 00:17:26 33b1e0a273af: Pull complete 00:17:26 5d3b04190fa2: Pull complete 00:17:30 2f39f015ded8: Pull complete 00:17:30 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 00:17:30 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 00:17:30 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 00:17:30 prd-ubuntu20.04-docker-8c-8g-16857 does not seem to be running inside a container 00:17:30 $ 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-484 -v /w/workspace/xfoundry_device-modbus-go_PR-484:/w/workspace/xfoundry_device-modbus-go_PR-484:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-484@tmp:/w/workspace/xfoundry_device-modbus-go_PR-484@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:17:36 $ docker top 7be761260fca44ac15acb1f7ed7480d1d359e160496f89081ed7ca88ea477077 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 00:17:36 ---> job-cost.sh 00:17:36 lf-activate-venv: SKIPPING 00:17:36 INFO: No Stack... 00:17:37 INFO: Retrieving Pricing Info for: v3-standard-8 00:17:37 INFO: Archiving Costs [Pipeline] sh 00:17:37 + cat /w/workspace/xfoundry_device-modbus-go_PR-484/archives/cost.csv 00:17:37 + cut -d, -f6 [Pipeline] lock 00:17:37 Trying to acquire lock on [jenkins-edgexfoundry-device-modbus-go-PR-484-5-stack-cost] 00:17:37 Resource [jenkins-edgexfoundry-device-modbus-go-PR-484-5-stack-cost] did not exist. Created. 00:17:37 Lock acquired on [jenkins-edgexfoundry-device-modbus-go-PR-484-5-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 00:17:38 + echo total: 0.2199999988079071 [Pipeline] stash 00:17:38 Stashed 1 file(s) [Pipeline] } 00:17:38 Lock released on resource [jenkins-edgexfoundry-device-modbus-go-PR-484-5-stack-cost] [Pipeline] // lock [Pipeline] } 00:17:38 $ docker stop --time=1 7be761260fca44ac15acb1f7ed7480d1d359e160496f89081ed7ca88ea477077 00:17:39 $ docker rm -f --volumes 7be761260fca44ac15acb1f7ed7480d1d359e160496f89081ed7ca88ea477077 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 00:18:52 Running on prd-ubuntu20.04-docker-arm64-4c-16g-16876 in /w/workspace/xfoundry_device-modbus-go_PR-484 [Pipeline] { [Pipeline] ws 00:18:52 Running in /w/workspace/device-modbus-go/5 [Pipeline] { [Pipeline] checkout 00:18:52 Selected Git installation does not exist. Using Default 00:18:52 The recommended git tool is: NONE 00:19:00 using credential edgex-jenkins-ssh 00:19:00 Cloning the remote Git repository 00:19:00 Cloning repository git@github.com:edgexfoundry/device-modbus-go.git 00:19:00 > git init /w/workspace/device-modbus-go/5 # timeout=10 00:19:00 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 00:19:00 > git --version # timeout=10 00:19:00 > git --version # 'git version 2.25.1' 00:19:00 using GIT_SSH to set credentials SSH Credentials for GitHub 00:19:01 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 00:19:02 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 00:19:02 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 00:19:04 Merging remotes/origin/main commit 4043164b7337e1db1bede6ff26841e4d6947650d into PR head commit 9bde2d747de05544a39dfcd72cdc82a601752da1 00:19:03 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 00:19:03 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 00:19:03 using GIT_SSH to set credentials SSH Credentials for GitHub 00:19:03 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/pull/484/head:refs/remotes/origin/PR-484 +refs/heads/main:refs/remotes/origin/main # timeout=10 00:19:04 > git config core.sparsecheckout # timeout=10 00:19:04 > git checkout -f 9bde2d747de05544a39dfcd72cdc82a601752da1 # timeout=10 00:19:04 Merge succeeded, producing 9bde2d747de05544a39dfcd72cdc82a601752da1 00:19:04 Checking out Revision 9bde2d747de05544a39dfcd72cdc82a601752da1 (PR-484) 00:19:05 Commit message: "build(deps): Bump github.com/stretchr/testify from 1.8.2 to 1.8.3" [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 00:19:04 > git remote # timeout=10 00:19:04 > git config --get remote.origin.url # timeout=10 00:19:04 using GIT_SSH to set credentials SSH Credentials for GitHub 00:19:04 > git merge 4043164b7337e1db1bede6ff26841e4d6947650d # timeout=10 00:19:04 > git rev-parse HEAD^{commit} # timeout=10 00:19:04 > git config core.sparsecheckout # timeout=10 00:19:04 > git checkout -f 9bde2d747de05544a39dfcd72cdc82a601752da1 # timeout=10 00:19:06 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 00:19:06 % Total % Received % Xferd Average Speed Time Time Time Current 00:19:06 Dload Upload Total Spent Left Speed 00:19:06 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 12751 100 12751 0 0 180k 0 --:--:-- --:--:-- --:--:-- 183k [Pipeline] sh 00:19:07 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 00:19:07 + sudo tee /etc/docker/daemon.new 00:19:07 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 00:19:07 { 00:19:07 "registry-mirrors": [ 00:19:07 "https://nexus3.edgexfoundry.org:10001" 00:19:07 ], 00:19:07 "bip": "10.250.0.254/24", 00:19:07 "hosts": [ 00:19:07 "tcp://0.0.0.0:5555", 00:19:07 "unix:///var/run/docker.sock" 00:19:07 ], 00:19:07 "mtu": 1458, 00:19:07 "selinux-enabled": true, 00:19:07 "seccomp-profile": "/etc/docker/seccomp.json" 00:19:07 } [Pipeline] sh 00:19:07 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 00:19:08 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 00:19:26 provisioning config files... 00:19:26 copy managed file [device-modbus-go-settings] to file:/w/workspace/device-modbus-go/5@tmp/config16095148943525335107tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 00:19:26 ---> docker-login.sh 00:19:26 nexus3.edgexfoundry.org:10001 00:19:27 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:19:27 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:19:27 Configure a credential helper to remove this warning. See 00:19:27 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:19:27 00:19:27 Login Succeeded 00:19:27 nexus3.edgexfoundry.org:10002 00:19:28 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:19:28 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:19:28 Configure a credential helper to remove this warning. See 00:19:28 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:19:28 00:19:28 Login Succeeded 00:19:28 nexus3.edgexfoundry.org:10003 00:19:28 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:19:28 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:19:28 Configure a credential helper to remove this warning. See 00:19:28 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:19:28 00:19:28 Login Succeeded 00:19:28 nexus3.edgexfoundry.org:10004 00:19:28 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:19:29 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:19:29 Configure a credential helper to remove this warning. See 00:19:29 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:19:29 00:19:29 Login Succeeded 00:19:29 docker.io 00:19:29 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:19:29 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:19:29 Configure a credential helper to remove this warning. See 00:19:29 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:19:29 00:19:29 Login Succeeded 00:19:29 ---> docker-login.sh ends [Pipeline] } 00:19:29 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 00:19:30 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 00:19:30 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 00:19:30 ========================================================= 00:19:30 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine] 00:19:30 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 00:19:30 + 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:19:30 Sending build context to Docker daemon 3.424MB 00:19:31 Step 1/10 : ARG BASE=golang:1.20-alpine3.17 00:19:31 Step 2/10 : FROM ${BASE} AS builder 00:19:31 1.20-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 00:19:31 c41833b44d91: Pulling fs layer 00:19:31 ed15518f5707: Pulling fs layer 00:19:31 feae8fd75edb: Pulling fs layer 00:19:31 242c74f7c9fa: Pulling fs layer 00:19:31 3cdef696dda3: Pulling fs layer 00:19:31 2ced38df9373: Pulling fs layer 00:19:31 58f1dce35555: Pulling fs layer 00:19:31 3cdef696dda3: Waiting 00:19:31 2ced38df9373: Waiting 00:19:31 58f1dce35555: Waiting 00:19:31 ed15518f5707: Verifying Checksum 00:19:31 ed15518f5707: Download complete 00:19:31 242c74f7c9fa: Verifying Checksum 00:19:31 242c74f7c9fa: Download complete 00:19:31 3cdef696dda3: Verifying Checksum 00:19:31 3cdef696dda3: Download complete 00:19:31 c41833b44d91: Verifying Checksum 00:19:31 c41833b44d91: Download complete 00:19:32 c41833b44d91: Pull complete 00:19:32 58f1dce35555: Verifying Checksum 00:19:32 58f1dce35555: Download complete 00:19:32 ed15518f5707: Pull complete 00:19:34 feae8fd75edb: Verifying Checksum 00:19:34 feae8fd75edb: Download complete 00:19:34 2ced38df9373: Verifying Checksum 00:19:34 2ced38df9373: Download complete 00:19:46 feae8fd75edb: Pull complete 00:19:46 242c74f7c9fa: Pull complete 00:19:46 3cdef696dda3: Pull complete 00:19:57 2ced38df9373: Pull complete 00:19:59 58f1dce35555: Pull complete 00:19:59 Digest: sha256:3b55595e96c696ae732e8cb20cde5b1ff7282a1fe1423a8de67617af8d15ea1e 00:19:59 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine 00:19:59 ---> fadd8f120f05 00:19:59 Step 3/10 : ARG ADD_BUILD_TAGS="" 00:20:00 ---> Running in 472c463861c1 00:20:01 Removing intermediate container 472c463861c1 00:20:01 ---> 82b13d995a22 00:20:01 Step 4/10 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 00:20:01 ---> Running in aa1375993bc1 00:20:01 Removing intermediate container aa1375993bc1 00:20:01 ---> e39783e62896 00:20:01 Step 5/10 : RUN apk add --update --no-cache make git openssh 00:20:01 ---> Running in 6bbe6cec32ae 00:20:03 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 00:20:03 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 00:20:05 (1/8) Installing openssh-keygen (9.1_p1-r3) 00:20:05 (2/8) Installing libedit (20221030.3.1-r0) 00:20:05 (3/8) Installing openssh-client-common (9.1_p1-r3) 00:20:05 (4/8) Installing openssh-client-default (9.1_p1-r3) 00:20:05 (5/8) Installing openssh-sftp-server (9.1_p1-r3) 00:20:05 (6/8) Installing openssh-server-common (9.1_p1-r3) 00:20:05 (7/8) Installing openssh-server (9.1_p1-r3) 00:20:05 (8/8) Installing openssh (9.1_p1-r3) 00:20:05 Executing busybox-1.35.0-r29.trigger 00:20:05 OK: 270 MiB in 61 packages 00:20:07 Removing intermediate container 6bbe6cec32ae 00:20:07 ---> 53309d6f8a42 00:20:07 Step 6/10 : WORKDIR /device-modbus-go 00:20:07 ---> Running in ed7a085edffe 00:20:07 Removing intermediate container ed7a085edffe 00:20:07 ---> 8668a2a4c3ca 00:20:07 Step 7/10 : COPY go.mod vendor* ./ 00:20:07 ---> e5f640b6f809 00:20:07 Step 8/10 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 00:20:07 ---> Running in ca052f11d82a 00:21:29 Removing intermediate container ca052f11d82a 00:21:29 ---> 4c89aca850bd 00:21:29 Step 9/10 : COPY . . 00:21:29 ---> efe4c90133a1 00:21:29 Step 10/10 : RUN ${MAKE} 00:21:29 ---> Running in 8a6c0a334099 00:21:29 noop 00:21:29 Removing intermediate container 8a6c0a334099 00:21:29 ---> dc1e3be8d000 00:21:29 Successfully built dc1e3be8d000 00:21:29 Successfully tagged ci-base-image-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 00:21:30 + docker inspect -f . ci-base-image-arm64 00:21:30 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 00:21:30 prd-ubuntu20.04-docker-arm64-4c-16g-16876 does not seem to be running inside a container 00:21:30 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-modbus-go/5 -v /w/workspace/device-modbus-go/5:/w/workspace/device-modbus-go/5:rw,z -v /w/workspace/device-modbus-go/5@tmp:/w/workspace/device-modbus-go/5@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 ******** ci-base-image-arm64 cat 00:21:35 $ docker top df2f819d29a6874b4bddde2304526568f11b5832ec2a52042a87efdf8134ee46 -eo pid,comm [Pipeline] { [Pipeline] sh 00:21:36 + go version 00:21:36 go version go1.20.2 linux/arm64 [Pipeline] } 00:21:36 $ docker stop --time=1 df2f819d29a6874b4bddde2304526568f11b5832ec2a52042a87efdf8134ee46 00:21:37 $ docker rm -f --volumes df2f819d29a6874b4bddde2304526568f11b5832ec2a52042a87efdf8134ee46 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 00:21:38 + docker inspect -f . ci-base-image-arm64 00:21:38 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 00:21:38 prd-ubuntu20.04-docker-arm64-4c-16g-16876 does not seem to be running inside a container 00:21:38 $ 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/5 -v /w/workspace/device-modbus-go/5:/w/workspace/device-modbus-go/5:rw,z -v /w/workspace/device-modbus-go/5@tmp:/w/workspace/device-modbus-go/5@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 ******** ci-base-image-arm64 cat 00:21:40 $ docker top d8b91ca42c9eb445cdfce6c27ab2b9ede3a1a2b5ecb0f973dead68ebf35b8e90 -eo pid,comm [Pipeline] { [Pipeline] sh 00:21:41 + git config --global --add safe.directory /w/workspace/device-modbus-go/5 [Pipeline] fileExists [Pipeline] sh 00:21:41 + make test 00:21:41 go test ./... -coverprofile=coverage.out 00:22:28 ? github.com/edgexfoundry/device-modbus-go [no test files] 00:24:50 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 00:24:50 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.085s coverage: 47.4% of statements 00:24:50 WARNING: Linting skipped (not on x86_64 or linter not installed) 00:24:50 go vet ./... 00:25:17 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 00:25:17 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 00:25:17 ./bin/test-attribution-txt.sh [Pipeline] echo 00:25:17 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 00:25:17 $ docker stop --time=1 d8b91ca42c9eb445cdfce6c27ab2b9ede3a1a2b5ecb0f973dead68ebf35b8e90 00:25:19 $ docker rm -f --volumes d8b91ca42c9eb445cdfce6c27ab2b9ede3a1a2b5ecb0f973dead68ebf35b8e90 [Pipeline] // withDockerContainer [Pipeline] sh 00:25:21 + sudo chown -R jenkins:jenkins . [Pipeline] stash 00:25:21 Warning: overwriting stash ‘coverage-report’ 00:25:21 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 00:25:22 + sudo chown -R jenkins:jenkins . [Pipeline] sh 00:25:22 + ls -al . 00:25:22 total 180 00:25:22 drwxrwxr-x 9 jenkins jenkins 4096 May 25 00:21 . 00:25:22 drwxrwxr-x 4 jenkins jenkins 4096 May 25 00:19 .. 00:25:22 -rw-rw-r-- 1 jenkins jenkins 140 May 25 00:19 .dockerignore 00:25:22 drwxrwxr-x 8 jenkins jenkins 4096 May 25 00:19 .git 00:25:22 drwxrwxr-x 3 jenkins jenkins 4096 May 25 00:19 .github 00:25:22 -rw-rw-r-- 1 jenkins jenkins 331 May 25 00:19 .gitignore 00:25:22 -rw-rw-r-- 1 jenkins jenkins 41 May 25 00:19 .golangci.yml 00:25:22 -rw-rw-r-- 1 jenkins jenkins 10132 May 25 00:19 Attribution.txt 00:25:22 -rw-rw-r-- 1 jenkins jenkins 11576 May 25 00:19 CHANGELOG.md 00:25:22 -rw-rw-r-- 1 jenkins jenkins 1365 May 25 00:19 Dockerfile 00:25:22 -rw-rw-r-- 1 jenkins jenkins 677 May 25 00:19 GOVERNANCE.md 00:25:22 -rw-rw-r-- 1 jenkins jenkins 680 May 25 00:19 Jenkinsfile 00:25:22 -rw-rw-r-- 1 jenkins jenkins 11340 May 25 00:19 LICENSE 00:25:22 -rw-rw-r-- 1 jenkins jenkins 1705 May 25 00:19 Makefile 00:25:22 -rw-rw-r-- 1 jenkins jenkins 622 May 25 00:19 OWNERS.md 00:25:22 -rw-rw-r-- 1 jenkins jenkins 4554 May 25 00:19 README.md 00:25:22 -rw-rw-r-- 1 jenkins jenkins 5 May 25 00:15 VERSION 00:25:22 drwxrwxr-x 2 jenkins jenkins 4096 May 25 00:19 bin 00:25:22 drwxrwxr-x 3 jenkins jenkins 4096 May 25 00:19 cmd 00:25:22 -rw-r--r-- 1 jenkins jenkins 24160 May 25 00:24 coverage.out 00:25:22 -rw-rw-r-- 1 jenkins jenkins 3405 May 25 00:19 go.mod 00:25:22 -rw-rw-r-- 1 jenkins jenkins 31664 May 25 00:19 go.sum 00:25:22 drwxrwxr-x 3 jenkins jenkins 4096 May 25 00:19 internal 00:25:22 drwxrwxr-x 2 jenkins jenkins 4096 May 25 00:19 simulator 00:25:22 drwxrwxr-x 4 jenkins jenkins 4096 May 25 00:19 snap 00:25:22 -rw-rw-r-- 1 jenkins jenkins 229 May 25 00:19 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 00:25:22 + 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=9bde2d747de05544a39dfcd72cdc82a601752da1 --label arch=arm64 --label version=0.0.0 . 00:25:23 Sending build context to Docker daemon 3.449MB 00:25:23 Step 1/22 : ARG BASE=golang:1.20-alpine3.17 00:25:23 Step 2/22 : FROM ${BASE} AS builder 00:25:23 ---> dc1e3be8d000 00:25:23 Step 3/22 : ARG ADD_BUILD_TAGS="" 00:25:23 ---> Running in 31fa45313ef9 00:25:23 Removing intermediate container 31fa45313ef9 00:25:23 ---> c62583e89505 00:25:23 Step 4/22 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 00:25:23 ---> Running in 9198c52ea582 00:25:24 Removing intermediate container 9198c52ea582 00:25:24 ---> e4f53c725dd2 00:25:24 Step 5/22 : RUN apk add --update --no-cache make git openssh 00:25:24 ---> Running in 94424a16d44f 00:25:25 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 00:25:26 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 00:25:27 OK: 270 MiB in 61 packages 00:25:28 Removing intermediate container 94424a16d44f 00:25:28 ---> 9309c820fed2 00:25:28 Step 6/22 : WORKDIR /device-modbus-go 00:25:28 ---> Running in 136683f32f97 00:25:28 Removing intermediate container 136683f32f97 00:25:28 ---> 848bb986327c 00:25:28 Step 7/22 : COPY go.mod vendor* ./ 00:25:29 ---> 6ad16bc439dc 00:25:29 Step 8/22 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 00:25:29 ---> Running in 3f3e201ec83e 00:25:32 Removing intermediate container 3f3e201ec83e 00:25:32 ---> 9ede4e558059 00:25:32 Step 9/22 : COPY . . 00:25:33 ---> 924ec68a86f1 00:25:33 Step 10/22 : RUN ${MAKE} 00:25:33 ---> Running in 35cb1333fb5f 00:25:34 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:11 Removing intermediate container 35cb1333fb5f 00:28:11 ---> 873f5446622c 00:28:11 Step 11/22 : FROM alpine:3.17 00:28:11 3.17: Pulling from library/alpine 00:28:11 c41833b44d91: Already exists 00:28:11 Digest: sha256:124c7d2707904eea7431fffe91522a01e5a861a624ee31d03372cc1d138a3126 00:28:11 Status: Downloaded newer image for alpine:3.17 00:28:11 ---> 51e60588ff2c 00:28:11 Step 12/22 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IoTech Ltd' 00:28:11 ---> Running in 0f02a1c39656 00:28:11 Removing intermediate container 0f02a1c39656 00:28:11 ---> 965715c77a92 00:28:11 Step 13/22 : RUN apk add --update --no-cache dumb-init 00:28:11 ---> Running in 1f019ba0b7ea 00:28:11 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 00:28:11 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:11 Removing intermediate container 1f019ba0b7ea 00:28:11 ---> cd5b23f1d93f 00:28:11 Step 14/22 : COPY --from=builder /device-modbus-go/cmd / 00:28:11 ---> 00d71d59c480 00:28:11 Step 15/22 : COPY --from=builder /device-modbus-go/LICENSE / 00:28:12 ---> 0e6b3a390085 00:28:12 Step 16/22 : COPY --from=builder /device-modbus-go/Attribution.txt / 00:28:12 ---> 1a7063caaf4f 00:28:12 Step 17/22 : EXPOSE 59901 00:28:12 ---> Running in 08a928d4362a 00:28:13 Removing intermediate container 08a928d4362a 00:28:13 ---> 0b7cd8b87c18 00:28:13 Step 18/22 : ENTRYPOINT ["/device-modbus"] 00:28:13 ---> Running in d3177ce7b7f9 00:28:13 Removing intermediate container d3177ce7b7f9 00:28:13 ---> 518d87d96bc4 00:28:13 Step 19/22 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 00:28:13 ---> Running in 84a779015ab2 00:28:13 Removing intermediate container 84a779015ab2 00:28:13 ---> 8746f8bd5823 00:28:13 Step 20/22 : LABEL arch=arm64 00:28:14 ---> Running in 5a6abe685e40 00:28:14 Removing intermediate container 5a6abe685e40 00:28:14 ---> bc68bf98a360 00:28:14 Step 21/22 : LABEL git_sha=9bde2d747de05544a39dfcd72cdc82a601752da1 00:28:14 ---> Running in 9f3e65fbe6a4 00:28:14 Removing intermediate container 9f3e65fbe6a4 00:28:14 ---> 01ca0a479a47 00:28:14 Step 22/22 : LABEL version=0.0.0 00:28:14 ---> Running in f103939c2b61 00:28:15 Removing intermediate container f103939c2b61 00:28:15 ---> 1b4e66f29205 00:28:15 [Warning] One or more build-args [ARCH] were not consumed 00:28:15 Successfully built 1b4e66f29205 00:28:15 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:15 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 00:28:15 00:28:15 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 00:28:16 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 00:28:16 arm64: Pulling from edgex-lftools-log-publisher 00:28:16 8998bd30e6a1: Pulling fs layer 00:28:16 04944245beec: Pulling fs layer 00:28:16 699f458cf7ca: Pulling fs layer 00:28:16 765212b225bb: Pulling fs layer 00:28:16 f23df028b6ca: Pulling fs layer 00:28:16 d65c8cfc05b1: Pulling fs layer 00:28:16 2437ff75d9bd: Pulling fs layer 00:28:16 f23df028b6ca: Waiting 00:28:16 d65c8cfc05b1: Waiting 00:28:16 2437ff75d9bd: Waiting 00:28:16 765212b225bb: Waiting 00:28:16 04944245beec: Verifying Checksum 00:28:16 04944245beec: Download complete 00:28:16 765212b225bb: Verifying Checksum 00:28:16 765212b225bb: Download complete 00:28:16 f23df028b6ca: Verifying Checksum 00:28:16 f23df028b6ca: Download complete 00:28:16 d65c8cfc05b1: Download complete 00:28:16 699f458cf7ca: Verifying Checksum 00:28:16 699f458cf7ca: Download complete 00:28:17 8998bd30e6a1: Verifying Checksum 00:28:17 8998bd30e6a1: Download complete 00:28:19 2437ff75d9bd: Verifying Checksum 00:28:19 2437ff75d9bd: Download complete 00:28:21 8998bd30e6a1: Pull complete 00:28:22 04944245beec: Pull complete 00:28:25 699f458cf7ca: Pull complete 00:28:25 765212b225bb: Pull complete 00:28:26 f23df028b6ca: Pull complete 00:28:26 d65c8cfc05b1: Pull complete 00:28:42 2437ff75d9bd: Pull complete 00:28:42 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 00:28:42 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 00:28:42 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 00:28:42 prd-ubuntu20.04-docker-arm64-4c-16g-16876 does not seem to be running inside a container 00:28: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/device-modbus-go/5 -v /w/workspace/device-modbus-go/5:/w/workspace/device-modbus-go/5:rw,z -v /w/workspace/device-modbus-go/5@tmp:/w/workspace/device-modbus-go/5@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:arm64 cat 00:28:45 $ docker top 6a53bb9400110eebbf81cd453c3e1fd27d19d0686d323cbfdfc44abd7ef463d7 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 00:28:45 ---> job-cost.sh 00:28:45 lf-activate-venv: SKIPPING 00:28:45 INFO: No Stack... 00:28:46 INFO: Retrieving Pricing Info for: v3-standard-4 00:28:47 INFO: Archiving Costs [Pipeline] sh 00:28:47 + cat /w/workspace/device-modbus-go/5/archives/cost.csv 00:28:47 + cut -d, -f6 [Pipeline] lock 00:28:47 Trying to acquire lock on [jenkins-edgexfoundry-device-modbus-go-PR-484-5-stack-cost] 00:28:47 Resource [jenkins-edgexfoundry-device-modbus-go-PR-484-5-stack-cost] did not exist. Created. 00:28:47 Lock acquired on [jenkins-edgexfoundry-device-modbus-go-PR-484-5-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 00:28:48 /w/workspace/device-modbus-go/5@tmp/durable-eacd8b8f/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 00:28:49 + echo total: 0.10999999940395355 [Pipeline] stash 00:28:49 Warning: overwriting stash ‘stack-cost’ 00:28:49 Stashed 1 file(s) [Pipeline] } 00:28:49 Lock released on resource [jenkins-edgexfoundry-device-modbus-go-PR-484-5-stack-cost] [Pipeline] // lock [Pipeline] } 00:28:49 $ docker stop --time=1 6a53bb9400110eebbf81cd453c3e1fd27d19d0686d323cbfdfc44abd7ef463d7 00:28:50 $ docker rm -f --volumes 6a53bb9400110eebbf81cd453c3e1fd27d19d0686d323cbfdfc44abd7ef463d7 [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:51 provisioning config files... 00:28:51 copy managed file [device-modbus-go-codecov-token] to file:/w/workspace/xfoundry_device-modbus-go_PR-484@tmp/config1021145208593987483tmp [Pipeline] { [Pipeline] sh 00:28:51 + set +x 00:28:51 + curl -s https://codecov.io/bash 00:28:51 + bash -s -- 00:28:51 00:28:51 _____ _ 00:28:51 / ____| | | 00:28:51 | | ___ __| | ___ ___ _____ __ 00:28:51 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 00:28:51 | |___| (_) | (_| | __/ (_| (_) \ V / 00:28:51 \_____\___/ \__,_|\___|\___\___/ \_/ 00:28:51 Bash-1.0.6 00:28:51 00:28:51 00:28:51 ==> git version 2.25.1 found 00:28:51 ==> 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:51 Release-Date: 2020-01-08 00:28:51 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:51 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 00:28:51 ==> Jenkins CI detected. 00:28:51 current dir:  /w/workspace/xfoundry_device-modbus-go_PR-484 00:28:51 project root: . 00:28:51 --> token set from env 00:28:51 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 00:28:51 ==> Running gcov in . (disable via -X gcov) 00:28:51 ==> Python coveragepy not found 00:28:51 ==> Searching for coverage reports in: 00:28:51 + . 00:28:51 -> Found 1 reports 00:28:51 ==> Detecting git/mercurial file structure 00:28:51 ==> Reading reports 00:28:51 + ./coverage.out bytes=24160 00:28:51 ==> Appending adjustments 00:28:51 https://docs.codecov.io/docs/fixing-reports 00:28:51 + Found adjustments 00:28:51 ==> Gzipping contents 00:28:51 4.0K /tmp/codecov.fjksAP.gz 00:28:51 ==> Uploading reports 00:28:51 url: https://codecov.io 00:28:51 query: branch=PR-484&commit=9bde2d747de05544a39dfcd72cdc82a601752da1&build=5&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-modbus-go%2Fjob%2FPR-484%2F5%2F&name=&tag=&slug=edgexfoundry%2Fdevice-modbus-go&service=jenkins&flags=&pr=484&job=&cmd_args= 00:28:51 -> Pinging Codecov 00:28:51 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=3a8d40b1-de00-4649-bfd4-bdc8ed99ae89&branch=PR-484&commit=9bde2d747de05544a39dfcd72cdc82a601752da1&build=5&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-modbus-go%2Fjob%2FPR-484%2F5%2F&name=&tag=&slug=edgexfoundry%2Fdevice-modbus-go&service=jenkins&flags=&pr=484&job=&cmd_args= 00:28:51 -> Uploading to 00:28:51 https://storage.googleapis.com/codecov/v4/raw/2023-05-25/55DBCA73C666E3227836607328DD7E49/9bde2d747de05544a39dfcd72cdc82a601752da1/feb8d646-0372-435a-bf16-61a11b94eb0e.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20230525%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20230525T002851Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=fd2240db910edf56a4bd1bf5c3c59905d39d26df8dcfb05d749264cc4197b9a9 00:28:51 % Total % Received % Xferd Average Speed Time Time Time Current 00:28:51 Dload Upload Total Spent Left Speed 00:28:52 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 3924 0 0 100 3924 0 20123 --:--:-- --:--:-- --:--:-- 20123 00:28:52 -> Reports have been successfully queued for processing at https://app.codecov.io/github/edgexfoundry/device-modbus-go/commit/9bde2d747de05544a39dfcd72cdc82a601752da1 [Pipeline] } 00:28:52 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Snyk Dependency Scan) Stage "Snyk Dependency Scan" skipped due to when conditional [Pipeline] } [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:52 + [ -d /w/workspace/xfoundry_device-modbus-go_PR-484/archives ] 00:28:52 + ls -al /w/workspace/xfoundry_device-modbus-go_PR-484/archives 00:28:52 total 16 00:28:52 drwxr-xr-x 3 root root 4096 May 25 00:17 . 00:28:52 drwxrwxr-x 11 jenkins jenkins 4096 May 25 00:17 .. 00:28:52 drwxr-xr-x 2 root root 4096 May 25 00:17 cost 00:28:52 -rw-r--r-- 1 root root 88 May 25 00:17 cost.csv 00:28:52 + sudo chown -R jenkins:jenkins /w/workspace/xfoundry_device-modbus-go_PR-484/archives 00:28:52 + ls -al /w/workspace/xfoundry_device-modbus-go_PR-484/archives 00:28:52 total 16 00:28:52 drwxr-xr-x 3 jenkins jenkins 4096 May 25 00:17 . 00:28:52 drwxrwxr-x 11 jenkins jenkins 4096 May 25 00:17 .. 00:28:52 drwxr-xr-x 2 jenkins jenkins 4096 May 25 00:17 cost 00:28:52 -rw-r--r-- 1 jenkins jenkins 88 May 25 00:17 cost.csv [Pipeline] libraryResource [Pipeline] sh 00:28:53 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 00:28:53 ---> package-listing.sh 00:28:53 ++ facter osfamily 00:28:53 ++ tr '[:upper:]' '[:lower:]' 00:28:54 + OS_FAMILY=debian 00:28:54 + workspace=/w/workspace/xfoundry_device-modbus-go_PR-484 00:28:54 + START_PACKAGES=/tmp/packages_start.txt 00:28:54 + END_PACKAGES=/tmp/packages_end.txt 00:28:54 + DIFF_PACKAGES=/tmp/packages_diff.txt 00:28:54 + PACKAGES=/tmp/packages_start.txt 00:28:54 + '[' /w/workspace/xfoundry_device-modbus-go_PR-484 ']' 00:28:54 + PACKAGES=/tmp/packages_end.txt 00:28:54 + case "${OS_FAMILY}" in 00:28:54 + dpkg -l 00:28:54 + grep '^ii' 00:28:54 + '[' -f /tmp/packages_start.txt ']' 00:28:54 + '[' -f /tmp/packages_end.txt ']' 00:28:54 + diff /tmp/packages_start.txt /tmp/packages_end.txt 00:28:54 + '[' /w/workspace/xfoundry_device-modbus-go_PR-484 ']' 00:28:54 + mkdir -p /w/workspace/xfoundry_device-modbus-go_PR-484/archives/ 00:28:54 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/xfoundry_device-modbus-go_PR-484/archives/ [Pipeline] echo 00:28:54 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-484/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 00:28:54 + facter operatingsystem [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 00:28:55 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 00:28:55 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 00:28:55 prd-ubuntu20.04-docker-8c-8g-16857 does not seem to be running inside a container 00:28:55 $ 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-484/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-484 -v /w/workspace/xfoundry_device-modbus-go_PR-484:/w/workspace/xfoundry_device-modbus-go_PR-484:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-484@tmp:/w/workspace/xfoundry_device-modbus-go_PR-484@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:55 $ docker top aefc990acbbdf7cae6cdaf06979f7d96f377491e7d6aed0dbca1f404c59417be -eo pid,comm [Pipeline] { [Pipeline] sh 00:28:55 + touch /tmp/pre-build-complete [Pipeline] sh 00:28:56 + mkdir -p /var/log/sysstat [Pipeline] sh 00:28:56 + ls /var/log/sa-host 00:28:56 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 00:28:56 provisioning config files... 00:28:56 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-484@tmp/config341020447679042274tmp [Pipeline] { [Pipeline] echo 00:28:56 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 00:28:56 ---> create-netrc.sh [Pipeline] } 00:28:56 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 00:28:57 ---> python-tools-install.sh [Pipeline] echo 00:28:57 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 00:28:57 ---> sudo-logs.sh 00:28:57 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 00:28:57 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 00:28:57 ---> job-cost.sh 00:28:57 lf-activate-venv: SKIPPING 00:28:57 DEBUG: total: 0.2199999988079071 00:28:57 INFO: Retrieving Stack Cost... 00:28:57 INFO: Retrieving Pricing Info for: v3-standard-8 00:28:58 INFO: Archiving Costs [Pipeline] echo 00:28:58 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 00:28:58 ---> logs-deploy.sh 00:28:58 lf-activate-venv: SKIPPING 00:28:58 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-modbus-go/PR-484/5 00:28:58 INFO: archiving workspace using pattern(s): 00:28:59 Archives upload complete. 00:28:59 INFO: archiving logs to Nexus