Pull request #171 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 jpwhitemn for edgexfoundry/device-rest-go Obtained Jenkinsfile from cc8c89e28386d6d850e32f2caf8d80f9ca2c0a64+e20d54948958fbae002d4522b61cee1c213d8f02 (1be931ebeafcc96b081258fa66943ad85aec6ac9) 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-ssh16811997005994325439.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-ssh9392178571940574618.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-171/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-171/workspace@libs/edgex-global-pipelines@tmp/jenkins-gitclient-ssh2885826785952791197.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-171/workspace@libs/edgex-global-pipelines@tmp/jenkins-gitclient-ssh14822167725634412673.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-ssh16147957779797285013.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-171/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-171/workspace@libs/lf-pipelines@tmp/jenkins-gitclient-ssh4043387756946191047.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 ‘prd-ubuntu20.04-docker-8c-8g-11518’ Running on prd-ubuntu20.04-docker-8c-8g-11521 in /w/workspace/gexfoundry_device-rest-go_PR-171 [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-171 # 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 cc8c89e28386d6d850e32f2caf8d80f9ca2c0a64 Merge succeeded, producing cc8c89e28386d6d850e32f2caf8d80f9ca2c0a64 Checking out Revision cc8c89e28386d6d850e32f2caf8d80f9ca2c0a64 (PR-171) > 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/171/head:refs/remotes/origin/PR-171 +refs/heads/main:refs/remotes/origin/main # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f cc8c89e28386d6d850e32f2caf8d80f9ca2c0a64 # 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 cc8c89e28386d6d850e32f2caf8d80f9ca2c0a64 # timeout=10 Commit message: "feat: enable security hardening" 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 23:41:29 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 23:41:30 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 23:41:30 ========================================================= 23:41:30 EdgeX Global Pipelines Version Info 23:41:30 ========================================================= [Pipeline] libraryResource [Pipeline] sh 23:41:31 ------------------- 23:41:31 stable info: 23:41:31 ------------------- 23:41:31 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 23:41:31 Commit SHA: c72b16708d6eed9a08be464a432ce22db7d90667 23:41:31 Message: update stable to v1.0.221 23:41:31 ------------------- 23:41:31 experimental info: 23:41:31 ------------------- 23:41:31 Commited By: **** collab-it+edgex@linuxfoundation.org 23:41:31 Commit SHA: c72b16708d6eed9a08be464a432ce22db7d90667 23:41:31 Message: update experimental to v1.0.221 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 23:41:31 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 23:41:32 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 23:41:32 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 23:41:32 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 23:41:32 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 23:41:32 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.17 [Pipeline] echo 23:41:32 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 23:41:32 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 23:41:32 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 23:41:32 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 23:41:32 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 23:41:32 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 23:41:32 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 23:41:32 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 23:41:32 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 23:41:32 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 23:41:32 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 23:41:32 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 23:41:32 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 23:41:32 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 23:41:32 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 23:41:32 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 23:41:32 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 23:41:32 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 23:41:32 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 23:41:33 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 23:41:33 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-171 [Pipeline] echo 23:41:33 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-171 [Pipeline] echo 23:41:33 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-171 [Pipeline] echo 23:41:33 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = cc8c89e28386d6d850e32f2caf8d80f9ca2c0a64 [Pipeline] echo 23:41:33 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = cc8c89e [Pipeline] echo 23:41:33 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 23:41:33 provisioning config files... 23:41:33 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-171@tmp/config6581531439340901933tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 23:41:33 ---> docker-login.sh 23:41:33 nexus3.edgexfoundry.org:10001 23:41:34 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 23:41:34 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 23:41:34 Configure a credential helper to remove this warning. See 23:41:34 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 23:41:34 23:41:34 Login Succeeded 23:41:34 nexus3.edgexfoundry.org:10002 23:41:34 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 23:41:34 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 23:41:34 Configure a credential helper to remove this warning. See 23:41:34 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 23:41:34 23:41:34 Login Succeeded 23:41:34 nexus3.edgexfoundry.org:10003 23:41:34 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 23:41:34 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 23:41:34 Configure a credential helper to remove this warning. See 23:41:34 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 23:41:34 23:41:34 Login Succeeded 23:41:34 nexus3.edgexfoundry.org:10004 23:41:34 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 23:41:34 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 23:41:34 Configure a credential helper to remove this warning. See 23:41:34 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 23:41:34 23:41:34 Login Succeeded 23:41:34 docker.io 23:41:34 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 23:41:34 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 23:41:34 Configure a credential helper to remove this warning. See 23:41:34 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 23:41:34 23:41:34 Login Succeeded 23:41:34 ---> docker-login.sh ends [Pipeline] } 23:41:34 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 23:41:35 + git rev-list -1 --merges cc8c89e28386d6d850e32f2caf8d80f9ca2c0a64~1..cc8c89e28386d6d850e32f2caf8d80f9ca2c0a64 [Pipeline] echo 23:41:35 -----------> git rev-list -1 --merges cc8c89e28386d6d850e32f2caf8d80f9ca2c0a64~1..cc8c89e28386d6d850e32f2caf8d80f9ca2c0a64 cc8c89e28386d6d850e32f2caf8d80f9ca2c0a64 [false] [Pipeline] sh 23:41:35 + git log --format=format:%s -1 cc8c89e28386d6d850e32f2caf8d80f9ca2c0a64 [Pipeline] echo 23:41:35 ========================================================= 23:41:35 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 23:41:35 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 23:41:36 + git log --format=format:%s -1 cc8c89e28386d6d850e32f2caf8d80f9ca2c0a64 [Pipeline] echo 23:41:36 [semverPrep] GIT_COMMIT: cc8c89e28386d6d850e32f2caf8d80f9ca2c0a64, Commit Message: feat: enable security hardening [Pipeline] echo 23:41:36 [semverPrep] This is not a build commit. [Pipeline] sh 23:41:36 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 23:41:36 + grep -v github /etc/ssh/ssh_known_hosts 23:41:36 + [ -e /tmp/ssh_known_hosts ] 23:41:36 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 23:41:36 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 23:41:36 + sudo tee -a /etc/ssh/ssh_known_hosts 23:41:36 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] sh 23:41:37 + docker inspect -f . nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 23:41:37 23:41:37 Error: No such object: nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] isUnix [Pipeline] sh 23:41:37 + docker pull nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 23:41:37 latest: Pulling from edgex-devops/git-semver 23:41:37 a0d0a0d46f8b: Pulling fs layer 23:41:37 3e5f54012d9b: Pulling fs layer 23:41:37 4c7163046ea9: Pulling fs layer 23:41:37 0c2d73faf560: Pulling fs layer 23:41:37 0c2d73faf560: Waiting 23:41:37 3e5f54012d9b: Verifying Checksum 23:41:37 3e5f54012d9b: Download complete 23:41:37 a0d0a0d46f8b: Verifying Checksum 23:41:37 a0d0a0d46f8b: Download complete 23:41:37 0c2d73faf560: Verifying Checksum 23:41:37 0c2d73faf560: Download complete 23:41:37 4c7163046ea9: Download complete 23:41:37 a0d0a0d46f8b: Pull complete 23:41:37 3e5f54012d9b: Pull complete 23:41:38 4c7163046ea9: Pull complete 23:41:38 0c2d73faf560: Pull complete 23:41:38 Digest: sha256:2751de6e655929dcbe46418c7769d9d992331b5b721eb968631a4166222929f9 23:41:38 Status: Downloaded newer image for nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 23:41:38 nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] withDockerContainer 23:41:38 prd-ubuntu20.04-docker-8c-8g-11521 does not seem to be running inside a container 23:41:38 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/gexfoundry_device-rest-go_PR-171 -v /w/workspace/gexfoundry_device-rest-go_PR-171:/w/workspace/gexfoundry_device-rest-go_PR-171:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-171@tmp:/w/workspace/gexfoundry_device-rest-go_PR-171@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest cat 23:41:39 $ docker top a5e47fa49899965161fa2ebf1cd0af63d2747bd033bd3fb8f8079f7e01ca278d -eo pid,comm [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 23:41:39 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 23:41:39 [ssh-agent] Looking for ssh-agent implementation... 23:41:39 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 23:41:39 $ docker exec a5e47fa49899965161fa2ebf1cd0af63d2747bd033bd3fb8f8079f7e01ca278d ssh-agent 23:41:39 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXepEaao/agent.13 23:41:39 SSH_AGENT_PID=19 23:41:39 Running ssh-add (command line suppressed) 23:41:39 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-171@tmp/private_key_1354128294122642710.key (/w/workspace/gexfoundry_device-rest-go_PR-171@tmp/private_key_1354128294122642710.key) 23:41:39 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 23:41:40 + git tag --points-at HEAD [Pipeline] } 23:41:40 $ docker exec --env ******** --env ******** a5e47fa49899965161fa2ebf1cd0af63d2747bd033bd3fb8f8079f7e01ca278d ssh-agent -k 23:41:40 unset SSH_AUTH_SOCK; 23:41:40 unset SSH_AGENT_PID; 23:41:40 echo Agent pid 19 killed; 23:41:40 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 23:41:40 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 23:41:40 [ssh-agent] Looking for ssh-agent implementation... 23:41:40 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 23:41:40 $ docker exec a5e47fa49899965161fa2ebf1cd0af63d2747bd033bd3fb8f8079f7e01ca278d ssh-agent 23:41:40 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXKdlLDn/agent.53 23:41:40 SSH_AGENT_PID=59 23:41:40 Running ssh-add (command line suppressed) 23:41:40 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-171@tmp/private_key_8316981530688773822.key (/w/workspace/gexfoundry_device-rest-go_PR-171@tmp/private_key_8316981530688773822.key) 23:41:40 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 23:41:41 + git semver init 23:41:41 # -> Open(): unable to determine branch for HEAD 23:41:41 # $GIT_DIR = /w/workspace/gexfoundry_device-rest-go_PR-171/.git 23:41:41 # $GIT_WORK_TREE = /w/workspace/gexfoundry_device-rest-go_PR-171 23:41:41 # $SEMVER_REMOTE_NAME = origin 23:41:41 # $SEMVER_USER_EMAIL = collab-it+edgex@linuxfoundation.org 23:41:41 # $SEMVER_USER_NAME = edgex-jenkins 23:41:41 # $SEMVER_BRANCH = PR-171 23:41:41 # $SEMVER_TEMP = /tmp/semver-199295004 23:41:41 # git clone --branch semver git@github.com:edgexfoundry/device-rest-go.git $SEMVER_TEMP 23:41:42 # '/tmp/semver-199295004' -> '/w/workspace/gexfoundry_device-rest-go_PR-171/.semver' 23:41:42 # -> Force: false 23:41:42 # $SEMVER_DIR = /w/workspace/gexfoundry_device-rest-go_PR-171/.semver [Pipeline] } 23:41:42 $ docker exec --env ******** --env ******** a5e47fa49899965161fa2ebf1cd0af63d2747bd033bd3fb8f8079f7e01ca278d ssh-agent -k 23:41:42 unset SSH_AUTH_SOCK; 23:41:42 unset SSH_AGENT_PID; 23:41:42 echo Agent pid 59 killed; 23:41:42 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 23:41:43 + git semver [Pipeline] } 23:41:43 $ docker stop --time=1 a5e47fa49899965161fa2ebf1cd0af63d2747bd033bd3fb8f8079f7e01ca278d 23:41:44 $ docker rm -f a5e47fa49899965161fa2ebf1cd0af63d2747bd033bd3fb8f8079f7e01ca278d [Pipeline] // withDockerContainer [Pipeline] sh 23:41:45 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 23:41:45 Stashed 1 file(s) [Pipeline] echo 23:41:45 [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 23:41:45 provisioning config files... 23:41:45 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-171@tmp/config2106652781470247348tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 23:41:46 ---> docker-login.sh 23:41:46 nexus3.edgexfoundry.org:10001 23:41:46 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 23:41:46 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 23:41:46 Configure a credential helper to remove this warning. See 23:41:46 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 23:41:46 23:41:46 Login Succeeded 23:41:46 nexus3.edgexfoundry.org:10002 23:41:46 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 23:41:46 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 23:41:46 Configure a credential helper to remove this warning. See 23:41:46 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 23:41:46 23:41:46 Login Succeeded 23:41:46 nexus3.edgexfoundry.org:10003 23:41:46 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 23:41:46 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 23:41:46 Configure a credential helper to remove this warning. See 23:41:46 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 23:41:46 23:41:46 Login Succeeded 23:41:46 nexus3.edgexfoundry.org:10004 23:41:46 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 23:41:46 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 23:41:46 Configure a credential helper to remove this warning. See 23:41:46 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 23:41:46 23:41:46 Login Succeeded 23:41:46 docker.io 23:41:46 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 23:41:47 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 23:41:47 Configure a credential helper to remove this warning. See 23:41:47 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 23:41:47 23:41:47 Login Succeeded 23:41:47 ---> docker-login.sh ends [Pipeline] } 23:41:47 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 23:41:47 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 23:41:47 ========================================================= 23:41:47 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine] 23:41:47 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 23:41:47 + 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 . 23:41:47 Sending build context to Docker daemon 10.57MB 23:41:47 Step 1/12 : ARG BASE=golang:1.17-alpine3.15 23:41:47 Step 2/12 : FROM ${BASE} AS builder 23:41:47 1.17-alpine: Pulling from edgex-devops/edgex-golang-base 23:41:47 59bf1c3509f3: Pulling fs layer 23:41:47 666ba61612fd: Pulling fs layer 23:41:47 8ed8ca486205: Pulling fs layer 23:41:47 4fe6c5a15a65: Pulling fs layer 23:41:47 22a0e8bec74d: Pulling fs layer 23:41:47 640e595b4fbd: Pulling fs layer 23:41:47 763cafe07f6e: Pulling fs layer 23:41:47 0c0b528cf693: Pulling fs layer 23:41:47 10935f4eaf8b: Pulling fs layer 23:41:47 640e595b4fbd: Waiting 23:41:47 0c0b528cf693: Waiting 23:41:47 763cafe07f6e: Waiting 23:41:47 4fe6c5a15a65: Waiting 23:41:47 10935f4eaf8b: Waiting 23:41:47 8ed8ca486205: Download complete 23:41:48 666ba61612fd: Verifying Checksum 23:41:48 666ba61612fd: Download complete 23:41:48 22a0e8bec74d: Verifying Checksum 23:41:48 22a0e8bec74d: Download complete 23:41:48 640e595b4fbd: Verifying Checksum 23:41:48 640e595b4fbd: Download complete 23:41:48 59bf1c3509f3: Verifying Checksum 23:41:48 59bf1c3509f3: Download complete 23:41:48 763cafe07f6e: Verifying Checksum 23:41:48 763cafe07f6e: Download complete 23:41:48 0c0b528cf693: Verifying Checksum 23:41:48 0c0b528cf693: Download complete 23:41:48 59bf1c3509f3: Pull complete 23:41:48 666ba61612fd: Pull complete 23:41:48 8ed8ca486205: Pull complete 23:41:48 10935f4eaf8b: Download complete 23:41:48 4fe6c5a15a65: Verifying Checksum 23:41:48 4fe6c5a15a65: Download complete 23:41:52 4fe6c5a15a65: Pull complete 23:41:52 22a0e8bec74d: Pull complete 23:41:52 640e595b4fbd: Pull complete 23:41:52 763cafe07f6e: Pull complete 23:41:53 0c0b528cf693: Pull complete 23:41:55 10935f4eaf8b: Pull complete 23:41:55 Digest: sha256:fe2da51ced2bed6c5fc1d1038c2fbec5a5bb29cdcacce78977c37c66bfba8387 23:41:55 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine 23:41:55 ---> 99d49a6021b9 23:41:55 Step 3/12 : ARG MAKE='make build' 23:41:56 ---> Running in 981f74ac1680 23:41:56 Removing intermediate container 981f74ac1680 23:41:56 ---> 24b6fa6aee23 23:41:56 Step 4/12 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 23:41:56 ---> Running in b8cffa1286e9 23:41:56 Removing intermediate container b8cffa1286e9 23:41:56 ---> 34023be5bc00 23:41:56 Step 5/12 : ARG ALPINE_PKG_EXTRA="" 23:41:57 ---> Running in eb474f3eab75 23:41:57 Removing intermediate container eb474f3eab75 23:41:57 ---> 8555f89cac61 23:41:57 Step 6/12 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 23:41:57 ---> Running in c6c606b0fab9 23:41:57 Removing intermediate container c6c606b0fab9 23:41:57 ---> 7756ebe034fc 23:41:57 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 23:41:57 ---> Running in b7dcaa8560fb 23:41:58 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 23:41:58 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 23:41:59 (1/4) Installing openssh-keygen (8.8_p1-r1) 23:41:59 (2/4) Installing libedit (20210910.3.1-r0) 23:41:59 (3/4) Installing openssh-client-common (8.8_p1-r1) 23:41:59 (4/4) Installing openssh-client-default (8.8_p1-r1) 23:41:59 Executing busybox-1.34.1-r3.trigger 23:41:59 OK: 224 MiB in 56 packages 23:42:00 Removing intermediate container b7dcaa8560fb 23:42:00 ---> 9e44b27d74bd 23:42:00 Step 8/12 : WORKDIR /device-rest-go 23:42:00 ---> Running in e334e96de7b1 23:42:00 Removing intermediate container e334e96de7b1 23:42:00 ---> 96d8598d329a 23:42:00 Step 9/12 : COPY go.mod vendor* ./ 23:42:00 ---> e0f875652f67 23:42:00 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 23:42:00 ---> Running in 47f01f77e51d 23:42:00 Still waiting to schedule task 23:42:00 ‘prd-ubuntu20.04-docker-arm64-4c-16g-11519’ is offline 23:42:18 Removing intermediate container 47f01f77e51d 23:42:18 ---> 692631417fa9 23:42:18 Step 11/12 : COPY . . 23:42:18 ---> a7cb77611ee3 23:42:18 Step 12/12 : RUN $MAKE 23:42:18 ---> Running in 441a8986424f 23:42:18 noop 23:42:18 Removing intermediate container 441a8986424f 23:42:18 ---> bc1cb0857237 23:42:18 Successfully built bc1cb0857237 23:42:18 Successfully tagged ci-base-image-x86_64:latest [Pipeline] isUnix [Pipeline] sh 23:42:19 + docker inspect -f . ci-base-image-x86_64 23:42:19 . [Pipeline] withDockerContainer 23:42:19 prd-ubuntu20.04-docker-8c-8g-11521 does not seem to be running inside a container 23:42:19 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-171 -v /w/workspace/gexfoundry_device-rest-go_PR-171:/w/workspace/gexfoundry_device-rest-go_PR-171:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-171@tmp:/w/workspace/gexfoundry_device-rest-go_PR-171@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 23:42:19 $ docker top 84ff71251a901f24cf0ec00758d270bbd17bb5cc2860c9a1eec19af5b65c9214 -eo pid,comm [Pipeline] { [Pipeline] sh 23:42:20 + go version 23:42:20 go version go1.17.6 linux/amd64 [Pipeline] } 23:42:20 $ docker stop --time=1 84ff71251a901f24cf0ec00758d270bbd17bb5cc2860c9a1eec19af5b65c9214 23:42:21 $ docker rm -f 84ff71251a901f24cf0ec00758d270bbd17bb5cc2860c9a1eec19af5b65c9214 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 23:42:22 + docker inspect -f . ci-base-image-x86_64 23:42:22 . [Pipeline] withDockerContainer 23:42:22 prd-ubuntu20.04-docker-8c-8g-11521 does not seem to be running inside a container 23:42:22 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-171 -v /w/workspace/gexfoundry_device-rest-go_PR-171:/w/workspace/gexfoundry_device-rest-go_PR-171:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-171@tmp:/w/workspace/gexfoundry_device-rest-go_PR-171@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 23:42:22 $ docker top 01abef924dcdc3a9368d3477fe8ffbc4a6a896a390a8cfdfd5397e0c0296ace7 -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 23:42:23 + make test 23:42:23 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out ./... 23:42:23 ? github.com/edgexfoundry/device-rest-go [no test files] 23:42:33 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 23:42:33 ok github.com/edgexfoundry/device-rest-go/driver 0.017s coverage: 55.2% of statements 23:42:40 CGO_ENABLED=1 GO111MODULE=on go vet ./... 23:42:43 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 23:42:43 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 23:42:43 ./bin/test-attribution-txt.sh [Pipeline] echo 23:42:44 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 23:42:44 $ docker stop --time=1 01abef924dcdc3a9368d3477fe8ffbc4a6a896a390a8cfdfd5397e0c0296ace7 23:42:45 $ docker rm -f 01abef924dcdc3a9368d3477fe8ffbc4a6a896a390a8cfdfd5397e0c0296ace7 [Pipeline] // withDockerContainer [Pipeline] sh 23:42:46 + sudo chown -R jenkins:jenkins . [Pipeline] stash 23:42:46 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 23:42:47 + sudo chown -R jenkins:jenkins . [Pipeline] sh 23:42:47 + ls -al . 23:42:47 total 172 23:42:47 drwxrwxr-x 9 jenkins jenkins 4096 Apr 7 23:42 . 23:42:47 drwxrwxr-x 4 jenkins jenkins 4096 Apr 7 23:41 .. 23:42:47 -rw-rw-r-- 1 jenkins jenkins 151 Apr 7 23:41 .dockerignore 23:42:47 drwxrwxr-x 8 jenkins jenkins 4096 Apr 7 23:41 .git 23:42:47 drwxrwxr-x 2 jenkins jenkins 4096 Apr 7 23:41 .github 23:42:47 -rw-rw-r-- 1 jenkins jenkins 329 Apr 7 23:41 .gitignore 23:42:47 -rw-rw-r-- 1 jenkins jenkins 41 Apr 7 23:41 .golangci.yml 23:42:47 drwx------ 3 jenkins jenkins 4096 Apr 7 23:41 .semver 23:42:47 -rw-rw-r-- 1 jenkins jenkins 8330 Apr 7 23:41 Attribution.txt 23:42:47 -rw-rw-r-- 1 jenkins jenkins 7459 Apr 7 23:41 CHANGELOG.md 23:42:47 -rw-rw-r-- 1 jenkins jenkins 1672 Apr 7 23:41 Dockerfile 23:42:47 -rw-rw-r-- 1 jenkins jenkins 677 Apr 7 23:41 GOVERNANCE.md 23:42:47 -rw-rw-r-- 1 jenkins jenkins 680 Apr 7 23:41 Jenkinsfile 23:42:47 -rw-rw-r-- 1 jenkins jenkins 11340 Apr 7 23:41 LICENSE 23:42:47 -rw-rw-r-- 1 jenkins jenkins 1964 Apr 7 23:41 Makefile 23:42:47 -rw-rw-r-- 1 jenkins jenkins 620 Apr 7 23:41 OWNERS.md 23:42:47 -rw-rw-r-- 1 jenkins jenkins 8246 Apr 7 23:41 README.md 23:42:47 -rw-rw-r-- 1 jenkins jenkins 5 Apr 7 23:41 VERSION 23:42:47 drwxrwxr-x 2 jenkins jenkins 4096 Apr 7 23:41 bin 23:42:47 drwxrwxr-x 3 jenkins jenkins 4096 Apr 7 23:41 cmd 23:42:47 -rw-r--r-- 1 jenkins jenkins 9355 Apr 7 23:42 coverage.out 23:42:47 drwxrwxr-x 2 jenkins jenkins 4096 Apr 7 23:41 driver 23:42:47 -rw-rw-r-- 1 jenkins jenkins 3240 Apr 7 23:41 go.mod 23:42:47 -rw-rw-r-- 1 jenkins jenkins 34722 Apr 7 23:41 go.sum 23:42:47 drwxrwxr-x 3 jenkins jenkins 4096 Apr 7 23:41 snap 23:42:47 -rw-rw-r-- 1 jenkins jenkins 713 Apr 7 23:41 version.go [Pipeline] isUnix [Pipeline] sh 23:42:47 + 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=cc8c89e28386d6d850e32f2caf8d80f9ca2c0a64 --label arch=amd64 --label version=0.0.0 . 23:42:47 Sending build context to Docker daemon 10.58MB 23:42:47 Step 1/25 : ARG BASE=golang:1.17-alpine3.15 23:42:47 Step 2/25 : FROM ${BASE} AS builder 23:42:47 ---> bc1cb0857237 23:42:47 Step 3/25 : ARG MAKE='make build' 23:42:47 ---> Running in b794937fb02f 23:42:48 Removing intermediate container b794937fb02f 23:42:48 ---> fd4ba54bcd92 23:42:48 Step 4/25 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 23:42:48 ---> Running in 6ba8047f48d8 23:42:48 Removing intermediate container 6ba8047f48d8 23:42:48 ---> bc2a63cfee15 23:42:48 Step 5/25 : ARG ALPINE_PKG_EXTRA="" 23:42:48 ---> Running in b826f30ba394 23:42:48 Removing intermediate container b826f30ba394 23:42:48 ---> 9b91efd819af 23:42:48 Step 6/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 23:42:48 ---> Running in 6f6d93fd8855 23:42:49 Removing intermediate container 6f6d93fd8855 23:42:49 ---> bae2c488c3ac 23:42:49 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 23:42:49 ---> Running in 1fd5d7de73d0 23:42:49 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 23:42:50 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 23:42:50 OK: 224 MiB in 56 packages 23:42:50 Removing intermediate container 1fd5d7de73d0 23:42:50 ---> f620a98a7081 23:42:50 Step 8/25 : WORKDIR /device-rest-go 23:42:50 ---> Running in de73d2e5b362 23:42:51 Removing intermediate container de73d2e5b362 23:42:51 ---> 8f78c63796a8 23:42:51 Step 9/25 : COPY go.mod vendor* ./ 23:42:51 ---> 068066ea6980 23:42:51 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 23:42:51 ---> Running in 252da94b681c 23:42:51 Removing intermediate container 252da94b681c 23:42:51 ---> 8ff17d7fd798 23:42:51 Step 11/25 : COPY . . 23:42:51 ---> f4f9be62f5ac 23:42:51 Step 12/25 : RUN $MAKE 23:42:52 ---> Running in 6f71c7baff1e 23:42:52 CGO_ENABLED=1 GO111MODULE=on go build -ldflags "-linkmode=external -X github.com/edgexfoundry/device-rest-go.Version=0.0.0" -trimpath -mod=readonly -buildmode=pie -o cmd/device-rest ./cmd 23:43:14 Removing intermediate container 6f71c7baff1e 23:43:14 ---> d13654b075d5 23:43:14 Step 13/25 : FROM alpine:3.14 23:43:14 3.14: Pulling from library/alpine 23:43:14 8663204ce13b: Pulling fs layer 23:43:14 8663204ce13b: Verifying Checksum 23:43:14 8663204ce13b: Pull complete 23:43:14 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 23:43:14 Status: Downloaded newer image for alpine:3.14 23:43:14 ---> e04c818066af 23:43:14 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' 23:43:14 ---> Running in fc97d7e6147d 23:43:14 Removing intermediate container fc97d7e6147d 23:43:14 ---> 2e9ffde543e4 23:43:14 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 23:43:14 ---> Running in 5f1d33e808bd 23:43:14 Removing intermediate container 5f1d33e808bd 23:43:14 ---> 133003a9c4c6 23:43:14 Step 16/25 : RUN apk add --update --no-cache zeromq dumb-init 23:43:14 ---> Running in 3cbbf9040779 23:43:14 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz 23:43:14 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz 23:43:14 (1/6) Installing dumb-init (1.2.5-r1) 23:43:14 (2/6) Installing libgcc (10.3.1_git20210424-r2) 23:43:14 (3/6) Installing libsodium (1.0.18-r0) 23:43:14 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 23:43:14 (5/6) Installing libzmq (4.3.4-r0) 23:43:14 (6/6) Installing zeromq (4.3.4-r0) 23:43:14 Executing busybox-1.33.1-r7.trigger 23:43:14 OK: 8 MiB in 20 packages 23:43:14 Removing intermediate container 3cbbf9040779 23:43:14 ---> 1dabcd24850f 23:43:14 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 23:43:14 ---> 5b18a742a3d2 23:43:14 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 23:43:14 ---> 3c44a5fe42c7 23:43:14 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 23:43:14 ---> 1986cd92ce9a 23:43:14 Step 20/25 : EXPOSE 59986 23:43:14 ---> Running in 88b0c14f9d64 23:43:14 Removing intermediate container 88b0c14f9d64 23:43:14 ---> cff1e360add7 23:43:14 Step 21/25 : ENTRYPOINT ["/device-rest"] 23:43:14 ---> Running in a99862eb31cb 23:43:15 Removing intermediate container a99862eb31cb 23:43:15 ---> 198cc0502eeb 23:43:15 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--confdir=/res", "--registry"] 23:43:15 ---> Running in 9d06a5afc308 23:43:15 Removing intermediate container 9d06a5afc308 23:43:15 ---> fd0f8255a04f 23:43:15 Step 23/25 : LABEL arch=amd64 23:43:15 ---> Running in c62a0faa37ff 23:43:15 Removing intermediate container c62a0faa37ff 23:43:15 ---> 141fc4bc4678 23:43:15 Step 24/25 : LABEL git_sha=cc8c89e28386d6d850e32f2caf8d80f9ca2c0a64 23:43:15 ---> Running in 27b8b9039bb3 23:43:15 Removing intermediate container 27b8b9039bb3 23:43:15 ---> 9967da48aa68 23:43:15 Step 25/25 : LABEL version=0.0.0 23:43:15 ---> Running in fa2e25cb4244 23:43:15 Removing intermediate container fa2e25cb4244 23:43:15 ---> 4a528142f98b 23:43:15 [Warning] One or more build-args [ARCH] were not consumed 23:43:15 Successfully built 4a528142f98b 23:43:15 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 23:43:16 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 23:43:16 23:43:16 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] sh 23:43:16 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 23:43:16 latest: Pulling from edgex-lftools-log-publisher 23:43:16 5eb5b503b376: Pulling fs layer 23:43:16 5c69ac0246d0: Pulling fs layer 23:43:16 ec43610c2a17: Pulling fs layer 23:43:16 3a2ae6a8a46f: Pulling fs layer 23:43:16 33b1e0a273af: Pulling fs layer 23:43:16 5d3b04190fa2: Pulling fs layer 23:43:16 2f39f015ded8: Pulling fs layer 23:43:16 3a2ae6a8a46f: Waiting 23:43:16 33b1e0a273af: Waiting 23:43:16 5d3b04190fa2: Waiting 23:43:16 2f39f015ded8: Waiting 23:43:16 5c69ac0246d0: Download complete 23:43:16 3a2ae6a8a46f: Download complete 23:43:16 33b1e0a273af: Verifying Checksum 23:43:16 33b1e0a273af: Download complete 23:43:16 5d3b04190fa2: Download complete 23:43:17 ec43610c2a17: Verifying Checksum 23:43:17 ec43610c2a17: Download complete 23:43:17 5eb5b503b376: Verifying Checksum 23:43:17 5eb5b503b376: Download complete 23:43:17 2f39f015ded8: Download complete 23:43:18 5eb5b503b376: Pull complete 23:43:18 5c69ac0246d0: Pull complete 23:43:19 ec43610c2a17: Pull complete 23:43:19 3a2ae6a8a46f: Pull complete 23:43:19 33b1e0a273af: Pull complete 23:43:19 5d3b04190fa2: Pull complete 23:43:24 2f39f015ded8: Pull complete 23:43:24 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 23:43:24 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 23:43:24 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] withDockerContainer 23:43:24 prd-ubuntu20.04-docker-8c-8g-11521 does not seem to be running inside a container 23:43:24 $ 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-171 -v /w/workspace/gexfoundry_device-rest-go_PR-171:/w/workspace/gexfoundry_device-rest-go_PR-171:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-171@tmp:/w/workspace/gexfoundry_device-rest-go_PR-171@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 23:43:26 $ docker top 7b8f8518b2e5042187e85120f388f274392415055a6b8c90170db96830756b01 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 23:43:26 ---> job-cost.sh 23:43:26 lf-activate-venv: SKIPPING 23:43:26 INFO: No Stack... 23:43:27 INFO: Retrieving Pricing Info for: v3-standard-8 23:43:27 INFO: Archiving Costs [Pipeline] sh 23:43:28 + cat /w/workspace/gexfoundry_device-rest-go_PR-171/archives/cost.csv 23:43:28 + cut -d, -f6 [Pipeline] lock 23:43:28 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-171-1-stack-cost] 23:43:28 Resource [jenkins-edgexfoundry-device-rest-go-PR-171-1-stack-cost] did not exist. Created. 23:43:28 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-171-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 23:43:28 + echo total: 0.2199999988079071 [Pipeline] stash 23:43:28 Stashed 1 file(s) [Pipeline] } 23:43:28 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-171-1-stack-cost] [Pipeline] // lock [Pipeline] } 23:43:28 $ docker stop --time=1 7b8f8518b2e5042187e85120f388f274392415055a6b8c90170db96830756b01 23:43:29 $ docker rm -f 7b8f8518b2e5042187e85120f388f274392415055a6b8c90170db96830756b01 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 23:43:38 Running on prd-ubuntu20.04-docker-arm64-4c-16g-11522 in /w/workspace/gexfoundry_device-rest-go_PR-171 [Pipeline] { [Pipeline] ws 23:43:38 Running in /w/workspace/device-rest-go/1 [Pipeline] { [Pipeline] checkout 23:43:38 The recommended git tool is: git 23:43:46 using credential edgex-jenkins-ssh 23:43:46 Cloning the remote Git repository 23:43:46 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 23:43:46 > git init /w/workspace/device-rest-go/1 # timeout=10 23:43:46 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 23:43:46 > git --version # timeout=10 23:43:46 > git --version # 'git version 2.25.1' 23:43:46 using GIT_SSH to set credentials SSH Credentials for GitHub 23:43:46 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 23:43:49 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 23:43:49 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 23:43:50 Merging remotes/origin/main commit e20d54948958fbae002d4522b61cee1c213d8f02 into PR head commit cc8c89e28386d6d850e32f2caf8d80f9ca2c0a64 23:43:50 Merge succeeded, producing cc8c89e28386d6d850e32f2caf8d80f9ca2c0a64 23:43:50 Checking out Revision cc8c89e28386d6d850e32f2caf8d80f9ca2c0a64 (PR-171) 23:43:49 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 23:43:49 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 23:43:49 using GIT_SSH to set credentials SSH Credentials for GitHub 23:43:49 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/171/head:refs/remotes/origin/PR-171 +refs/heads/main:refs/remotes/origin/main # timeout=10 23:43:50 > git config core.sparsecheckout # timeout=10 23:43:50 > git checkout -f cc8c89e28386d6d850e32f2caf8d80f9ca2c0a64 # timeout=10 23:43:50 > git remote # timeout=10 23:43:50 > git config --get remote.origin.url # timeout=10 23:43:50 using GIT_SSH to set credentials SSH Credentials for GitHub 23:43:50 > git merge e20d54948958fbae002d4522b61cee1c213d8f02 # timeout=10 23:43:50 > git rev-parse HEAD^{commit} # timeout=10 23:43:50 > git config core.sparsecheckout # timeout=10 23:43:50 > git checkout -f cc8c89e28386d6d850e32f2caf8d80f9ca2c0a64 # timeout=10 23:43:54 Commit message: "feat: enable security hardening" 23:43:54 > git --version # timeout=10 23:43:54 > git --version # 'git version 2.25.1' 23:43:54 fatal: bad object c72b16708d6eed9a08be464a432ce22db7d90667 [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 23:43:55 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 23:43:55 % Total % Received % Xferd Average Speed Time Time Time Current 23:43:55 Dload Upload Total Spent Left Speed 23:43:55 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 11843 100 11843 0 0 65071 0 --:--:-- --:--:-- --:--:-- 65071 [Pipeline] sh 23:43:56 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 23:43:56 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 23:43:56 + sudo tee /etc/docker/daemon.new 23:43:56 { 23:43:56 "registry-mirrors": [ 23:43:56 "https://nexus3.edgexfoundry.org:10001" 23:43:56 ], 23:43:56 "bip": "10.250.0.254/24", 23:43:56 "hosts": [ 23:43:56 "tcp://0.0.0.0:5555", 23:43:56 "unix:///var/run/docker.sock" 23:43:56 ], 23:43:56 "mtu": 1458, 23:43:56 "selinux-enabled": true, 23:43:56 "seccomp-profile": "/etc/docker/seccomp.json" 23:43:56 } [Pipeline] sh 23:43:57 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 23:43:57 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 23:44:16 provisioning config files... 23:44:16 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/1@tmp/config2267610705158463944tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 23:44:16 ---> docker-login.sh 23:44:16 nexus3.edgexfoundry.org:10001 23:44:17 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 23:44:17 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 23:44:17 Configure a credential helper to remove this warning. See 23:44:17 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 23:44:17 23:44:17 Login Succeeded 23:44:17 nexus3.edgexfoundry.org:10002 23:44:17 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 23:44:18 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 23:44:18 Configure a credential helper to remove this warning. See 23:44:18 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 23:44:18 23:44:18 Login Succeeded 23:44:18 nexus3.edgexfoundry.org:10003 23:44:18 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 23:44:18 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 23:44:18 Configure a credential helper to remove this warning. See 23:44:18 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 23:44:18 23:44:18 Login Succeeded 23:44:18 nexus3.edgexfoundry.org:10004 23:44:18 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 23:44:18 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 23:44:18 Configure a credential helper to remove this warning. See 23:44:18 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 23:44:18 23:44:18 Login Succeeded 23:44:18 docker.io 23:44:19 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 23:44:19 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 23:44:19 Configure a credential helper to remove this warning. See 23:44:19 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 23:44:19 23:44:19 Login Succeeded 23:44:19 ---> docker-login.sh ends [Pipeline] } 23:44:19 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 23:44:19 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 23:44:19 ========================================================= 23:44:19 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine] 23:44:19 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 23:44:20 + 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 . 23:44:20 Sending build context to Docker daemon 127.5kB 23:44:20 Step 1/12 : ARG BASE=golang:1.17-alpine3.15 23:44:20 Step 2/12 : FROM ${BASE} AS builder 23:44:20 1.17-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 23:44:20 9b3977197b4f: Pulling fs layer 23:44:20 1a89e8eeedd5: Pulling fs layer 23:44:20 94645a83ff95: Pulling fs layer 23:44:20 3f3a8bcf1eab: Pulling fs layer 23:44:20 0c92f367c5e7: Pulling fs layer 23:44:20 f7c0051592d6: Pulling fs layer 23:44:20 a227ed2f7395: Pulling fs layer 23:44:20 7b1c46037f91: Pulling fs layer 23:44:20 3f3a8bcf1eab: Waiting 23:44:20 0c92f367c5e7: Waiting 23:44:20 f7c0051592d6: Waiting 23:44:20 a227ed2f7395: Waiting 23:44:20 7b1c46037f91: Waiting 23:44:20 94645a83ff95: Download complete 23:44:20 1a89e8eeedd5: Download complete 23:44:20 0c92f367c5e7: Verifying Checksum 23:44:20 0c92f367c5e7: Download complete 23:44:20 f7c0051592d6: Verifying Checksum 23:44:20 f7c0051592d6: Download complete 23:44:20 9b3977197b4f: Download complete 23:44:20 a227ed2f7395: Verifying Checksum 23:44:20 a227ed2f7395: Download complete 23:44:21 9b3977197b4f: Pull complete 23:44:22 1a89e8eeedd5: Pull complete 23:44:22 94645a83ff95: Pull complete 23:44:22 7b1c46037f91: Verifying Checksum 23:44:22 7b1c46037f91: Download complete 23:44:23 3f3a8bcf1eab: Download complete 23:44:35 3f3a8bcf1eab: Pull complete 23:44:35 0c92f367c5e7: Pull complete 23:44:35 f7c0051592d6: Pull complete 23:44:35 a227ed2f7395: Pull complete 23:44:42 7b1c46037f91: Pull complete 23:44:42 Digest: sha256:72afd471f6932efc3b14a707e53dab7ff98911016b282aefa83be7c085db88fe 23:44:42 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine 23:44:42 ---> f79e39bc4007 23:44:42 Step 3/12 : ARG MAKE='make build' 23:44:42 ---> Running in 26823f67e24c 23:44:42 Removing intermediate container 26823f67e24c 23:44:42 ---> 068ce9f2c48a 23:44:42 Step 4/12 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 23:44:42 ---> Running in aa901c9a1665 23:44:43 Removing intermediate container aa901c9a1665 23:44:43 ---> f357495a2c5b 23:44:43 Step 5/12 : ARG ALPINE_PKG_EXTRA="" 23:44:43 ---> Running in f5b601d637f2 23:44:43 Removing intermediate container f5b601d637f2 23:44:43 ---> a3209610c9d8 23:44:43 Step 6/12 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 23:44:43 ---> Running in 788090566c7d 23:44:45 Removing intermediate container 788090566c7d 23:44:45 ---> 2917f41772d8 23:44:45 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 23:44:45 ---> Running in 9b0b2fde3a8a 23:44:46 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 23:44:47 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 23:44:48 (1/4) Installing openssh-keygen (8.8_p1-r1) 23:44:48 (2/4) Installing libedit (20210910.3.1-r0) 23:44:48 (3/4) Installing openssh-client-common (8.8_p1-r1) 23:44:48 (4/4) Installing openssh-client-default (8.8_p1-r1) 23:44:48 Executing busybox-1.34.1-r3.trigger 23:44:48 OK: 224 MiB in 56 packages 23:44:49 Removing intermediate container 9b0b2fde3a8a 23:44:49 ---> 410f21c7f17c 23:44:49 Step 8/12 : WORKDIR /device-rest-go 23:44:49 ---> Running in ce792ae1dec5 23:44:49 Removing intermediate container ce792ae1dec5 23:44:49 ---> 191188c78791 23:44:49 Step 9/12 : COPY go.mod vendor* ./ 23:44:50 ---> 58207df2adcb 23:44:50 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 23:44:50 ---> Running in de02a03f959d 23:45:37 Removing intermediate container de02a03f959d 23:45:37 ---> 999df62b0cf1 23:45:37 Step 11/12 : COPY . . 23:45:37 ---> 4d045c6743fe 23:45:37 Step 12/12 : RUN $MAKE 23:45:37 ---> Running in b046a81577eb 23:45:37 noop 23:45:37 Removing intermediate container b046a81577eb 23:45:37 ---> 204d40dedc60 23:45:37 Successfully built 204d40dedc60 23:45:37 Successfully tagged ci-base-image-arm64:latest [Pipeline] isUnix [Pipeline] sh 23:45:38 + docker inspect -f . ci-base-image-arm64 23:45:38 . [Pipeline] withDockerContainer 23:45:38 prd-ubuntu20.04-docker-arm64-4c-16g-11522 does not seem to be running inside a container 23:45:38 $ 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 23:45:39 $ docker top be3e9f6e09b47a5b250672a9ecdfe1f3f5b62287d2146e2b4d87a982e2568af4 -eo pid,comm [Pipeline] { [Pipeline] sh 23:45:40 + go version 23:45:40 go version go1.17.6 linux/arm64 [Pipeline] } 23:45:40 $ docker stop --time=1 be3e9f6e09b47a5b250672a9ecdfe1f3f5b62287d2146e2b4d87a982e2568af4 23:45:42 $ docker rm -f be3e9f6e09b47a5b250672a9ecdfe1f3f5b62287d2146e2b4d87a982e2568af4 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 23:45:43 + docker inspect -f . ci-base-image-arm64 23:45:43 . [Pipeline] withDockerContainer 23:45:43 prd-ubuntu20.04-docker-arm64-4c-16g-11522 does not seem to be running inside a container 23:45:43 $ 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 23:45:45 $ docker top 5ded40eb0c0eaa987e46ec9e5c78e47befbd13e9680236c0d1d61c665af4e144 -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 23:45:46 + make test 23:45:46 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out ./... 23:45:47 ? github.com/edgexfoundry/device-rest-go [no test files] 23:47:09 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 23:47:09 ok github.com/edgexfoundry/device-rest-go/driver 0.067s coverage: 55.2% of statements 23:47:09 WARNING: Linting skipped (not on x86_64 or linter not installed) 23:47:09 CGO_ENABLED=1 GO111MODULE=on go vet ./... 23:47:27 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 23:47:27 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 23:47:27 ./bin/test-attribution-txt.sh [Pipeline] echo 23:47:29 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 23:47:29 $ docker stop --time=1 5ded40eb0c0eaa987e46ec9e5c78e47befbd13e9680236c0d1d61c665af4e144 23:47:30 $ docker rm -f 5ded40eb0c0eaa987e46ec9e5c78e47befbd13e9680236c0d1d61c665af4e144 [Pipeline] // withDockerContainer [Pipeline] sh 23:47:31 + sudo chown -R jenkins:jenkins . [Pipeline] stash 23:47:31 Warning: overwriting stash ‘coverage-report’ 23:47:32 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 23:47:33 + sudo chown -R jenkins:jenkins . [Pipeline] sh 23:47:33 + ls -al . 23:47:33 total 168 23:47:33 drwxrwxr-x 8 jenkins jenkins 4096 Apr 7 23:47 . 23:47:33 drwxrwxr-x 4 jenkins jenkins 4096 Apr 7 23:43 .. 23:47:33 -rw-rw-r-- 1 jenkins jenkins 151 Apr 7 23:43 .dockerignore 23:47:33 drwxrwxr-x 8 jenkins jenkins 4096 Apr 7 23:43 .git 23:47:33 drwxrwxr-x 2 jenkins jenkins 4096 Apr 7 23:43 .github 23:47:33 -rw-rw-r-- 1 jenkins jenkins 329 Apr 7 23:43 .gitignore 23:47:33 -rw-rw-r-- 1 jenkins jenkins 41 Apr 7 23:43 .golangci.yml 23:47:33 -rw-rw-r-- 1 jenkins jenkins 8330 Apr 7 23:43 Attribution.txt 23:47:33 -rw-rw-r-- 1 jenkins jenkins 7459 Apr 7 23:43 CHANGELOG.md 23:47:33 -rw-rw-r-- 1 jenkins jenkins 1672 Apr 7 23:43 Dockerfile 23:47:33 -rw-rw-r-- 1 jenkins jenkins 677 Apr 7 23:43 GOVERNANCE.md 23:47:33 -rw-rw-r-- 1 jenkins jenkins 680 Apr 7 23:43 Jenkinsfile 23:47:33 -rw-rw-r-- 1 jenkins jenkins 11340 Apr 7 23:43 LICENSE 23:47:33 -rw-rw-r-- 1 jenkins jenkins 1964 Apr 7 23:43 Makefile 23:47:33 -rw-rw-r-- 1 jenkins jenkins 620 Apr 7 23:43 OWNERS.md 23:47:33 -rw-rw-r-- 1 jenkins jenkins 8246 Apr 7 23:43 README.md 23:47:33 -rw-rw-r-- 1 jenkins jenkins 5 Apr 7 23:41 VERSION 23:47:33 drwxrwxr-x 2 jenkins jenkins 4096 Apr 7 23:43 bin 23:47:33 drwxrwxr-x 3 jenkins jenkins 4096 Apr 7 23:43 cmd 23:47:33 -rw-r--r-- 1 jenkins jenkins 9355 Apr 7 23:47 coverage.out 23:47:33 drwxrwxr-x 2 jenkins jenkins 4096 Apr 7 23:43 driver 23:47:33 -rw-rw-r-- 1 jenkins jenkins 3240 Apr 7 23:43 go.mod 23:47:33 -rw-rw-r-- 1 jenkins jenkins 34722 Apr 7 23:43 go.sum 23:47:33 drwxrwxr-x 3 jenkins jenkins 4096 Apr 7 23:43 snap 23:47:33 -rw-rw-r-- 1 jenkins jenkins 713 Apr 7 23:43 version.go [Pipeline] isUnix [Pipeline] sh 23:47:33 + 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=cc8c89e28386d6d850e32f2caf8d80f9ca2c0a64 --label arch=arm64 --label version=0.0.0 . 23:47:33 Sending build context to Docker daemon 137.7kB 23:47:34 Step 1/25 : ARG BASE=golang:1.17-alpine3.15 23:47:34 Step 2/25 : FROM ${BASE} AS builder 23:47:34 ---> 204d40dedc60 23:47:34 Step 3/25 : ARG MAKE='make build' 23:47:34 ---> Running in 9ded15eb92c0 23:47:34 Removing intermediate container 9ded15eb92c0 23:47:34 ---> bf00a55bd41f 23:47:34 Step 4/25 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 23:47:34 ---> Running in 507df7f51d1a 23:47:34 Removing intermediate container 507df7f51d1a 23:47:34 ---> bcd5992bca1d 23:47:34 Step 5/25 : ARG ALPINE_PKG_EXTRA="" 23:47:34 ---> Running in 05de51e5d617 23:47:35 Removing intermediate container 05de51e5d617 23:47:35 ---> f735d6cd21fc 23:47:35 Step 6/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 23:47:35 ---> Running in 3465c01f5f1a 23:47:37 Removing intermediate container 3465c01f5f1a 23:47:37 ---> b3631c9cbe90 23:47:37 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 23:47:37 ---> Running in 094c8327d7ed 23:47:37 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 23:47:38 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 23:47:39 OK: 224 MiB in 56 packages 23:47:40 Removing intermediate container 094c8327d7ed 23:47:40 ---> 7e26c614cabe 23:47:40 Step 8/25 : WORKDIR /device-rest-go 23:47:40 ---> Running in 72fad927d4f3 23:47:40 Removing intermediate container 72fad927d4f3 23:47:40 ---> b4bb4fa9cac5 23:47:40 Step 9/25 : COPY go.mod vendor* ./ 23:47:40 ---> e51e962fe367 23:47:40 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 23:47:41 ---> Running in 0c610025b8e2 23:47:42 Removing intermediate container 0c610025b8e2 23:47:42 ---> a977b37554e7 23:47:42 Step 11/25 : COPY . . 23:47:43 ---> b6eee6965a52 23:47:43 Step 12/25 : RUN $MAKE 23:47:43 ---> Running in cf2855ffeda9 23:47:44 CGO_ENABLED=1 GO111MODULE=on go build -ldflags "-linkmode=external -X github.com/edgexfoundry/device-rest-go.Version=0.0.0" -trimpath -mod=readonly -buildmode=pie -o cmd/device-rest ./cmd 23:49:35 Removing intermediate container cf2855ffeda9 23:49:35 ---> 2688abe671f6 23:49:35 Step 13/25 : FROM alpine:3.14 23:49:35 3.14: Pulling from library/alpine 23:49:35 455c02918c45: Pulling fs layer 23:49:36 455c02918c45: Verifying Checksum 23:49:36 455c02918c45: Pull complete 23:49:36 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 23:49:36 Status: Downloaded newer image for alpine:3.14 23:49:36 ---> ac73e934f311 23:49:36 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' 23:49:37 ---> Running in 8c9ef4c1f768 23:49:37 Removing intermediate container 8c9ef4c1f768 23:49:37 ---> 90a04f1a4e2d 23:49:37 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 23:49:37 ---> Running in 7719b8cb24d6 23:49:37 Removing intermediate container 7719b8cb24d6 23:49:37 ---> 309214ec84a6 23:49:37 Step 16/25 : RUN apk add --update --no-cache zeromq dumb-init 23:49:37 ---> Running in b99f57f724a1 23:49:38 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/aarch64/APKINDEX.tar.gz 23:49:38 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/aarch64/APKINDEX.tar.gz 23:49:39 (1/6) Installing dumb-init (1.2.5-r1) 23:49:39 (2/6) Installing libgcc (10.3.1_git20210424-r2) 23:49:39 (3/6) Installing libsodium (1.0.18-r0) 23:49:39 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 23:49:39 (5/6) Installing libzmq (4.3.4-r0) 23:49:39 (6/6) Installing zeromq (4.3.4-r0) 23:49:39 Executing busybox-1.33.1-r7.trigger 23:49:39 OK: 8 MiB in 20 packages 23:49:40 Removing intermediate container b99f57f724a1 23:49:40 ---> 617d54eada60 23:49:40 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 23:49:42 ---> 42de5746f96d 23:49:42 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 23:49:42 ---> 3889a9ab257b 23:49:42 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 23:49:43 ---> 9c1470a8426e 23:49:43 Step 20/25 : EXPOSE 59986 23:49:43 ---> Running in 4a9ca7d00007 23:49:44 Removing intermediate container 4a9ca7d00007 23:49:44 ---> bd5e607a79b8 23:49:44 Step 21/25 : ENTRYPOINT ["/device-rest"] 23:49:44 ---> Running in cfafe4b8e3e7 23:49:44 Removing intermediate container cfafe4b8e3e7 23:49:44 ---> 7982f984e02a 23:49:44 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--confdir=/res", "--registry"] 23:49:44 ---> Running in 225b58c7ab5c 23:49:44 Removing intermediate container 225b58c7ab5c 23:49:44 ---> ff04eae25660 23:49:44 Step 23/25 : LABEL arch=arm64 23:49:44 ---> Running in d0c8cd678874 23:49:45 Removing intermediate container d0c8cd678874 23:49:45 ---> 24ab9ab09b8b 23:49:45 Step 24/25 : LABEL git_sha=cc8c89e28386d6d850e32f2caf8d80f9ca2c0a64 23:49:45 ---> Running in 71fcb724adc8 23:49:45 Removing intermediate container 71fcb724adc8 23:49:45 ---> 6d3c397a95c8 23:49:45 Step 25/25 : LABEL version=0.0.0 23:49:45 ---> Running in 04f6afb63ce7 23:49:46 Removing intermediate container 04f6afb63ce7 23:49:46 ---> 109f45101da3 23:49:46 [Warning] One or more build-args [ARCH] were not consumed 23:49:46 Successfully built 109f45101da3 23:49:46 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 23:49:46 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 23:49:46 23:49:46 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] sh 23:49:47 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 23:49:47 arm64: Pulling from edgex-lftools-log-publisher 23:49:47 8998bd30e6a1: Pulling fs layer 23:49:47 04944245beec: Pulling fs layer 23:49:47 699f458cf7ca: Pulling fs layer 23:49:47 765212b225bb: Pulling fs layer 23:49:47 f23df028b6ca: Pulling fs layer 23:49:47 d65c8cfc05b1: Pulling fs layer 23:49:47 2437ff75d9bd: Pulling fs layer 23:49:47 765212b225bb: Waiting 23:49:47 f23df028b6ca: Waiting 23:49:47 d65c8cfc05b1: Waiting 23:49:47 2437ff75d9bd: Waiting 23:49:47 04944245beec: Verifying Checksum 23:49:47 04944245beec: Download complete 23:49:47 765212b225bb: Download complete 23:49:47 f23df028b6ca: Download complete 23:49:47 d65c8cfc05b1: Verifying Checksum 23:49:47 d65c8cfc05b1: Download complete 23:49:47 699f458cf7ca: Verifying Checksum 23:49:47 699f458cf7ca: Download complete 23:49:48 8998bd30e6a1: Verifying Checksum 23:49:48 8998bd30e6a1: Download complete 23:49:50 2437ff75d9bd: Verifying Checksum 23:49:50 2437ff75d9bd: Download complete 23:49:52 8998bd30e6a1: Pull complete 23:49:52 04944245beec: Pull complete 23:49:54 699f458cf7ca: Pull complete 23:49:54 765212b225bb: Pull complete 23:49:55 f23df028b6ca: Pull complete 23:49:55 d65c8cfc05b1: Pull complete 23:50:10 2437ff75d9bd: Pull complete 23:50:10 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 23:50:10 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 23:50:10 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] withDockerContainer 23:50:11 prd-ubuntu20.04-docker-arm64-4c-16g-11522 does not seem to be running inside a container 23:50:11 $ 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 23:50:13 $ docker top 218f3f85316e86d53268bb526ab1192033ea5f667580a7b04424d89623f4cc9f -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 23:50:14 ---> job-cost.sh 23:50:14 lf-activate-venv: SKIPPING 23:50:14 INFO: No Stack... 23:50:15 INFO: Retrieving Pricing Info for: v3-standard-4 23:50:16 INFO: Archiving Costs [Pipeline] sh 23:50:16 + cut -d, -f6 23:50:16 + cat /w/workspace/device-rest-go/1/archives/cost.csv [Pipeline] lock 23:50:16 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-171-1-stack-cost] 23:50:16 Resource [jenkins-edgexfoundry-device-rest-go-PR-171-1-stack-cost] did not exist. Created. 23:50:16 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-171-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 23:50:17 /w/workspace/device-rest-go/1@tmp/durable-277b0146/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 23:50:18 + echo total: 0.10999999940395355 [Pipeline] stash 23:50:18 Warning: overwriting stash ‘stack-cost’ 23:50:18 Stashed 1 file(s) [Pipeline] } 23:50:18 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-171-1-stack-cost] [Pipeline] // lock [Pipeline] } 23:50:18 $ docker stop --time=1 218f3f85316e86d53268bb526ab1192033ea5f667580a7b04424d89623f4cc9f 23:50:20 $ docker rm -f 218f3f85316e86d53268bb526ab1192033ea5f667580a7b04424d89623f4cc9f [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 23:50:21 provisioning config files... 23:50:21 copy managed file [device-rest-go-codecov-token] to file:/w/workspace/gexfoundry_device-rest-go_PR-171@tmp/config173798712921765469tmp [Pipeline] { [Pipeline] sh 23:50:21 + set +x 23:50:21 + curl -s https://codecov.io/bash 23:50:21 + bash -s -- 23:50:21 23:50:21 _____ _ 23:50:21 / ____| | | 23:50:21 | | ___ __| | ___ ___ _____ __ 23:50:21 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 23:50:21 | |___| (_) | (_| | __/ (_| (_) \ V / 23:50:21 \_____\___/ \__,_|\___|\___\___/ \_/ 23:50:21 Bash-1.0.6 23:50:21 23:50:21 23:50:21 ==> git version 2.25.1 found 23:50:21 ==> 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 23:50:21 Release-Date: 2020-01-08 23:50:21 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 23:50:21 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 23:50:21 ==> Jenkins CI detected. 23:50:21 current dir:  /w/workspace/gexfoundry_device-rest-go_PR-171 23:50:21 project root: . 23:50:21 --> token set from env 23:50:21 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 23:50:21 ==> Running gcov in . (disable via -X gcov) 23:50:21 ==> Python coveragepy not found 23:50:21 ==> Searching for coverage reports in: 23:50:21 + . 23:50:21 -> Found 1 reports 23:50:21 ==> Detecting git/mercurial file structure 23:50:21 ==> Reading reports 23:50:21 + ./coverage.out bytes=9355 23:50:21 ==> Appending adjustments 23:50:21 https://docs.codecov.io/docs/fixing-reports 23:50:21 + Found adjustments 23:50:21 ==> Gzipping contents 23:50:21 4.0K /tmp/codecov.Q1uVMW.gz 23:50:21 ==> Uploading reports 23:50:21 url: https://codecov.io 23:50:21 query: branch=PR-171&commit=cc8c89e28386d6d850e32f2caf8d80f9ca2c0a64&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-171%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=171&job=&cmd_args= 23:50:21 -> Pinging Codecov 23:50:21 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=c51feb23-73ac-4f49-b3d1-d26df23137db&branch=PR-171&commit=cc8c89e28386d6d850e32f2caf8d80f9ca2c0a64&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-171%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=171&job=&cmd_args= 23:50:21 -> Uploading to 23:50:21 https://storage.googleapis.com/codecov/v4/raw/2022-04-07/4E5D53B4F1F92C436F7061BF334D961C/cc8c89e28386d6d850e32f2caf8d80f9ca2c0a64/e285f23e-743a-4870-80c5-caeda6c853c9.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20220407%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20220407T235021Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=5039606bfd85d18692af58a4a08ec2baee90956938ad2792fb99ce37fb6590a7 23:50:21 % Total % Received % Xferd Average Speed Time Time Time Current 23:50:21 Dload Upload Total Spent Left Speed 23:50:22 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 1800 0 0 100 1800 0 8333 --:--:-- --:--:-- --:--:-- 8333 23:50:22 -> Reports have been successfully queued for processing at https://codecov.io/github/edgexfoundry/device-rest-go/commit/cc8c89e28386d6d850e32f2caf8d80f9ca2c0a64 [Pipeline] } 23:50:22 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 23:50:23 + [ -d /w/workspace/gexfoundry_device-rest-go_PR-171/archives ] 23:50:23 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-171/archives 23:50:23 total 16 23:50:23 drwxr-xr-x 3 root root 4096 Apr 7 23:43 . 23:50:23 drwxrwxr-x 10 jenkins jenkins 4096 Apr 7 23:43 .. 23:50:23 drwxr-xr-x 2 root root 4096 Apr 7 23:43 cost 23:50:23 -rw-r--r-- 1 root root 85 Apr 7 23:43 cost.csv 23:50:23 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-rest-go_PR-171/archives 23:50:23 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-171/archives 23:50:23 total 16 23:50:23 drwxr-xr-x 3 jenkins jenkins 4096 Apr 7 23:43 . 23:50:23 drwxrwxr-x 10 jenkins jenkins 4096 Apr 7 23:43 .. 23:50:23 drwxr-xr-x 2 jenkins jenkins 4096 Apr 7 23:43 cost 23:50:23 -rw-r--r-- 1 jenkins jenkins 85 Apr 7 23:43 cost.csv [Pipeline] libraryResource [Pipeline] sh 23:50:24 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 23:50:25 ---> package-listing.sh 23:50:25 ++ facter osfamily 23:50:25 ++ tr '[:upper:]' '[:lower:]' 23:50:25 + OS_FAMILY=debian 23:50:25 + workspace=/w/workspace/gexfoundry_device-rest-go_PR-171 23:50:25 + START_PACKAGES=/tmp/packages_start.txt 23:50:25 + END_PACKAGES=/tmp/packages_end.txt 23:50:25 + DIFF_PACKAGES=/tmp/packages_diff.txt 23:50:25 + PACKAGES=/tmp/packages_start.txt 23:50:25 + '[' /w/workspace/gexfoundry_device-rest-go_PR-171 ']' 23:50:25 + PACKAGES=/tmp/packages_end.txt 23:50:25 + case "${OS_FAMILY}" in 23:50:25 + dpkg -l 23:50:25 + grep '^ii' 23:50:25 + '[' -f /tmp/packages_start.txt ']' 23:50:25 + '[' -f /tmp/packages_end.txt ']' 23:50:25 + diff /tmp/packages_start.txt /tmp/packages_end.txt 23:50:25 + '[' /w/workspace/gexfoundry_device-rest-go_PR-171 ']' 23:50:25 + mkdir -p /w/workspace/gexfoundry_device-rest-go_PR-171/archives/ 23:50:25 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/gexfoundry_device-rest-go_PR-171/archives/ [Pipeline] echo 23:50:25 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-171/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 23:50:25 + facter operatingsystem [Pipeline] isUnix [Pipeline] sh 23:50:26 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 23:50:26 . [Pipeline] withDockerContainer 23:50:26 prd-ubuntu20.04-docker-8c-8g-11521 does not seem to be running inside a container 23:50:26 $ 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-171/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-171 -v /w/workspace/gexfoundry_device-rest-go_PR-171:/w/workspace/gexfoundry_device-rest-go_PR-171:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-171@tmp:/w/workspace/gexfoundry_device-rest-go_PR-171@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 23:50:26 $ docker top 955fe4b49f9dd16c398c67692ce1888ccfeb00c10c90f94c723c2ecbdd77022b -eo pid,comm [Pipeline] { [Pipeline] sh 23:50:27 + touch /tmp/pre-build-complete [Pipeline] sh 23:50:27 + mkdir -p /var/log/sysstat [Pipeline] sh 23:50:27 + ls /var/log/sa-host 23:50:27 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 23:50:27 provisioning config files... 23:50:27 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-171@tmp/config6641965295330139870tmp [Pipeline] { [Pipeline] echo 23:50:28 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 23:50:28 ---> create-netrc.sh [Pipeline] } 23:50:28 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 23:50:28 ---> python-tools-install.sh [Pipeline] echo 23:50:28 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 23:50:29 ---> sudo-logs.sh 23:50:29 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 23:50:29 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 23:50:29 ---> job-cost.sh 23:50:29 lf-activate-venv: SKIPPING 23:50:29 DEBUG: total: 0.2199999988079071 23:50:29 INFO: Retrieving Stack Cost... 23:50:30 INFO: Retrieving Pricing Info for: v3-standard-8 23:50:30 INFO: Archiving Costs [Pipeline] echo 23:50:30 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 23:50:30 ---> logs-deploy.sh 23:50:30 lf-activate-venv: SKIPPING 23:50:30 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-171/1 23:50:30 INFO: archiving workspace using pattern(s): 23:50:31 Archives upload complete. 23:50:31 INFO: archiving logs to Nexus