Pull request #170 opened Connecting to https://api.github.com using edgex-jenkins github personal access token Connecting to https://api.github.com to check permissions of obtain list of farshidtz for edgexfoundry/device-rest-go Loading trusted files from base branch main at e20d54948958fbae002d4522b61cee1c213d8f02 rather than 45d15e48572e0caa6345190a64c138ea1aa2b231 Obtained Jenkinsfile from e20d54948958fbae002d4522b61cee1c213d8f02 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-ssh18107408529738480702.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-ssh4156012900353858333.key > git fetch --tags --progress -- origin +refs/heads/*:refs/remotes/origin/* # timeout=10 > git rev-parse refs/tags/stable^{commit} # timeout=10 Resolved tag stable revision c72b16708d6eed9a08be464a432ce22db7d90667 The recommended git tool is: git using credential edgex-jenkins-ssh Cloning the remote Git repository Cloning with configured refspecs honoured and with tags Cloning repository git@github.com:edgexfoundry/edgex-global-pipelines.git > git init /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-170/workspace@libs/edgex-global-pipelines # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/edgex-global-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-170/workspace@libs/edgex-global-pipelines@tmp/jenkins-gitclient-ssh13566279225950529567.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 > git config --add remote.origin.fetch +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Fetching with tags Fetching upstream changes from git@github.com:edgexfoundry/edgex-global-pipelines.git using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-170/workspace@libs/edgex-global-pipelines@tmp/jenkins-gitclient-ssh5505637555633795739.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision c72b16708d6eed9a08be464a432ce22db7d90667 (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f c72b16708d6eed9a08be464a432ce22db7d90667 # timeout=10 Commit message: "Merge pull request #378 from ernestojeda/ubuntu-20-changes" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 > git --version # timeout=10 > git --version # 'git version 2.16.6' Excluding src/test/ from checkout of git git@github.com:edgexfoundry/edgex-global-pipelines.git so that shared library test code cannot be accessed by Pipelines. To remove this log message, move the test code outside of src/. To restore the previous behavior that allowed access to files in src/test/, pass -Dorg.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.INCLUDE_SRC_TEST_IN_LIBRARIES=true to the java command used to start Jenkins. Loading library lf-pipelines@master Attempting to resolve master from remote references... > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /tmp/jenkins-gitclient-ssh11872984450570152514.key > git ls-remote -h -- git@github.com:lfit/releng-pipelines.git # timeout=10 Found match: refs/heads/master revision b3dada9287033e4e81bc68320e01fd57bef02650 The recommended git tool is: NONE using credential edgex-jenkins-ssh Cloning the remote Git repository Cloning with configured refspecs honoured and without tags Cloning repository git@github.com:lfit/releng-pipelines.git > git init /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-170/workspace@libs/lf-pipelines # timeout=10 Fetching upstream changes from git@github.com:lfit/releng-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-170/workspace@libs/lf-pipelines@tmp/jenkins-gitclient-ssh11556053763786803996.key > git fetch --no-tags --progress -- git@github.com:lfit/releng-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:lfit/releng-pipelines.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 Avoid second fetch Checking out Revision b3dada9287033e4e81bc68320e01fd57bef02650 (master) > git config core.sparsecheckout # timeout=10 > git checkout -f b3dada9287033e4e81bc68320e01fd57bef02650 # timeout=10 Commit message: "Fix: Update requirements.txt, update global-jjb" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 > git --version # timeout=10 > git --version # 'git version 2.16.6' fatal: bad object c72b16708d6eed9a08be464a432ce22db7d90667 Excluding src/test/ from checkout of git git@github.com:lfit/releng-pipelines.git so that shared library test code cannot be accessed by Pipelines. To remove this log message, move the test code outside of src/. To restore the previous behavior that allowed access to files in src/test/, pass -Dorg.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.INCLUDE_SRC_TEST_IN_LIBRARIES=true to the java command used to start Jenkins. [Pipeline] Start of Pipeline [Pipeline] echo ========================================================= [edgeXBuildGoApp] RAW Config: [project:device-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-11500 in /w/workspace/gexfoundry_device-rest-go_PR-170 [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-170 # 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 e20d54948958fbae002d4522b61cee1c213d8f02 into PR head commit 45d15e48572e0caa6345190a64c138ea1aa2b231 Merge succeeded, producing 45d15e48572e0caa6345190a64c138ea1aa2b231 Checking out Revision 45d15e48572e0caa6345190a64c138ea1aa2b231 (PR-170) > 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/170/head:refs/remotes/origin/PR-170 +refs/heads/main:refs/remotes/origin/main # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 45d15e48572e0caa6345190a64c138ea1aa2b231 # 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 e20d54948958fbae002d4522b61cee1c213d8f02 # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 45d15e48572e0caa6345190a64c138ea1aa2b231 # timeout=10 Commit message: "build(snap): source snap metadata from external repo" First time build. Skipping changelog. > git --version # timeout=10 > git --version # 'git version 2.25.1' fatal: bad object c72b16708d6eed9a08be464a432ce22db7d90667 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 20:22:14 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 20:22:15 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 20:22:15 ========================================================= 20:22:15 EdgeX Global Pipelines Version Info 20:22:15 ========================================================= [Pipeline] libraryResource [Pipeline] sh 20:22:16 ------------------- 20:22:16 stable info: 20:22:16 ------------------- 20:22:16 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 20:22:16 Commit SHA: c72b16708d6eed9a08be464a432ce22db7d90667 20:22:16 Message: update stable to v1.0.221 20:22:16 ------------------- 20:22:16 experimental info: 20:22:16 ------------------- 20:22:16 Commited By: **** collab-it+edgex@linuxfoundation.org 20:22:16 Commit SHA: c72b16708d6eed9a08be464a432ce22db7d90667 20:22:16 Message: update experimental to v1.0.221 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 20:22:16 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 20:22:16 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 20:22:16 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 20:22:17 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 20:22:17 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 20:22:17 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.17 [Pipeline] echo 20:22:17 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 20:22:17 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 20:22:17 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 20:22:17 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 20:22:17 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 20:22:17 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 20:22:17 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 20:22:17 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 20:22:17 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 20:22:17 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 20:22:17 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 20:22:17 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 20:22:17 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 20:22:17 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 20:22:17 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 20:22:17 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 20:22:17 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 20:22:17 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 20:22:17 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 20:22:17 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 20:22:17 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-170 [Pipeline] echo 20:22:18 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-170 [Pipeline] echo 20:22:18 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-170 [Pipeline] echo 20:22:18 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 45d15e48572e0caa6345190a64c138ea1aa2b231 [Pipeline] echo 20:22:18 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 45d15e4 [Pipeline] echo 20:22:18 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 20:22:18 provisioning config files... 20:22:18 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-170@tmp/config7697500105827762754tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:22:18 ---> docker-login.sh 20:22:18 nexus3.edgexfoundry.org:10001 20:22:18 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:22:18 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:22:18 Configure a credential helper to remove this warning. See 20:22:18 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:22:18 20:22:18 Login Succeeded 20:22:18 nexus3.edgexfoundry.org:10002 20:22:18 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:22:19 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:22:19 Configure a credential helper to remove this warning. See 20:22:19 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:22:19 20:22:19 Login Succeeded 20:22:19 nexus3.edgexfoundry.org:10003 20:22:19 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:22:19 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:22:19 Configure a credential helper to remove this warning. See 20:22:19 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:22:19 20:22:19 Login Succeeded 20:22:19 nexus3.edgexfoundry.org:10004 20:22:19 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:22:19 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:22:19 Configure a credential helper to remove this warning. See 20:22:19 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:22:19 20:22:19 Login Succeeded 20:22:19 docker.io 20:22:19 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:22:19 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:22:19 Configure a credential helper to remove this warning. See 20:22:19 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:22:19 20:22:19 Login Succeeded 20:22:19 ---> docker-login.sh ends [Pipeline] } 20:22:19 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 20:22:20 + git rev-list -1 --merges 45d15e48572e0caa6345190a64c138ea1aa2b231~1..45d15e48572e0caa6345190a64c138ea1aa2b231 [Pipeline] echo 20:22:20 -----------> git rev-list -1 --merges 45d15e48572e0caa6345190a64c138ea1aa2b231~1..45d15e48572e0caa6345190a64c138ea1aa2b231 45d15e48572e0caa6345190a64c138ea1aa2b231 [false] [Pipeline] sh 20:22:20 + git log --format=format:%s -1 45d15e48572e0caa6345190a64c138ea1aa2b231 [Pipeline] echo 20:22:20 ========================================================= 20:22:20 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 20:22:20 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 20:22:21 + git log --format=format:%s -1 45d15e48572e0caa6345190a64c138ea1aa2b231 [Pipeline] echo 20:22:21 [semverPrep] GIT_COMMIT: 45d15e48572e0caa6345190a64c138ea1aa2b231, Commit Message: build(snap): source snap metadata from external repo [Pipeline] echo 20:22:21 [semverPrep] This is not a build commit. [Pipeline] sh 20:22:21 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 20:22:21 + grep -v github /etc/ssh/ssh_known_hosts 20:22:21 + [ -e /tmp/ssh_known_hosts ] 20:22:21 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 20:22:21 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 20:22:21 + sudo tee -a /etc/ssh/ssh_known_hosts 20:22:21 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] sh 20:22:22 + docker inspect -f . nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 20:22:22 20:22:22 Error: No such object: nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] isUnix [Pipeline] sh 20:22:22 + docker pull nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 20:22:22 latest: Pulling from edgex-devops/git-semver 20:22:22 a0d0a0d46f8b: Pulling fs layer 20:22:22 3e5f54012d9b: Pulling fs layer 20:22:22 4c7163046ea9: Pulling fs layer 20:22:22 0c2d73faf560: Pulling fs layer 20:22:22 0c2d73faf560: Waiting 20:22:22 3e5f54012d9b: Verifying Checksum 20:22:22 3e5f54012d9b: Download complete 20:22:22 a0d0a0d46f8b: Verifying Checksum 20:22:22 a0d0a0d46f8b: Download complete 20:22:22 0c2d73faf560: Verifying Checksum 20:22:22 0c2d73faf560: Download complete 20:22:22 4c7163046ea9: Verifying Checksum 20:22:22 4c7163046ea9: Download complete 20:22:22 a0d0a0d46f8b: Pull complete 20:22:22 3e5f54012d9b: Pull complete 20:22:23 4c7163046ea9: Pull complete 20:22:23 0c2d73faf560: Pull complete 20:22:23 Digest: sha256:2751de6e655929dcbe46418c7769d9d992331b5b721eb968631a4166222929f9 20:22:23 Status: Downloaded newer image for nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 20:22:23 nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] withDockerContainer 20:22:23 prd-ubuntu20.04-docker-8c-8g-11500 does not seem to be running inside a container 20:22:23 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/gexfoundry_device-rest-go_PR-170 -v /w/workspace/gexfoundry_device-rest-go_PR-170:/w/workspace/gexfoundry_device-rest-go_PR-170:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-170@tmp:/w/workspace/gexfoundry_device-rest-go_PR-170@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest cat 20:22:24 $ docker top a40257ed2fd77fcf6a05ba3a3f6e0ae800b0e0fb1e095e1ceb8cedaa792cfeb2 -eo pid,comm [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 20:22:24 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 20:22:24 [ssh-agent] Looking for ssh-agent implementation... 20:22:24 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 20:22:24 $ docker exec a40257ed2fd77fcf6a05ba3a3f6e0ae800b0e0fb1e095e1ceb8cedaa792cfeb2 ssh-agent 20:22:24 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXEPkICe/agent.13 20:22:24 SSH_AGENT_PID=19 20:22:24 Running ssh-add (command line suppressed) 20:22:24 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-170@tmp/private_key_8196115958505347328.key (/w/workspace/gexfoundry_device-rest-go_PR-170@tmp/private_key_8196115958505347328.key) 20:22:24 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 20:22:25 + git tag --points-at HEAD [Pipeline] } 20:22:25 $ docker exec --env ******** --env ******** a40257ed2fd77fcf6a05ba3a3f6e0ae800b0e0fb1e095e1ceb8cedaa792cfeb2 ssh-agent -k 20:22:25 unset SSH_AUTH_SOCK; 20:22:25 unset SSH_AGENT_PID; 20:22:25 echo Agent pid 19 killed; 20:22:25 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 20:22:25 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 20:22:25 [ssh-agent] Looking for ssh-agent implementation... 20:22:25 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 20:22:25 $ docker exec a40257ed2fd77fcf6a05ba3a3f6e0ae800b0e0fb1e095e1ceb8cedaa792cfeb2 ssh-agent 20:22:25 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXKOOmjA/agent.51 20:22:25 SSH_AGENT_PID=59 20:22:25 Running ssh-add (command line suppressed) 20:22:25 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-170@tmp/private_key_5816111840501045131.key (/w/workspace/gexfoundry_device-rest-go_PR-170@tmp/private_key_5816111840501045131.key) 20:22:25 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 20:22:26 + git semver init 20:22:26 # -> Open(): unable to determine branch for HEAD 20:22:26 # $GIT_DIR = /w/workspace/gexfoundry_device-rest-go_PR-170/.git 20:22:26 # $GIT_WORK_TREE = /w/workspace/gexfoundry_device-rest-go_PR-170 20:22:26 # $SEMVER_REMOTE_NAME = origin 20:22:26 # $SEMVER_USER_EMAIL = collab-it+edgex@linuxfoundation.org 20:22:26 # $SEMVER_USER_NAME = edgex-jenkins 20:22:26 # $SEMVER_BRANCH = PR-170 20:22:26 # $SEMVER_TEMP = /tmp/semver-666765479 20:22:26 # git clone --branch semver git@github.com:edgexfoundry/device-rest-go.git $SEMVER_TEMP 20:22:27 # '/tmp/semver-666765479' -> '/w/workspace/gexfoundry_device-rest-go_PR-170/.semver' 20:22:27 # -> Force: false 20:22:27 # $SEMVER_DIR = /w/workspace/gexfoundry_device-rest-go_PR-170/.semver [Pipeline] } 20:22:28 $ docker exec --env ******** --env ******** a40257ed2fd77fcf6a05ba3a3f6e0ae800b0e0fb1e095e1ceb8cedaa792cfeb2 ssh-agent -k 20:22:28 unset SSH_AUTH_SOCK; 20:22:28 unset SSH_AGENT_PID; 20:22:28 echo Agent pid 59 killed; 20:22:28 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 20:22:28 + git semver [Pipeline] } 20:22:28 $ docker stop --time=1 a40257ed2fd77fcf6a05ba3a3f6e0ae800b0e0fb1e095e1ceb8cedaa792cfeb2 20:22:29 $ docker rm -f a40257ed2fd77fcf6a05ba3a3f6e0ae800b0e0fb1e095e1ceb8cedaa792cfeb2 [Pipeline] // withDockerContainer [Pipeline] sh 20:22:30 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 20:22:30 Stashed 1 file(s) [Pipeline] echo 20:22:30 [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 20:22:31 provisioning config files... 20:22:31 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-170@tmp/config223330657879966425tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:22:31 ---> docker-login.sh 20:22:31 nexus3.edgexfoundry.org:10001 20:22:31 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:22:31 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:22:31 Configure a credential helper to remove this warning. See 20:22:31 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:22:31 20:22:31 Login Succeeded 20:22:31 nexus3.edgexfoundry.org:10002 20:22:31 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:22:31 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:22:31 Configure a credential helper to remove this warning. See 20:22:31 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:22:31 20:22:31 Login Succeeded 20:22:31 nexus3.edgexfoundry.org:10003 20:22:31 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:22:31 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:22:31 Configure a credential helper to remove this warning. See 20:22:31 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:22:31 20:22:31 Login Succeeded 20:22:31 nexus3.edgexfoundry.org:10004 20:22:31 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:22:32 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:22:32 Configure a credential helper to remove this warning. See 20:22:32 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:22:32 20:22:32 Login Succeeded 20:22:32 docker.io 20:22:32 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:22:32 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:22:32 Configure a credential helper to remove this warning. See 20:22:32 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:22:32 20:22:32 Login Succeeded 20:22:32 ---> docker-login.sh ends [Pipeline] } 20:22:32 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 20:22:32 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 20:22:32 ========================================================= 20:22:32 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine] 20:22:32 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 20:22:33 + 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 . 20:22:33 Sending build context to Docker daemon 10.57MB 20:22:33 Step 1/12 : ARG BASE=golang:1.17-alpine3.15 20:22:33 Step 2/12 : FROM ${BASE} AS builder 20:22:33 1.17-alpine: Pulling from edgex-devops/edgex-golang-base 20:22:33 59bf1c3509f3: Pulling fs layer 20:22:33 666ba61612fd: Pulling fs layer 20:22:33 8ed8ca486205: Pulling fs layer 20:22:33 4fe6c5a15a65: Pulling fs layer 20:22:33 22a0e8bec74d: Pulling fs layer 20:22:33 640e595b4fbd: Pulling fs layer 20:22:33 763cafe07f6e: Pulling fs layer 20:22:33 0c0b528cf693: Pulling fs layer 20:22:33 10935f4eaf8b: Pulling fs layer 20:22:33 763cafe07f6e: Waiting 20:22:33 22a0e8bec74d: Waiting 20:22:33 0c0b528cf693: Waiting 20:22:33 10935f4eaf8b: Waiting 20:22:33 640e595b4fbd: Waiting 20:22:33 8ed8ca486205: Verifying Checksum 20:22:33 8ed8ca486205: Download complete 20:22:33 666ba61612fd: Download complete 20:22:33 22a0e8bec74d: Download complete 20:22:33 640e595b4fbd: Verifying Checksum 20:22:33 640e595b4fbd: Download complete 20:22:33 59bf1c3509f3: Download complete 20:22:33 763cafe07f6e: Verifying Checksum 20:22:33 763cafe07f6e: Download complete 20:22:33 0c0b528cf693: Verifying Checksum 20:22:33 0c0b528cf693: Download complete 20:22:33 59bf1c3509f3: Pull complete 20:22:33 666ba61612fd: Pull complete 20:22:33 8ed8ca486205: Pull complete 20:22:33 10935f4eaf8b: Verifying Checksum 20:22:33 4fe6c5a15a65: Verifying Checksum 20:22:33 4fe6c5a15a65: Download complete 20:22:38 4fe6c5a15a65: Pull complete 20:22:38 22a0e8bec74d: Pull complete 20:22:38 640e595b4fbd: Pull complete 20:22:38 763cafe07f6e: Pull complete 20:22:38 0c0b528cf693: Pull complete 20:22:40 10935f4eaf8b: Pull complete 20:22:40 Digest: sha256:fe2da51ced2bed6c5fc1d1038c2fbec5a5bb29cdcacce78977c37c66bfba8387 20:22:40 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine 20:22:40 ---> 99d49a6021b9 20:22:40 Step 3/12 : ARG MAKE='make build' 20:22:41 ---> Running in 2aa060ed1539 20:22:41 Removing intermediate container 2aa060ed1539 20:22:41 ---> 257295d3c51c 20:22:41 Step 4/12 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 20:22:41 ---> Running in da0077fc016d 20:22:41 Removing intermediate container da0077fc016d 20:22:41 ---> 93eb5a507084 20:22:41 Step 5/12 : ARG ALPINE_PKG_EXTRA="" 20:22:41 ---> Running in 89a24df84dfc 20:22:41 Removing intermediate container 89a24df84dfc 20:22:41 ---> fbb306017eeb 20:22:41 Step 6/12 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 20:22:41 ---> Running in ce78a04d2743 20:22:42 Removing intermediate container ce78a04d2743 20:22:42 ---> 15249d693c73 20:22:42 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 20:22:42 ---> Running in f490ff77eb7f 20:22:42 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 20:22:43 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 20:22:43 (1/4) Installing openssh-keygen (8.8_p1-r1) 20:22:43 (2/4) Installing libedit (20210910.3.1-r0) 20:22:43 (3/4) Installing openssh-client-common (8.8_p1-r1) 20:22:44 (4/4) Installing openssh-client-default (8.8_p1-r1) 20:22:44 Executing busybox-1.34.1-r3.trigger 20:22:44 OK: 224 MiB in 56 packages 20:22:44 Removing intermediate container f490ff77eb7f 20:22:44 ---> f6e8702d8c38 20:22:44 Step 8/12 : WORKDIR /device-rest-go 20:22:44 ---> Running in 856954a7a26f 20:22:44 Removing intermediate container 856954a7a26f 20:22:44 ---> 12dc6033a8e2 20:22:44 Step 9/12 : COPY go.mod vendor* ./ 20:22:44 ---> cffdfec02c1b 20:22:44 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 20:22:45 ---> Running in f272fdb3cc1e 20:22:46 Still waiting to schedule task 20:22:46 Waiting for next available executor on ‘ubuntu20.04-docker-arm64-4c-16g’ 20:22:59 Removing intermediate container f272fdb3cc1e 20:22:59 ---> aa7a9ce0e9c0 20:22:59 Step 11/12 : COPY . . 20:22:59 ---> 85d8edaeb7ea 20:22:59 Step 12/12 : RUN $MAKE 20:22:59 ---> Running in a85cf72321ef 20:22:59 noop 20:22:59 Removing intermediate container a85cf72321ef 20:22:59 ---> 3acc62fa6d9f 20:22:59 Successfully built 3acc62fa6d9f 20:22:59 Successfully tagged ci-base-image-x86_64:latest [Pipeline] isUnix [Pipeline] sh 20:23:00 + docker inspect -f . ci-base-image-x86_64 20:23:00 . [Pipeline] withDockerContainer 20:23:00 prd-ubuntu20.04-docker-8c-8g-11500 does not seem to be running inside a container 20:23:00 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-170 -v /w/workspace/gexfoundry_device-rest-go_PR-170:/w/workspace/gexfoundry_device-rest-go_PR-170:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-170@tmp:/w/workspace/gexfoundry_device-rest-go_PR-170@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 ******** ci-base-image-x86_64 cat 20:23:00 $ docker top 5417b3dc64039766f93e1262baa201f6ce95b07fc0b117324b2b3626f2bdbdaf -eo pid,comm [Pipeline] { [Pipeline] sh 20:23:01 + go version 20:23:01 go version go1.17.6 linux/amd64 [Pipeline] } 20:23:01 $ docker stop --time=1 5417b3dc64039766f93e1262baa201f6ce95b07fc0b117324b2b3626f2bdbdaf 20:23:02 $ docker rm -f 5417b3dc64039766f93e1262baa201f6ce95b07fc0b117324b2b3626f2bdbdaf [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 20:23:03 + docker inspect -f . ci-base-image-x86_64 20:23:03 . [Pipeline] withDockerContainer 20:23:03 prd-ubuntu20.04-docker-8c-8g-11500 does not seem to be running inside a container 20:23:03 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-170 -v /w/workspace/gexfoundry_device-rest-go_PR-170:/w/workspace/gexfoundry_device-rest-go_PR-170:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-170@tmp:/w/workspace/gexfoundry_device-rest-go_PR-170@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 ******** ci-base-image-x86_64 cat 20:23:03 $ docker top 6f2f008e0bb3d3890ce0e3015c6e3c865c1cf9b711224dc34f238cf0382e9b7c -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 20:23:04 + make test 20:23:04 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out ./... 20:23:04 ? github.com/edgexfoundry/device-rest-go [no test files] 20:23:12 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 20:23:12 ok github.com/edgexfoundry/device-rest-go/driver 0.017s coverage: 55.2% of statements 20:23:19 CGO_ENABLED=1 GO111MODULE=on go vet ./... 20:23:22 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 20:23:22 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 20:23:22 ./bin/test-attribution-txt.sh [Pipeline] echo 20:23:23 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 20:23:23 $ docker stop --time=1 6f2f008e0bb3d3890ce0e3015c6e3c865c1cf9b711224dc34f238cf0382e9b7c 20:23:24 $ docker rm -f 6f2f008e0bb3d3890ce0e3015c6e3c865c1cf9b711224dc34f238cf0382e9b7c [Pipeline] // withDockerContainer [Pipeline] sh 20:23:25 + sudo chown -R jenkins:jenkins . [Pipeline] stash 20:23:25 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 20:23:26 + sudo chown -R jenkins:jenkins . [Pipeline] sh 20:23:26 + ls -al . 20:23:26 total 172 20:23:26 drwxrwxr-x 9 jenkins jenkins 4096 Apr 7 20:23 . 20:23:26 drwxrwxr-x 4 jenkins jenkins 4096 Apr 7 20:22 .. 20:23:26 -rw-rw-r-- 1 jenkins jenkins 151 Apr 7 20:22 .dockerignore 20:23:26 drwxrwxr-x 8 jenkins jenkins 4096 Apr 7 20:22 .git 20:23:26 drwxrwxr-x 2 jenkins jenkins 4096 Apr 7 20:22 .github 20:23:26 -rw-rw-r-- 1 jenkins jenkins 329 Apr 7 20:22 .gitignore 20:23:26 -rw-rw-r-- 1 jenkins jenkins 41 Apr 7 20:22 .golangci.yml 20:23:26 drwx------ 3 jenkins jenkins 4096 Apr 7 20:22 .semver 20:23:26 -rw-rw-r-- 1 jenkins jenkins 8330 Apr 7 20:22 Attribution.txt 20:23:26 -rw-rw-r-- 1 jenkins jenkins 7459 Apr 7 20:22 CHANGELOG.md 20:23:26 -rw-rw-r-- 1 jenkins jenkins 1672 Apr 7 20:22 Dockerfile 20:23:26 -rw-rw-r-- 1 jenkins jenkins 677 Apr 7 20:22 GOVERNANCE.md 20:23:26 -rw-rw-r-- 1 jenkins jenkins 680 Apr 7 20:22 Jenkinsfile 20:23:26 -rw-rw-r-- 1 jenkins jenkins 11340 Apr 7 20:22 LICENSE 20:23:26 -rw-rw-r-- 1 jenkins jenkins 1578 Apr 7 20:22 Makefile 20:23:26 -rw-rw-r-- 1 jenkins jenkins 620 Apr 7 20:22 OWNERS.md 20:23:26 -rw-rw-r-- 1 jenkins jenkins 8246 Apr 7 20:22 README.md 20:23:26 -rw-rw-r-- 1 jenkins jenkins 5 Apr 7 20:22 VERSION 20:23:26 drwxrwxr-x 2 jenkins jenkins 4096 Apr 7 20:22 bin 20:23:26 drwxrwxr-x 3 jenkins jenkins 4096 Apr 7 20:22 cmd 20:23:26 -rw-r--r-- 1 jenkins jenkins 9355 Apr 7 20:23 coverage.out 20:23:26 drwxrwxr-x 2 jenkins jenkins 4096 Apr 7 20:22 driver 20:23:26 -rw-rw-r-- 1 jenkins jenkins 3240 Apr 7 20:22 go.mod 20:23:26 -rw-rw-r-- 1 jenkins jenkins 34722 Apr 7 20:22 go.sum 20:23:26 drwxrwxr-x 3 jenkins jenkins 4096 Apr 7 20:22 snap 20:23:26 -rw-rw-r-- 1 jenkins jenkins 713 Apr 7 20:22 version.go [Pipeline] isUnix [Pipeline] sh 20:23:27 + 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=45d15e48572e0caa6345190a64c138ea1aa2b231 --label arch=amd64 --label version=0.0.0 . 20:23:27 Sending build context to Docker daemon 10.58MB 20:23:27 Step 1/25 : ARG BASE=golang:1.17-alpine3.15 20:23:27 Step 2/25 : FROM ${BASE} AS builder 20:23:27 ---> 3acc62fa6d9f 20:23:27 Step 3/25 : ARG MAKE='make build' 20:23:27 ---> Running in db3e49de3688 20:23:27 Removing intermediate container db3e49de3688 20:23:27 ---> efc248be95f9 20:23:27 Step 4/25 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 20:23:27 ---> Running in 5c1e9e6ae2fa 20:23:27 Removing intermediate container 5c1e9e6ae2fa 20:23:27 ---> c92050c5467c 20:23:27 Step 5/25 : ARG ALPINE_PKG_EXTRA="" 20:23:27 ---> Running in ece00e3d64ab 20:23:27 Removing intermediate container ece00e3d64ab 20:23:27 ---> 1d878b0d9902 20:23:27 Step 6/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 20:23:27 ---> Running in 9a0066f8d757 20:23:28 Removing intermediate container 9a0066f8d757 20:23:28 ---> 1ba8d20a9abc 20:23:28 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 20:23:28 ---> Running in dc3889933c0d 20:23:28 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 20:23:29 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 20:23:29 OK: 224 MiB in 56 packages 20:23:30 Removing intermediate container dc3889933c0d 20:23:30 ---> 3a20db426ec7 20:23:30 Step 8/25 : WORKDIR /device-rest-go 20:23:30 ---> Running in 4f929880fe14 20:23:30 Removing intermediate container 4f929880fe14 20:23:30 ---> a40a448f31cc 20:23:30 Step 9/25 : COPY go.mod vendor* ./ 20:23:30 ---> 04809f2492b1 20:23:30 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 20:23:30 ---> Running in 6d3b63d38c8a 20:23:30 Removing intermediate container 6d3b63d38c8a 20:23:30 ---> 48156658bcf3 20:23:30 Step 11/25 : COPY . . 20:23:31 ---> c59864bb96c4 20:23:31 Step 12/25 : RUN $MAKE 20:23:31 ---> Running in 0fd8872411fb 20:23:31 CGO_ENABLED=1 GO111MODULE=on go build -ldflags "-X github.com/edgexfoundry/device-rest-go.Version=0.0.0" -o cmd/device-rest ./cmd 20:23:43 Removing intermediate container 0fd8872411fb 20:23:43 ---> 12a9291c9e9f 20:23:43 Step 13/25 : FROM alpine:3.14 20:23:43 3.14: Pulling from library/alpine 20:23:43 8663204ce13b: Pulling fs layer 20:23:43 8663204ce13b: Verifying Checksum 20:23:43 8663204ce13b: Download complete 20:23:43 8663204ce13b: Pull complete 20:23:43 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 20:23:43 Status: Downloaded newer image for alpine:3.14 20:23:43 ---> e04c818066af 20:23:43 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' 20:23:43 ---> Running in 7559d854fb82 20:23:43 Removing intermediate container 7559d854fb82 20:23:43 ---> 30955ae6ef8f 20:23:43 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 20:23:43 ---> Running in 0cccf873f772 20:23:43 Removing intermediate container 0cccf873f772 20:23:43 ---> b980e70a3470 20:23:43 Step 16/25 : RUN apk add --update --no-cache zeromq dumb-init 20:23:43 ---> Running in 8cea65e78fb0 20:23:44 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz 20:23:44 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz 20:23:44 (1/6) Installing dumb-init (1.2.5-r1) 20:23:44 (2/6) Installing libgcc (10.3.1_git20210424-r2) 20:23:44 (3/6) Installing libsodium (1.0.18-r0) 20:23:44 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 20:23:44 (5/6) Installing libzmq (4.3.4-r0) 20:23:44 (6/6) Installing zeromq (4.3.4-r0) 20:23:44 Executing busybox-1.33.1-r7.trigger 20:23:44 OK: 8 MiB in 20 packages 20:23:45 Removing intermediate container 8cea65e78fb0 20:23:45 ---> 1f707177e86a 20:23:45 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 20:23:45 ---> 68caa3411c9d 20:23:45 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 20:23:45 ---> f790583a7142 20:23:45 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 20:23:45 ---> 826b872500db 20:23:45 Step 20/25 : EXPOSE 59986 20:23:45 ---> Running in 94d407c0014f 20:23:45 Removing intermediate container 94d407c0014f 20:23:45 ---> 4abc419be4c2 20:23:45 Step 21/25 : ENTRYPOINT ["/device-rest"] 20:23:45 ---> Running in e0a2ed14e05c 20:23:45 Removing intermediate container e0a2ed14e05c 20:23:45 ---> d2178515a1bc 20:23:45 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--confdir=/res", "--registry"] 20:23:46 ---> Running in 7f4dd3bf12f3 20:23:46 Removing intermediate container 7f4dd3bf12f3 20:23:46 ---> 7509d1d47ebe 20:23:46 Step 23/25 : LABEL arch=amd64 20:23:46 ---> Running in 5a2750dfab1d 20:23:46 Removing intermediate container 5a2750dfab1d 20:23:46 ---> 9645be871c05 20:23:46 Step 24/25 : LABEL git_sha=45d15e48572e0caa6345190a64c138ea1aa2b231 20:23:46 ---> Running in 2d876af1c9ee 20:23:46 Removing intermediate container 2d876af1c9ee 20:23:46 ---> 915849c067e5 20:23:46 Step 25/25 : LABEL version=0.0.0 20:23:46 ---> Running in 8cabf855dc9d 20:23:46 Removing intermediate container 8cabf855dc9d 20:23:46 ---> 8cdcde0d219f 20:23:46 [Warning] One or more build-args [ARCH] were not consumed 20:23:46 Successfully built 8cdcde0d219f 20:23:46 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 20:23:47 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 20:23:47 20:23:47 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] sh 20:23:47 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 20:23:47 latest: Pulling from edgex-lftools-log-publisher 20:23:47 5eb5b503b376: Pulling fs layer 20:23:47 5c69ac0246d0: Pulling fs layer 20:23:47 ec43610c2a17: Pulling fs layer 20:23:47 3a2ae6a8a46f: Pulling fs layer 20:23:47 33b1e0a273af: Pulling fs layer 20:23:47 5d3b04190fa2: Pulling fs layer 20:23:47 2f39f015ded8: Pulling fs layer 20:23:47 2f39f015ded8: Waiting 20:23:47 5d3b04190fa2: Waiting 20:23:47 33b1e0a273af: Waiting 20:23:47 3a2ae6a8a46f: Waiting 20:23:47 5c69ac0246d0: Download complete 20:23:47 3a2ae6a8a46f: Verifying Checksum 20:23:47 3a2ae6a8a46f: Download complete 20:23:47 33b1e0a273af: Verifying Checksum 20:23:47 33b1e0a273af: Download complete 20:23:47 5d3b04190fa2: Verifying Checksum 20:23:47 5d3b04190fa2: Download complete 20:23:47 ec43610c2a17: Verifying Checksum 20:23:47 ec43610c2a17: Download complete 20:23:47 5eb5b503b376: Verifying Checksum 20:23:47 5eb5b503b376: Download complete 20:23:48 2f39f015ded8: Download complete 20:23:48 5eb5b503b376: Pull complete 20:23:48 5c69ac0246d0: Pull complete 20:23:49 ec43610c2a17: Pull complete 20:23:49 3a2ae6a8a46f: Pull complete 20:23:49 33b1e0a273af: Pull complete 20:23:49 5d3b04190fa2: Pull complete 20:23:53 2f39f015ded8: Pull complete 20:23:53 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 20:23:53 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 20:23:53 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] withDockerContainer 20:23:53 prd-ubuntu20.04-docker-8c-8g-11500 does not seem to be running inside a container 20:23:54 $ 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-170 -v /w/workspace/gexfoundry_device-rest-go_PR-170:/w/workspace/gexfoundry_device-rest-go_PR-170:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-170@tmp:/w/workspace/gexfoundry_device-rest-go_PR-170@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:10003/edgex-lftools-log-publisher:latest cat 20:23:55 $ docker top 0bc6405a8d42e593f261a1bf427d27829e11e3ddf392a3148e471467d09e1283 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:23:56 ---> job-cost.sh 20:23:56 lf-activate-venv: SKIPPING 20:23:56 INFO: No Stack... 20:23:56 INFO: Retrieving Pricing Info for: v3-standard-8 20:23:56 INFO: Archiving Costs [Pipeline] sh 20:23:56 + cat /w/workspace/gexfoundry_device-rest-go_PR-170/archives/cost.csv 20:23:56 + cut -d, -f6 [Pipeline] lock 20:23:56 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-170-1-stack-cost] 20:23:56 Resource [jenkins-edgexfoundry-device-rest-go-PR-170-1-stack-cost] did not exist. Created. 20:23:56 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-170-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 20:23:57 + echo total: 0.2199999988079071 [Pipeline] stash 20:23:57 Stashed 1 file(s) [Pipeline] } 20:23:57 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-170-1-stack-cost] [Pipeline] // lock [Pipeline] } 20:23:57 $ docker stop --time=1 0bc6405a8d42e593f261a1bf427d27829e11e3ddf392a3148e471467d09e1283 20:23:58 $ docker rm -f 0bc6405a8d42e593f261a1bf427d27829e11e3ddf392a3148e471467d09e1283 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 20:26:12 Running on prd-ubuntu20.04-docker-arm64-4c-16g-11501 in /w/workspace/gexfoundry_device-rest-go_PR-170 [Pipeline] { [Pipeline] ws 20:26:12 Running in /w/workspace/device-rest-go/1 [Pipeline] { [Pipeline] checkout 20:26:12 The recommended git tool is: git 20:26:19 using credential edgex-jenkins-ssh 20:26:19 Cloning the remote Git repository 20:26:19 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 20:26:19 > git init /w/workspace/device-rest-go/1 # timeout=10 20:26:20 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 20:26:20 > git --version # timeout=10 20:26:20 > git --version # 'git version 2.25.1' 20:26:20 using GIT_SSH to set credentials SSH Credentials for GitHub 20:26:20 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 20:26:22 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 20:26:22 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 20:26:22 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 20:26:22 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 20:26:22 using GIT_SSH to set credentials SSH Credentials for GitHub 20:26:22 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/170/head:refs/remotes/origin/PR-170 +refs/heads/main:refs/remotes/origin/main # timeout=10 20:26:23 Merging remotes/origin/main commit e20d54948958fbae002d4522b61cee1c213d8f02 into PR head commit 45d15e48572e0caa6345190a64c138ea1aa2b231 20:26:23 Merge succeeded, producing 45d15e48572e0caa6345190a64c138ea1aa2b231 20:26:23 Checking out Revision 45d15e48572e0caa6345190a64c138ea1aa2b231 (PR-170) 20:26:23 > git config core.sparsecheckout # timeout=10 20:26:23 > git checkout -f 45d15e48572e0caa6345190a64c138ea1aa2b231 # timeout=10 20:26:23 > git remote # timeout=10 20:26:23 > git config --get remote.origin.url # timeout=10 20:26:23 using GIT_SSH to set credentials SSH Credentials for GitHub 20:26:23 > git merge e20d54948958fbae002d4522b61cee1c213d8f02 # timeout=10 20:26:23 > git rev-parse HEAD^{commit} # timeout=10 20:26:23 > git config core.sparsecheckout # timeout=10 20:26:23 > git checkout -f 45d15e48572e0caa6345190a64c138ea1aa2b231 # timeout=10 20:26:28 Commit message: "build(snap): source snap metadata from external repo" 20:26:28 > git --version # timeout=10 20:26:28 > git --version # 'git version 2.25.1' 20:26:28 fatal: bad object c72b16708d6eed9a08be464a432ce22db7d90667 [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 20:26:29 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 20:26:29 % Total % Received % Xferd Average Speed Time Time Time Current 20:26:29 Dload Upload Total Spent Left Speed 20:26:29 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 11843 100 11843 0 0 45903 0 --:--:-- --:--:-- --:--:-- 45725 [Pipeline] sh 20:26:29 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 20:26:30 + + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"}sudo /etc/docker/daemon.json tee 20:26:30 /etc/docker/daemon.new 20:26:30 { 20:26:30 "registry-mirrors": [ 20:26:30 "https://nexus3.edgexfoundry.org:10001" 20:26:30 ], 20:26:30 "bip": "10.250.0.254/24", 20:26:30 "hosts": [ 20:26:30 "tcp://0.0.0.0:5555", 20:26:30 "unix:///var/run/docker.sock" 20:26:30 ], 20:26:30 "mtu": 1458, 20:26:30 "selinux-enabled": true, 20:26:30 "seccomp-profile": "/etc/docker/seccomp.json" 20:26:30 } [Pipeline] sh 20:26:30 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 20:26:30 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 20:26:49 provisioning config files... 20:26:49 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/1@tmp/config7585440440380189064tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:26:49 ---> docker-login.sh 20:26:49 nexus3.edgexfoundry.org:10001 20:26:50 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:26:50 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:26:50 Configure a credential helper to remove this warning. See 20:26:50 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:26:50 20:26:50 Login Succeeded 20:26:50 nexus3.edgexfoundry.org:10002 20:26:51 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:26:51 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:26:51 Configure a credential helper to remove this warning. See 20:26:51 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:26:51 20:26:51 Login Succeeded 20:26:51 nexus3.edgexfoundry.org:10003 20:26:51 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:26:51 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:26:51 Configure a credential helper to remove this warning. See 20:26:51 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:26:51 20:26:51 Login Succeeded 20:26:51 nexus3.edgexfoundry.org:10004 20:26:52 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:26:52 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:26:52 Configure a credential helper to remove this warning. See 20:26:52 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:26:52 20:26:52 Login Succeeded 20:26:52 docker.io 20:26:52 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:26:53 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:26:53 Configure a credential helper to remove this warning. See 20:26:53 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:26:53 20:26:53 Login Succeeded 20:26:53 ---> docker-login.sh ends [Pipeline] } 20:26:53 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 20:26:53 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 20:26:53 ========================================================= 20:26:53 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine] 20:26:53 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 20:26:54 + 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 . 20:26:54 Sending build context to Docker daemon 127.5kB 20:26:54 Step 1/12 : ARG BASE=golang:1.17-alpine3.15 20:26:54 Step 2/12 : FROM ${BASE} AS builder 20:26:54 1.17-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 20:26:54 9b3977197b4f: Pulling fs layer 20:26:54 1a89e8eeedd5: Pulling fs layer 20:26:54 94645a83ff95: Pulling fs layer 20:26:54 3f3a8bcf1eab: Pulling fs layer 20:26:54 0c92f367c5e7: Pulling fs layer 20:26:54 f7c0051592d6: Pulling fs layer 20:26:54 a227ed2f7395: Pulling fs layer 20:26:54 7b1c46037f91: Pulling fs layer 20:26:54 0c92f367c5e7: Waiting 20:26:54 f7c0051592d6: Waiting 20:26:54 a227ed2f7395: Waiting 20:26:54 7b1c46037f91: Waiting 20:26:54 3f3a8bcf1eab: Waiting 20:26:54 94645a83ff95: Verifying Checksum 20:26:54 94645a83ff95: Download complete 20:26:54 1a89e8eeedd5: Verifying Checksum 20:26:54 1a89e8eeedd5: Download complete 20:26:54 0c92f367c5e7: Verifying Checksum 20:26:54 0c92f367c5e7: Download complete 20:26:54 f7c0051592d6: Verifying Checksum 20:26:54 f7c0051592d6: Download complete 20:26:54 9b3977197b4f: Verifying Checksum 20:26:54 9b3977197b4f: Download complete 20:26:54 a227ed2f7395: Verifying Checksum 20:26:54 a227ed2f7395: Download complete 20:26:55 9b3977197b4f: Pull complete 20:26:56 1a89e8eeedd5: Pull complete 20:26:56 94645a83ff95: Pull complete 20:26:57 7b1c46037f91: Verifying Checksum 20:26:57 7b1c46037f91: Download complete 20:26:57 3f3a8bcf1eab: Download complete 20:27:10 3f3a8bcf1eab: Pull complete 20:27:10 0c92f367c5e7: Pull complete 20:27:10 f7c0051592d6: Pull complete 20:27:10 a227ed2f7395: Pull complete 20:27:16 7b1c46037f91: Pull complete 20:27:16 Digest: sha256:72afd471f6932efc3b14a707e53dab7ff98911016b282aefa83be7c085db88fe 20:27:16 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine 20:27:16 ---> f79e39bc4007 20:27:16 Step 3/12 : ARG MAKE='make build' 20:27:17 ---> Running in 5f0ec48360cd 20:27:17 Removing intermediate container 5f0ec48360cd 20:27:17 ---> 2c7eaf9fc363 20:27:17 Step 4/12 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 20:27:17 ---> Running in 6a85126e2624 20:27:17 Removing intermediate container 6a85126e2624 20:27:17 ---> c756a7f48fe8 20:27:17 Step 5/12 : ARG ALPINE_PKG_EXTRA="" 20:27:17 ---> Running in 135f8ed301ae 20:27:18 Removing intermediate container 135f8ed301ae 20:27:18 ---> ac755e47e5a6 20:27:18 Step 6/12 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 20:27:18 ---> Running in a9a9964d4790 20:27:20 Removing intermediate container a9a9964d4790 20:27:20 ---> e0c306ccd1cf 20:27:20 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 20:27:20 ---> Running in 067e74027212 20:27:20 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 20:27:21 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 20:27:22 (1/4) Installing openssh-keygen (8.8_p1-r1) 20:27:22 (2/4) Installing libedit (20210910.3.1-r0) 20:27:22 (3/4) Installing openssh-client-common (8.8_p1-r1) 20:27:23 (4/4) Installing openssh-client-default (8.8_p1-r1) 20:27:23 Executing busybox-1.34.1-r3.trigger 20:27:23 OK: 224 MiB in 56 packages 20:27:24 Removing intermediate container 067e74027212 20:27:24 ---> c7024ab6ce13 20:27:24 Step 8/12 : WORKDIR /device-rest-go 20:27:24 ---> Running in 829fd72eabd4 20:27:25 Removing intermediate container 829fd72eabd4 20:27:25 ---> ff15a7e2ba63 20:27:25 Step 9/12 : COPY go.mod vendor* ./ 20:27:27 ---> 3f1b775d83b4 20:27:27 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 20:27:27 ---> Running in 2edcd687700f 20:28:14 Removing intermediate container 2edcd687700f 20:28:14 ---> 09f2d3db18b9 20:28:14 Step 11/12 : COPY . . 20:28:14 ---> 3bd721925177 20:28:14 Step 12/12 : RUN $MAKE 20:28:14 ---> Running in 72ed45849d4d 20:28:14 noop 20:28:14 Removing intermediate container 72ed45849d4d 20:28:14 ---> f34eb743a00e 20:28:14 Successfully built f34eb743a00e 20:28:14 Successfully tagged ci-base-image-arm64:latest [Pipeline] isUnix [Pipeline] sh 20:28:14 + docker inspect -f . ci-base-image-arm64 20:28:14 . [Pipeline] withDockerContainer 20:28:14 prd-ubuntu20.04-docker-arm64-4c-16g-11501 does not seem to be running inside a container 20:28:14 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/1 -v /w/workspace/device-rest-go/1:/w/workspace/device-rest-go/1:rw,z -v /w/workspace/device-rest-go/1@tmp:/w/workspace/device-rest-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 20:28:16 $ docker top 8896a15d85f9d1e6cef8a593813296165e3af86346e349533f2791c367597ea8 -eo pid,comm [Pipeline] { [Pipeline] sh 20:28:17 + go version 20:28:17 go version go1.17.6 linux/arm64 [Pipeline] } 20:28:17 $ docker stop --time=1 8896a15d85f9d1e6cef8a593813296165e3af86346e349533f2791c367597ea8 20:28:19 $ docker rm -f 8896a15d85f9d1e6cef8a593813296165e3af86346e349533f2791c367597ea8 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 20:28:19 + docker inspect -f . ci-base-image-arm64 20:28:19 . [Pipeline] withDockerContainer 20:28:20 prd-ubuntu20.04-docker-arm64-4c-16g-11501 does not seem to be running inside a container 20:28:20 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/1 -v /w/workspace/device-rest-go/1:/w/workspace/device-rest-go/1:rw,z -v /w/workspace/device-rest-go/1@tmp:/w/workspace/device-rest-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 20:28:21 $ docker top c02f426844d00681ec5641a7ec8797ce6ff165005c46840ba6e569a64b08b2fe -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 20:28:22 + make test 20:28:22 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out ./... 20:28:23 ? github.com/edgexfoundry/device-rest-go [no test files] 20:29:45 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 20:29:45 ok github.com/edgexfoundry/device-rest-go/driver 0.072s coverage: 55.2% of statements 20:29:45 WARNING: Linting skipped (not on x86_64 or linter not installed) 20:29:45 CGO_ENABLED=1 GO111MODULE=on go vet ./... 20:30:08 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 20:30:08 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 20:30:08 ./bin/test-attribution-txt.sh [Pipeline] echo 20:30:08 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 20:30:08 $ docker stop --time=1 c02f426844d00681ec5641a7ec8797ce6ff165005c46840ba6e569a64b08b2fe 20:30:10 $ docker rm -f c02f426844d00681ec5641a7ec8797ce6ff165005c46840ba6e569a64b08b2fe [Pipeline] // withDockerContainer [Pipeline] sh 20:30:11 + sudo chown -R jenkins:jenkins . [Pipeline] stash 20:30:11 Warning: overwriting stash ‘coverage-report’ 20:30:11 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 20:30:12 + sudo chown -R jenkins:jenkins . [Pipeline] sh 20:30:12 + ls -al . 20:30:12 total 168 20:30:12 drwxrwxr-x 8 jenkins jenkins 4096 Apr 7 20:30 . 20:30:12 drwxrwxr-x 4 jenkins jenkins 4096 Apr 7 20:26 .. 20:30:12 -rw-rw-r-- 1 jenkins jenkins 151 Apr 7 20:26 .dockerignore 20:30:12 drwxrwxr-x 8 jenkins jenkins 4096 Apr 7 20:26 .git 20:30:12 drwxrwxr-x 2 jenkins jenkins 4096 Apr 7 20:26 .github 20:30:12 -rw-rw-r-- 1 jenkins jenkins 329 Apr 7 20:26 .gitignore 20:30:12 -rw-rw-r-- 1 jenkins jenkins 41 Apr 7 20:26 .golangci.yml 20:30:12 -rw-rw-r-- 1 jenkins jenkins 8330 Apr 7 20:26 Attribution.txt 20:30:12 -rw-rw-r-- 1 jenkins jenkins 7459 Apr 7 20:26 CHANGELOG.md 20:30:12 -rw-rw-r-- 1 jenkins jenkins 1672 Apr 7 20:26 Dockerfile 20:30:12 -rw-rw-r-- 1 jenkins jenkins 677 Apr 7 20:26 GOVERNANCE.md 20:30:12 -rw-rw-r-- 1 jenkins jenkins 680 Apr 7 20:26 Jenkinsfile 20:30:12 -rw-rw-r-- 1 jenkins jenkins 11340 Apr 7 20:26 LICENSE 20:30:12 -rw-rw-r-- 1 jenkins jenkins 1578 Apr 7 20:26 Makefile 20:30:12 -rw-rw-r-- 1 jenkins jenkins 620 Apr 7 20:26 OWNERS.md 20:30:12 -rw-rw-r-- 1 jenkins jenkins 8246 Apr 7 20:26 README.md 20:30:12 -rw-rw-r-- 1 jenkins jenkins 5 Apr 7 20:22 VERSION 20:30:12 drwxrwxr-x 2 jenkins jenkins 4096 Apr 7 20:26 bin 20:30:12 drwxrwxr-x 3 jenkins jenkins 4096 Apr 7 20:26 cmd 20:30:12 -rw-r--r-- 1 jenkins jenkins 9355 Apr 7 20:29 coverage.out 20:30:12 drwxrwxr-x 2 jenkins jenkins 4096 Apr 7 20:26 driver 20:30:12 -rw-rw-r-- 1 jenkins jenkins 3240 Apr 7 20:26 go.mod 20:30:12 -rw-rw-r-- 1 jenkins jenkins 34722 Apr 7 20:26 go.sum 20:30:12 drwxrwxr-x 3 jenkins jenkins 4096 Apr 7 20:26 snap 20:30:12 -rw-rw-r-- 1 jenkins jenkins 713 Apr 7 20:26 version.go [Pipeline] isUnix [Pipeline] sh 20:30:13 + 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=45d15e48572e0caa6345190a64c138ea1aa2b231 --label arch=arm64 --label version=0.0.0 . 20:30:13 Sending build context to Docker daemon 137.7kB 20:30:13 Step 1/25 : ARG BASE=golang:1.17-alpine3.15 20:30:13 Step 2/25 : FROM ${BASE} AS builder 20:30:13 ---> f34eb743a00e 20:30:13 Step 3/25 : ARG MAKE='make build' 20:30:13 ---> Running in 652d684d8972 20:30:14 Removing intermediate container 652d684d8972 20:30:14 ---> 2c51a83670e4 20:30:14 Step 4/25 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 20:30:14 ---> Running in 6eb02a847f92 20:30:14 Removing intermediate container 6eb02a847f92 20:30:14 ---> 9d149bd85ce0 20:30:14 Step 5/25 : ARG ALPINE_PKG_EXTRA="" 20:30:14 ---> Running in e44f4b9e12d9 20:30:14 Removing intermediate container e44f4b9e12d9 20:30:14 ---> d4406b8ff98b 20:30:14 Step 6/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 20:30:14 ---> Running in 5a60975117e4 20:30:16 Removing intermediate container 5a60975117e4 20:30:16 ---> 61bb392a63de 20:30:16 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 20:30:16 ---> Running in 18e3b0cdc357 20:30:17 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 20:30:18 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 20:30:19 OK: 224 MiB in 56 packages 20:30:20 Removing intermediate container 18e3b0cdc357 20:30:20 ---> 8cea7bbc0969 20:30:20 Step 8/25 : WORKDIR /device-rest-go 20:30:20 ---> Running in 40b9ad86401d 20:30:20 Removing intermediate container 40b9ad86401d 20:30:20 ---> d76cda0f51e0 20:30:20 Step 9/25 : COPY go.mod vendor* ./ 20:30:21 ---> 71f44773130c 20:30:21 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 20:30:21 ---> Running in c495c54ce374 20:30:23 Removing intermediate container c495c54ce374 20:30:23 ---> 1db85f16e9aa 20:30:23 Step 11/25 : COPY . . 20:30:23 ---> 780eae11aa7f 20:30:23 Step 12/25 : RUN $MAKE 20:30:23 ---> Running in bc987da96e04 20:30:24 CGO_ENABLED=1 GO111MODULE=on go build -ldflags "-X github.com/edgexfoundry/device-rest-go.Version=0.0.0" -o cmd/device-rest ./cmd 20:31:46 Removing intermediate container bc987da96e04 20:31:46 ---> 20fa42b0e7df 20:31:46 Step 13/25 : FROM alpine:3.14 20:31:46 3.14: Pulling from library/alpine 20:31:46 455c02918c45: Pulling fs layer 20:31:46 455c02918c45: Verifying Checksum 20:31:46 455c02918c45: Download complete 20:31:46 455c02918c45: Pull complete 20:31:46 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 20:31:46 Status: Downloaded newer image for alpine:3.14 20:31:46 ---> ac73e934f311 20:31:46 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' 20:31:46 ---> Running in 8eb800e08fb6 20:31:46 Removing intermediate container 8eb800e08fb6 20:31:46 ---> 3303e266e814 20:31:46 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 20:31:46 ---> Running in 6168fc729295 20:31:46 Removing intermediate container 6168fc729295 20:31:46 ---> 1b936841490c 20:31:46 Step 16/25 : RUN apk add --update --no-cache zeromq dumb-init 20:31:46 ---> Running in 7a5918c907d2 20:31:46 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/aarch64/APKINDEX.tar.gz 20:31:46 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/aarch64/APKINDEX.tar.gz 20:31:46 (1/6) Installing dumb-init (1.2.5-r1) 20:31:46 (2/6) Installing libgcc (10.3.1_git20210424-r2) 20:31:46 (3/6) Installing libsodium (1.0.18-r0) 20:31:46 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 20:31:46 (5/6) Installing libzmq (4.3.4-r0) 20:31:46 (6/6) Installing zeromq (4.3.4-r0) 20:31:46 Executing busybox-1.33.1-r7.trigger 20:31:46 OK: 8 MiB in 20 packages 20:31:46 Removing intermediate container 7a5918c907d2 20:31:46 ---> 1ae73ac73745 20:31:46 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 20:31:46 ---> d509d10032d8 20:31:46 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 20:31:46 ---> 12b443db5a89 20:31:46 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 20:31:46 ---> f8019a9cd888 20:31:46 Step 20/25 : EXPOSE 59986 20:31:46 ---> Running in 28a87335a11f 20:31:46 Removing intermediate container 28a87335a11f 20:31:46 ---> e7b88704440c 20:31:46 Step 21/25 : ENTRYPOINT ["/device-rest"] 20:31:46 ---> Running in 22ca36c33a2d 20:31:46 Removing intermediate container 22ca36c33a2d 20:31:46 ---> 9b74d2dea153 20:31:46 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--confdir=/res", "--registry"] 20:31:46 ---> Running in 333f0bd0f9e3 20:31:46 Removing intermediate container 333f0bd0f9e3 20:31:46 ---> 617d4f721512 20:31:46 Step 23/25 : LABEL arch=arm64 20:31:46 ---> Running in b41b53ec0083 20:31:47 Removing intermediate container b41b53ec0083 20:31:47 ---> a41d550fc38b 20:31:47 Step 24/25 : LABEL git_sha=45d15e48572e0caa6345190a64c138ea1aa2b231 20:31:47 ---> Running in ac3e332312c3 20:31:47 Removing intermediate container ac3e332312c3 20:31:47 ---> 780698761438 20:31:47 Step 25/25 : LABEL version=0.0.0 20:31:47 ---> Running in 03965c597303 20:31:47 Removing intermediate container 03965c597303 20:31:47 ---> b94d4507bca7 20:31:47 [Warning] One or more build-args [ARCH] were not consumed 20:31:47 Successfully built b94d4507bca7 20:31:47 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 20:31:48 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 20:31:48 20:31:48 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] sh 20:31:48 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 20:31:49 arm64: Pulling from edgex-lftools-log-publisher 20:31:49 8998bd30e6a1: Pulling fs layer 20:31:49 04944245beec: Pulling fs layer 20:31:49 699f458cf7ca: Pulling fs layer 20:31:49 765212b225bb: Pulling fs layer 20:31:49 f23df028b6ca: Pulling fs layer 20:31:49 d65c8cfc05b1: Pulling fs layer 20:31:49 2437ff75d9bd: Pulling fs layer 20:31:49 765212b225bb: Waiting 20:31:49 f23df028b6ca: Waiting 20:31:49 d65c8cfc05b1: Waiting 20:31:49 2437ff75d9bd: Waiting 20:31:49 04944245beec: Verifying Checksum 20:31:49 04944245beec: Download complete 20:31:49 765212b225bb: Verifying Checksum 20:31:49 765212b225bb: Download complete 20:31:49 f23df028b6ca: Download complete 20:31:49 d65c8cfc05b1: Verifying Checksum 20:31:49 d65c8cfc05b1: Download complete 20:31:49 699f458cf7ca: Verifying Checksum 20:31:49 699f458cf7ca: Download complete 20:31:49 8998bd30e6a1: Download complete 20:31:52 2437ff75d9bd: Verifying Checksum 20:31:52 2437ff75d9bd: Download complete 20:31:53 8998bd30e6a1: Pull complete 20:31:54 04944245beec: Pull complete 20:31:55 699f458cf7ca: Pull complete 20:31:55 765212b225bb: Pull complete 20:31:56 f23df028b6ca: Pull complete 20:31:57 d65c8cfc05b1: Pull complete 20:32:12 2437ff75d9bd: Pull complete 20:32:12 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 20:32:12 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 20:32:12 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] withDockerContainer 20:32:12 prd-ubuntu20.04-docker-arm64-4c-16g-11501 does not seem to be running inside a container 20:32:12 $ 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/1 -v /w/workspace/device-rest-go/1:/w/workspace/device-rest-go/1:rw,z -v /w/workspace/device-rest-go/1@tmp:/w/workspace/device-rest-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 20:32:15 $ docker top 8df9331b7c3df04e57f638e989a485992a1ae99b7fe7a4d90c0d00b49b838f10 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:32:16 ---> job-cost.sh 20:32:16 lf-activate-venv: SKIPPING 20:32:16 INFO: No Stack... 20:32:16 INFO: Retrieving Pricing Info for: v3-standard-4 20:32:17 INFO: Archiving Costs [Pipeline] sh 20:32:18 + cut -d, -f6 20:32:18 + cat /w/workspace/device-rest-go/1/archives/cost.csv [Pipeline] lock 20:32:18 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-170-1-stack-cost] 20:32:18 Resource [jenkins-edgexfoundry-device-rest-go-PR-170-1-stack-cost] did not exist. Created. 20:32:18 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-170-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 20:32:19 /w/workspace/device-rest-go/1@tmp/durable-3e411e5f/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 20:32:20 + echo total: 0.10999999940395355 [Pipeline] stash 20:32:20 Warning: overwriting stash ‘stack-cost’ 20:32:20 Stashed 1 file(s) [Pipeline] } 20:32:20 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-170-1-stack-cost] [Pipeline] // lock [Pipeline] } 20:32:20 $ docker stop --time=1 8df9331b7c3df04e57f638e989a485992a1ae99b7fe7a4d90c0d00b49b838f10 20:32:21 $ docker rm -f 8df9331b7c3df04e57f638e989a485992a1ae99b7fe7a4d90c0d00b49b838f10 [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 20:32:24 provisioning config files... 20:32:24 copy managed file [device-rest-go-codecov-token] to file:/w/workspace/gexfoundry_device-rest-go_PR-170@tmp/config5316574803338559077tmp [Pipeline] { [Pipeline] sh 20:32:24 + set +x 20:32:24 + curl -s https://codecov.io/bash 20:32:24 + bash -s -- 20:32:24 20:32:24 _____ _ 20:32:24 / ____| | | 20:32:24 | | ___ __| | ___ ___ _____ __ 20:32:24 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 20:32:24 | |___| (_) | (_| | __/ (_| (_) \ V / 20:32:24 \_____\___/ \__,_|\___|\___\___/ \_/ 20:32:24 Bash-1.0.6 20:32:24 20:32:24 20:32:24 ==> git version 2.25.1 found 20:32:24 ==> 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 20:32:24 Release-Date: 2020-01-08 20:32:24 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 20:32:24 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 20:32:24 ==> Jenkins CI detected. 20:32:24 current dir:  /w/workspace/gexfoundry_device-rest-go_PR-170 20:32:24 project root: . 20:32:24 --> token set from env 20:32:24 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 20:32:24 ==> Running gcov in . (disable via -X gcov) 20:32:24 ==> Python coveragepy not found 20:32:24 ==> Searching for coverage reports in: 20:32:24 + . 20:32:24 -> Found 1 reports 20:32:24 ==> Detecting git/mercurial file structure 20:32:24 ==> Reading reports 20:32:24 + ./coverage.out bytes=9355 20:32:24 ==> Appending adjustments 20:32:24 https://docs.codecov.io/docs/fixing-reports 20:32:24 + Found adjustments 20:32:24 ==> Gzipping contents 20:32:24 4.0K /tmp/codecov.Fj1CHt.gz 20:32:24 ==> Uploading reports 20:32:24 url: https://codecov.io 20:32:24 query: branch=PR-170&commit=45d15e48572e0caa6345190a64c138ea1aa2b231&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-170%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=170&job=&cmd_args= 20:32:24 -> Pinging Codecov 20:32:24 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=c51feb23-73ac-4f49-b3d1-d26df23137db&branch=PR-170&commit=45d15e48572e0caa6345190a64c138ea1aa2b231&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-170%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=170&job=&cmd_args= 20:32:24 -> Uploading to 20:32:24 https://storage.googleapis.com/codecov/v4/raw/2022-04-07/4E5D53B4F1F92C436F7061BF334D961C/45d15e48572e0caa6345190a64c138ea1aa2b231/3360cadd-3cb5-48a3-aab5-f5a67695090a.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20220407%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20220407T203224Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=4d5c1baed5d3bd214d966d450d07c5b00890d6d41a208b830cb80de69a86178a 20:32:24 % Total % Received % Xferd Average Speed Time Time Time Current 20:32:24 Dload Upload Total Spent Left Speed 20:32:25 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 1800 0 0 100 1800 0 8450 --:--:-- --:--:-- --:--:-- 8450 20:32:25 -> Reports have been successfully queued for processing at https://codecov.io/github/edgexfoundry/device-rest-go/commit/45d15e48572e0caa6345190a64c138ea1aa2b231 [Pipeline] } 20:32: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 20:32:27 + [ -d /w/workspace/gexfoundry_device-rest-go_PR-170/archives ] 20:32:27 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-170/archives 20:32:27 total 16 20:32:27 drwxr-xr-x 3 root root 4096 Apr 7 20:23 . 20:32:27 drwxrwxr-x 10 jenkins jenkins 4096 Apr 7 20:23 .. 20:32:27 drwxr-xr-x 2 root root 4096 Apr 7 20:23 cost 20:32:27 -rw-r--r-- 1 root root 85 Apr 7 20:23 cost.csv 20:32:27 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-rest-go_PR-170/archives 20:32:27 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-170/archives 20:32:27 total 16 20:32:27 drwxr-xr-x 3 jenkins jenkins 4096 Apr 7 20:23 . 20:32:27 drwxrwxr-x 10 jenkins jenkins 4096 Apr 7 20:23 .. 20:32:27 drwxr-xr-x 2 jenkins jenkins 4096 Apr 7 20:23 cost 20:32:27 -rw-r--r-- 1 jenkins jenkins 85 Apr 7 20:23 cost.csv [Pipeline] libraryResource [Pipeline] sh 20:32:27 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 20:32:28 ---> package-listing.sh 20:32:28 ++ facter osfamily 20:32:28 ++ tr '[:upper:]' '[:lower:]' 20:32:28 + OS_FAMILY=debian 20:32:28 + workspace=/w/workspace/gexfoundry_device-rest-go_PR-170 20:32:28 + START_PACKAGES=/tmp/packages_start.txt 20:32:28 + END_PACKAGES=/tmp/packages_end.txt 20:32:28 + DIFF_PACKAGES=/tmp/packages_diff.txt 20:32:28 + PACKAGES=/tmp/packages_start.txt 20:32:28 + '[' /w/workspace/gexfoundry_device-rest-go_PR-170 ']' 20:32:28 + PACKAGES=/tmp/packages_end.txt 20:32:28 + case "${OS_FAMILY}" in 20:32:28 + dpkg -l 20:32:28 + grep '^ii' 20:32:28 + '[' -f /tmp/packages_start.txt ']' 20:32:28 + '[' -f /tmp/packages_end.txt ']' 20:32:28 + diff /tmp/packages_start.txt /tmp/packages_end.txt 20:32:28 + '[' /w/workspace/gexfoundry_device-rest-go_PR-170 ']' 20:32:28 + mkdir -p /w/workspace/gexfoundry_device-rest-go_PR-170/archives/ 20:32:28 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/gexfoundry_device-rest-go_PR-170/archives/ [Pipeline] echo 20:32: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-170/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 20:32:28 + facter operatingsystem [Pipeline] isUnix [Pipeline] sh 20:32:29 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 20:32:29 . [Pipeline] withDockerContainer 20:32:29 prd-ubuntu20.04-docker-8c-8g-11500 does not seem to be running inside a container 20:32: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-170/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-170 -v /w/workspace/gexfoundry_device-rest-go_PR-170:/w/workspace/gexfoundry_device-rest-go_PR-170:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-170@tmp:/w/workspace/gexfoundry_device-rest-go_PR-170@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 20:32:29 $ docker top 50c9a7055d66224a1fe2e4fb8bf70d345bd04192d66cada9a8eab4aca97a498b -eo pid,comm [Pipeline] { [Pipeline] sh 20:32:30 + touch /tmp/pre-build-complete [Pipeline] sh 20:32:30 + mkdir -p /var/log/sysstat [Pipeline] sh 20:32:30 + ls /var/log/sa-host 20:32:30 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 20:32:31 provisioning config files... 20:32:31 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-170@tmp/config2919935599573264505tmp [Pipeline] { [Pipeline] echo 20:32:31 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 20:32:31 ---> create-netrc.sh [Pipeline] } 20:32:31 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 20:32:31 ---> python-tools-install.sh [Pipeline] echo 20:32:31 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 20:32:32 ---> sudo-logs.sh 20:32:32 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 20:32:32 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 20:32:32 ---> job-cost.sh 20:32:32 lf-activate-venv: SKIPPING 20:32:32 DEBUG: total: 0.2199999988079071 20:32:32 INFO: Retrieving Stack Cost... 20:32:33 INFO: Retrieving Pricing Info for: v3-standard-8 20:32:33 INFO: Archiving Costs [Pipeline] echo 20:32:33 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 20:32:34 ---> logs-deploy.sh 20:32:34 lf-activate-venv: SKIPPING 20:32:34 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-170/1 20:32:34 INFO: archiving workspace using pattern(s): 20:32:35 Archives upload complete. 20:32:35 INFO: archiving logs to Nexus