Pull request #334 opened Connecting to https://api.github.com using edgex-jenkins github personal access token Obtained Jenkinsfile from 4fb51efe987eb81c17e8be5dfeb90a8d52b02bba+244abab361647dcef607fbcbfbdaea3ae1f72309 (a2cb5ce388690be692da218911cd6ed5ebc37fed) 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-ssh10487895084898124207.key > git ls-remote -h -t -- git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Found match: refs/tags/stable revision c72b16708d6eed9a08be464a432ce22db7d90667 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-ssh8859934005484712701.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 c72b16708d6eed9a08be464a432ce22db7d90667 The recommended git tool is: git using credential edgex-jenkins-ssh Cloning the remote Git repository Cloning with configured refspecs honoured and with tags Cloning repository git@github.com:edgexfoundry/edgex-global-pipelines.git > git init /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-334/workspace@libs/edgex-global-pipelines # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/edgex-global-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-334/workspace@libs/edgex-global-pipelines@tmp/jenkins-gitclient-ssh1500644138796808199.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 > git config --add remote.origin.fetch +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Fetching with tags Fetching upstream changes from git@github.com:edgexfoundry/edgex-global-pipelines.git using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-334/workspace@libs/edgex-global-pipelines@tmp/jenkins-gitclient-ssh4570499898902417992.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision c72b16708d6eed9a08be464a432ce22db7d90667 (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f c72b16708d6eed9a08be464a432ce22db7d90667 # timeout=10 Commit message: "Merge pull request #378 from ernestojeda/ubuntu-20-changes" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 > git --version # timeout=10 > git --version # 'git version 2.16.6' Excluding src/test/ from checkout of git git@github.com:edgexfoundry/edgex-global-pipelines.git so that shared 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-ssh355308901204651581.key > git ls-remote -h -- git@github.com:lfit/releng-pipelines.git # timeout=10 Found match: refs/heads/master revision b3dada9287033e4e81bc68320e01fd57bef02650 The recommended git tool is: NONE using credential edgex-jenkins-ssh Cloning the remote Git repository Cloning with configured refspecs honoured and without tags Cloning repository git@github.com:lfit/releng-pipelines.git > git init /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-334/workspace@libs/lf-pipelines # timeout=10 Fetching upstream changes from git@github.com:lfit/releng-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-334/workspace@libs/lf-pipelines@tmp/jenkins-gitclient-ssh3640147959168893628.key > git fetch --no-tags --progress -- git@github.com:lfit/releng-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:lfit/releng-pipelines.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 Avoid second fetch Checking out Revision b3dada9287033e4e81bc68320e01fd57bef02650 (master) > git config core.sparsecheckout # timeout=10 > git checkout -f b3dada9287033e4e81bc68320e01fd57bef02650 # timeout=10 Commit message: "Fix: Update requirements.txt, update global-jjb" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 > git --version # timeout=10 > git --version # 'git version 2.16.6' fatal: bad object c72b16708d6eed9a08be464a432ce22db7d90667 Excluding src/test/ from checkout of git git@github.com:lfit/releng-pipelines.git so that shared 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.17 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 [Pipeline] node Still waiting to schedule task Waiting for next available executor on ‘prd-ubuntu20.04-docker-8c-8g-21934’ Running on prd-ubuntu20.04-docker-8c-8g-21943 in /w/workspace/xfoundry_device-modbus-go_PR-334 [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-334 # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git > git --version # timeout=10 > git --version # 'git version 2.25.1' using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 Merging remotes/origin/main commit 244abab361647dcef607fbcbfbdaea3ae1f72309 into PR head commit 4fb51efe987eb81c17e8be5dfeb90a8d52b02bba Merge succeeded, producing 4fb51efe987eb81c17e8be5dfeb90a8d52b02bba Checking out Revision 4fb51efe987eb81c17e8be5dfeb90a8d52b02bba (PR-334) > 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/334/head:refs/remotes/origin/PR-334 +refs/heads/main:refs/remotes/origin/main # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 4fb51efe987eb81c17e8be5dfeb90a8d52b02bba # 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 244abab361647dcef607fbcbfbdaea3ae1f72309 # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 4fb51efe987eb81c17e8be5dfeb90a8d52b02bba # timeout=10 Commit message: "build(deps): Bump github.com/edgexfoundry/go-mod-core-contracts/v2" First time build. Skipping changelog. > git --version # timeout=10 > git --version # 'git version 2.25.1' fatal: bad object c72b16708d6eed9a08be464a432ce22db7d90667 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 05:07:28 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 05:07:28 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 05:07:28 ========================================================= 05:07:28 EdgeX Global Pipelines Version Info 05:07:28 ========================================================= [Pipeline] libraryResource [Pipeline] sh 05:07:29 ------------------- 05:07:29 stable info: 05:07:29 ------------------- 05:07:29 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 05:07:29 Commit SHA: c72b16708d6eed9a08be464a432ce22db7d90667 05:07:29 Message: update stable to v1.0.221 05:07:29 ------------------- 05:07:29 experimental info: 05:07:29 ------------------- 05:07:29 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 05:07:29 Commit SHA: e334d830fa8e8412d6042b94a77caa8dfa54c97b 05:07:29 Message: update experimental to v1.0.223 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 05:07:30 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-modbus-go-settings [Pipeline] echo 05:07:30 [edgeXSetupEnvironment]: set envvar PROJECT = device-modbus-go [Pipeline] echo 05:07:30 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 05:07:30 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 05:07:30 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 05:07:30 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.17 [Pipeline] echo 05:07:30 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 05:07:30 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 05:07:30 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 05:07:30 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 05:07:30 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 05:07:30 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-modbus [Pipeline] echo 05:07:30 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 05:07:30 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 05:07:30 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 05:07:30 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 05:07:30 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 05:07:30 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 05:07:30 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 05:07:31 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 05:07:31 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 05:07:31 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 05:07:31 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 05:07:31 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 05:07:31 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 05:07:31 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 05:07:31 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-334 [Pipeline] echo 05:07:31 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-334 [Pipeline] echo 05:07:31 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-334 [Pipeline] echo 05:07:31 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 4fb51efe987eb81c17e8be5dfeb90a8d52b02bba [Pipeline] echo 05:07:31 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 4fb51ef [Pipeline] echo 05:07:31 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 05:07:31 provisioning config files... 05:07:31 copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-334@tmp/config4570416376174191610tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 05:07:32 ---> docker-login.sh 05:07:32 nexus3.edgexfoundry.org:10001 05:07:32 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:07:32 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:07:32 Configure a credential helper to remove this warning. See 05:07:32 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:07:32 05:07:32 Login Succeeded 05:07:32 nexus3.edgexfoundry.org:10002 05:07:32 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:07:32 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:07:32 Configure a credential helper to remove this warning. See 05:07:32 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:07:32 05:07:32 Login Succeeded 05:07:32 nexus3.edgexfoundry.org:10003 05:07:32 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:07:32 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:07:32 Configure a credential helper to remove this warning. See 05:07:32 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:07:32 05:07:32 Login Succeeded 05:07:32 nexus3.edgexfoundry.org:10004 05:07:32 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:07:32 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:07:32 Configure a credential helper to remove this warning. See 05:07:32 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:07:32 05:07:32 Login Succeeded 05:07:32 docker.io 05:07:32 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:07:33 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:07:33 Configure a credential helper to remove this warning. See 05:07:33 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:07:33 05:07:33 Login Succeeded 05:07:33 ---> docker-login.sh ends [Pipeline] } 05:07:33 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 05:07:34 + git rev-list -1 --merges 4fb51efe987eb81c17e8be5dfeb90a8d52b02bba~1..4fb51efe987eb81c17e8be5dfeb90a8d52b02bba [Pipeline] echo 05:07:34 -----------> git rev-list -1 --merges 4fb51efe987eb81c17e8be5dfeb90a8d52b02bba~1..4fb51efe987eb81c17e8be5dfeb90a8d52b02bba 4fb51efe987eb81c17e8be5dfeb90a8d52b02bba [false] [Pipeline] sh 05:07:34 + git log --format=format:%s -1 4fb51efe987eb81c17e8be5dfeb90a8d52b02bba [Pipeline] echo 05:07:34 ========================================================= 05:07:34 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 05:07:34 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 05:07:35 + git log --format=format:%s -1 4fb51efe987eb81c17e8be5dfeb90a8d52b02bba [Pipeline] echo 05:07:35 [semverPrep] GIT_COMMIT: 4fb51efe987eb81c17e8be5dfeb90a8d52b02bba, Commit Message: build(deps): Bump github.com/edgexfoundry/go-mod-core-contracts/v2 [Pipeline] echo 05:07:35 [semverPrep] This is not a build commit. [Pipeline] sh 05:07:35 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 05:07:35 + grep -v github /etc/ssh/ssh_known_hosts 05:07:35 + [ -e /tmp/ssh_known_hosts ] 05:07:35 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 05:07:35 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 05:07:35 + sudo tee -a /etc/ssh/ssh_known_hosts 05:07:35 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] sh 05:07:35 + docker inspect -f . nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 05:07:35 05:07:35 Error: No such object: nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] isUnix [Pipeline] sh 05:07:36 + docker pull nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 05:07:36 latest: Pulling from edgex-devops/git-semver 05:07:36 a0d0a0d46f8b: Pulling fs layer 05:07:36 3e5f54012d9b: Pulling fs layer 05:07:36 4c7163046ea9: Pulling fs layer 05:07:36 0c2d73faf560: Pulling fs layer 05:07:36 0c2d73faf560: Waiting 05:07:36 3e5f54012d9b: Verifying Checksum 05:07:36 3e5f54012d9b: Download complete 05:07:36 a0d0a0d46f8b: Verifying Checksum 05:07:36 a0d0a0d46f8b: Download complete 05:07:36 4c7163046ea9: Verifying Checksum 05:07:36 4c7163046ea9: Download complete 05:07:36 0c2d73faf560: Verifying Checksum 05:07:36 0c2d73faf560: Download complete 05:07:36 a0d0a0d46f8b: Pull complete 05:07:36 3e5f54012d9b: Pull complete 05:07:37 4c7163046ea9: Pull complete 05:07:37 0c2d73faf560: Pull complete 05:07:37 Digest: sha256:2751de6e655929dcbe46418c7769d9d992331b5b721eb968631a4166222929f9 05:07:37 Status: Downloaded newer image for nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 05:07:37 nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] withDockerContainer 05:07:37 prd-ubuntu20.04-docker-8c-8g-21943 does not seem to be running inside a container 05:07:37 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/xfoundry_device-modbus-go_PR-334 -v /w/workspace/xfoundry_device-modbus-go_PR-334:/w/workspace/xfoundry_device-modbus-go_PR-334:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-334@tmp:/w/workspace/xfoundry_device-modbus-go_PR-334@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest cat 05:07:39 $ docker top 26f44af0891018b65ff56ecc15dd0085f35f611bcb5aa3baa9e42b1c63116919 -eo pid,comm [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 05:07:39 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 05:07:39 [ssh-agent] Looking for ssh-agent implementation... 05:07:40 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 05:07:40 $ docker exec 26f44af0891018b65ff56ecc15dd0085f35f611bcb5aa3baa9e42b1c63116919 ssh-agent 05:07:40 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXbiCiif/agent.13 05:07:40 SSH_AGENT_PID=19 05:07:40 Running ssh-add (command line suppressed) 05:07:40 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-334@tmp/private_key_2094334183830778133.key (/w/workspace/xfoundry_device-modbus-go_PR-334@tmp/private_key_2094334183830778133.key) 05:07:40 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 05:07:40 + git tag --points-at HEAD [Pipeline] } 05:07:40 $ docker exec --env ******** --env ******** 26f44af0891018b65ff56ecc15dd0085f35f611bcb5aa3baa9e42b1c63116919 ssh-agent -k 05:07:40 unset SSH_AUTH_SOCK; 05:07:40 unset SSH_AGENT_PID; 05:07:40 echo Agent pid 19 killed; 05:07:40 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 05:07:40 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 05:07:40 [ssh-agent] Looking for ssh-agent implementation... 05:07:40 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 05:07:40 $ docker exec 26f44af0891018b65ff56ecc15dd0085f35f611bcb5aa3baa9e42b1c63116919 ssh-agent 05:07:41 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXddOMOF/agent.52 05:07:41 SSH_AGENT_PID=58 05:07:41 Running ssh-add (command line suppressed) 05:07:41 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-334@tmp/private_key_5449870791974463173.key (/w/workspace/xfoundry_device-modbus-go_PR-334@tmp/private_key_5449870791974463173.key) 05:07:41 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 05:07:41 + git semver init 05:07:41 # -> Open(): unable to determine branch for HEAD 05:07:41 # $GIT_DIR = /w/workspace/xfoundry_device-modbus-go_PR-334/.git 05:07:41 # $GIT_WORK_TREE = /w/workspace/xfoundry_device-modbus-go_PR-334 05:07:41 # $SEMVER_REMOTE_NAME = origin 05:07:41 # $SEMVER_USER_EMAIL = collab-it+edgex@linuxfoundation.org 05:07:41 # $SEMVER_USER_NAME = edgex-jenkins 05:07:41 # $SEMVER_BRANCH = PR-334 05:07:41 # $SEMVER_TEMP = /tmp/semver-886179628 05:07:41 # git clone --branch semver git@github.com:edgexfoundry/device-modbus-go.git $SEMVER_TEMP 05:07:42 # '/tmp/semver-886179628' -> '/w/workspace/xfoundry_device-modbus-go_PR-334/.semver' 05:07:42 # -> Force: false 05:07:42 # $SEMVER_DIR = /w/workspace/xfoundry_device-modbus-go_PR-334/.semver [Pipeline] } 05:07:42 $ docker exec --env ******** --env ******** 26f44af0891018b65ff56ecc15dd0085f35f611bcb5aa3baa9e42b1c63116919 ssh-agent -k 05:07:42 unset SSH_AUTH_SOCK; 05:07:42 unset SSH_AGENT_PID; 05:07:42 echo Agent pid 58 killed; 05:07:42 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 05:07:43 + git semver [Pipeline] } 05:07:43 $ docker stop --time=1 26f44af0891018b65ff56ecc15dd0085f35f611bcb5aa3baa9e42b1c63116919 05:07:44 $ docker rm -f 26f44af0891018b65ff56ecc15dd0085f35f611bcb5aa3baa9e42b1c63116919 [Pipeline] // withDockerContainer [Pipeline] sh 05:07:45 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 05:07:45 Stashed 1 file(s) [Pipeline] echo 05:07:45 [edgeXSemver]: initialized semver on version 0.0.0 [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] parallel [Pipeline] { (Branch: amd64) [Pipeline] { (Branch: arm64) [Pipeline] stage [Pipeline] { (amd64) [Pipeline] stage [Pipeline] { (arm64) [Pipeline] withEnv [Pipeline] { [Pipeline] node [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 05:07:46 provisioning config files... 05:07:46 copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-334@tmp/config1523950887384931216tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 05:07:46 ---> docker-login.sh 05:07:46 nexus3.edgexfoundry.org:10001 05:07:46 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:07:46 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:07:46 Configure a credential helper to remove this warning. See 05:07:46 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:07:46 05:07:46 Login Succeeded 05:07:46 nexus3.edgexfoundry.org:10002 05:07:46 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:07:46 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:07:46 Configure a credential helper to remove this warning. See 05:07:46 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:07:46 05:07:46 Login Succeeded 05:07:46 nexus3.edgexfoundry.org:10003 05:07:46 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:07:46 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:07:46 Configure a credential helper to remove this warning. See 05:07:46 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:07:46 05:07:46 Login Succeeded 05:07:46 nexus3.edgexfoundry.org:10004 05:07:46 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:07:46 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:07:46 Configure a credential helper to remove this warning. See 05:07:46 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:07:46 05:07:46 Login Succeeded 05:07:46 docker.io 05:07:46 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:07:47 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:07:47 Configure a credential helper to remove this warning. See 05:07:47 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:07:47 05:07:47 Login Succeeded 05:07:47 ---> docker-login.sh ends [Pipeline] } 05:07:47 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 05:07:47 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 05:07:47 ========================================================= 05:07:47 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine] 05:07:47 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 05:07:47 + docker build -t ci-base-image-x86_64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine --build-arg MAKE=echo noop --target=builder . 05:07:47 Sending build context to Docker daemon 5.851MB 05:07:47 Step 1/10 : ARG BASE=golang:1.17-alpine3.15 05:07:47 Step 2/10 : FROM ${BASE} AS builder 05:07:47 1.17-alpine: Pulling from edgex-devops/edgex-golang-base 05:07:47 59bf1c3509f3: Pulling fs layer 05:07:47 666ba61612fd: Pulling fs layer 05:07:47 8ed8ca486205: Pulling fs layer 05:07:47 4fe6c5a15a65: Pulling fs layer 05:07:47 22a0e8bec74d: Pulling fs layer 05:07:47 ca2b28591e48: Pulling fs layer 05:07:47 a51346096db8: Pulling fs layer 05:07:47 daebc70d1ce1: Pulling fs layer 05:07:47 0e18a0eac166: Pulling fs layer 05:07:47 4fe6c5a15a65: Waiting 05:07:47 22a0e8bec74d: Waiting 05:07:47 a51346096db8: Waiting 05:07:47 0e18a0eac166: Waiting 05:07:47 daebc70d1ce1: Waiting 05:07:47 8ed8ca486205: Download complete 05:07:47 666ba61612fd: Download complete 05:07:47 22a0e8bec74d: Download complete 05:07:48 ca2b28591e48: Verifying Checksum 05:07:48 ca2b28591e48: Download complete 05:07:48 59bf1c3509f3: Verifying Checksum 05:07:48 59bf1c3509f3: Download complete 05:07:48 a51346096db8: Verifying Checksum 05:07:48 a51346096db8: Download complete 05:07:48 daebc70d1ce1: Verifying Checksum 05:07:48 daebc70d1ce1: Download complete 05:07:48 59bf1c3509f3: Pull complete 05:07:48 666ba61612fd: Pull complete 05:07:48 8ed8ca486205: Pull complete 05:07:48 0e18a0eac166: Verifying Checksum 05:07:48 0e18a0eac166: Download complete 05:07:48 4fe6c5a15a65: Verifying Checksum 05:07:48 4fe6c5a15a65: Download complete 05:07:52 4fe6c5a15a65: Pull complete 05:07:52 22a0e8bec74d: Pull complete 05:07:52 ca2b28591e48: Pull complete 05:07:52 a51346096db8: Pull complete 05:07:52 daebc70d1ce1: Pull complete 05:07:54 0e18a0eac166: Pull complete 05:07:54 Digest: sha256:5cf2d0a306c5171eb5b3008c4b83cc7b6044f1808c238cb17927cddb93576120 05:07:54 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine 05:07:54 ---> f018257e8ee9 05:07:54 Step 3/10 : ARG MAKE='make build' 05:07:56 ---> Running in b545ddca6134 05:07:56 Removing intermediate container b545ddca6134 05:07:56 ---> f1753264945d 05:07:56 Step 4/10 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 05:07:57 ---> Running in ae6786fc5bd9 05:07:58 Removing intermediate container ae6786fc5bd9 05:07:58 ---> 7f2167ebf45f 05:07:58 Step 5/10 : RUN apk add --update --no-cache make git openssh gcc libc-dev zeromq-dev libsodium-dev 05:07:58 ---> Running in 265c68373dbf 05:07:58 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 05:07:59 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 05:07:59 (1/8) Installing openssh-keygen (8.8_p1-r1) 05:07:59 (2/8) Installing libedit (20210910.3.1-r0) 05:07:59 (3/8) Installing openssh-client-common (8.8_p1-r1) 05:07:59 (4/8) Installing openssh-client-default (8.8_p1-r1) 05:08:00 (5/8) Installing openssh-sftp-server (8.8_p1-r1) 05:08:00 (6/8) Installing openssh-server-common (8.8_p1-r1) 05:08:00 (7/8) Installing openssh-server (8.8_p1-r1) 05:08:00 (8/8) Installing openssh (8.8_p1-r1) 05:08:00 Executing busybox-1.34.1-r3.trigger 05:08:00 OK: 226 MiB in 60 packages 05:08:00 Still waiting to schedule task 05:08:00 Waiting for next available executor on ‘prd-ubuntu20.04-docker-arm64-4c-16g-21942’ 05:08:00 Removing intermediate container 265c68373dbf 05:08:00 ---> 2afc81552caf 05:08:00 Step 6/10 : WORKDIR /device-modbus-go 05:08:00 ---> Running in a8d033a3c3a0 05:08:00 Removing intermediate container a8d033a3c3a0 05:08:00 ---> d10825658536 05:08:00 Step 7/10 : COPY go.mod vendor* ./ 05:08:01 ---> 9c1bc87af881 05:08:01 Step 8/10 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 05:08:01 ---> Running in 53b3695f3d51 05:08:19 Removing intermediate container 53b3695f3d51 05:08:19 ---> 92d078294a93 05:08:19 Step 9/10 : COPY . . 05:08:19 ---> c9df80126ad2 05:08:19 Step 10/10 : RUN ${MAKE} 05:08:19 ---> Running in 6e8e4c2ddc9e 05:08:19 noop 05:08:19 Removing intermediate container 6e8e4c2ddc9e 05:08:19 ---> 9e0e9ab4a805 05:08:19 Successfully built 9e0e9ab4a805 05:08:19 Successfully tagged ci-base-image-x86_64:latest [Pipeline] isUnix [Pipeline] sh 05:08:19 + docker inspect -f . ci-base-image-x86_64 05:08:19 . [Pipeline] withDockerContainer 05:08:19 prd-ubuntu20.04-docker-8c-8g-21943 does not seem to be running inside a container 05:08:19 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/xfoundry_device-modbus-go_PR-334 -v /w/workspace/xfoundry_device-modbus-go_PR-334:/w/workspace/xfoundry_device-modbus-go_PR-334:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-334@tmp:/w/workspace/xfoundry_device-modbus-go_PR-334@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 05:08:20 $ docker top 14218a97cec0e21b8a20a2a60f4775f8e255222024417c1322db7f8679413da3 -eo pid,comm [Pipeline] { [Pipeline] sh 05:08:20 + go version 05:08:20 go version go1.17.6 linux/amd64 [Pipeline] } 05:08:20 $ docker stop --time=1 14218a97cec0e21b8a20a2a60f4775f8e255222024417c1322db7f8679413da3 05:08:21 $ docker rm -f 14218a97cec0e21b8a20a2a60f4775f8e255222024417c1322db7f8679413da3 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 05:08:22 + docker inspect -f . ci-base-image-x86_64 05:08:22 . [Pipeline] withDockerContainer 05:08:22 prd-ubuntu20.04-docker-8c-8g-21943 does not seem to be running inside a container 05:08:22 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/xfoundry_device-modbus-go_PR-334 -v /w/workspace/xfoundry_device-modbus-go_PR-334:/w/workspace/xfoundry_device-modbus-go_PR-334:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-334@tmp:/w/workspace/xfoundry_device-modbus-go_PR-334@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 05:08:23 $ docker top 6d910bf30dd955ba1273c4f4f9cbdc31b40e845e4429852afc87f77e4e9d3d94 -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 05:08:23 + make test 05:08:23 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out 05:08:23 ? github.com/edgexfoundry/device-modbus-go [no test files] 05:08:33 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 05:08:33 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.010s coverage: 46.4% of statements 05:08:39 CGO_ENABLED=1 GO111MODULE=on go vet ./... 05:08:43 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 05:08:43 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 05:08:43 ./bin/test-attribution-txt.sh [Pipeline] echo 05:08:43 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 05:08:43 $ docker stop --time=1 6d910bf30dd955ba1273c4f4f9cbdc31b40e845e4429852afc87f77e4e9d3d94 05:08:45 $ docker rm -f 6d910bf30dd955ba1273c4f4f9cbdc31b40e845e4429852afc87f77e4e9d3d94 [Pipeline] // withDockerContainer [Pipeline] sh 05:08:46 + sudo chown -R jenkins:jenkins . [Pipeline] stash 05:08:46 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 05:08:46 + sudo chown -R jenkins:jenkins . [Pipeline] sh 05:08:47 + ls -al . 05:08:47 total 200 05:08:47 drwxrwxr-x 10 jenkins jenkins 4096 Apr 25 05:08 . 05:08:47 drwxrwxr-x 4 jenkins jenkins 4096 Apr 25 05:07 .. 05:08:47 -rw-rw-r-- 1 jenkins jenkins 140 Apr 25 05:07 .dockerignore 05:08:47 drwxrwxr-x 8 jenkins jenkins 4096 Apr 25 05:07 .git 05:08:47 drwxrwxr-x 3 jenkins jenkins 4096 Apr 25 05:07 .github 05:08:47 -rw-rw-r-- 1 jenkins jenkins 331 Apr 25 05:07 .gitignore 05:08:47 -rw-rw-r-- 1 jenkins jenkins 41 Apr 25 05:07 .golangci.yml 05:08:47 drwx------ 3 jenkins jenkins 4096 Apr 25 05:07 .semver 05:08:47 -rw-rw-r-- 1 jenkins jenkins 9244 Apr 25 05:07 Attribution.txt 05:08:47 -rw-rw-r-- 1 jenkins jenkins 6038 Apr 25 05:07 CHANGELOG.md 05:08:47 -rw-rw-r-- 1 jenkins jenkins 1546 Apr 25 05:07 Dockerfile 05:08:47 -rw-rw-r-- 1 jenkins jenkins 677 Apr 25 05:07 GOVERNANCE.md 05:08:47 -rw-rw-r-- 1 jenkins jenkins 680 Apr 25 05:07 Jenkinsfile 05:08:47 -rw-rw-r-- 1 jenkins jenkins 11340 Apr 25 05:07 LICENSE 05:08:47 -rw-rw-r-- 1 jenkins jenkins 1905 Apr 25 05:07 Makefile 05:08:47 -rw-rw-r-- 1 jenkins jenkins 622 Apr 25 05:07 OWNERS.md 05:08:47 -rw-rw-r-- 1 jenkins jenkins 3680 Apr 25 05:07 README.md 05:08:47 -rw-rw-r-- 1 jenkins jenkins 5 Apr 25 05:07 VERSION 05:08:47 drwxrwxr-x 2 jenkins jenkins 4096 Apr 25 05:07 bin 05:08:47 drwxrwxr-x 3 jenkins jenkins 4096 Apr 25 05:07 cmd 05:08:47 -rw-r--r-- 1 jenkins jenkins 24065 Apr 25 05:08 coverage.out 05:08:47 -rw-rw-r-- 1 jenkins jenkins 3306 Apr 25 05:07 go.mod 05:08:47 -rw-rw-r-- 1 jenkins jenkins 54457 Apr 25 05:07 go.sum 05:08:47 drwxrwxr-x 3 jenkins jenkins 4096 Apr 25 05:07 internal 05:08:47 drwxrwxr-x 2 jenkins jenkins 4096 Apr 25 05:07 simulator 05:08:47 drwxrwxr-x 4 jenkins jenkins 4096 Apr 25 05:07 snap 05:08:47 -rw-rw-r-- 1 jenkins jenkins 229 Apr 25 05:07 version.go [Pipeline] isUnix [Pipeline] sh 05:08:47 + 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=4fb51efe987eb81c17e8be5dfeb90a8d52b02bba --label arch=amd64 --label version=0.0.0 . 05:08:47 Sending build context to Docker daemon 5.876MB 05:08:47 Step 1/23 : ARG BASE=golang:1.17-alpine3.15 05:08:47 Step 2/23 : FROM ${BASE} AS builder 05:08:47 ---> 9e0e9ab4a805 05:08:47 Step 3/23 : ARG MAKE='make build' 05:08:47 ---> Running in 3f8d7c204fd2 05:08:47 Removing intermediate container 3f8d7c204fd2 05:08:47 ---> 8a9efec39d99 05:08:47 Step 4/23 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 05:08:47 ---> Running in 431e265d9f4b 05:08:48 Removing intermediate container 431e265d9f4b 05:08:48 ---> b0b750c14fb4 05:08:48 Step 5/23 : RUN apk add --update --no-cache make git openssh gcc libc-dev zeromq-dev libsodium-dev 05:08:48 ---> Running in f8c1b418b23a 05:08:48 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 05:08:49 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 05:08:50 OK: 226 MiB in 60 packages 05:08:50 Removing intermediate container f8c1b418b23a 05:08:50 ---> 9a1fd0270a5d 05:08:50 Step 6/23 : WORKDIR /device-modbus-go 05:08:50 ---> Running in 72a10191b4dc 05:08:50 Removing intermediate container 72a10191b4dc 05:08:50 ---> 8bda6fb58859 05:08:50 Step 7/23 : COPY go.mod vendor* ./ 05:08:50 ---> 487360479059 05:08:50 Step 8/23 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 05:08:50 ---> Running in 0e88fd42e910 05:08:51 Removing intermediate container 0e88fd42e910 05:08:51 ---> 53f4c61a37e7 05:08:51 Step 9/23 : COPY . . 05:08:51 ---> 95f6d1d1ccec 05:08:51 Step 10/23 : RUN ${MAKE} 05:08:51 ---> Running in b594830c37e1 05:08:51 CGO_ENABLED=1 GO111MODULE=on go build -ldflags "-linkmode=external -X github.com/edgexfoundry/device-modbus-go.Version=0.0.0" -trimpath -mod=readonly -buildmode=pie -o cmd/device-modbus ./cmd 05:09:13 Removing intermediate container b594830c37e1 05:09:13 ---> 59cfad3bd96b 05:09:13 Step 11/23 : FROM alpine:3.14 05:09:13 3.14: Pulling from library/alpine 05:09:13 8663204ce13b: Pulling fs layer 05:09:13 8663204ce13b: Verifying Checksum 05:09:13 8663204ce13b: Download complete 05:09:13 8663204ce13b: Pull complete 05:09:13 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 05:09:13 Status: Downloaded newer image for alpine:3.14 05:09:13 ---> e04c818066af 05:09:13 Step 12/23 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IoTech Ltd' 05:09:13 ---> Running in 1dcb5fc6e8e6 05:09:13 Removing intermediate container 1dcb5fc6e8e6 05:09:13 ---> a893bb315501 05:09:13 Step 13/23 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 05:09:13 ---> Running in 8e9f7254f946 05:09:13 Removing intermediate container 8e9f7254f946 05:09:13 ---> f6b7da716274 05:09:13 Step 14/23 : RUN apk add --update --no-cache zeromq dumb-init 05:09:13 ---> Running in ae96f6133052 05:09:13 fetch https://nl.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz 05:09:14 fetch https://nl.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz 05:09:14 (1/6) Installing dumb-init (1.2.5-r1) 05:09:14 (2/6) Installing libgcc (10.3.1_git20210424-r2) 05:09:15 (3/6) Installing libsodium (1.0.18-r0) 05:09:15 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 05:09:15 (5/6) Installing libzmq (4.3.4-r0) 05:09:15 (6/6) Installing zeromq (4.3.4-r0) 05:09:15 Executing busybox-1.33.1-r7.trigger 05:09:15 OK: 8 MiB in 20 packages 05:09:15 Removing intermediate container ae96f6133052 05:09:15 ---> 64cab4bee0b5 05:09:15 Step 15/23 : COPY --from=builder /device-modbus-go/cmd / 05:09:16 ---> bf92291ee4e1 05:09:16 Step 16/23 : COPY --from=builder /device-modbus-go/LICENSE / 05:09:16 ---> 2ebc21505200 05:09:16 Step 17/23 : COPY --from=builder /device-modbus-go/Attribution.txt / 05:09:16 ---> c6e7a05cc0b8 05:09:16 Step 18/23 : EXPOSE 59901 05:09:16 ---> Running in 8a738efab2eb 05:09:16 Removing intermediate container 8a738efab2eb 05:09:16 ---> 4f9585fad866 05:09:16 Step 19/23 : ENTRYPOINT ["/device-modbus"] 05:09:16 ---> Running in 904ced5f3a30 05:09:16 Removing intermediate container 904ced5f3a30 05:09:16 ---> 7a70ef3a014d 05:09:16 Step 20/23 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry", "--confdir=/res"] 05:09:16 ---> Running in 9166958864e4 05:09:17 Removing intermediate container 9166958864e4 05:09:17 ---> 17c61d7df876 05:09:17 Step 21/23 : LABEL arch=amd64 05:09:17 ---> Running in 755bef38599c 05:09:17 Removing intermediate container 755bef38599c 05:09:17 ---> 3a2ed990a659 05:09:17 Step 22/23 : LABEL git_sha=4fb51efe987eb81c17e8be5dfeb90a8d52b02bba 05:09:17 ---> Running in df9de47d3a30 05:09:17 Removing intermediate container df9de47d3a30 05:09:17 ---> 8f199720b04e 05:09:17 Step 23/23 : LABEL version=0.0.0 05:09:17 ---> Running in f3239cf34b4c 05:09:17 Removing intermediate container f3239cf34b4c 05:09:17 ---> 128656bb992c 05:09:17 [Warning] One or more build-args [ARCH] were not consumed 05:09:17 Successfully built 128656bb992c 05:09:17 Successfully tagged device-modbus:latest [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] sh 05:09:18 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 05:09:18 05:09:18 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] sh 05:09:18 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 05:09:18 latest: Pulling from edgex-lftools-log-publisher 05:09:18 5eb5b503b376: Pulling fs layer 05:09:18 5c69ac0246d0: Pulling fs layer 05:09:18 ec43610c2a17: Pulling fs layer 05:09:18 3a2ae6a8a46f: Pulling fs layer 05:09:18 33b1e0a273af: Pulling fs layer 05:09:18 5d3b04190fa2: Pulling fs layer 05:09:18 3a2ae6a8a46f: Waiting 05:09:18 33b1e0a273af: Waiting 05:09:18 5d3b04190fa2: Waiting 05:09:18 2f39f015ded8: Pulling fs layer 05:09:18 2f39f015ded8: Waiting 05:09:18 5c69ac0246d0: Download complete 05:09:18 3a2ae6a8a46f: Verifying Checksum 05:09:18 3a2ae6a8a46f: Download complete 05:09:18 33b1e0a273af: Download complete 05:09:18 5d3b04190fa2: Download complete 05:09:18 ec43610c2a17: Download complete 05:09:18 5eb5b503b376: Verifying Checksum 05:09:18 5eb5b503b376: Download complete 05:09:19 2f39f015ded8: Download complete 05:09:19 5eb5b503b376: Pull complete 05:09:20 5c69ac0246d0: Pull complete 05:09:20 ec43610c2a17: Pull complete 05:09:20 3a2ae6a8a46f: Pull complete 05:09:20 33b1e0a273af: Pull complete 05:09:20 5d3b04190fa2: Pull complete 05:09:24 2f39f015ded8: Pull complete 05:09:24 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 05:09:24 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 05:09:24 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] withDockerContainer 05:09:25 prd-ubuntu20.04-docker-8c-8g-21943 does not seem to be running inside a container 05:09:25 $ 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-334 -v /w/workspace/xfoundry_device-modbus-go_PR-334:/w/workspace/xfoundry_device-modbus-go_PR-334:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-334@tmp:/w/workspace/xfoundry_device-modbus-go_PR-334@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 05:09:27 $ docker top 9757025788a4c512c85a9c5df620e8626eddcce0d0eed47053a43bbb87518538 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 05:09:28 ---> job-cost.sh 05:09:28 lf-activate-venv: SKIPPING 05:09:28 INFO: No Stack... 05:09:28 INFO: Retrieving Pricing Info for: v3-standard-8 05:09:29 INFO: Archiving Costs [Pipeline] sh 05:09:29 + cat /w/workspace/xfoundry_device-modbus-go_PR-334/archives/cost.csv 05:09:29 + cut -d, -f6 [Pipeline] lock 05:09:29 Trying to acquire lock on [jenkins-edgexfoundry-device-modbus-go-PR-334-1-stack-cost] 05:09:29 Resource [jenkins-edgexfoundry-device-modbus-go-PR-334-1-stack-cost] did not exist. Created. 05:09:29 Lock acquired on [jenkins-edgexfoundry-device-modbus-go-PR-334-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 05:09:29 + echo total: 0.2199999988079071 [Pipeline] stash 05:09:29 Stashed 1 file(s) [Pipeline] } 05:09:29 Lock released on resource [jenkins-edgexfoundry-device-modbus-go-PR-334-1-stack-cost] [Pipeline] // lock [Pipeline] } 05:09:30 $ docker stop --time=1 9757025788a4c512c85a9c5df620e8626eddcce0d0eed47053a43bbb87518538 05:09:31 $ docker rm -f 9757025788a4c512c85a9c5df620e8626eddcce0d0eed47053a43bbb87518538 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 05:11:09 Running on prd-ubuntu20.04-docker-arm64-4c-16g-21949 in /w/workspace/xfoundry_device-modbus-go_PR-334 [Pipeline] { [Pipeline] ws 05:11:09 Running in /w/workspace/device-modbus-go/1 [Pipeline] { [Pipeline] checkout 05:11:09 Selected Git installation does not exist. Using Default 05:11:09 The recommended git tool is: NONE 05:11:15 using credential edgex-jenkins-ssh 05:11:16 Cloning the remote Git repository 05:11:16 Cloning repository git@github.com:edgexfoundry/device-modbus-go.git 05:11:16 > git init /w/workspace/device-modbus-go/1 # timeout=10 05:11:16 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 05:11:16 > git --version # timeout=10 05:11:16 > git --version # 'git version 2.25.1' 05:11:16 using GIT_SSH to set credentials SSH Credentials for GitHub 05:11:16 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 05:11:17 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 05:11:18 Merging remotes/origin/main commit 244abab361647dcef607fbcbfbdaea3ae1f72309 into PR head commit 4fb51efe987eb81c17e8be5dfeb90a8d52b02bba 05:11:18 Merge succeeded, producing 4fb51efe987eb81c17e8be5dfeb90a8d52b02bba 05:11:18 Checking out Revision 4fb51efe987eb81c17e8be5dfeb90a8d52b02bba (PR-334) 05:11:17 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 05:11:17 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 05:11:17 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 05:11:17 using GIT_SSH to set credentials SSH Credentials for GitHub 05:11:17 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/pull/334/head:refs/remotes/origin/PR-334 +refs/heads/main:refs/remotes/origin/main # timeout=10 05:11:18 > git config core.sparsecheckout # timeout=10 05:11:18 > git checkout -f 4fb51efe987eb81c17e8be5dfeb90a8d52b02bba # timeout=10 05:11:18 > git remote # timeout=10 05:11:18 > git config --get remote.origin.url # timeout=10 05:11:18 using GIT_SSH to set credentials SSH Credentials for GitHub 05:11:18 > git merge 244abab361647dcef607fbcbfbdaea3ae1f72309 # timeout=10 05:11:18 > git rev-parse HEAD^{commit} # timeout=10 05:11:18 > git config core.sparsecheckout # timeout=10 05:11:18 > git checkout -f 4fb51efe987eb81c17e8be5dfeb90a8d52b02bba # timeout=10 05:11:23 Commit message: "build(deps): Bump github.com/edgexfoundry/go-mod-core-contracts/v2" 05:11:23 > git --version # timeout=10 05:11:23 > git --version # 'git version 2.25.1' 05:11:23 fatal: bad object c72b16708d6eed9a08be464a432ce22db7d90667 [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 05:11:24 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 05:11:24 % Total % Received % Xferd Average Speed Time Time Time Current 05:11:24 Dload Upload Total Spent Left Speed 05:11:24 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 11843 100 11843 0 0 222k 0 --:--:-- --:--:-- --:--:-- 222k [Pipeline] sh 05:11:25 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 05:11:25 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 05:11:25 + sudo tee /etc/docker/daemon.new 05:11:25 { 05:11:25 "registry-mirrors": [ 05:11:25 "https://nexus3.edgexfoundry.org:10001" 05:11:25 ], 05:11:25 "bip": "10.250.0.254/24", 05:11:25 "hosts": [ 05:11:25 "tcp://0.0.0.0:5555", 05:11:25 "unix:///var/run/docker.sock" 05:11:25 ], 05:11:25 "mtu": 1458, 05:11:25 "selinux-enabled": true, 05:11:25 "seccomp-profile": "/etc/docker/seccomp.json" 05:11:25 } [Pipeline] sh 05:11:25 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 05:11:26 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 05:11:44 provisioning config files... 05:11:44 copy managed file [device-modbus-go-settings] to file:/w/workspace/device-modbus-go/1@tmp/config4183813089255796136tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 05:11:45 ---> docker-login.sh 05:11:45 nexus3.edgexfoundry.org:10001 05:11:45 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:11:46 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:11:46 Configure a credential helper to remove this warning. See 05:11:46 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:11:46 05:11:46 Login Succeeded 05:11:46 nexus3.edgexfoundry.org:10002 05:11:46 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:11:46 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:11:46 Configure a credential helper to remove this warning. See 05:11:46 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:11:46 05:11:46 Login Succeeded 05:11:46 nexus3.edgexfoundry.org:10003 05:11:46 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:11:47 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:11:47 Configure a credential helper to remove this warning. See 05:11:47 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:11:47 05:11:47 Login Succeeded 05:11:47 nexus3.edgexfoundry.org:10004 05:11:47 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:11:47 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:11:47 Configure a credential helper to remove this warning. See 05:11:47 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:11:47 05:11:47 Login Succeeded 05:11:47 docker.io 05:11:48 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 05:11:48 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 05:11:48 Configure a credential helper to remove this warning. See 05:11:48 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 05:11:48 05:11:48 Login Succeeded 05:11:48 ---> docker-login.sh ends [Pipeline] } 05:11:48 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 05:11:48 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 05:11:48 ========================================================= 05:11:48 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine] 05:11:48 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 05:11:49 + docker build -t ci-base-image-arm64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine --build-arg MAKE=echo noop --target=builder . 05:11:49 Sending build context to Docker daemon 3.077MB 05:11:49 Step 1/10 : ARG BASE=golang:1.17-alpine3.15 05:11:49 Step 2/10 : FROM ${BASE} AS builder 05:11:49 1.17-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 05:11:49 9b3977197b4f: Pulling fs layer 05:11:49 1a89e8eeedd5: Pulling fs layer 05:11:49 94645a83ff95: Pulling fs layer 05:11:49 3f3a8bcf1eab: Pulling fs layer 05:11:49 0c92f367c5e7: Pulling fs layer 05:11:49 3096ccb668a1: Pulling fs layer 05:11:49 e8cf19c19ddd: Pulling fs layer 05:11:49 3096ccb668a1: Waiting 05:11:49 a4caa8a26152: Pulling fs layer 05:11:49 e8cf19c19ddd: Waiting 05:11:49 a4caa8a26152: Waiting 05:11:49 3f3a8bcf1eab: Waiting 05:11:49 94645a83ff95: Download complete 05:11:49 1a89e8eeedd5: Download complete 05:11:49 0c92f367c5e7: Verifying Checksum 05:11:49 0c92f367c5e7: Download complete 05:11:49 3096ccb668a1: Verifying Checksum 05:11:49 3096ccb668a1: Download complete 05:11:49 9b3977197b4f: Download complete 05:11:49 e8cf19c19ddd: Verifying Checksum 05:11:49 e8cf19c19ddd: Download complete 05:11:50 9b3977197b4f: Pull complete 05:11:51 1a89e8eeedd5: Pull complete 05:11:51 94645a83ff95: Pull complete 05:11:52 a4caa8a26152: Verifying Checksum 05:11:52 a4caa8a26152: Download complete 05:11:52 3f3a8bcf1eab: Download complete 05:12:05 3f3a8bcf1eab: Pull complete 05:12:05 0c92f367c5e7: Pull complete 05:12:05 3096ccb668a1: Pull complete 05:12:05 e8cf19c19ddd: Pull complete 05:12:12 a4caa8a26152: Pull complete 05:12:12 Digest: sha256:b3ad895ecde34a7521bb8912598475bc58d052e1c2c58d00df7f0fe54a102a46 05:12:12 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine 05:12:12 ---> 725f1c02e7f9 05:12:12 Step 3/10 : ARG MAKE='make build' 05:12:13 ---> Running in 4ceb02e37fcd 05:12:13 Removing intermediate container 4ceb02e37fcd 05:12:13 ---> d2eb1bd3c20a 05:12:13 Step 4/10 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 05:12:13 ---> Running in 18b6ce6a64c0 05:12:17 Removing intermediate container 18b6ce6a64c0 05:12:17 ---> f2e0200a0b77 05:12:17 Step 5/10 : RUN apk add --update --no-cache make git openssh gcc libc-dev zeromq-dev libsodium-dev 05:12:17 ---> Running in edff718adb0b 05:12:17 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 05:12:18 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 05:12:19 (1/8) Installing openssh-keygen (8.8_p1-r1) 05:12:19 (2/8) Installing libedit (20210910.3.1-r0) 05:12:19 (3/8) Installing openssh-client-common (8.8_p1-r1) 05:12:20 (4/8) Installing openssh-client-default (8.8_p1-r1) 05:12:20 (5/8) Installing openssh-sftp-server (8.8_p1-r1) 05:12:20 (6/8) Installing openssh-server-common (8.8_p1-r1) 05:12:20 (7/8) Installing openssh-server (8.8_p1-r1) 05:12:20 (8/8) Installing openssh (8.8_p1-r1) 05:12:20 Executing busybox-1.34.1-r3.trigger 05:12:20 OK: 226 MiB in 60 packages 05:12:21 Removing intermediate container edff718adb0b 05:12:21 ---> 14b0067143e5 05:12:21 Step 6/10 : WORKDIR /device-modbus-go 05:12:21 ---> Running in 1f517b0c7575 05:12:21 Removing intermediate container 1f517b0c7575 05:12:21 ---> 344df7d2810b 05:12:21 Step 7/10 : COPY go.mod vendor* ./ 05:12:22 ---> 409d253ba40d 05:12:22 Step 8/10 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 05:12:22 ---> Running in a05891012b0d 05:13:09 Removing intermediate container a05891012b0d 05:13:09 ---> b6dd853260f6 05:13:09 Step 9/10 : COPY . . 05:13:09 ---> e2a283edfa4d 05:13:09 Step 10/10 : RUN ${MAKE} 05:13:09 ---> Running in 7acc29dcc62a 05:13:09 noop 05:13:09 Removing intermediate container 7acc29dcc62a 05:13:09 ---> 4fed99674b84 05:13:09 Successfully built 4fed99674b84 05:13:09 Successfully tagged ci-base-image-arm64:latest [Pipeline] isUnix [Pipeline] sh 05:13:10 + docker inspect -f . ci-base-image-arm64 05:13:10 . [Pipeline] withDockerContainer 05:13:10 prd-ubuntu20.04-docker-arm64-4c-16g-21949 does not seem to be running inside a container 05:13:10 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-modbus-go/1 -v /w/workspace/device-modbus-go/1:/w/workspace/device-modbus-go/1:rw,z -v /w/workspace/device-modbus-go/1@tmp:/w/workspace/device-modbus-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 05:13:12 $ docker top f758dfda82d52572502d7a943498bfcd02a8940b889415586af17332166d97d1 -eo pid,comm [Pipeline] { [Pipeline] sh 05:13:13 + go version 05:13:13 go version go1.17.6 linux/arm64 [Pipeline] } 05:13:13 $ docker stop --time=1 f758dfda82d52572502d7a943498bfcd02a8940b889415586af17332166d97d1 05:13:14 $ docker rm -f f758dfda82d52572502d7a943498bfcd02a8940b889415586af17332166d97d1 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 05:13:15 + docker inspect -f . ci-base-image-arm64 05:13:15 . [Pipeline] withDockerContainer 05:13:16 prd-ubuntu20.04-docker-arm64-4c-16g-21949 does not seem to be running inside a container 05:13:16 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-modbus-go/1 -v /w/workspace/device-modbus-go/1:/w/workspace/device-modbus-go/1:rw,z -v /w/workspace/device-modbus-go/1@tmp:/w/workspace/device-modbus-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 05:13:17 $ docker top d3214b031d30bb019e05b5b5e9011f9f3ebae08f1bc424556f86c260d8e11d9f -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 05:13:18 + make test 05:13:18 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out 05:13:20 ? github.com/edgexfoundry/device-modbus-go [no test files] 05:14:57 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 05:14:57 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.069s coverage: 46.4% of statements 05:14:57 WARNING: Linting skipped (not on x86_64 or linter not installed) 05:14:57 CGO_ENABLED=1 GO111MODULE=on go vet ./... 05:15:15 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 05:15:15 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 05:15:15 ./bin/test-attribution-txt.sh [Pipeline] echo 05:15:18 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 05:15:18 $ docker stop --time=1 d3214b031d30bb019e05b5b5e9011f9f3ebae08f1bc424556f86c260d8e11d9f 05:15:20 $ docker rm -f d3214b031d30bb019e05b5b5e9011f9f3ebae08f1bc424556f86c260d8e11d9f [Pipeline] // withDockerContainer [Pipeline] sh 05:15:21 + sudo chown -R jenkins:jenkins . [Pipeline] stash 05:15:21 Warning: overwriting stash ‘coverage-report’ 05:15:22 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 05:15:22 + sudo chown -R jenkins:jenkins . [Pipeline] sh 05:15:23 + ls -al . 05:15:23 total 196 05:15:23 drwxrwxr-x 9 jenkins jenkins 4096 Apr 25 05:15 . 05:15:23 drwxrwxr-x 4 jenkins jenkins 4096 Apr 25 05:11 .. 05:15:23 -rw-rw-r-- 1 jenkins jenkins 140 Apr 25 05:11 .dockerignore 05:15:23 drwxrwxr-x 8 jenkins jenkins 4096 Apr 25 05:11 .git 05:15:23 drwxrwxr-x 3 jenkins jenkins 4096 Apr 25 05:11 .github 05:15:23 -rw-rw-r-- 1 jenkins jenkins 331 Apr 25 05:11 .gitignore 05:15:23 -rw-rw-r-- 1 jenkins jenkins 41 Apr 25 05:11 .golangci.yml 05:15:23 -rw-rw-r-- 1 jenkins jenkins 9244 Apr 25 05:11 Attribution.txt 05:15:23 -rw-rw-r-- 1 jenkins jenkins 6038 Apr 25 05:11 CHANGELOG.md 05:15:23 -rw-rw-r-- 1 jenkins jenkins 1546 Apr 25 05:11 Dockerfile 05:15:23 -rw-rw-r-- 1 jenkins jenkins 677 Apr 25 05:11 GOVERNANCE.md 05:15:23 -rw-rw-r-- 1 jenkins jenkins 680 Apr 25 05:11 Jenkinsfile 05:15:23 -rw-rw-r-- 1 jenkins jenkins 11340 Apr 25 05:11 LICENSE 05:15:23 -rw-rw-r-- 1 jenkins jenkins 1905 Apr 25 05:11 Makefile 05:15:23 -rw-rw-r-- 1 jenkins jenkins 622 Apr 25 05:11 OWNERS.md 05:15:23 -rw-rw-r-- 1 jenkins jenkins 3680 Apr 25 05:11 README.md 05:15:23 -rw-rw-r-- 1 jenkins jenkins 5 Apr 25 05:07 VERSION 05:15:23 drwxrwxr-x 2 jenkins jenkins 4096 Apr 25 05:11 bin 05:15:23 drwxrwxr-x 3 jenkins jenkins 4096 Apr 25 05:11 cmd 05:15:23 -rw-r--r-- 1 jenkins jenkins 24065 Apr 25 05:14 coverage.out 05:15:23 -rw-rw-r-- 1 jenkins jenkins 3306 Apr 25 05:11 go.mod 05:15:23 -rw-rw-r-- 1 jenkins jenkins 54457 Apr 25 05:11 go.sum 05:15:23 drwxrwxr-x 3 jenkins jenkins 4096 Apr 25 05:11 internal 05:15:23 drwxrwxr-x 2 jenkins jenkins 4096 Apr 25 05:11 simulator 05:15:23 drwxrwxr-x 4 jenkins jenkins 4096 Apr 25 05:11 snap 05:15:23 -rw-rw-r-- 1 jenkins jenkins 229 Apr 25 05:11 version.go [Pipeline] isUnix [Pipeline] sh 05:15:23 + 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=4fb51efe987eb81c17e8be5dfeb90a8d52b02bba --label arch=arm64 --label version=0.0.0 . 05:15:24 Sending build context to Docker daemon 3.102MB 05:15:24 Step 1/23 : ARG BASE=golang:1.17-alpine3.15 05:15:24 Step 2/23 : FROM ${BASE} AS builder 05:15:24 ---> 4fed99674b84 05:15:24 Step 3/23 : ARG MAKE='make build' 05:15:24 ---> Running in 49745e5f1d5d 05:15:24 Removing intermediate container 49745e5f1d5d 05:15:24 ---> 6db36011f4ac 05:15:24 Step 4/23 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 05:15:24 ---> Running in f8e1bff3fde4 05:15:26 Removing intermediate container f8e1bff3fde4 05:15:26 ---> 08f02b1c6dab 05:15:26 Step 5/23 : RUN apk add --update --no-cache make git openssh gcc libc-dev zeromq-dev libsodium-dev 05:15:26 ---> Running in f882cb2b5ac8 05:15:27 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 05:15:28 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 05:15:29 OK: 226 MiB in 60 packages 05:15:30 Removing intermediate container f882cb2b5ac8 05:15:30 ---> a4d91cbcd26e 05:15:30 Step 6/23 : WORKDIR /device-modbus-go 05:15:30 ---> Running in 4aec4c87c711 05:15:31 Removing intermediate container 4aec4c87c711 05:15:31 ---> 387c15cddb1b 05:15:31 Step 7/23 : COPY go.mod vendor* ./ 05:15:31 ---> dcd49e6b8192 05:15:31 Step 8/23 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 05:15:31 ---> Running in 2ea125f47f49 05:15:33 Removing intermediate container 2ea125f47f49 05:15:33 ---> 6b98a27b2a4d 05:15:33 Step 9/23 : COPY . . 05:15:34 ---> 5dfcada9edbd 05:15:34 Step 10/23 : RUN ${MAKE} 05:15:34 ---> Running in 8d3842b19f42 05:15:35 CGO_ENABLED=1 GO111MODULE=on go build -ldflags "-linkmode=external -X github.com/edgexfoundry/device-modbus-go.Version=0.0.0" -trimpath -mod=readonly -buildmode=pie -o cmd/device-modbus ./cmd 05:17:42 Removing intermediate container 8d3842b19f42 05:17:42 ---> 0097e0998aa0 05:17:42 Step 11/23 : FROM alpine:3.14 05:17:42 3.14: Pulling from library/alpine 05:17:42 455c02918c45: Pulling fs layer 05:17:42 455c02918c45: Download complete 05:17:42 455c02918c45: Pull complete 05:17:42 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 05:17:42 Status: Downloaded newer image for alpine:3.14 05:17:42 ---> ac73e934f311 05:17:42 Step 12/23 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IoTech Ltd' 05:17:42 ---> Running in 0f90b2c06f1c 05:17:42 Removing intermediate container 0f90b2c06f1c 05:17:42 ---> dc162b6f8e43 05:17:42 Step 13/23 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 05:17:42 ---> Running in 5e66e0de4398 05:17:42 Removing intermediate container 5e66e0de4398 05:17:42 ---> 8788079b4b48 05:17:42 Step 14/23 : RUN apk add --update --no-cache zeromq dumb-init 05:17:42 ---> Running in 1e3e9839a222 05:17:44 fetch https://nl.alpinelinux.org/alpine/v3.14/main/aarch64/APKINDEX.tar.gz 05:17:44 fetch https://nl.alpinelinux.org/alpine/v3.14/community/aarch64/APKINDEX.tar.gz 05:17:45 (1/6) Installing dumb-init (1.2.5-r1) 05:17:45 (2/6) Installing libgcc (10.3.1_git20210424-r2) 05:17:45 (3/6) Installing libsodium (1.0.18-r0) 05:17:45 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 05:17:46 (5/6) Installing libzmq (4.3.4-r0) 05:17:46 (6/6) Installing zeromq (4.3.4-r0) 05:17:46 Executing busybox-1.33.1-r7.trigger 05:17:46 OK: 8 MiB in 20 packages 05:17:47 Removing intermediate container 1e3e9839a222 05:17:47 ---> e60c1281d8b7 05:17:47 Step 15/23 : COPY --from=builder /device-modbus-go/cmd / 05:17:48 ---> ee7e6ea43d6c 05:17:48 Step 16/23 : COPY --from=builder /device-modbus-go/LICENSE / 05:17:49 ---> 32eb4bc4d19f 05:17:49 Step 17/23 : COPY --from=builder /device-modbus-go/Attribution.txt / 05:17:49 ---> cc8120b0e65e 05:17:49 Step 18/23 : EXPOSE 59901 05:17:49 ---> Running in 3592ad221628 05:17:49 Removing intermediate container 3592ad221628 05:17:49 ---> 407e64b7ac92 05:17:49 Step 19/23 : ENTRYPOINT ["/device-modbus"] 05:17:49 ---> Running in bc74bb38e879 05:17:50 Removing intermediate container bc74bb38e879 05:17:50 ---> 55119311e147 05:17:50 Step 20/23 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry", "--confdir=/res"] 05:17:50 ---> Running in 0de2eb7baad0 05:17:50 Removing intermediate container 0de2eb7baad0 05:17:50 ---> df0b0d51cfea 05:17:50 Step 21/23 : LABEL arch=arm64 05:17:50 ---> Running in 63107f4241cf 05:17:51 Removing intermediate container 63107f4241cf 05:17:51 ---> fbd6411195cb 05:17:51 Step 22/23 : LABEL git_sha=4fb51efe987eb81c17e8be5dfeb90a8d52b02bba 05:17:51 ---> Running in e4dd8c37f0d1 05:17:51 Removing intermediate container e4dd8c37f0d1 05:17:51 ---> 5077f989111f 05:17:51 Step 23/23 : LABEL version=0.0.0 05:17:51 ---> Running in 209410a6c85b 05:17:51 Removing intermediate container 209410a6c85b 05:17:51 ---> f248a69b1350 05:17:51 [Warning] One or more build-args [ARCH] were not consumed 05:17:51 Successfully built f248a69b1350 05:17:51 Successfully tagged device-modbus-arm64:latest [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] sh 05:17:52 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 05:17:52 05:17:52 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] sh 05:17:53 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 05:17:53 arm64: Pulling from edgex-lftools-log-publisher 05:17:53 8998bd30e6a1: Pulling fs layer 05:17:53 04944245beec: Pulling fs layer 05:17:53 699f458cf7ca: Pulling fs layer 05:17:53 765212b225bb: Pulling fs layer 05:17:53 f23df028b6ca: Pulling fs layer 05:17:53 d65c8cfc05b1: Pulling fs layer 05:17:53 2437ff75d9bd: Pulling fs layer 05:17:53 f23df028b6ca: Waiting 05:17:53 d65c8cfc05b1: Waiting 05:17:53 2437ff75d9bd: Waiting 05:17:53 765212b225bb: Waiting 05:17:53 04944245beec: Verifying Checksum 05:17:53 04944245beec: Download complete 05:17:53 765212b225bb: Verifying Checksum 05:17:53 765212b225bb: Download complete 05:17:53 f23df028b6ca: Verifying Checksum 05:17:53 f23df028b6ca: Download complete 05:17:53 d65c8cfc05b1: Verifying Checksum 05:17:53 d65c8cfc05b1: Download complete 05:17:53 699f458cf7ca: Verifying Checksum 05:17:53 699f458cf7ca: Download complete 05:17:53 8998bd30e6a1: Verifying Checksum 05:17:53 8998bd30e6a1: Download complete 05:17:56 2437ff75d9bd: Verifying Checksum 05:17:56 2437ff75d9bd: Download complete 05:17:57 8998bd30e6a1: Pull complete 05:17:58 04944245beec: Pull complete 05:18:00 699f458cf7ca: Pull complete 05:18:00 765212b225bb: Pull complete 05:18:01 f23df028b6ca: Pull complete 05:18:01 d65c8cfc05b1: Pull complete 05:18:17 2437ff75d9bd: Pull complete 05:18:17 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 05:18:17 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 05:18:17 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] withDockerContainer 05:18:17 prd-ubuntu20.04-docker-arm64-4c-16g-21949 does not seem to be running inside a container 05:18:17 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/device-modbus-go/1 -v /w/workspace/device-modbus-go/1:/w/workspace/device-modbus-go/1:rw,z -v /w/workspace/device-modbus-go/1@tmp:/w/workspace/device-modbus-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 05:18:19 $ docker top c2c08c0fe87c004f6405ebac6c816ae24005770d14032cef1450245d0822bba3 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 05:18:20 ---> job-cost.sh 05:18:20 lf-activate-venv: SKIPPING 05:18:20 INFO: No Stack... 05:18:21 INFO: Retrieving Pricing Info for: v3-standard-4 05:18:21 INFO: Archiving Costs [Pipeline] sh 05:18:22 + cut -d, -f6 05:18:22 + cat /w/workspace/device-modbus-go/1/archives/cost.csv [Pipeline] lock 05:18:22 Trying to acquire lock on [jenkins-edgexfoundry-device-modbus-go-PR-334-1-stack-cost] 05:18:22 Resource [jenkins-edgexfoundry-device-modbus-go-PR-334-1-stack-cost] did not exist. Created. 05:18:22 Lock acquired on [jenkins-edgexfoundry-device-modbus-go-PR-334-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 05:18:23 /w/workspace/device-modbus-go/1@tmp/durable-b5eca251/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 05:18:24 + echo total: 0.10999999940395355 [Pipeline] stash 05:18:24 Warning: overwriting stash ‘stack-cost’ 05:18:24 Stashed 1 file(s) [Pipeline] } 05:18:24 Lock released on resource [jenkins-edgexfoundry-device-modbus-go-PR-334-1-stack-cost] [Pipeline] // lock [Pipeline] } 05:18:24 $ docker stop --time=1 c2c08c0fe87c004f6405ebac6c816ae24005770d14032cef1450245d0822bba3 05:18:25 $ docker rm -f c2c08c0fe87c004f6405ebac6c816ae24005770d14032cef1450245d0822bba3 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // ws [Pipeline] } [Pipeline] // node [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // parallel [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (CodeCov) [Pipeline] unstash [Pipeline] configFileProvider 05:18:26 provisioning config files... 05:18:26 copy managed file [device-modbus-go-codecov-token] to file:/w/workspace/xfoundry_device-modbus-go_PR-334@tmp/config5934021696595890929tmp [Pipeline] { [Pipeline] sh 05:18:27 + set +x 05:18:27 + curl -s https://codecov.io/bash 05:18:27 + bash -s -- 05:18:27 05:18:27 _____ _ 05:18:27 / ____| | | 05:18:27 | | ___ __| | ___ ___ _____ __ 05:18:27 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 05:18:27 | |___| (_) | (_| | __/ (_| (_) \ V / 05:18:27 \_____\___/ \__,_|\___|\___\___/ \_/ 05:18:27 Bash-1.0.6 05:18:27 05:18:27 05:18:27 ==> git version 2.25.1 found 05:18:27 ==> curl 7.68.0 (x86_64-pc-linux-gnu) libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3 05:18:27 Release-Date: 2020-01-08 05:18:27 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 05:18:27 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 05:18:27 ==> Jenkins CI detected. 05:18:27 current dir:  /w/workspace/xfoundry_device-modbus-go_PR-334 05:18:27 project root: . 05:18:27 --> token set from env 05:18:27 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 05:18:27 ==> Running gcov in . (disable via -X gcov) 05:18:27 ==> Python coveragepy not found 05:18:27 ==> Searching for coverage reports in: 05:18:27 + . 05:18:27 -> Found 1 reports 05:18:27 ==> Detecting git/mercurial file structure 05:18:27 ==> Reading reports 05:18:27 + ./coverage.out bytes=24065 05:18:27 ==> Appending adjustments 05:18:27 https://docs.codecov.io/docs/fixing-reports 05:18:27 + Found adjustments 05:18:27 ==> Gzipping contents 05:18:27 4.0K /tmp/codecov.h6kCxb.gz 05:18:27 ==> Uploading reports 05:18:27 url: https://codecov.io 05:18:27 query: branch=PR-334&commit=4fb51efe987eb81c17e8be5dfeb90a8d52b02bba&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-modbus-go%2Fjob%2FPR-334%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-modbus-go&service=jenkins&flags=&pr=334&job=&cmd_args= 05:18:27 -> Pinging Codecov 05:18:27 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=3a8d40b1-de00-4649-bfd4-bdc8ed99ae89&branch=PR-334&commit=4fb51efe987eb81c17e8be5dfeb90a8d52b02bba&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-modbus-go%2Fjob%2FPR-334%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-modbus-go&service=jenkins&flags=&pr=334&job=&cmd_args= 05:18:27 -> Uploading to 05:18:27 https://storage.googleapis.com/codecov/v4/raw/2022-04-25/55DBCA73C666E3227836607328DD7E49/4fb51efe987eb81c17e8be5dfeb90a8d52b02bba/137968f7-cefe-46fc-9cd6-1dc521c531eb.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20220425%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20220425T051827Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=34498618ffc787b4d666f6f83715a94156c497e471a6d19daeee8df1726870bc 05:18:27 % Total % Received % Xferd Average Speed Time Time Time Current 05:18:27 Dload Upload Total Spent Left Speed 05:18:27 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 4013 0 0 100 4013 0 19768 --:--:-- --:--:-- --:--:-- 19671 100 4013 0 0 100 4013 0 19386 --:--:-- --:--:-- --:--:-- 19293 05:18:27 -> Reports have been successfully queued for processing at https://codecov.io/github/edgexfoundry/device-modbus-go/commit/4fb51efe987eb81c17e8be5dfeb90a8d52b02bba [Pipeline] } 05:18:28 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Snyk Dependency Scan) Stage "Snyk Dependency Scan" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Archive Prep) Stage "Archive Prep" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Publish Swagger) Stage "Publish Swagger" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Semver) Stage "Semver" skipped due to when conditional [Pipeline] stage [Pipeline] { (Tag) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Pre-Release Version) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Experimental Tag) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Stable (Named) Tag) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Declarative: Post Actions) [Pipeline] stage [Pipeline] { (LF Post Build Actions) [Pipeline] sh 05:18:29 + [ -d /w/workspace/xfoundry_device-modbus-go_PR-334/archives ] 05:18:29 + ls -al /w/workspace/xfoundry_device-modbus-go_PR-334/archives 05:18:29 total 16 05:18:29 drwxr-xr-x 3 root root 4096 Apr 25 05:09 . 05:18:29 drwxrwxr-x 11 jenkins jenkins 4096 Apr 25 05:09 .. 05:18:29 drwxr-xr-x 2 root root 4096 Apr 25 05:09 cost 05:18:29 -rw-r--r-- 1 root root 87 Apr 25 05:09 cost.csv 05:18:29 + sudo chown -R jenkins:jenkins /w/workspace/xfoundry_device-modbus-go_PR-334/archives 05:18:29 + ls -al /w/workspace/xfoundry_device-modbus-go_PR-334/archives 05:18:29 total 16 05:18:29 drwxr-xr-x 3 jenkins jenkins 4096 Apr 25 05:09 . 05:18:29 drwxrwxr-x 11 jenkins jenkins 4096 Apr 25 05:09 .. 05:18:29 drwxr-xr-x 2 jenkins jenkins 4096 Apr 25 05:09 cost 05:18:29 -rw-r--r-- 1 jenkins jenkins 87 Apr 25 05:09 cost.csv [Pipeline] libraryResource [Pipeline] sh 05:18:29 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 05:18:30 ---> package-listing.sh 05:18:30 ++ facter osfamily 05:18:30 ++ tr '[:upper:]' '[:lower:]' 05:18:31 + OS_FAMILY=debian 05:18:31 + workspace=/w/workspace/xfoundry_device-modbus-go_PR-334 05:18:31 + START_PACKAGES=/tmp/packages_start.txt 05:18:31 + END_PACKAGES=/tmp/packages_end.txt 05:18:31 + DIFF_PACKAGES=/tmp/packages_diff.txt 05:18:31 + PACKAGES=/tmp/packages_start.txt 05:18:31 + '[' /w/workspace/xfoundry_device-modbus-go_PR-334 ']' 05:18:31 + PACKAGES=/tmp/packages_end.txt 05:18:31 + case "${OS_FAMILY}" in 05:18:31 + dpkg -l 05:18:31 + grep '^ii' 05:18:31 + '[' -f /tmp/packages_start.txt ']' 05:18:31 + '[' -f /tmp/packages_end.txt ']' 05:18:31 + diff /tmp/packages_start.txt /tmp/packages_end.txt 05:18:31 + '[' /w/workspace/xfoundry_device-modbus-go_PR-334 ']' 05:18:31 + mkdir -p /w/workspace/xfoundry_device-modbus-go_PR-334/archives/ 05:18:31 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/xfoundry_device-modbus-go_PR-334/archives/ [Pipeline] echo 05:18:31 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-334/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 05:18:31 + facter operatingsystem [Pipeline] isUnix [Pipeline] sh 05:18:32 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 05:18:32 . [Pipeline] withDockerContainer 05:18:32 prd-ubuntu20.04-docker-8c-8g-21943 does not seem to be running inside a container 05:18:32 $ 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-334/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-334 -v /w/workspace/xfoundry_device-modbus-go_PR-334:/w/workspace/xfoundry_device-modbus-go_PR-334:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-334@tmp:/w/workspace/xfoundry_device-modbus-go_PR-334@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 05:18:32 $ docker top 641c8b11e8f92558378a1e1041f1d8a58ef16d81d242289c109dc7e75f3c2033 -eo pid,comm [Pipeline] { [Pipeline] sh 05:18:32 + touch /tmp/pre-build-complete [Pipeline] sh 05:18:33 + mkdir -p /var/log/sysstat [Pipeline] sh 05:18:33 + ls /var/log/sa-host 05:18:33 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 05:18:33 provisioning config files... 05:18:33 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-334@tmp/config8249178174797922686tmp [Pipeline] { [Pipeline] echo 05:18:33 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 05:18:34 ---> create-netrc.sh [Pipeline] } 05:18:34 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 05:18:34 ---> python-tools-install.sh [Pipeline] echo 05:18:34 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 05:18:34 ---> sudo-logs.sh 05:18:34 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 05:18:34 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 05:18:35 ---> job-cost.sh 05:18:35 lf-activate-venv: SKIPPING 05:18:35 DEBUG: total: 0.2199999988079071 05:18:35 INFO: Retrieving Stack Cost... 05:18:35 INFO: Retrieving Pricing Info for: v3-standard-8 05:18:36 INFO: Archiving Costs [Pipeline] echo 05:18:36 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 05:18:36 ---> logs-deploy.sh 05:18:36 lf-activate-venv: SKIPPING 05:18:36 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-modbus-go/PR-334/1 05:18:36 INFO: archiving workspace using pattern(s): 05:18:37 Archives upload complete. 05:18:37 INFO: archiving logs to Nexus