Pull request #163 opened Connecting to https://api.github.com using edgex-jenkins github personal access token Obtained Jenkinsfile from 928ac87b7fcc99c492c1d1d83839fada765d9d81+ec779fd03c03a2eb2a0571cd3b2e316fba414fa2 (74fa27ce0098d169143952c869c0ba9c5f5aa805) 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-ssh10853423722697939023.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-ssh15546043228309617179.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-163/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-163/workspace@libs/edgex-global-pipelines@tmp/jenkins-gitclient-ssh15534380155391601717.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-163/workspace@libs/edgex-global-pipelines@tmp/jenkins-gitclient-ssh1954036058250987870.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-ssh12396231032352458541.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-163/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-163/workspace@libs/lf-pipelines@tmp/jenkins-gitclient-ssh5584731617868767432.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 All nodes of label ‘ubuntu20.04-docker-8c-8g’ are offline Running on prd-ubuntu20.04-docker-8c-8g-9276 in /w/workspace/gexfoundry_device-rest-go_PR-163 [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-163 # 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 ec779fd03c03a2eb2a0571cd3b2e316fba414fa2 into PR head commit 928ac87b7fcc99c492c1d1d83839fada765d9d81 Merge succeeded, producing 928ac87b7fcc99c492c1d1d83839fada765d9d81 Checking out Revision 928ac87b7fcc99c492c1d1d83839fada765d9d81 (PR-163) > 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/163/head:refs/remotes/origin/PR-163 +refs/heads/main:refs/remotes/origin/main # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 928ac87b7fcc99c492c1d1d83839fada765d9d81 # 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 ec779fd03c03a2eb2a0571cd3b2e316fba414fa2 # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 928ac87b7fcc99c492c1d1d83839fada765d9d81 # timeout=10 Commit message: "build(deps): Bump github.com/edgexfoundry/device-sdk-go/v2" First time build. Skipping changelog. > git --version # timeout=10 > git --version # 'git version 2.25.1' fatal: bad object c72b16708d6eed9a08be464a432ce22db7d90667 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 20:03:38 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 20:03:38 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 20:03:38 ========================================================= 20:03:38 EdgeX Global Pipelines Version Info 20:03:38 ========================================================= [Pipeline] libraryResource [Pipeline] sh 20:03:39 ------------------- 20:03:39 stable info: 20:03:39 ------------------- 20:03:39 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 20:03:39 Commit SHA: c72b16708d6eed9a08be464a432ce22db7d90667 20:03:39 Message: update stable to v1.0.221 20:03:39 ------------------- 20:03:39 experimental info: 20:03:39 ------------------- 20:03:39 Commited By: **** collab-it+edgex@linuxfoundation.org 20:03:39 Commit SHA: c72b16708d6eed9a08be464a432ce22db7d90667 20:03:39 Message: update experimental to v1.0.221 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 20:03:40 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 20:03:40 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 20:03:40 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 20:03:40 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 20:03:40 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 20:03:40 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.17 [Pipeline] echo 20:03:40 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 20:03:40 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 20:03:40 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 20:03:40 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 20:03:40 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 20:03:40 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 20:03:40 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 20:03:40 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 20:03:40 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 20:03:40 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 20:03:40 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 20:03:40 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 20:03:40 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 20:03:40 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 20:03:40 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 20:03:41 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 20:03:41 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 20:03:41 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 20:03:41 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 20:03:41 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 20:03:41 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-163 [Pipeline] echo 20:03:41 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-163 [Pipeline] echo 20:03:41 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-163 [Pipeline] echo 20:03:41 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 928ac87b7fcc99c492c1d1d83839fada765d9d81 [Pipeline] echo 20:03:41 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 928ac87 [Pipeline] echo 20:03:41 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 20:03:41 provisioning config files... 20:03:41 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-163@tmp/config791962940651030075tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:03:41 ---> docker-login.sh 20:03:41 nexus3.edgexfoundry.org:10001 20:03:42 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:03:42 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:03:42 Configure a credential helper to remove this warning. See 20:03:42 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:03:42 20:03:42 Login Succeeded 20:03:42 nexus3.edgexfoundry.org:10002 20:03:42 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:03:42 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:03:42 Configure a credential helper to remove this warning. See 20:03:42 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:03:42 20:03:42 Login Succeeded 20:03:42 nexus3.edgexfoundry.org:10003 20:03:42 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:03:42 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:03:42 Configure a credential helper to remove this warning. See 20:03:42 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:03:42 20:03:42 Login Succeeded 20:03:42 nexus3.edgexfoundry.org:10004 20:03:42 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:03:42 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:03:42 Configure a credential helper to remove this warning. See 20:03:42 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:03:42 20:03:42 Login Succeeded 20:03:42 docker.io 20:03:42 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:03:43 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:03:43 Configure a credential helper to remove this warning. See 20:03:43 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:03:43 20:03:43 Login Succeeded 20:03:43 ---> docker-login.sh ends [Pipeline] } 20:03:43 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 20:03:43 + git rev-list -1 --merges 928ac87b7fcc99c492c1d1d83839fada765d9d81~1..928ac87b7fcc99c492c1d1d83839fada765d9d81 [Pipeline] echo 20:03:43 -----------> git rev-list -1 --merges 928ac87b7fcc99c492c1d1d83839fada765d9d81~1..928ac87b7fcc99c492c1d1d83839fada765d9d81 928ac87b7fcc99c492c1d1d83839fada765d9d81 [false] [Pipeline] sh 20:03:44 + git log --format=format:%s -1 928ac87b7fcc99c492c1d1d83839fada765d9d81 [Pipeline] echo 20:03:44 ========================================================= 20:03:44 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 20:03:44 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 20:03:44 + git log --format=format:%s -1 928ac87b7fcc99c492c1d1d83839fada765d9d81 [Pipeline] echo 20:03:44 [semverPrep] GIT_COMMIT: 928ac87b7fcc99c492c1d1d83839fada765d9d81, Commit Message: build(deps): Bump github.com/edgexfoundry/device-sdk-go/v2 [Pipeline] echo 20:03:44 [semverPrep] This is not a build commit. [Pipeline] sh 20:03:45 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 20:03:45 + grep -v github /etc/ssh/ssh_known_hosts 20:03:45 + [ -e /tmp/ssh_known_hosts ] 20:03:45 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 20:03:45 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 20:03:45 + sudo tee -a /etc/ssh/ssh_known_hosts 20:03:45 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] sh 20:03:45 + docker inspect -f . nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 20:03:45 20:03:45 Error: No such object: nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] isUnix [Pipeline] sh 20:03:45 + docker pull nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 20:03:45 latest: Pulling from edgex-devops/git-semver 20:03:45 a0d0a0d46f8b: Pulling fs layer 20:03:45 3e5f54012d9b: Pulling fs layer 20:03:45 4c7163046ea9: Pulling fs layer 20:03:45 0c2d73faf560: Pulling fs layer 20:03:45 0c2d73faf560: Waiting 20:03:45 3e5f54012d9b: Verifying Checksum 20:03:45 3e5f54012d9b: Download complete 20:03:45 a0d0a0d46f8b: Download complete 20:03:45 4c7163046ea9: Verifying Checksum 20:03:45 4c7163046ea9: Download complete 20:03:45 0c2d73faf560: Download complete 20:03:46 a0d0a0d46f8b: Pull complete 20:03:46 3e5f54012d9b: Pull complete 20:03:46 4c7163046ea9: Pull complete 20:03:46 0c2d73faf560: Pull complete 20:03:46 Digest: sha256:2751de6e655929dcbe46418c7769d9d992331b5b721eb968631a4166222929f9 20:03:46 Status: Downloaded newer image for nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 20:03:46 nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] withDockerContainer 20:03:46 prd-ubuntu20.04-docker-8c-8g-9276 does not seem to be running inside a container 20:03:46 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/gexfoundry_device-rest-go_PR-163 -v /w/workspace/gexfoundry_device-rest-go_PR-163:/w/workspace/gexfoundry_device-rest-go_PR-163:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-163@tmp:/w/workspace/gexfoundry_device-rest-go_PR-163@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 ******** nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest cat 20:03:47 $ docker top ffaece0f45316e4417df83f132e19a63023021c92dd8fc0426d6e8bea70248a4 -eo pid,comm [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 20:03:47 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 20:03:47 [ssh-agent] Looking for ssh-agent implementation... 20:03:47 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 20:03:47 $ docker exec ffaece0f45316e4417df83f132e19a63023021c92dd8fc0426d6e8bea70248a4 ssh-agent 20:03:47 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXhKBJad/agent.14 20:03:47 SSH_AGENT_PID=21 20:03:47 Running ssh-add (command line suppressed) 20:03:47 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-163@tmp/private_key_6939122488369287817.key (/w/workspace/gexfoundry_device-rest-go_PR-163@tmp/private_key_6939122488369287817.key) 20:03:47 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 20:03:48 + git tag --points-at HEAD [Pipeline] } 20:03:48 $ docker exec --env ******** --env ******** ffaece0f45316e4417df83f132e19a63023021c92dd8fc0426d6e8bea70248a4 ssh-agent -k 20:03:48 unset SSH_AUTH_SOCK; 20:03:48 unset SSH_AGENT_PID; 20:03:48 echo Agent pid 21 killed; 20:03:48 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 20:03:48 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 20:03:48 [ssh-agent] Looking for ssh-agent implementation... 20:03:48 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 20:03:48 $ docker exec ffaece0f45316e4417df83f132e19a63023021c92dd8fc0426d6e8bea70248a4 ssh-agent 20:03:48 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXCMcbCH/agent.53 20:03:48 SSH_AGENT_PID=60 20:03:48 Running ssh-add (command line suppressed) 20:03:48 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-163@tmp/private_key_8335593066569406698.key (/w/workspace/gexfoundry_device-rest-go_PR-163@tmp/private_key_8335593066569406698.key) 20:03:48 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 20:03:49 + git semver init 20:03:49 # -> Open(): unable to determine branch for HEAD 20:03:49 # $GIT_DIR = /w/workspace/gexfoundry_device-rest-go_PR-163/.git 20:03:49 # $GIT_WORK_TREE = /w/workspace/gexfoundry_device-rest-go_PR-163 20:03:49 # $SEMVER_REMOTE_NAME = origin 20:03:49 # $SEMVER_USER_EMAIL = collab-it+edgex@linuxfoundation.org 20:03:49 # $SEMVER_USER_NAME = edgex-jenkins 20:03:49 # $SEMVER_BRANCH = PR-163 20:03:49 # $SEMVER_TEMP = /tmp/semver-089870491 20:03:49 # git clone --branch semver git@github.com:edgexfoundry/device-rest-go.git $SEMVER_TEMP 20:03:50 # '/tmp/semver-089870491' -> '/w/workspace/gexfoundry_device-rest-go_PR-163/.semver' 20:03:50 # -> Force: false 20:03:50 # $SEMVER_DIR = /w/workspace/gexfoundry_device-rest-go_PR-163/.semver [Pipeline] } 20:03:50 $ docker exec --env ******** --env ******** ffaece0f45316e4417df83f132e19a63023021c92dd8fc0426d6e8bea70248a4 ssh-agent -k 20:03:50 unset SSH_AUTH_SOCK; 20:03:50 unset SSH_AGENT_PID; 20:03:50 echo Agent pid 60 killed; 20:03:50 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 20:03:51 + git semver [Pipeline] } 20:03:51 $ docker stop --time=1 ffaece0f45316e4417df83f132e19a63023021c92dd8fc0426d6e8bea70248a4 20:03:52 $ docker rm -f ffaece0f45316e4417df83f132e19a63023021c92dd8fc0426d6e8bea70248a4 [Pipeline] // withDockerContainer [Pipeline] sh 20:03:53 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 20:03:53 Stashed 1 file(s) [Pipeline] echo 20:03:53 [edgeXSemver]: initialized semver on version 0.0.0 [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] parallel [Pipeline] { (Branch: amd64) [Pipeline] { (Branch: arm64) [Pipeline] stage [Pipeline] { (amd64) [Pipeline] stage [Pipeline] { (arm64) [Pipeline] withEnv [Pipeline] { [Pipeline] node [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 20:03:54 provisioning config files... 20:03:54 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-163@tmp/config6853379009484059712tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:03:54 ---> docker-login.sh 20:03:54 nexus3.edgexfoundry.org:10001 20:03:54 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:03:54 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:03:54 Configure a credential helper to remove this warning. See 20:03:54 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:03:54 20:03:54 Login Succeeded 20:03:54 nexus3.edgexfoundry.org:10002 20:03:54 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:03:54 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:03:54 Configure a credential helper to remove this warning. See 20:03:54 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:03:54 20:03:54 Login Succeeded 20:03:54 nexus3.edgexfoundry.org:10003 20:03:54 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:03:54 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:03:54 Configure a credential helper to remove this warning. See 20:03:54 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:03:54 20:03:54 Login Succeeded 20:03:54 nexus3.edgexfoundry.org:10004 20:03:54 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:03:54 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:03:54 Configure a credential helper to remove this warning. See 20:03:54 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:03:54 20:03:54 Login Succeeded 20:03:54 docker.io 20:03:54 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:03:55 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:03:55 Configure a credential helper to remove this warning. See 20:03:55 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:03:55 20:03:55 Login Succeeded 20:03:55 ---> docker-login.sh ends [Pipeline] } 20:03:55 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 20:03:55 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 20:03:55 ========================================================= 20:03:55 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine] 20:03:55 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 20:03:55 + docker build -t ci-base-image-x86_64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine --build-arg MAKE=echo noop --target=builder . 20:03:55 Sending build context to Docker daemon 10.55MB 20:03:55 Step 1/12 : ARG BASE=golang:1.17-alpine3.15 20:03:55 Step 2/12 : FROM ${BASE} AS builder 20:03:55 1.17-alpine: Pulling from edgex-devops/edgex-golang-base 20:03:55 59bf1c3509f3: Pulling fs layer 20:03:55 666ba61612fd: Pulling fs layer 20:03:55 8ed8ca486205: Pulling fs layer 20:03:55 4fe6c5a15a65: Pulling fs layer 20:03:55 22a0e8bec74d: Pulling fs layer 20:03:55 640e595b4fbd: Pulling fs layer 20:03:55 763cafe07f6e: Pulling fs layer 20:03:55 0c0b528cf693: Pulling fs layer 20:03:55 10935f4eaf8b: Pulling fs layer 20:03:55 763cafe07f6e: Waiting 20:03:55 4fe6c5a15a65: Waiting 20:03:55 22a0e8bec74d: Waiting 20:03:55 0c0b528cf693: Waiting 20:03:55 10935f4eaf8b: Waiting 20:03:55 640e595b4fbd: Waiting 20:03:55 8ed8ca486205: Download complete 20:03:55 666ba61612fd: Download complete 20:03:55 22a0e8bec74d: Verifying Checksum 20:03:55 22a0e8bec74d: Download complete 20:03:55 640e595b4fbd: Verifying Checksum 20:03:55 640e595b4fbd: Download complete 20:03:55 59bf1c3509f3: Verifying Checksum 20:03:55 59bf1c3509f3: Download complete 20:03:56 763cafe07f6e: Verifying Checksum 20:03:56 763cafe07f6e: Download complete 20:03:56 0c0b528cf693: Verifying Checksum 20:03:56 0c0b528cf693: Download complete 20:03:56 59bf1c3509f3: Pull complete 20:03:56 666ba61612fd: Pull complete 20:03:56 8ed8ca486205: Pull complete 20:03:56 10935f4eaf8b: Download complete 20:03:56 4fe6c5a15a65: Verifying Checksum 20:03:56 4fe6c5a15a65: Download complete 20:04:00 4fe6c5a15a65: Pull complete 20:04:00 22a0e8bec74d: Pull complete 20:04:00 640e595b4fbd: Pull complete 20:04:00 763cafe07f6e: Pull complete 20:04:00 0c0b528cf693: Pull complete 20:04:02 10935f4eaf8b: Pull complete 20:04:02 Digest: sha256:fe2da51ced2bed6c5fc1d1038c2fbec5a5bb29cdcacce78977c37c66bfba8387 20:04:02 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine 20:04:02 ---> 99d49a6021b9 20:04:02 Step 3/12 : ARG MAKE='make build' 20:04:03 ---> Running in 04fea8600aac 20:04:03 Removing intermediate container 04fea8600aac 20:04:03 ---> 546fefa20f10 20:04:03 Step 4/12 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 20:04:03 ---> Running in f915b67ebfdd 20:04:03 Removing intermediate container f915b67ebfdd 20:04:03 ---> aea15fba6a82 20:04:03 Step 5/12 : ARG ALPINE_PKG_EXTRA="" 20:04:03 ---> Running in 008439adeb8d 20:04:04 Removing intermediate container 008439adeb8d 20:04:04 ---> 2fbc8f36b03d 20:04:04 Step 6/12 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 20:04:04 ---> Running in a03638aca073 20:04:04 Removing intermediate container a03638aca073 20:04:04 ---> 9afed0cfcab9 20:04:04 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 20:04:04 ---> Running in 24d30c92c820 20:04:05 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 20:04:05 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 20:04:06 (1/4) Installing openssh-keygen (8.8_p1-r1) 20:04:06 (2/4) Installing libedit (20210910.3.1-r0) 20:04:06 (3/4) Installing openssh-client-common (8.8_p1-r1) 20:04:06 (4/4) Installing openssh-client-default (8.8_p1-r1) 20:04:06 Executing busybox-1.34.1-r3.trigger 20:04:06 OK: 224 MiB in 56 packages 20:04:07 Removing intermediate container 24d30c92c820 20:04:07 ---> 3138a0893e8a 20:04:07 Step 8/12 : WORKDIR /device-rest-go 20:04:07 ---> Running in 1a4260053c74 20:04:07 Removing intermediate container 1a4260053c74 20:04:07 ---> 75c65def5c6a 20:04:07 Step 9/12 : COPY go.mod vendor* ./ 20:04:07 ---> c0b731b2b7cf 20:04:07 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 20:04:07 ---> Running in c77f915475c6 20:04:08 Still waiting to schedule task 20:04:08 All nodes of label ‘ubuntu20.04-docker-arm64-4c-16g’ are offline 20:04:33 Removing intermediate container c77f915475c6 20:04:33 ---> 9720a2bb2767 20:04:33 Step 11/12 : COPY . . 20:04:33 ---> fefd8f8e9d08 20:04:33 Step 12/12 : RUN $MAKE 20:04:33 ---> Running in ba4e37bac5f3 20:04:33 noop 20:04:33 Removing intermediate container ba4e37bac5f3 20:04:33 ---> 044b47539da2 20:04:33 Successfully built 044b47539da2 20:04:33 Successfully tagged ci-base-image-x86_64:latest [Pipeline] isUnix [Pipeline] sh 20:04:34 + docker inspect -f . ci-base-image-x86_64 20:04:34 . [Pipeline] withDockerContainer 20:04:34 prd-ubuntu20.04-docker-8c-8g-9276 does not seem to be running inside a container 20:04:34 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-163 -v /w/workspace/gexfoundry_device-rest-go_PR-163:/w/workspace/gexfoundry_device-rest-go_PR-163:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-163@tmp:/w/workspace/gexfoundry_device-rest-go_PR-163@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 ******** ci-base-image-x86_64 cat 20:04:34 $ docker top 75a759016eb22a136f1853ce14cfdd9c412965b1b441d12a6b8b9eab11de6eb7 -eo pid,comm [Pipeline] { [Pipeline] sh 20:04:35 + go version 20:04:35 go version go1.17.6 linux/amd64 [Pipeline] } 20:04:35 $ docker stop --time=1 75a759016eb22a136f1853ce14cfdd9c412965b1b441d12a6b8b9eab11de6eb7 20:04:36 $ docker rm -f 75a759016eb22a136f1853ce14cfdd9c412965b1b441d12a6b8b9eab11de6eb7 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 20:04:37 + docker inspect -f . ci-base-image-x86_64 20:04:37 . [Pipeline] withDockerContainer 20:04:37 prd-ubuntu20.04-docker-8c-8g-9276 does not seem to be running inside a container 20:04:37 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-163 -v /w/workspace/gexfoundry_device-rest-go_PR-163:/w/workspace/gexfoundry_device-rest-go_PR-163:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-163@tmp:/w/workspace/gexfoundry_device-rest-go_PR-163@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 ******** ci-base-image-x86_64 cat 20:04:37 $ docker top 833de1faf862331e7342fb23baff8401086bac909a90f4d6623a928bc73b8e12 -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 20:04:38 + make test 20:04:38 CGO_ENABLED=1 GO111MODULE=on go test -coverprofile=coverage.out ./... 20:04:38 ? github.com/edgexfoundry/device-rest-go [no test files] 20:04:45 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 20:04:45 ok github.com/edgexfoundry/device-rest-go/driver 0.013s coverage: 56.0% of statements 20:04:45 CGO_ENABLED=1 GO111MODULE=on go vet ./... 20:04:48 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 20:04:48 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 20:04:48 ./bin/test-attribution-txt.sh [Pipeline] echo 20:04:48 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 20:04:48 $ docker stop --time=1 833de1faf862331e7342fb23baff8401086bac909a90f4d6623a928bc73b8e12 20:04:50 $ docker rm -f 833de1faf862331e7342fb23baff8401086bac909a90f4d6623a928bc73b8e12 [Pipeline] // withDockerContainer [Pipeline] sh 20:04:50 + sudo chown -R jenkins:jenkins . [Pipeline] stash 20:04:50 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 20:04:52 + sudo chown -R jenkins:jenkins . [Pipeline] sh 20:04:52 + ls -al . 20:04:52 total 180 20:04:52 drwxrwxr-x 9 jenkins jenkins 4096 Mar 28 20:04 . 20:04:52 drwxrwxr-x 4 jenkins jenkins 4096 Mar 28 20:03 .. 20:04:52 -rw-rw-r-- 1 jenkins jenkins 151 Mar 28 20:03 .dockerignore 20:04:52 drwxrwxr-x 8 jenkins jenkins 4096 Mar 28 20:03 .git 20:04:52 drwxrwxr-x 2 jenkins jenkins 4096 Mar 28 20:03 .github 20:04:52 -rw-rw-r-- 1 jenkins jenkins 329 Mar 28 20:03 .gitignore 20:04:52 drwx------ 3 jenkins jenkins 4096 Mar 28 20:03 .semver 20:04:52 -rw-rw-r-- 1 jenkins jenkins 7192 Mar 28 20:03 Attribution.txt 20:04:52 -rw-rw-r-- 1 jenkins jenkins 7459 Mar 28 20:03 CHANGELOG.md 20:04:52 -rw-rw-r-- 1 jenkins jenkins 1672 Mar 28 20:03 Dockerfile 20:04:52 -rw-rw-r-- 1 jenkins jenkins 677 Mar 28 20:03 GOVERNANCE.md 20:04:52 -rw-rw-r-- 1 jenkins jenkins 680 Mar 28 20:03 Jenkinsfile 20:04:52 -rw-rw-r-- 1 jenkins jenkins 11340 Mar 28 20:03 LICENSE 20:04:52 -rw-rw-r-- 1 jenkins jenkins 1078 Mar 28 20:03 Makefile 20:04:52 -rw-rw-r-- 1 jenkins jenkins 620 Mar 28 20:03 OWNERS.md 20:04:52 -rw-rw-r-- 1 jenkins jenkins 8246 Mar 28 20:03 README.md 20:04:52 -rw-rw-r-- 1 jenkins jenkins 5 Mar 28 20:03 VERSION 20:04:52 drwxrwxr-x 2 jenkins jenkins 4096 Mar 28 20:03 bin 20:04:52 drwxrwxr-x 3 jenkins jenkins 4096 Mar 28 20:03 cmd 20:04:52 -rw-r--r-- 1 jenkins jenkins 9215 Mar 28 20:04 coverage.out 20:04:52 drwxrwxr-x 2 jenkins jenkins 4096 Mar 28 20:03 driver 20:04:52 -rw-rw-r-- 1 jenkins jenkins 2908 Mar 28 20:03 go.mod 20:04:52 -rw-rw-r-- 1 jenkins jenkins 50454 Mar 28 20:03 go.sum 20:04:52 drwxrwxr-x 3 jenkins jenkins 4096 Mar 28 20:03 snap 20:04:52 -rw-rw-r-- 1 jenkins jenkins 713 Mar 28 20:03 version.go [Pipeline] isUnix [Pipeline] sh 20:04:52 + 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=928ac87b7fcc99c492c1d1d83839fada765d9d81 --label arch=amd64 --label version=0.0.0 . 20:04:52 Sending build context to Docker daemon 10.56MB 20:04:52 Step 1/25 : ARG BASE=golang:1.17-alpine3.15 20:04:52 Step 2/25 : FROM ${BASE} AS builder 20:04:52 ---> 044b47539da2 20:04:52 Step 3/25 : ARG MAKE='make build' 20:04:52 ---> Running in 06548ad4a91f 20:04:52 Removing intermediate container 06548ad4a91f 20:04:52 ---> efa1c80554f1 20:04:52 Step 4/25 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 20:04:52 ---> Running in 2aaa6b4a55ac 20:04:52 Removing intermediate container 2aaa6b4a55ac 20:04:52 ---> 5ebdfda13628 20:04:52 Step 5/25 : ARG ALPINE_PKG_EXTRA="" 20:04:52 ---> Running in d2e8ebf71ac9 20:04:53 Removing intermediate container d2e8ebf71ac9 20:04:53 ---> 5ae7605c34ca 20:04:53 Step 6/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 20:04:53 ---> Running in 08d05d639cc0 20:04:53 Removing intermediate container 08d05d639cc0 20:04:53 ---> 1a7f5ee86ca7 20:04:53 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 20:04:53 ---> Running in 8b2381cd7e8b 20:04:54 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 20:04:54 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 20:04:55 OK: 224 MiB in 56 packages 20:04:55 Removing intermediate container 8b2381cd7e8b 20:04:55 ---> 405b5af9fb59 20:04:55 Step 8/25 : WORKDIR /device-rest-go 20:04:55 ---> Running in da3b47bed1d1 20:04:55 Removing intermediate container da3b47bed1d1 20:04:55 ---> 533863125586 20:04:55 Step 9/25 : COPY go.mod vendor* ./ 20:04:55 ---> feb6354938e8 20:04:55 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 20:04:55 ---> Running in 8dbd90c0090a 20:04:56 Removing intermediate container 8dbd90c0090a 20:04:56 ---> 96e5f0da4150 20:04:56 Step 11/25 : COPY . . 20:04:56 ---> 74b4370def7e 20:04:56 Step 12/25 : RUN $MAKE 20:04:56 ---> Running in 9aead77648fb 20:04:57 CGO_ENABLED=1 GO111MODULE=on go build -ldflags "-X github.com/edgexfoundry/device-rest-go.Version=0.0.0" -o cmd/device-rest ./cmd 20:05:05 Removing intermediate container 9aead77648fb 20:05:05 ---> 8a38a3981758 20:05:05 Step 13/25 : FROM alpine:3.14 20:05:05 3.14: Pulling from library/alpine 20:05:05 36ccefbf3d8a: Pulling fs layer 20:05:05 36ccefbf3d8a: Verifying Checksum 20:05:05 36ccefbf3d8a: Download complete 20:05:05 36ccefbf3d8a: Pull complete 20:05:05 Digest: sha256:cf5b2ed6e37873edf0733ad18ca3ccc414a60ba260be611459c245508a19b652 20:05:05 Status: Downloaded newer image for alpine:3.14 20:05:05 ---> a33ac4f1069a 20:05:05 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' 20:05:05 ---> Running in e52226b75db5 20:05:05 Removing intermediate container e52226b75db5 20:05:05 ---> 1f20eb39f592 20:05:05 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 20:05:05 ---> Running in aafa1816b79c 20:05:06 Removing intermediate container aafa1816b79c 20:05:06 ---> 27f8251e6d10 20:05:06 Step 16/25 : RUN apk add --update --no-cache zeromq dumb-init 20:05:06 ---> Running in 5363a3418435 20:05:06 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz 20:05:06 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz 20:05:06 (1/6) Installing dumb-init (1.2.5-r1) 20:05:06 (2/6) Installing libgcc (10.3.1_git20210424-r2) 20:05:06 (3/6) Installing libsodium (1.0.18-r0) 20:05:06 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 20:05:06 (5/6) Installing libzmq (4.3.4-r0) 20:05:06 (6/6) Installing zeromq (4.3.4-r0) 20:05:06 Executing busybox-1.33.1-r6.trigger 20:05:06 OK: 8 MiB in 20 packages 20:05:07 Removing intermediate container 5363a3418435 20:05:07 ---> eea199bfef2f 20:05:07 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 20:05:07 ---> d01b5e8157fd 20:05:07 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 20:05:07 ---> 3310e083b273 20:05:07 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 20:05:07 ---> 1b25ef6dcfa8 20:05:07 Step 20/25 : EXPOSE 59986 20:05:07 ---> Running in b107cf853aee 20:05:07 Removing intermediate container b107cf853aee 20:05:07 ---> d378f599ef83 20:05:07 Step 21/25 : ENTRYPOINT ["/device-rest"] 20:05:08 ---> Running in 941c919a89bb 20:05:08 Removing intermediate container 941c919a89bb 20:05:08 ---> 5bb8c42f5a2b 20:05:08 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--confdir=/res", "--registry"] 20:05:08 ---> Running in 19f94a7cf218 20:05:08 Removing intermediate container 19f94a7cf218 20:05:08 ---> 6e719fdd0acd 20:05:08 Step 23/25 : LABEL arch=amd64 20:05:08 ---> Running in e9518d847a3d 20:05:08 Removing intermediate container e9518d847a3d 20:05:08 ---> febe0f2603ae 20:05:08 Step 24/25 : LABEL git_sha=928ac87b7fcc99c492c1d1d83839fada765d9d81 20:05:08 ---> Running in ac0cd018ecaa 20:05:08 Removing intermediate container ac0cd018ecaa 20:05:08 ---> fa70dea076bb 20:05:08 Step 25/25 : LABEL version=0.0.0 20:05:08 ---> Running in 7155612f1fd0 20:05:08 Removing intermediate container 7155612f1fd0 20:05:08 ---> 88e547c1c42a 20:05:08 [Warning] One or more build-args [ARCH] were not consumed 20:05:08 Successfully built 88e547c1c42a 20:05:08 Successfully tagged device-rest:latest [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Docker Push) Stage "Docker Push" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Snap) Stage "Snap" skipped due to when conditional [Pipeline] } [Pipeline] // stage Post stage [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 20:05:09 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 20:05:09 20:05:09 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] sh 20:05:09 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 20:05:09 latest: Pulling from edgex-lftools-log-publisher 20:05:09 5eb5b503b376: Pulling fs layer 20:05:09 5c69ac0246d0: Pulling fs layer 20:05:09 ec43610c2a17: Pulling fs layer 20:05:09 3a2ae6a8a46f: Pulling fs layer 20:05:09 33b1e0a273af: Pulling fs layer 20:05:09 5d3b04190fa2: Pulling fs layer 20:05:09 2f39f015ded8: Pulling fs layer 20:05:09 33b1e0a273af: Waiting 20:05:09 5d3b04190fa2: Waiting 20:05:09 2f39f015ded8: Waiting 20:05:09 3a2ae6a8a46f: Waiting 20:05:09 5c69ac0246d0: Download complete 20:05:09 3a2ae6a8a46f: Download complete 20:05:09 33b1e0a273af: Verifying Checksum 20:05:09 33b1e0a273af: Download complete 20:05:09 ec43610c2a17: Verifying Checksum 20:05:09 ec43610c2a17: Download complete 20:05:09 5d3b04190fa2: Verifying Checksum 20:05:09 5d3b04190fa2: Download complete 20:05:09 5eb5b503b376: Verifying Checksum 20:05:09 5eb5b503b376: Download complete 20:05:10 2f39f015ded8: Download complete 20:05:11 5eb5b503b376: Pull complete 20:05:11 5c69ac0246d0: Pull complete 20:05:12 ec43610c2a17: Pull complete 20:05:12 3a2ae6a8a46f: Pull complete 20:05:12 33b1e0a273af: Pull complete 20:05:12 5d3b04190fa2: Pull complete 20:05:16 2f39f015ded8: Pull complete 20:05:16 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 20:05:16 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 20:05:16 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] withDockerContainer 20:05:16 prd-ubuntu20.04-docker-8c-8g-9276 does not seem to be running inside a container 20:05:16 $ 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-163 -v /w/workspace/gexfoundry_device-rest-go_PR-163:/w/workspace/gexfoundry_device-rest-go_PR-163:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-163@tmp:/w/workspace/gexfoundry_device-rest-go_PR-163@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:10003/edgex-lftools-log-publisher:latest cat 20:05:18 $ docker top 1a577af00fbd66e272a720d3be97e2414a2a7ce3d0cc1e3ec4b0f36580a3bdb8 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:05:18 ---> job-cost.sh 20:05:18 lf-activate-venv: SKIPPING 20:05:18 INFO: No Stack... 20:05:19 INFO: Retrieving Pricing Info for: v3-standard-8 20:05:19 INFO: Archiving Costs [Pipeline] sh 20:05:19 + cat /w/workspace/gexfoundry_device-rest-go_PR-163/archives/cost.csv 20:05:19 + cut -d, -f6 [Pipeline] lock 20:05:19 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-163-1-stack-cost] 20:05:19 Resource [jenkins-edgexfoundry-device-rest-go-PR-163-1-stack-cost] did not exist. Created. 20:05:19 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-163-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 20:05:20 + echo total: 0.2199999988079071 [Pipeline] stash 20:05:20 Stashed 1 file(s) [Pipeline] } 20:05:20 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-163-1-stack-cost] [Pipeline] // lock [Pipeline] } 20:05:20 $ docker stop --time=1 1a577af00fbd66e272a720d3be97e2414a2a7ce3d0cc1e3ec4b0f36580a3bdb8 20:05:21 $ docker rm -f 1a577af00fbd66e272a720d3be97e2414a2a7ce3d0cc1e3ec4b0f36580a3bdb8 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 20:05:44 Running on prd-ubuntu20.04-docker-arm64-4c-16g-9279 in /w/workspace/gexfoundry_device-rest-go_PR-163 [Pipeline] { [Pipeline] ws 20:05:44 Running in /w/workspace/device-rest-go/1 [Pipeline] { [Pipeline] checkout 20:05:44 The recommended git tool is: git 20:05:51 using credential edgex-jenkins-ssh 20:05:51 Cloning the remote Git repository 20:05:51 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 20:05:51 > git init /w/workspace/device-rest-go/1 # timeout=10 20:05:51 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 20:05:51 > git --version # timeout=10 20:05:51 > git --version # 'git version 2.25.1' 20:05:51 using GIT_SSH to set credentials SSH Credentials for GitHub 20:05:51 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 20:05:54 Merging remotes/origin/main commit ec779fd03c03a2eb2a0571cd3b2e316fba414fa2 into PR head commit 928ac87b7fcc99c492c1d1d83839fada765d9d81 20:05:54 Merge succeeded, producing 928ac87b7fcc99c492c1d1d83839fada765d9d81 20:05:54 Checking out Revision 928ac87b7fcc99c492c1d1d83839fada765d9d81 (PR-163) 20:05:53 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 20:05:53 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 20:05:53 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 20:05:53 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 20:05:53 using GIT_SSH to set credentials SSH Credentials for GitHub 20:05:53 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/163/head:refs/remotes/origin/PR-163 +refs/heads/main:refs/remotes/origin/main # timeout=10 20:05:54 > git config core.sparsecheckout # timeout=10 20:05:54 > git checkout -f 928ac87b7fcc99c492c1d1d83839fada765d9d81 # timeout=10 20:05:54 > git remote # timeout=10 20:05:54 > git config --get remote.origin.url # timeout=10 20:05:54 using GIT_SSH to set credentials SSH Credentials for GitHub 20:05:54 > git merge ec779fd03c03a2eb2a0571cd3b2e316fba414fa2 # timeout=10 20:05:54 > git rev-parse HEAD^{commit} # timeout=10 20:05:54 > git config core.sparsecheckout # timeout=10 20:05:54 > git checkout -f 928ac87b7fcc99c492c1d1d83839fada765d9d81 # timeout=10 20:05:59 Commit message: "build(deps): Bump github.com/edgexfoundry/device-sdk-go/v2" 20:05:59 > git --version # timeout=10 20:05:59 > git --version # 'git version 2.25.1' 20:05:59 fatal: bad object c72b16708d6eed9a08be464a432ce22db7d90667 [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 20:06:00 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 20:06:00 % Total % Received % Xferd Average Speed Time Time Time Current 20:06:00 Dload Upload Total Spent Left Speed 20:06:00 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 11843 100 11843 0 0 48536 0 --:--:-- --:--:-- --:--:-- 48536 [Pipeline] sh 20:06:01 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 20:06:01 + sudo tee /etc/docker/daemon.new 20:06:01 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 20:06:01 { 20:06:01 "registry-mirrors": [ 20:06:01 "https://nexus3.edgexfoundry.org:10001" 20:06:01 ], 20:06:01 "bip": "10.250.0.254/24", 20:06:01 "hosts": [ 20:06:01 "tcp://0.0.0.0:5555", 20:06:01 "unix:///var/run/docker.sock" 20:06:01 ], 20:06:01 "mtu": 1458, 20:06:01 "selinux-enabled": true, 20:06:01 "seccomp-profile": "/etc/docker/seccomp.json" 20:06:01 } [Pipeline] sh 20:06:01 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 20:06:02 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 20:06:20 provisioning config files... 20:06:20 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/1@tmp/config6092711691614487582tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:06:21 ---> docker-login.sh 20:06:21 nexus3.edgexfoundry.org:10001 20:06:21 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:06:22 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:06:22 Configure a credential helper to remove this warning. See 20:06:22 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:06:22 20:06:22 Login Succeeded 20:06:22 nexus3.edgexfoundry.org:10002 20:06:22 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:06:22 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:06:22 Configure a credential helper to remove this warning. See 20:06:22 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:06:22 20:06:22 Login Succeeded 20:06:22 nexus3.edgexfoundry.org:10003 20:06:23 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:06:23 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:06:23 Configure a credential helper to remove this warning. See 20:06:23 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:06:23 20:06:23 Login Succeeded 20:06:23 nexus3.edgexfoundry.org:10004 20:06:23 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:06:23 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:06:23 Configure a credential helper to remove this warning. See 20:06:23 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:06:23 20:06:23 Login Succeeded 20:06:23 docker.io 20:06:24 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 20:06:24 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 20:06:24 Configure a credential helper to remove this warning. See 20:06:24 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 20:06:24 20:06:24 Login Succeeded 20:06:24 ---> docker-login.sh ends [Pipeline] } 20:06:24 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 20:06:24 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 20:06:24 ========================================================= 20:06:24 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine] 20:06:24 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 20:06:25 + docker build -t ci-base-image-arm64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine --build-arg MAKE=echo noop --target=builder . 20:06:25 Sending build context to Docker daemon 124.9kB 20:06:25 Step 1/12 : ARG BASE=golang:1.17-alpine3.15 20:06:25 Step 2/12 : FROM ${BASE} AS builder 20:06:25 1.17-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 20:06:25 9b3977197b4f: Pulling fs layer 20:06:25 1a89e8eeedd5: Pulling fs layer 20:06:25 94645a83ff95: Pulling fs layer 20:06:25 3f3a8bcf1eab: Pulling fs layer 20:06:25 0c92f367c5e7: Pulling fs layer 20:06:25 f7c0051592d6: Pulling fs layer 20:06:25 a227ed2f7395: Pulling fs layer 20:06:25 7b1c46037f91: Pulling fs layer 20:06:25 0c92f367c5e7: Waiting 20:06:25 f7c0051592d6: Waiting 20:06:25 a227ed2f7395: Waiting 20:06:25 7b1c46037f91: Waiting 20:06:25 94645a83ff95: Verifying Checksum 20:06:25 94645a83ff95: Download complete 20:06:25 1a89e8eeedd5: Verifying Checksum 20:06:25 1a89e8eeedd5: Download complete 20:06:25 0c92f367c5e7: Verifying Checksum 20:06:25 0c92f367c5e7: Download complete 20:06:25 f7c0051592d6: Verifying Checksum 20:06:25 f7c0051592d6: Download complete 20:06:25 9b3977197b4f: Download complete 20:06:25 a227ed2f7395: Verifying Checksum 20:06:25 a227ed2f7395: Download complete 20:06:26 9b3977197b4f: Pull complete 20:06:27 1a89e8eeedd5: Pull complete 20:06:27 94645a83ff95: Pull complete 20:06:28 7b1c46037f91: Verifying Checksum 20:06:28 7b1c46037f91: Download complete 20:06:28 3f3a8bcf1eab: Verifying Checksum 20:06:28 3f3a8bcf1eab: Download complete 20:06:41 3f3a8bcf1eab: Pull complete 20:06:41 0c92f367c5e7: Pull complete 20:06:41 f7c0051592d6: Pull complete 20:06:41 a227ed2f7395: Pull complete 20:06:48 7b1c46037f91: Pull complete 20:06:48 Digest: sha256:72afd471f6932efc3b14a707e53dab7ff98911016b282aefa83be7c085db88fe 20:06:48 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine 20:06:48 ---> f79e39bc4007 20:06:48 Step 3/12 : ARG MAKE='make build' 20:06:48 ---> Running in ca6a401ec921 20:06:48 Removing intermediate container ca6a401ec921 20:06:48 ---> f32d6f190d4e 20:06:48 Step 4/12 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 20:06:49 ---> Running in e260997bc063 20:06:49 Removing intermediate container e260997bc063 20:06:49 ---> 405ba70c7967 20:06:49 Step 5/12 : ARG ALPINE_PKG_EXTRA="" 20:06:49 ---> Running in 7db8ce0971c5 20:06:49 Removing intermediate container 7db8ce0971c5 20:06:49 ---> f544b84de9d5 20:06:49 Step 6/12 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 20:06:49 ---> Running in bf8116a58e05 20:06:51 Removing intermediate container bf8116a58e05 20:06:51 ---> 71915e17d044 20:06:51 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 20:06:51 ---> Running in 292e70d5eb74 20:06:52 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 20:06:53 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 20:06:54 (1/4) Installing openssh-keygen (8.8_p1-r1) 20:06:54 (2/4) Installing libedit (20210910.3.1-r0) 20:06:54 (3/4) Installing openssh-client-common (8.8_p1-r1) 20:06:54 (4/4) Installing openssh-client-default (8.8_p1-r1) 20:06:54 Executing busybox-1.34.1-r3.trigger 20:06:54 OK: 224 MiB in 56 packages 20:06:55 Removing intermediate container 292e70d5eb74 20:06:55 ---> 978bc5c0c673 20:06:55 Step 8/12 : WORKDIR /device-rest-go 20:06:55 ---> Running in 06be3b2c58f9 20:06:56 Removing intermediate container 06be3b2c58f9 20:06:56 ---> aef0819a343b 20:06:56 Step 9/12 : COPY go.mod vendor* ./ 20:06:56 ---> 2508837718b4 20:06:56 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 20:06:56 ---> Running in 891b7a54422d 20:08:18 Removing intermediate container 891b7a54422d 20:08:18 ---> eb474ca718ed 20:08:18 Step 11/12 : COPY . . 20:08:18 ---> 45d0af01c86f 20:08:18 Step 12/12 : RUN $MAKE 20:08:18 ---> Running in 8e6304ab7bc6 20:08:18 noop 20:08:18 Removing intermediate container 8e6304ab7bc6 20:08:18 ---> c6726ed559ec 20:08:18 Successfully built c6726ed559ec 20:08:18 Successfully tagged ci-base-image-arm64:latest [Pipeline] isUnix [Pipeline] sh 20:08:18 + docker inspect -f . ci-base-image-arm64 20:08:18 . [Pipeline] withDockerContainer 20:08:19 prd-ubuntu20.04-docker-arm64-4c-16g-9279 does not seem to be running inside a container 20:08:19 $ 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 ******** ci-base-image-arm64 cat 20:08:20 $ docker top e41a22cb8ede3b358c03262f2182d4dacf6a90e4531529dbab52e635095e7210 -eo pid,comm [Pipeline] { [Pipeline] sh 20:08:21 + go version 20:08:21 go version go1.17.6 linux/arm64 [Pipeline] } 20:08:21 $ docker stop --time=1 e41a22cb8ede3b358c03262f2182d4dacf6a90e4531529dbab52e635095e7210 20:08:23 $ docker rm -f e41a22cb8ede3b358c03262f2182d4dacf6a90e4531529dbab52e635095e7210 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 20:08:23 + docker inspect -f . ci-base-image-arm64 20:08:23 . [Pipeline] withDockerContainer 20:08:24 prd-ubuntu20.04-docker-arm64-4c-16g-9279 does not seem to be running inside a container 20:08:24 $ 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 ******** ci-base-image-arm64 cat 20:08:25 $ docker top 69054d33536e7262800a3f7eadb948be0acec682be3a3255f0543d7b2569f2ea -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 20:08:26 + make test 20:08:26 CGO_ENABLED=1 GO111MODULE=on go test -coverprofile=coverage.out ./... 20:08:27 ? github.com/edgexfoundry/device-rest-go [no test files] 20:09:14 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 20:09:19 ok github.com/edgexfoundry/device-rest-go/driver 0.065s coverage: 56.0% of statements 20:09:19 CGO_ENABLED=1 GO111MODULE=on go vet ./... 20:09:41 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 20:09:41 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 20:09:41 ./bin/test-attribution-txt.sh [Pipeline] echo 20:09:41 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 20:09:41 $ docker stop --time=1 69054d33536e7262800a3f7eadb948be0acec682be3a3255f0543d7b2569f2ea 20:09:43 $ docker rm -f 69054d33536e7262800a3f7eadb948be0acec682be3a3255f0543d7b2569f2ea [Pipeline] // withDockerContainer [Pipeline] sh 20:09:44 + sudo chown -R jenkins:jenkins . [Pipeline] stash 20:09:44 Warning: overwriting stash ‘coverage-report’ 20:09:45 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 20:09:45 + sudo chown -R jenkins:jenkins . [Pipeline] sh 20:09:46 + ls -al . 20:09:46 total 176 20:09:46 drwxrwxr-x 8 jenkins jenkins 4096 Mar 28 20:09 . 20:09:46 drwxrwxr-x 4 jenkins jenkins 4096 Mar 28 20:05 .. 20:09:46 -rw-rw-r-- 1 jenkins jenkins 151 Mar 28 20:05 .dockerignore 20:09:46 drwxrwxr-x 8 jenkins jenkins 4096 Mar 28 20:05 .git 20:09:46 drwxrwxr-x 2 jenkins jenkins 4096 Mar 28 20:05 .github 20:09:46 -rw-rw-r-- 1 jenkins jenkins 329 Mar 28 20:05 .gitignore 20:09:46 -rw-rw-r-- 1 jenkins jenkins 7192 Mar 28 20:05 Attribution.txt 20:09:46 -rw-rw-r-- 1 jenkins jenkins 7459 Mar 28 20:05 CHANGELOG.md 20:09:46 -rw-rw-r-- 1 jenkins jenkins 1672 Mar 28 20:05 Dockerfile 20:09:46 -rw-rw-r-- 1 jenkins jenkins 677 Mar 28 20:05 GOVERNANCE.md 20:09:46 -rw-rw-r-- 1 jenkins jenkins 680 Mar 28 20:05 Jenkinsfile 20:09:46 -rw-rw-r-- 1 jenkins jenkins 11340 Mar 28 20:05 LICENSE 20:09:46 -rw-rw-r-- 1 jenkins jenkins 1078 Mar 28 20:05 Makefile 20:09:46 -rw-rw-r-- 1 jenkins jenkins 620 Mar 28 20:05 OWNERS.md 20:09:46 -rw-rw-r-- 1 jenkins jenkins 8246 Mar 28 20:05 README.md 20:09:46 -rw-rw-r-- 1 jenkins jenkins 5 Mar 28 20:03 VERSION 20:09:46 drwxrwxr-x 2 jenkins jenkins 4096 Mar 28 20:05 bin 20:09:46 drwxrwxr-x 3 jenkins jenkins 4096 Mar 28 20:05 cmd 20:09:46 -rw-r--r-- 1 jenkins jenkins 9215 Mar 28 20:09 coverage.out 20:09:46 drwxrwxr-x 2 jenkins jenkins 4096 Mar 28 20:05 driver 20:09:46 -rw-rw-r-- 1 jenkins jenkins 2908 Mar 28 20:05 go.mod 20:09:46 -rw-rw-r-- 1 jenkins jenkins 50454 Mar 28 20:05 go.sum 20:09:46 drwxrwxr-x 3 jenkins jenkins 4096 Mar 28 20:05 snap 20:09:46 -rw-rw-r-- 1 jenkins jenkins 713 Mar 28 20:05 version.go [Pipeline] isUnix [Pipeline] sh 20:09:46 + 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=928ac87b7fcc99c492c1d1d83839fada765d9d81 --label arch=arm64 --label version=0.0.0 . 20:09:46 Sending build context to Docker daemon 134.7kB 20:09:46 Step 1/25 : ARG BASE=golang:1.17-alpine3.15 20:09:46 Step 2/25 : FROM ${BASE} AS builder 20:09:46 ---> c6726ed559ec 20:09:46 Step 3/25 : ARG MAKE='make build' 20:09:46 ---> Running in d85d70c2c3b2 20:09:47 Removing intermediate container d85d70c2c3b2 20:09:47 ---> 134611b6bc51 20:09:47 Step 4/25 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 20:09:47 ---> Running in 4f251beaa02b 20:09:47 Removing intermediate container 4f251beaa02b 20:09:47 ---> 6d9708723200 20:09:47 Step 5/25 : ARG ALPINE_PKG_EXTRA="" 20:09:47 ---> Running in ee828625cc05 20:09:47 Removing intermediate container ee828625cc05 20:09:47 ---> c7f5ad588e1b 20:09:47 Step 6/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 20:09:47 ---> Running in f97ce51a90c8 20:09:49 Removing intermediate container f97ce51a90c8 20:09:49 ---> f197a85542c4 20:09:49 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 20:09:49 ---> Running in cd5aea689085 20:09:50 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 20:09:51 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 20:09:52 OK: 224 MiB in 56 packages 20:09:53 Removing intermediate container cd5aea689085 20:09:53 ---> fda559fa3400 20:09:53 Step 8/25 : WORKDIR /device-rest-go 20:09:53 ---> Running in e1b3039e914c 20:09:53 Removing intermediate container e1b3039e914c 20:09:53 ---> a184c66414b6 20:09:53 Step 9/25 : COPY go.mod vendor* ./ 20:09:54 ---> 04eeb189c1ee 20:09:54 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 20:09:54 ---> Running in ddd7413f8c96 20:09:56 Removing intermediate container ddd7413f8c96 20:09:56 ---> 27041229afbd 20:09:56 Step 11/25 : COPY . . 20:09:57 ---> eeca64200694 20:09:57 Step 12/25 : RUN $MAKE 20:09:57 ---> Running in d9b0adadc177 20:09:58 CGO_ENABLED=1 GO111MODULE=on go build -ldflags "-X github.com/edgexfoundry/device-rest-go.Version=0.0.0" -o cmd/device-rest ./cmd 20:10:45 Removing intermediate container d9b0adadc177 20:10:45 ---> 6688a701eb29 20:10:45 Step 13/25 : FROM alpine:3.14 20:10:45 3.14: Pulling from library/alpine 20:10:45 93a1719cf261: Pulling fs layer 20:10:45 93a1719cf261: Verifying Checksum 20:10:45 93a1719cf261: Pull complete 20:10:45 Digest: sha256:cf5b2ed6e37873edf0733ad18ca3ccc414a60ba260be611459c245508a19b652 20:10:45 Status: Downloaded newer image for alpine:3.14 20:10:45 ---> 71a2028e5025 20:10:45 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' 20:10:45 ---> Running in 9fbf92f1df82 20:10:45 Removing intermediate container 9fbf92f1df82 20:10:45 ---> 8265e8035044 20:10:45 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 20:10:45 ---> Running in 3485556e489c 20:10:45 Removing intermediate container 3485556e489c 20:10:45 ---> 7089dbcc3270 20:10:45 Step 16/25 : RUN apk add --update --no-cache zeromq dumb-init 20:10:45 ---> Running in 43ffea36b985 20:10:45 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/aarch64/APKINDEX.tar.gz 20:10:45 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/aarch64/APKINDEX.tar.gz 20:10:45 (1/6) Installing dumb-init (1.2.5-r1) 20:10:45 (2/6) Installing libgcc (10.3.1_git20210424-r2) 20:10:45 (3/6) Installing libsodium (1.0.18-r0) 20:10:45 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 20:10:45 (5/6) Installing libzmq (4.3.4-r0) 20:10:45 (6/6) Installing zeromq (4.3.4-r0) 20:10:45 Executing busybox-1.33.1-r6.trigger 20:10:45 OK: 8 MiB in 20 packages 20:10:46 Removing intermediate container 43ffea36b985 20:10:46 ---> 65eb2e128cd1 20:10:46 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 20:10:47 ---> 9bded1f8ff0f 20:10:47 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 20:10:48 ---> 0f6e1ad048a3 20:10:48 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 20:10:48 ---> bca62d47426e 20:10:48 Step 20/25 : EXPOSE 59986 20:10:48 ---> Running in d62ef9f72451 20:10:49 Removing intermediate container d62ef9f72451 20:10:49 ---> 809cb4df360c 20:10:49 Step 21/25 : ENTRYPOINT ["/device-rest"] 20:10:49 ---> Running in cbf0dccb5b83 20:10:49 Removing intermediate container cbf0dccb5b83 20:10:49 ---> aaf54696440b 20:10:49 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--confdir=/res", "--registry"] 20:10:49 ---> Running in e745358f3750 20:10:49 Removing intermediate container e745358f3750 20:10:49 ---> de8203d8e5ce 20:10:49 Step 23/25 : LABEL arch=arm64 20:10:49 ---> Running in eebcfe96654d 20:10:50 Removing intermediate container eebcfe96654d 20:10:50 ---> 25dfb88624fa 20:10:50 Step 24/25 : LABEL git_sha=928ac87b7fcc99c492c1d1d83839fada765d9d81 20:10:50 ---> Running in 15d3177bf72f 20:10:50 Removing intermediate container 15d3177bf72f 20:10:50 ---> 9062631261dc 20:10:50 Step 25/25 : LABEL version=0.0.0 20:10:50 ---> Running in 631a5877ae79 20:10:50 Removing intermediate container 631a5877ae79 20:10:50 ---> 5271a61fd749 20:10:50 [Warning] One or more build-args [ARCH] were not consumed 20:10:50 Successfully built 5271a61fd749 20:10:50 Successfully tagged device-rest-arm64:latest [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Docker Push) Stage "Docker Push" skipped due to when conditional [Pipeline] } [Pipeline] // stage Post stage [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 20:10:51 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 20:10:51 20:10:51 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] sh 20:10:52 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 20:10:52 arm64: Pulling from edgex-lftools-log-publisher 20:10:52 8998bd30e6a1: Pulling fs layer 20:10:52 04944245beec: Pulling fs layer 20:10:52 699f458cf7ca: Pulling fs layer 20:10:52 765212b225bb: Pulling fs layer 20:10:52 f23df028b6ca: Pulling fs layer 20:10:52 d65c8cfc05b1: Pulling fs layer 20:10:52 2437ff75d9bd: Pulling fs layer 20:10:52 765212b225bb: Waiting 20:10:52 f23df028b6ca: Waiting 20:10:52 d65c8cfc05b1: Waiting 20:10:52 2437ff75d9bd: Waiting 20:10:52 04944245beec: Verifying Checksum 20:10:52 04944245beec: Download complete 20:10:52 765212b225bb: Verifying Checksum 20:10:52 765212b225bb: Download complete 20:10:52 f23df028b6ca: Verifying Checksum 20:10:52 f23df028b6ca: Download complete 20:10:52 d65c8cfc05b1: Verifying Checksum 20:10:52 d65c8cfc05b1: Download complete 20:10:52 699f458cf7ca: Verifying Checksum 20:10:52 699f458cf7ca: Download complete 20:10:52 8998bd30e6a1: Download complete 20:10:55 2437ff75d9bd: Download complete 20:10:57 8998bd30e6a1: Pull complete 20:10:57 04944245beec: Pull complete 20:10:59 699f458cf7ca: Pull complete 20:10:59 765212b225bb: Pull complete 20:11:00 f23df028b6ca: Pull complete 20:11:00 d65c8cfc05b1: Pull complete 20:11:15 2437ff75d9bd: Pull complete 20:11:15 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 20:11:15 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 20:11:15 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] withDockerContainer 20:11:16 prd-ubuntu20.04-docker-arm64-4c-16g-9279 does not seem to be running inside a container 20:11:16 $ 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 ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 20:11:18 $ docker top ed76a2902079ae4e61f47db23a78480265dc788e5a26d0d36e9f191135c88a35 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 20:11:20 ---> job-cost.sh 20:11:20 lf-activate-venv: SKIPPING 20:11:20 INFO: No Stack... 20:11:20 INFO: Retrieving Pricing Info for: v3-standard-4 20:11:21 INFO: Archiving Costs [Pipeline] sh 20:11:21 + cat /w/workspace/device-rest-go/1/archives/cost.csv 20:11:21 + cut -d, -f6 [Pipeline] lock 20:11:22 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-163-1-stack-cost] 20:11:22 Resource [jenkins-edgexfoundry-device-rest-go-PR-163-1-stack-cost] did not exist. Created. 20:11:22 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-163-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 20:11:22 /w/workspace/device-rest-go/1@tmp/durable-59b0afc2/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 20:11:23 + echo total: 0.10999999940395355 [Pipeline] stash 20:11:23 Warning: overwriting stash ‘stack-cost’ 20:11:23 Stashed 1 file(s) [Pipeline] } 20:11:23 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-163-1-stack-cost] [Pipeline] // lock [Pipeline] } 20:11:23 $ docker stop --time=1 ed76a2902079ae4e61f47db23a78480265dc788e5a26d0d36e9f191135c88a35 20:11:25 $ docker rm -f ed76a2902079ae4e61f47db23a78480265dc788e5a26d0d36e9f191135c88a35 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // ws [Pipeline] } [Pipeline] // node [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // parallel [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (CodeCov) [Pipeline] unstash [Pipeline] configFileProvider 20:11:26 provisioning config files... 20:11:26 copy managed file [device-rest-go-codecov-token] to file:/w/workspace/gexfoundry_device-rest-go_PR-163@tmp/config8334829661584032857tmp [Pipeline] { [Pipeline] sh 20:11:26 + set +x 20:11:26 + curl -s https://codecov.io/bash 20:11:26 + bash -s -- 20:11:26 20:11:26 _____ _ 20:11:26 / ____| | | 20:11:26 | | ___ __| | ___ ___ _____ __ 20:11:26 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 20:11:26 | |___| (_) | (_| | __/ (_| (_) \ V / 20:11:26 \_____\___/ \__,_|\___|\___\___/ \_/ 20:11:26 Bash-1.0.6 20:11:26 20:11:26 20:11:26 ==> git version 2.25.1 found 20:11:26 ==> curl 7.68.0 (x86_64-pc-linux-gnu) libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3 20:11:26 Release-Date: 2020-01-08 20:11:26 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 20:11:26 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 20:11:26 ==> Jenkins CI detected. 20:11:26 current dir:  /w/workspace/gexfoundry_device-rest-go_PR-163 20:11:26 project root: . 20:11:26 --> token set from env 20:11:26 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 20:11:26 ==> Running gcov in . (disable via -X gcov) 20:11:26 ==> Python coveragepy not found 20:11:26 ==> Searching for coverage reports in: 20:11:26 + . 20:11:26 -> Found 1 reports 20:11:26 ==> Detecting git/mercurial file structure 20:11:26 ==> Reading reports 20:11:26 + ./coverage.out bytes=9215 20:11:26 ==> Appending adjustments 20:11:26 https://docs.codecov.io/docs/fixing-reports 20:11:26 + Found adjustments 20:11:26 ==> Gzipping contents 20:11:26 4.0K /tmp/codecov.yTZkbf.gz 20:11:26 ==> Uploading reports 20:11:26 url: https://codecov.io 20:11:26 query: branch=PR-163&commit=928ac87b7fcc99c492c1d1d83839fada765d9d81&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-163%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=163&job=&cmd_args= 20:11:26 -> Pinging Codecov 20:11:26 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=c51feb23-73ac-4f49-b3d1-d26df23137db&branch=PR-163&commit=928ac87b7fcc99c492c1d1d83839fada765d9d81&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-163%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=163&job=&cmd_args= 20:11:27 -> Uploading to 20:11:27 https://storage.googleapis.com/codecov/v4/raw/2022-03-28/4E5D53B4F1F92C436F7061BF334D961C/928ac87b7fcc99c492c1d1d83839fada765d9d81/d73bfb2c-c3e7-4db7-823a-9abbbff6908f.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20220328%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20220328T201127Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=f23ef5d36a216437f3cd4ffb224cd8dbb1765c82e6b83034a95e258dcfe1d8e4 20:11:27 % Total % Received % Xferd Average Speed Time Time Time Current 20:11:27 Dload Upload Total Spent Left Speed 20:11:27 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 1798 0 0 100 1798 0 7716 --:--:-- --:--:-- --:--:-- 7716 20:11:27 -> Reports have been successfully queued for processing at https://codecov.io/github/edgexfoundry/device-rest-go/commit/928ac87b7fcc99c492c1d1d83839fada765d9d81 [Pipeline] } 20:11:27 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Snyk Dependency Scan) Stage "Snyk Dependency Scan" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Archive Prep) Stage "Archive Prep" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Publish Swagger) Stage "Publish Swagger" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Semver) Stage "Semver" skipped due to when conditional [Pipeline] stage [Pipeline] { (Tag) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Pre-Release Version) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Experimental Tag) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Stable (Named) Tag) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Declarative: Post Actions) [Pipeline] stage [Pipeline] { (LF Post Build Actions) [Pipeline] sh 20:11:29 + [ -d /w/workspace/gexfoundry_device-rest-go_PR-163/archives ] 20:11:29 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-163/archives 20:11:29 total 16 20:11:29 drwxr-xr-x 3 root root 4096 Mar 28 20:05 . 20:11:29 drwxrwxr-x 10 jenkins jenkins 4096 Mar 28 20:05 .. 20:11:29 drwxr-xr-x 2 root root 4096 Mar 28 20:05 cost 20:11:29 -rw-r--r-- 1 root root 85 Mar 28 20:05 cost.csv 20:11:29 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-rest-go_PR-163/archives 20:11:29 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-163/archives 20:11:29 total 16 20:11:29 drwxr-xr-x 3 jenkins jenkins 4096 Mar 28 20:05 . 20:11:29 drwxrwxr-x 10 jenkins jenkins 4096 Mar 28 20:05 .. 20:11:29 drwxr-xr-x 2 jenkins jenkins 4096 Mar 28 20:05 cost 20:11:29 -rw-r--r-- 1 jenkins jenkins 85 Mar 28 20:05 cost.csv [Pipeline] libraryResource [Pipeline] sh 20:11:30 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 20:11:30 ---> package-listing.sh 20:11:30 ++ facter osfamily 20:11:30 ++ tr '[:upper:]' '[:lower:]' 20:11:31 + OS_FAMILY=debian 20:11:31 + workspace=/w/workspace/gexfoundry_device-rest-go_PR-163 20:11:31 + START_PACKAGES=/tmp/packages_start.txt 20:11:31 + END_PACKAGES=/tmp/packages_end.txt 20:11:31 + DIFF_PACKAGES=/tmp/packages_diff.txt 20:11:31 + PACKAGES=/tmp/packages_start.txt 20:11:31 + '[' /w/workspace/gexfoundry_device-rest-go_PR-163 ']' 20:11:31 + PACKAGES=/tmp/packages_end.txt 20:11:31 + case "${OS_FAMILY}" in 20:11:31 + dpkg -l 20:11:31 + grep '^ii' 20:11:31 + '[' -f /tmp/packages_start.txt ']' 20:11:31 + '[' -f /tmp/packages_end.txt ']' 20:11:31 + diff /tmp/packages_start.txt /tmp/packages_end.txt 20:11:31 + '[' /w/workspace/gexfoundry_device-rest-go_PR-163 ']' 20:11:31 + mkdir -p /w/workspace/gexfoundry_device-rest-go_PR-163/archives/ 20:11:31 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/gexfoundry_device-rest-go_PR-163/archives/ [Pipeline] echo 20:11:31 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-163/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 20:11:31 + facter operatingsystem [Pipeline] isUnix [Pipeline] sh 20:11:32 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 20:11:32 . [Pipeline] withDockerContainer 20:11:32 prd-ubuntu20.04-docker-8c-8g-9276 does not seem to be running inside a container 20:11:32 $ 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-163/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-163 -v /w/workspace/gexfoundry_device-rest-go_PR-163:/w/workspace/gexfoundry_device-rest-go_PR-163:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-163@tmp:/w/workspace/gexfoundry_device-rest-go_PR-163@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 ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 20:11:32 $ docker top 905998b714a4b21dec29eefc2dd33ce9c98868dd6fb9a2f384e46dabbb62210c -eo pid,comm [Pipeline] { [Pipeline] sh 20:11:32 + touch /tmp/pre-build-complete [Pipeline] sh 20:11:33 + mkdir -p /var/log/sysstat [Pipeline] sh 20:11:33 + ls /var/log/sa-host 20:11:33 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 20:11:33 provisioning config files... 20:11:33 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-163@tmp/config8913397995359182191tmp [Pipeline] { [Pipeline] echo 20:11:33 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 20:11:34 ---> create-netrc.sh [Pipeline] } 20:11:34 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 20:11:34 ---> python-tools-install.sh [Pipeline] echo 20:11:34 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 20:11:34 ---> sudo-logs.sh 20:11:34 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 20:11:35 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 20:11:35 ---> job-cost.sh 20:11:35 lf-activate-venv: SKIPPING 20:11:35 DEBUG: total: 0.2199999988079071 20:11:35 INFO: Retrieving Stack Cost... 20:11:35 INFO: Retrieving Pricing Info for: v3-standard-8 20:11:36 INFO: Archiving Costs [Pipeline] echo 20:11:36 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 20:11:36 ---> logs-deploy.sh 20:11:36 lf-activate-venv: SKIPPING 20:11:36 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-163/1 20:11:36 INFO: archiving workspace using pattern(s): 20:11:37 Archives upload complete. 20:11:37 INFO: archiving logs to Nexus