Pull request #177 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 MonicaisHer for edgexfoundry/device-rest-go Loading trusted files from base branch main at 238d080d640a7e3d9ba0ccf186e4988c74ba76ef rather than 6c19ac31b40bab5f233e328a991b11ca026615f3 Obtained Jenkinsfile from 238d080d640a7e3d9ba0ccf186e4988c74ba76ef 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-ssh16549976321423517782.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-ssh15403366133063285000.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-rest-go/branches/PR-177/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-rest-go/branches/PR-177/workspace@libs/edgex-global-pipelines@tmp/jenkins-gitclient-ssh10208865471428464978.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-ssh5109691927882888979.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-rest-go/branches/PR-177/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-rest-go/branches/PR-177/workspace@libs/lf-pipelines@tmp/jenkins-gitclient-ssh7977567881842462129.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-rest-go] ========================================================= [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-rest-go-settings PROJECT: device-rest-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-rest 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-21957 in /w/workspace/gexfoundry_device-rest-go_PR-177 [Pipeline] { [Pipeline] stage [Pipeline] { (Declarative: Checkout SCM) [Pipeline] checkout The recommended git tool is: git using credential edgex-jenkins-ssh Cloning the remote Git repository Cloning repository git@github.com:edgexfoundry/device-rest-go.git > git init /w/workspace/gexfoundry_device-rest-go_PR-177 # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-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-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 Merging remotes/origin/main commit 238d080d640a7e3d9ba0ccf186e4988c74ba76ef into PR head commit 6c19ac31b40bab5f233e328a991b11ca026615f3 Merge succeeded, producing 6526440654851b9be27fc0cb4b06c877d4fa80e5 Checking out Revision 6526440654851b9be27fc0cb4b06c877d4fa80e5 (PR-177) > git config remote.origin.url git@github.com:edgexfoundry/device-rest-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-rest-go.git # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/177/head:refs/remotes/origin/PR-177 +refs/heads/main:refs/remotes/origin/main # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 6c19ac31b40bab5f233e328a991b11ca026615f3 # 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 238d080d640a7e3d9ba0ccf186e4988c74ba76ef # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 6526440654851b9be27fc0cb4b06c877d4fa80e5 # timeout=10 Commit message: "Merge commit '238d080d640a7e3d9ba0ccf186e4988c74ba76ef' into HEAD" First time build. Skipping changelog. > git rev-list --no-walk 9da43f878aee0131fc8c709839baf307fdc66f93 # timeout=10 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 09:07:56 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 09:07:56 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 09:07:56 ========================================================= 09:07:56 EdgeX Global Pipelines Version Info 09:07:56 ========================================================= [Pipeline] libraryResource [Pipeline] sh 09:07:57 ------------------- 09:07:57 stable info: 09:07:57 ------------------- 09:07:57 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 09:07:57 Commit SHA: c72b16708d6eed9a08be464a432ce22db7d90667 09:07:57 Message: update stable to v1.0.221 09:07:58 ------------------- 09:07:58 experimental info: 09:07:58 ------------------- 09:07:58 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 09:07:58 Commit SHA: e334d830fa8e8412d6042b94a77caa8dfa54c97b 09:07:58 Message: update experimental to v1.0.223 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 09:07:58 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 09:07:58 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 09:07:58 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 09:07:58 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 09:07:58 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 09:07:58 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.17 [Pipeline] echo 09:07:58 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 09:07:58 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 09:07:58 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 09:07:58 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 09:07:58 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 09:07:58 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 09:07:58 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 09:07:58 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 09:07:58 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 09:07:58 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 09:07:58 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 09:07:58 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 09:07:58 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 09:07:58 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 09:07:58 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 09:07:58 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 09:07:58 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 09:07:58 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 09:07:58 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 09:07:58 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 09:07:58 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-177 [Pipeline] echo 09:07:58 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-177 [Pipeline] echo 09:07:58 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-177 [Pipeline] echo 09:07:58 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 6526440654851b9be27fc0cb4b06c877d4fa80e5 [Pipeline] echo 09:07:58 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 6526440 [Pipeline] echo 09:07:58 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 09:07:58 provisioning config files... 09:07:58 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-177@tmp/config4928015967257385545tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 09:07:59 ---> docker-login.sh 09:07:59 nexus3.edgexfoundry.org:10001 09:07:59 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:07:59 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:07:59 Configure a credential helper to remove this warning. See 09:07:59 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:07:59 09:07:59 Login Succeeded 09:07:59 nexus3.edgexfoundry.org:10002 09:07:59 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:07:59 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:07:59 Configure a credential helper to remove this warning. See 09:07:59 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:07:59 09:07:59 Login Succeeded 09:07:59 nexus3.edgexfoundry.org:10003 09:07:59 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:07:59 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:07:59 Configure a credential helper to remove this warning. See 09:07:59 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:07:59 09:07:59 Login Succeeded 09:07:59 nexus3.edgexfoundry.org:10004 09:07:59 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:07:59 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:07:59 Configure a credential helper to remove this warning. See 09:07:59 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:07:59 09:07:59 Login Succeeded 09:07:59 docker.io 09:08:00 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:08:00 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:08:00 Configure a credential helper to remove this warning. See 09:08:00 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:08:00 09:08:00 Login Succeeded 09:08:00 ---> docker-login.sh ends [Pipeline] } 09:08:00 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 09:08:00 + git rev-list -1 --merges 6526440654851b9be27fc0cb4b06c877d4fa80e5~1..6526440654851b9be27fc0cb4b06c877d4fa80e5 [Pipeline] echo 09:08:00 -----------> git rev-list -1 --merges 6526440654851b9be27fc0cb4b06c877d4fa80e5~1..6526440654851b9be27fc0cb4b06c877d4fa80e5 6526440654851b9be27fc0cb4b06c877d4fa80e5 09:08:00 6526440654851b9be27fc0cb4b06c877d4fa80e5 [false] [Pipeline] sh 09:08:01 + git log --format=format:%s -1 6526440654851b9be27fc0cb4b06c877d4fa80e5 [Pipeline] echo 09:08:01 ========================================================= 09:08:01 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 09:08:01 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 09:08:01 + git log --format=format:%s -1 6526440654851b9be27fc0cb4b06c877d4fa80e5 [Pipeline] echo 09:08:01 [semverPrep] GIT_COMMIT: 6526440654851b9be27fc0cb4b06c877d4fa80e5, Commit Message: Merge commit '238d080d640a7e3d9ba0ccf186e4988c74ba76ef' into HEAD [Pipeline] echo 09:08:01 [semverPrep] This is not a build commit. [Pipeline] sh 09:08:01 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 09:08:01 + grep -v github /etc/ssh/ssh_known_hosts 09:08:01 + [ -e /tmp/ssh_known_hosts ] 09:08:01 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 09:08:01 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 09:08:01 + sudo tee -a /etc/ssh/ssh_known_hosts 09:08:01 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] sh 09:08:02 + docker inspect -f . nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 09:08:02 09:08:02 Error: No such object: nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] isUnix [Pipeline] sh 09:08:02 + docker pull nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 09:08:02 latest: Pulling from edgex-devops/git-semver 09:08:02 a0d0a0d46f8b: Pulling fs layer 09:08:02 3e5f54012d9b: Pulling fs layer 09:08:02 4c7163046ea9: Pulling fs layer 09:08:02 0c2d73faf560: Pulling fs layer 09:08:02 0c2d73faf560: Waiting 09:08:02 3e5f54012d9b: Download complete 09:08:02 a0d0a0d46f8b: Verifying Checksum 09:08:02 a0d0a0d46f8b: Download complete 09:08:02 0c2d73faf560: Verifying Checksum 09:08:02 0c2d73faf560: Download complete 09:08:02 4c7163046ea9: Download complete 09:08:02 a0d0a0d46f8b: Pull complete 09:08:02 3e5f54012d9b: Pull complete 09:08:03 4c7163046ea9: Pull complete 09:08:03 0c2d73faf560: Pull complete 09:08:03 Digest: sha256:2751de6e655929dcbe46418c7769d9d992331b5b721eb968631a4166222929f9 09:08:03 Status: Downloaded newer image for nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 09:08:03 nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] withDockerContainer 09:08:03 prd-ubuntu20.04-docker-8c-8g-21957 does not seem to be running inside a container 09:08:03 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/gexfoundry_device-rest-go_PR-177 -v /w/workspace/gexfoundry_device-rest-go_PR-177:/w/workspace/gexfoundry_device-rest-go_PR-177:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-177@tmp:/w/workspace/gexfoundry_device-rest-go_PR-177@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 09:08:04 $ docker top ca7309e0ef1b0e4076510b05b4f7e02e7fae7221aad1097288a06ba8f29ad961 -eo pid,comm [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 09:08:04 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 09:08:04 [ssh-agent] Looking for ssh-agent implementation... 09:08:04 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 09:08:04 $ docker exec ca7309e0ef1b0e4076510b05b4f7e02e7fae7221aad1097288a06ba8f29ad961 ssh-agent 09:08:04 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXckFlKh/agent.14 09:08:04 SSH_AGENT_PID=20 09:08:04 Running ssh-add (command line suppressed) 09:08:04 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-177@tmp/private_key_2122699766132201734.key (/w/workspace/gexfoundry_device-rest-go_PR-177@tmp/private_key_2122699766132201734.key) 09:08:04 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 09:08:05 + git tag --points-at HEAD [Pipeline] } 09:08:05 $ docker exec --env ******** --env ******** ca7309e0ef1b0e4076510b05b4f7e02e7fae7221aad1097288a06ba8f29ad961 ssh-agent -k 09:08:05 unset SSH_AUTH_SOCK; 09:08:05 unset SSH_AGENT_PID; 09:08:05 echo Agent pid 20 killed; 09:08:05 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 09:08:05 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 09:08:05 [ssh-agent] Looking for ssh-agent implementation... 09:08:05 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 09:08:05 $ docker exec ca7309e0ef1b0e4076510b05b4f7e02e7fae7221aad1097288a06ba8f29ad961 ssh-agent 09:08:05 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXiNBKkO/agent.53 09:08:05 SSH_AGENT_PID=60 09:08:05 Running ssh-add (command line suppressed) 09:08:05 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-177@tmp/private_key_5390695608875485763.key (/w/workspace/gexfoundry_device-rest-go_PR-177@tmp/private_key_5390695608875485763.key) 09:08:05 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 09:08:06 + git semver init 09:08:06 # -> Open(): unable to determine branch for HEAD 09:08:06 # $GIT_DIR = /w/workspace/gexfoundry_device-rest-go_PR-177/.git 09:08:06 # $GIT_WORK_TREE = /w/workspace/gexfoundry_device-rest-go_PR-177 09:08:06 # $SEMVER_REMOTE_NAME = origin 09:08:06 # $SEMVER_USER_EMAIL = collab-it+edgex@linuxfoundation.org 09:08:06 # $SEMVER_USER_NAME = edgex-jenkins 09:08:06 # $SEMVER_BRANCH = PR-177 09:08:06 # $SEMVER_TEMP = /tmp/semver-822658509 09:08:06 # git clone --branch semver git@github.com:edgexfoundry/device-rest-go.git $SEMVER_TEMP 09:08:07 # '/tmp/semver-822658509' -> '/w/workspace/gexfoundry_device-rest-go_PR-177/.semver' 09:08:07 # -> Force: false 09:08:07 # $SEMVER_DIR = /w/workspace/gexfoundry_device-rest-go_PR-177/.semver [Pipeline] } 09:08:07 $ docker exec --env ******** --env ******** ca7309e0ef1b0e4076510b05b4f7e02e7fae7221aad1097288a06ba8f29ad961 ssh-agent -k 09:08:07 unset SSH_AUTH_SOCK; 09:08:07 unset SSH_AGENT_PID; 09:08:07 echo Agent pid 60 killed; 09:08:07 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 09:08:07 + git semver [Pipeline] } 09:08:07 $ docker stop --time=1 ca7309e0ef1b0e4076510b05b4f7e02e7fae7221aad1097288a06ba8f29ad961 09:08:09 $ docker rm -f ca7309e0ef1b0e4076510b05b4f7e02e7fae7221aad1097288a06ba8f29ad961 [Pipeline] // withDockerContainer [Pipeline] sh 09:08:09 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 09:08:09 Stashed 1 file(s) [Pipeline] echo 09:08:09 [edgeXSemver]: initialized semver on version 0.0.0 [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] parallel [Pipeline] { (Branch: amd64) [Pipeline] { (Branch: arm64) [Pipeline] stage [Pipeline] { (amd64) [Pipeline] stage [Pipeline] { (arm64) [Pipeline] withEnv [Pipeline] { [Pipeline] node [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 09:08:10 provisioning config files... 09:08:10 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-177@tmp/config4078851761182156707tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 09:08:10 ---> docker-login.sh 09:08:10 nexus3.edgexfoundry.org:10001 09:08:10 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:08:10 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:08:10 Configure a credential helper to remove this warning. See 09:08:10 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:08:10 09:08:10 Login Succeeded 09:08:10 nexus3.edgexfoundry.org:10002 09:08:10 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:08:10 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:08:10 Configure a credential helper to remove this warning. See 09:08:10 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:08:10 09:08:10 Login Succeeded 09:08:10 nexus3.edgexfoundry.org:10003 09:08:10 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:08:10 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:08:10 Configure a credential helper to remove this warning. See 09:08:10 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:08:10 09:08:10 Login Succeeded 09:08:10 nexus3.edgexfoundry.org:10004 09:08:10 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:08:10 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:08:10 Configure a credential helper to remove this warning. See 09:08:10 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:08:10 09:08:10 Login Succeeded 09:08:10 docker.io 09:08:10 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:08:11 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:08:11 Configure a credential helper to remove this warning. See 09:08:11 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:08:11 09:08:11 Login Succeeded 09:08:11 ---> docker-login.sh ends [Pipeline] } 09:08:11 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 09:08:11 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 09:08:11 ========================================================= 09:08:11 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine] 09:08:11 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 09:08:11 + docker build -t ci-base-image-x86_64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine --build-arg MAKE=echo noop --target=builder . 09:08:11 Sending build context to Docker daemon 10.58MB 09:08:11 Step 1/12 : ARG BASE=golang:1.17-alpine3.15 09:08:11 Step 2/12 : FROM ${BASE} AS builder 09:08:11 1.17-alpine: Pulling from edgex-devops/edgex-golang-base 09:08:11 59bf1c3509f3: Pulling fs layer 09:08:11 666ba61612fd: Pulling fs layer 09:08:11 8ed8ca486205: Pulling fs layer 09:08:11 4fe6c5a15a65: Pulling fs layer 09:08:11 22a0e8bec74d: Pulling fs layer 09:08:11 ca2b28591e48: Pulling fs layer 09:08:11 a51346096db8: Pulling fs layer 09:08:11 4fe6c5a15a65: Waiting 09:08:11 22a0e8bec74d: Waiting 09:08:11 ca2b28591e48: Waiting 09:08:11 daebc70d1ce1: Pulling fs layer 09:08:11 0e18a0eac166: Pulling fs layer 09:08:11 daebc70d1ce1: Waiting 09:08:11 0e18a0eac166: Waiting 09:08:11 a51346096db8: Waiting 09:08:11 8ed8ca486205: Verifying Checksum 09:08:11 8ed8ca486205: Download complete 09:08:11 666ba61612fd: Verifying Checksum 09:08:11 666ba61612fd: Download complete 09:08:11 22a0e8bec74d: Download complete 09:08:11 59bf1c3509f3: Download complete 09:08:11 ca2b28591e48: Verifying Checksum 09:08:11 ca2b28591e48: Download complete 09:08:11 a51346096db8: Download complete 09:08:11 daebc70d1ce1: Verifying Checksum 09:08:11 daebc70d1ce1: Download complete 09:08:11 59bf1c3509f3: Pull complete 09:08:12 666ba61612fd: Pull complete 09:08:12 8ed8ca486205: Pull complete 09:08:12 0e18a0eac166: Verifying Checksum 09:08:12 0e18a0eac166: Download complete 09:08:12 4fe6c5a15a65: Verifying Checksum 09:08:12 4fe6c5a15a65: Download complete 09:08:16 4fe6c5a15a65: Pull complete 09:08:16 22a0e8bec74d: Pull complete 09:08:16 ca2b28591e48: Pull complete 09:08:16 a51346096db8: Pull complete 09:08:17 daebc70d1ce1: Pull complete 09:08:19 0e18a0eac166: Pull complete 09:08:19 Digest: sha256:5cf2d0a306c5171eb5b3008c4b83cc7b6044f1808c238cb17927cddb93576120 09:08:19 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine 09:08:19 ---> f018257e8ee9 09:08:19 Step 3/12 : ARG MAKE='make build' 09:08:22 ---> Running in f3ca191656af 09:08:22 Removing intermediate container f3ca191656af 09:08:22 ---> 704d48f09ae2 09:08:22 Step 4/12 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 09:08:22 ---> Running in 181ddb4f70ce 09:08:22 Removing intermediate container 181ddb4f70ce 09:08:22 ---> 92b9bc20bc40 09:08:22 Step 5/12 : ARG ALPINE_PKG_EXTRA="" 09:08:22 ---> Running in 84dd58b0d4bc 09:08:22 Removing intermediate container 84dd58b0d4bc 09:08:22 ---> 87f7070e164c 09:08:22 Step 6/12 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 09:08:22 ---> Running in e5b1e5c9a4d2 09:08:24 Removing intermediate container e5b1e5c9a4d2 09:08:24 ---> 7a301c338b02 09:08:24 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 09:08:24 ---> Running in 3d23fcae367c 09:08:24 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 09:08:24 Still waiting to schedule task 09:08:24 Waiting for next available executor on ‘ubuntu20.04-docker-arm64-4c-16g’ 09:08:25 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 09:08:25 (1/4) Installing openssh-keygen (8.8_p1-r1) 09:08:25 (2/4) Installing libedit (20210910.3.1-r0) 09:08:25 (3/4) Installing openssh-client-common (8.8_p1-r1) 09:08:26 (4/4) Installing openssh-client-default (8.8_p1-r1) 09:08:26 Executing busybox-1.34.1-r3.trigger 09:08:26 OK: 224 MiB in 56 packages 09:08:26 Removing intermediate container 3d23fcae367c 09:08:26 ---> d40be6eec874 09:08:26 Step 8/12 : WORKDIR /device-rest-go 09:08:26 ---> Running in c5dec8c1859c 09:08:26 Removing intermediate container c5dec8c1859c 09:08:26 ---> fa6289d02c29 09:08:26 Step 9/12 : COPY go.mod vendor* ./ 09:08:26 ---> 74e1d2bf37c2 09:08:26 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 09:08:26 ---> Running in 1426deabfd6f 09:08:45 Removing intermediate container 1426deabfd6f 09:08:45 ---> 6d448d01af98 09:08:45 Step 11/12 : COPY . . 09:08:45 ---> d561c7485713 09:08:45 Step 12/12 : RUN $MAKE 09:08:45 ---> Running in 1a7a46ac8c7a 09:08:45 noop 09:08:45 Removing intermediate container 1a7a46ac8c7a 09:08:45 ---> 5ea84fbeaaf9 09:08:45 Successfully built 5ea84fbeaaf9 09:08:45 Successfully tagged ci-base-image-x86_64:latest [Pipeline] isUnix [Pipeline] sh 09:08:45 + docker inspect -f . ci-base-image-x86_64 09:08:45 . [Pipeline] withDockerContainer 09:08:45 prd-ubuntu20.04-docker-8c-8g-21957 does not seem to be running inside a container 09:08:45 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-177 -v /w/workspace/gexfoundry_device-rest-go_PR-177:/w/workspace/gexfoundry_device-rest-go_PR-177:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-177@tmp:/w/workspace/gexfoundry_device-rest-go_PR-177@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 09:08:45 $ docker top 888398fafafd47d7e182252b5f5b127992bb978329858250acf9385e0dd1c887 -eo pid,comm [Pipeline] { [Pipeline] sh 09:08:46 + go version 09:08:46 go version go1.17.6 linux/amd64 [Pipeline] } 09:08:46 $ docker stop --time=1 888398fafafd47d7e182252b5f5b127992bb978329858250acf9385e0dd1c887 09:08:47 $ docker rm -f 888398fafafd47d7e182252b5f5b127992bb978329858250acf9385e0dd1c887 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 09:08:47 + docker inspect -f . ci-base-image-x86_64 09:08:47 . [Pipeline] withDockerContainer 09:08:48 prd-ubuntu20.04-docker-8c-8g-21957 does not seem to be running inside a container 09:08:48 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-177 -v /w/workspace/gexfoundry_device-rest-go_PR-177:/w/workspace/gexfoundry_device-rest-go_PR-177:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-177@tmp:/w/workspace/gexfoundry_device-rest-go_PR-177@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 09:08:48 $ docker top f0904e9e354575a4446cad8abec3a9758334e93e892d523b1d5e19eb897be9c1 -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 09:08:48 + make test 09:08:48 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out ./... 09:08:49 ? github.com/edgexfoundry/device-rest-go [no test files] 09:08:59 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 09:08:59 ok github.com/edgexfoundry/device-rest-go/driver 0.016s coverage: 55.2% of statements 09:09:07 CGO_ENABLED=1 GO111MODULE=on go vet ./... 09:09:10 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 09:09:10 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 09:09:10 ./bin/test-attribution-txt.sh [Pipeline] echo 09:09:11 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 09:09:11 $ docker stop --time=1 f0904e9e354575a4446cad8abec3a9758334e93e892d523b1d5e19eb897be9c1 09:09:13 $ docker rm -f f0904e9e354575a4446cad8abec3a9758334e93e892d523b1d5e19eb897be9c1 [Pipeline] // withDockerContainer [Pipeline] sh 09:09:13 + sudo chown -R jenkins:jenkins . [Pipeline] stash 09:09:13 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 09:09:14 + sudo chown -R jenkins:jenkins . [Pipeline] sh 09:09:14 + ls -al . 09:09:14 total 172 09:09:14 drwxrwxr-x 9 jenkins jenkins 4096 Apr 25 09:09 . 09:09:14 drwxrwxr-x 4 jenkins jenkins 4096 Apr 25 09:07 .. 09:09:14 -rw-rw-r-- 1 jenkins jenkins 151 Apr 25 09:07 .dockerignore 09:09:14 drwxrwxr-x 8 jenkins jenkins 4096 Apr 25 09:07 .git 09:09:14 drwxrwxr-x 3 jenkins jenkins 4096 Apr 25 09:07 .github 09:09:14 -rw-rw-r-- 1 jenkins jenkins 329 Apr 25 09:07 .gitignore 09:09:14 -rw-rw-r-- 1 jenkins jenkins 41 Apr 25 09:07 .golangci.yml 09:09:14 drwx------ 3 jenkins jenkins 4096 Apr 25 09:08 .semver 09:09:14 -rw-rw-r-- 1 jenkins jenkins 8330 Apr 25 09:07 Attribution.txt 09:09:14 -rw-rw-r-- 1 jenkins jenkins 7459 Apr 25 09:07 CHANGELOG.md 09:09:14 -rw-rw-r-- 1 jenkins jenkins 1672 Apr 25 09:07 Dockerfile 09:09:14 -rw-rw-r-- 1 jenkins jenkins 677 Apr 25 09:07 GOVERNANCE.md 09:09:14 -rw-rw-r-- 1 jenkins jenkins 680 Apr 25 09:07 Jenkinsfile 09:09:14 -rw-rw-r-- 1 jenkins jenkins 11340 Apr 25 09:07 LICENSE 09:09:14 -rw-rw-r-- 1 jenkins jenkins 1964 Apr 25 09:07 Makefile 09:09:14 -rw-rw-r-- 1 jenkins jenkins 620 Apr 25 09:07 OWNERS.md 09:09:14 -rw-rw-r-- 1 jenkins jenkins 8246 Apr 25 09:07 README.md 09:09:14 -rw-rw-r-- 1 jenkins jenkins 5 Apr 25 09:08 VERSION 09:09:14 drwxrwxr-x 2 jenkins jenkins 4096 Apr 25 09:07 bin 09:09:14 drwxrwxr-x 3 jenkins jenkins 4096 Apr 25 09:07 cmd 09:09:14 -rw-r--r-- 1 jenkins jenkins 9355 Apr 25 09:08 coverage.out 09:09:14 drwxrwxr-x 2 jenkins jenkins 4096 Apr 25 09:07 driver 09:09:14 -rw-rw-r-- 1 jenkins jenkins 3240 Apr 25 09:07 go.mod 09:09:14 -rw-rw-r-- 1 jenkins jenkins 34722 Apr 25 09:07 go.sum 09:09:14 drwxrwxr-x 3 jenkins jenkins 4096 Apr 25 09:07 snap 09:09:14 -rw-rw-r-- 1 jenkins jenkins 713 Apr 25 09:07 version.go [Pipeline] isUnix [Pipeline] sh 09:09:14 + docker build -t device-rest -f Dockerfile --build-arg BASE=ci-base-image-x86_64 --build-arg MAKE=make build --build-arg ARCH=amd64 --label git_sha=6526440654851b9be27fc0cb4b06c877d4fa80e5 --label arch=amd64 --label version=0.0.0 . 09:09:14 Sending build context to Docker daemon 10.59MB 09:09:14 Step 1/25 : ARG BASE=golang:1.17-alpine3.15 09:09:14 Step 2/25 : FROM ${BASE} AS builder 09:09:14 ---> 5ea84fbeaaf9 09:09:14 Step 3/25 : ARG MAKE='make build' 09:09:15 ---> Running in 36e2f44147cc 09:09:15 Removing intermediate container 36e2f44147cc 09:09:15 ---> 48a073beb5cb 09:09:15 Step 4/25 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 09:09:15 ---> Running in b17f292534f1 09:09:15 Removing intermediate container b17f292534f1 09:09:15 ---> 2ceea617fc6a 09:09:15 Step 5/25 : ARG ALPINE_PKG_EXTRA="" 09:09:15 ---> Running in 6d5ae05cdf25 09:09:15 Removing intermediate container 6d5ae05cdf25 09:09:15 ---> 0875b5b1d69a 09:09:15 Step 6/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 09:09:15 ---> Running in 0563aa30ce6b 09:09:16 Removing intermediate container 0563aa30ce6b 09:09:16 ---> 8c1ea8f9303e 09:09:16 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 09:09:16 ---> Running in dd51935b9df5 09:09:16 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 09:09:17 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 09:09:17 OK: 224 MiB in 56 packages 09:09:18 Removing intermediate container dd51935b9df5 09:09:18 ---> ed6167216561 09:09:18 Step 8/25 : WORKDIR /device-rest-go 09:09:18 ---> Running in a7efb0102039 09:09:18 Removing intermediate container a7efb0102039 09:09:18 ---> 7e6d1c6e3d8e 09:09:18 Step 9/25 : COPY go.mod vendor* ./ 09:09:18 ---> 575eb5182af5 09:09:18 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 09:09:18 ---> Running in c2bd8ace65c8 09:09:19 Removing intermediate container c2bd8ace65c8 09:09:19 ---> d96f872e28df 09:09:19 Step 11/25 : COPY . . 09:09:19 ---> b02118e70dc5 09:09:19 Step 12/25 : RUN $MAKE 09:09:19 ---> Running in 8c2a98f7ec3e 09:09:19 CGO_ENABLED=1 GO111MODULE=on go build -ldflags "-linkmode=external -X github.com/edgexfoundry/device-rest-go.Version=0.0.0" -trimpath -mod=readonly -buildmode=pie -o cmd/device-rest ./cmd 09:09:41 Removing intermediate container 8c2a98f7ec3e 09:09:41 ---> 8d43104d7419 09:09:41 Step 13/25 : FROM alpine:3.14 09:09:41 3.14: Pulling from library/alpine 09:09:41 8663204ce13b: Pulling fs layer 09:09:41 8663204ce13b: Verifying Checksum 09:09:41 8663204ce13b: Download complete 09:09:41 8663204ce13b: Pull complete 09:09:41 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 09:09:41 Status: Downloaded newer image for alpine:3.14 09:09:41 ---> e04c818066af 09:09:41 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' 09:09:41 ---> Running in b853133b58d5 09:09:41 Removing intermediate container b853133b58d5 09:09:41 ---> cde5c542ff2f 09:09:41 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 09:09:41 ---> Running in 7d825ae908ca 09:09:41 Removing intermediate container 7d825ae908ca 09:09:41 ---> ad3d338860e9 09:09:41 Step 16/25 : RUN apk add --update --no-cache zeromq dumb-init 09:09:41 ---> Running in 3ee991bf819c 09:09:41 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz 09:09:42 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz 09:09:42 (1/6) Installing dumb-init (1.2.5-r1) 09:09:42 (2/6) Installing libgcc (10.3.1_git20210424-r2) 09:09:42 (3/6) Installing libsodium (1.0.18-r0) 09:09:42 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 09:09:42 (5/6) Installing libzmq (4.3.4-r0) 09:09:42 (6/6) Installing zeromq (4.3.4-r0) 09:09:42 Executing busybox-1.33.1-r7.trigger 09:09:42 OK: 8 MiB in 20 packages 09:09:43 Removing intermediate container 3ee991bf819c 09:09:43 ---> d3e8a7b4b91a 09:09:43 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 09:09:43 ---> a6bd3bbc29c1 09:09:43 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 09:09:43 ---> eb89e1042c6c 09:09:43 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 09:09:43 ---> 96c7093caed6 09:09:43 Step 20/25 : EXPOSE 59986 09:09:43 ---> Running in fde9ba93aa1c 09:09:43 Removing intermediate container fde9ba93aa1c 09:09:43 ---> 3d53ca2a5b31 09:09:43 Step 21/25 : ENTRYPOINT ["/device-rest"] 09:09:43 ---> Running in 838d831888db 09:09:43 Removing intermediate container 838d831888db 09:09:43 ---> 67862e497c97 09:09:43 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--confdir=/res", "--registry"] 09:09:44 ---> Running in 18814df61e17 09:09:44 Removing intermediate container 18814df61e17 09:09:44 ---> 0fecbdaae373 09:09:44 Step 23/25 : LABEL arch=amd64 09:09:44 ---> Running in fba0e0005e93 09:09:44 Removing intermediate container fba0e0005e93 09:09:44 ---> 22e7ee3b9833 09:09:44 Step 24/25 : LABEL git_sha=6526440654851b9be27fc0cb4b06c877d4fa80e5 09:09:44 ---> Running in a75291a731a9 09:09:44 Removing intermediate container a75291a731a9 09:09:44 ---> e20c4d046ad1 09:09:44 Step 25/25 : LABEL version=0.0.0 09:09:44 ---> Running in 2ff0871f1708 09:09:44 Removing intermediate container 2ff0871f1708 09:09:44 ---> def3d78e6647 09:09:44 [Warning] One or more build-args [ARCH] were not consumed 09:09:44 Successfully built def3d78e6647 09:09:44 Successfully tagged device-rest: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 09:09:44 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 09:09:44 09:09:44 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] sh 09:09:45 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 09:09:45 latest: Pulling from edgex-lftools-log-publisher 09:09:45 5eb5b503b376: Pulling fs layer 09:09:45 5c69ac0246d0: Pulling fs layer 09:09:45 ec43610c2a17: Pulling fs layer 09:09:45 3a2ae6a8a46f: Pulling fs layer 09:09:45 33b1e0a273af: Pulling fs layer 09:09:45 5d3b04190fa2: Pulling fs layer 09:09:45 2f39f015ded8: Pulling fs layer 09:09:45 33b1e0a273af: Waiting 09:09:45 5d3b04190fa2: Waiting 09:09:45 2f39f015ded8: Waiting 09:09:45 3a2ae6a8a46f: Waiting 09:09:45 5c69ac0246d0: Download complete 09:09:45 3a2ae6a8a46f: Verifying Checksum 09:09:45 3a2ae6a8a46f: Download complete 09:09:45 33b1e0a273af: Download complete 09:09:45 ec43610c2a17: Verifying Checksum 09:09:45 ec43610c2a17: Download complete 09:09:45 5d3b04190fa2: Verifying Checksum 09:09:45 5d3b04190fa2: Download complete 09:09:45 5eb5b503b376: Verifying Checksum 09:09:45 5eb5b503b376: Download complete 09:09:45 2f39f015ded8: Download complete 09:09:46 5eb5b503b376: Pull complete 09:09:46 5c69ac0246d0: Pull complete 09:09:47 ec43610c2a17: Pull complete 09:09:47 3a2ae6a8a46f: Pull complete 09:09:47 33b1e0a273af: Pull complete 09:09:47 5d3b04190fa2: Pull complete 09:09:51 2f39f015ded8: Pull complete 09:09:51 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 09:09:51 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 09:09:51 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] withDockerContainer 09:09:51 prd-ubuntu20.04-docker-8c-8g-21957 does not seem to be running inside a container 09:09:51 $ 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/gexfoundry_device-rest-go_PR-177 -v /w/workspace/gexfoundry_device-rest-go_PR-177:/w/workspace/gexfoundry_device-rest-go_PR-177:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-177@tmp:/w/workspace/gexfoundry_device-rest-go_PR-177@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 09:09:53 $ docker top f9b22ec25dbe1d6ac3c924a0bbec093f3648f8c356c2b2d8e2e5a2268f958ad7 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 09:09:54 ---> job-cost.sh 09:09:54 lf-activate-venv: SKIPPING 09:09:54 INFO: No Stack... 09:09:54 INFO: Retrieving Pricing Info for: v3-standard-8 09:09:55 INFO: Archiving Costs [Pipeline] sh 09:09:55 + cat /w/workspace/gexfoundry_device-rest-go_PR-177/archives/cost.csv 09:09:55 + cut -d, -f6 [Pipeline] lock 09:09:55 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-177-2-stack-cost] 09:09:55 Resource [jenkins-edgexfoundry-device-rest-go-PR-177-2-stack-cost] did not exist. Created. 09:09:55 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-177-2-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 09:09:55 + echo total: 0.2199999988079071 [Pipeline] stash 09:09:55 Stashed 1 file(s) [Pipeline] } 09:09:55 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-177-2-stack-cost] [Pipeline] // lock [Pipeline] } 09:09:55 $ docker stop --time=1 f9b22ec25dbe1d6ac3c924a0bbec093f3648f8c356c2b2d8e2e5a2268f958ad7 09:09:57 $ docker rm -f f9b22ec25dbe1d6ac3c924a0bbec093f3648f8c356c2b2d8e2e5a2268f958ad7 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 09:14:52 Running on prd-ubuntu20.04-docker-arm64-4c-16g-22017 in /w/workspace/gexfoundry_device-rest-go_PR-177 [Pipeline] { [Pipeline] ws 09:14:52 Running in /w/workspace/device-rest-go/2 [Pipeline] { [Pipeline] checkout 09:14:53 The recommended git tool is: git 09:15:02 using credential edgex-jenkins-ssh 09:15:02 Cloning the remote Git repository 09:15:02 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 09:15:02 > git init /w/workspace/device-rest-go/2 # timeout=10 09:15:02 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 09:15:02 > git --version # timeout=10 09:15:02 > git --version # 'git version 2.25.1' 09:15:02 using GIT_SSH to set credentials SSH Credentials for GitHub 09:15:02 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 09:15:05 Merging remotes/origin/main commit 238d080d640a7e3d9ba0ccf186e4988c74ba76ef into PR head commit 6c19ac31b40bab5f233e328a991b11ca026615f3 09:15:04 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 09:15:04 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 09:15:04 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 09:15:04 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 09:15:04 using GIT_SSH to set credentials SSH Credentials for GitHub 09:15:04 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/177/head:refs/remotes/origin/PR-177 +refs/heads/main:refs/remotes/origin/main # timeout=10 09:15:05 Merge succeeded, producing b84c888b2855b02e326e1c287c11f0c61e2064fb 09:15:05 Checking out Revision b84c888b2855b02e326e1c287c11f0c61e2064fb (PR-177) 09:15:05 > git config core.sparsecheckout # timeout=10 09:15:05 > git checkout -f 6c19ac31b40bab5f233e328a991b11ca026615f3 # timeout=10 09:15:05 > git remote # timeout=10 09:15:05 > git config --get remote.origin.url # timeout=10 09:15:05 using GIT_SSH to set credentials SSH Credentials for GitHub 09:15:05 > git merge 238d080d640a7e3d9ba0ccf186e4988c74ba76ef # timeout=10 09:15:05 > git rev-parse HEAD^{commit} # timeout=10 09:15:05 > git config core.sparsecheckout # timeout=10 09:15:05 > git checkout -f b84c888b2855b02e326e1c287c11f0c61e2064fb # timeout=10 09:15:10 Commit message: "Merge commit '238d080d640a7e3d9ba0ccf186e4988c74ba76ef' into HEAD" 09:15:10 First time build. Skipping changelog. 09:15:10 > git rev-list --no-walk 9da43f878aee0131fc8c709839baf307fdc66f93 # timeout=10 [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 09:15:11 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 09:15:11 % Total % Received % Xferd Average Speed Time Time Time Current 09:15:11 Dload Upload Total Spent Left Speed 09:15:11 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 11843 100 11843 0 0 82243 0 --:--:-- --:--:-- --:--:-- 82243 [Pipeline] sh 09:15:11 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 09:15:11 + + sudosudo tee jq /etc/docker/daemon.new . += {"seccomp-profile": "/etc/docker/seccomp.json"} 09:15:11 /etc/docker/daemon.json 09:15:11 { 09:15:11 "registry-mirrors": [ 09:15:11 "https://nexus3.edgexfoundry.org:10001" 09:15:11 ], 09:15:11 "bip": "10.250.0.254/24", 09:15:11 "hosts": [ 09:15:11 "tcp://0.0.0.0:5555", 09:15:11 "unix:///var/run/docker.sock" 09:15:11 ], 09:15:11 "mtu": 1458, 09:15:11 "selinux-enabled": true, 09:15:11 "seccomp-profile": "/etc/docker/seccomp.json" 09:15:11 } [Pipeline] sh 09:15:12 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 09:15:12 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 09:15:31 provisioning config files... 09:15:31 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/2@tmp/config8129059894132605954tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 09:15:31 ---> docker-login.sh 09:15:31 nexus3.edgexfoundry.org:10001 09:15:32 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:15:32 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:15:32 Configure a credential helper to remove this warning. See 09:15:32 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:15:32 09:15:32 Login Succeeded 09:15:32 nexus3.edgexfoundry.org:10002 09:15:33 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:15:33 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:15:33 Configure a credential helper to remove this warning. See 09:15:33 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:15:33 09:15:33 Login Succeeded 09:15:33 nexus3.edgexfoundry.org:10003 09:15:33 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:15:33 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:15:33 Configure a credential helper to remove this warning. See 09:15:33 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:15:33 09:15:33 Login Succeeded 09:15:33 nexus3.edgexfoundry.org:10004 09:15:33 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:15:34 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:15:34 Configure a credential helper to remove this warning. See 09:15:34 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:15:34 09:15:34 Login Succeeded 09:15:34 docker.io 09:15:34 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 09:15:34 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 09:15:34 Configure a credential helper to remove this warning. See 09:15:34 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 09:15:34 09:15:34 Login Succeeded 09:15:34 ---> docker-login.sh ends [Pipeline] } 09:15:34 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 09:15:35 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 09:15:35 ========================================================= 09:15:35 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine] 09:15:35 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 09:15:35 + 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 . 09:15:35 Sending build context to Docker daemon 129.5kB 09:15:35 Step 1/12 : ARG BASE=golang:1.17-alpine3.15 09:15:35 Step 2/12 : FROM ${BASE} AS builder 09:15:36 1.17-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 09:15:36 9b3977197b4f: Pulling fs layer 09:15:36 1a89e8eeedd5: Pulling fs layer 09:15:36 94645a83ff95: Pulling fs layer 09:15:36 3f3a8bcf1eab: Pulling fs layer 09:15:36 0c92f367c5e7: Pulling fs layer 09:15:36 3096ccb668a1: Pulling fs layer 09:15:36 e8cf19c19ddd: Pulling fs layer 09:15:36 a4caa8a26152: Pulling fs layer 09:15:36 3096ccb668a1: Waiting 09:15:36 e8cf19c19ddd: Waiting 09:15:36 3f3a8bcf1eab: Waiting 09:15:36 a4caa8a26152: Waiting 09:15:36 0c92f367c5e7: Waiting 09:15:36 94645a83ff95: Verifying Checksum 09:15:36 94645a83ff95: Download complete 09:15:36 1a89e8eeedd5: Verifying Checksum 09:15:36 1a89e8eeedd5: Download complete 09:15:36 0c92f367c5e7: Verifying Checksum 09:15:36 0c92f367c5e7: Download complete 09:15:36 3096ccb668a1: Verifying Checksum 09:15:36 3096ccb668a1: Download complete 09:15:36 e8cf19c19ddd: Verifying Checksum 09:15:36 e8cf19c19ddd: Download complete 09:15:36 9b3977197b4f: Verifying Checksum 09:15:36 9b3977197b4f: Download complete 09:15:37 9b3977197b4f: Pull complete 09:15:37 1a89e8eeedd5: Pull complete 09:15:38 94645a83ff95: Pull complete 09:15:38 a4caa8a26152: Verifying Checksum 09:15:38 a4caa8a26152: Download complete 09:15:39 3f3a8bcf1eab: Verifying Checksum 09:15:39 3f3a8bcf1eab: Download complete 09:15:51 3f3a8bcf1eab: Pull complete 09:15:52 0c92f367c5e7: Pull complete 09:15:52 3096ccb668a1: Pull complete 09:15:52 e8cf19c19ddd: Pull complete 09:15:59 a4caa8a26152: Pull complete 09:15:59 Digest: sha256:b3ad895ecde34a7521bb8912598475bc58d052e1c2c58d00df7f0fe54a102a46 09:15:59 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine 09:15:59 ---> 725f1c02e7f9 09:15:59 Step 3/12 : ARG MAKE='make build' 09:16:01 ---> Running in 17a2f235b4f1 09:16:01 Removing intermediate container 17a2f235b4f1 09:16:01 ---> 4b0b99b34721 09:16:01 Step 4/12 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 09:16:01 ---> Running in c43b6a731460 09:16:02 Removing intermediate container c43b6a731460 09:16:02 ---> 2c031445e7c9 09:16:02 Step 5/12 : ARG ALPINE_PKG_EXTRA="" 09:16:02 ---> Running in 65d74e9e1931 09:16:02 Removing intermediate container 65d74e9e1931 09:16:02 ---> 46a434d9f7c1 09:16:02 Step 6/12 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 09:16:02 ---> Running in 861fd6a795ea 09:16:06 Removing intermediate container 861fd6a795ea 09:16:06 ---> 9a7a4fc5a243 09:16:06 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 09:16:06 ---> Running in d7e68b9a1132 09:16:07 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 09:16:08 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 09:16:09 (1/4) Installing openssh-keygen (8.8_p1-r1) 09:16:09 (2/4) Installing libedit (20210910.3.1-r0) 09:16:09 (3/4) Installing openssh-client-common (8.8_p1-r1) 09:16:09 (4/4) Installing openssh-client-default (8.8_p1-r1) 09:16:09 Executing busybox-1.34.1-r3.trigger 09:16:09 OK: 224 MiB in 56 packages 09:16:10 Removing intermediate container d7e68b9a1132 09:16:10 ---> b15fbe7a4c8a 09:16:10 Step 8/12 : WORKDIR /device-rest-go 09:16:10 ---> Running in b325829d63fa 09:16:11 Removing intermediate container b325829d63fa 09:16:11 ---> e803627a62b1 09:16:11 Step 9/12 : COPY go.mod vendor* ./ 09:16:11 ---> adf1e44f901a 09:16:11 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 09:16:11 ---> Running in 5ab0b711756c 09:17:08 Removing intermediate container 5ab0b711756c 09:17:08 ---> e9a8922fce68 09:17:08 Step 11/12 : COPY . . 09:17:08 ---> e64e88928976 09:17:08 Step 12/12 : RUN $MAKE 09:17:08 ---> Running in 9e3f151f1af4 09:17:08 noop 09:17:08 Removing intermediate container 9e3f151f1af4 09:17:08 ---> b9339e549484 09:17:08 Successfully built b9339e549484 09:17:08 Successfully tagged ci-base-image-arm64:latest [Pipeline] isUnix [Pipeline] sh 09:17:08 + docker inspect -f . ci-base-image-arm64 09:17:08 . [Pipeline] withDockerContainer 09:17:09 prd-ubuntu20.04-docker-arm64-4c-16g-22017 does not seem to be running inside a container 09:17:09 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/2 -v /w/workspace/device-rest-go/2:/w/workspace/device-rest-go/2:rw,z -v /w/workspace/device-rest-go/2@tmp:/w/workspace/device-rest-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 09:17:10 $ docker top f9256553e744ff47ac773adf857adc4af61f8ac8f64df81ac3c934cdc90d2878 -eo pid,comm [Pipeline] { [Pipeline] sh 09:17:11 + go version 09:17:11 go version go1.17.6 linux/arm64 [Pipeline] } 09:17:11 $ docker stop --time=1 f9256553e744ff47ac773adf857adc4af61f8ac8f64df81ac3c934cdc90d2878 09:17:13 $ docker rm -f f9256553e744ff47ac773adf857adc4af61f8ac8f64df81ac3c934cdc90d2878 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 09:17:14 + docker inspect -f . ci-base-image-arm64 09:17:14 . [Pipeline] withDockerContainer 09:17:14 prd-ubuntu20.04-docker-arm64-4c-16g-22017 does not seem to be running inside a container 09:17:14 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/2 -v /w/workspace/device-rest-go/2:/w/workspace/device-rest-go/2:rw,z -v /w/workspace/device-rest-go/2@tmp:/w/workspace/device-rest-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 09:17:15 $ docker top b7576dd9a2fdbdc5e42193565a8c1f6b68c20b8607c668681415cb3a5cb74821 -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 09:17:16 + make test 09:17:16 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out ./... 09:17:18 ? github.com/edgexfoundry/device-rest-go [no test files] 09:18:55 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 09:18:55 ok github.com/edgexfoundry/device-rest-go/driver 0.078s coverage: 55.2% of statements 09:18:55 WARNING: Linting skipped (not on x86_64 or linter not installed) 09:18:55 CGO_ENABLED=1 GO111MODULE=on go vet ./... 09:19:22 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 09:19:22 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 09:19:22 ./bin/test-attribution-txt.sh [Pipeline] echo 09:19:25 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 09:19:25 $ docker stop --time=1 b7576dd9a2fdbdc5e42193565a8c1f6b68c20b8607c668681415cb3a5cb74821 09:19:27 $ docker rm -f b7576dd9a2fdbdc5e42193565a8c1f6b68c20b8607c668681415cb3a5cb74821 [Pipeline] // withDockerContainer [Pipeline] sh 09:19:28 + sudo chown -R jenkins:jenkins . [Pipeline] stash 09:19:28 Warning: overwriting stash ‘coverage-report’ 09:19:28 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 09:19:29 + sudo chown -R jenkins:jenkins . [Pipeline] sh 09:19:29 + ls -al . 09:19:29 total 168 09:19:29 drwxrwxr-x 8 jenkins jenkins 4096 Apr 25 09:19 . 09:19:29 drwxrwxr-x 4 jenkins jenkins 4096 Apr 25 09:15 .. 09:19:29 -rw-rw-r-- 1 jenkins jenkins 151 Apr 25 09:15 .dockerignore 09:19:29 drwxrwxr-x 8 jenkins jenkins 4096 Apr 25 09:15 .git 09:19:29 drwxrwxr-x 3 jenkins jenkins 4096 Apr 25 09:15 .github 09:19:29 -rw-rw-r-- 1 jenkins jenkins 329 Apr 25 09:15 .gitignore 09:19:29 -rw-rw-r-- 1 jenkins jenkins 41 Apr 25 09:15 .golangci.yml 09:19:29 -rw-rw-r-- 1 jenkins jenkins 8330 Apr 25 09:15 Attribution.txt 09:19:29 -rw-rw-r-- 1 jenkins jenkins 7459 Apr 25 09:15 CHANGELOG.md 09:19:29 -rw-rw-r-- 1 jenkins jenkins 1672 Apr 25 09:15 Dockerfile 09:19:29 -rw-rw-r-- 1 jenkins jenkins 677 Apr 25 09:15 GOVERNANCE.md 09:19:29 -rw-rw-r-- 1 jenkins jenkins 680 Apr 25 09:15 Jenkinsfile 09:19:29 -rw-rw-r-- 1 jenkins jenkins 11340 Apr 25 09:15 LICENSE 09:19:29 -rw-rw-r-- 1 jenkins jenkins 1964 Apr 25 09:15 Makefile 09:19:29 -rw-rw-r-- 1 jenkins jenkins 620 Apr 25 09:15 OWNERS.md 09:19:29 -rw-rw-r-- 1 jenkins jenkins 8246 Apr 25 09:15 README.md 09:19:29 -rw-rw-r-- 1 jenkins jenkins 5 Apr 25 09:08 VERSION 09:19:29 drwxrwxr-x 2 jenkins jenkins 4096 Apr 25 09:15 bin 09:19:29 drwxrwxr-x 3 jenkins jenkins 4096 Apr 25 09:15 cmd 09:19:29 -rw-r--r-- 1 jenkins jenkins 9355 Apr 25 09:18 coverage.out 09:19:29 drwxrwxr-x 2 jenkins jenkins 4096 Apr 25 09:15 driver 09:19:29 -rw-rw-r-- 1 jenkins jenkins 3240 Apr 25 09:15 go.mod 09:19:29 -rw-rw-r-- 1 jenkins jenkins 34722 Apr 25 09:15 go.sum 09:19:29 drwxrwxr-x 3 jenkins jenkins 4096 Apr 25 09:15 snap 09:19:29 -rw-rw-r-- 1 jenkins jenkins 713 Apr 25 09:15 version.go [Pipeline] isUnix [Pipeline] sh 09:19:30 + docker build -t device-rest-arm64 -f Dockerfile --build-arg BASE=ci-base-image-arm64 --build-arg MAKE=make build --build-arg ARCH=arm64 --label git_sha=b84c888b2855b02e326e1c287c11f0c61e2064fb --label arch=arm64 --label version=0.0.0 . 09:19:30 Sending build context to Docker daemon 139.8kB 09:19:30 Step 1/25 : ARG BASE=golang:1.17-alpine3.15 09:19:30 Step 2/25 : FROM ${BASE} AS builder 09:19:30 ---> b9339e549484 09:19:30 Step 3/25 : ARG MAKE='make build' 09:19:30 ---> Running in 8df6c4202411 09:19:30 Removing intermediate container 8df6c4202411 09:19:30 ---> a0d283cfcfb6 09:19:30 Step 4/25 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 09:19:30 ---> Running in a64ddcbf6103 09:19:31 Removing intermediate container a64ddcbf6103 09:19:31 ---> 1b8660fc9f3a 09:19:31 Step 5/25 : ARG ALPINE_PKG_EXTRA="" 09:19:31 ---> Running in dd1b2bad1d11 09:19:31 Removing intermediate container dd1b2bad1d11 09:19:31 ---> 09bbb379ab79 09:19:31 Step 6/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 09:19:31 ---> Running in 872fff90d23c 09:19:33 Removing intermediate container 872fff90d23c 09:19:33 ---> 3aa22dab02e4 09:19:33 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 09:19:33 ---> Running in 49da2f0fd036 09:19:34 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 09:19:35 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 09:19:36 OK: 224 MiB in 56 packages 09:19:37 Removing intermediate container 49da2f0fd036 09:19:37 ---> c59916d53227 09:19:37 Step 8/25 : WORKDIR /device-rest-go 09:19:37 ---> Running in 71a6cd4a81a0 09:19:37 Removing intermediate container 71a6cd4a81a0 09:19:37 ---> a9af7689993b 09:19:37 Step 9/25 : COPY go.mod vendor* ./ 09:19:38 ---> a8749a7c2fab 09:19:38 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 09:19:38 ---> Running in aa889273c835 09:19:40 Removing intermediate container aa889273c835 09:19:40 ---> 2a903b91d4fd 09:19:40 Step 11/25 : COPY . . 09:19:41 ---> e855c91827ab 09:19:41 Step 12/25 : RUN $MAKE 09:19:41 ---> Running in 8c2d2a96d13d 09:19:42 CGO_ENABLED=1 GO111MODULE=on go build -ldflags "-linkmode=external -X github.com/edgexfoundry/device-rest-go.Version=0.0.0" -trimpath -mod=readonly -buildmode=pie -o cmd/device-rest ./cmd 09:21:49 Removing intermediate container 8c2d2a96d13d 09:21:49 ---> 0405594cbc35 09:21:49 Step 13/25 : FROM alpine:3.14 09:21:49 3.14: Pulling from library/alpine 09:21:49 455c02918c45: Pulling fs layer 09:21:49 455c02918c45: Verifying Checksum 09:21:49 455c02918c45: Download complete 09:21:49 455c02918c45: Pull complete 09:21:49 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 09:21:49 Status: Downloaded newer image for alpine:3.14 09:21:49 ---> ac73e934f311 09:21:49 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' 09:21:49 ---> Running in 1c7b1d895992 09:21:49 Removing intermediate container 1c7b1d895992 09:21:49 ---> 32cfd98d58bc 09:21:49 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 09:21:49 ---> Running in 2ed44325f913 09:21:49 Removing intermediate container 2ed44325f913 09:21:49 ---> 3f32a7782db9 09:21:49 Step 16/25 : RUN apk add --update --no-cache zeromq dumb-init 09:21:49 ---> Running in 0c82eecb8f99 09:21:49 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/aarch64/APKINDEX.tar.gz 09:21:49 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/aarch64/APKINDEX.tar.gz 09:21:49 (1/6) Installing dumb-init (1.2.5-r1) 09:21:49 (2/6) Installing libgcc (10.3.1_git20210424-r2) 09:21:49 (3/6) Installing libsodium (1.0.18-r0) 09:21:49 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 09:21:49 (5/6) Installing libzmq (4.3.4-r0) 09:21:49 (6/6) Installing zeromq (4.3.4-r0) 09:21:49 Executing busybox-1.33.1-r7.trigger 09:21:49 OK: 8 MiB in 20 packages 09:21:49 Removing intermediate container 0c82eecb8f99 09:21:49 ---> 030f746d0df5 09:21:49 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 09:21:49 ---> 0471e50ea906 09:21:49 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 09:21:49 ---> 69e7327572aa 09:21:49 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 09:21:49 ---> ccb6e5432c68 09:21:49 Step 20/25 : EXPOSE 59986 09:21:49 ---> Running in a0d618e31794 09:21:49 Removing intermediate container a0d618e31794 09:21:49 ---> 839d0b0abb3e 09:21:49 Step 21/25 : ENTRYPOINT ["/device-rest"] 09:21:49 ---> Running in 1c579436cbff 09:21:49 Removing intermediate container 1c579436cbff 09:21:49 ---> 8b739a42c4e0 09:21:49 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--confdir=/res", "--registry"] 09:21:49 ---> Running in 5bbc0ce2d1b9 09:21:50 Removing intermediate container 5bbc0ce2d1b9 09:21:50 ---> 1be32489e67b 09:21:50 Step 23/25 : LABEL arch=arm64 09:21:50 ---> Running in 812032b9ace7 09:21:50 Removing intermediate container 812032b9ace7 09:21:50 ---> caedfa3a1423 09:21:50 Step 24/25 : LABEL git_sha=b84c888b2855b02e326e1c287c11f0c61e2064fb 09:21:50 ---> Running in 4e5c9435e1a8 09:21:50 Removing intermediate container 4e5c9435e1a8 09:21:50 ---> cf28ddcb8314 09:21:50 Step 25/25 : LABEL version=0.0.0 09:21:50 ---> Running in 25724ed633ed 09:21:51 Removing intermediate container 25724ed633ed 09:21:51 ---> 4c4c4115c680 09:21:51 [Warning] One or more build-args [ARCH] were not consumed 09:21:51 Successfully built 4c4c4115c680 09:21:51 Successfully tagged device-rest-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 09:21:51 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 09:21:51 09:21:51 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] sh 09:21:51 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 09:21:52 arm64: Pulling from edgex-lftools-log-publisher 09:21:52 8998bd30e6a1: Pulling fs layer 09:21:52 04944245beec: Pulling fs layer 09:21:52 699f458cf7ca: Pulling fs layer 09:21:52 765212b225bb: Pulling fs layer 09:21:52 f23df028b6ca: Pulling fs layer 09:21:52 d65c8cfc05b1: Pulling fs layer 09:21:52 2437ff75d9bd: Pulling fs layer 09:21:52 f23df028b6ca: Waiting 09:21:52 d65c8cfc05b1: Waiting 09:21:52 2437ff75d9bd: Waiting 09:21:52 765212b225bb: Waiting 09:21:52 04944245beec: Download complete 09:21:52 765212b225bb: Verifying Checksum 09:21:52 765212b225bb: Download complete 09:21:52 f23df028b6ca: Verifying Checksum 09:21:52 f23df028b6ca: Download complete 09:21:52 d65c8cfc05b1: Verifying Checksum 09:21:52 d65c8cfc05b1: Download complete 09:21:52 699f458cf7ca: Verifying Checksum 09:21:52 699f458cf7ca: Download complete 09:21:52 8998bd30e6a1: Verifying Checksum 09:21:52 8998bd30e6a1: Download complete 09:21:55 2437ff75d9bd: Verifying Checksum 09:21:55 2437ff75d9bd: Download complete 09:21:56 8998bd30e6a1: Pull complete 09:21:57 04944245beec: Pull complete 09:21:58 699f458cf7ca: Pull complete 09:21:59 765212b225bb: Pull complete 09:22:00 f23df028b6ca: Pull complete 09:22:00 d65c8cfc05b1: Pull complete 09:22:15 2437ff75d9bd: Pull complete 09:22:15 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 09:22:15 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 09:22:15 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] withDockerContainer 09:22:15 prd-ubuntu20.04-docker-arm64-4c-16g-22017 does not seem to be running inside a container 09:22:15 $ 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-rest-go/2 -v /w/workspace/device-rest-go/2:/w/workspace/device-rest-go/2:rw,z -v /w/workspace/device-rest-go/2@tmp:/w/workspace/device-rest-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 09:22:18 $ docker top 43f8f51efd7a267d5bc74fb5641faa7245200f80df508bb331d05d0ac63263f5 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 09:22:19 ---> job-cost.sh 09:22:19 lf-activate-venv: SKIPPING 09:22:19 INFO: No Stack... 09:22:19 INFO: Retrieving Pricing Info for: v3-standard-4 09:22:20 INFO: Archiving Costs [Pipeline] sh 09:22:21 + cut -d, -f6 09:22:21 + cat /w/workspace/device-rest-go/2/archives/cost.csv [Pipeline] lock 09:22:21 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-177-2-stack-cost] 09:22:21 Resource [jenkins-edgexfoundry-device-rest-go-PR-177-2-stack-cost] did not exist. Created. 09:22:21 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-177-2-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 09:22:22 /w/workspace/device-rest-go/2@tmp/durable-0a8d9688/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 09:22:23 + echo total: 0.10999999940395355 [Pipeline] stash 09:22:23 Warning: overwriting stash ‘stack-cost’ 09:22:23 Stashed 1 file(s) [Pipeline] } 09:22:23 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-177-2-stack-cost] [Pipeline] // lock [Pipeline] } 09:22:23 $ docker stop --time=1 43f8f51efd7a267d5bc74fb5641faa7245200f80df508bb331d05d0ac63263f5 09:22:24 $ docker rm -f 43f8f51efd7a267d5bc74fb5641faa7245200f80df508bb331d05d0ac63263f5 [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 09:22:25 provisioning config files... 09:22:25 copy managed file [device-rest-go-codecov-token] to file:/w/workspace/gexfoundry_device-rest-go_PR-177@tmp/config5967222272152763885tmp [Pipeline] { [Pipeline] sh 09:22:25 + set +x 09:22:25 + curl -s https://codecov.io/bash 09:22:25 + bash -s -- 09:22:25 09:22:25 _____ _ 09:22:25 / ____| | | 09:22:25 | | ___ __| | ___ ___ _____ __ 09:22:25 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 09:22:25 | |___| (_) | (_| | __/ (_| (_) \ V / 09:22:25 \_____\___/ \__,_|\___|\___\___/ \_/ 09:22:25 Bash-1.0.6 09:22:25 09:22:25 09:22:25 ==> git version 2.25.1 found 09:22:25 ==> 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 09:22:25 Release-Date: 2020-01-08 09:22:25 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 09:22:25 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 09:22:25 ==> Jenkins CI detected. 09:22:25 current dir:  /w/workspace/gexfoundry_device-rest-go_PR-177 09:22:25 project root: . 09:22:25 --> token set from env 09:22:25 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 09:22:25 ==> Running gcov in . (disable via -X gcov) 09:22:25 ==> Python coveragepy not found 09:22:25 ==> Searching for coverage reports in: 09:22:25 + . 09:22:25 -> Found 1 reports 09:22:25 ==> Detecting git/mercurial file structure 09:22:25 ==> Reading reports 09:22:25 + ./coverage.out bytes=9355 09:22:25 ==> Appending adjustments 09:22:25 https://docs.codecov.io/docs/fixing-reports 09:22:25 + Found adjustments 09:22:25 ==> Gzipping contents 09:22:25 4.0K /tmp/codecov.s5TojJ.gz 09:22:25 ==> Uploading reports 09:22:25 url: https://codecov.io 09:22:25 query: branch=PR-177&commit=6526440654851b9be27fc0cb4b06c877d4fa80e5&build=2&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-177%2F2%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=177&job=&cmd_args= 09:22:25 -> Pinging Codecov 09:22:25 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=c51feb23-73ac-4f49-b3d1-d26df23137db&branch=PR-177&commit=6526440654851b9be27fc0cb4b06c877d4fa80e5&build=2&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-177%2F2%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=177&job=&cmd_args= 09:22:25 -> Uploading to 09:22:25 https://storage.googleapis.com/codecov/v4/raw/2022-04-25/4E5D53B4F1F92C436F7061BF334D961C/6526440654851b9be27fc0cb4b06c877d4fa80e5/6bcc32f5-c70a-40d3-a35a-5fe1b819ebfd.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20220425%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20220425T092225Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=f30de9322eb2300c340db023ed3e3187455d7488784429ee81249c1e02d8f9df 09:22:25 % Total % Received % Xferd Average Speed Time Time Time Current 09:22:25 Dload Upload Total Spent Left Speed 09:22:25 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 1806 0 0 100 1806 0 8641 --:--:-- --:--:-- --:--:-- 8641 09:22:25 -> Reports have been successfully queued for processing at https://codecov.io/github/edgexfoundry/device-rest-go/commit/6526440654851b9be27fc0cb4b06c877d4fa80e5 [Pipeline] } 09:22:25 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 09:22:26 + [ -d /w/workspace/gexfoundry_device-rest-go_PR-177/archives ] 09:22:26 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-177/archives 09:22:26 total 16 09:22:26 drwxr-xr-x 3 root root 4096 Apr 25 09:09 . 09:22:26 drwxrwxr-x 10 jenkins jenkins 4096 Apr 25 09:09 .. 09:22:26 drwxr-xr-x 2 root root 4096 Apr 25 09:09 cost 09:22:26 -rw-r--r-- 1 root root 85 Apr 25 09:09 cost.csv 09:22:26 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-rest-go_PR-177/archives 09:22:26 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-177/archives 09:22:26 total 16 09:22:26 drwxr-xr-x 3 jenkins jenkins 4096 Apr 25 09:09 . 09:22:26 drwxrwxr-x 10 jenkins jenkins 4096 Apr 25 09:09 .. 09:22:26 drwxr-xr-x 2 jenkins jenkins 4096 Apr 25 09:09 cost 09:22:26 -rw-r--r-- 1 jenkins jenkins 85 Apr 25 09:09 cost.csv [Pipeline] libraryResource [Pipeline] sh 09:22:26 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 09:22:27 ---> package-listing.sh 09:22:27 ++ facter osfamily 09:22:27 ++ tr '[:upper:]' '[:lower:]' 09:22:28 + OS_FAMILY=debian 09:22:28 + workspace=/w/workspace/gexfoundry_device-rest-go_PR-177 09:22:28 + START_PACKAGES=/tmp/packages_start.txt 09:22:28 + END_PACKAGES=/tmp/packages_end.txt 09:22:28 + DIFF_PACKAGES=/tmp/packages_diff.txt 09:22:28 + PACKAGES=/tmp/packages_start.txt 09:22:28 + '[' /w/workspace/gexfoundry_device-rest-go_PR-177 ']' 09:22:28 + PACKAGES=/tmp/packages_end.txt 09:22:28 + case "${OS_FAMILY}" in 09:22:28 + dpkg -l 09:22:28 + grep '^ii' 09:22:28 + '[' -f /tmp/packages_start.txt ']' 09:22:28 + '[' -f /tmp/packages_end.txt ']' 09:22:28 + diff /tmp/packages_start.txt /tmp/packages_end.txt 09:22:28 + '[' /w/workspace/gexfoundry_device-rest-go_PR-177 ']' 09:22:28 + mkdir -p /w/workspace/gexfoundry_device-rest-go_PR-177/archives/ 09:22:28 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/gexfoundry_device-rest-go_PR-177/archives/ [Pipeline] echo 09:22:28 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/gexfoundry_device-rest-go_PR-177/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 09:22:28 + facter operatingsystem [Pipeline] isUnix [Pipeline] sh 09:22:28 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 09:22:28 . [Pipeline] withDockerContainer 09:22:28 prd-ubuntu20.04-docker-8c-8g-21957 does not seem to be running inside a container 09:22:29 $ 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/gexfoundry_device-rest-go_PR-177/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/gexfoundry_device-rest-go_PR-177 -v /w/workspace/gexfoundry_device-rest-go_PR-177:/w/workspace/gexfoundry_device-rest-go_PR-177:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-177@tmp:/w/workspace/gexfoundry_device-rest-go_PR-177@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 09:22:29 $ docker top 4f499cbccf7499b21f0abec2cb22a7e20ebb7d4caec0ce8d73fce556aae8610c -eo pid,comm [Pipeline] { [Pipeline] sh 09:22:29 + touch /tmp/pre-build-complete [Pipeline] sh 09:22:29 + mkdir -p /var/log/sysstat [Pipeline] sh 09:22:30 + ls /var/log/sa-host 09:22:30 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 09:22:30 provisioning config files... 09:22:30 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-177@tmp/config8588978776440466995tmp [Pipeline] { [Pipeline] echo 09:22:30 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 09:22:30 ---> create-netrc.sh [Pipeline] } 09:22:30 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 09:22:30 ---> python-tools-install.sh [Pipeline] echo 09:22:30 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 09:22:31 ---> sudo-logs.sh 09:22:31 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 09:22:31 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 09:22:31 ---> job-cost.sh 09:22:31 lf-activate-venv: SKIPPING 09:22:31 DEBUG: total: 0.2199999988079071 09:22:31 INFO: Retrieving Stack Cost... 09:22:31 INFO: Retrieving Pricing Info for: v3-standard-8 09:22:32 INFO: Archiving Costs [Pipeline] echo 09:22:32 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 09:22:32 ---> logs-deploy.sh 09:22:32 lf-activate-venv: SKIPPING 09:22:32 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-177/2 09:22:32 INFO: archiving workspace using pattern(s): 09:22:33 Archives upload complete. 09:22:33 INFO: archiving logs to Nexus