Pull request #336 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 farshidtz for edgexfoundry/device-modbus-go Loading trusted files from base branch main at 244abab361647dcef607fbcbfbdaea3ae1f72309 rather than 3237a4a44b4a52002b410c2dd400a27648297c25 Obtained Jenkinsfile from 244abab361647dcef607fbcbfbdaea3ae1f72309 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-ssh16264194750170998529.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-ssh422645149555757349.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-336/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-336/workspace@libs/edgex-global-pipelines@tmp/jenkins-gitclient-ssh17635763466016676532.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-336/workspace@libs/edgex-global-pipelines@tmp/jenkins-gitclient-ssh17230392013434640714.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-ssh870972085963545343.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-336/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-336/workspace@libs/lf-pipelines@tmp/jenkins-gitclient-ssh13150745006455617553.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-22044’ Running on prd-ubuntu20.04-docker-8c-8g-22046 in /w/workspace/xfoundry_device-modbus-go_PR-336 [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-336 # 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 3237a4a44b4a52002b410c2dd400a27648297c25 > 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/336/head:refs/remotes/origin/PR-336 +refs/heads/main:refs/remotes/origin/main # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 3237a4a44b4a52002b410c2dd400a27648297c25 # timeout=10 Merge succeeded, producing 3237a4a44b4a52002b410c2dd400a27648297c25 Checking out Revision 3237a4a44b4a52002b410c2dd400a27648297c25 (PR-336) > 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 3237a4a44b4a52002b410c2dd400a27648297c25 # timeout=10 Commit message: "feat(snap): add support for env var injection" 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 14:58:42 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 14:58:42 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 14:58:42 ========================================================= 14:58:42 EdgeX Global Pipelines Version Info 14:58:42 ========================================================= [Pipeline] libraryResource [Pipeline] sh 14:58:43 ------------------- 14:58:43 stable info: 14:58:43 ------------------- 14:58:43 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 14:58:43 Commit SHA: c72b16708d6eed9a08be464a432ce22db7d90667 14:58:43 Message: update stable to v1.0.221 14:58:44 ------------------- 14:58:44 experimental info: 14:58:44 ------------------- 14:58:44 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 14:58:44 Commit SHA: e334d830fa8e8412d6042b94a77caa8dfa54c97b 14:58:44 Message: update experimental to v1.0.223 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 14:58:44 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-modbus-go-settings [Pipeline] echo 14:58:44 [edgeXSetupEnvironment]: set envvar PROJECT = device-modbus-go [Pipeline] echo 14:58:44 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 14:58:44 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 14:58:44 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 14:58:44 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.17 [Pipeline] echo 14:58:44 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 14:58:44 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 14:58:44 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 14:58:44 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 14:58:44 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 14:58:44 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-modbus [Pipeline] echo 14:58:44 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 14:58:45 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 14:58:45 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 14:58:45 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 14:58:45 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 14:58:45 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 14:58:45 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 14:58:45 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 14:58:45 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 14:58:45 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 14:58:45 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 14:58:45 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 14:58:45 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 14:58:45 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 14:58:45 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-336 [Pipeline] echo 14:58:45 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-336 [Pipeline] echo 14:58:45 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-336 [Pipeline] echo 14:58:45 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 3237a4a44b4a52002b410c2dd400a27648297c25 [Pipeline] echo 14:58:45 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 3237a4a [Pipeline] echo 14:58:45 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 14:58:45 provisioning config files... 14:58:45 copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-336@tmp/config6504181196017932994tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 14:58:46 ---> docker-login.sh 14:58:46 nexus3.edgexfoundry.org:10001 14:58:46 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 14:58:46 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 14:58:46 Configure a credential helper to remove this warning. See 14:58:46 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 14:58:46 14:58:46 Login Succeeded 14:58:46 nexus3.edgexfoundry.org:10002 14:58:46 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 14:58:46 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 14:58:46 Configure a credential helper to remove this warning. See 14:58:46 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 14:58:46 14:58:46 Login Succeeded 14:58:46 nexus3.edgexfoundry.org:10003 14:58:47 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 14:58:47 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 14:58:47 Configure a credential helper to remove this warning. See 14:58:47 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 14:58:47 14:58:47 Login Succeeded 14:58:47 nexus3.edgexfoundry.org:10004 14:58:47 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 14:58:47 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 14:58:47 Configure a credential helper to remove this warning. See 14:58:47 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 14:58:47 14:58:47 Login Succeeded 14:58:47 docker.io 14:58:47 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 14:58:47 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 14:58:47 Configure a credential helper to remove this warning. See 14:58:47 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 14:58:47 14:58:47 Login Succeeded 14:58:47 ---> docker-login.sh ends [Pipeline] } 14:58:47 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 14:58:48 + git rev-list -1 --merges 3237a4a44b4a52002b410c2dd400a27648297c25~1..3237a4a44b4a52002b410c2dd400a27648297c25 [Pipeline] echo 14:58:48 -----------> git rev-list -1 --merges 3237a4a44b4a52002b410c2dd400a27648297c25~1..3237a4a44b4a52002b410c2dd400a27648297c25 3237a4a44b4a52002b410c2dd400a27648297c25 [false] [Pipeline] sh 14:58:48 + git log --format=format:%s -1 3237a4a44b4a52002b410c2dd400a27648297c25 [Pipeline] echo 14:58:48 ========================================================= 14:58:48 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 14:58:48 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 14:58:49 + git log --format=format:%s -1 3237a4a44b4a52002b410c2dd400a27648297c25 [Pipeline] echo 14:58:49 [semverPrep] GIT_COMMIT: 3237a4a44b4a52002b410c2dd400a27648297c25, Commit Message: feat(snap): add support for env var injection [Pipeline] echo 14:58:49 [semverPrep] This is not a build commit. [Pipeline] sh 14:58:49 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 14:58:49 + grep -v github /etc/ssh/ssh_known_hosts 14:58:49 + [ -e /tmp/ssh_known_hosts ] 14:58:49 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 14:58:49 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 14:58:49 + sudo tee -a /etc/ssh/ssh_known_hosts 14:58:49 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] sh 14:58:49 + docker inspect -f . nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 14:58:49 14:58:49 Error: No such object: nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] isUnix [Pipeline] sh 14:58:50 + docker pull nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 14:58:50 latest: Pulling from edgex-devops/git-semver 14:58:50 a0d0a0d46f8b: Pulling fs layer 14:58:50 3e5f54012d9b: Pulling fs layer 14:58:50 4c7163046ea9: Pulling fs layer 14:58:50 0c2d73faf560: Pulling fs layer 14:58:50 0c2d73faf560: Waiting 14:58:50 3e5f54012d9b: Verifying Checksum 14:58:50 3e5f54012d9b: Download complete 14:58:50 a0d0a0d46f8b: Download complete 14:58:50 0c2d73faf560: Verifying Checksum 14:58:50 4c7163046ea9: Verifying Checksum 14:58:50 4c7163046ea9: Download complete 14:58:50 a0d0a0d46f8b: Pull complete 14:58:50 3e5f54012d9b: Pull complete 14:58:50 4c7163046ea9: Pull complete 14:58:51 0c2d73faf560: Pull complete 14:58:51 Digest: sha256:2751de6e655929dcbe46418c7769d9d992331b5b721eb968631a4166222929f9 14:58:51 Status: Downloaded newer image for nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 14:58:51 nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] withDockerContainer 14:58:51 prd-ubuntu20.04-docker-8c-8g-22046 does not seem to be running inside a container 14:58:51 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/xfoundry_device-modbus-go_PR-336 -v /w/workspace/xfoundry_device-modbus-go_PR-336:/w/workspace/xfoundry_device-modbus-go_PR-336:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-336@tmp:/w/workspace/xfoundry_device-modbus-go_PR-336@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:10004/edgex-devops/git-semver:latest cat 14:58:51 $ docker top f8314b5e3949a394a897a6d38e4ce365b5f841f5024647f2391d13ad56aab5e4 -eo pid,comm [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 14:58:52 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 14:58:52 [ssh-agent] Looking for ssh-agent implementation... 14:58:52 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 14:58:52 $ docker exec f8314b5e3949a394a897a6d38e4ce365b5f841f5024647f2391d13ad56aab5e4 ssh-agent 14:58:52 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXaBNiha/agent.13 14:58:52 SSH_AGENT_PID=19 14:58:52 Running ssh-add (command line suppressed) 14:58:52 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-336@tmp/private_key_5945603796547836874.key (/w/workspace/xfoundry_device-modbus-go_PR-336@tmp/private_key_5945603796547836874.key) 14:58:52 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 14:58:52 + git tag --points-at HEAD [Pipeline] } 14:58:52 $ docker exec --env ******** --env ******** f8314b5e3949a394a897a6d38e4ce365b5f841f5024647f2391d13ad56aab5e4 ssh-agent -k 14:58:52 unset SSH_AUTH_SOCK; 14:58:52 unset SSH_AGENT_PID; 14:58:52 echo Agent pid 19 killed; 14:58:53 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 14:58:53 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 14:58:53 [ssh-agent] Looking for ssh-agent implementation... 14:58:53 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 14:58:53 $ docker exec f8314b5e3949a394a897a6d38e4ce365b5f841f5024647f2391d13ad56aab5e4 ssh-agent 14:58:53 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXdJkDFF/agent.51 14:58:53 SSH_AGENT_PID=58 14:58:53 Running ssh-add (command line suppressed) 14:58:53 Identity added: /w/workspace/xfoundry_device-modbus-go_PR-336@tmp/private_key_2630492175070569771.key (/w/workspace/xfoundry_device-modbus-go_PR-336@tmp/private_key_2630492175070569771.key) 14:58:53 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 14:58:53 + git semver init 14:58:53 # -> Open(): unable to determine branch for HEAD 14:58:53 # $GIT_DIR = /w/workspace/xfoundry_device-modbus-go_PR-336/.git 14:58:53 # $GIT_WORK_TREE = /w/workspace/xfoundry_device-modbus-go_PR-336 14:58:53 # $SEMVER_REMOTE_NAME = origin 14:58:53 # $SEMVER_USER_EMAIL = collab-it+edgex@linuxfoundation.org 14:58:53 # $SEMVER_USER_NAME = edgex-jenkins 14:58:53 # $SEMVER_BRANCH = PR-336 14:58:53 # $SEMVER_TEMP = /tmp/semver-658540867 14:58:53 # git clone --branch semver git@github.com:edgexfoundry/device-modbus-go.git $SEMVER_TEMP 14:58:54 # '/tmp/semver-658540867' -> '/w/workspace/xfoundry_device-modbus-go_PR-336/.semver' 14:58:54 # -> Force: false 14:58:54 # $SEMVER_DIR = /w/workspace/xfoundry_device-modbus-go_PR-336/.semver [Pipeline] } 14:58:54 $ docker exec --env ******** --env ******** f8314b5e3949a394a897a6d38e4ce365b5f841f5024647f2391d13ad56aab5e4 ssh-agent -k 14:58:54 unset SSH_AUTH_SOCK; 14:58:54 unset SSH_AGENT_PID; 14:58:54 echo Agent pid 58 killed; 14:58:54 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 14:58:55 + git semver [Pipeline] } 14:58:55 $ docker stop --time=1 f8314b5e3949a394a897a6d38e4ce365b5f841f5024647f2391d13ad56aab5e4 14:58:56 $ docker rm -f f8314b5e3949a394a897a6d38e4ce365b5f841f5024647f2391d13ad56aab5e4 [Pipeline] // withDockerContainer [Pipeline] sh 14:58:57 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 14:58:57 Stashed 1 file(s) [Pipeline] echo 14:58:57 [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 14:58:58 provisioning config files... 14:58:58 copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-336@tmp/config2218550162524564727tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 14:58:58 ---> docker-login.sh 14:58:58 nexus3.edgexfoundry.org:10001 14:58:58 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 14:58:58 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 14:58:58 Configure a credential helper to remove this warning. See 14:58:58 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 14:58:58 14:58:58 Login Succeeded 14:58:58 nexus3.edgexfoundry.org:10002 14:58:58 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 14:58:58 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 14:58:58 Configure a credential helper to remove this warning. See 14:58:58 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 14:58:58 14:58:58 Login Succeeded 14:58:58 nexus3.edgexfoundry.org:10003 14:58:58 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 14:58:58 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 14:58:58 Configure a credential helper to remove this warning. See 14:58:58 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 14:58:58 14:58:58 Login Succeeded 14:58:58 nexus3.edgexfoundry.org:10004 14:58:59 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 14:58:59 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 14:58:59 Configure a credential helper to remove this warning. See 14:58:59 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 14:58:59 14:58:59 Login Succeeded 14:58:59 docker.io 14:58:59 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 14:58:59 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 14:58:59 Configure a credential helper to remove this warning. See 14:58:59 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 14:58:59 14:58:59 Login Succeeded 14:58:59 ---> docker-login.sh ends [Pipeline] } 14:58:59 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 14:58:59 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 14:58:59 ========================================================= 14:58:59 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine] 14:58:59 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 14:58:59 + 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 . 14:58:59 Sending build context to Docker daemon 5.87MB 14:58:59 Step 1/10 : ARG BASE=golang:1.17-alpine3.15 14:58:59 Step 2/10 : FROM ${BASE} AS builder 14:58:59 1.17-alpine: Pulling from edgex-devops/edgex-golang-base 14:58:59 59bf1c3509f3: Pulling fs layer 14:58:59 666ba61612fd: Pulling fs layer 14:58:59 8ed8ca486205: Pulling fs layer 14:58:59 4fe6c5a15a65: Pulling fs layer 14:58:59 22a0e8bec74d: Pulling fs layer 14:58:59 ca2b28591e48: Pulling fs layer 14:58:59 a51346096db8: Pulling fs layer 14:58:59 daebc70d1ce1: Pulling fs layer 14:58:59 0e18a0eac166: Pulling fs layer 14:58:59 4fe6c5a15a65: Waiting 14:58:59 22a0e8bec74d: Waiting 14:58:59 ca2b28591e48: Waiting 14:58:59 0e18a0eac166: Waiting 14:58:59 a51346096db8: Waiting 14:58:59 daebc70d1ce1: Waiting 14:59:00 8ed8ca486205: Download complete 14:59:00 666ba61612fd: Verifying Checksum 14:59:00 666ba61612fd: Download complete 14:59:00 22a0e8bec74d: Download complete 14:59:00 ca2b28591e48: Verifying Checksum 14:59:00 ca2b28591e48: Download complete 14:59:00 59bf1c3509f3: Verifying Checksum 14:59:00 a51346096db8: Verifying Checksum 14:59:00 59bf1c3509f3: Download complete 14:59:00 a51346096db8: Download complete 14:59:00 daebc70d1ce1: Verifying Checksum 14:59:00 daebc70d1ce1: Download complete 14:59:00 59bf1c3509f3: Pull complete 14:59:00 666ba61612fd: Pull complete 14:59:00 8ed8ca486205: Pull complete 14:59:00 0e18a0eac166: Verifying Checksum 14:59:00 0e18a0eac166: Download complete 14:59:00 4fe6c5a15a65: Verifying Checksum 14:59:00 4fe6c5a15a65: Download complete 14:59:05 4fe6c5a15a65: Pull complete 14:59:05 22a0e8bec74d: Pull complete 14:59:05 ca2b28591e48: Pull complete 14:59:05 a51346096db8: Pull complete 14:59:05 daebc70d1ce1: Pull complete 14:59:07 0e18a0eac166: Pull complete 14:59:07 Digest: sha256:5cf2d0a306c5171eb5b3008c4b83cc7b6044f1808c238cb17927cddb93576120 14:59:07 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine 14:59:07 ---> f018257e8ee9 14:59:07 Step 3/10 : ARG MAKE='make build' 14:59:09 ---> Running in 405b34cc3042 14:59:09 Removing intermediate container 405b34cc3042 14:59:09 ---> f3d098bc702b 14:59:09 Step 4/10 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 14:59:09 ---> Running in fc854a12f229 14:59:10 Removing intermediate container fc854a12f229 14:59:10 ---> 4c116e5c8162 14:59:10 Step 5/10 : RUN apk add --update --no-cache make git openssh gcc libc-dev zeromq-dev libsodium-dev 14:59:10 ---> Running in 78bf303bb5d2 14:59:10 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 14:59:11 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 14:59:11 (1/8) Installing openssh-keygen (8.8_p1-r1) 14:59:11 (2/8) Installing libedit (20210910.3.1-r0) 14:59:11 (3/8) Installing openssh-client-common (8.8_p1-r1) 14:59:11 (4/8) Installing openssh-client-default (8.8_p1-r1) 14:59:11 (5/8) Installing openssh-sftp-server (8.8_p1-r1) 14:59:11 (6/8) Installing openssh-server-common (8.8_p1-r1) 14:59:11 (7/8) Installing openssh-server (8.8_p1-r1) 14:59:12 (8/8) Installing openssh (8.8_p1-r1) 14:59:12 Executing busybox-1.34.1-r3.trigger 14:59:12 OK: 226 MiB in 60 packages 14:59:12 Removing intermediate container 78bf303bb5d2 14:59:12 ---> b98bee62032c 14:59:12 Step 6/10 : WORKDIR /device-modbus-go 14:59:12 ---> Running in 684368c23b31 14:59:12 Removing intermediate container 684368c23b31 14:59:12 ---> cb0a6de20d80 14:59:12 Step 7/10 : COPY go.mod vendor* ./ 14:59:12 Still waiting to schedule task 14:59:12 Waiting for next available executor on ‘prd-ubuntu20.04-docker-arm64-4c-16g-22045’ 14:59:13 ---> 411574b19aae 14:59:13 Step 8/10 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 14:59:13 ---> Running in 9fad28af83c7 14:59:31 Removing intermediate container 9fad28af83c7 14:59:31 ---> 33d7d517bebc 14:59:31 Step 9/10 : COPY . . 14:59:31 ---> 44238365fb43 14:59:31 Step 10/10 : RUN ${MAKE} 14:59:31 ---> Running in f2ee8972f0f7 14:59:31 noop 14:59:31 Removing intermediate container f2ee8972f0f7 14:59:31 ---> 6156c9125dd3 14:59:31 Successfully built 6156c9125dd3 14:59:31 Successfully tagged ci-base-image-x86_64:latest [Pipeline] isUnix [Pipeline] sh 14:59:31 + docker inspect -f . ci-base-image-x86_64 14:59:31 . [Pipeline] withDockerContainer 14:59:31 prd-ubuntu20.04-docker-8c-8g-22046 does not seem to be running inside a container 14:59:31 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/xfoundry_device-modbus-go_PR-336 -v /w/workspace/xfoundry_device-modbus-go_PR-336:/w/workspace/xfoundry_device-modbus-go_PR-336:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-336@tmp:/w/workspace/xfoundry_device-modbus-go_PR-336@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-x86_64 cat 14:59:32 $ docker top e4e92275cae5fb8e2d5485a16fdde96b10547a0d20c5654a97c0a882c3ab82ae -eo pid,comm [Pipeline] { [Pipeline] sh 14:59:32 + go version 14:59:32 go version go1.17.6 linux/amd64 [Pipeline] } 14:59:32 $ docker stop --time=1 e4e92275cae5fb8e2d5485a16fdde96b10547a0d20c5654a97c0a882c3ab82ae 14:59:33 $ docker rm -f e4e92275cae5fb8e2d5485a16fdde96b10547a0d20c5654a97c0a882c3ab82ae [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 14:59:34 + docker inspect -f . ci-base-image-x86_64 14:59:34 . [Pipeline] withDockerContainer 14:59:34 prd-ubuntu20.04-docker-8c-8g-22046 does not seem to be running inside a container 14:59:34 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/xfoundry_device-modbus-go_PR-336 -v /w/workspace/xfoundry_device-modbus-go_PR-336:/w/workspace/xfoundry_device-modbus-go_PR-336:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-336@tmp:/w/workspace/xfoundry_device-modbus-go_PR-336@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-x86_64 cat 14:59:35 $ docker top df8173b323f37746e72ff558b2bd1ed3cb10a1a118369eafeec9c9fc2df9388f -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 14:59:35 + make test 14:59:35 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out 14:59:35 ? github.com/edgexfoundry/device-modbus-go [no test files] 14:59:45 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 14:59:45 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.030s coverage: 46.4% of statements 14:59:52 CGO_ENABLED=1 GO111MODULE=on go vet ./... 14:59:55 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 14:59:55 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 14:59:55 ./bin/test-attribution-txt.sh [Pipeline] echo 14:59:56 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 14:59:56 $ docker stop --time=1 df8173b323f37746e72ff558b2bd1ed3cb10a1a118369eafeec9c9fc2df9388f 14:59:58 $ docker rm -f df8173b323f37746e72ff558b2bd1ed3cb10a1a118369eafeec9c9fc2df9388f [Pipeline] // withDockerContainer [Pipeline] sh 14:59:58 + sudo chown -R jenkins:jenkins . [Pipeline] stash 14:59:58 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 14:59:59 + sudo chown -R jenkins:jenkins . [Pipeline] sh 15:00:00 + ls -al . 15:00:00 total 180 15:00:00 drwxrwxr-x 10 jenkins jenkins 4096 Apr 25 14:59 . 15:00:00 drwxrwxr-x 4 jenkins jenkins 4096 Apr 25 14:58 .. 15:00:00 -rw-rw-r-- 1 jenkins jenkins 140 Apr 25 14:58 .dockerignore 15:00:00 drwxrwxr-x 8 jenkins jenkins 4096 Apr 25 14:58 .git 15:00:00 drwxrwxr-x 3 jenkins jenkins 4096 Apr 25 14:58 .github 15:00:00 -rw-rw-r-- 1 jenkins jenkins 331 Apr 25 14:58 .gitignore 15:00:00 -rw-rw-r-- 1 jenkins jenkins 41 Apr 25 14:58 .golangci.yml 15:00:00 drwx------ 3 jenkins jenkins 4096 Apr 25 14:58 .semver 15:00:00 -rw-rw-r-- 1 jenkins jenkins 9244 Apr 25 14:58 Attribution.txt 15:00:00 -rw-rw-r-- 1 jenkins jenkins 6038 Apr 25 14:58 CHANGELOG.md 15:00:00 -rw-rw-r-- 1 jenkins jenkins 1546 Apr 25 14:58 Dockerfile 15:00:00 -rw-rw-r-- 1 jenkins jenkins 677 Apr 25 14:58 GOVERNANCE.md 15:00:00 -rw-rw-r-- 1 jenkins jenkins 680 Apr 25 14:58 Jenkinsfile 15:00:00 -rw-rw-r-- 1 jenkins jenkins 11340 Apr 25 14:58 LICENSE 15:00:00 -rw-rw-r-- 1 jenkins jenkins 1905 Apr 25 14:58 Makefile 15:00:00 -rw-rw-r-- 1 jenkins jenkins 622 Apr 25 14:58 OWNERS.md 15:00:00 -rw-rw-r-- 1 jenkins jenkins 3680 Apr 25 14:58 README.md 15:00:00 -rw-rw-r-- 1 jenkins jenkins 5 Apr 25 14:58 VERSION 15:00:00 drwxrwxr-x 2 jenkins jenkins 4096 Apr 25 14:58 bin 15:00:00 drwxrwxr-x 3 jenkins jenkins 4096 Apr 25 14:58 cmd 15:00:00 -rw-r--r-- 1 jenkins jenkins 24065 Apr 25 14:59 coverage.out 15:00:00 -rw-rw-r-- 1 jenkins jenkins 3306 Apr 25 14:58 go.mod 15:00:00 -rw-rw-r-- 1 jenkins jenkins 34903 Apr 25 14:58 go.sum 15:00:00 drwxrwxr-x 3 jenkins jenkins 4096 Apr 25 14:58 internal 15:00:00 drwxrwxr-x 2 jenkins jenkins 4096 Apr 25 14:58 simulator 15:00:00 drwxrwxr-x 4 jenkins jenkins 4096 Apr 25 14:58 snap 15:00:00 -rw-rw-r-- 1 jenkins jenkins 229 Apr 25 14:58 version.go [Pipeline] isUnix [Pipeline] sh 15:00:00 + 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=3237a4a44b4a52002b410c2dd400a27648297c25 --label arch=amd64 --label version=0.0.0 . 15:00:00 Sending build context to Docker daemon 5.895MB 15:00:00 Step 1/23 : ARG BASE=golang:1.17-alpine3.15 15:00:00 Step 2/23 : FROM ${BASE} AS builder 15:00:00 ---> 6156c9125dd3 15:00:00 Step 3/23 : ARG MAKE='make build' 15:00:00 ---> Running in 6af38a223b14 15:00:00 Removing intermediate container 6af38a223b14 15:00:00 ---> 8995c37cea94 15:00:00 Step 4/23 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 15:00:00 ---> Running in 6bcc42455ad4 15:00:01 Removing intermediate container 6bcc42455ad4 15:00:01 ---> 2bc75eb3c9f0 15:00:01 Step 5/23 : RUN apk add --update --no-cache make git openssh gcc libc-dev zeromq-dev libsodium-dev 15:00:01 ---> Running in 145f88a61969 15:00:01 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 15:00:02 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 15:00:02 OK: 226 MiB in 60 packages 15:00:03 Removing intermediate container 145f88a61969 15:00:03 ---> d9a324bc2067 15:00:03 Step 6/23 : WORKDIR /device-modbus-go 15:00:03 ---> Running in adbb80ff65e5 15:00:03 Removing intermediate container adbb80ff65e5 15:00:03 ---> 5c0992c61fd8 15:00:03 Step 7/23 : COPY go.mod vendor* ./ 15:00:03 ---> 406d7b036232 15:00:03 Step 8/23 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 15:00:03 ---> Running in 18bcbe2ad769 15:00:04 Removing intermediate container 18bcbe2ad769 15:00:04 ---> 203795c75012 15:00:04 Step 9/23 : COPY . . 15:00:04 ---> b5565fce4e0d 15:00:04 Step 10/23 : RUN ${MAKE} 15:00:04 ---> Running in 70e2db249c84 15:00:04 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 15:00:26 Removing intermediate container 70e2db249c84 15:00:26 ---> 282aae434155 15:00:26 Step 11/23 : FROM alpine:3.14 15:00:26 3.14: Pulling from library/alpine 15:00:26 8663204ce13b: Pulling fs layer 15:00:26 8663204ce13b: Verifying Checksum 15:00:26 8663204ce13b: Download complete 15:00:26 8663204ce13b: Pull complete 15:00:26 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 15:00:26 Status: Downloaded newer image for alpine:3.14 15:00:26 ---> e04c818066af 15:00:26 Step 12/23 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IoTech Ltd' 15:00:26 ---> Running in 0b2d588783bb 15:00:26 Removing intermediate container 0b2d588783bb 15:00:26 ---> 9bfac3d371ad 15:00:26 Step 13/23 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 15:00:26 ---> Running in ef16f13beada 15:00:26 Removing intermediate container ef16f13beada 15:00:26 ---> e3e3904844b6 15:00:26 Step 14/23 : RUN apk add --update --no-cache zeromq dumb-init 15:00:26 ---> Running in d88063349f90 15:00:27 fetch https://nl.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz 15:00:28 fetch https://nl.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz 15:00:28 (1/6) Installing dumb-init (1.2.5-r1) 15:00:28 (2/6) Installing libgcc (10.3.1_git20210424-r2) 15:00:28 (3/6) Installing libsodium (1.0.18-r0) 15:00:28 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 15:00:28 (5/6) Installing libzmq (4.3.4-r0) 15:00:28 (6/6) Installing zeromq (4.3.4-r0) 15:00:28 Executing busybox-1.33.1-r7.trigger 15:00:28 OK: 8 MiB in 20 packages 15:00:29 Removing intermediate container d88063349f90 15:00:29 ---> 82ee30552eee 15:00:29 Step 15/23 : COPY --from=builder /device-modbus-go/cmd / 15:00:29 ---> ad0550cff5b7 15:00:29 Step 16/23 : COPY --from=builder /device-modbus-go/LICENSE / 15:00:29 ---> 67640f4258bc 15:00:29 Step 17/23 : COPY --from=builder /device-modbus-go/Attribution.txt / 15:00:30 ---> 1dfac8d5c459 15:00:30 Step 18/23 : EXPOSE 59901 15:00:30 ---> Running in 8f158468c32b 15:00:30 Removing intermediate container 8f158468c32b 15:00:30 ---> 886ea655f663 15:00:30 Step 19/23 : ENTRYPOINT ["/device-modbus"] 15:00:30 ---> Running in 62aae93d4cad 15:00:30 Removing intermediate container 62aae93d4cad 15:00:30 ---> f02a13d7992e 15:00:30 Step 20/23 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry", "--confdir=/res"] 15:00:30 ---> Running in d89deaa76f56 15:00:30 Removing intermediate container d89deaa76f56 15:00:30 ---> 7651ff9dfc7d 15:00:30 Step 21/23 : LABEL arch=amd64 15:00:30 ---> Running in 4180ab04b710 15:00:30 Removing intermediate container 4180ab04b710 15:00:30 ---> a1f59266de20 15:00:30 Step 22/23 : LABEL git_sha=3237a4a44b4a52002b410c2dd400a27648297c25 15:00:30 ---> Running in c5c5fb6b116e 15:00:30 Removing intermediate container c5c5fb6b116e 15:00:30 ---> 88c514aaadf7 15:00:30 Step 23/23 : LABEL version=0.0.0 15:00:30 ---> Running in df2aa1b55a0f 15:00:30 Removing intermediate container df2aa1b55a0f 15:00:30 ---> 1ef3261742be 15:00:30 [Warning] One or more build-args [ARCH] were not consumed 15:00:30 Successfully built 1ef3261742be 15:00:30 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 15:00:31 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 15:00:31 15:00:31 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] sh 15:00:31 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 15:00:31 latest: Pulling from edgex-lftools-log-publisher 15:00:31 5eb5b503b376: Pulling fs layer 15:00:31 5c69ac0246d0: Pulling fs layer 15:00:31 ec43610c2a17: Pulling fs layer 15:00:31 3a2ae6a8a46f: Pulling fs layer 15:00:31 33b1e0a273af: Pulling fs layer 15:00:31 5d3b04190fa2: Pulling fs layer 15:00:31 2f39f015ded8: Pulling fs layer 15:00:31 3a2ae6a8a46f: Waiting 15:00:31 5d3b04190fa2: Waiting 15:00:31 2f39f015ded8: Waiting 15:00:31 5c69ac0246d0: Verifying Checksum 15:00:31 5c69ac0246d0: Download complete 15:00:31 3a2ae6a8a46f: Verifying Checksum 15:00:31 3a2ae6a8a46f: Download complete 15:00:31 33b1e0a273af: Verifying Checksum 15:00:31 33b1e0a273af: Download complete 15:00:31 ec43610c2a17: Verifying Checksum 15:00:31 ec43610c2a17: Download complete 15:00:31 5d3b04190fa2: Download complete 15:00:32 5eb5b503b376: Verifying Checksum 15:00:32 5eb5b503b376: Download complete 15:00:32 2f39f015ded8: Download complete 15:00:33 5eb5b503b376: Pull complete 15:00:33 5c69ac0246d0: Pull complete 15:00:33 ec43610c2a17: Pull complete 15:00:34 3a2ae6a8a46f: Pull complete 15:00:34 33b1e0a273af: Pull complete 15:00:34 5d3b04190fa2: Pull complete 15:00:38 2f39f015ded8: Pull complete 15:00:38 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 15:00:38 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 15:00:38 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] withDockerContainer 15:00:38 prd-ubuntu20.04-docker-8c-8g-22046 does not seem to be running inside a container 15:00:38 $ 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-336 -v /w/workspace/xfoundry_device-modbus-go_PR-336:/w/workspace/xfoundry_device-modbus-go_PR-336:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-336@tmp:/w/workspace/xfoundry_device-modbus-go_PR-336@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:latest cat 15:00:41 $ docker top f782bc58b162efb7d1c6edd9ee93a4fadb9f6cbd25a8d343d9e3bd98b5cc86c0 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 15:00:42 ---> job-cost.sh 15:00:42 lf-activate-venv: SKIPPING 15:00:42 INFO: No Stack... 15:00:42 INFO: Retrieving Pricing Info for: v3-standard-8 15:00:42 INFO: Archiving Costs [Pipeline] sh 15:00:43 + cat /w/workspace/xfoundry_device-modbus-go_PR-336/archives/cost.csv 15:00:43 + cut -d, -f6 [Pipeline] lock 15:00:43 Trying to acquire lock on [jenkins-edgexfoundry-device-modbus-go-PR-336-1-stack-cost] 15:00:43 Resource [jenkins-edgexfoundry-device-modbus-go-PR-336-1-stack-cost] did not exist. Created. 15:00:43 Lock acquired on [jenkins-edgexfoundry-device-modbus-go-PR-336-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 15:00:43 + echo total: 0.2199999988079071 [Pipeline] stash 15:00:43 Stashed 1 file(s) [Pipeline] } 15:00:43 Lock released on resource [jenkins-edgexfoundry-device-modbus-go-PR-336-1-stack-cost] [Pipeline] // lock [Pipeline] } 15:00:43 $ docker stop --time=1 f782bc58b162efb7d1c6edd9ee93a4fadb9f6cbd25a8d343d9e3bd98b5cc86c0 15:00:44 $ docker rm -f f782bc58b162efb7d1c6edd9ee93a4fadb9f6cbd25a8d343d9e3bd98b5cc86c0 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 15:02:54 Running on prd-ubuntu20.04-docker-arm64-4c-16g-22047 in /w/workspace/xfoundry_device-modbus-go_PR-336 [Pipeline] { [Pipeline] ws 15:02:54 Running in /w/workspace/device-modbus-go/1 [Pipeline] { [Pipeline] checkout 15:02:55 Selected Git installation does not exist. Using Default 15:02:55 The recommended git tool is: NONE 15:03:01 using credential edgex-jenkins-ssh 15:03:01 Cloning the remote Git repository 15:03:01 Cloning repository git@github.com:edgexfoundry/device-modbus-go.git 15:03:01 > git init /w/workspace/device-modbus-go/1 # timeout=10 15:03:01 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 15:03:01 > git --version # timeout=10 15:03:01 > git --version # 'git version 2.25.1' 15:03:01 using GIT_SSH to set credentials SSH Credentials for GitHub 15:03:01 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 15:03:03 Merging remotes/origin/main commit 244abab361647dcef607fbcbfbdaea3ae1f72309 into PR head commit 3237a4a44b4a52002b410c2dd400a27648297c25 15:03:03 Merge succeeded, producing 3237a4a44b4a52002b410c2dd400a27648297c25 15:03:03 Checking out Revision 3237a4a44b4a52002b410c2dd400a27648297c25 (PR-336) 15:03:03 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 15:03:03 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 15:03:03 > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 15:03:03 Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git 15:03:03 using GIT_SSH to set credentials SSH Credentials for GitHub 15:03:03 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/pull/336/head:refs/remotes/origin/PR-336 +refs/heads/main:refs/remotes/origin/main # timeout=10 15:03:03 > git config core.sparsecheckout # timeout=10 15:03:03 > git checkout -f 3237a4a44b4a52002b410c2dd400a27648297c25 # timeout=10 15:03:03 > git remote # timeout=10 15:03:03 > git config --get remote.origin.url # timeout=10 15:03:03 using GIT_SSH to set credentials SSH Credentials for GitHub 15:03:03 > git merge 244abab361647dcef607fbcbfbdaea3ae1f72309 # timeout=10 15:03:03 > git rev-parse HEAD^{commit} # timeout=10 15:03:03 > git config core.sparsecheckout # timeout=10 15:03:03 > git checkout -f 3237a4a44b4a52002b410c2dd400a27648297c25 # timeout=10 15:03:08 Commit message: "feat(snap): add support for env var injection" 15:03:08 > git --version # timeout=10 15:03:08 > git --version # 'git version 2.25.1' 15:03:08 fatal: bad object c72b16708d6eed9a08be464a432ce22db7d90667 [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 15:03:09 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 15:03:09 % Total % Received % Xferd Average Speed Time Time Time Current 15:03:09 Dload Upload Total Spent Left Speed 15:03:09 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 11843 100 11843 0 0 82818 0 --:--:-- --:--:-- --:--:-- 83401 [Pipeline] sh 15:03:09 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 15:03:10 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 15:03:10 + sudo tee /etc/docker/daemon.new 15:03:10 { 15:03:10 "registry-mirrors": [ 15:03:10 "https://nexus3.edgexfoundry.org:10001" 15:03:10 ], 15:03:10 "bip": "10.250.0.254/24", 15:03:10 "hosts": [ 15:03:10 "tcp://0.0.0.0:5555", 15:03:10 "unix:///var/run/docker.sock" 15:03:10 ], 15:03:10 "mtu": 1458, 15:03:10 "selinux-enabled": true, 15:03:10 "seccomp-profile": "/etc/docker/seccomp.json" 15:03:10 } [Pipeline] sh 15:03:10 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 15:03:11 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 15:03:29 provisioning config files... 15:03:29 copy managed file [device-modbus-go-settings] to file:/w/workspace/device-modbus-go/1@tmp/config3480064454799989502tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 15:03:30 ---> docker-login.sh 15:03:30 nexus3.edgexfoundry.org:10001 15:03:30 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 15:03:30 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 15:03:30 Configure a credential helper to remove this warning. See 15:03:30 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 15:03:30 15:03:30 Login Succeeded 15:03:30 nexus3.edgexfoundry.org:10002 15:03:31 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 15:03:31 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 15:03:31 Configure a credential helper to remove this warning. See 15:03:31 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 15:03:31 15:03:31 Login Succeeded 15:03:31 nexus3.edgexfoundry.org:10003 15:03:31 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 15:03:32 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 15:03:32 Configure a credential helper to remove this warning. See 15:03:32 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 15:03:32 15:03:32 Login Succeeded 15:03:32 nexus3.edgexfoundry.org:10004 15:03:32 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 15:03:32 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 15:03:32 Configure a credential helper to remove this warning. See 15:03:32 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 15:03:32 15:03:32 Login Succeeded 15:03:32 docker.io 15:03:32 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 15:03:33 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 15:03:33 Configure a credential helper to remove this warning. See 15:03:33 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 15:03:33 15:03:33 Login Succeeded 15:03:33 ---> docker-login.sh ends [Pipeline] } 15:03:33 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 15:03:34 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 15:03:34 ========================================================= 15:03:34 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine] 15:03:34 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 15:03:34 + 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 . 15:03:34 Sending build context to Docker daemon 3.098MB 15:03:35 Step 1/10 : ARG BASE=golang:1.17-alpine3.15 15:03:35 Step 2/10 : FROM ${BASE} AS builder 15:03:35 1.17-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 15:03:35 9b3977197b4f: Pulling fs layer 15:03:35 1a89e8eeedd5: Pulling fs layer 15:03:35 94645a83ff95: Pulling fs layer 15:03:35 3f3a8bcf1eab: Pulling fs layer 15:03:35 0c92f367c5e7: Pulling fs layer 15:03:35 3096ccb668a1: Pulling fs layer 15:03:35 e8cf19c19ddd: Pulling fs layer 15:03:35 a4caa8a26152: Pulling fs layer 15:03:35 3f3a8bcf1eab: Waiting 15:03:35 0c92f367c5e7: Waiting 15:03:35 3096ccb668a1: Waiting 15:03:35 e8cf19c19ddd: Waiting 15:03:35 a4caa8a26152: Waiting 15:03:35 94645a83ff95: Verifying Checksum 15:03:35 94645a83ff95: Download complete 15:03:35 1a89e8eeedd5: Download complete 15:03:35 0c92f367c5e7: Verifying Checksum 15:03:35 0c92f367c5e7: Download complete 15:03:35 3096ccb668a1: Verifying Checksum 15:03:35 3096ccb668a1: Download complete 15:03:35 9b3977197b4f: Verifying Checksum 15:03:35 9b3977197b4f: Download complete 15:03:35 e8cf19c19ddd: Verifying Checksum 15:03:35 e8cf19c19ddd: Download complete 15:03:35 9b3977197b4f: Pull complete 15:03:36 1a89e8eeedd5: Pull complete 15:03:36 94645a83ff95: Pull complete 15:03:37 a4caa8a26152: Verifying Checksum 15:03:37 a4caa8a26152: Download complete 15:03:38 3f3a8bcf1eab: Verifying Checksum 15:03:38 3f3a8bcf1eab: Download complete 15:03:50 3f3a8bcf1eab: Pull complete 15:03:50 0c92f367c5e7: Pull complete 15:03:51 3096ccb668a1: Pull complete 15:03:51 e8cf19c19ddd: Pull complete 15:03:58 a4caa8a26152: Pull complete 15:03:58 Digest: sha256:b3ad895ecde34a7521bb8912598475bc58d052e1c2c58d00df7f0fe54a102a46 15:03:58 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine 15:03:58 ---> 725f1c02e7f9 15:03:58 Step 3/10 : ARG MAKE='make build' 15:03:58 ---> Running in 139a291e9168 15:03:58 Removing intermediate container 139a291e9168 15:03:58 ---> 9fcbfde22979 15:03:58 Step 4/10 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 15:03:58 ---> Running in 75901456dc05 15:04:02 Removing intermediate container 75901456dc05 15:04:02 ---> f1010bb2f749 15:04:02 Step 5/10 : RUN apk add --update --no-cache make git openssh gcc libc-dev zeromq-dev libsodium-dev 15:04:02 ---> Running in f8027a97e900 15:04:02 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 15:04:03 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 15:04:04 (1/8) Installing openssh-keygen (8.8_p1-r1) 15:04:04 (2/8) Installing libedit (20210910.3.1-r0) 15:04:04 (3/8) Installing openssh-client-common (8.8_p1-r1) 15:04:04 (4/8) Installing openssh-client-default (8.8_p1-r1) 15:04:04 (5/8) Installing openssh-sftp-server (8.8_p1-r1) 15:04:04 (6/8) Installing openssh-server-common (8.8_p1-r1) 15:04:05 (7/8) Installing openssh-server (8.8_p1-r1) 15:04:05 (8/8) Installing openssh (8.8_p1-r1) 15:04:05 Executing busybox-1.34.1-r3.trigger 15:04:05 OK: 226 MiB in 60 packages 15:04:06 Removing intermediate container f8027a97e900 15:04:06 ---> 207b718a97a0 15:04:06 Step 6/10 : WORKDIR /device-modbus-go 15:04:06 ---> Running in 48dc673a2ca7 15:04:06 Removing intermediate container 48dc673a2ca7 15:04:06 ---> fe077a1f7a2b 15:04:06 Step 7/10 : COPY go.mod vendor* ./ 15:04:07 ---> 854f9545429b 15:04:07 Step 8/10 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 15:04:07 ---> Running in 89811cd47982 15:05:03 Removing intermediate container 89811cd47982 15:05:03 ---> 4c202ca3acc1 15:05:03 Step 9/10 : COPY . . 15:05:03 ---> 401067b4f285 15:05:03 Step 10/10 : RUN ${MAKE} 15:05:03 ---> Running in 08f7e75a6f72 15:05:03 noop 15:05:03 Removing intermediate container 08f7e75a6f72 15:05:03 ---> 8f1d11a2ca59 15:05:03 Successfully built 8f1d11a2ca59 15:05:03 Successfully tagged ci-base-image-arm64:latest [Pipeline] isUnix [Pipeline] sh 15:05:04 + docker inspect -f . ci-base-image-arm64 15:05:04 . [Pipeline] withDockerContainer 15:05:04 prd-ubuntu20.04-docker-arm64-4c-16g-22047 does not seem to be running inside a container 15:05:04 $ 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 15:05:05 $ docker top 5b25965a7b5e23a1dddf3d8009f6d7d9507cb17216d1eb92721f473fd473e6c9 -eo pid,comm [Pipeline] { [Pipeline] sh 15:05:06 + go version 15:05:06 go version go1.17.6 linux/arm64 [Pipeline] } 15:05:06 $ docker stop --time=1 5b25965a7b5e23a1dddf3d8009f6d7d9507cb17216d1eb92721f473fd473e6c9 15:05:08 $ docker rm -f 5b25965a7b5e23a1dddf3d8009f6d7d9507cb17216d1eb92721f473fd473e6c9 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 15:05:09 + docker inspect -f . ci-base-image-arm64 15:05:09 . [Pipeline] withDockerContainer 15:05:09 prd-ubuntu20.04-docker-arm64-4c-16g-22047 does not seem to be running inside a container 15:05:09 $ 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 15:05:11 $ docker top ddbfdbf88ca3c8f05bb50e52f8f83f1f91c57e62857c098fd5b3d18b4992ea60 -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 15:05:12 + make test 15:05:12 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out 15:05:13 ? github.com/edgexfoundry/device-modbus-go [no test files] 15:06:35 ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] 15:06:35 ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.070s coverage: 46.4% of statements 15:06:35 WARNING: Linting skipped (not on x86_64 or linter not installed) 15:06:35 CGO_ENABLED=1 GO111MODULE=on go vet ./... 15:07:02 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 15:07:02 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 15:07:02 ./bin/test-attribution-txt.sh [Pipeline] echo 15:07:05 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 15:07:05 $ docker stop --time=1 ddbfdbf88ca3c8f05bb50e52f8f83f1f91c57e62857c098fd5b3d18b4992ea60 15:07:07 $ docker rm -f ddbfdbf88ca3c8f05bb50e52f8f83f1f91c57e62857c098fd5b3d18b4992ea60 [Pipeline] // withDockerContainer [Pipeline] sh 15:07:08 + sudo chown -R jenkins:jenkins . [Pipeline] stash 15:07:08 Warning: overwriting stash ‘coverage-report’ 15:07:09 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 15:07:09 + sudo chown -R jenkins:jenkins . [Pipeline] sh 15:07:10 + ls -al . 15:07:10 total 176 15:07:10 drwxrwxr-x 9 jenkins jenkins 4096 Apr 25 15:07 . 15:07:10 drwxrwxr-x 4 jenkins jenkins 4096 Apr 25 15:03 .. 15:07:10 -rw-rw-r-- 1 jenkins jenkins 140 Apr 25 15:03 .dockerignore 15:07:10 drwxrwxr-x 8 jenkins jenkins 4096 Apr 25 15:03 .git 15:07:10 drwxrwxr-x 3 jenkins jenkins 4096 Apr 25 15:03 .github 15:07:10 -rw-rw-r-- 1 jenkins jenkins 331 Apr 25 15:03 .gitignore 15:07:10 -rw-rw-r-- 1 jenkins jenkins 41 Apr 25 15:03 .golangci.yml 15:07:10 -rw-rw-r-- 1 jenkins jenkins 9244 Apr 25 15:03 Attribution.txt 15:07:10 -rw-rw-r-- 1 jenkins jenkins 6038 Apr 25 15:03 CHANGELOG.md 15:07:10 -rw-rw-r-- 1 jenkins jenkins 1546 Apr 25 15:03 Dockerfile 15:07:10 -rw-rw-r-- 1 jenkins jenkins 677 Apr 25 15:03 GOVERNANCE.md 15:07:10 -rw-rw-r-- 1 jenkins jenkins 680 Apr 25 15:03 Jenkinsfile 15:07:10 -rw-rw-r-- 1 jenkins jenkins 11340 Apr 25 15:03 LICENSE 15:07:10 -rw-rw-r-- 1 jenkins jenkins 1905 Apr 25 15:03 Makefile 15:07:10 -rw-rw-r-- 1 jenkins jenkins 622 Apr 25 15:03 OWNERS.md 15:07:10 -rw-rw-r-- 1 jenkins jenkins 3680 Apr 25 15:03 README.md 15:07:10 -rw-rw-r-- 1 jenkins jenkins 5 Apr 25 14:58 VERSION 15:07:10 drwxrwxr-x 2 jenkins jenkins 4096 Apr 25 15:03 bin 15:07:10 drwxrwxr-x 3 jenkins jenkins 4096 Apr 25 15:03 cmd 15:07:10 -rw-r--r-- 1 jenkins jenkins 24065 Apr 25 15:06 coverage.out 15:07:10 -rw-rw-r-- 1 jenkins jenkins 3306 Apr 25 15:03 go.mod 15:07:10 -rw-rw-r-- 1 jenkins jenkins 34903 Apr 25 15:03 go.sum 15:07:10 drwxrwxr-x 3 jenkins jenkins 4096 Apr 25 15:03 internal 15:07:10 drwxrwxr-x 2 jenkins jenkins 4096 Apr 25 15:03 simulator 15:07:10 drwxrwxr-x 4 jenkins jenkins 4096 Apr 25 15:03 snap 15:07:10 -rw-rw-r-- 1 jenkins jenkins 229 Apr 25 15:03 version.go [Pipeline] isUnix [Pipeline] sh 15:07:10 + 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=3237a4a44b4a52002b410c2dd400a27648297c25 --label arch=arm64 --label version=0.0.0 . 15:07:10 Sending build context to Docker daemon 3.123MB 15:07:11 Step 1/23 : ARG BASE=golang:1.17-alpine3.15 15:07:11 Step 2/23 : FROM ${BASE} AS builder 15:07:11 ---> 8f1d11a2ca59 15:07:11 Step 3/23 : ARG MAKE='make build' 15:07:11 ---> Running in 3f18d693fabc 15:07:11 Removing intermediate container 3f18d693fabc 15:07:11 ---> 716c2e5753db 15:07:11 Step 4/23 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 15:07:11 ---> Running in 9999318fbfbb 15:07:13 Removing intermediate container 9999318fbfbb 15:07:13 ---> 8350f135c1c0 15:07:13 Step 5/23 : RUN apk add --update --no-cache make git openssh gcc libc-dev zeromq-dev libsodium-dev 15:07:13 ---> Running in b1a51b4c21d0 15:07:14 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 15:07:15 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 15:07:16 OK: 226 MiB in 60 packages 15:07:17 Removing intermediate container b1a51b4c21d0 15:07:17 ---> 6a06e0513735 15:07:17 Step 6/23 : WORKDIR /device-modbus-go 15:07:17 ---> Running in 23a08e7fd088 15:07:17 Removing intermediate container 23a08e7fd088 15:07:17 ---> ad585791680c 15:07:17 Step 7/23 : COPY go.mod vendor* ./ 15:07:18 ---> 35861c13bc0c 15:07:18 Step 8/23 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 15:07:18 ---> Running in e582466999d4 15:07:20 Removing intermediate container e582466999d4 15:07:20 ---> 193c81762e5b 15:07:20 Step 9/23 : COPY . . 15:07:21 ---> caf4494412a0 15:07:21 Step 10/23 : RUN ${MAKE} 15:07:21 ---> Running in d0ee86e5fba0 15:07:22 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 15:09:29 Removing intermediate container d0ee86e5fba0 15:09:29 ---> d56422f0efc0 15:09:29 Step 11/23 : FROM alpine:3.14 15:09:29 3.14: Pulling from library/alpine 15:09:29 455c02918c45: Pulling fs layer 15:09:29 455c02918c45: Verifying Checksum 15:09:29 455c02918c45: Download complete 15:09:29 455c02918c45: Pull complete 15:09:29 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 15:09:29 Status: Downloaded newer image for alpine:3.14 15:09:29 ---> ac73e934f311 15:09:29 Step 12/23 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IoTech Ltd' 15:09:29 ---> Running in 46a661592cc9 15:09:29 Removing intermediate container 46a661592cc9 15:09:29 ---> 741bc412afce 15:09:29 Step 13/23 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 15:09:29 ---> Running in 86a472197e22 15:09:31 Removing intermediate container 86a472197e22 15:09:31 ---> ff32ec8cf801 15:09:31 Step 14/23 : RUN apk add --update --no-cache zeromq dumb-init 15:09:31 ---> Running in f706a90706e4 15:09:32 fetch https://nl.alpinelinux.org/alpine/v3.14/main/aarch64/APKINDEX.tar.gz 15:09:33 fetch https://nl.alpinelinux.org/alpine/v3.14/community/aarch64/APKINDEX.tar.gz 15:09:34 (1/6) Installing dumb-init (1.2.5-r1) 15:09:34 (2/6) Installing libgcc (10.3.1_git20210424-r2) 15:09:34 (3/6) Installing libsodium (1.0.18-r0) 15:09:34 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 15:09:34 (5/6) Installing libzmq (4.3.4-r0) 15:09:34 (6/6) Installing zeromq (4.3.4-r0) 15:09:35 Executing busybox-1.33.1-r7.trigger 15:09:35 OK: 8 MiB in 20 packages 15:09:36 Removing intermediate container f706a90706e4 15:09:36 ---> 51febae77f18 15:09:36 Step 15/23 : COPY --from=builder /device-modbus-go/cmd / 15:09:37 ---> b3510def917a 15:09:37 Step 16/23 : COPY --from=builder /device-modbus-go/LICENSE / 15:09:38 ---> 4fdb76b2f772 15:09:38 Step 17/23 : COPY --from=builder /device-modbus-go/Attribution.txt / 15:09:38 ---> aad9e6e3919e 15:09:38 Step 18/23 : EXPOSE 59901 15:09:39 ---> Running in 7477f1d18293 15:09:39 Removing intermediate container 7477f1d18293 15:09:39 ---> bd7e3ffd6cae 15:09:39 Step 19/23 : ENTRYPOINT ["/device-modbus"] 15:09:39 ---> Running in b3a883165d69 15:09:39 Removing intermediate container b3a883165d69 15:09:39 ---> d06a48c25e87 15:09:39 Step 20/23 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry", "--confdir=/res"] 15:09:39 ---> Running in 0ab5eb3a841d 15:09:40 Removing intermediate container 0ab5eb3a841d 15:09:40 ---> 05c0c880ebdc 15:09:40 Step 21/23 : LABEL arch=arm64 15:09:40 ---> Running in 7fd29c16abee 15:09:40 Removing intermediate container 7fd29c16abee 15:09:40 ---> 353267a8ef63 15:09:40 Step 22/23 : LABEL git_sha=3237a4a44b4a52002b410c2dd400a27648297c25 15:09:40 ---> Running in 0da200f90ad7 15:09:41 Removing intermediate container 0da200f90ad7 15:09:41 ---> 7dae4160f4a1 15:09:41 Step 23/23 : LABEL version=0.0.0 15:09:41 ---> Running in bd8cf4fc08e4 15:09:41 Removing intermediate container bd8cf4fc08e4 15:09:41 ---> 9361f438da04 15:09:41 [Warning] One or more build-args [ARCH] were not consumed 15:09:41 Successfully built 9361f438da04 15:09:41 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 15:09:42 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 15:09:42 15:09:42 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] sh 15:09:42 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 15:09:42 arm64: Pulling from edgex-lftools-log-publisher 15:09:42 8998bd30e6a1: Pulling fs layer 15:09:42 04944245beec: Pulling fs layer 15:09:42 699f458cf7ca: Pulling fs layer 15:09:42 765212b225bb: Pulling fs layer 15:09:42 f23df028b6ca: Pulling fs layer 15:09:42 d65c8cfc05b1: Pulling fs layer 15:09:42 2437ff75d9bd: Pulling fs layer 15:09:42 f23df028b6ca: Waiting 15:09:42 d65c8cfc05b1: Waiting 15:09:42 2437ff75d9bd: Waiting 15:09:42 765212b225bb: Waiting 15:09:42 04944245beec: Download complete 15:09:42 765212b225bb: Verifying Checksum 15:09:42 765212b225bb: Download complete 15:09:42 f23df028b6ca: Verifying Checksum 15:09:42 f23df028b6ca: Download complete 15:09:43 d65c8cfc05b1: Verifying Checksum 15:09:43 d65c8cfc05b1: Download complete 15:09:43 699f458cf7ca: Verifying Checksum 15:09:43 699f458cf7ca: Download complete 15:09:43 8998bd30e6a1: Download complete 15:09:46 2437ff75d9bd: Verifying Checksum 15:09:46 2437ff75d9bd: Download complete 15:09:48 8998bd30e6a1: Pull complete 15:09:48 04944245beec: Pull complete 15:09:50 699f458cf7ca: Pull complete 15:09:50 765212b225bb: Pull complete 15:09:51 f23df028b6ca: Pull complete 15:09:51 d65c8cfc05b1: Pull complete 15:10:06 2437ff75d9bd: Pull complete 15:10:06 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 15:10:06 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 15:10:06 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] withDockerContainer 15:10:06 prd-ubuntu20.04-docker-arm64-4c-16g-22047 does not seem to be running inside a container 15:10:07 $ 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 15:10:09 $ docker top 4393cccb4f8abca7b808142b689287b9c9159769dda0bc4e672858bbe418df26 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 15:10:10 ---> job-cost.sh 15:10:10 lf-activate-venv: SKIPPING 15:10:10 INFO: No Stack... 15:10:11 INFO: Retrieving Pricing Info for: v3-standard-4 15:10:12 INFO: Archiving Costs [Pipeline] sh 15:10:13 + cat /w/workspace/device-modbus-go/1/archives/cost.csv 15:10:13 + cut -d, -f6 [Pipeline] lock 15:10:13 Trying to acquire lock on [jenkins-edgexfoundry-device-modbus-go-PR-336-1-stack-cost] 15:10:13 Resource [jenkins-edgexfoundry-device-modbus-go-PR-336-1-stack-cost] did not exist. Created. 15:10:13 Lock acquired on [jenkins-edgexfoundry-device-modbus-go-PR-336-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 15:10:14 /w/workspace/device-modbus-go/1@tmp/durable-ed29879c/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 15:10:14 + echo total: 0.10999999940395355 [Pipeline] stash 15:10:14 Warning: overwriting stash ‘stack-cost’ 15:10:14 Stashed 1 file(s) [Pipeline] } 15:10:14 Lock released on resource [jenkins-edgexfoundry-device-modbus-go-PR-336-1-stack-cost] [Pipeline] // lock [Pipeline] } 15:10:14 $ docker stop --time=1 4393cccb4f8abca7b808142b689287b9c9159769dda0bc4e672858bbe418df26 15:10:16 $ docker rm -f 4393cccb4f8abca7b808142b689287b9c9159769dda0bc4e672858bbe418df26 [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 15:10:17 provisioning config files... 15:10:17 copy managed file [device-modbus-go-codecov-token] to file:/w/workspace/xfoundry_device-modbus-go_PR-336@tmp/config6896992459260266189tmp [Pipeline] { [Pipeline] sh 15:10:17 + set +x 15:10:17 + bash -s -- 15:10:17 + curl -s https://codecov.io/bash 15:10:17 15:10:17 _____ _ 15:10:17 / ____| | | 15:10:17 | | ___ __| | ___ ___ _____ __ 15:10:17 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 15:10:17 | |___| (_) | (_| | __/ (_| (_) \ V / 15:10:17 \_____\___/ \__,_|\___|\___\___/ \_/ 15:10:17 Bash-1.0.6 15:10:17 15:10:17 15:10:17 ==> git version 2.25.1 found 15:10:17 ==> 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 15:10:17 Release-Date: 2020-01-08 15:10:17 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 15:10:17 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 15:10:17 ==> Jenkins CI detected. 15:10:17 current dir:  /w/workspace/xfoundry_device-modbus-go_PR-336 15:10:17 project root: . 15:10:17 --> token set from env 15:10:17 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 15:10:17 ==> Running gcov in . (disable via -X gcov) 15:10:17 ==> Python coveragepy not found 15:10:17 ==> Searching for coverage reports in: 15:10:17 + . 15:10:17 -> Found 1 reports 15:10:17 ==> Detecting git/mercurial file structure 15:10:17 ==> Reading reports 15:10:17 + ./coverage.out bytes=24065 15:10:17 ==> Appending adjustments 15:10:17 https://docs.codecov.io/docs/fixing-reports 15:10:18 + Found adjustments 15:10:18 ==> Gzipping contents 15:10:18 4.0K /tmp/codecov.fMV3NY.gz 15:10:18 ==> Uploading reports 15:10:18 url: https://codecov.io 15:10:18 query: branch=PR-336&commit=3237a4a44b4a52002b410c2dd400a27648297c25&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-modbus-go%2Fjob%2FPR-336%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-modbus-go&service=jenkins&flags=&pr=336&job=&cmd_args= 15:10:18 -> Pinging Codecov 15:10:18 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=3a8d40b1-de00-4649-bfd4-bdc8ed99ae89&branch=PR-336&commit=3237a4a44b4a52002b410c2dd400a27648297c25&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-modbus-go%2Fjob%2FPR-336%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-modbus-go&service=jenkins&flags=&pr=336&job=&cmd_args= 15:10:18 -> Uploading to 15:10:18 https://storage.googleapis.com/codecov/v4/raw/2022-04-25/55DBCA73C666E3227836607328DD7E49/3237a4a44b4a52002b410c2dd400a27648297c25/3f657965-3b91-43ef-b9fc-a673b0236e3e.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20220425%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20220425T151018Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=b8cb0f5892267ee8929a66bbc21952a2bc27837781b3bcbfc742c09126cb738d 15:10:18 % Total % Received % Xferd Average Speed Time Time Time Current 15:10:18 Dload Upload Total Spent Left Speed 15:10:18 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 4025 0 0 100 4025 0 17349 --:--:-- --:--:-- --:--:-- 17349 15:10:18 -> Reports have been successfully queued for processing at https://codecov.io/github/edgexfoundry/device-modbus-go/commit/3237a4a44b4a52002b410c2dd400a27648297c25 [Pipeline] } 15:10:18 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 15:10:20 + [ -d /w/workspace/xfoundry_device-modbus-go_PR-336/archives ] 15:10:20 + ls -al /w/workspace/xfoundry_device-modbus-go_PR-336/archives 15:10:20 total 16 15:10:20 drwxr-xr-x 3 root root 4096 Apr 25 15:00 . 15:10:20 drwxrwxr-x 11 jenkins jenkins 4096 Apr 25 15:00 .. 15:10:20 drwxr-xr-x 2 root root 4096 Apr 25 15:00 cost 15:10:20 -rw-r--r-- 1 root root 87 Apr 25 15:00 cost.csv 15:10:20 + sudo chown -R jenkins:jenkins /w/workspace/xfoundry_device-modbus-go_PR-336/archives 15:10:20 + ls -al /w/workspace/xfoundry_device-modbus-go_PR-336/archives 15:10:20 total 16 15:10:20 drwxr-xr-x 3 jenkins jenkins 4096 Apr 25 15:00 . 15:10:20 drwxrwxr-x 11 jenkins jenkins 4096 Apr 25 15:00 .. 15:10:20 drwxr-xr-x 2 jenkins jenkins 4096 Apr 25 15:00 cost 15:10:20 -rw-r--r-- 1 jenkins jenkins 87 Apr 25 15:00 cost.csv [Pipeline] libraryResource [Pipeline] sh 15:10:21 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 15:10:21 ---> package-listing.sh 15:10:21 ++ facter osfamily 15:10:21 ++ tr '[:upper:]' '[:lower:]' 15:10:22 + OS_FAMILY=debian 15:10:22 + workspace=/w/workspace/xfoundry_device-modbus-go_PR-336 15:10:22 + START_PACKAGES=/tmp/packages_start.txt 15:10:22 + END_PACKAGES=/tmp/packages_end.txt 15:10:22 + DIFF_PACKAGES=/tmp/packages_diff.txt 15:10:22 + PACKAGES=/tmp/packages_start.txt 15:10:22 + '[' /w/workspace/xfoundry_device-modbus-go_PR-336 ']' 15:10:22 + PACKAGES=/tmp/packages_end.txt 15:10:22 + case "${OS_FAMILY}" in 15:10:22 + dpkg -l 15:10:22 + grep '^ii' 15:10:22 + '[' -f /tmp/packages_start.txt ']' 15:10:22 + '[' -f /tmp/packages_end.txt ']' 15:10:22 + diff /tmp/packages_start.txt /tmp/packages_end.txt 15:10:22 + '[' /w/workspace/xfoundry_device-modbus-go_PR-336 ']' 15:10:22 + mkdir -p /w/workspace/xfoundry_device-modbus-go_PR-336/archives/ 15:10:22 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/xfoundry_device-modbus-go_PR-336/archives/ [Pipeline] echo 15:10:22 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-336/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 15:10:22 + facter operatingsystem [Pipeline] isUnix [Pipeline] sh 15:10:23 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 15:10:23 . [Pipeline] withDockerContainer 15:10:23 prd-ubuntu20.04-docker-8c-8g-22046 does not seem to be running inside a container 15:10:23 $ 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-336/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-336 -v /w/workspace/xfoundry_device-modbus-go_PR-336:/w/workspace/xfoundry_device-modbus-go_PR-336:rw,z -v /w/workspace/xfoundry_device-modbus-go_PR-336@tmp:/w/workspace/xfoundry_device-modbus-go_PR-336@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 15:10:23 $ docker top 743751b5af565f029a42b4f25ee3ca27d9c2e941cc7f37828819ccf211564fcc -eo pid,comm [Pipeline] { [Pipeline] sh 15:10:23 + touch /tmp/pre-build-complete [Pipeline] sh 15:10:24 + mkdir -p /var/log/sysstat [Pipeline] sh 15:10:24 + ls /var/log/sa-host 15:10:24 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 15:10:24 provisioning config files... 15:10:24 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-336@tmp/config3835733825300106163tmp [Pipeline] { [Pipeline] echo 15:10:24 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 15:10:25 ---> create-netrc.sh [Pipeline] } 15:10:25 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 15:10:25 ---> python-tools-install.sh [Pipeline] echo 15:10:25 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 15:10:25 ---> sudo-logs.sh 15:10:25 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 15:10:25 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 15:10:26 ---> job-cost.sh 15:10:26 lf-activate-venv: SKIPPING 15:10:26 DEBUG: total: 0.2199999988079071 15:10:26 INFO: Retrieving Stack Cost... 15:10:26 INFO: Retrieving Pricing Info for: v3-standard-8 15:10:27 INFO: Archiving Costs [Pipeline] echo 15:10:27 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 15:10:27 ---> logs-deploy.sh 15:10:27 lf-activate-venv: SKIPPING 15:10:27 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-modbus-go/PR-336/1 15:10:27 INFO: archiving workspace using pattern(s): 15:10:28 Archives upload complete. 15:10:28 INFO: archiving logs to Nexus