Pull request #339 opened Connecting to https://api.github.com using edgex-jenkins github personal access token Connecting to https://api.github.com to check permissions of obtain list of jinlinGuan for edgexfoundry/device-modbus-go Loading trusted files from base branch main at e01a1226a5cf77919213724cb5799907c2b0adaa rather than ce482a524a6fbae6af8ef034fc3c09305a0243e8 Obtained Jenkinsfile from e01a1226a5cf77919213724cb5799907c2b0adaa 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-ssh15891154370671758929.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-ssh15744571919084545193.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-339/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-339/workspace@libs/edgex-global-pipelines@tmp/jenkins-gitclient-ssh109732173765525189.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-339/workspace@libs/edgex-global-pipelines@tmp/jenkins-gitclient-ssh11664792845438007357.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-ssh17935862024824431529.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-339/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-339/workspace@libs/lf-pipelines@tmp/jenkins-gitclient-ssh12081918155189554469.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 ‘prd-ubuntu20.04-docker-8c-8g-33455’ is offline Running on prd-ubuntu20.04-docker-8c-8g-33457 in /w/workspace/xfoundry_device-modbus-go_PR-339 [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-339 # 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 e01a1226a5cf77919213724cb5799907c2b0adaa into PR head commit ce482a524a6fbae6af8ef034fc3c09305a0243e8 Merge succeeded, producing ce482a524a6fbae6af8ef034fc3c09305a0243e8 Checking out Revision ce482a524a6fbae6af8ef034fc3c09305a0243e8 (PR-339) > 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/339/head:refs/remotes/origin/PR-339 +refs/heads/main:refs/remotes/origin/main # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f ce482a524a6fbae6af8ef034fc3c09305a0243e8 # 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 e01a1226a5cf77919213724cb5799907c2b0adaa # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f ce482a524a6fbae6af8ef034fc3c09305a0243e8 # timeout=10 Commit message: "feat: Bump device-sdk-go version and update configuration.toml" 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 09:59:21 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 09:59:22 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 09:59:22 ========================================================= 09:59:22 EdgeX Global Pipelines Version Info 09:59:22 ========================================================= [Pipeline] libraryResource [Pipeline] sh 09:59:23 ------------------- 09:59:23 stable info: 09:59:23 ------------------- 09:59:23 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 09:59:23 Commit SHA: c72b16708d6eed9a08be464a432ce22db7d90667 09:59:23 Message: update stable to v1.0.221 09:59:23 ------------------- 09:59:23 experimental info: 09:59:23 ------------------- 09:59:23 Commited By: **** collab-it+edgex@linuxfoundation.org 09:59:23 Commit SHA: 47c9b3891b578ce509e33c5bc61a4c29aa566c02 09:59:23 Message: update experimental to v1.0.226 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 09:59:23 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-modbus-go-settings [Pipeline] echo 09:59:23 [edgeXSetupEnvironment]: set envvar PROJECT = device-modbus-go [Pipeline] echo 09:59:24 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 09:59:24 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 09:59:24 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 09:59:24 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.17 [Pipeline] echo 09:59:24 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 09:59:24 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 09:59:24 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 09:59:24 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 09:59:24 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 09:59:24 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-modbus [Pipeline] echo 09:59:24 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 09:59:24 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 09:59:24 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 09:59:24 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 09:59:24 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 09:59:24 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 09:59:24 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 09:59:24 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 09:59:24 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 09:59:24 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 09:59:24 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 09:59:24 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 09:59:24 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 09:59:24 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 09:59:25 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-339 [Pipeline] echo 09:59:25 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-339 [Pipeline] echo 09:59:25 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-339 [Pipeline] echo 09:59:25 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = ce482a524a6fbae6af8ef034fc3c09305a0243e8 [Pipeline] echo 09:59:25 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = ce482a5 [Pipeline] echo 09:59:25 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 09:59:25 provisioning config files... 09:59:25 copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-339@tmp/config6261782992018845805tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 09:59:25 ---> docker-login.sh 09:59:25 nexus3.edgexfoundry.org:10001 09:59:26 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:59:26 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:59:26 Configure a credential helper to remove this warning. See 09:59:26 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:59:26 09:59:26 Login Succeeded 09:59:26 nexus3.edgexfoundry.org:10002 09:59:26 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:59:26 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:59:26 Configure a credential helper to remove this warning. See 09:59:26 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:59:26 09:59:26 Login Succeeded 09:59:26 nexus3.edgexfoundry.org:10003 09:59:26 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:59:26 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:59:26 Configure a credential helper to remove this warning. See 09:59:26 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:59:26 09:59:26 Login Succeeded 09:59:26 nexus3.edgexfoundry.org:10004 09:59:26 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:59:26 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:59:26 Configure a credential helper to remove this warning. See 09:59:26 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:59:26 09:59:26 Login Succeeded 09:59:26 docker.io 09:59:26 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:59:27 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:59:27 Configure a credential helper to remove this warning. See 09:59:27 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:59:27 09:59:27 Login Succeeded 09:59:27 ---> docker-login.sh ends [Pipeline] } 09:59:27 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 09:59:27 + git rev-list -1 --merges ce482a524a6fbae6af8ef034fc3c09305a0243e8~1..ce482a524a6fbae6af8ef034fc3c09305a0243e8 [Pipeline] echo 09:59:27 -----------> git rev-list -1 --merges ce482a524a6fbae6af8ef034fc3c09305a0243e8~1..ce482a524a6fbae6af8ef034fc3c09305a0243e8 ce482a524a6fbae6af8ef034fc3c09305a0243e8 [false] [Pipeline] sh 09:59:28 + git log --format=format:%s -1 ce482a524a6fbae6af8ef034fc3c09305a0243e8 [Pipeline] echo 09:59:28 ========================================================= 09:59:28 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 09:59:28 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 09:59:28 + git log --format=format:%s -1 ce482a524a6fbae6af8ef034fc3c09305a0243e8 [Pipeline] echo 09:59:28 [semverPrep] GIT_COMMIT: ce482a524a6fbae6af8ef034fc3c09305a0243e8, Commit Message: feat: Bump device-sdk-go version and update configuration.toml [Pipeline] echo 09:59:28 [semverPrep] This is not a build commit. [Pipeline] sh 09:59:29 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 09:59:29 + grep -v github /etc/ssh/ssh_known_hosts 09:59:29 + [ -e /tmp/ssh_known_hosts ] 09:59:29 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 09:59:29 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 09:59:29 + sudo tee -a /etc/ssh/ssh_known_hosts 09:59:29 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] sh 09:59:29 + docker inspect -f . nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 09:59:29 09:59:29 Error: No such object: nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] isUnix [Pipeline] sh 09:59:30 + docker pull nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 09:59:30 latest: Pulling from edgex-devops/git-semver 09:59:30 a0d0a0d46f8b: Pulling fs layer 09:59:30 3e5f54012d9b: Pulling fs layer 09:59:30 4c7163046ea9: Pulling fs layer 09:59:30 0c2d73faf560: Pulling fs layer 09:59:30 0c2d73faf560: Waiting 09:59:30 3e5f54012d9b: Download complete 09:59:30 a0d0a0d46f8b: Download complete 09:59:30 0c2d73faf560: Verifying Checksum 09:59:30 0c2d73faf560: Download complete 09:59:30 4c7163046ea9: Verifying Checksum 09:59:30 4c7163046ea9: Download complete 09:59:30 a0d0a0d46f8b: Pull complete 09:59:30 3e5f54012d9b: Pull complete 09:59:30 4c7163046ea9: Pull complete 09:59:30 0c2d73faf560: Pull complete 09:59:30 Digest: sha256:2751de6e655929dcbe46418c7769d9d992331b5b721eb968631a4166222929f9 09:59:30 Status: Downloaded newer image for nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 09:59:30 nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] withDockerContainer 09:59:30 prd-ubuntu20.04-docker-8c-8g-33457 does not seem to be running inside a container 09:59:30 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/xfoundry_device-modbus-go_PR-339 -v /w/workspace/xfoundry_device-modbus-go_PR-339:/w/workspace/xfoundry_device-modbus-go_PR-339:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-339@tmp:/w/workspace/xfoundry_device-modbus-go_PR-339@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 ******** nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest cat 09:59:31 $ docker top d5b221f5cd56c25d1e7e9579a18b5d8f497f72b35197b0e23c3a13dd23341649 -eo pid,comm [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 09:59:31 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 09:59:31 [ssh-agent] Looking for ssh-agent implementation... 09:59:32 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 09:59:32 $ docker exec d5b221f5cd56c25d1e7e9579a18b5d8f497f72b35197b0e23c3a13dd23341649 ssh-agent 09:59:32 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXHJcoNG/agent.14 09:59:32 SSH_AGENT_PID=21 09:59:32 Running ssh-add (command line suppressed) 09:59:32 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-339@tmp/private_key_8098692048718756756.key (/w/workspace/xfoundry_device-modbus-go_PR-339@tmp/private_key_8098692048718756756.key) 09:59:32 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 09:59:32 + git tag --points-at HEAD [Pipeline] } 09:59:32 $ docker exec --env ******** --env ******** d5b221f5cd56c25d1e7e9579a18b5d8f497f72b35197b0e23c3a13dd23341649 ssh-agent -k 09:59:32 unset SSH_AUTH_SOCK; 09:59:32 unset SSH_AGENT_PID; 09:59:32 echo Agent pid 21 killed; 09:59:32 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 09:59:32 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 09:59:32 [ssh-agent] Looking for ssh-agent implementation... 09:59:33 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 09:59:33 $ docker exec d5b221f5cd56c25d1e7e9579a18b5d8f497f72b35197b0e23c3a13dd23341649 ssh-agent 09:59:33 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXoDDKMn/agent.56 09:59:33 SSH_AGENT_PID=63 09:59:33 Running ssh-add (command line suppressed) 09:59:33 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-339@tmp/private_key_6730546492387086510.key (/w/workspace/xfoundry_device-modbus-go_PR-339@tmp/private_key_6730546492387086510.key) 09:59:33 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 09:59:33 + git semver init 09:59:33 # -> Open(): unable to determine branch for HEAD 09:59:33 # $GIT_DIR = /w/workspace/xfoundry_device-modbus-go_PR-339/.git 09:59:33 # $GIT_WORK_TREE = /w/workspace/xfoundry_device-modbus-go_PR-339 09:59:33 # $SEMVER_REMOTE_NAME = origin 09:59:33 # $SEMVER_USER_EMAIL = collab-it+edgex@linuxfoundation.org 09:59:33 # $SEMVER_USER_NAME = edgex-jenkins 09:59:33 # $SEMVER_BRANCH = PR-339 09:59:33 # $SEMVER_TEMP = /tmp/semver-131939968 09:59:33 # git clone --branch semver git@github.com:edgexfoundry/device-modbus-go.git $SEMVER_TEMP 09:59:34 # '/tmp/semver-131939968' -> '/w/workspace/xfoundry_device-modbus-go_PR-339/.semver' 09:59:34 # -> Force: false 09:59:34 # $SEMVER_DIR = /w/workspace/xfoundry_device-modbus-go_PR-339/.semver [Pipeline] } 09:59:34 $ docker exec --env ******** --env ******** d5b221f5cd56c25d1e7e9579a18b5d8f497f72b35197b0e23c3a13dd23341649 ssh-agent -k 09:59:34 unset SSH_AUTH_SOCK; 09:59:34 unset SSH_AGENT_PID; 09:59:34 echo Agent pid 63 killed; 09:59:34 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 09:59:35 + git semver [Pipeline] } 09:59:35 $ docker stop --time=1 d5b221f5cd56c25d1e7e9579a18b5d8f497f72b35197b0e23c3a13dd23341649 09:59:36 $ docker rm -f d5b221f5cd56c25d1e7e9579a18b5d8f497f72b35197b0e23c3a13dd23341649 [Pipeline] // withDockerContainer [Pipeline] sh 09:59:37 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 09:59:37 Stashed 1 file(s) [Pipeline] echo 09:59:37 [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 09:59:37 provisioning config files... 09:59:37 copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-339@tmp/config4286124523295546846tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 09:59:38 ---> docker-login.sh 09:59:38 nexus3.edgexfoundry.org:10001 09:59:38 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:59:38 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:59:38 Configure a credential helper to remove this warning. See 09:59:38 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:59:38 09:59:38 Login Succeeded 09:59:38 nexus3.edgexfoundry.org:10002 09:59:38 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:59:38 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:59:38 Configure a credential helper to remove this warning. See 09:59:38 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:59:38 09:59:38 Login Succeeded 09:59:38 nexus3.edgexfoundry.org:10003 09:59:38 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:59:38 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:59:38 Configure a credential helper to remove this warning. See 09:59:38 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:59:38 09:59:38 Login Succeeded 09:59:38 nexus3.edgexfoundry.org:10004 09:59:38 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:59:38 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:59:38 Configure a credential helper to remove this warning. See 09:59:38 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:59:38 09:59:38 Login Succeeded 09:59:38 docker.io 09:59:38 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:59:39 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:59:39 Configure a credential helper to remove this warning. See 09:59:39 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:59:39 09:59:39 Login Succeeded 09:59:39 ---> docker-login.sh ends [Pipeline] } 09:59:39 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 09:59:39 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 09:59:39 ========================================================= 09:59:39 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine] 09:59:39 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 09:59:39 + 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 . 09:59:39 Sending build context to Docker daemon 5.894MB 09:59:39 Step 1/10 : ARG BASE=golang:1.17-alpine3.15 09:59:39 Step 2/10 : FROM ${BASE} AS builder 09:59:39 1.17-alpine: Pulling from edgex-devops/edgex-golang-base 09:59:39 59bf1c3509f3: Pulling fs layer 09:59:39 666ba61612fd: Pulling fs layer 09:59:39 8ed8ca486205: Pulling fs layer 09:59:39 4fe6c5a15a65: Pulling fs layer 09:59:39 22a0e8bec74d: Pulling fs layer 09:59:39 ca2b28591e48: Pulling fs layer 09:59:39 a51346096db8: Pulling fs layer 09:59:39 daebc70d1ce1: Pulling fs layer 09:59:39 0e18a0eac166: Pulling fs layer 09:59:39 ca2b28591e48: Waiting 09:59:39 0e18a0eac166: Waiting 09:59:39 a51346096db8: Waiting 09:59:39 daebc70d1ce1: Waiting 09:59:39 4fe6c5a15a65: Waiting 09:59:39 22a0e8bec74d: Waiting 09:59:39 8ed8ca486205: Download complete 09:59:39 666ba61612fd: Download complete 09:59:40 22a0e8bec74d: Verifying Checksum 09:59:40 22a0e8bec74d: Download complete 09:59:40 ca2b28591e48: Verifying Checksum 09:59:40 ca2b28591e48: Download complete 09:59:40 a51346096db8: Verifying Checksum 09:59:40 a51346096db8: Download complete 09:59:40 59bf1c3509f3: Verifying Checksum 09:59:40 daebc70d1ce1: Verifying Checksum 09:59:40 daebc70d1ce1: Download complete 09:59:40 59bf1c3509f3: Pull complete 09:59:40 666ba61612fd: Pull complete 09:59:40 8ed8ca486205: Pull complete 09:59:40 0e18a0eac166: Verifying Checksum 09:59:40 0e18a0eac166: Download complete 09:59:40 4fe6c5a15a65: Verifying Checksum 09:59:40 4fe6c5a15a65: Download complete 09:59:45 4fe6c5a15a65: Pull complete 09:59:45 22a0e8bec74d: Pull complete 09:59:45 ca2b28591e48: Pull complete 09:59:45 a51346096db8: Pull complete 09:59:45 daebc70d1ce1: Pull complete 09:59:48 0e18a0eac166: Pull complete 09:59:48 Digest: sha256:5cf2d0a306c5171eb5b3008c4b83cc7b6044f1808c238cb17927cddb93576120 09:59:48 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine 09:59:48 ---> f018257e8ee9 09:59:48 Step 3/10 : ARG MAKE='make build' 09:59:49 ---> Running in 06e66fce4d1b 09:59:49 Removing intermediate container 06e66fce4d1b 09:59:49 ---> 1050a52ee604 09:59:49 Step 4/10 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 09:59:49 ---> Running in 87c9b6714580 09:59:50 Removing intermediate container 87c9b6714580 09:59:50 ---> 3129299c4d1e 09:59:50 Step 5/10 : RUN apk add --update --no-cache make git openssh gcc libc-dev zeromq-dev libsodium-dev 09:59:50 ---> Running in 9e1ac589d791 09:59:50 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 09:59:51 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 09:59:51 (1/8) Installing openssh-keygen (8.8_p1-r1) 09:59:51 (2/8) Installing libedit (20210910.3.1-r0) 09:59:51 (3/8) Installing openssh-client-common (8.8_p1-r1) 09:59:52 (4/8) Installing openssh-client-default (8.8_p1-r1) 09:59:52 (5/8) Installing openssh-sftp-server (8.8_p1-r1) 09:59:52 (6/8) Installing openssh-server-common (8.8_p1-r1) 09:59:52 (7/8) Installing openssh-server (8.8_p1-r1) 09:59:52 (8/8) Installing openssh (8.8_p1-r1) 09:59:52 Executing busybox-1.34.1-r3.trigger 09:59:52 OK: 226 MiB in 60 packages 09:59:52 Still waiting to schedule task 09:59:52 ‘prd-ubuntu20.04-docker-arm64-4c-16g-33456’ is offline 09:59:52 Removing intermediate container 9e1ac589d791 09:59:52 ---> 59196c461600 09:59:52 Step 6/10 : WORKDIR /device-modbus-go 09:59:52 ---> Running in 60c7711b70ee 09:59:53 Removing intermediate container 60c7711b70ee 09:59:53 ---> c7009795742d 09:59:53 Step 7/10 : COPY go.mod vendor* ./ 09:59:53 ---> c8f981e7655e 09:59:53 Step 8/10 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 09:59:53 ---> Running in ca96e92786d0 10:00:08 Removing intermediate container ca96e92786d0 10:00:08 ---> 7d0f3aa0cfd2 10:00:08 Step 9/10 : COPY . . 10:00:08 ---> 4beeb06d21ff 10:00:08 Step 10/10 : RUN ${MAKE} 10:00:08 ---> Running in fb6a7a8bba5a 10:00:08 noop 10:00:08 Removing intermediate container fb6a7a8bba5a 10:00:08 ---> c5eb3dfeec72 10:00:08 Successfully built c5eb3dfeec72 10:00:08 Successfully tagged ci-base-image-x86_64:latest [Pipeline] isUnix [Pipeline] sh 10:00:09 + docker inspect -f . ci-base-image-x86_64 10:00:09 . [Pipeline] withDockerContainer 10:00:09 prd-ubuntu20.04-docker-8c-8g-33457 does not seem to be running inside a container 10:00:09 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/xfoundry_device-modbus-go_PR-339 -v /w/workspace/xfoundry_device-modbus-go_PR-339:/w/workspace/xfoundry_device-modbus-go_PR-339:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-339@tmp:/w/workspace/xfoundry_device-modbus-go_PR-339@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 10:00:09 $ docker top 7d2061cb4033212e5ead08f15795633505cad60bba20c2ba80241ff17e89ed2e -eo pid,comm [Pipeline] { [Pipeline] sh 10:00:10 + go version 10:00:10 go version go1.17.6 linux/amd64 [Pipeline] } 10:00:10 $ docker stop --time=1 7d2061cb4033212e5ead08f15795633505cad60bba20c2ba80241ff17e89ed2e 10:00:11 $ docker rm -f 7d2061cb4033212e5ead08f15795633505cad60bba20c2ba80241ff17e89ed2e [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 10:00:12 + docker inspect -f . ci-base-image-x86_64 10:00:12 . [Pipeline] withDockerContainer 10:00:12 prd-ubuntu20.04-docker-8c-8g-33457 does not seem to be running inside a container 10:00:12 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/xfoundry_device-modbus-go_PR-339 -v /w/workspace/xfoundry_device-modbus-go_PR-339:/w/workspace/xfoundry_device-modbus-go_PR-339:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-339@tmp:/w/workspace/xfoundry_device-modbus-go_PR-339@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 10:00:12 $ docker top 32bb18604e066346d7f186dcb3cdbc26b8b8726dbe41fd786772859de81d30ba -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 10:00:13 + make test 10:00:13 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out 10:00:13 ? github.com/edgexfoundry/device-modbus-go [no test files] 10:00:25 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 10:00:25 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.011s coverage: 46.4% of statements 10:00:32 CGO_ENABLED=1 GO111MODULE=on go vet ./... 10:00:36 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 10:00:36 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 10:00:36 ./bin/test-attribution-txt.sh [Pipeline] echo 10:00:37 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 10:00:37 $ docker stop --time=1 32bb18604e066346d7f186dcb3cdbc26b8b8726dbe41fd786772859de81d30ba 10:00:39 $ docker rm -f 32bb18604e066346d7f186dcb3cdbc26b8b8726dbe41fd786772859de81d30ba [Pipeline] // withDockerContainer [Pipeline] sh 10:00:39 + sudo chown -R jenkins:jenkins . [Pipeline] stash 10:00:39 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 10:00:41 + sudo chown -R jenkins:jenkins . [Pipeline] sh 10:00:41 + ls -al . 10:00:41 total 180 10:00:41 drwxrwxr-x 10 jenkins jenkins 4096 Apr 27 10:00 . 10:00:41 drwxrwxr-x 4 jenkins jenkins 4096 Apr 27 09:59 .. 10:00:41 -rw-rw-r-- 1 jenkins jenkins 140 Apr 27 09:59 .dockerignore 10:00:41 drwxrwxr-x 8 jenkins jenkins 4096 Apr 27 09:59 .git 10:00:41 drwxrwxr-x 3 jenkins jenkins 4096 Apr 27 09:59 .github 10:00:41 -rw-rw-r-- 1 jenkins jenkins 331 Apr 27 09:59 .gitignore 10:00:41 -rw-rw-r-- 1 jenkins jenkins 41 Apr 27 09:59 .golangci.yml 10:00:41 drwx------ 3 jenkins jenkins 4096 Apr 27 09:59 .semver 10:00:41 -rw-rw-r-- 1 jenkins jenkins 9377 Apr 27 09:59 Attribution.txt 10:00:41 -rw-rw-r-- 1 jenkins jenkins 6038 Apr 27 09:59 CHANGELOG.md 10:00:41 -rw-rw-r-- 1 jenkins jenkins 1546 Apr 27 09:59 Dockerfile 10:00:41 -rw-rw-r-- 1 jenkins jenkins 677 Apr 27 09:59 GOVERNANCE.md 10:00:41 -rw-rw-r-- 1 jenkins jenkins 680 Apr 27 09:59 Jenkinsfile 10:00:41 -rw-rw-r-- 1 jenkins jenkins 11340 Apr 27 09:59 LICENSE 10:00:41 -rw-rw-r-- 1 jenkins jenkins 1905 Apr 27 09:59 Makefile 10:00:41 -rw-rw-r-- 1 jenkins jenkins 622 Apr 27 09:59 OWNERS.md 10:00:41 -rw-rw-r-- 1 jenkins jenkins 3680 Apr 27 09:59 README.md 10:00:41 -rw-rw-r-- 1 jenkins jenkins 5 Apr 27 09:59 VERSION 10:00:41 drwxrwxr-x 2 jenkins jenkins 4096 Apr 27 09:59 bin 10:00:41 drwxrwxr-x 3 jenkins jenkins 4096 Apr 27 09:59 cmd 10:00:41 -rw-r--r-- 1 jenkins jenkins 24065 Apr 27 10:00 coverage.out 10:00:41 -rw-rw-r-- 1 jenkins jenkins 3399 Apr 27 09:59 go.mod 10:00:41 -rw-rw-r-- 1 jenkins jenkins 35075 Apr 27 09:59 go.sum 10:00:41 drwxrwxr-x 3 jenkins jenkins 4096 Apr 27 09:59 internal 10:00:41 drwxrwxr-x 2 jenkins jenkins 4096 Apr 27 09:59 simulator 10:00:41 drwxrwxr-x 4 jenkins jenkins 4096 Apr 27 09:59 snap 10:00:41 -rw-rw-r-- 1 jenkins jenkins 229 Apr 27 09:59 version.go [Pipeline] isUnix [Pipeline] sh 10:00:41 + 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=ce482a524a6fbae6af8ef034fc3c09305a0243e8 --label arch=amd64 --label version=0.0.0 . 10:00:41 Sending build context to Docker daemon 5.919MB 10:00:41 Step 1/23 : ARG BASE=golang:1.17-alpine3.15 10:00:41 Step 2/23 : FROM ${BASE} AS builder 10:00:41 ---> c5eb3dfeec72 10:00:41 Step 3/23 : ARG MAKE='make build' 10:00:41 ---> Running in 54b7839b1029 10:00:42 Removing intermediate container 54b7839b1029 10:00:42 ---> 124d3e6bb321 10:00:42 Step 4/23 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 10:00:42 ---> Running in 807f1ff6cce5 10:00:42 Removing intermediate container 807f1ff6cce5 10:00:42 ---> 06f7e025a0f9 10:00:42 Step 5/23 : RUN apk add --update --no-cache make git openssh gcc libc-dev zeromq-dev libsodium-dev 10:00:42 ---> Running in 22631abd0f1c 10:00:42 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 10:00:43 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 10:00:44 OK: 226 MiB in 60 packages 10:00:44 Removing intermediate container 22631abd0f1c 10:00:44 ---> 9203a7baea91 10:00:44 Step 6/23 : WORKDIR /device-modbus-go 10:00:44 ---> Running in fd5f97f2d4a5 10:00:44 Removing intermediate container fd5f97f2d4a5 10:00:44 ---> 2a39654eff8e 10:00:44 Step 7/23 : COPY go.mod vendor* ./ 10:00:44 ---> 932b63c33d75 10:00:44 Step 8/23 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 10:00:44 ---> Running in e6e3830fbf61 10:00:45 Removing intermediate container e6e3830fbf61 10:00:45 ---> b4a855343787 10:00:45 Step 9/23 : COPY . . 10:00:45 ---> acb73edfa905 10:00:45 Step 10/23 : RUN ${MAKE} 10:00:45 ---> Running in cc2f1a4f2d3d 10:00:46 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 10:01:08 Removing intermediate container cc2f1a4f2d3d 10:01:08 ---> f67885a0b948 10:01:08 Step 11/23 : FROM alpine:3.14 10:01:08 3.14: Pulling from library/alpine 10:01:08 8663204ce13b: Pulling fs layer 10:01:08 8663204ce13b: Verifying Checksum 10:01:08 8663204ce13b: Download complete 10:01:08 8663204ce13b: Pull complete 10:01:08 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 10:01:08 Status: Downloaded newer image for alpine:3.14 10:01:08 ---> e04c818066af 10:01:08 Step 12/23 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IoTech Ltd' 10:01:08 ---> Running in e55e0e52fe89 10:01:08 Removing intermediate container e55e0e52fe89 10:01:08 ---> e52e26098a7e 10:01:08 Step 13/23 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 10:01:08 ---> Running in caf0809aec33 10:01:09 Removing intermediate container caf0809aec33 10:01:09 ---> 7ad99c89d927 10:01:09 Step 14/23 : RUN apk add --update --no-cache zeromq dumb-init 10:01:09 ---> Running in 4d0b76675620 10:01:09 fetch https://nl.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz 10:01:10 fetch https://nl.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz 10:01:10 (1/6) Installing dumb-init (1.2.5-r1) 10:01:10 (2/6) Installing libgcc (10.3.1_git20210424-r2) 10:01:10 (3/6) Installing libsodium (1.0.18-r0) 10:01:11 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 10:01:11 (5/6) Installing libzmq (4.3.4-r0) 10:01:11 (6/6) Installing zeromq (4.3.4-r0) 10:01:11 Executing busybox-1.33.1-r7.trigger 10:01:11 OK: 8 MiB in 20 packages 10:01:11 Removing intermediate container 4d0b76675620 10:01:11 ---> 3e5426f2fa9e 10:01:11 Step 15/23 : COPY --from=builder /device-modbus-go/cmd / 10:01:12 ---> 1dc4660fba84 10:01:12 Step 16/23 : COPY --from=builder /device-modbus-go/LICENSE / 10:01:12 ---> 9a80cf5dfdfd 10:01:12 Step 17/23 : COPY --from=builder /device-modbus-go/Attribution.txt / 10:01:12 ---> 8eb91730e667 10:01:12 Step 18/23 : EXPOSE 59901 10:01:12 ---> Running in d16efdb4f7be 10:01:12 Removing intermediate container d16efdb4f7be 10:01:12 ---> 9fdd31948d5d 10:01:12 Step 19/23 : ENTRYPOINT ["/device-modbus"] 10:01:12 ---> Running in 8ecf14a3fde8 10:01:12 Removing intermediate container 8ecf14a3fde8 10:01:12 ---> 724fb5783b11 10:01:12 Step 20/23 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry", "--confdir=/res"] 10:01:13 ---> Running in 1b626113ff21 10:01:13 Removing intermediate container 1b626113ff21 10:01:13 ---> 38d1e4c89d8d 10:01:13 Step 21/23 : LABEL arch=amd64 10:01:13 ---> Running in 99cec3539dea 10:01:13 Removing intermediate container 99cec3539dea 10:01:13 ---> ec9d2f691301 10:01:13 Step 22/23 : LABEL git_sha=ce482a524a6fbae6af8ef034fc3c09305a0243e8 10:01:13 ---> Running in 899a6760c643 10:01:13 Removing intermediate container 899a6760c643 10:01:13 ---> 7b77045633f9 10:01:13 Step 23/23 : LABEL version=0.0.0 10:01:13 ---> Running in a4158f996da9 10:01:13 Removing intermediate container a4158f996da9 10:01:13 ---> f82a5e0487f6 10:01:13 [Warning] One or more build-args [ARCH] were not consumed 10:01:13 Successfully built f82a5e0487f6 10:01:13 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 10:01:14 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 10:01:14 10:01:14 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] sh 10:01:14 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 10:01:14 latest: Pulling from edgex-lftools-log-publisher 10:01:14 5eb5b503b376: Pulling fs layer 10:01:14 5c69ac0246d0: Pulling fs layer 10:01:14 ec43610c2a17: Pulling fs layer 10:01:14 3a2ae6a8a46f: Pulling fs layer 10:01:14 33b1e0a273af: Pulling fs layer 10:01:14 5d3b04190fa2: Pulling fs layer 10:01:14 2f39f015ded8: Pulling fs layer 10:01:14 5d3b04190fa2: Waiting 10:01:14 33b1e0a273af: Waiting 10:01:14 2f39f015ded8: Waiting 10:01:14 3a2ae6a8a46f: Waiting 10:01:14 5c69ac0246d0: Download complete 10:01:14 3a2ae6a8a46f: Verifying Checksum 10:01:14 3a2ae6a8a46f: Download complete 10:01:14 33b1e0a273af: Verifying Checksum 10:01:14 33b1e0a273af: Download complete 10:01:14 ec43610c2a17: Verifying Checksum 10:01:14 ec43610c2a17: Download complete 10:01:14 5d3b04190fa2: Verifying Checksum 10:01:14 5d3b04190fa2: Download complete 10:01:14 5eb5b503b376: Verifying Checksum 10:01:14 5eb5b503b376: Download complete 10:01:15 2f39f015ded8: Download complete 10:01:16 5eb5b503b376: Pull complete 10:01:16 5c69ac0246d0: Pull complete 10:01:16 ec43610c2a17: Pull complete 10:01:16 3a2ae6a8a46f: Pull complete 10:01:17 33b1e0a273af: Pull complete 10:01:17 5d3b04190fa2: Pull complete 10:01:22 2f39f015ded8: Pull complete 10:01:22 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 10:01:22 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 10:01:22 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] withDockerContainer 10:01:22 prd-ubuntu20.04-docker-8c-8g-33457 does not seem to be running inside a container 10:01:22 $ 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-339 -v /w/workspace/xfoundry_device-modbus-go_PR-339:/w/workspace/xfoundry_device-modbus-go_PR-339:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-339@tmp:/w/workspace/xfoundry_device-modbus-go_PR-339@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 10:01:24 $ docker top edfbba1fe50f1006735917f135fe65b036c8cb5afd94fd0b183e55ad7b72ec78 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 10:01:25 ---> job-cost.sh 10:01:25 lf-activate-venv: SKIPPING 10:01:25 INFO: No Stack... 10:01:25 INFO: Retrieving Pricing Info for: v3-standard-8 10:01:26 INFO: Archiving Costs [Pipeline] sh 10:01:26 + cat /w/workspace/xfoundry_device-modbus-go_PR-339/archives/cost.csv 10:01:26 + cut -d, -f6 [Pipeline] lock 10:01:26 Trying to acquire lock on [jenkins-edgexfoundry-device-modbus-go-PR-339-1-stack-cost] 10:01:26 Resource [jenkins-edgexfoundry-device-modbus-go-PR-339-1-stack-cost] did not exist. Created. 10:01:26 Lock acquired on [jenkins-edgexfoundry-device-modbus-go-PR-339-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 10:01:26 Running on prd-ubuntu20.04-docker-arm64-4c-16g-33458 in /w/workspace/xfoundry_device-modbus-go_PR-339 [Pipeline] { [Pipeline] ws 10:01:26 Running in /w/workspace/device-modbus-go/1 [Pipeline] { [Pipeline] checkout 10:01:27 + echo total: 0.2199999988079071 [Pipeline] stash 10:01:27 Stashed 1 file(s) [Pipeline] } 10:01:27 Lock released on resource [jenkins-edgexfoundry-device-modbus-go-PR-339-1-stack-cost] 10:01:27 Selected Git installation does not exist. Using Default 10:01:27 The recommended git tool is: NONE [Pipeline] // lock [Pipeline] } 10:01:27 $ docker stop --time=1 edfbba1fe50f1006735917f135fe65b036c8cb5afd94fd0b183e55ad7b72ec78 10:01:28 $ docker rm -f edfbba1fe50f1006735917f135fe65b036c8cb5afd94fd0b183e55ad7b72ec78 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 10:01:33 using credential edgex-jenkins-ssh 10:01:33 Cloning the remote Git repository 10:01:34 Cloning repository git@github.com:edgexfoundry/device-modbus-go.git 10:01:34 > git init /w/workspace/device-modbus-go/1 # timeout=10 10:01:34 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 10:01:34 > git --version # timeout=10 10:01:34 > git --version # 'git version 2.25.1' 10:01:34 using GIT_SSH to set credentials SSH Credentials for GitHub 10:01:34 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 10:01:36 Merging remotes/origin/main commit e01a1226a5cf77919213724cb5799907c2b0adaa into PR head commit ce482a524a6fbae6af8ef034fc3c09305a0243e8 10:01:36 Merge succeeded, producing ce482a524a6fbae6af8ef034fc3c09305a0243e8 10:01:36 Checking out Revision ce482a524a6fbae6af8ef034fc3c09305a0243e8 (PR-339) 10:01:35 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 10:01:35 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 10:01:35 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 10:01:35 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 10:01:35 using GIT_SSH to set credentials SSH Credentials for GitHub 10:01:35 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/pull/339/head:refs/remotes/origin/PR-339 +refs/heads/main:refs/remotes/origin/main # timeout=10 10:01:36 > git config core.sparsecheckout # timeout=10 10:01:36 > git checkout -f ce482a524a6fbae6af8ef034fc3c09305a0243e8 # timeout=10 10:01:36 > git remote # timeout=10 10:01:36 > git config --get remote.origin.url # timeout=10 10:01:36 using GIT_SSH to set credentials SSH Credentials for GitHub 10:01:36 > git merge e01a1226a5cf77919213724cb5799907c2b0adaa # timeout=10 10:01:36 > git rev-parse HEAD^{commit} # timeout=10 10:01:36 > git config core.sparsecheckout # timeout=10 10:01:36 > git checkout -f ce482a524a6fbae6af8ef034fc3c09305a0243e8 # timeout=10 10:01:40 Commit message: "feat: Bump device-sdk-go version and update configuration.toml" 10:01:40 > git --version # timeout=10 10:01:40 > git --version # 'git version 2.25.1' 10:01:40 fatal: bad object c72b16708d6eed9a08be464a432ce22db7d90667 [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 10:01:41 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 10:01:41 % Total % Received % Xferd Average Speed Time Time Time Current 10:01:41 Dload Upload Total Spent Left Speed 10:01:41 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 11843 100 11843 0 0 96284 0 --:--:-- --:--:-- --:--:-- 96284 [Pipeline] sh 10:01:42 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 10:01:42 + + sudo jqsudo . += {"seccomp-profile": "/etc/docker/seccomp.json"} tee /etc/docker/daemon.json /etc/docker/daemon.new 10:01:42 10:01:42 { 10:01:42 "registry-mirrors": [ 10:01:42 "https://nexus3.edgexfoundry.org:10001" 10:01:42 ], 10:01:42 "bip": "10.250.0.254/24", 10:01:42 "hosts": [ 10:01:42 "tcp://0.0.0.0:5555", 10:01:42 "unix:///var/run/docker.sock" 10:01:42 ], 10:01:42 "mtu": 1458, 10:01:42 "selinux-enabled": true, 10:01:42 "seccomp-profile": "/etc/docker/seccomp.json" 10:01:42 } [Pipeline] sh 10:01:43 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 10:01:43 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 10:02:01 provisioning config files... 10:02:01 copy managed file [device-modbus-go-settings] to file:/w/workspace/device-modbus-go/1@tmp/config7289114098907594061tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 10:02:02 ---> docker-login.sh 10:02:02 nexus3.edgexfoundry.org:10001 10:02:03 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 10:02:03 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 10:02:03 Configure a credential helper to remove this warning. See 10:02:03 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 10:02:03 10:02:03 Login Succeeded 10:02:03 nexus3.edgexfoundry.org:10002 10:02:03 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 10:02:03 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 10:02:03 Configure a credential helper to remove this warning. See 10:02:03 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 10:02:03 10:02:03 Login Succeeded 10:02:03 nexus3.edgexfoundry.org:10003 10:02:04 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 10:02:04 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 10:02:04 Configure a credential helper to remove this warning. See 10:02:04 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 10:02:04 10:02:04 Login Succeeded 10:02:04 nexus3.edgexfoundry.org:10004 10:02:04 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 10:02:04 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 10:02:04 Configure a credential helper to remove this warning. See 10:02:04 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 10:02:04 10:02:04 Login Succeeded 10:02:04 docker.io 10:02:05 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 10:02:05 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 10:02:05 Configure a credential helper to remove this warning. See 10:02:05 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 10:02:05 10:02:05 Login Succeeded 10:02:05 ---> docker-login.sh ends [Pipeline] } 10:02:05 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 10:02:05 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 10:02:05 ========================================================= 10:02:05 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine] 10:02:05 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 10:02:06 + 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 . 10:02:06 Sending build context to Docker daemon 3.117MB 10:02:06 Step 1/10 : ARG BASE=golang:1.17-alpine3.15 10:02:06 Step 2/10 : FROM ${BASE} AS builder 10:02:06 1.17-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 10:02:06 9b3977197b4f: Pulling fs layer 10:02:06 1a89e8eeedd5: Pulling fs layer 10:02:06 94645a83ff95: Pulling fs layer 10:02:06 3f3a8bcf1eab: Pulling fs layer 10:02:06 0c92f367c5e7: Pulling fs layer 10:02:06 3096ccb668a1: Pulling fs layer 10:02:06 e8cf19c19ddd: Pulling fs layer 10:02:06 a4caa8a26152: Pulling fs layer 10:02:06 3f3a8bcf1eab: Waiting 10:02:06 0c92f367c5e7: Waiting 10:02:06 3096ccb668a1: Waiting 10:02:06 e8cf19c19ddd: Waiting 10:02:06 a4caa8a26152: Waiting 10:02:06 94645a83ff95: Verifying Checksum 10:02:06 94645a83ff95: Download complete 10:02:06 1a89e8eeedd5: Verifying Checksum 10:02:06 1a89e8eeedd5: Download complete 10:02:06 0c92f367c5e7: Download complete 10:02:06 3096ccb668a1: Verifying Checksum 10:02:06 e8cf19c19ddd: Verifying Checksum 10:02:06 e8cf19c19ddd: Download complete 10:02:06 9b3977197b4f: Verifying Checksum 10:02:07 9b3977197b4f: Pull complete 10:02:08 1a89e8eeedd5: Pull complete 10:02:08 94645a83ff95: Pull complete 10:02:08 a4caa8a26152: Verifying Checksum 10:02:08 a4caa8a26152: Download complete 10:02:09 3f3a8bcf1eab: Verifying Checksum 10:02:09 3f3a8bcf1eab: Download complete 10:02:21 3f3a8bcf1eab: Pull complete 10:02:21 0c92f367c5e7: Pull complete 10:02:21 3096ccb668a1: Pull complete 10:02:22 e8cf19c19ddd: Pull complete 10:02:29 a4caa8a26152: Pull complete 10:02:29 Digest: sha256:b3ad895ecde34a7521bb8912598475bc58d052e1c2c58d00df7f0fe54a102a46 10:02:29 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine 10:02:29 ---> 725f1c02e7f9 10:02:29 Step 3/10 : ARG MAKE='make build' 10:02:29 ---> Running in f416d76d2c47 10:02:29 Removing intermediate container f416d76d2c47 10:02:29 ---> fbe1c1a9ae14 10:02:29 Step 4/10 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 10:02:29 ---> Running in 877ec2bf3f5e 10:02:31 Removing intermediate container 877ec2bf3f5e 10:02:31 ---> ef92d2ccd0aa 10:02:31 Step 5/10 : RUN apk add --update --no-cache make git openssh gcc libc-dev zeromq-dev libsodium-dev 10:02:31 ---> Running in a2f0cfd04496 10:02:32 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 10:02:33 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 10:02:34 (1/8) Installing openssh-keygen (8.8_p1-r1) 10:02:34 (2/8) Installing libedit (20210910.3.1-r0) 10:02:34 (3/8) Installing openssh-client-common (8.8_p1-r1) 10:02:35 (4/8) Installing openssh-client-default (8.8_p1-r1) 10:02:35 (5/8) Installing openssh-sftp-server (8.8_p1-r1) 10:02:35 (6/8) Installing openssh-server-common (8.8_p1-r1) 10:02:35 (7/8) Installing openssh-server (8.8_p1-r1) 10:02:35 (8/8) Installing openssh (8.8_p1-r1) 10:02:35 Executing busybox-1.34.1-r3.trigger 10:02:35 OK: 226 MiB in 60 packages 10:02:36 Removing intermediate container a2f0cfd04496 10:02:36 ---> 119b89b5cf86 10:02:36 Step 6/10 : WORKDIR /device-modbus-go 10:02:36 ---> Running in 6c25f15e4a6f 10:02:36 Removing intermediate container 6c25f15e4a6f 10:02:36 ---> 0dc73cc3818c 10:02:36 Step 7/10 : COPY go.mod vendor* ./ 10:02:37 ---> b2ddec5b978c 10:02:37 Step 8/10 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 10:02:37 ---> Running in 7c3e6dd4f9bb 10:03:24 Removing intermediate container 7c3e6dd4f9bb 10:03:24 ---> c5f9f2403d76 10:03:24 Step 9/10 : COPY . . 10:03:24 ---> 3c8cb2a1f170 10:03:24 Step 10/10 : RUN ${MAKE} 10:03:24 ---> Running in c5e1b8e7b9fc 10:03:24 noop 10:03:24 Removing intermediate container c5e1b8e7b9fc 10:03:24 ---> c0e41ee05965 10:03:24 Successfully built c0e41ee05965 10:03:24 Successfully tagged ci-base-image-arm64:latest [Pipeline] isUnix [Pipeline] sh 10:03:24 + docker inspect -f . ci-base-image-arm64 10:03:24 . [Pipeline] withDockerContainer 10:03:25 prd-ubuntu20.04-docker-arm64-4c-16g-33458 does not seem to be running inside a container 10:03:25 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-modbus-go/1 -v /w/workspace/device-modbus-go/1:/w/workspace/device-modbus-go/1:rw,z -v /w/workspace/device-modbus-go/1@tmp:/w/workspace/device-modbus-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 10:03:26 $ docker top 2d8423ed6f2a56334daad1f106db47f2de02e2cc34263a772e14364af030ac56 -eo pid,comm [Pipeline] { [Pipeline] sh 10:03:27 + go version 10:03:27 go version go1.17.6 linux/arm64 [Pipeline] } 10:03:27 $ docker stop --time=1 2d8423ed6f2a56334daad1f106db47f2de02e2cc34263a772e14364af030ac56 10:03:29 $ docker rm -f 2d8423ed6f2a56334daad1f106db47f2de02e2cc34263a772e14364af030ac56 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 10:03:29 + docker inspect -f . ci-base-image-arm64 10:03:29 . [Pipeline] withDockerContainer 10:03:30 prd-ubuntu20.04-docker-arm64-4c-16g-33458 does not seem to be running inside a container 10:03:30 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-modbus-go/1 -v /w/workspace/device-modbus-go/1:/w/workspace/device-modbus-go/1:rw,z -v /w/workspace/device-modbus-go/1@tmp:/w/workspace/device-modbus-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 10:03:31 $ docker top c7e098faf16af07ef674589dc531110ad72ed27541a687b2be0c7b9ff8f8e87b -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 10:03:32 + make test 10:03:32 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out 10:03:33 ? github.com/edgexfoundry/device-modbus-go [no test files] 10:04:55 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 10:04:55 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.059s coverage: 46.4% of statements 10:04:55 WARNING: Linting skipped (not on x86_64 or linter not installed) 10:04:55 CGO_ENABLED=1 GO111MODULE=on go vet ./... 10:05:18 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 10:05:18 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 10:05:18 ./bin/test-attribution-txt.sh [Pipeline] echo 10:05:18 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 10:05:18 $ docker stop --time=1 c7e098faf16af07ef674589dc531110ad72ed27541a687b2be0c7b9ff8f8e87b 10:05:19 $ docker rm -f c7e098faf16af07ef674589dc531110ad72ed27541a687b2be0c7b9ff8f8e87b [Pipeline] // withDockerContainer [Pipeline] sh 10:05:20 + sudo chown -R jenkins:jenkins . [Pipeline] stash 10:05:20 Warning: overwriting stash ‘coverage-report’ 10:05:21 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 10:05:22 + sudo chown -R jenkins:jenkins . [Pipeline] sh 10:05:22 + ls -al . 10:05:22 total 176 10:05:22 drwxrwxr-x 9 jenkins jenkins 4096 Apr 27 10:05 . 10:05:22 drwxrwxr-x 4 jenkins jenkins 4096 Apr 27 10:01 .. 10:05:22 -rw-rw-r-- 1 jenkins jenkins 140 Apr 27 10:01 .dockerignore 10:05:22 drwxrwxr-x 8 jenkins jenkins 4096 Apr 27 10:01 .git 10:05:22 drwxrwxr-x 3 jenkins jenkins 4096 Apr 27 10:01 .github 10:05:22 -rw-rw-r-- 1 jenkins jenkins 331 Apr 27 10:01 .gitignore 10:05:22 -rw-rw-r-- 1 jenkins jenkins 41 Apr 27 10:01 .golangci.yml 10:05:22 -rw-rw-r-- 1 jenkins jenkins 9377 Apr 27 10:01 Attribution.txt 10:05:22 -rw-rw-r-- 1 jenkins jenkins 6038 Apr 27 10:01 CHANGELOG.md 10:05:22 -rw-rw-r-- 1 jenkins jenkins 1546 Apr 27 10:01 Dockerfile 10:05:22 -rw-rw-r-- 1 jenkins jenkins 677 Apr 27 10:01 GOVERNANCE.md 10:05:22 -rw-rw-r-- 1 jenkins jenkins 680 Apr 27 10:01 Jenkinsfile 10:05:22 -rw-rw-r-- 1 jenkins jenkins 11340 Apr 27 10:01 LICENSE 10:05:22 -rw-rw-r-- 1 jenkins jenkins 1905 Apr 27 10:01 Makefile 10:05:22 -rw-rw-r-- 1 jenkins jenkins 622 Apr 27 10:01 OWNERS.md 10:05:22 -rw-rw-r-- 1 jenkins jenkins 3680 Apr 27 10:01 README.md 10:05:22 -rw-rw-r-- 1 jenkins jenkins 5 Apr 27 09:59 VERSION 10:05:22 drwxrwxr-x 2 jenkins jenkins 4096 Apr 27 10:01 bin 10:05:22 drwxrwxr-x 3 jenkins jenkins 4096 Apr 27 10:01 cmd 10:05:22 -rw-r--r-- 1 jenkins jenkins 24065 Apr 27 10:04 coverage.out 10:05:22 -rw-rw-r-- 1 jenkins jenkins 3399 Apr 27 10:01 go.mod 10:05:22 -rw-rw-r-- 1 jenkins jenkins 35075 Apr 27 10:01 go.sum 10:05:22 drwxrwxr-x 3 jenkins jenkins 4096 Apr 27 10:01 internal 10:05:22 drwxrwxr-x 2 jenkins jenkins 4096 Apr 27 10:01 simulator 10:05:22 drwxrwxr-x 4 jenkins jenkins 4096 Apr 27 10:01 snap 10:05:22 -rw-rw-r-- 1 jenkins jenkins 229 Apr 27 10:01 version.go [Pipeline] isUnix [Pipeline] sh 10:05: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=ce482a524a6fbae6af8ef034fc3c09305a0243e8 --label arch=arm64 --label version=0.0.0 . 10:05:23 Sending build context to Docker daemon 3.142MB 10:05:23 Step 1/23 : ARG BASE=golang:1.17-alpine3.15 10:05:23 Step 2/23 : FROM ${BASE} AS builder 10:05:23 ---> c0e41ee05965 10:05:23 Step 3/23 : ARG MAKE='make build' 10:05:23 ---> Running in 319a70f924ae 10:05:23 Removing intermediate container 319a70f924ae 10:05:23 ---> b64eada9226b 10:05:23 Step 4/23 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 10:05:23 ---> Running in 6bc597bb1987 10:05:25 Removing intermediate container 6bc597bb1987 10:05:25 ---> ac48e79bd7c3 10:05:25 Step 5/23 : RUN apk add --update --no-cache make git openssh gcc libc-dev zeromq-dev libsodium-dev 10:05:25 ---> Running in 9d55aa75e033 10:05:26 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 10:05:27 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 10:05:28 OK: 226 MiB in 60 packages 10:05:28 Removing intermediate container 9d55aa75e033 10:05:28 ---> 6dd416cfae04 10:05:28 Step 6/23 : WORKDIR /device-modbus-go 10:05:28 ---> Running in 6f95e0330abe 10:05:29 Removing intermediate container 6f95e0330abe 10:05:29 ---> 17c66972514c 10:05:29 Step 7/23 : COPY go.mod vendor* ./ 10:05:29 ---> ace47c83f73e 10:05:29 Step 8/23 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 10:05:29 ---> Running in 4ae28e506938 10:05:31 Removing intermediate container 4ae28e506938 10:05:31 ---> 618e3f27f479 10:05:31 Step 9/23 : COPY . . 10:05:32 ---> 74f59d4d9f03 10:05:32 Step 10/23 : RUN ${MAKE} 10:05:32 ---> Running in 3ca76312f74c 10:05:33 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 10:07:40 Removing intermediate container 3ca76312f74c 10:07:40 ---> 8cdeb9dca1c9 10:07:40 Step 11/23 : FROM alpine:3.14 10:07:40 3.14: Pulling from library/alpine 10:07:40 455c02918c45: Pulling fs layer 10:07:40 455c02918c45: Download complete 10:07:40 455c02918c45: Pull complete 10:07:40 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 10:07:40 Status: Downloaded newer image for alpine:3.14 10:07:40 ---> ac73e934f311 10:07:40 Step 12/23 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IoTech Ltd' 10:07:40 ---> Running in c1e58e18d968 10:07:40 Removing intermediate container c1e58e18d968 10:07:40 ---> e6a70c7d827c 10:07:40 Step 13/23 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 10:07:40 ---> Running in dfd793f6ac50 10:07:40 Removing intermediate container dfd793f6ac50 10:07:40 ---> e9307b465755 10:07:40 Step 14/23 : RUN apk add --update --no-cache zeromq dumb-init 10:07:40 ---> Running in 04bc77a188af 10:07:40 fetch https://nl.alpinelinux.org/alpine/v3.14/main/aarch64/APKINDEX.tar.gz 10:07:40 fetch https://nl.alpinelinux.org/alpine/v3.14/community/aarch64/APKINDEX.tar.gz 10:07:40 (1/6) Installing dumb-init (1.2.5-r1) 10:07:40 (2/6) Installing libgcc (10.3.1_git20210424-r2) 10:07:40 (3/6) Installing libsodium (1.0.18-r0) 10:07:40 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 10:07:40 (5/6) Installing libzmq (4.3.4-r0) 10:07:40 (6/6) Installing zeromq (4.3.4-r0) 10:07:40 Executing busybox-1.33.1-r7.trigger 10:07:40 OK: 8 MiB in 20 packages 10:07:40 Removing intermediate container 04bc77a188af 10:07:40 ---> b2e6dea7d6da 10:07:40 Step 15/23 : COPY --from=builder /device-modbus-go/cmd / 10:07:40 ---> df0cdf008975 10:07:40 Step 16/23 : COPY --from=builder /device-modbus-go/LICENSE / 10:07:40 ---> 91b00c21c63e 10:07:40 Step 17/23 : COPY --from=builder /device-modbus-go/Attribution.txt / 10:07:40 ---> c19a14356304 10:07:40 Step 18/23 : EXPOSE 59901 10:07:40 ---> Running in d9d6ead96d5f 10:07:40 Removing intermediate container d9d6ead96d5f 10:07:40 ---> 26c21dbfd6e1 10:07:40 Step 19/23 : ENTRYPOINT ["/device-modbus"] 10:07:40 ---> Running in 281a41e09b6c 10:07:40 Removing intermediate container 281a41e09b6c 10:07:40 ---> 6cb73701d757 10:07:40 Step 20/23 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry", "--confdir=/res"] 10:07:40 ---> Running in d5228554304c 10:07:40 Removing intermediate container d5228554304c 10:07:40 ---> fc71b590a46d 10:07:40 Step 21/23 : LABEL arch=arm64 10:07:40 ---> Running in fc75ea2baa63 10:07:40 Removing intermediate container fc75ea2baa63 10:07:40 ---> acfa7e426aef 10:07:40 Step 22/23 : LABEL git_sha=ce482a524a6fbae6af8ef034fc3c09305a0243e8 10:07:40 ---> Running in 33e692a516fb 10:07:40 Removing intermediate container 33e692a516fb 10:07:40 ---> 2b89e8f26ef0 10:07:40 Step 23/23 : LABEL version=0.0.0 10:07:40 ---> Running in 6a23e2ed961c 10:07:40 Removing intermediate container 6a23e2ed961c 10:07:40 ---> 8805acc4f3d2 10:07:40 [Warning] One or more build-args [ARCH] were not consumed 10:07:40 Successfully built 8805acc4f3d2 10:07:40 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 10:07:41 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 10:07:41 10:07:41 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] sh 10:07:41 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 10:07:41 arm64: Pulling from edgex-lftools-log-publisher 10:07:41 8998bd30e6a1: Pulling fs layer 10:07:41 04944245beec: Pulling fs layer 10:07:41 699f458cf7ca: Pulling fs layer 10:07:41 765212b225bb: Pulling fs layer 10:07:41 f23df028b6ca: Pulling fs layer 10:07:41 d65c8cfc05b1: Pulling fs layer 10:07:41 2437ff75d9bd: Pulling fs layer 10:07:41 765212b225bb: Waiting 10:07:41 f23df028b6ca: Waiting 10:07:41 d65c8cfc05b1: Waiting 10:07:41 2437ff75d9bd: Waiting 10:07:41 04944245beec: Download complete 10:07:41 765212b225bb: Verifying Checksum 10:07:41 765212b225bb: Download complete 10:07:41 f23df028b6ca: Verifying Checksum 10:07:41 f23df028b6ca: Download complete 10:07:41 d65c8cfc05b1: Verifying Checksum 10:07:41 d65c8cfc05b1: Download complete 10:07:42 699f458cf7ca: Verifying Checksum 10:07:42 699f458cf7ca: Download complete 10:07:42 8998bd30e6a1: Verifying Checksum 10:07:42 8998bd30e6a1: Download complete 10:07:45 2437ff75d9bd: Verifying Checksum 10:07:47 8998bd30e6a1: Pull complete 10:07:47 04944245beec: Pull complete 10:07:48 699f458cf7ca: Pull complete 10:07:48 765212b225bb: Pull complete 10:07:49 f23df028b6ca: Pull complete 10:07:49 d65c8cfc05b1: Pull complete 10:08:04 2437ff75d9bd: Pull complete 10:08:04 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 10:08:04 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 10:08:04 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] withDockerContainer 10:08:05 prd-ubuntu20.04-docker-arm64-4c-16g-33458 does not seem to be running inside a container 10:08:05 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/device-modbus-go/1 -v /w/workspace/device-modbus-go/1:/w/workspace/device-modbus-go/1:rw,z -v /w/workspace/device-modbus-go/1@tmp:/w/workspace/device-modbus-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 10:08:07 $ docker top f837c106eb632fbebc385d4e1fd0c7bf30a6db878a1d8eed45a58c23826533ef -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 10:08:08 ---> job-cost.sh 10:08:08 lf-activate-venv: SKIPPING 10:08:08 INFO: No Stack... 10:08:09 INFO: Retrieving Pricing Info for: v3-standard-4 10:08:10 INFO: Archiving Costs [Pipeline] sh 10:08:11 + cut -d, -f6 10:08:11 + cat /w/workspace/device-modbus-go/1/archives/cost.csv [Pipeline] lock 10:08:11 Trying to acquire lock on [jenkins-edgexfoundry-device-modbus-go-PR-339-1-stack-cost] 10:08:11 Resource [jenkins-edgexfoundry-device-modbus-go-PR-339-1-stack-cost] did not exist. Created. 10:08:11 Lock acquired on [jenkins-edgexfoundry-device-modbus-go-PR-339-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 10:08:11 /w/workspace/device-modbus-go/1@tmp/durable-8a87f343/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 10:08:12 + echo total: 0.10999999940395355 [Pipeline] stash 10:08:12 Warning: overwriting stash ‘stack-cost’ 10:08:12 Stashed 1 file(s) [Pipeline] } 10:08:12 Lock released on resource [jenkins-edgexfoundry-device-modbus-go-PR-339-1-stack-cost] [Pipeline] // lock [Pipeline] } 10:08:12 $ docker stop --time=1 f837c106eb632fbebc385d4e1fd0c7bf30a6db878a1d8eed45a58c23826533ef 10:08:14 $ docker rm -f f837c106eb632fbebc385d4e1fd0c7bf30a6db878a1d8eed45a58c23826533ef [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 10:08:15 provisioning config files... 10:08:15 copy managed file [device-modbus-go-codecov-token] to file:/w/workspace/xfoundry_device-modbus-go_PR-339@tmp/config7101438855385042312tmp [Pipeline] { [Pipeline] sh 10:08:15 + set +x 10:08:15 + curl -s https://codecov.io/bash 10:08:15 + bash -s -- 10:08:15 10:08:15 _____ _ 10:08:15 / ____| | | 10:08:15 | | ___ __| | ___ ___ _____ __ 10:08:15 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 10:08:15 | |___| (_) | (_| | __/ (_| (_) \ V / 10:08:15 \_____\___/ \__,_|\___|\___\___/ \_/ 10:08:15 Bash-1.0.6 10:08:15 10:08:15 10:08:15 ==> git version 2.25.1 found 10:08:15 ==> 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 10:08:15 Release-Date: 2020-01-08 10:08:15 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 10:08:15 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 10:08:15 ==> Jenkins CI detected. 10:08:15 current dir:  /w/workspace/xfoundry_device-modbus-go_PR-339 10:08:15 project root: . 10:08:15 --> token set from env 10:08:15 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 10:08:15 ==> Running gcov in . (disable via -X gcov) 10:08:15 ==> Python coveragepy not found 10:08:15 ==> Searching for coverage reports in: 10:08:15 + . 10:08:15 -> Found 1 reports 10:08:15 ==> Detecting git/mercurial file structure 10:08:15 ==> Reading reports 10:08:15 + ./coverage.out bytes=24065 10:08:15 ==> Appending adjustments 10:08:15 https://docs.codecov.io/docs/fixing-reports 10:08:16 + Found adjustments 10:08:16 ==> Gzipping contents 10:08:16 4.0K /tmp/codecov.l3ePXg.gz 10:08:16 ==> Uploading reports 10:08:16 url: https://codecov.io 10:08:16 query: branch=PR-339&commit=ce482a524a6fbae6af8ef034fc3c09305a0243e8&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-modbus-go%2Fjob%2FPR-339%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-modbus-go&service=jenkins&flags=&pr=339&job=&cmd_args= 10:08:16 -> Pinging Codecov 10:08:16 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=3a8d40b1-de00-4649-bfd4-bdc8ed99ae89&branch=PR-339&commit=ce482a524a6fbae6af8ef034fc3c09305a0243e8&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-modbus-go%2Fjob%2FPR-339%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-modbus-go&service=jenkins&flags=&pr=339&job=&cmd_args= 10:08:16 -> Uploading to 10:08:16 https://storage.googleapis.com/codecov/v4/raw/2022-04-27/55DBCA73C666E3227836607328DD7E49/ce482a524a6fbae6af8ef034fc3c09305a0243e8/345dfb0c-8ed2-4861-b7fe-d8b5f3af9eeb.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20220427%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20220427T100816Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=431f3ca609d38b35f7c99c536d6ad0357604e8875575e5b2e22a02a5f7ac8077 10:08:16 % Total % Received % Xferd Average Speed Time Time Time Current 10:08:16 Dload Upload Total Spent Left Speed 10:08:16 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 4018 0 0 100 4018 0 16672 --:--:-- --:--:-- --:--:-- 16672 10:08:16 -> Reports have been successfully queued for processing at https://codecov.io/github/edgexfoundry/device-modbus-go/commit/ce482a524a6fbae6af8ef034fc3c09305a0243e8 [Pipeline] } 10:08:16 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 10:08:18 + [ -d /w/workspace/xfoundry_device-modbus-go_PR-339/archives ] 10:08:18 + ls -al /w/workspace/xfoundry_device-modbus-go_PR-339/archives 10:08:18 total 16 10:08:18 drwxr-xr-x 3 root root 4096 Apr 27 10:01 . 10:08:18 drwxrwxr-x 11 jenkins jenkins 4096 Apr 27 10:01 .. 10:08:18 drwxr-xr-x 2 root root 4096 Apr 27 10:01 cost 10:08:18 -rw-r--r-- 1 root root 87 Apr 27 10:01 cost.csv 10:08:18 + sudo chown -R jenkins:jenkins /w/workspace/xfoundry_device-modbus-go_PR-339/archives 10:08:18 + ls -al /w/workspace/xfoundry_device-modbus-go_PR-339/archives 10:08:18 total 16 10:08:18 drwxr-xr-x 3 jenkins jenkins 4096 Apr 27 10:01 . 10:08:18 drwxrwxr-x 11 jenkins jenkins 4096 Apr 27 10:01 .. 10:08:18 drwxr-xr-x 2 jenkins jenkins 4096 Apr 27 10:01 cost 10:08:18 -rw-r--r-- 1 jenkins jenkins 87 Apr 27 10:01 cost.csv [Pipeline] libraryResource [Pipeline] sh 10:08:18 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 10:08:19 ---> package-listing.sh 10:08:19 ++ facter osfamily 10:08:19 ++ tr '[:upper:]' '[:lower:]' 10:08:20 + OS_FAMILY=debian 10:08:20 + workspace=/w/workspace/xfoundry_device-modbus-go_PR-339 10:08:20 + START_PACKAGES=/tmp/packages_start.txt 10:08:20 + END_PACKAGES=/tmp/packages_end.txt 10:08:20 + DIFF_PACKAGES=/tmp/packages_diff.txt 10:08:20 + PACKAGES=/tmp/packages_start.txt 10:08:20 + '[' /w/workspace/xfoundry_device-modbus-go_PR-339 ']' 10:08:20 + PACKAGES=/tmp/packages_end.txt 10:08:20 + case "${OS_FAMILY}" in 10:08:20 + dpkg -l 10:08:20 + grep '^ii' 10:08:20 + '[' -f /tmp/packages_start.txt ']' 10:08:20 + '[' -f /tmp/packages_end.txt ']' 10:08:20 + diff /tmp/packages_start.txt /tmp/packages_end.txt 10:08:20 + '[' /w/workspace/xfoundry_device-modbus-go_PR-339 ']' 10:08:20 + mkdir -p /w/workspace/xfoundry_device-modbus-go_PR-339/archives/ 10:08:20 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/xfoundry_device-modbus-go_PR-339/archives/ [Pipeline] echo 10:08:20 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-339/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 10:08:20 + facter operatingsystem [Pipeline] isUnix [Pipeline] sh 10:08:20 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 10:08:20 . [Pipeline] withDockerContainer 10:08:21 prd-ubuntu20.04-docker-8c-8g-33457 does not seem to be running inside a container 10:08:21 $ 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-339/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-339 -v /w/workspace/xfoundry_device-modbus-go_PR-339:/w/workspace/xfoundry_device-modbus-go_PR-339:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-339@tmp:/w/workspace/xfoundry_device-modbus-go_PR-339@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 10:08:21 $ docker top 8963e74bb85ed9dc1ed5ce8ecfc250a5f72f2dcbb21497d102954c36af53d3a3 -eo pid,comm [Pipeline] { [Pipeline] sh 10:08:21 + touch /tmp/pre-build-complete [Pipeline] sh 10:08:22 + mkdir -p /var/log/sysstat [Pipeline] sh 10:08:22 + ls /var/log/sa-host 10:08:22 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 10:08:22 provisioning config files... 10:08:22 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-339@tmp/config1433856547210031474tmp [Pipeline] { [Pipeline] echo 10:08:22 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 10:08:23 ---> create-netrc.sh [Pipeline] } 10:08:23 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 10:08:23 ---> python-tools-install.sh [Pipeline] echo 10:08:23 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 10:08:23 ---> sudo-logs.sh 10:08:23 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 10:08:24 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 10:08:24 ---> job-cost.sh 10:08:24 lf-activate-venv: SKIPPING 10:08:24 DEBUG: total: 0.2199999988079071 10:08:24 INFO: Retrieving Stack Cost... 10:08:24 INFO: Retrieving Pricing Info for: v3-standard-8 10:08:25 INFO: Archiving Costs [Pipeline] echo 10:08:25 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 10:08:25 ---> logs-deploy.sh 10:08:25 lf-activate-venv: SKIPPING 10:08:25 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-modbus-go/PR-339/1 10:08:25 INFO: archiving workspace using pattern(s): 10:08:26 Archives upload complete. 10:08:26 INFO: archiving logs to Nexus