Pull request #336 updated 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 94a2ad113a353dcdb9697e949bf7886f214fc879 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-ssh10919799467957854376.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-ssh13986290280249298301.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 > git rev-parse --resolve-git-dir /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-336/workspace@libs/edgex-global-pipelines/.git # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Fetching with tags Fetching upstream changes from git@github.com:edgexfoundry/edgex-global-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-336/workspace@libs/edgex-global-pipelines@tmp/jenkins-gitclient-ssh3601200919878163044.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 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-ssh678231673245679732.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 > git rev-parse --resolve-git-dir /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-336/workspace@libs/lf-pipelines/.git # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url git@github.com:lfit/releng-pipelines.git # timeout=10 Fetching without tags Fetching upstream changes from git@github.com:lfit/releng-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-modbus-go/branches/PR-336/workspace@libs/lf-pipelines@tmp/jenkins-gitclient-ssh4552366773123351438.key > git fetch --no-tags --progress -- git@github.com:lfit/releng-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10 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 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 ‘ubuntu20.04-docker-8c-8g’ Running on prd-ubuntu20.04-docker-8c-8g-22084 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 > 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 Merging remotes/origin/main commit 244abab361647dcef607fbcbfbdaea3ae1f72309 into PR head commit 94a2ad113a353dcdb9697e949bf7886f214fc879 Merge succeeded, producing 94a2ad113a353dcdb9697e949bf7886f214fc879 Checking out Revision 94a2ad113a353dcdb9697e949bf7886f214fc879 (PR-336) > git config core.sparsecheckout # timeout=10 > git checkout -f 94a2ad113a353dcdb9697e949bf7886f214fc879 # timeout=10 > git remote # timeout=10 > git config --get remote.origin.url # timeout=10 using GIT_SSH to set credentials SSH Credentials for GitHub > git merge 244abab361647dcef607fbcbfbdaea3ae1f72309 # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 94a2ad113a353dcdb9697e949bf7886f214fc879 # timeout=10 Commit message: "feat(snap): add support for env var injection" > git rev-list --no-walk 3237a4a44b4a52002b410c2dd400a27648297c25 # timeout=10 First time build. Skipping changelog. [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout [2022-04-25T19:46:34.485Z] Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials [2022-04-25T19:46:34.549Z] Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo [2022-04-25T19:46:34.564Z] ========================================================= [2022-04-25T19:46:34.564Z] EdgeX Global Pipelines Version Info [2022-04-25T19:46:34.564Z] ========================================================= [Pipeline] libraryResource [Pipeline] sh [2022-04-25T19:46:35.349Z] ------------------- [2022-04-25T19:46:35.349Z] stable info: [2022-04-25T19:46:35.349Z] ------------------- [2022-04-25T19:46:35.349Z] Commited By: Ernesto Ojeda ernesto.ojeda@intel.com [2022-04-25T19:46:35.349Z] Commit SHA: c72b16708d6eed9a08be464a432ce22db7d90667 [2022-04-25T19:46:35.349Z] Message: update stable to v1.0.221 [2022-04-25T19:46:35.922Z] ------------------- [2022-04-25T19:46:35.922Z] experimental info: [2022-04-25T19:46:35.922Z] ------------------- [2022-04-25T19:46:35.922Z] Commited By: Ernesto Ojeda ernesto.ojeda@intel.com [2022-04-25T19:46:35.922Z] Commit SHA: e334d830fa8e8412d6042b94a77caa8dfa54c97b [2022-04-25T19:46:35.922Z] Message: update experimental to v1.0.223 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo [2022-04-25T19:46:36.067Z] [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-modbus-go-settings [Pipeline] echo [2022-04-25T19:46:36.079Z] [edgeXSetupEnvironment]: set envvar PROJECT = device-modbus-go [Pipeline] echo [2022-04-25T19:46:36.091Z] [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo [2022-04-25T19:46:36.107Z] [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo [2022-04-25T19:46:36.122Z] [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo [2022-04-25T19:46:36.133Z] [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.17 [Pipeline] echo [2022-04-25T19:46:36.148Z] [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo [2022-04-25T19:46:36.166Z] [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo [2022-04-25T19:46:36.176Z] [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo [2022-04-25T19:46:36.190Z] [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo [2022-04-25T19:46:36.202Z] [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo [2022-04-25T19:46:36.215Z] [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-modbus [Pipeline] echo [2022-04-25T19:46:36.232Z] [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo [2022-04-25T19:46:36.252Z] [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo [2022-04-25T19:46:36.271Z] [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo [2022-04-25T19:46:36.288Z] [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo [2022-04-25T19:46:36.306Z] [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo [2022-04-25T19:46:36.319Z] [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo [2022-04-25T19:46:36.333Z] [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo [2022-04-25T19:46:36.345Z] [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo [2022-04-25T19:46:36.361Z] [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo [2022-04-25T19:46:36.377Z] [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo [2022-04-25T19:46:36.393Z] [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo [2022-04-25T19:46:36.411Z] [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo [2022-04-25T19:46:36.431Z] [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo [2022-04-25T19:46:36.449Z] [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo [2022-04-25T19:46:36.467Z] [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-336 [Pipeline] echo [2022-04-25T19:46:36.485Z] [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-336 [Pipeline] echo [2022-04-25T19:46:36.497Z] [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-336 [Pipeline] echo [2022-04-25T19:46:36.509Z] [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 94a2ad113a353dcdb9697e949bf7886f214fc879 [Pipeline] echo [2022-04-25T19:46:36.518Z] [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 94a2ad1 [Pipeline] echo [2022-04-25T19:46:36.526Z] [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider [2022-04-25T19:46:36.569Z] provisioning config files... [2022-04-25T19:46:36.584Z] copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-336@tmp/config7680260321047056951tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh [2022-04-25T19:46:36.893Z] ---> docker-login.sh [2022-04-25T19:46:36.893Z] nexus3.edgexfoundry.org:10001 [2022-04-25T19:46:37.154Z] WARNING! Using --password via the CLI is insecure. Use --password-stdin. [2022-04-25T19:46:37.439Z] WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. [2022-04-25T19:46:37.439Z] Configure a credential helper to remove this warning. See [2022-04-25T19:46:37.439Z] https://docs.docker.com/engine/reference/commandline/login/#credentials-store [2022-04-25T19:46:37.439Z] [2022-04-25T19:46:37.439Z] Login Succeeded [2022-04-25T19:46:37.439Z] nexus3.edgexfoundry.org:10002 [2022-04-25T19:46:37.439Z] WARNING! Using --password via the CLI is insecure. Use --password-stdin. [2022-04-25T19:46:37.439Z] WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. [2022-04-25T19:46:37.439Z] Configure a credential helper to remove this warning. See [2022-04-25T19:46:37.439Z] https://docs.docker.com/engine/reference/commandline/login/#credentials-store [2022-04-25T19:46:37.439Z] [2022-04-25T19:46:37.439Z] Login Succeeded [2022-04-25T19:46:37.439Z] nexus3.edgexfoundry.org:10003 [2022-04-25T19:46:37.704Z] WARNING! Using --password via the CLI is insecure. Use --password-stdin. [2022-04-25T19:46:37.704Z] WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. [2022-04-25T19:46:37.704Z] Configure a credential helper to remove this warning. See [2022-04-25T19:46:37.704Z] https://docs.docker.com/engine/reference/commandline/login/#credentials-store [2022-04-25T19:46:37.704Z] [2022-04-25T19:46:37.704Z] Login Succeeded [2022-04-25T19:46:37.704Z] nexus3.edgexfoundry.org:10004 [2022-04-25T19:46:37.704Z] WARNING! Using --password via the CLI is insecure. Use --password-stdin. [2022-04-25T19:46:37.704Z] WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. [2022-04-25T19:46:37.704Z] Configure a credential helper to remove this warning. See [2022-04-25T19:46:37.704Z] https://docs.docker.com/engine/reference/commandline/login/#credentials-store [2022-04-25T19:46:37.704Z] [2022-04-25T19:46:37.704Z] Login Succeeded [2022-04-25T19:46:37.964Z] docker.io [2022-04-25T19:46:37.964Z] WARNING! Using --password via the CLI is insecure. Use --password-stdin. [2022-04-25T19:46:38.226Z] WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. [2022-04-25T19:46:38.227Z] Configure a credential helper to remove this warning. See [2022-04-25T19:46:38.227Z] https://docs.docker.com/engine/reference/commandline/login/#credentials-store [2022-04-25T19:46:38.227Z] [2022-04-25T19:46:38.227Z] Login Succeeded [2022-04-25T19:46:38.227Z] ---> docker-login.sh ends [Pipeline] } [2022-04-25T19:46:38.236Z] Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh [2022-04-25T19:46:38.623Z] + git rev-list -1 --merges 94a2ad113a353dcdb9697e949bf7886f214fc879~1..94a2ad113a353dcdb9697e949bf7886f214fc879 [Pipeline] echo [2022-04-25T19:46:38.771Z] -----------> git rev-list -1 --merges 94a2ad113a353dcdb9697e949bf7886f214fc879~1..94a2ad113a353dcdb9697e949bf7886f214fc879 94a2ad113a353dcdb9697e949bf7886f214fc879 [false] [Pipeline] sh [2022-04-25T19:46:39.070Z] + git log --format=format:%s -1 94a2ad113a353dcdb9697e949bf7886f214fc879 [Pipeline] echo [2022-04-25T19:46:39.089Z] ========================================================= [2022-04-25T19:46:39.089Z] [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] [2022-04-25T19:46:39.089Z] ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh [2022-04-25T19:46:39.427Z] + git log --format=format:%s -1 94a2ad113a353dcdb9697e949bf7886f214fc879 [Pipeline] echo [2022-04-25T19:46:39.440Z] [semverPrep] GIT_COMMIT: 94a2ad113a353dcdb9697e949bf7886f214fc879, Commit Message: feat(snap): add support for env var injection [Pipeline] echo [2022-04-25T19:46:39.451Z] [semverPrep] This is not a build commit. [Pipeline] sh [2022-04-25T19:46:39.890Z] + grep github.com ecdsa /etc/ssh/ssh_known_hosts [2022-04-25T19:46:39.890Z] + grep -v github /etc/ssh/ssh_known_hosts [2022-04-25T19:46:39.890Z] + [ -e /tmp/ssh_known_hosts ] [2022-04-25T19:46:39.890Z] + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts [2022-04-25T19:46:39.890Z] + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [2022-04-25T19:46:39.890Z] + sudo tee -a /etc/ssh/ssh_known_hosts [2022-04-25T19:46:39.890Z] github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] sh [2022-04-25T19:46:40.309Z] + docker inspect -f . nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [2022-04-25T19:46:40.309Z] [2022-04-25T19:46:40.309Z] Error: No such object: nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] isUnix [Pipeline] sh [2022-04-25T19:46:40.616Z] + docker pull nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [2022-04-25T19:46:40.616Z] latest: Pulling from edgex-devops/git-semver [2022-04-25T19:46:40.616Z] a0d0a0d46f8b: Pulling fs layer [2022-04-25T19:46:40.616Z] 3e5f54012d9b: Pulling fs layer [2022-04-25T19:46:40.616Z] 4c7163046ea9: Pulling fs layer [2022-04-25T19:46:40.616Z] 0c2d73faf560: Pulling fs layer [2022-04-25T19:46:40.616Z] 0c2d73faf560: Waiting [2022-04-25T19:46:40.616Z] 3e5f54012d9b: Download complete [2022-04-25T19:46:40.877Z] a0d0a0d46f8b: Download complete [2022-04-25T19:46:40.877Z] 0c2d73faf560: Verifying Checksum [2022-04-25T19:46:40.877Z] 0c2d73faf560: Download complete [2022-04-25T19:46:40.877Z] 4c7163046ea9: Verifying Checksum [2022-04-25T19:46:40.877Z] 4c7163046ea9: Download complete [2022-04-25T19:46:41.138Z] a0d0a0d46f8b: Pull complete [2022-04-25T19:46:41.138Z] 3e5f54012d9b: Pull complete [2022-04-25T19:46:41.711Z] 4c7163046ea9: Pull complete [2022-04-25T19:46:41.711Z] 0c2d73faf560: Pull complete [2022-04-25T19:46:41.711Z] Digest: sha256:2751de6e655929dcbe46418c7769d9d992331b5b721eb968631a4166222929f9 [2022-04-25T19:46:41.711Z] Status: Downloaded newer image for nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [2022-04-25T19:46:41.711Z] nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] withDockerContainer [2022-04-25T19:46:41.786Z] prd-ubuntu20.04-docker-8c-8g-22084 does not seem to be running inside a container [2022-04-25T19:46:41.813Z] $ 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 ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest cat [2022-04-25T19:46:42.843Z] $ docker top dfc4b67ab748d8feba49ea9657c052ae318c8f29f83e4c64077f42f074356eaf -eo pid,comm [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent [2022-04-25T19:46:42.972Z] [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) [2022-04-25T19:46:42.972Z] [ssh-agent] Looking for ssh-agent implementation... [2022-04-25T19:46:43.108Z] [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) [2022-04-25T19:46:43.103Z] $ docker exec dfc4b67ab748d8feba49ea9657c052ae318c8f29f83e4c64077f42f074356eaf ssh-agent [2022-04-25T19:46:43.245Z] SSH_AUTH_SOCK=/tmp/ssh-XXXXXXAcMGaa/agent.14 [2022-04-25T19:46:43.245Z] SSH_AGENT_PID=21 [2022-04-25T19:46:43.254Z] Running ssh-add (command line suppressed) [2022-04-25T19:46:43.373Z] Identity added: /w/workspace/xfoundry_device-modbus-go_PR-336@tmp/private_key_1308680723350824429.key (/w/workspace/xfoundry_device-modbus-go_PR-336@tmp/private_key_1308680723350824429.key) [2022-04-25T19:46:43.399Z] [ssh-agent] Started. [Pipeline] { [Pipeline] sh [2022-04-25T19:46:43.694Z] + git tag --points-at HEAD [Pipeline] } [2022-04-25T19:46:43.700Z] $ docker exec --env ******** --env ******** dfc4b67ab748d8feba49ea9657c052ae318c8f29f83e4c64077f42f074356eaf ssh-agent -k [2022-04-25T19:46:43.826Z] unset SSH_AUTH_SOCK; [2022-04-25T19:46:43.826Z] unset SSH_AGENT_PID; [2022-04-25T19:46:43.826Z] echo Agent pid 21 killed; [2022-04-25T19:46:43.845Z] [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent [2022-04-25T19:46:43.871Z] [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) [2022-04-25T19:46:43.871Z] [ssh-agent] Looking for ssh-agent implementation... [2022-04-25T19:46:43.991Z] [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) [2022-04-25T19:46:43.985Z] $ docker exec dfc4b67ab748d8feba49ea9657c052ae318c8f29f83e4c64077f42f074356eaf ssh-agent [2022-04-25T19:46:44.122Z] SSH_AUTH_SOCK=/tmp/ssh-XXXXXXfDPKMk/agent.54 [2022-04-25T19:46:44.122Z] SSH_AGENT_PID=61 [2022-04-25T19:46:44.128Z] Running ssh-add (command line suppressed) [2022-04-25T19:46:44.240Z] Identity added: /w/workspace/xfoundry_device-modbus-go_PR-336@tmp/private_key_1468322241057052738.key (/w/workspace/xfoundry_device-modbus-go_PR-336@tmp/private_key_1468322241057052738.key) [2022-04-25T19:46:44.265Z] [ssh-agent] Started. [Pipeline] { [Pipeline] sh [2022-04-25T19:46:44.560Z] + git semver init [2022-04-25T19:46:44.560Z] # -> Open(): unable to determine branch for HEAD [2022-04-25T19:46:44.560Z] # $GIT_DIR = /w/workspace/xfoundry_device-modbus-go_PR-336/.git [2022-04-25T19:46:44.560Z] # $GIT_WORK_TREE = /w/workspace/xfoundry_device-modbus-go_PR-336 [2022-04-25T19:46:44.560Z] # $SEMVER_REMOTE_NAME = origin [2022-04-25T19:46:44.560Z] # $SEMVER_USER_EMAIL = collab-it+edgex@linuxfoundation.org [2022-04-25T19:46:44.560Z] # $SEMVER_USER_NAME = edgex-jenkins [2022-04-25T19:46:44.560Z] # $SEMVER_BRANCH = PR-336 [2022-04-25T19:46:44.560Z] # $SEMVER_TEMP = /tmp/semver-076869501 [2022-04-25T19:46:44.560Z] # git clone --branch semver git@github.com:edgexfoundry/device-modbus-go.git $SEMVER_TEMP [2022-04-25T19:46:45.505Z] # '/tmp/semver-076869501' -> '/w/workspace/xfoundry_device-modbus-go_PR-336/.semver' [2022-04-25T19:46:45.505Z] # -> Force: false [2022-04-25T19:46:45.505Z] # $SEMVER_DIR = /w/workspace/xfoundry_device-modbus-go_PR-336/.semver [Pipeline] } [2022-04-25T19:46:45.513Z] $ docker exec --env ******** --env ******** dfc4b67ab748d8feba49ea9657c052ae318c8f29f83e4c64077f42f074356eaf ssh-agent -k [2022-04-25T19:46:45.629Z] unset SSH_AUTH_SOCK; [2022-04-25T19:46:45.629Z] unset SSH_AGENT_PID; [2022-04-25T19:46:45.630Z] echo Agent pid 61 killed; [2022-04-25T19:46:45.648Z] [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh [2022-04-25T19:46:45.970Z] + git semver [Pipeline] } [2022-04-25T19:46:45.978Z] $ docker stop --time=1 dfc4b67ab748d8feba49ea9657c052ae318c8f29f83e4c64077f42f074356eaf [2022-04-25T19:46:47.365Z] $ docker rm -f dfc4b67ab748d8feba49ea9657c052ae318c8f29f83e4c64077f42f074356eaf [Pipeline] // withDockerContainer [Pipeline] sh [2022-04-25T19:46:47.736Z] + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash [2022-04-25T19:46:47.983Z] Stashed 1 file(s) [Pipeline] echo [2022-04-25T19:46:47.987Z] [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 [2022-04-25T19:46:48.134Z] provisioning config files... [2022-04-25T19:46:48.146Z] copy managed file [device-modbus-go-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-336@tmp/config6499754681906502735tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh [2022-04-25T19:46:48.453Z] ---> docker-login.sh [2022-04-25T19:46:48.453Z] nexus3.edgexfoundry.org:10001 [2022-04-25T19:46:48.453Z] WARNING! Using --password via the CLI is insecure. Use --password-stdin. [2022-04-25T19:46:48.453Z] WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. [2022-04-25T19:46:48.453Z] Configure a credential helper to remove this warning. See [2022-04-25T19:46:48.453Z] https://docs.docker.com/engine/reference/commandline/login/#credentials-store [2022-04-25T19:46:48.453Z] [2022-04-25T19:46:48.453Z] Login Succeeded [2022-04-25T19:46:48.453Z] nexus3.edgexfoundry.org:10002 [2022-04-25T19:46:48.453Z] WARNING! Using --password via the CLI is insecure. Use --password-stdin. [2022-04-25T19:46:48.716Z] WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. [2022-04-25T19:46:48.716Z] Configure a credential helper to remove this warning. See [2022-04-25T19:46:48.716Z] https://docs.docker.com/engine/reference/commandline/login/#credentials-store [2022-04-25T19:46:48.716Z] [2022-04-25T19:46:48.716Z] Login Succeeded [2022-04-25T19:46:48.716Z] nexus3.edgexfoundry.org:10003 [2022-04-25T19:46:48.716Z] WARNING! Using --password via the CLI is insecure. Use --password-stdin. [2022-04-25T19:46:48.716Z] WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. [2022-04-25T19:46:48.716Z] Configure a credential helper to remove this warning. See [2022-04-25T19:46:48.716Z] https://docs.docker.com/engine/reference/commandline/login/#credentials-store [2022-04-25T19:46:48.716Z] [2022-04-25T19:46:48.716Z] Login Succeeded [2022-04-25T19:46:48.716Z] nexus3.edgexfoundry.org:10004 [2022-04-25T19:46:48.716Z] WARNING! Using --password via the CLI is insecure. Use --password-stdin. [2022-04-25T19:46:48.979Z] WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. [2022-04-25T19:46:48.979Z] Configure a credential helper to remove this warning. See [2022-04-25T19:46:48.979Z] https://docs.docker.com/engine/reference/commandline/login/#credentials-store [2022-04-25T19:46:48.979Z] [2022-04-25T19:46:48.979Z] Login Succeeded [2022-04-25T19:46:48.979Z] docker.io [2022-04-25T19:46:48.979Z] WARNING! Using --password via the CLI is insecure. Use --password-stdin. [2022-04-25T19:46:49.241Z] WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. [2022-04-25T19:46:49.241Z] Configure a credential helper to remove this warning. See [2022-04-25T19:46:49.241Z] https://docs.docker.com/engine/reference/commandline/login/#credentials-store [2022-04-25T19:46:49.241Z] [2022-04-25T19:46:49.241Z] Login Succeeded [2022-04-25T19:46:49.241Z] ---> docker-login.sh ends [Pipeline] } [2022-04-25T19:46:49.249Z] Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo [2022-04-25T19:46:49.325Z] [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo [2022-04-25T19:46:49.342Z] ========================================================= [2022-04-25T19:46:49.342Z] [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine] [2022-04-25T19:46:49.342Z] ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh [2022-04-25T19:46:49.658Z] + 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 . [2022-04-25T19:46:49.658Z] Sending build context to Docker daemon 5.871MB [2022-04-25T19:46:49.658Z] Step 1/10 : ARG BASE=golang:1.17-alpine3.15 [2022-04-25T19:46:49.658Z] Step 2/10 : FROM ${BASE} AS builder [2022-04-25T19:46:49.658Z] 1.17-alpine: Pulling from edgex-devops/edgex-golang-base [2022-04-25T19:46:49.658Z] 59bf1c3509f3: Pulling fs layer [2022-04-25T19:46:49.658Z] 666ba61612fd: Pulling fs layer [2022-04-25T19:46:49.658Z] 8ed8ca486205: Pulling fs layer [2022-04-25T19:46:49.658Z] 4fe6c5a15a65: Pulling fs layer [2022-04-25T19:46:49.658Z] 22a0e8bec74d: Pulling fs layer [2022-04-25T19:46:49.658Z] ca2b28591e48: Pulling fs layer [2022-04-25T19:46:49.658Z] a51346096db8: Pulling fs layer [2022-04-25T19:46:49.658Z] daebc70d1ce1: Pulling fs layer [2022-04-25T19:46:49.658Z] 0e18a0eac166: Pulling fs layer [2022-04-25T19:46:49.658Z] 4fe6c5a15a65: Waiting [2022-04-25T19:46:49.658Z] 22a0e8bec74d: Waiting [2022-04-25T19:46:49.658Z] ca2b28591e48: Waiting [2022-04-25T19:46:49.924Z] 8ed8ca486205: Verifying Checksum [2022-04-25T19:46:49.924Z] 8ed8ca486205: Download complete [2022-04-25T19:46:49.924Z] 666ba61612fd: Verifying Checksum [2022-04-25T19:46:49.924Z] 666ba61612fd: Download complete [2022-04-25T19:46:49.924Z] 22a0e8bec74d: Verifying Checksum [2022-04-25T19:46:49.924Z] 22a0e8bec74d: Download complete [2022-04-25T19:46:49.924Z] 59bf1c3509f3: Verifying Checksum [2022-04-25T19:46:49.924Z] 59bf1c3509f3: Download complete [2022-04-25T19:46:49.924Z] ca2b28591e48: Verifying Checksum [2022-04-25T19:46:49.924Z] ca2b28591e48: Download complete [2022-04-25T19:46:49.924Z] a51346096db8: Verifying Checksum [2022-04-25T19:46:49.924Z] a51346096db8: Download complete [2022-04-25T19:46:49.924Z] daebc70d1ce1: Verifying Checksum [2022-04-25T19:46:49.924Z] daebc70d1ce1: Download complete [2022-04-25T19:46:49.924Z] 59bf1c3509f3: Pull complete [2022-04-25T19:46:50.192Z] 666ba61612fd: Pull complete [2022-04-25T19:46:50.192Z] 8ed8ca486205: Pull complete [2022-04-25T19:46:50.456Z] 0e18a0eac166: Verifying Checksum [2022-04-25T19:46:50.456Z] 0e18a0eac166: Download complete [2022-04-25T19:46:50.716Z] 4fe6c5a15a65: Verifying Checksum [2022-04-25T19:46:50.716Z] 4fe6c5a15a65: Download complete [2022-04-25T19:46:54.917Z] 4fe6c5a15a65: Pull complete [2022-04-25T19:46:54.917Z] 22a0e8bec74d: Pull complete [2022-04-25T19:46:54.917Z] ca2b28591e48: Pull complete [2022-04-25T19:46:54.917Z] a51346096db8: Pull complete [2022-04-25T19:46:55.176Z] daebc70d1ce1: Pull complete [2022-04-25T19:46:57.719Z] 0e18a0eac166: Pull complete [2022-04-25T19:46:57.719Z] Digest: sha256:5cf2d0a306c5171eb5b3008c4b83cc7b6044f1808c238cb17927cddb93576120 [2022-04-25T19:46:57.719Z] Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine [2022-04-25T19:46:57.719Z] ---> f018257e8ee9 [2022-04-25T19:46:57.719Z] Step 3/10 : ARG MAKE='make build' [2022-04-25T19:46:59.635Z] ---> Running in fa024f58ecca [2022-04-25T19:46:59.635Z] Removing intermediate container fa024f58ecca [2022-04-25T19:46:59.635Z] ---> eb4aca37ea14 [2022-04-25T19:46:59.635Z] Step 4/10 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories [2022-04-25T19:46:59.635Z] ---> Running in 11f030a16d29 [2022-04-25T19:47:00.578Z] Removing intermediate container 11f030a16d29 [2022-04-25T19:47:00.578Z] ---> 1d269a23bce5 [2022-04-25T19:47:00.578Z] Step 5/10 : RUN apk add --update --no-cache make git openssh gcc libc-dev zeromq-dev libsodium-dev [2022-04-25T19:47:00.841Z] ---> Running in 8e4f9dd4e059 [2022-04-25T19:47:01.102Z] fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz [2022-04-25T19:47:02.046Z] fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz [2022-04-25T19:47:02.307Z] (1/8) Installing openssh-keygen (8.8_p1-r1) [2022-04-25T19:47:02.307Z] (2/8) Installing libedit (20210910.3.1-r0) [2022-04-25T19:47:02.307Z] (3/8) Installing openssh-client-common (8.8_p1-r1) [2022-04-25T19:47:02.569Z] (4/8) Installing openssh-client-default (8.8_p1-r1) [2022-04-25T19:47:02.569Z] (5/8) Installing openssh-sftp-server (8.8_p1-r1) [2022-04-25T19:47:02.569Z] (6/8) Installing openssh-server-common (8.8_p1-r1) [2022-04-25T19:47:02.831Z] (7/8) Installing openssh-server (8.8_p1-r1) [2022-04-25T19:47:02.831Z] (8/8) Installing openssh (8.8_p1-r1) [2022-04-25T19:47:02.831Z] Executing busybox-1.34.1-r3.trigger [2022-04-25T19:47:02.831Z] OK: 226 MiB in 60 packages [2022-04-25T19:47:03.096Z] Still waiting to schedule task [2022-04-25T19:47:03.097Z] Waiting for next available executor on ‘ubuntu20.04-docker-arm64-4c-16g’ [2022-04-25T19:47:03.406Z] Removing intermediate container 8e4f9dd4e059 [2022-04-25T19:47:03.406Z] ---> b3c7772b4f66 [2022-04-25T19:47:03.406Z] Step 6/10 : WORKDIR /device-modbus-go [2022-04-25T19:47:03.406Z] ---> Running in 7fb7f6fadf53 [2022-04-25T19:47:03.666Z] Removing intermediate container 7fb7f6fadf53 [2022-04-25T19:47:03.666Z] ---> 032f6ecb5a85 [2022-04-25T19:47:03.666Z] Step 7/10 : COPY go.mod vendor* ./ [2022-04-25T19:47:03.666Z] ---> 0a8219120975 [2022-04-25T19:47:03.666Z] Step 8/10 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." [2022-04-25T19:47:03.925Z] ---> Running in 32c618d3f12b [2022-04-25T19:47:22.057Z] Removing intermediate container 32c618d3f12b [2022-04-25T19:47:22.057Z] ---> c2f26fce982f [2022-04-25T19:47:22.057Z] Step 9/10 : COPY . . [2022-04-25T19:47:22.057Z] ---> 1b4c9c26ce67 [2022-04-25T19:47:22.057Z] Step 10/10 : RUN ${MAKE} [2022-04-25T19:47:22.057Z] ---> Running in 314e8cdefa0b [2022-04-25T19:47:22.057Z] noop [2022-04-25T19:47:22.057Z] Removing intermediate container 314e8cdefa0b [2022-04-25T19:47:22.057Z] ---> 58e16309d0d4 [2022-04-25T19:47:22.057Z] Successfully built 58e16309d0d4 [2022-04-25T19:47:22.057Z] Successfully tagged ci-base-image-x86_64:latest [Pipeline] isUnix [Pipeline] sh [2022-04-25T19:47:22.362Z] + docker inspect -f . ci-base-image-x86_64 [2022-04-25T19:47:22.363Z] . [Pipeline] withDockerContainer [2022-04-25T19:47:22.441Z] prd-ubuntu20.04-docker-8c-8g-22084 does not seem to be running inside a container [2022-04-25T19:47:22.485Z] $ 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 ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat [2022-04-25T19:47:23.152Z] $ docker top a448dce8953d220d54b3cfd8fc789c0360094667c9bf6a225332750297c130ae -eo pid,comm [Pipeline] { [Pipeline] sh [2022-04-25T19:47:23.513Z] + go version [2022-04-25T19:47:23.513Z] go version go1.17.6 linux/amd64 [Pipeline] } [2022-04-25T19:47:23.532Z] $ docker stop --time=1 a448dce8953d220d54b3cfd8fc789c0360094667c9bf6a225332750297c130ae [2022-04-25T19:47:24.906Z] $ docker rm -f a448dce8953d220d54b3cfd8fc789c0360094667c9bf6a225332750297c130ae [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh [2022-04-25T19:47:25.363Z] + docker inspect -f . ci-base-image-x86_64 [2022-04-25T19:47:25.363Z] . [Pipeline] withDockerContainer [2022-04-25T19:47:25.498Z] prd-ubuntu20.04-docker-8c-8g-22084 does not seem to be running inside a container [2022-04-25T19:47:25.534Z] $ 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 ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat [2022-04-25T19:47:26.012Z] $ docker top bd8838d62dfabb7c1a3b1de60ba2a0e96abb5023b50b6827d32271612319a2b9 -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh [2022-04-25T19:47:26.384Z] + make test [2022-04-25T19:47:26.384Z] CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out [2022-04-25T19:47:26.644Z] ? github.com/edgexfoundry/device-modbus-go [no test files] [2022-04-25T19:47:36.632Z] ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] [2022-04-25T19:47:36.632Z] ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.012s coverage: 46.4% of statements [2022-04-25T19:47:44.763Z] CGO_ENABLED=1 GO111MODULE=on go vet ./... [2022-04-25T19:47:48.060Z] gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") [2022-04-25T19:47:48.060Z] [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] [2022-04-25T19:47:48.060Z] ./bin/test-attribution-txt.sh [Pipeline] echo [2022-04-25T19:47:48.645Z] [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } [2022-04-25T19:47:48.667Z] $ docker stop --time=1 bd8838d62dfabb7c1a3b1de60ba2a0e96abb5023b50b6827d32271612319a2b9 [2022-04-25T19:47:51.340Z] $ docker rm -f bd8838d62dfabb7c1a3b1de60ba2a0e96abb5023b50b6827d32271612319a2b9 [Pipeline] // withDockerContainer [Pipeline] sh [2022-04-25T19:47:51.805Z] + sudo chown -R jenkins:jenkins . [Pipeline] stash [2022-04-25T19:47:51.852Z] Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh [2022-04-25T19:47:52.841Z] + sudo chown -R jenkins:jenkins . [Pipeline] sh [2022-04-25T19:47:53.130Z] + ls -al . [2022-04-25T19:47:53.130Z] total 180 [2022-04-25T19:47:53.130Z] drwxrwxr-x 10 jenkins jenkins 4096 Apr 25 19:47 . [2022-04-25T19:47:53.130Z] drwxrwxr-x 4 jenkins jenkins 4096 Apr 25 19:46 .. [2022-04-25T19:47:53.130Z] -rw-rw-r-- 1 jenkins jenkins 140 Apr 25 19:46 .dockerignore [2022-04-25T19:47:53.130Z] drwxrwxr-x 8 jenkins jenkins 4096 Apr 25 19:46 .git [2022-04-25T19:47:53.130Z] drwxrwxr-x 3 jenkins jenkins 4096 Apr 25 19:46 .github [2022-04-25T19:47:53.130Z] -rw-rw-r-- 1 jenkins jenkins 331 Apr 25 19:46 .gitignore [2022-04-25T19:47:53.130Z] -rw-rw-r-- 1 jenkins jenkins 41 Apr 25 19:46 .golangci.yml [2022-04-25T19:47:53.130Z] drwx------ 3 jenkins jenkins 4096 Apr 25 19:46 .semver [2022-04-25T19:47:53.130Z] -rw-rw-r-- 1 jenkins jenkins 9244 Apr 25 19:46 Attribution.txt [2022-04-25T19:47:53.130Z] -rw-rw-r-- 1 jenkins jenkins 6038 Apr 25 19:46 CHANGELOG.md [2022-04-25T19:47:53.130Z] -rw-rw-r-- 1 jenkins jenkins 1546 Apr 25 19:46 Dockerfile [2022-04-25T19:47:53.130Z] -rw-rw-r-- 1 jenkins jenkins 677 Apr 25 19:46 GOVERNANCE.md [2022-04-25T19:47:53.130Z] -rw-rw-r-- 1 jenkins jenkins 680 Apr 25 19:46 Jenkinsfile [2022-04-25T19:47:53.130Z] -rw-rw-r-- 1 jenkins jenkins 11340 Apr 25 19:46 LICENSE [2022-04-25T19:47:53.130Z] -rw-rw-r-- 1 jenkins jenkins 1905 Apr 25 19:46 Makefile [2022-04-25T19:47:53.130Z] -rw-rw-r-- 1 jenkins jenkins 622 Apr 25 19:46 OWNERS.md [2022-04-25T19:47:53.130Z] -rw-rw-r-- 1 jenkins jenkins 3680 Apr 25 19:46 README.md [2022-04-25T19:47:53.130Z] -rw-rw-r-- 1 jenkins jenkins 5 Apr 25 19:46 VERSION [2022-04-25T19:47:53.130Z] drwxrwxr-x 2 jenkins jenkins 4096 Apr 25 19:46 bin [2022-04-25T19:47:53.130Z] drwxrwxr-x 3 jenkins jenkins 4096 Apr 25 19:46 cmd [2022-04-25T19:47:53.130Z] -rw-r--r-- 1 jenkins jenkins 24065 Apr 25 19:47 coverage.out [2022-04-25T19:47:53.130Z] -rw-rw-r-- 1 jenkins jenkins 3306 Apr 25 19:46 go.mod [2022-04-25T19:47:53.130Z] -rw-rw-r-- 1 jenkins jenkins 34903 Apr 25 19:46 go.sum [2022-04-25T19:47:53.130Z] drwxrwxr-x 3 jenkins jenkins 4096 Apr 25 19:46 internal [2022-04-25T19:47:53.130Z] drwxrwxr-x 2 jenkins jenkins 4096 Apr 25 19:46 simulator [2022-04-25T19:47:53.130Z] drwxrwxr-x 4 jenkins jenkins 4096 Apr 25 19:46 snap [2022-04-25T19:47:53.130Z] -rw-rw-r-- 1 jenkins jenkins 229 Apr 25 19:46 version.go [Pipeline] isUnix [Pipeline] sh [2022-04-25T19:47:53.427Z] + 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=94a2ad113a353dcdb9697e949bf7886f214fc879 --label arch=amd64 --label version=0.0.0 . [2022-04-25T19:47:53.427Z] Sending build context to Docker daemon 5.896MB [2022-04-25T19:47:53.428Z] Step 1/23 : ARG BASE=golang:1.17-alpine3.15 [2022-04-25T19:47:53.428Z] Step 2/23 : FROM ${BASE} AS builder [2022-04-25T19:47:53.428Z] ---> 58e16309d0d4 [2022-04-25T19:47:53.428Z] Step 3/23 : ARG MAKE='make build' [2022-04-25T19:47:53.428Z] ---> Running in 532769975fe5 [2022-04-25T19:47:53.687Z] Removing intermediate container 532769975fe5 [2022-04-25T19:47:53.687Z] ---> 06bfc42960d7 [2022-04-25T19:47:53.687Z] Step 4/23 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories [2022-04-25T19:47:53.687Z] ---> Running in 07df71d08d1f [2022-04-25T19:47:54.261Z] Removing intermediate container 07df71d08d1f [2022-04-25T19:47:54.261Z] ---> bacec20eadf3 [2022-04-25T19:47:54.261Z] Step 5/23 : RUN apk add --update --no-cache make git openssh gcc libc-dev zeromq-dev libsodium-dev [2022-04-25T19:47:54.521Z] ---> Running in 0b9e7e864627 [2022-04-25T19:47:54.782Z] fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz [2022-04-25T19:47:55.725Z] fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz [2022-04-25T19:47:55.988Z] OK: 226 MiB in 60 packages [2022-04-25T19:47:56.249Z] Removing intermediate container 0b9e7e864627 [2022-04-25T19:47:56.249Z] ---> 2c80b880c1d3 [2022-04-25T19:47:56.249Z] Step 6/23 : WORKDIR /device-modbus-go [2022-04-25T19:47:56.249Z] ---> Running in 7a7fe7eff84b [2022-04-25T19:47:56.249Z] Removing intermediate container 7a7fe7eff84b [2022-04-25T19:47:56.249Z] ---> a69926668b56 [2022-04-25T19:47:56.249Z] Step 7/23 : COPY go.mod vendor* ./ [2022-04-25T19:47:56.513Z] ---> cc2bc692a6bd [2022-04-25T19:47:56.513Z] Step 8/23 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." [2022-04-25T19:47:56.513Z] ---> Running in dc0d7125a89b [2022-04-25T19:47:57.477Z] Removing intermediate container dc0d7125a89b [2022-04-25T19:47:57.477Z] ---> dc631581166e [2022-04-25T19:47:57.477Z] Step 9/23 : COPY . . [2022-04-25T19:47:57.739Z] ---> d85dbdfe0e5d [2022-04-25T19:47:57.739Z] Step 10/23 : RUN ${MAKE} [2022-04-25T19:47:57.739Z] ---> Running in 9268a3f45cb4 [2022-04-25T19:47:58.000Z] 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 [2022-04-25T19:48:19.955Z] Removing intermediate container 9268a3f45cb4 [2022-04-25T19:48:19.955Z] ---> de2bb158b3f9 [2022-04-25T19:48:19.955Z] Step 11/23 : FROM alpine:3.14 [2022-04-25T19:48:19.955Z] 3.14: Pulling from library/alpine [2022-04-25T19:48:19.955Z] 8663204ce13b: Pulling fs layer [2022-04-25T19:48:19.955Z] 8663204ce13b: Verifying Checksum [2022-04-25T19:48:19.955Z] 8663204ce13b: Download complete [2022-04-25T19:48:20.214Z] 8663204ce13b: Pull complete [2022-04-25T19:48:20.214Z] Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 [2022-04-25T19:48:20.214Z] Status: Downloaded newer image for alpine:3.14 [2022-04-25T19:48:20.214Z] ---> e04c818066af [2022-04-25T19:48:20.214Z] Step 12/23 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IoTech Ltd' [2022-04-25T19:48:20.214Z] ---> Running in 80d940d298f7 [2022-04-25T19:48:20.214Z] Removing intermediate container 80d940d298f7 [2022-04-25T19:48:20.214Z] ---> e5a02095a27e [2022-04-25T19:48:20.214Z] Step 13/23 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories [2022-04-25T19:48:20.474Z] ---> Running in 23b403303457 [2022-04-25T19:48:21.045Z] Removing intermediate container 23b403303457 [2022-04-25T19:48:21.045Z] ---> 5c95e64473e7 [2022-04-25T19:48:21.045Z] Step 14/23 : RUN apk add --update --no-cache zeromq dumb-init [2022-04-25T19:48:21.045Z] ---> Running in 310b53e2a8b3 [2022-04-25T19:48:21.305Z] fetch https://nl.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz [2022-04-25T19:48:22.247Z] fetch https://nl.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz [2022-04-25T19:48:22.508Z] (1/6) Installing dumb-init (1.2.5-r1) [2022-04-25T19:48:22.508Z] (2/6) Installing libgcc (10.3.1_git20210424-r2) [2022-04-25T19:48:22.767Z] (3/6) Installing libsodium (1.0.18-r0) [2022-04-25T19:48:22.767Z] (4/6) Installing libstdc++ (10.3.1_git20210424-r2) [2022-04-25T19:48:22.767Z] (5/6) Installing libzmq (4.3.4-r0) [2022-04-25T19:48:23.028Z] (6/6) Installing zeromq (4.3.4-r0) [2022-04-25T19:48:23.028Z] Executing busybox-1.33.1-r7.trigger [2022-04-25T19:48:23.028Z] OK: 8 MiB in 20 packages [2022-04-25T19:48:23.601Z] Removing intermediate container 310b53e2a8b3 [2022-04-25T19:48:23.601Z] ---> fefc4c48ddb9 [2022-04-25T19:48:23.601Z] Step 15/23 : COPY --from=builder /device-modbus-go/cmd / [2022-04-25T19:48:24.172Z] ---> ec0196192bac [2022-04-25T19:48:24.172Z] Step 16/23 : COPY --from=builder /device-modbus-go/LICENSE / [2022-04-25T19:48:24.172Z] ---> 1d887bfbbd1a [2022-04-25T19:48:24.172Z] Step 17/23 : COPY --from=builder /device-modbus-go/Attribution.txt / [2022-04-25T19:48:24.433Z] ---> 0e2d8ca57fb5 [2022-04-25T19:48:24.433Z] Step 18/23 : EXPOSE 59901 [2022-04-25T19:48:24.433Z] ---> Running in b20c085a540e [2022-04-25T19:48:24.433Z] Removing intermediate container b20c085a540e [2022-04-25T19:48:24.433Z] ---> acf8b61f0b0e [2022-04-25T19:48:24.433Z] Step 19/23 : ENTRYPOINT ["/device-modbus"] [2022-04-25T19:48:24.697Z] ---> Running in 058d87841386 [2022-04-25T19:48:24.697Z] Removing intermediate container 058d87841386 [2022-04-25T19:48:24.697Z] ---> 44e72017addc [2022-04-25T19:48:24.697Z] Step 20/23 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry", "--confdir=/res"] [2022-04-25T19:48:24.697Z] ---> Running in 17a13b09659a [2022-04-25T19:48:24.956Z] Removing intermediate container 17a13b09659a [2022-04-25T19:48:24.956Z] ---> 9ada59b5df82 [2022-04-25T19:48:24.956Z] Step 21/23 : LABEL arch=amd64 [2022-04-25T19:48:24.956Z] ---> Running in ebd6adeedf96 [2022-04-25T19:48:24.956Z] Removing intermediate container ebd6adeedf96 [2022-04-25T19:48:24.956Z] ---> 6fd6dac6a123 [2022-04-25T19:48:24.956Z] Step 22/23 : LABEL git_sha=94a2ad113a353dcdb9697e949bf7886f214fc879 [2022-04-25T19:48:24.956Z] ---> Running in 94381f2c702b [2022-04-25T19:48:25.217Z] Removing intermediate container 94381f2c702b [2022-04-25T19:48:25.217Z] ---> 96967ef827c8 [2022-04-25T19:48:25.217Z] Step 23/23 : LABEL version=0.0.0 [2022-04-25T19:48:25.217Z] ---> Running in 7b2e4277b062 [2022-04-25T19:48:25.217Z] Removing intermediate container 7b2e4277b062 [2022-04-25T19:48:25.217Z] ---> 8768e3821750 [2022-04-25T19:48:25.217Z] [Warning] One or more build-args [ARCH] were not consumed [2022-04-25T19:48:25.217Z] Successfully built 8768e3821750 [2022-04-25T19:48:25.217Z] 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 [2022-04-25T19:48:25.635Z] + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [2022-04-25T19:48:25.635Z] [2022-04-25T19:48:25.635Z] Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] sh [2022-04-25T19:48:25.938Z] + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [2022-04-25T19:48:25.938Z] latest: Pulling from edgex-lftools-log-publisher [2022-04-25T19:48:25.938Z] 5eb5b503b376: Pulling fs layer [2022-04-25T19:48:25.938Z] 5c69ac0246d0: Pulling fs layer [2022-04-25T19:48:25.938Z] ec43610c2a17: Pulling fs layer [2022-04-25T19:48:25.938Z] 3a2ae6a8a46f: Pulling fs layer [2022-04-25T19:48:25.938Z] 33b1e0a273af: Pulling fs layer [2022-04-25T19:48:25.938Z] 5d3b04190fa2: Pulling fs layer [2022-04-25T19:48:25.938Z] 33b1e0a273af: Waiting [2022-04-25T19:48:25.938Z] 3a2ae6a8a46f: Waiting [2022-04-25T19:48:25.938Z] 2f39f015ded8: Pulling fs layer [2022-04-25T19:48:25.938Z] 2f39f015ded8: Waiting [2022-04-25T19:48:25.938Z] 5c69ac0246d0: Verifying Checksum [2022-04-25T19:48:25.938Z] 5c69ac0246d0: Download complete [2022-04-25T19:48:25.938Z] 3a2ae6a8a46f: Download complete [2022-04-25T19:48:25.938Z] ec43610c2a17: Verifying Checksum [2022-04-25T19:48:25.938Z] ec43610c2a17: Download complete [2022-04-25T19:48:25.938Z] 33b1e0a273af: Verifying Checksum [2022-04-25T19:48:25.938Z] 33b1e0a273af: Download complete [2022-04-25T19:48:25.938Z] 5d3b04190fa2: Verifying Checksum [2022-04-25T19:48:25.938Z] 5d3b04190fa2: Download complete [2022-04-25T19:48:26.198Z] 5eb5b503b376: Verifying Checksum [2022-04-25T19:48:26.198Z] 5eb5b503b376: Download complete [2022-04-25T19:48:26.768Z] 2f39f015ded8: Download complete [2022-04-25T19:48:27.709Z] 5eb5b503b376: Pull complete [2022-04-25T19:48:27.709Z] 5c69ac0246d0: Pull complete [2022-04-25T19:48:28.277Z] ec43610c2a17: Pull complete [2022-04-25T19:48:28.277Z] 3a2ae6a8a46f: Pull complete [2022-04-25T19:48:28.537Z] 33b1e0a273af: Pull complete [2022-04-25T19:48:28.537Z] 5d3b04190fa2: Pull complete [2022-04-25T19:48:33.819Z] 2f39f015ded8: Pull complete [2022-04-25T19:48:33.819Z] Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 [2022-04-25T19:48:33.819Z] Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [2022-04-25T19:48:33.819Z] nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] withDockerContainer [2022-04-25T19:48:33.889Z] prd-ubuntu20.04-docker-8c-8g-22084 does not seem to be running inside a container [2022-04-25T19:48:33.932Z] $ 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 ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat [2022-04-25T19:48:36.617Z] $ docker top acfd59bbab4822f919ce8cf1d03579db9374e9f7c403b9b503bae5b831b8195d -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh [2022-04-25T19:48:37.067Z] ---> job-cost.sh [2022-04-25T19:48:37.067Z] lf-activate-venv: SKIPPING [2022-04-25T19:48:37.067Z] INFO: No Stack... [2022-04-25T19:48:37.326Z] INFO: Retrieving Pricing Info for: v3-standard-8 [2022-04-25T19:48:37.896Z] INFO: Archiving Costs [Pipeline] sh [2022-04-25T19:48:38.188Z] + cat /w/workspace/xfoundry_device-modbus-go_PR-336/archives/cost.csv [2022-04-25T19:48:38.188Z] + cut -d, -f6 [Pipeline] lock [2022-04-25T19:48:38.203Z] Trying to acquire lock on [jenkins-edgexfoundry-device-modbus-go-PR-336-2-stack-cost] [2022-04-25T19:48:38.209Z] Resource [jenkins-edgexfoundry-device-modbus-go-PR-336-2-stack-cost] did not exist. Created. [2022-04-25T19:48:38.209Z] Lock acquired on [jenkins-edgexfoundry-device-modbus-go-PR-336-2-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh [2022-04-25T19:48:38.516Z] + echo total: 0.2199999988079071 [Pipeline] stash [2022-04-25T19:48:38.549Z] Stashed 1 file(s) [Pipeline] } [2022-04-25T19:48:38.554Z] Lock released on resource [jenkins-edgexfoundry-device-modbus-go-PR-336-2-stack-cost] [Pipeline] // lock [Pipeline] } [2022-04-25T19:48:38.581Z] $ docker stop --time=1 acfd59bbab4822f919ce8cf1d03579db9374e9f7c403b9b503bae5b831b8195d [2022-04-25T19:48:39.787Z] $ docker rm -f acfd59bbab4822f919ce8cf1d03579db9374e9f7c403b9b503bae5b831b8195d [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } [2022-04-25T19:50:28.518Z] Running on prd-ubuntu20.04-docker-arm64-4c-16g-22086 in /w/workspace/xfoundry_device-modbus-go_PR-336 [Pipeline] { [Pipeline] ws [2022-04-25T19:50:28.532Z] Running in /w/workspace/device-modbus-go/2 [Pipeline] { [Pipeline] checkout [2022-04-25T19:50:28.857Z] Selected Git installation does not exist. Using Default [2022-04-25T19:50:28.857Z] The recommended git tool is: NONE [2022-04-25T19:50:36.448Z] using credential edgex-jenkins-ssh [2022-04-25T19:50:36.468Z] Cloning the remote Git repository [2022-04-25T19:50:36.543Z] Cloning repository git@github.com:edgexfoundry/device-modbus-go.git [2022-04-25T19:50:36.713Z] > git init /w/workspace/device-modbus-go/2 # timeout=10 [2022-04-25T19:50:36.926Z] Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git [2022-04-25T19:50:36.927Z] > git --version # timeout=10 [2022-04-25T19:50:36.966Z] > git --version # 'git version 2.25.1' [2022-04-25T19:50:36.968Z] using GIT_SSH to set credentials SSH Credentials for GitHub [2022-04-25T19:50:37.047Z] > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-modbus-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 [2022-04-25T19:50:39.099Z] Merging remotes/origin/main commit 244abab361647dcef607fbcbfbdaea3ae1f72309 into PR head commit 94a2ad113a353dcdb9697e949bf7886f214fc879 [2022-04-25T19:50:39.430Z] Merge succeeded, producing 94a2ad113a353dcdb9697e949bf7886f214fc879 [2022-04-25T19:50:39.431Z] Checking out Revision 94a2ad113a353dcdb9697e949bf7886f214fc879 (PR-336) [2022-04-25T19:50:38.345Z] > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 [2022-04-25T19:50:38.370Z] > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 [2022-04-25T19:50:38.403Z] > git config remote.origin.url git@github.com:edgexfoundry/device-modbus-go.git # timeout=10 [2022-04-25T19:50:38.456Z] Fetching upstream changes from git@github.com:edgexfoundry/device-modbus-go.git [2022-04-25T19:50:38.457Z] using GIT_SSH to set credentials SSH Credentials for GitHub [2022-04-25T19:50:38.479Z] > 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 [2022-04-25T19:50:39.130Z] > git config core.sparsecheckout # timeout=10 [2022-04-25T19:50:39.159Z] > git checkout -f 94a2ad113a353dcdb9697e949bf7886f214fc879 # timeout=10 [2022-04-25T19:50:39.289Z] > git remote # timeout=10 [2022-04-25T19:50:39.316Z] > git config --get remote.origin.url # timeout=10 [2022-04-25T19:50:39.342Z] using GIT_SSH to set credentials SSH Credentials for GitHub [2022-04-25T19:50:39.360Z] > git merge 244abab361647dcef607fbcbfbdaea3ae1f72309 # timeout=10 [2022-04-25T19:50:39.396Z] > git rev-parse HEAD^{commit} # timeout=10 [2022-04-25T19:50:39.443Z] > git config core.sparsecheckout # timeout=10 [2022-04-25T19:50:39.461Z] > git checkout -f 94a2ad113a353dcdb9697e949bf7886f214fc879 # timeout=10 [2022-04-25T19:50:44.097Z] Commit message: "feat(snap): add support for env var injection" [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh [2022-04-25T19:50:45.035Z] + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json [2022-04-25T19:50:45.035Z] % Total % Received % Xferd Average Speed Time Time Time Current [2022-04-25T19:50:45.035Z] Dload Upload Total Spent Left Speed [2022-04-25T19:50:45.035Z] 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 11843 100 11843 0 0 77405 0 --:--:-- --:--:-- --:--:-- 77405 [Pipeline] sh [2022-04-25T19:50:45.606Z] + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh [2022-04-25T19:50:45.966Z] + sudo tee /etc/docker/daemon.new [2022-04-25T19:50:45.966Z] + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json [2022-04-25T19:50:45.966Z] { [2022-04-25T19:50:45.966Z] "registry-mirrors": [ [2022-04-25T19:50:45.966Z] "https://nexus3.edgexfoundry.org:10001" [2022-04-25T19:50:45.966Z] ], [2022-04-25T19:50:45.966Z] "bip": "10.250.0.254/24", [2022-04-25T19:50:45.966Z] "hosts": [ [2022-04-25T19:50:45.966Z] "tcp://0.0.0.0:5555", [2022-04-25T19:50:45.966Z] "unix:///var/run/docker.sock" [2022-04-25T19:50:45.966Z] ], [2022-04-25T19:50:45.966Z] "mtu": 1458, [2022-04-25T19:50:45.966Z] "selinux-enabled": true, [2022-04-25T19:50:45.966Z] "seccomp-profile": "/etc/docker/seccomp.json" [2022-04-25T19:50:45.966Z] } [Pipeline] sh [2022-04-25T19:50:46.334Z] + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh [2022-04-25T19:50:46.704Z] + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider [2022-04-25T19:51:05.073Z] provisioning config files... [2022-04-25T19:51:05.105Z] copy managed file [device-modbus-go-settings] to file:/w/workspace/device-modbus-go/2@tmp/config581518029534080116tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh [2022-04-25T19:51:05.481Z] ---> docker-login.sh [2022-04-25T19:51:05.481Z] nexus3.edgexfoundry.org:10001 [2022-04-25T19:51:06.081Z] WARNING! Using --password via the CLI is insecure. Use --password-stdin. [2022-04-25T19:51:06.357Z] WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. [2022-04-25T19:51:06.357Z] Configure a credential helper to remove this warning. See [2022-04-25T19:51:06.357Z] https://docs.docker.com/engine/reference/commandline/login/#credentials-store [2022-04-25T19:51:06.357Z] [2022-04-25T19:51:06.357Z] Login Succeeded [2022-04-25T19:51:06.357Z] nexus3.edgexfoundry.org:10002 [2022-04-25T19:51:06.965Z] WARNING! Using --password via the CLI is insecure. Use --password-stdin. [2022-04-25T19:51:06.965Z] WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. [2022-04-25T19:51:06.965Z] Configure a credential helper to remove this warning. See [2022-04-25T19:51:06.965Z] https://docs.docker.com/engine/reference/commandline/login/#credentials-store [2022-04-25T19:51:06.965Z] [2022-04-25T19:51:06.965Z] Login Succeeded [2022-04-25T19:51:06.965Z] nexus3.edgexfoundry.org:10003 [2022-04-25T19:51:07.239Z] WARNING! Using --password via the CLI is insecure. Use --password-stdin. [2022-04-25T19:51:07.530Z] WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. [2022-04-25T19:51:07.530Z] Configure a credential helper to remove this warning. See [2022-04-25T19:51:07.530Z] https://docs.docker.com/engine/reference/commandline/login/#credentials-store [2022-04-25T19:51:07.530Z] [2022-04-25T19:51:07.530Z] Login Succeeded [2022-04-25T19:51:07.530Z] nexus3.edgexfoundry.org:10004 [2022-04-25T19:51:07.802Z] WARNING! Using --password via the CLI is insecure. Use --password-stdin. [2022-04-25T19:51:08.074Z] WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. [2022-04-25T19:51:08.074Z] Configure a credential helper to remove this warning. See [2022-04-25T19:51:08.074Z] https://docs.docker.com/engine/reference/commandline/login/#credentials-store [2022-04-25T19:51:08.074Z] [2022-04-25T19:51:08.074Z] Login Succeeded [2022-04-25T19:51:08.074Z] docker.io [2022-04-25T19:51:08.348Z] WARNING! Using --password via the CLI is insecure. Use --password-stdin. [2022-04-25T19:51:08.620Z] WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. [2022-04-25T19:51:08.620Z] Configure a credential helper to remove this warning. See [2022-04-25T19:51:08.620Z] https://docs.docker.com/engine/reference/commandline/login/#credentials-store [2022-04-25T19:51:08.620Z] [2022-04-25T19:51:08.620Z] Login Succeeded [2022-04-25T19:51:08.620Z] ---> docker-login.sh ends [Pipeline] } [2022-04-25T19:51:08.639Z] Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo [2022-04-25T19:51:09.098Z] [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo [2022-04-25T19:51:09.112Z] ========================================================= [2022-04-25T19:51:09.112Z] [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine] [2022-04-25T19:51:09.112Z] ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh [2022-04-25T19:51:09.491Z] + 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 . [2022-04-25T19:51:09.783Z] Sending build context to Docker daemon 3.098MB [2022-04-25T19:51:09.783Z] Step 1/10 : ARG BASE=golang:1.17-alpine3.15 [2022-04-25T19:51:09.783Z] Step 2/10 : FROM ${BASE} AS builder [2022-04-25T19:51:10.062Z] 1.17-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 [2022-04-25T19:51:10.062Z] 9b3977197b4f: Pulling fs layer [2022-04-25T19:51:10.062Z] 1a89e8eeedd5: Pulling fs layer [2022-04-25T19:51:10.062Z] 94645a83ff95: Pulling fs layer [2022-04-25T19:51:10.062Z] 3f3a8bcf1eab: Pulling fs layer [2022-04-25T19:51:10.062Z] 0c92f367c5e7: Pulling fs layer [2022-04-25T19:51:10.062Z] 3096ccb668a1: Pulling fs layer [2022-04-25T19:51:10.062Z] e8cf19c19ddd: Pulling fs layer [2022-04-25T19:51:10.062Z] a4caa8a26152: Pulling fs layer [2022-04-25T19:51:10.062Z] 0c92f367c5e7: Waiting [2022-04-25T19:51:10.062Z] 3096ccb668a1: Waiting [2022-04-25T19:51:10.062Z] 3f3a8bcf1eab: Waiting [2022-04-25T19:51:10.062Z] e8cf19c19ddd: Waiting [2022-04-25T19:51:10.062Z] a4caa8a26152: Waiting [2022-04-25T19:51:10.062Z] 94645a83ff95: Verifying Checksum [2022-04-25T19:51:10.062Z] 94645a83ff95: Download complete [2022-04-25T19:51:10.062Z] 1a89e8eeedd5: Verifying Checksum [2022-04-25T19:51:10.062Z] 1a89e8eeedd5: Download complete [2022-04-25T19:51:10.062Z] 0c92f367c5e7: Verifying Checksum [2022-04-25T19:51:10.062Z] 0c92f367c5e7: Download complete [2022-04-25T19:51:10.062Z] 3096ccb668a1: Verifying Checksum [2022-04-25T19:51:10.062Z] 3096ccb668a1: Download complete [2022-04-25T19:51:10.339Z] 9b3977197b4f: Verifying Checksum [2022-04-25T19:51:10.339Z] 9b3977197b4f: Download complete [2022-04-25T19:51:10.339Z] e8cf19c19ddd: Verifying Checksum [2022-04-25T19:51:10.339Z] e8cf19c19ddd: Download complete [2022-04-25T19:51:10.940Z] 9b3977197b4f: Pull complete [2022-04-25T19:51:11.548Z] 1a89e8eeedd5: Pull complete [2022-04-25T19:51:11.826Z] 94645a83ff95: Pull complete [2022-04-25T19:51:12.103Z] a4caa8a26152: Verifying Checksum [2022-04-25T19:51:12.103Z] a4caa8a26152: Download complete [2022-04-25T19:51:12.702Z] 3f3a8bcf1eab: Verifying Checksum [2022-04-25T19:51:12.702Z] 3f3a8bcf1eab: Download complete [2022-04-25T19:51:25.103Z] 3f3a8bcf1eab: Pull complete [2022-04-25T19:51:25.103Z] 0c92f367c5e7: Pull complete [2022-04-25T19:51:25.103Z] 3096ccb668a1: Pull complete [2022-04-25T19:51:25.103Z] e8cf19c19ddd: Pull complete [2022-04-25T19:51:31.853Z] a4caa8a26152: Pull complete [2022-04-25T19:51:31.853Z] Digest: sha256:b3ad895ecde34a7521bb8912598475bc58d052e1c2c58d00df7f0fe54a102a46 [2022-04-25T19:51:31.853Z] Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine [2022-04-25T19:51:31.853Z] ---> 725f1c02e7f9 [2022-04-25T19:51:31.853Z] Step 3/10 : ARG MAKE='make build' [2022-04-25T19:51:32.844Z] ---> Running in 871439393c43 [2022-04-25T19:51:33.119Z] Removing intermediate container 871439393c43 [2022-04-25T19:51:33.119Z] ---> 47789aaa716d [2022-04-25T19:51:33.119Z] Step 4/10 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories [2022-04-25T19:51:33.395Z] ---> Running in 9bd4dfcccec8 [2022-04-25T19:51:36.818Z] Removing intermediate container 9bd4dfcccec8 [2022-04-25T19:51:36.818Z] ---> 1c7825b1c33a [2022-04-25T19:51:36.818Z] Step 5/10 : RUN apk add --update --no-cache make git openssh gcc libc-dev zeromq-dev libsodium-dev [2022-04-25T19:51:36.818Z] ---> Running in 083b93969c53 [2022-04-25T19:51:37.422Z] fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz [2022-04-25T19:51:38.411Z] fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz [2022-04-25T19:51:39.852Z] (1/8) Installing openssh-keygen (8.8_p1-r1) [2022-04-25T19:51:39.852Z] (2/8) Installing libedit (20210910.3.1-r0) [2022-04-25T19:51:39.852Z] (3/8) Installing openssh-client-common (8.8_p1-r1) [2022-04-25T19:51:40.129Z] (4/8) Installing openssh-client-default (8.8_p1-r1) [2022-04-25T19:51:40.129Z] (5/8) Installing openssh-sftp-server (8.8_p1-r1) [2022-04-25T19:51:40.129Z] (6/8) Installing openssh-server-common (8.8_p1-r1) [2022-04-25T19:51:40.405Z] (7/8) Installing openssh-server (8.8_p1-r1) [2022-04-25T19:51:40.405Z] (8/8) Installing openssh (8.8_p1-r1) [2022-04-25T19:51:40.405Z] Executing busybox-1.34.1-r3.trigger [2022-04-25T19:51:40.683Z] OK: 226 MiB in 60 packages [2022-04-25T19:51:41.682Z] Removing intermediate container 083b93969c53 [2022-04-25T19:51:41.682Z] ---> a22782cbf669 [2022-04-25T19:51:41.682Z] Step 6/10 : WORKDIR /device-modbus-go [2022-04-25T19:51:41.682Z] ---> Running in a223b2fba03c [2022-04-25T19:51:42.295Z] Removing intermediate container a223b2fba03c [2022-04-25T19:51:42.295Z] ---> 5bcb03c73246 [2022-04-25T19:51:42.295Z] Step 7/10 : COPY go.mod vendor* ./ [2022-04-25T19:51:42.910Z] ---> b5fb504c809b [2022-04-25T19:51:42.910Z] Step 8/10 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." [2022-04-25T19:51:42.910Z] ---> Running in cd470aff19f3 [2022-04-25T19:52:39.522Z] Removing intermediate container cd470aff19f3 [2022-04-25T19:52:39.522Z] ---> a0b0b2583216 [2022-04-25T19:52:39.522Z] Step 9/10 : COPY . . [2022-04-25T19:52:39.522Z] ---> a7f731951f15 [2022-04-25T19:52:39.522Z] Step 10/10 : RUN ${MAKE} [2022-04-25T19:52:39.522Z] ---> Running in 2512952e27ea [2022-04-25T19:52:39.522Z] noop [2022-04-25T19:52:39.522Z] Removing intermediate container 2512952e27ea [2022-04-25T19:52:39.522Z] ---> 92bdff044ccd [2022-04-25T19:52:39.522Z] Successfully built 92bdff044ccd [2022-04-25T19:52:39.522Z] Successfully tagged ci-base-image-arm64:latest [Pipeline] isUnix [Pipeline] sh [2022-04-25T19:52:39.891Z] + docker inspect -f . ci-base-image-arm64 [2022-04-25T19:52:39.891Z] . [Pipeline] withDockerContainer [2022-04-25T19:52:40.193Z] prd-ubuntu20.04-docker-arm64-4c-16g-22086 does not seem to be running inside a container [2022-04-25T19:52:40.297Z] $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-modbus-go/2 -v /w/workspace/device-modbus-go/2:/w/workspace/device-modbus-go/2:rw,z -v /w/workspace/device-modbus-go/2@tmp:/w/workspace/device-modbus-go/2@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat [2022-04-25T19:52:41.934Z] $ docker top 7979e28831c613b993a0a69bc60421f547c76edceb1feab560d736f0c9d443f7 -eo pid,comm [Pipeline] { [Pipeline] sh [2022-04-25T19:52:42.929Z] + go version [2022-04-25T19:52:42.929Z] go version go1.17.6 linux/arm64 [Pipeline] } [2022-04-25T19:52:42.962Z] $ docker stop --time=1 7979e28831c613b993a0a69bc60421f547c76edceb1feab560d736f0c9d443f7 [2022-04-25T19:52:44.651Z] $ docker rm -f 7979e28831c613b993a0a69bc60421f547c76edceb1feab560d736f0c9d443f7 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh [2022-04-25T19:52:45.330Z] + docker inspect -f . ci-base-image-arm64 [2022-04-25T19:52:45.330Z] . [Pipeline] withDockerContainer [2022-04-25T19:52:45.573Z] prd-ubuntu20.04-docker-arm64-4c-16g-22086 does not seem to be running inside a container [2022-04-25T19:52:45.671Z] $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-modbus-go/2 -v /w/workspace/device-modbus-go/2:/w/workspace/device-modbus-go/2:rw,z -v /w/workspace/device-modbus-go/2@tmp:/w/workspace/device-modbus-go/2@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat [2022-04-25T19:52:47.176Z] $ docker top bd2065e4ec20c1748e20f3868c831558e6c1a7577d33e4f36824e191e3a11109 -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh [2022-04-25T19:52:48.188Z] + make test [2022-04-25T19:52:48.188Z] CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out [2022-04-25T19:52:50.201Z] ? github.com/edgexfoundry/device-modbus-go [no test files] [2022-04-25T19:54:27.239Z] ? github.com/edgexfoundry/device-modbus-go/cmd [no test files] [2022-04-25T19:54:27.239Z] ok github.com/edgexfoundry/device-modbus-go/internal/driver 0.094s coverage: 46.4% of statements [2022-04-25T19:54:27.239Z] WARNING: Linting skipped (not on x86_64 or linter not installed) [2022-04-25T19:54:27.239Z] CGO_ENABLED=1 GO111MODULE=on go vet ./... [2022-04-25T19:54:59.697Z] gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") [2022-04-25T19:54:59.697Z] [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] [2022-04-25T19:54:59.697Z] ./bin/test-attribution-txt.sh [Pipeline] echo [2022-04-25T19:55:00.329Z] [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } [2022-04-25T19:55:00.349Z] $ docker stop --time=1 bd2065e4ec20c1748e20f3868c831558e6c1a7577d33e4f36824e191e3a11109 [2022-04-25T19:55:02.300Z] $ docker rm -f bd2065e4ec20c1748e20f3868c831558e6c1a7577d33e4f36824e191e3a11109 [Pipeline] // withDockerContainer [Pipeline] sh [2022-04-25T19:55:03.464Z] + sudo chown -R jenkins:jenkins . [Pipeline] stash [2022-04-25T19:55:03.494Z] Warning: overwriting stash ‘coverage-report’ [2022-04-25T19:55:04.225Z] Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh [2022-04-25T19:55:04.632Z] + sudo chown -R jenkins:jenkins . [Pipeline] sh [2022-04-25T19:55:04.986Z] + ls -al . [2022-04-25T19:55:04.986Z] total 176 [2022-04-25T19:55:04.986Z] drwxrwxr-x 9 jenkins jenkins 4096 Apr 25 19:55 . [2022-04-25T19:55:04.986Z] drwxrwxr-x 4 jenkins jenkins 4096 Apr 25 19:50 .. [2022-04-25T19:55:04.986Z] -rw-rw-r-- 1 jenkins jenkins 140 Apr 25 19:50 .dockerignore [2022-04-25T19:55:04.986Z] drwxrwxr-x 8 jenkins jenkins 4096 Apr 25 19:50 .git [2022-04-25T19:55:04.986Z] drwxrwxr-x 3 jenkins jenkins 4096 Apr 25 19:50 .github [2022-04-25T19:55:04.986Z] -rw-rw-r-- 1 jenkins jenkins 331 Apr 25 19:50 .gitignore [2022-04-25T19:55:04.986Z] -rw-rw-r-- 1 jenkins jenkins 41 Apr 25 19:50 .golangci.yml [2022-04-25T19:55:04.986Z] -rw-rw-r-- 1 jenkins jenkins 9244 Apr 25 19:50 Attribution.txt [2022-04-25T19:55:04.986Z] -rw-rw-r-- 1 jenkins jenkins 6038 Apr 25 19:50 CHANGELOG.md [2022-04-25T19:55:04.986Z] -rw-rw-r-- 1 jenkins jenkins 1546 Apr 25 19:50 Dockerfile [2022-04-25T19:55:04.986Z] -rw-rw-r-- 1 jenkins jenkins 677 Apr 25 19:50 GOVERNANCE.md [2022-04-25T19:55:04.986Z] -rw-rw-r-- 1 jenkins jenkins 680 Apr 25 19:50 Jenkinsfile [2022-04-25T19:55:04.986Z] -rw-rw-r-- 1 jenkins jenkins 11340 Apr 25 19:50 LICENSE [2022-04-25T19:55:04.986Z] -rw-rw-r-- 1 jenkins jenkins 1905 Apr 25 19:50 Makefile [2022-04-25T19:55:04.986Z] -rw-rw-r-- 1 jenkins jenkins 622 Apr 25 19:50 OWNERS.md [2022-04-25T19:55:04.986Z] -rw-rw-r-- 1 jenkins jenkins 3680 Apr 25 19:50 README.md [2022-04-25T19:55:04.986Z] -rw-rw-r-- 1 jenkins jenkins 5 Apr 25 19:46 VERSION [2022-04-25T19:55:04.986Z] drwxrwxr-x 2 jenkins jenkins 4096 Apr 25 19:50 bin [2022-04-25T19:55:04.986Z] drwxrwxr-x 3 jenkins jenkins 4096 Apr 25 19:50 cmd [2022-04-25T19:55:04.986Z] -rw-r--r-- 1 jenkins jenkins 24065 Apr 25 19:54 coverage.out [2022-04-25T19:55:04.986Z] -rw-rw-r-- 1 jenkins jenkins 3306 Apr 25 19:50 go.mod [2022-04-25T19:55:04.986Z] -rw-rw-r-- 1 jenkins jenkins 34903 Apr 25 19:50 go.sum [2022-04-25T19:55:04.986Z] drwxrwxr-x 3 jenkins jenkins 4096 Apr 25 19:50 internal [2022-04-25T19:55:04.986Z] drwxrwxr-x 2 jenkins jenkins 4096 Apr 25 19:50 simulator [2022-04-25T19:55:04.986Z] drwxrwxr-x 4 jenkins jenkins 4096 Apr 25 19:50 snap [2022-04-25T19:55:04.986Z] -rw-rw-r-- 1 jenkins jenkins 229 Apr 25 19:50 version.go [Pipeline] isUnix [Pipeline] sh [2022-04-25T19:55:05.346Z] + 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=94a2ad113a353dcdb9697e949bf7886f214fc879 --label arch=arm64 --label version=0.0.0 . [2022-04-25T19:55:05.947Z] Sending build context to Docker daemon 3.123MB [2022-04-25T19:55:05.947Z] Step 1/23 : ARG BASE=golang:1.17-alpine3.15 [2022-04-25T19:55:05.947Z] Step 2/23 : FROM ${BASE} AS builder [2022-04-25T19:55:05.947Z] ---> 92bdff044ccd [2022-04-25T19:55:05.947Z] Step 3/23 : ARG MAKE='make build' [2022-04-25T19:55:05.947Z] ---> Running in 8b6f9a4cbeff [2022-04-25T19:55:06.222Z] Removing intermediate container 8b6f9a4cbeff [2022-04-25T19:55:06.222Z] ---> 8328fe0e3eb1 [2022-04-25T19:55:06.222Z] Step 4/23 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories [2022-04-25T19:55:06.499Z] ---> Running in 2047522e2b18 [2022-04-25T19:55:08.498Z] Removing intermediate container 2047522e2b18 [2022-04-25T19:55:08.498Z] ---> b72965e019b0 [2022-04-25T19:55:08.498Z] Step 5/23 : RUN apk add --update --no-cache make git openssh gcc libc-dev zeromq-dev libsodium-dev [2022-04-25T19:55:08.498Z] ---> Running in 7fdebd48aac0 [2022-04-25T19:55:09.946Z] fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz [2022-04-25T19:55:10.550Z] fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz [2022-04-25T19:55:12.099Z] OK: 226 MiB in 60 packages [2022-04-25T19:55:12.713Z] Removing intermediate container 7fdebd48aac0 [2022-04-25T19:55:12.713Z] ---> d8fb5283e1da [2022-04-25T19:55:12.713Z] Step 6/23 : WORKDIR /device-modbus-go [2022-04-25T19:55:12.989Z] ---> Running in e8cb5ff932c1 [2022-04-25T19:55:13.268Z] Removing intermediate container e8cb5ff932c1 [2022-04-25T19:55:13.268Z] ---> 0a684ffd3913 [2022-04-25T19:55:13.268Z] Step 7/23 : COPY go.mod vendor* ./ [2022-04-25T19:55:13.877Z] ---> d81ffe5f3076 [2022-04-25T19:55:13.877Z] Step 8/23 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." [2022-04-25T19:55:14.162Z] ---> Running in 5cbd105873cb [2022-04-25T19:55:16.158Z] Removing intermediate container 5cbd105873cb [2022-04-25T19:55:16.158Z] ---> 6e2507df76c7 [2022-04-25T19:55:16.158Z] Step 9/23 : COPY . . [2022-04-25T19:55:17.187Z] ---> cfbab147bf3f [2022-04-25T19:55:17.187Z] Step 10/23 : RUN ${MAKE} [2022-04-25T19:55:17.475Z] ---> Running in 773173387e1f [2022-04-25T19:55:18.473Z] 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 [2022-04-25T19:57:55.501Z] Removing intermediate container 773173387e1f [2022-04-25T19:57:55.501Z] ---> a17d8c22d679 [2022-04-25T19:57:55.501Z] Step 11/23 : FROM alpine:3.14 [2022-04-25T19:57:55.501Z] 3.14: Pulling from library/alpine [2022-04-25T19:57:55.501Z] 455c02918c45: Pulling fs layer [2022-04-25T19:57:55.501Z] 455c02918c45: Verifying Checksum [2022-04-25T19:57:55.501Z] 455c02918c45: Pull complete [2022-04-25T19:57:55.501Z] Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 [2022-04-25T19:57:55.501Z] Status: Downloaded newer image for alpine:3.14 [2022-04-25T19:57:55.501Z] ---> ac73e934f311 [2022-04-25T19:57:55.501Z] Step 12/23 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019-2021: IoTech Ltd' [2022-04-25T19:57:55.501Z] ---> Running in 1ba04c0897ad [2022-04-25T19:57:55.501Z] Removing intermediate container 1ba04c0897ad [2022-04-25T19:57:55.501Z] ---> 47846c272c03 [2022-04-25T19:57:55.501Z] Step 13/23 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories [2022-04-25T19:57:55.501Z] ---> Running in 9317bfa50a8c [2022-04-25T19:57:56.951Z] Removing intermediate container 9317bfa50a8c [2022-04-25T19:57:56.951Z] ---> 507d753f6b54 [2022-04-25T19:57:56.951Z] Step 14/23 : RUN apk add --update --no-cache zeromq dumb-init [2022-04-25T19:57:56.951Z] ---> Running in 5c2ed4c116e2 [2022-04-25T19:57:58.404Z] fetch https://nl.alpinelinux.org/alpine/v3.14/main/aarch64/APKINDEX.tar.gz [2022-04-25T19:57:59.018Z] fetch https://nl.alpinelinux.org/alpine/v3.14/community/aarch64/APKINDEX.tar.gz [2022-04-25T19:58:00.487Z] (1/6) Installing dumb-init (1.2.5-r1) [2022-04-25T19:58:00.487Z] (2/6) Installing libgcc (10.3.1_git20210424-r2) [2022-04-25T19:58:00.487Z] (3/6) Installing libsodium (1.0.18-r0) [2022-04-25T19:58:00.487Z] (4/6) Installing libstdc++ (10.3.1_git20210424-r2) [2022-04-25T19:58:00.771Z] (5/6) Installing libzmq (4.3.4-r0) [2022-04-25T19:58:00.771Z] (6/6) Installing zeromq (4.3.4-r0) [2022-04-25T19:58:00.771Z] Executing busybox-1.33.1-r7.trigger [2022-04-25T19:58:00.771Z] OK: 8 MiB in 20 packages [2022-04-25T19:58:02.228Z] Removing intermediate container 5c2ed4c116e2 [2022-04-25T19:58:02.228Z] ---> 88ef98876db2 [2022-04-25T19:58:02.228Z] Step 15/23 : COPY --from=builder /device-modbus-go/cmd / [2022-04-25T19:58:03.679Z] ---> c0247a5b9d10 [2022-04-25T19:58:03.679Z] Step 16/23 : COPY --from=builder /device-modbus-go/LICENSE / [2022-04-25T19:58:04.296Z] ---> 2391f56ca80e [2022-04-25T19:58:04.297Z] Step 17/23 : COPY --from=builder /device-modbus-go/Attribution.txt / [2022-04-25T19:58:04.907Z] ---> 89ee426f9437 [2022-04-25T19:58:04.907Z] Step 18/23 : EXPOSE 59901 [2022-04-25T19:58:04.907Z] ---> Running in b4a4f713a5bd [2022-04-25T19:58:05.186Z] Removing intermediate container b4a4f713a5bd [2022-04-25T19:58:05.186Z] ---> 1c1589f1eafc [2022-04-25T19:58:05.186Z] Step 19/23 : ENTRYPOINT ["/device-modbus"] [2022-04-25T19:58:05.463Z] ---> Running in 3f8da16f8875 [2022-04-25T19:58:05.742Z] Removing intermediate container 3f8da16f8875 [2022-04-25T19:58:05.742Z] ---> d8bac06c110a [2022-04-25T19:58:05.742Z] Step 20/23 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry", "--confdir=/res"] [2022-04-25T19:58:05.742Z] ---> Running in c8838a322565 [2022-04-25T19:58:06.351Z] Removing intermediate container c8838a322565 [2022-04-25T19:58:06.351Z] ---> 468afc4d7b34 [2022-04-25T19:58:06.351Z] Step 21/23 : LABEL arch=arm64 [2022-04-25T19:58:06.351Z] ---> Running in d13152d79e78 [2022-04-25T19:58:06.626Z] Removing intermediate container d13152d79e78 [2022-04-25T19:58:06.626Z] ---> a07628688c64 [2022-04-25T19:58:06.626Z] Step 22/23 : LABEL git_sha=94a2ad113a353dcdb9697e949bf7886f214fc879 [2022-04-25T19:58:06.626Z] ---> Running in 972b37cea9a2 [2022-04-25T19:58:06.904Z] Removing intermediate container 972b37cea9a2 [2022-04-25T19:58:06.904Z] ---> aec236dee9c2 [2022-04-25T19:58:06.904Z] Step 23/23 : LABEL version=0.0.0 [2022-04-25T19:58:07.181Z] ---> Running in 60bbb9e2e237 [2022-04-25T19:58:07.457Z] Removing intermediate container 60bbb9e2e237 [2022-04-25T19:58:07.457Z] ---> d1e96f065464 [2022-04-25T19:58:07.457Z] [Warning] One or more build-args [ARCH] were not consumed [2022-04-25T19:58:07.457Z] Successfully built d1e96f065464 [2022-04-25T19:58:07.457Z] 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 [2022-04-25T19:58:07.908Z] + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [2022-04-25T19:58:07.908Z] [2022-04-25T19:58:07.908Z] Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] sh [2022-04-25T19:58:08.269Z] + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [2022-04-25T19:58:08.552Z] arm64: Pulling from edgex-lftools-log-publisher [2022-04-25T19:58:08.552Z] 8998bd30e6a1: Pulling fs layer [2022-04-25T19:58:08.552Z] 04944245beec: Pulling fs layer [2022-04-25T19:58:08.552Z] 699f458cf7ca: Pulling fs layer [2022-04-25T19:58:08.552Z] 765212b225bb: Pulling fs layer [2022-04-25T19:58:08.552Z] f23df028b6ca: Pulling fs layer [2022-04-25T19:58:08.552Z] d65c8cfc05b1: Pulling fs layer [2022-04-25T19:58:08.552Z] 2437ff75d9bd: Pulling fs layer [2022-04-25T19:58:08.552Z] 765212b225bb: Waiting [2022-04-25T19:58:08.552Z] f23df028b6ca: Waiting [2022-04-25T19:58:08.552Z] d65c8cfc05b1: Waiting [2022-04-25T19:58:08.552Z] 04944245beec: Verifying Checksum [2022-04-25T19:58:08.552Z] 04944245beec: Download complete [2022-04-25T19:58:08.552Z] 765212b225bb: Verifying Checksum [2022-04-25T19:58:08.552Z] 765212b225bb: Download complete [2022-04-25T19:58:08.552Z] f23df028b6ca: Verifying Checksum [2022-04-25T19:58:08.552Z] f23df028b6ca: Download complete [2022-04-25T19:58:08.836Z] d65c8cfc05b1: Verifying Checksum [2022-04-25T19:58:08.836Z] d65c8cfc05b1: Download complete [2022-04-25T19:58:08.836Z] 699f458cf7ca: Verifying Checksum [2022-04-25T19:58:08.836Z] 699f458cf7ca: Download complete [2022-04-25T19:58:09.438Z] 8998bd30e6a1: Verifying Checksum [2022-04-25T19:58:09.438Z] 8998bd30e6a1: Download complete [2022-04-25T19:58:11.441Z] 2437ff75d9bd: Verifying Checksum [2022-04-25T19:58:11.441Z] 2437ff75d9bd: Download complete [2022-04-25T19:58:14.090Z] 8998bd30e6a1: Pull complete [2022-04-25T19:58:14.367Z] 04944245beec: Pull complete [2022-04-25T19:58:15.812Z] 699f458cf7ca: Pull complete [2022-04-25T19:58:16.090Z] 765212b225bb: Pull complete [2022-04-25T19:58:17.077Z] f23df028b6ca: Pull complete [2022-04-25T19:58:17.077Z] d65c8cfc05b1: Pull complete [2022-04-25T19:58:32.185Z] 2437ff75d9bd: Pull complete [2022-04-25T19:58:32.185Z] Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da [2022-04-25T19:58:32.185Z] Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [2022-04-25T19:58:32.185Z] nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] withDockerContainer [2022-04-25T19:58:32.455Z] prd-ubuntu20.04-docker-arm64-4c-16g-22086 does not seem to be running inside a container [2022-04-25T19:58:32.568Z] $ 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/2 -v /w/workspace/device-modbus-go/2:/w/workspace/device-modbus-go/2:rw,z -v /w/workspace/device-modbus-go/2@tmp:/w/workspace/device-modbus-go/2@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat [2022-04-25T19:58:35.606Z] $ docker top a5ead5241346ecf7759814b22241ab28cacf81ec662b74c5bd62e61a93589bf4 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh [2022-04-25T19:58:36.568Z] ---> job-cost.sh [2022-04-25T19:58:36.568Z] lf-activate-venv: SKIPPING [2022-04-25T19:58:36.568Z] INFO: No Stack... [2022-04-25T19:58:37.169Z] INFO: Retrieving Pricing Info for: v3-standard-4 [2022-04-25T19:58:38.157Z] INFO: Archiving Costs [Pipeline] sh [2022-04-25T19:58:38.850Z] + cat /w/workspace/device-modbus-go/2/archives/cost.csv [2022-04-25T19:58:38.850Z] + cut -d, -f6 [Pipeline] lock [2022-04-25T19:58:38.943Z] Trying to acquire lock on [jenkins-edgexfoundry-device-modbus-go-PR-336-2-stack-cost] [2022-04-25T19:58:38.949Z] Resource [jenkins-edgexfoundry-device-modbus-go-PR-336-2-stack-cost] did not exist. Created. [2022-04-25T19:58:38.949Z] Lock acquired on [jenkins-edgexfoundry-device-modbus-go-PR-336-2-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh [2022-04-25T19:58:39.659Z] /w/workspace/device-modbus-go/2@tmp/durable-00394e71/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh [2022-04-25T19:58:40.362Z] + echo total: 0.10999999940395355 [Pipeline] stash [2022-04-25T19:58:40.393Z] Warning: overwriting stash ‘stack-cost’ [2022-04-25T19:58:40.450Z] Stashed 1 file(s) [Pipeline] } [2022-04-25T19:58:40.459Z] Lock released on resource [jenkins-edgexfoundry-device-modbus-go-PR-336-2-stack-cost] [Pipeline] // lock [Pipeline] } [2022-04-25T19:58:40.484Z] $ docker stop --time=1 a5ead5241346ecf7759814b22241ab28cacf81ec662b74c5bd62e61a93589bf4 [2022-04-25T19:58:42.024Z] $ docker rm -f a5ead5241346ecf7759814b22241ab28cacf81ec662b74c5bd62e61a93589bf4 [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 [2022-04-25T19:58:42.590Z] provisioning config files... [2022-04-25T19:58:42.604Z] copy managed file [device-modbus-go-codecov-token] to file:/w/workspace/xfoundry_device-modbus-go_PR-336@tmp/config4952791819591429351tmp [Pipeline] { [Pipeline] sh [2022-04-25T19:58:42.899Z] + set +x [2022-04-25T19:58:42.899Z] + curl -s https://codecov.io/bash [2022-04-25T19:58:42.899Z] + bash -s -- [2022-04-25T19:58:42.899Z] [2022-04-25T19:58:42.899Z] _____ _ [2022-04-25T19:58:42.899Z] / ____| | | [2022-04-25T19:58:42.899Z] | | ___ __| | ___ ___ _____ __ [2022-04-25T19:58:42.899Z] | | / _ \ / _` |/ _ \/ __/ _ \ \ / / [2022-04-25T19:58:42.899Z] | |___| (_) | (_| | __/ (_| (_) \ V / [2022-04-25T19:58:42.899Z] \_____\___/ \__,_|\___|\___\___/ \_/ [2022-04-25T19:58:42.899Z] Bash-1.0.6 [2022-04-25T19:58:42.899Z] [2022-04-25T19:58:42.899Z] [2022-04-25T19:58:42.899Z] ==> git version 2.25.1 found [2022-04-25T19:58:42.899Z] ==> 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 [2022-04-25T19:58:42.899Z] Release-Date: 2020-01-08 [2022-04-25T19:58:42.899Z] Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp [2022-04-25T19:58:42.899Z] Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets [2022-04-25T19:58:42.899Z] ==> Jenkins CI detected. [2022-04-25T19:58:42.899Z] current dir:  /w/workspace/xfoundry_device-modbus-go_PR-336 [2022-04-25T19:58:42.899Z] project root: . [2022-04-25T19:58:42.899Z] --> token set from env [2022-04-25T19:58:42.899Z] Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml [2022-04-25T19:58:42.899Z] ==> Running gcov in . (disable via -X gcov) [2022-04-25T19:58:42.899Z] ==> Python coveragepy not found [2022-04-25T19:58:42.899Z] ==> Searching for coverage reports in: [2022-04-25T19:58:42.899Z] + . [2022-04-25T19:58:42.899Z] -> Found 1 reports [2022-04-25T19:58:42.899Z] ==> Detecting git/mercurial file structure [2022-04-25T19:58:42.899Z] ==> Reading reports [2022-04-25T19:58:42.899Z] + ./coverage.out bytes=24065 [2022-04-25T19:58:42.899Z] ==> Appending adjustments [2022-04-25T19:58:42.899Z] https://docs.codecov.io/docs/fixing-reports [2022-04-25T19:58:43.160Z] + Found adjustments [2022-04-25T19:58:43.160Z] ==> Gzipping contents [2022-04-25T19:58:43.160Z] 4.0K /tmp/codecov.nqBfii.gz [2022-04-25T19:58:43.160Z] ==> Uploading reports [2022-04-25T19:58:43.160Z] url: https://codecov.io [2022-04-25T19:58:43.160Z] query: branch=PR-336&commit=94a2ad113a353dcdb9697e949bf7886f214fc879&build=2&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-modbus-go%2Fjob%2FPR-336%2F2%2F&name=&tag=&slug=edgexfoundry%2Fdevice-modbus-go&service=jenkins&flags=&pr=336&job=&cmd_args= [2022-04-25T19:58:43.160Z] -> Pinging Codecov [2022-04-25T19:58:43.160Z] 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=94a2ad113a353dcdb9697e949bf7886f214fc879&build=2&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-modbus-go%2Fjob%2FPR-336%2F2%2F&name=&tag=&slug=edgexfoundry%2Fdevice-modbus-go&service=jenkins&flags=&pr=336&job=&cmd_args= [2022-04-25T19:58:43.419Z] -> Uploading to [2022-04-25T19:58:43.419Z] https://storage.googleapis.com/codecov/v4/raw/2022-04-25/55DBCA73C666E3227836607328DD7E49/94a2ad113a353dcdb9697e949bf7886f214fc879/dc26b214-4191-441a-ad28-db3c031311fd.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20220425%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20220425T195843Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=286acb3fc6a69072441a7da393bc85f1b76f877267a611030cc84a46e1c76f66 [2022-04-25T19:58:43.419Z] % Total % Received % Xferd Average Speed Time Time Time Current [2022-04-25T19:58:43.419Z] Dload Upload Total Spent Left Speed [2022-04-25T19:58:43.419Z] 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 4012 0 0 100 4012 0 19570 --:--:-- --:--:-- --:--:-- 19570 [2022-04-25T19:58:43.419Z] -> Reports have been successfully queued for processing at https://codecov.io/github/edgexfoundry/device-modbus-go/commit/94a2ad113a353dcdb9697e949bf7886f214fc879 [Pipeline] } [2022-04-25T19:58:43.425Z] 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 [2022-04-25T19:58:44.215Z] + [ -d /w/workspace/xfoundry_device-modbus-go_PR-336/archives ] [2022-04-25T19:58:44.215Z] + ls -al /w/workspace/xfoundry_device-modbus-go_PR-336/archives [2022-04-25T19:58:44.215Z] total 16 [2022-04-25T19:58:44.215Z] drwxr-xr-x 3 root root 4096 Apr 25 19:48 . [2022-04-25T19:58:44.215Z] drwxrwxr-x 11 jenkins jenkins 4096 Apr 25 19:48 .. [2022-04-25T19:58:44.215Z] drwxr-xr-x 2 root root 4096 Apr 25 19:48 cost [2022-04-25T19:58:44.215Z] -rw-r--r-- 1 root root 87 Apr 25 19:48 cost.csv [2022-04-25T19:58:44.215Z] + sudo chown -R jenkins:jenkins /w/workspace/xfoundry_device-modbus-go_PR-336/archives [2022-04-25T19:58:44.215Z] + ls -al /w/workspace/xfoundry_device-modbus-go_PR-336/archives [2022-04-25T19:58:44.215Z] total 16 [2022-04-25T19:58:44.215Z] drwxr-xr-x 3 jenkins jenkins 4096 Apr 25 19:48 . [2022-04-25T19:58:44.215Z] drwxrwxr-x 11 jenkins jenkins 4096 Apr 25 19:48 .. [2022-04-25T19:58:44.215Z] drwxr-xr-x 2 jenkins jenkins 4096 Apr 25 19:48 cost [2022-04-25T19:58:44.215Z] -rw-r--r-- 1 jenkins jenkins 87 Apr 25 19:48 cost.csv [Pipeline] libraryResource [Pipeline] sh [2022-04-25T19:58:44.508Z] ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh [2022-04-25T19:58:45.384Z] ---> package-listing.sh [2022-04-25T19:58:45.384Z] ++ facter osfamily [2022-04-25T19:58:45.384Z] ++ tr '[:upper:]' '[:lower:]' [2022-04-25T19:58:45.645Z] + OS_FAMILY=debian [2022-04-25T19:58:45.645Z] + workspace=/w/workspace/xfoundry_device-modbus-go_PR-336 [2022-04-25T19:58:45.645Z] + START_PACKAGES=/tmp/packages_start.txt [2022-04-25T19:58:45.645Z] + END_PACKAGES=/tmp/packages_end.txt [2022-04-25T19:58:45.645Z] + DIFF_PACKAGES=/tmp/packages_diff.txt [2022-04-25T19:58:45.645Z] + PACKAGES=/tmp/packages_start.txt [2022-04-25T19:58:45.645Z] + '[' /w/workspace/xfoundry_device-modbus-go_PR-336 ']' [2022-04-25T19:58:45.645Z] + PACKAGES=/tmp/packages_end.txt [2022-04-25T19:58:45.645Z] + case "${OS_FAMILY}" in [2022-04-25T19:58:45.645Z] + dpkg -l [2022-04-25T19:58:45.645Z] + grep '^ii' [2022-04-25T19:58:45.645Z] + '[' -f /tmp/packages_start.txt ']' [2022-04-25T19:58:45.645Z] + '[' -f /tmp/packages_end.txt ']' [2022-04-25T19:58:45.645Z] + diff /tmp/packages_start.txt /tmp/packages_end.txt [2022-04-25T19:58:45.645Z] + '[' /w/workspace/xfoundry_device-modbus-go_PR-336 ']' [2022-04-25T19:58:45.645Z] + mkdir -p /w/workspace/xfoundry_device-modbus-go_PR-336/archives/ [2022-04-25T19:58:45.645Z] + 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 [2022-04-25T19:58:45.658Z] 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 [2022-04-25T19:58:45.940Z] + facter operatingsystem [Pipeline] isUnix [Pipeline] sh [2022-04-25T19:58:46.502Z] + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [2022-04-25T19:58:46.502Z] . [Pipeline] withDockerContainer [2022-04-25T19:58:46.570Z] prd-ubuntu20.04-docker-8c-8g-22084 does not seem to be running inside a container [2022-04-25T19:58:46.620Z] $ 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 ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat [2022-04-25T19:58:46.860Z] $ docker top 977018cf0bbe36358751f5e02edd7045fe890acf02c3c99d5ba78f3dfd922147 -eo pid,comm [Pipeline] { [Pipeline] sh [2022-04-25T19:58:47.194Z] + touch /tmp/pre-build-complete [Pipeline] sh [2022-04-25T19:58:47.481Z] + mkdir -p /var/log/sysstat [Pipeline] sh [2022-04-25T19:58:47.765Z] + ls /var/log/sa-host [2022-04-25T19:58:47.765Z] ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider [2022-04-25T19:58:47.988Z] provisioning config files... [2022-04-25T19:58:47.998Z] copy managed file [jenkins-log-archives-settings] to file:/w/workspace/xfoundry_device-modbus-go_PR-336@tmp/config2079141600218794833tmp [Pipeline] { [Pipeline] echo [2022-04-25T19:58:48.012Z] Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh [2022-04-25T19:58:48.302Z] ---> create-netrc.sh [Pipeline] } [2022-04-25T19:58:48.310Z] Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh [2022-04-25T19:58:48.655Z] ---> python-tools-install.sh [Pipeline] echo [2022-04-25T19:58:48.668Z] Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh [2022-04-25T19:58:48.953Z] ---> sudo-logs.sh [2022-04-25T19:58:48.953Z] Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo [2022-04-25T19:58:48.978Z] Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh [2022-04-25T19:58:49.265Z] ---> job-cost.sh [2022-04-25T19:58:49.266Z] lf-activate-venv: SKIPPING [2022-04-25T19:58:49.266Z] DEBUG: total: 0.2199999988079071 [2022-04-25T19:58:49.266Z] INFO: Retrieving Stack Cost... [2022-04-25T19:58:49.836Z] INFO: Retrieving Pricing Info for: v3-standard-8 [2022-04-25T19:58:50.099Z] INFO: Archiving Costs [Pipeline] echo [2022-04-25T19:58:50.116Z] Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh [2022-04-25T19:58:50.403Z] ---> logs-deploy.sh [2022-04-25T19:58:50.403Z] lf-activate-venv: SKIPPING [2022-04-25T19:58:50.403Z] INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-modbus-go/PR-336/2 [2022-04-25T19:58:50.403Z] INFO: archiving workspace using pattern(s): [2022-04-25T19:58:51.346Z] Archives upload complete. [2022-04-25T19:58:51.346Z] INFO: archiving logs to Nexus