Pull request #160 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 hahattan for edgexfoundry/device-rest-go Obtained Jenkinsfile from 0e5eba1adb770c7993a51c69e8eb65ef5c4701c0+f3318b721e0f943881393329fd3e7443e525a415 (15aaa6b2fd8ff1f66bc82126ca92131d562da1fb) 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-ssh12506918547063417313.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-ssh5028322854241934639.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-160/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-160/workspace@libs/edgex-global-pipelines@tmp/jenkins-gitclient-ssh16832022461377589154.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-160/workspace@libs/edgex-global-pipelines@tmp/jenkins-gitclient-ssh5855880774999421358.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-ssh12829095807786609773.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-160/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-160/workspace@libs/lf-pipelines@tmp/jenkins-gitclient-ssh12338288207164918124.key > git fetch --no-tags --progress -- git@github.com:lfit/releng-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:lfit/releng-pipelines.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 Avoid second fetch Checking out Revision b3dada9287033e4e81bc68320e01fd57bef02650 (master) > git config core.sparsecheckout # timeout=10 > git checkout -f b3dada9287033e4e81bc68320e01fd57bef02650 # timeout=10 Commit message: "Fix: Update requirements.txt, update global-jjb" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 > git --version # timeout=10 > git --version # 'git version 2.16.6' fatal: bad object c72b16708d6eed9a08be464a432ce22db7d90667 Excluding src/test/ from checkout of git git@github.com:lfit/releng-pipelines.git so that shared library test code cannot be accessed by Pipelines. To remove this log message, move the test code outside of src/. To restore the previous behavior that allowed access to files in src/test/, pass -Dorg.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.INCLUDE_SRC_TEST_IN_LIBRARIES=true to the java command used to start Jenkins. [Pipeline] Start of Pipeline [Pipeline] echo ========================================================= [edgeXBuildGoApp] RAW Config: [project:device-rest-go] ========================================================= [Pipeline] echo Setting up nodes based on requested architectures [[amd64, arm64]] [Pipeline] echo Nodes requested: [[ubuntu20.04-docker-8c-8g, ubuntu20.04-docker-arm64-4c-16g]] [Pipeline] echo ========================================================= [edgeXBuildGoApp] Pipeline Parameters: ========================================================= [Pipeline] echo MAVEN_SETTINGS: device-rest-go-settings PROJECT: device-rest-go USE_SEMVER: true TEST_SCRIPT: make test BUILD_SCRIPT: make build GO_VERSION: 1.17 USE_ALPINE: true DOCKER_FILE_PATH: Dockerfile DOCKER_BUILD_FILE_PATH: Dockerfile.build DOCKER_BUILD_CONTEXT: . DOCKER_BUILD_IMAGE_TARGET: builder DOCKER_IMAGE_NAME: device-rest DOCKER_REGISTRY_NAMESPACE: DOCKER_NEXUS_REPO: staging BUILD_DOCKER_IMAGE: true PUSH_DOCKER_IMAGE: true BUILD_EXPERIMENTAL_DOCKER_IMAGE: false BUILD_STABLE_DOCKER_IMAGE: false SEMVER_BUMP_LEVEL: pre BUILD_SNAP: false PUBLISH_SWAGGER_DOCS: false SWAGGER_API_FOLDERS: openapi/v1 ARTIFACT_ROOT: archives/bin ARTIFACT_TYPES: docker SHOULD_BUILD: true BUILD_FAILURE_NOTIFY_LIST: edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] node Still waiting to schedule task Waiting for next available executor on ‘ubuntu20.04-docker-8c-8g’ Running on prd-ubuntu20.04-docker-8c-8g-7804 in /w/workspace/gexfoundry_device-rest-go_PR-160 [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-160 # 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 f3318b721e0f943881393329fd3e7443e525a415 into PR head commit 0e5eba1adb770c7993a51c69e8eb65ef5c4701c0 Merge succeeded, producing 0e5eba1adb770c7993a51c69e8eb65ef5c4701c0 Checking out Revision 0e5eba1adb770c7993a51c69e8eb65ef5c4701c0 (PR-160) > 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/160/head:refs/remotes/origin/PR-160 +refs/heads/main:refs/remotes/origin/main # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 0e5eba1adb770c7993a51c69e8eb65ef5c4701c0 # 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 f3318b721e0f943881393329fd3e7443e525a415 # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 0e5eba1adb770c7993a51c69e8eb65ef5c4701c0 # timeout=10 Commit message: "build(deps): Bump sdk and core-contracts to latest version" 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 07:30:20 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 07:30:20 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 07:30:20 ========================================================= 07:30:20 EdgeX Global Pipelines Version Info 07:30:20 ========================================================= [Pipeline] libraryResource [Pipeline] sh 07:30:21 ------------------- 07:30:21 stable info: 07:30:21 ------------------- 07:30:21 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 07:30:21 Commit SHA: c72b16708d6eed9a08be464a432ce22db7d90667 07:30:21 Message: update stable to v1.0.221 07:30:22 ------------------- 07:30:22 experimental info: 07:30:22 ------------------- 07:30:22 Commited By: **** collab-it+edgex@linuxfoundation.org 07:30:22 Commit SHA: c72b16708d6eed9a08be464a432ce22db7d90667 07:30:22 Message: update experimental to v1.0.221 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 07:30:22 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 07:30:22 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 07:30:22 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 07:30:22 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 07:30:22 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 07:30:22 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.17 [Pipeline] echo 07:30:22 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 07:30:22 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 07:30:22 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 07:30:22 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 07:30:22 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 07:30:23 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 07:30:23 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 07:30:23 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 07:30:23 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 07:30:23 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 07:30:23 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 07:30:23 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 07:30:23 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 07:30:23 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 07:30:23 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 07:30:23 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 07:30:23 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 07:30:23 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 07:30:23 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 07:30:23 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 07:30:23 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-160 [Pipeline] echo 07:30:23 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-160 [Pipeline] echo 07:30:23 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-160 [Pipeline] echo 07:30:23 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 0e5eba1adb770c7993a51c69e8eb65ef5c4701c0 [Pipeline] echo 07:30:23 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 0e5eba1 [Pipeline] echo 07:30:23 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 07:30:23 provisioning config files... 07:30:23 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-160@tmp/config1076447269662401339tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 07:30:24 ---> docker-login.sh 07:30:24 nexus3.edgexfoundry.org:10001 07:30:24 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:30:24 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:30:24 Configure a credential helper to remove this warning. See 07:30:24 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:30:24 07:30:24 Login Succeeded 07:30:24 nexus3.edgexfoundry.org:10002 07:30:24 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:30:24 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:30:24 Configure a credential helper to remove this warning. See 07:30:24 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:30:24 07:30:24 Login Succeeded 07:30:24 nexus3.edgexfoundry.org:10003 07:30:24 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:30:24 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:30:24 Configure a credential helper to remove this warning. See 07:30:24 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:30:24 07:30:24 Login Succeeded 07:30:24 nexus3.edgexfoundry.org:10004 07:30:25 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:30:25 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:30:25 Configure a credential helper to remove this warning. See 07:30:25 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:30:25 07:30:25 Login Succeeded 07:30:25 docker.io 07:30:25 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:30:25 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:30:25 Configure a credential helper to remove this warning. See 07:30:25 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:30:25 07:30:25 Login Succeeded 07:30:25 ---> docker-login.sh ends [Pipeline] } 07:30:25 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 07:30:26 + git rev-list -1 --merges 0e5eba1adb770c7993a51c69e8eb65ef5c4701c0~1..0e5eba1adb770c7993a51c69e8eb65ef5c4701c0 [Pipeline] echo 07:30:26 -----------> git rev-list -1 --merges 0e5eba1adb770c7993a51c69e8eb65ef5c4701c0~1..0e5eba1adb770c7993a51c69e8eb65ef5c4701c0 0e5eba1adb770c7993a51c69e8eb65ef5c4701c0 [false] [Pipeline] sh 07:30:26 + git log --format=format:%s -1 0e5eba1adb770c7993a51c69e8eb65ef5c4701c0 [Pipeline] echo 07:30:26 ========================================================= 07:30:26 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 07:30:26 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 07:30:27 + git log --format=format:%s -1 0e5eba1adb770c7993a51c69e8eb65ef5c4701c0 [Pipeline] echo 07:30:27 [semverPrep] GIT_COMMIT: 0e5eba1adb770c7993a51c69e8eb65ef5c4701c0, Commit Message: build(deps): Bump sdk and core-contracts to latest version [Pipeline] echo 07:30:27 [semverPrep] This is not a build commit. [Pipeline] sh 07:30:27 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 07:30:27 + grep -v github /etc/ssh/ssh_known_hosts 07:30:27 + [ -e /tmp/ssh_known_hosts ] 07:30:27 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 07:30:27 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 07:30:27 + sudo tee -a /etc/ssh/ssh_known_hosts 07:30:27 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] sh 07:30:28 + docker inspect -f . nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 07:30:28 07:30:28 Error: No such object: nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] isUnix [Pipeline] sh 07:30:28 + docker pull nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 07:30:28 latest: Pulling from edgex-devops/git-semver 07:30:28 a0d0a0d46f8b: Pulling fs layer 07:30:28 3e5f54012d9b: Pulling fs layer 07:30:28 4c7163046ea9: Pulling fs layer 07:30:28 0c2d73faf560: Pulling fs layer 07:30:28 3e5f54012d9b: Verifying Checksum 07:30:28 3e5f54012d9b: Download complete 07:30:28 a0d0a0d46f8b: Download complete 07:30:28 0c2d73faf560: Verifying Checksum 07:30:28 0c2d73faf560: Download complete 07:30:28 4c7163046ea9: Verifying Checksum 07:30:28 a0d0a0d46f8b: Pull complete 07:30:28 3e5f54012d9b: Pull complete 07:30:28 4c7163046ea9: Pull complete 07:30:29 0c2d73faf560: Pull complete 07:30:29 Digest: sha256:2751de6e655929dcbe46418c7769d9d992331b5b721eb968631a4166222929f9 07:30:29 Status: Downloaded newer image for nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 07:30:29 nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] withDockerContainer 07:30:29 prd-ubuntu20.04-docker-8c-8g-7804 does not seem to be running inside a container 07:30:29 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/gexfoundry_device-rest-go_PR-160 -v /w/workspace/gexfoundry_device-rest-go_PR-160:/w/workspace/gexfoundry_device-rest-go_PR-160:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-160@tmp:/w/workspace/gexfoundry_device-rest-go_PR-160@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 07:30:29 $ docker top f2371df02e2a43a738aeb096779ac0701a586856e492e6ac4c6cd436517568c2 -eo pid,comm [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 07:30:30 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 07:30:30 [ssh-agent] Looking for ssh-agent implementation... 07:30:30 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 07:30:30 $ docker exec f2371df02e2a43a738aeb096779ac0701a586856e492e6ac4c6cd436517568c2 ssh-agent 07:30:30 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXmAAPlL/agent.13 07:30:30 SSH_AGENT_PID=19 07:30:30 Running ssh-add (command line suppressed) 07:30:30 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-160@tmp/private_key_3930468752306839916.key (/w/workspace/gexfoundry_device-rest-go_PR-160@tmp/private_key_3930468752306839916.key) 07:30:30 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 07:30:30 + git tag --points-at HEAD [Pipeline] } 07:30:30 $ docker exec --env ******** --env ******** f2371df02e2a43a738aeb096779ac0701a586856e492e6ac4c6cd436517568c2 ssh-agent -k 07:30:31 unset SSH_AUTH_SOCK; 07:30:31 unset SSH_AGENT_PID; 07:30:31 echo Agent pid 19 killed; 07:30:31 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 07:30:31 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 07:30:31 [ssh-agent] Looking for ssh-agent implementation... 07:30:31 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 07:30:31 $ docker exec f2371df02e2a43a738aeb096779ac0701a586856e492e6ac4c6cd436517568c2 ssh-agent 07:30:31 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXKhAGLh/agent.51 07:30:31 SSH_AGENT_PID=57 07:30:31 Running ssh-add (command line suppressed) 07:30:31 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-160@tmp/private_key_3640553279964055384.key (/w/workspace/gexfoundry_device-rest-go_PR-160@tmp/private_key_3640553279964055384.key) 07:30:31 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 07:30:31 + git semver init 07:30:31 # -> Open(): unable to determine branch for HEAD 07:30:31 # $GIT_DIR = /w/workspace/gexfoundry_device-rest-go_PR-160/.git 07:30:31 # $GIT_WORK_TREE = /w/workspace/gexfoundry_device-rest-go_PR-160 07:30:31 # $SEMVER_REMOTE_NAME = origin 07:30:31 # $SEMVER_USER_EMAIL = collab-it+edgex@linuxfoundation.org 07:30:31 # $SEMVER_USER_NAME = edgex-jenkins 07:30:31 # $SEMVER_BRANCH = PR-160 07:30:31 # $SEMVER_TEMP = /tmp/semver-230461701 07:30:31 # git clone --branch semver git@github.com:edgexfoundry/device-rest-go.git $SEMVER_TEMP 07:30:33 # '/tmp/semver-230461701' -> '/w/workspace/gexfoundry_device-rest-go_PR-160/.semver' 07:30:33 # -> Force: false 07:30:33 # $SEMVER_DIR = /w/workspace/gexfoundry_device-rest-go_PR-160/.semver [Pipeline] } 07:30:33 $ docker exec --env ******** --env ******** f2371df02e2a43a738aeb096779ac0701a586856e492e6ac4c6cd436517568c2 ssh-agent -k 07:30:33 unset SSH_AUTH_SOCK; 07:30:33 unset SSH_AGENT_PID; 07:30:33 echo Agent pid 57 killed; 07:30:33 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 07:30:33 + git semver [Pipeline] } 07:30:33 $ docker stop --time=1 f2371df02e2a43a738aeb096779ac0701a586856e492e6ac4c6cd436517568c2 07:30:35 $ docker rm -f f2371df02e2a43a738aeb096779ac0701a586856e492e6ac4c6cd436517568c2 [Pipeline] // withDockerContainer [Pipeline] sh 07:30:35 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 07:30:36 Stashed 1 file(s) [Pipeline] echo 07:30:36 [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 07:30:36 provisioning config files... 07:30:36 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-160@tmp/config8661946101432925154tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 07:30:37 ---> docker-login.sh 07:30:37 nexus3.edgexfoundry.org:10001 07:30:37 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:30:37 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:30:37 Configure a credential helper to remove this warning. See 07:30:37 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:30:37 07:30:37 Login Succeeded 07:30:37 nexus3.edgexfoundry.org:10002 07:30:37 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:30:37 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:30:37 Configure a credential helper to remove this warning. See 07:30:37 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:30:37 07:30:37 Login Succeeded 07:30:37 nexus3.edgexfoundry.org:10003 07:30:37 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:30:37 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:30:37 Configure a credential helper to remove this warning. See 07:30:37 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:30:37 07:30:37 Login Succeeded 07:30:37 nexus3.edgexfoundry.org:10004 07:30:37 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:30:37 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:30:37 Configure a credential helper to remove this warning. See 07:30:37 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:30:37 07:30:37 Login Succeeded 07:30:37 docker.io 07:30:37 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:30:37 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:30:37 Configure a credential helper to remove this warning. See 07:30:37 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:30:37 07:30:37 Login Succeeded 07:30:37 ---> docker-login.sh ends [Pipeline] } 07:30:37 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 07:30:38 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 07:30:38 ========================================================= 07:30:38 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine] 07:30:38 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 07:30:38 + 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 . 07:30:38 Sending build context to Docker daemon 10.55MB 07:30:38 Step 1/12 : ARG BASE=golang:1.17-alpine3.15 07:30:38 Step 2/12 : FROM ${BASE} AS builder 07:30:38 1.17-alpine: Pulling from edgex-devops/edgex-golang-base 07:30:38 59bf1c3509f3: Pulling fs layer 07:30:38 666ba61612fd: Pulling fs layer 07:30:38 8ed8ca486205: Pulling fs layer 07:30:38 4fe6c5a15a65: Pulling fs layer 07:30:38 22a0e8bec74d: Pulling fs layer 07:30:38 640e595b4fbd: Pulling fs layer 07:30:38 763cafe07f6e: Pulling fs layer 07:30:38 0c0b528cf693: Pulling fs layer 07:30:38 10935f4eaf8b: Pulling fs layer 07:30:38 4fe6c5a15a65: Waiting 07:30:38 640e595b4fbd: Waiting 07:30:38 22a0e8bec74d: Waiting 07:30:38 763cafe07f6e: Waiting 07:30:38 0c0b528cf693: Waiting 07:30:38 10935f4eaf8b: Waiting 07:30:38 8ed8ca486205: Verifying Checksum 07:30:38 8ed8ca486205: Download complete 07:30:38 666ba61612fd: Verifying Checksum 07:30:38 666ba61612fd: Download complete 07:30:38 22a0e8bec74d: Verifying Checksum 07:30:38 22a0e8bec74d: Download complete 07:30:38 640e595b4fbd: Verifying Checksum 07:30:38 640e595b4fbd: Download complete 07:30:38 59bf1c3509f3: Verifying Checksum 07:30:38 59bf1c3509f3: Download complete 07:30:38 763cafe07f6e: Verifying Checksum 07:30:38 763cafe07f6e: Download complete 07:30:38 0c0b528cf693: Verifying Checksum 07:30:38 59bf1c3509f3: Pull complete 07:30:38 666ba61612fd: Pull complete 07:30:38 8ed8ca486205: Pull complete 07:30:39 10935f4eaf8b: Verifying Checksum 07:30:39 10935f4eaf8b: Download complete 07:30:39 4fe6c5a15a65: Verifying Checksum 07:30:39 4fe6c5a15a65: Download complete 07:30:43 4fe6c5a15a65: Pull complete 07:30:43 22a0e8bec74d: Pull complete 07:30:43 640e595b4fbd: Pull complete 07:30:43 763cafe07f6e: Pull complete 07:30:43 0c0b528cf693: Pull complete 07:30:45 10935f4eaf8b: Pull complete 07:30:45 Digest: sha256:fe2da51ced2bed6c5fc1d1038c2fbec5a5bb29cdcacce78977c37c66bfba8387 07:30:45 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine 07:30:45 ---> 99d49a6021b9 07:30:45 Step 3/12 : ARG MAKE='make build' 07:30:47 ---> Running in 0c6cb0bf4ef4 07:30:47 Removing intermediate container 0c6cb0bf4ef4 07:30:47 ---> 8d9deddb91a5 07:30:47 Step 4/12 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 07:30:47 ---> Running in ba1315fa9936 07:30:47 Removing intermediate container ba1315fa9936 07:30:47 ---> 1f79a7edf4ab 07:30:47 Step 5/12 : ARG ALPINE_PKG_EXTRA="" 07:30:47 ---> Running in c028f8c16403 07:30:47 Removing intermediate container c028f8c16403 07:30:47 ---> e914f6a1276d 07:30:47 Step 6/12 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 07:30:47 ---> Running in c9a016c14ac4 07:30:48 Removing intermediate container c9a016c14ac4 07:30:48 ---> 319c88ac5bfd 07:30:48 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 07:30:48 ---> Running in fcf7dac2a17e 07:30:48 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 07:30:49 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 07:30:49 (1/4) Installing openssh-keygen (8.8_p1-r1) 07:30:49 (2/4) Installing libedit (20210910.3.1-r0) 07:30:49 (3/4) Installing openssh-client-common (8.8_p1-r1) 07:30:49 (4/4) Installing openssh-client-default (8.8_p1-r1) 07:30:49 Executing busybox-1.34.1-r3.trigger 07:30:49 OK: 224 MiB in 56 packages 07:30:50 Removing intermediate container fcf7dac2a17e 07:30:50 ---> 13924d001e9f 07:30:50 Step 8/12 : WORKDIR /device-rest-go 07:30:50 ---> Running in eaed2a67c821 07:30:50 Removing intermediate container eaed2a67c821 07:30:50 ---> 0fa8f5266eb6 07:30:50 Step 9/12 : COPY go.mod vendor* ./ 07:30:50 ---> e430c826caba 07:30:50 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 07:30:50 ---> Running in bb12c2137c1d 07:30:51 Still waiting to schedule task 07:30:51 Waiting for next available executor on ‘ubuntu20.04-docker-arm64-4c-16g’ 07:31:12 Removing intermediate container bb12c2137c1d 07:31:12 ---> da46964cf567 07:31:12 Step 11/12 : COPY . . 07:31:12 ---> d386d7b1c3e9 07:31:12 Step 12/12 : RUN $MAKE 07:31:12 ---> Running in 5304f27f2599 07:31:12 noop 07:31:13 Removing intermediate container 5304f27f2599 07:31:13 ---> 4947c3895505 07:31:13 Successfully built 4947c3895505 07:31:13 Successfully tagged ci-base-image-x86_64:latest [Pipeline] isUnix [Pipeline] sh 07:31:13 + docker inspect -f . ci-base-image-x86_64 07:31:13 . [Pipeline] withDockerContainer 07:31:13 prd-ubuntu20.04-docker-8c-8g-7804 does not seem to be running inside a container 07:31:13 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-160 -v /w/workspace/gexfoundry_device-rest-go_PR-160:/w/workspace/gexfoundry_device-rest-go_PR-160:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-160@tmp:/w/workspace/gexfoundry_device-rest-go_PR-160@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 07:31:13 $ docker top 297bec6339130f01f0924e19b8462d8551becd42cee04875e6d2890809106308 -eo pid,comm [Pipeline] { [Pipeline] sh 07:31:14 + go version 07:31:14 go version go1.17.6 linux/amd64 [Pipeline] } 07:31:14 $ docker stop --time=1 297bec6339130f01f0924e19b8462d8551becd42cee04875e6d2890809106308 07:31:15 $ docker rm -f 297bec6339130f01f0924e19b8462d8551becd42cee04875e6d2890809106308 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 07:31:16 + docker inspect -f . ci-base-image-x86_64 07:31:16 . [Pipeline] withDockerContainer 07:31:16 prd-ubuntu20.04-docker-8c-8g-7804 does not seem to be running inside a container 07:31:16 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-160 -v /w/workspace/gexfoundry_device-rest-go_PR-160:/w/workspace/gexfoundry_device-rest-go_PR-160:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-160@tmp:/w/workspace/gexfoundry_device-rest-go_PR-160@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 07:31:16 $ docker top 5ce01de7f30b45a295ee411855e28c6b2b1c7a7b3b44cd14452620dc24c22287 -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 07:31:17 + make test 07:31:17 CGO_ENABLED=1 GO111MODULE=on go test -coverprofile=coverage.out ./... 07:31:17 ? github.com/edgexfoundry/device-rest-go [no test files] 07:31:24 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 07:31:24 ok github.com/edgexfoundry/device-rest-go/driver 0.016s coverage: 56.0% of statements 07:31:24 CGO_ENABLED=1 GO111MODULE=on go vet ./... 07:31:28 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 07:31:28 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 07:31:28 ./bin/test-attribution-txt.sh [Pipeline] echo 07:31:28 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 07:31:28 $ docker stop --time=1 5ce01de7f30b45a295ee411855e28c6b2b1c7a7b3b44cd14452620dc24c22287 07:31:29 $ docker rm -f 5ce01de7f30b45a295ee411855e28c6b2b1c7a7b3b44cd14452620dc24c22287 [Pipeline] // withDockerContainer [Pipeline] sh 07:31:30 + sudo chown -R jenkins:jenkins . [Pipeline] stash 07:31:30 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 07:31:31 + sudo chown -R jenkins:jenkins . [Pipeline] sh 07:31:31 + ls -al . 07:31:31 total 180 07:31:31 drwxrwxr-x 9 jenkins jenkins 4096 Mar 17 07:31 . 07:31:31 drwxrwxr-x 4 jenkins jenkins 4096 Mar 17 07:30 .. 07:31:31 -rw-rw-r-- 1 jenkins jenkins 151 Mar 17 07:30 .dockerignore 07:31:31 drwxrwxr-x 8 jenkins jenkins 4096 Mar 17 07:30 .git 07:31:31 drwxrwxr-x 2 jenkins jenkins 4096 Mar 17 07:30 .github 07:31:31 -rw-rw-r-- 1 jenkins jenkins 329 Mar 17 07:30 .gitignore 07:31:31 drwx------ 3 jenkins jenkins 4096 Mar 17 07:30 .semver 07:31:31 -rw-rw-r-- 1 jenkins jenkins 7192 Mar 17 07:30 Attribution.txt 07:31:31 -rw-rw-r-- 1 jenkins jenkins 7459 Mar 17 07:30 CHANGELOG.md 07:31:31 -rw-rw-r-- 1 jenkins jenkins 1672 Mar 17 07:30 Dockerfile 07:31:31 -rw-rw-r-- 1 jenkins jenkins 677 Mar 17 07:30 GOVERNANCE.md 07:31:31 -rw-rw-r-- 1 jenkins jenkins 680 Mar 17 07:30 Jenkinsfile 07:31:31 -rw-rw-r-- 1 jenkins jenkins 11340 Mar 17 07:30 LICENSE 07:31:31 -rw-rw-r-- 1 jenkins jenkins 1078 Mar 17 07:30 Makefile 07:31:31 -rw-rw-r-- 1 jenkins jenkins 620 Mar 17 07:30 OWNERS.md 07:31:31 -rw-rw-r-- 1 jenkins jenkins 8246 Mar 17 07:30 README.md 07:31:31 -rw-rw-r-- 1 jenkins jenkins 5 Mar 17 07:30 VERSION 07:31:31 drwxrwxr-x 2 jenkins jenkins 4096 Mar 17 07:30 bin 07:31:31 drwxrwxr-x 3 jenkins jenkins 4096 Mar 17 07:30 cmd 07:31:31 -rw-r--r-- 1 jenkins jenkins 9215 Mar 17 07:31 coverage.out 07:31:31 drwxrwxr-x 2 jenkins jenkins 4096 Mar 17 07:30 driver 07:31:31 -rw-rw-r-- 1 jenkins jenkins 2908 Mar 17 07:30 go.mod 07:31:31 -rw-rw-r-- 1 jenkins jenkins 50572 Mar 17 07:30 go.sum 07:31:31 drwxrwxr-x 3 jenkins jenkins 4096 Mar 17 07:30 snap 07:31:31 -rw-rw-r-- 1 jenkins jenkins 713 Mar 17 07:30 version.go [Pipeline] isUnix [Pipeline] sh 07:31:31 + 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=0e5eba1adb770c7993a51c69e8eb65ef5c4701c0 --label arch=amd64 --label version=0.0.0 . 07:31:31 Sending build context to Docker daemon 10.56MB 07:31:31 Step 1/25 : ARG BASE=golang:1.17-alpine3.15 07:31:31 Step 2/25 : FROM ${BASE} AS builder 07:31:31 ---> 4947c3895505 07:31:31 Step 3/25 : ARG MAKE='make build' 07:31:31 ---> Running in 586c126c0166 07:31:32 Removing intermediate container 586c126c0166 07:31:32 ---> aecaec8ec66f 07:31:32 Step 4/25 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 07:31:32 ---> Running in 95acf5ddcfe6 07:31:32 Removing intermediate container 95acf5ddcfe6 07:31:32 ---> 75648d5d8e4d 07:31:32 Step 5/25 : ARG ALPINE_PKG_EXTRA="" 07:31:32 ---> Running in 3e559ac7d084 07:31:32 Removing intermediate container 3e559ac7d084 07:31:32 ---> 7cab4b8700a4 07:31:32 Step 6/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 07:31:32 ---> Running in 69fe9e122163 07:31:33 Removing intermediate container 69fe9e122163 07:31:33 ---> 127b9d3017f6 07:31:33 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 07:31:33 ---> Running in 46297a0c5c5d 07:31:33 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 07:31:34 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 07:31:34 OK: 224 MiB in 56 packages 07:31:34 Removing intermediate container 46297a0c5c5d 07:31:34 ---> 7a61b716559c 07:31:34 Step 8/25 : WORKDIR /device-rest-go 07:31:35 ---> Running in d74533780eec 07:31:35 Removing intermediate container d74533780eec 07:31:35 ---> 19ad05ab073e 07:31:35 Step 9/25 : COPY go.mod vendor* ./ 07:31:35 ---> 87bde109297c 07:31:35 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 07:31:35 ---> Running in a44ee0ad133f 07:31:35 Removing intermediate container a44ee0ad133f 07:31:35 ---> e16e7057cbf3 07:31:35 Step 11/25 : COPY . . 07:31:36 ---> 426698f08388 07:31:36 Step 12/25 : RUN $MAKE 07:31:36 ---> Running in 647a38643fc5 07:31:36 CGO_ENABLED=1 GO111MODULE=on go build -ldflags "-X github.com/edgexfoundry/device-rest-go.Version=0.0.0" -o cmd/device-rest ./cmd 07:31:44 Removing intermediate container 647a38643fc5 07:31:44 ---> b4969b90730d 07:31:44 Step 13/25 : FROM alpine:3.14 07:31:44 3.14: Pulling from library/alpine 07:31:44 97518928ae5f: Pulling fs layer 07:31:44 97518928ae5f: Verifying Checksum 07:31:44 97518928ae5f: Download complete 07:31:44 97518928ae5f: Pull complete 07:31:44 Digest: sha256:635f0aa53d99017b38d1a0aa5b2082f7812b03e3cdb299103fe77b5c8a07f1d2 07:31:44 Status: Downloaded newer image for alpine:3.14 07:31:44 ---> 0a97eee8041e 07:31:44 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' 07:31:44 ---> Running in 08fbb6fccd9d 07:31:44 Removing intermediate container 08fbb6fccd9d 07:31:44 ---> 0c346da1b92f 07:31:44 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 07:31:44 ---> Running in 53f57a8cb464 07:31:44 Removing intermediate container 53f57a8cb464 07:31:44 ---> 1cef5a0bc71e 07:31:44 Step 16/25 : RUN apk add --update --no-cache zeromq dumb-init 07:31:45 ---> Running in 921772e31ef3 07:31:45 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz 07:31:45 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz 07:31:45 (1/6) Installing dumb-init (1.2.5-r1) 07:31:45 (2/6) Installing libgcc (10.3.1_git20210424-r2) 07:31:45 (3/6) Installing libsodium (1.0.18-r0) 07:31:45 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 07:31:45 (5/6) Installing libzmq (4.3.4-r0) 07:31:45 (6/6) Installing zeromq (4.3.4-r0) 07:31:45 Executing busybox-1.33.1-r6.trigger 07:31:45 OK: 8 MiB in 20 packages 07:31:46 Removing intermediate container 921772e31ef3 07:31:46 ---> d8eabd8986ae 07:31:46 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 07:31:46 ---> 4d1e31be8d95 07:31:46 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 07:31:46 ---> 5313f5bc3f18 07:31:46 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 07:31:46 ---> 3e9fe9605b1d 07:31:46 Step 20/25 : EXPOSE 59986 07:31:46 ---> Running in 7a78ea882233 07:31:46 Removing intermediate container 7a78ea882233 07:31:46 ---> bb7a142283e9 07:31:46 Step 21/25 : ENTRYPOINT ["/device-rest"] 07:31:46 ---> Running in aff8cbb4bf96 07:31:47 Removing intermediate container aff8cbb4bf96 07:31:47 ---> acf36d655cab 07:31:47 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--confdir=/res", "--registry"] 07:31:47 ---> Running in bbdbc37fc949 07:31:47 Removing intermediate container bbdbc37fc949 07:31:47 ---> fbf93b0503b8 07:31:47 Step 23/25 : LABEL arch=amd64 07:31:47 ---> Running in 434f07a1253d 07:31:47 Removing intermediate container 434f07a1253d 07:31:47 ---> 065a447a9645 07:31:47 Step 24/25 : LABEL git_sha=0e5eba1adb770c7993a51c69e8eb65ef5c4701c0 07:31:47 ---> Running in 5f4ba333583e 07:31:47 Removing intermediate container 5f4ba333583e 07:31:47 ---> 68e60cb02916 07:31:47 Step 25/25 : LABEL version=0.0.0 07:31:47 ---> Running in bffc6a34a7d8 07:31:47 Removing intermediate container bffc6a34a7d8 07:31:47 ---> 4068d9e9b493 07:31:47 [Warning] One or more build-args [ARCH] were not consumed 07:31:47 Successfully built 4068d9e9b493 07:31:47 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 07:31:48 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 07:31:48 07:31:48 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] sh 07:31:48 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 07:31:48 latest: Pulling from edgex-lftools-log-publisher 07:31:48 5eb5b503b376: Pulling fs layer 07:31:48 5c69ac0246d0: Pulling fs layer 07:31:48 ec43610c2a17: Pulling fs layer 07:31:48 3a2ae6a8a46f: Pulling fs layer 07:31:48 33b1e0a273af: Pulling fs layer 07:31:48 5d3b04190fa2: Pulling fs layer 07:31:48 2f39f015ded8: Pulling fs layer 07:31:48 33b1e0a273af: Waiting 07:31:48 2f39f015ded8: Waiting 07:31:48 3a2ae6a8a46f: Waiting 07:31:48 5c69ac0246d0: Verifying Checksum 07:31:48 5c69ac0246d0: Download complete 07:31:48 3a2ae6a8a46f: Verifying Checksum 07:31:48 3a2ae6a8a46f: Download complete 07:31:48 ec43610c2a17: Verifying Checksum 07:31:48 ec43610c2a17: Download complete 07:31:48 33b1e0a273af: Verifying Checksum 07:31:48 33b1e0a273af: Download complete 07:31:48 5d3b04190fa2: Verifying Checksum 07:31:48 5d3b04190fa2: Download complete 07:31:49 5eb5b503b376: Download complete 07:31:49 2f39f015ded8: Verifying Checksum 07:31:49 2f39f015ded8: Download complete 07:31:50 5eb5b503b376: Pull complete 07:31:50 5c69ac0246d0: Pull complete 07:31:51 ec43610c2a17: Pull complete 07:31:51 3a2ae6a8a46f: Pull complete 07:31:51 33b1e0a273af: Pull complete 07:31:51 5d3b04190fa2: Pull complete 07:31:55 2f39f015ded8: Pull complete 07:31:55 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 07:31:55 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 07:31:55 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] withDockerContainer 07:31:55 prd-ubuntu20.04-docker-8c-8g-7804 does not seem to be running inside a container 07:31:55 $ 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-160 -v /w/workspace/gexfoundry_device-rest-go_PR-160:/w/workspace/gexfoundry_device-rest-go_PR-160:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-160@tmp:/w/workspace/gexfoundry_device-rest-go_PR-160@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 07:31:57 $ docker top 6d5e91453ea6c62d2b9cb3e7163634ad68ffa806e4547daf3d12faa365cc4887 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 07:31:58 ---> job-cost.sh 07:31:58 lf-activate-venv: SKIPPING 07:31:58 INFO: No Stack... 07:31:58 INFO: Retrieving Pricing Info for: v3-standard-8 07:31:58 INFO: Archiving Costs [Pipeline] sh 07:31:59 + cat /w/workspace/gexfoundry_device-rest-go_PR-160/archives/cost.csv 07:31:59 + cut -d, -f6 [Pipeline] lock 07:31:59 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-160-1-stack-cost] 07:31:59 Resource [jenkins-edgexfoundry-device-rest-go-PR-160-1-stack-cost] did not exist. Created. 07:31:59 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-160-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 07:31:59 + echo total: 0.2199999988079071 [Pipeline] stash 07:31:59 Stashed 1 file(s) [Pipeline] } 07:31:59 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-160-1-stack-cost] [Pipeline] // lock [Pipeline] } 07:31:59 $ docker stop --time=1 6d5e91453ea6c62d2b9cb3e7163634ad68ffa806e4547daf3d12faa365cc4887 07:32:01 $ docker rm -f 6d5e91453ea6c62d2b9cb3e7163634ad68ffa806e4547daf3d12faa365cc4887 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 07:34:37 Running on prd-ubuntu20.04-docker-arm64-4c-16g-7805 in /w/workspace/gexfoundry_device-rest-go_PR-160 [Pipeline] { [Pipeline] ws 07:34:37 Running in /w/workspace/device-rest-go/1 [Pipeline] { [Pipeline] checkout 07:34:38 The recommended git tool is: git 07:34:45 using credential edgex-jenkins-ssh 07:34:45 Cloning the remote Git repository 07:34:45 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 07:34:45 > git init /w/workspace/device-rest-go/1 # timeout=10 07:34:45 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 07:34:45 > git --version # timeout=10 07:34:45 > git --version # 'git version 2.25.1' 07:34:45 using GIT_SSH to set credentials SSH Credentials for GitHub 07:34:46 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 07:34:48 Merging remotes/origin/main commit f3318b721e0f943881393329fd3e7443e525a415 into PR head commit 0e5eba1adb770c7993a51c69e8eb65ef5c4701c0 07:34:48 Merge succeeded, producing 0e5eba1adb770c7993a51c69e8eb65ef5c4701c0 07:34:48 Checking out Revision 0e5eba1adb770c7993a51c69e8eb65ef5c4701c0 (PR-160) 07:34:48 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 07:34:48 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 07:34:48 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 07:34:48 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 07:34:48 using GIT_SSH to set credentials SSH Credentials for GitHub 07:34:48 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/160/head:refs/remotes/origin/PR-160 +refs/heads/main:refs/remotes/origin/main # timeout=10 07:34:48 > git config core.sparsecheckout # timeout=10 07:34:48 > git checkout -f 0e5eba1adb770c7993a51c69e8eb65ef5c4701c0 # timeout=10 07:34:48 > git remote # timeout=10 07:34:48 > git config --get remote.origin.url # timeout=10 07:34:48 using GIT_SSH to set credentials SSH Credentials for GitHub 07:34:48 > git merge f3318b721e0f943881393329fd3e7443e525a415 # timeout=10 07:34:48 > git rev-parse HEAD^{commit} # timeout=10 07:34:48 > git config core.sparsecheckout # timeout=10 07:34:48 > git checkout -f 0e5eba1adb770c7993a51c69e8eb65ef5c4701c0 # timeout=10 07:34:53 Commit message: "build(deps): Bump sdk and core-contracts to latest version" 07:34:53 > git --version # timeout=10 07:34:53 > git --version # 'git version 2.25.1' 07:34:53 fatal: bad object c72b16708d6eed9a08be464a432ce22db7d90667 [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 07:34:54 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 07:34:54 % Total % Received % Xferd Average Speed Time Time Time Current 07:34:54 Dload Upload Total Spent Left Speed 07:34:54 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 11843 100 11843 0 0 50395 0 --:--:-- --:--:-- --:--:-- 50611 [Pipeline] sh 07:34:55 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 07:34:55 + sudo tee /etc/docker/daemon.new 07:34:55 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 07:34:55 { 07:34:55 "registry-mirrors": [ 07:34:55 "https://nexus3.edgexfoundry.org:10001" 07:34:55 ], 07:34:55 "bip": "10.250.0.254/24", 07:34:55 "hosts": [ 07:34:55 "tcp://0.0.0.0:5555", 07:34:55 "unix:///var/run/docker.sock" 07:34:55 ], 07:34:55 "mtu": 1458, 07:34:55 "selinux-enabled": true, 07:34:55 "seccomp-profile": "/etc/docker/seccomp.json" 07:34:55 } [Pipeline] sh 07:34:55 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 07:34:56 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 07:35:14 provisioning config files... 07:35:14 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/1@tmp/config8676040867711605767tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 07:35:15 ---> docker-login.sh 07:35:15 nexus3.edgexfoundry.org:10001 07:35:15 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:35:16 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:35:16 Configure a credential helper to remove this warning. See 07:35:16 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:35:16 07:35:16 Login Succeeded 07:35:16 nexus3.edgexfoundry.org:10002 07:35:16 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:35:16 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:35:16 Configure a credential helper to remove this warning. See 07:35:16 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:35:16 07:35:16 Login Succeeded 07:35:16 nexus3.edgexfoundry.org:10003 07:35:17 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:35:17 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:35:17 Configure a credential helper to remove this warning. See 07:35:17 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:35:17 07:35:17 Login Succeeded 07:35:17 nexus3.edgexfoundry.org:10004 07:35:17 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:35:17 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:35:17 Configure a credential helper to remove this warning. See 07:35:17 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:35:17 07:35:17 Login Succeeded 07:35:17 docker.io 07:35:18 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 07:35:18 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 07:35:18 Configure a credential helper to remove this warning. See 07:35:18 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 07:35:18 07:35:18 Login Succeeded 07:35:18 ---> docker-login.sh ends [Pipeline] } 07:35:18 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 07:35:18 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 07:35:18 ========================================================= 07:35:18 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine] 07:35:18 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 07:35:19 + 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 . 07:35:19 Sending build context to Docker daemon 124.9kB 07:35:19 Step 1/12 : ARG BASE=golang:1.17-alpine3.15 07:35:19 Step 2/12 : FROM ${BASE} AS builder 07:35:19 1.17-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 07:35:19 9b3977197b4f: Pulling fs layer 07:35:19 1a89e8eeedd5: Pulling fs layer 07:35:19 94645a83ff95: Pulling fs layer 07:35:19 3f3a8bcf1eab: Pulling fs layer 07:35:19 0c92f367c5e7: Pulling fs layer 07:35:19 f7c0051592d6: Pulling fs layer 07:35:19 a227ed2f7395: Pulling fs layer 07:35:19 7b1c46037f91: Pulling fs layer 07:35:19 3f3a8bcf1eab: Waiting 07:35:19 0c92f367c5e7: Waiting 07:35:19 f7c0051592d6: Waiting 07:35:19 a227ed2f7395: Waiting 07:35:19 7b1c46037f91: Waiting 07:35:19 94645a83ff95: Verifying Checksum 07:35:19 94645a83ff95: Download complete 07:35:19 1a89e8eeedd5: Verifying Checksum 07:35:19 1a89e8eeedd5: Download complete 07:35:19 0c92f367c5e7: Verifying Checksum 07:35:19 0c92f367c5e7: Download complete 07:35:19 f7c0051592d6: Verifying Checksum 07:35:19 f7c0051592d6: Download complete 07:35:19 9b3977197b4f: Verifying Checksum 07:35:19 9b3977197b4f: Download complete 07:35:19 a227ed2f7395: Verifying Checksum 07:35:19 a227ed2f7395: Download complete 07:35:20 9b3977197b4f: Pull complete 07:35:21 1a89e8eeedd5: Pull complete 07:35:21 94645a83ff95: Pull complete 07:35:22 7b1c46037f91: Verifying Checksum 07:35:22 7b1c46037f91: Download complete 07:35:22 3f3a8bcf1eab: Verifying Checksum 07:35:22 3f3a8bcf1eab: Download complete 07:35:35 3f3a8bcf1eab: Pull complete 07:35:35 0c92f367c5e7: Pull complete 07:35:35 f7c0051592d6: Pull complete 07:35:35 a227ed2f7395: Pull complete 07:35:42 7b1c46037f91: Pull complete 07:35:42 Digest: sha256:72afd471f6932efc3b14a707e53dab7ff98911016b282aefa83be7c085db88fe 07:35:42 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine 07:35:42 ---> f79e39bc4007 07:35:42 Step 3/12 : ARG MAKE='make build' 07:35:42 ---> Running in c0a1c4a1464e 07:35:42 Removing intermediate container c0a1c4a1464e 07:35:42 ---> 7168b1969eaa 07:35:42 Step 4/12 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 07:35:43 ---> Running in 1f7dbc3dd21f 07:35:43 Removing intermediate container 1f7dbc3dd21f 07:35:43 ---> 90b297eaad72 07:35:43 Step 5/12 : ARG ALPINE_PKG_EXTRA="" 07:35:43 ---> Running in d3ffa677038d 07:35:43 Removing intermediate container d3ffa677038d 07:35:43 ---> 61389b30d1e0 07:35:43 Step 6/12 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 07:35:43 ---> Running in 014c6b3fb27e 07:35:45 Removing intermediate container 014c6b3fb27e 07:35:45 ---> e51ef027c69c 07:35:45 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 07:35:45 ---> Running in 399cce0c272a 07:35:46 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 07:35:47 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 07:35:48 (1/4) Installing openssh-keygen (8.8_p1-r1) 07:35:48 (2/4) Installing libedit (20210910.3.1-r0) 07:35:48 (3/4) Installing openssh-client-common (8.8_p1-r1) 07:35:49 (4/4) Installing openssh-client-default (8.8_p1-r1) 07:35:49 Executing busybox-1.34.1-r3.trigger 07:35:49 OK: 224 MiB in 56 packages 07:35:50 Removing intermediate container 399cce0c272a 07:35:50 ---> 4013cd051af5 07:35:50 Step 8/12 : WORKDIR /device-rest-go 07:35:50 ---> Running in 28ec1f108388 07:35:51 Removing intermediate container 28ec1f108388 07:35:51 ---> a78b28bea6a3 07:35:51 Step 9/12 : COPY go.mod vendor* ./ 07:35:52 ---> a7c35ce42259 07:35:52 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 07:35:52 ---> Running in abf880971d84 07:37:14 Removing intermediate container abf880971d84 07:37:14 ---> 9df6c71f5ce2 07:37:14 Step 11/12 : COPY . . 07:37:14 ---> c1102adb01bd 07:37:14 Step 12/12 : RUN $MAKE 07:37:14 ---> Running in c19fbefd74b9 07:37:14 noop 07:37:14 Removing intermediate container c19fbefd74b9 07:37:14 ---> 98204ca38351 07:37:14 Successfully built 98204ca38351 07:37:14 Successfully tagged ci-base-image-arm64:latest [Pipeline] isUnix [Pipeline] sh 07:37:14 + docker inspect -f . ci-base-image-arm64 07:37:14 . [Pipeline] withDockerContainer 07:37:14 prd-ubuntu20.04-docker-arm64-4c-16g-7805 does not seem to be running inside a container 07:37:14 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/1 -v /w/workspace/device-rest-go/1:/w/workspace/device-rest-go/1:rw,z -v /w/workspace/device-rest-go/1@tmp:/w/workspace/device-rest-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 07:37:16 $ docker top c29ca08dd2722f951e6d94433ef6a883e7e3a42ce6d92c31e897e7fa7e31644a -eo pid,comm [Pipeline] { [Pipeline] sh 07:37:17 + go version 07:37:17 go version go1.17.6 linux/arm64 [Pipeline] } 07:37:17 $ docker stop --time=1 c29ca08dd2722f951e6d94433ef6a883e7e3a42ce6d92c31e897e7fa7e31644a 07:37:19 $ docker rm -f c29ca08dd2722f951e6d94433ef6a883e7e3a42ce6d92c31e897e7fa7e31644a [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 07:37:19 + docker inspect -f . ci-base-image-arm64 07:37:19 . [Pipeline] withDockerContainer 07:37:20 prd-ubuntu20.04-docker-arm64-4c-16g-7805 does not seem to be running inside a container 07:37:20 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/1 -v /w/workspace/device-rest-go/1:/w/workspace/device-rest-go/1:rw,z -v /w/workspace/device-rest-go/1@tmp:/w/workspace/device-rest-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 07:37:21 $ docker top f9ca1b0517f71191cb433f4aa283f8e2fd9c770a813230948d028bd51d68cd3e -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 07:37:22 + make test 07:37:22 CGO_ENABLED=1 GO111MODULE=on go test -coverprofile=coverage.out ./... 07:37:24 ? github.com/edgexfoundry/device-rest-go [no test files] 07:38:20 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 07:38:20 ok github.com/edgexfoundry/device-rest-go/driver 0.065s coverage: 56.0% of statements 07:38:20 CGO_ENABLED=1 GO111MODULE=on go vet ./... 07:38:35 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 07:38:35 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 07:38:35 ./bin/test-attribution-txt.sh [Pipeline] echo 07:38:36 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 07:38:36 $ docker stop --time=1 f9ca1b0517f71191cb433f4aa283f8e2fd9c770a813230948d028bd51d68cd3e 07:38:38 $ docker rm -f f9ca1b0517f71191cb433f4aa283f8e2fd9c770a813230948d028bd51d68cd3e [Pipeline] // withDockerContainer [Pipeline] sh 07:38:39 + sudo chown -R jenkins:jenkins . [Pipeline] stash 07:38:39 Warning: overwriting stash ‘coverage-report’ 07:38:40 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 07:38:40 + sudo chown -R jenkins:jenkins . [Pipeline] sh 07:38:41 + ls -al . 07:38:41 total 176 07:38:41 drwxrwxr-x 8 jenkins jenkins 4096 Mar 17 07:38 . 07:38:41 drwxrwxr-x 4 jenkins jenkins 4096 Mar 17 07:34 .. 07:38:41 -rw-rw-r-- 1 jenkins jenkins 151 Mar 17 07:34 .dockerignore 07:38:41 drwxrwxr-x 8 jenkins jenkins 4096 Mar 17 07:34 .git 07:38:41 drwxrwxr-x 2 jenkins jenkins 4096 Mar 17 07:34 .github 07:38:41 -rw-rw-r-- 1 jenkins jenkins 329 Mar 17 07:34 .gitignore 07:38:41 -rw-rw-r-- 1 jenkins jenkins 7192 Mar 17 07:34 Attribution.txt 07:38:41 -rw-rw-r-- 1 jenkins jenkins 7459 Mar 17 07:34 CHANGELOG.md 07:38:41 -rw-rw-r-- 1 jenkins jenkins 1672 Mar 17 07:34 Dockerfile 07:38:41 -rw-rw-r-- 1 jenkins jenkins 677 Mar 17 07:34 GOVERNANCE.md 07:38:41 -rw-rw-r-- 1 jenkins jenkins 680 Mar 17 07:34 Jenkinsfile 07:38:41 -rw-rw-r-- 1 jenkins jenkins 11340 Mar 17 07:34 LICENSE 07:38:41 -rw-rw-r-- 1 jenkins jenkins 1078 Mar 17 07:34 Makefile 07:38:41 -rw-rw-r-- 1 jenkins jenkins 620 Mar 17 07:34 OWNERS.md 07:38:41 -rw-rw-r-- 1 jenkins jenkins 8246 Mar 17 07:34 README.md 07:38:41 -rw-rw-r-- 1 jenkins jenkins 5 Mar 17 07:30 VERSION 07:38:41 drwxrwxr-x 2 jenkins jenkins 4096 Mar 17 07:34 bin 07:38:41 drwxrwxr-x 3 jenkins jenkins 4096 Mar 17 07:34 cmd 07:38:41 -rw-r--r-- 1 jenkins jenkins 9215 Mar 17 07:38 coverage.out 07:38:41 drwxrwxr-x 2 jenkins jenkins 4096 Mar 17 07:34 driver 07:38:41 -rw-rw-r-- 1 jenkins jenkins 2908 Mar 17 07:34 go.mod 07:38:41 -rw-rw-r-- 1 jenkins jenkins 50572 Mar 17 07:34 go.sum 07:38:41 drwxrwxr-x 3 jenkins jenkins 4096 Mar 17 07:34 snap 07:38:41 -rw-rw-r-- 1 jenkins jenkins 713 Mar 17 07:34 version.go [Pipeline] isUnix [Pipeline] sh 07:38:41 + 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=0e5eba1adb770c7993a51c69e8eb65ef5c4701c0 --label arch=arm64 --label version=0.0.0 . 07:38:41 Sending build context to Docker daemon 134.7kB 07:38:41 Step 1/25 : ARG BASE=golang:1.17-alpine3.15 07:38:41 Step 2/25 : FROM ${BASE} AS builder 07:38:41 ---> 98204ca38351 07:38:41 Step 3/25 : ARG MAKE='make build' 07:38:42 ---> Running in 8506eb49f189 07:38:42 Removing intermediate container 8506eb49f189 07:38:42 ---> b86235bd3e33 07:38:42 Step 4/25 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 07:38:42 ---> Running in 6562ec703148 07:38:42 Removing intermediate container 6562ec703148 07:38:42 ---> 0ae15bac838e 07:38:42 Step 5/25 : ARG ALPINE_PKG_EXTRA="" 07:38:42 ---> Running in 9242cb187d31 07:38:43 Removing intermediate container 9242cb187d31 07:38:43 ---> f8b0ed7f4bd4 07:38:43 Step 6/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 07:38:43 ---> Running in 43d4f336aa5c 07:38:45 Removing intermediate container 43d4f336aa5c 07:38:45 ---> 9b3175f718a3 07:38:45 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 07:38:45 ---> Running in 1511407e8a99 07:38:46 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 07:38:46 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 07:38:47 OK: 224 MiB in 56 packages 07:38:48 Removing intermediate container 1511407e8a99 07:38:48 ---> 68710682b6a9 07:38:48 Step 8/25 : WORKDIR /device-rest-go 07:38:48 ---> Running in ac895fdc3f70 07:38:49 Removing intermediate container ac895fdc3f70 07:38:49 ---> 0e0b2d0777ab 07:38:49 Step 9/25 : COPY go.mod vendor* ./ 07:38:49 ---> 5c8a05c04d75 07:38:49 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 07:38:49 ---> Running in 0bfdd05494ed 07:38:51 Removing intermediate container 0bfdd05494ed 07:38:51 ---> 14afdc44c149 07:38:51 Step 11/25 : COPY . . 07:38:52 ---> b291114a5de0 07:38:52 Step 12/25 : RUN $MAKE 07:38:52 ---> Running in 96e2ca069d0c 07:38:53 CGO_ENABLED=1 GO111MODULE=on go build -ldflags "-X github.com/edgexfoundry/device-rest-go.Version=0.0.0" -o cmd/device-rest ./cmd 07:39:40 Removing intermediate container 96e2ca069d0c 07:39:40 ---> a83c6d321e84 07:39:40 Step 13/25 : FROM alpine:3.14 07:39:40 3.14: Pulling from library/alpine 07:39:40 be307f383ecc: Pulling fs layer 07:39:40 be307f383ecc: Verifying Checksum 07:39:40 be307f383ecc: Download complete 07:39:40 be307f383ecc: Pull complete 07:39:40 Digest: sha256:635f0aa53d99017b38d1a0aa5b2082f7812b03e3cdb299103fe77b5c8a07f1d2 07:39:40 Status: Downloaded newer image for alpine:3.14 07:39:40 ---> 5b8b7b635229 07:39:40 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' 07:39:40 ---> Running in c9fde6dcf9aa 07:39:40 Removing intermediate container c9fde6dcf9aa 07:39:40 ---> 98b283cb320e 07:39:40 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 07:39:40 ---> Running in b994243cd2af 07:39:40 Removing intermediate container b994243cd2af 07:39:40 ---> 27fae70eb322 07:39:40 Step 16/25 : RUN apk add --update --no-cache zeromq dumb-init 07:39:40 ---> Running in a1a31d1794f0 07:39:40 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/aarch64/APKINDEX.tar.gz 07:39:40 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/aarch64/APKINDEX.tar.gz 07:39:40 (1/6) Installing dumb-init (1.2.5-r1) 07:39:40 (2/6) Installing libgcc (10.3.1_git20210424-r2) 07:39:40 (3/6) Installing libsodium (1.0.18-r0) 07:39:40 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 07:39:40 (5/6) Installing libzmq (4.3.4-r0) 07:39:40 (6/6) Installing zeromq (4.3.4-r0) 07:39:40 Executing busybox-1.33.1-r6.trigger 07:39:40 OK: 8 MiB in 20 packages 07:39:40 Removing intermediate container a1a31d1794f0 07:39:40 ---> 7ac1124d96f2 07:39:40 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 07:39:41 ---> e9757ea83ff4 07:39:41 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 07:39:42 ---> 6b3e1178d6f3 07:39:42 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 07:39:43 ---> 1f85c8e5b3b3 07:39:43 Step 20/25 : EXPOSE 59986 07:39:43 ---> Running in 096cf773b849 07:39:43 Removing intermediate container 096cf773b849 07:39:43 ---> 3a87e250f467 07:39:43 Step 21/25 : ENTRYPOINT ["/device-rest"] 07:39:43 ---> Running in eae310f3e922 07:39:43 Removing intermediate container eae310f3e922 07:39:43 ---> d94b67f16c4c 07:39:43 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--confdir=/res", "--registry"] 07:39:43 ---> Running in c8976c6828a8 07:39:44 Removing intermediate container c8976c6828a8 07:39:44 ---> e54c10b1d655 07:39:44 Step 23/25 : LABEL arch=arm64 07:39:44 ---> Running in de63c604d639 07:39:44 Removing intermediate container de63c604d639 07:39:44 ---> 12f69ebe42bf 07:39:44 Step 24/25 : LABEL git_sha=0e5eba1adb770c7993a51c69e8eb65ef5c4701c0 07:39:44 ---> Running in a811d2d0eeb9 07:39:45 Removing intermediate container a811d2d0eeb9 07:39:45 ---> 1090b2a7713f 07:39:45 Step 25/25 : LABEL version=0.0.0 07:39:45 ---> Running in 90b71dc21f8b 07:39:45 Removing intermediate container 90b71dc21f8b 07:39:45 ---> 8a52e7a21a43 07:39:45 [Warning] One or more build-args [ARCH] were not consumed 07:39:45 Successfully built 8a52e7a21a43 07:39:45 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 07:39:45 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 07:39:45 07:39:45 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] sh 07:39:46 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 07:39:46 arm64: Pulling from edgex-lftools-log-publisher 07:39:46 8998bd30e6a1: Pulling fs layer 07:39:46 04944245beec: Pulling fs layer 07:39:46 699f458cf7ca: Pulling fs layer 07:39:46 765212b225bb: Pulling fs layer 07:39:46 f23df028b6ca: Pulling fs layer 07:39:46 d65c8cfc05b1: Pulling fs layer 07:39:46 2437ff75d9bd: Pulling fs layer 07:39:46 f23df028b6ca: Waiting 07:39:46 765212b225bb: Waiting 07:39:46 d65c8cfc05b1: Waiting 07:39:46 2437ff75d9bd: Waiting 07:39:46 04944245beec: Verifying Checksum 07:39:46 04944245beec: Download complete 07:39:46 765212b225bb: Verifying Checksum 07:39:46 765212b225bb: Download complete 07:39:46 f23df028b6ca: Verifying Checksum 07:39:46 f23df028b6ca: Download complete 07:39:46 d65c8cfc05b1: Verifying Checksum 07:39:46 d65c8cfc05b1: Download complete 07:39:46 699f458cf7ca: Verifying Checksum 07:39:46 699f458cf7ca: Download complete 07:39:47 8998bd30e6a1: Verifying Checksum 07:39:47 8998bd30e6a1: Download complete 07:39:49 2437ff75d9bd: Verifying Checksum 07:39:49 2437ff75d9bd: Download complete 07:39:51 8998bd30e6a1: Pull complete 07:39:52 04944245beec: Pull complete 07:39:53 699f458cf7ca: Pull complete 07:39:53 765212b225bb: Pull complete 07:39:54 f23df028b6ca: Pull complete 07:39:54 d65c8cfc05b1: Pull complete 07:40:09 2437ff75d9bd: Pull complete 07:40:09 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 07:40:09 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 07:40:09 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] withDockerContainer 07:40:10 prd-ubuntu20.04-docker-arm64-4c-16g-7805 does not seem to be running inside a container 07:40:10 $ 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 07:40:12 $ docker top b2701a5c0c81c98c526285572ce3b5528785a5d88b2f1f93a28947cdc5f38509 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 07:40:13 ---> job-cost.sh 07:40:13 lf-activate-venv: SKIPPING 07:40:13 INFO: No Stack... 07:40:14 INFO: Retrieving Pricing Info for: v3-standard-4 07:40:15 INFO: Archiving Costs [Pipeline] sh 07:40:16 + cat /w/workspace/device-rest-go/1/archives/cost.csv 07:40:16 + cut -d, -f6 [Pipeline] lock 07:40:16 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-160-1-stack-cost] 07:40:16 Resource [jenkins-edgexfoundry-device-rest-go-PR-160-1-stack-cost] did not exist. Created. 07:40:16 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-160-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 07:40:16 /w/workspace/device-rest-go/1@tmp/durable-3d72719e/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 07:40:17 + echo total: 0.10999999940395355 [Pipeline] stash 07:40:17 Warning: overwriting stash ‘stack-cost’ 07:40:17 Stashed 1 file(s) [Pipeline] } 07:40:17 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-160-1-stack-cost] [Pipeline] // lock [Pipeline] } 07:40:17 $ docker stop --time=1 b2701a5c0c81c98c526285572ce3b5528785a5d88b2f1f93a28947cdc5f38509 07:40:19 $ docker rm -f b2701a5c0c81c98c526285572ce3b5528785a5d88b2f1f93a28947cdc5f38509 [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 07:40:20 provisioning config files... 07:40:20 copy managed file [device-rest-go-codecov-token] to file:/w/workspace/gexfoundry_device-rest-go_PR-160@tmp/config2209376119981594531tmp [Pipeline] { [Pipeline] sh 07:40:20 + set +x 07:40:20 + + bash -s -- 07:40:20 curl -s https://codecov.io/bash 07:40:20 07:40:20 _____ _ 07:40:20 / ____| | | 07:40:20 | | ___ __| | ___ ___ _____ __ 07:40:20 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 07:40:20 | |___| (_) | (_| | __/ (_| (_) \ V / 07:40:20 \_____\___/ \__,_|\___|\___\___/ \_/ 07:40:20 Bash-1.0.6 07:40:20 07:40:20 07:40:20 ==> git version 2.25.1 found 07:40:20 ==> 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 07:40:20 Release-Date: 2020-01-08 07:40:20 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 07:40:20 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 07:40:20 ==> Jenkins CI detected. 07:40:20 current dir:  /w/workspace/gexfoundry_device-rest-go_PR-160 07:40:20 project root: . 07:40:20 --> token set from env 07:40:20 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 07:40:20 ==> Running gcov in . (disable via -X gcov) 07:40:20 ==> Python coveragepy not found 07:40:20 ==> Searching for coverage reports in: 07:40:20 + . 07:40:20 -> Found 1 reports 07:40:20 ==> Detecting git/mercurial file structure 07:40:20 ==> Reading reports 07:40:20 + ./coverage.out bytes=9215 07:40:20 ==> Appending adjustments 07:40:20 https://docs.codecov.io/docs/fixing-reports 07:40:21 + Found adjustments 07:40:21 ==> Gzipping contents 07:40:21 4.0K /tmp/codecov.5KOo8r.gz 07:40:21 ==> Uploading reports 07:40:21 url: https://codecov.io 07:40:21 query: branch=PR-160&commit=0e5eba1adb770c7993a51c69e8eb65ef5c4701c0&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-160%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=160&job=&cmd_args= 07:40:21 -> Pinging Codecov 07:40: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-160&commit=0e5eba1adb770c7993a51c69e8eb65ef5c4701c0&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-160%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=160&job=&cmd_args= 07:40:21 -> Uploading to 07:40:21 https://storage.googleapis.com/codecov/v4/raw/2022-03-17/4E5D53B4F1F92C436F7061BF334D961C/0e5eba1adb770c7993a51c69e8eb65ef5c4701c0/a092ff65-2419-422d-90ff-4e87b39d8529.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20220317%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20220317T074020Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=ef01aa64a4f7f27931f5b7aa620be560388b60e2131421f60cfbd005d973c2ba 07:40:21 % Total % Received % Xferd Average Speed Time Time Time Current 07:40:21 Dload Upload Total Spent Left Speed 07:40:21 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 1798 0 0 100 1798 0 7783 --:--:-- --:--:-- --:--:-- 7750 07:40:21 -> Reports have been successfully queued for processing at https://codecov.io/github/edgexfoundry/device-rest-go/commit/0e5eba1adb770c7993a51c69e8eb65ef5c4701c0 [Pipeline] } 07:40:21 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 07:40:23 + [ -d /w/workspace/gexfoundry_device-rest-go_PR-160/archives ] 07:40:23 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-160/archives 07:40:23 total 16 07:40:23 drwxr-xr-x 3 root root 4096 Mar 17 07:31 . 07:40:23 drwxrwxr-x 10 jenkins jenkins 4096 Mar 17 07:31 .. 07:40:23 drwxr-xr-x 2 root root 4096 Mar 17 07:31 cost 07:40:23 -rw-r--r-- 1 root root 85 Mar 17 07:31 cost.csv 07:40:23 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-rest-go_PR-160/archives 07:40:23 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-160/archives 07:40:23 total 16 07:40:23 drwxr-xr-x 3 jenkins jenkins 4096 Mar 17 07:31 . 07:40:23 drwxrwxr-x 10 jenkins jenkins 4096 Mar 17 07:31 .. 07:40:23 drwxr-xr-x 2 jenkins jenkins 4096 Mar 17 07:31 cost 07:40:23 -rw-r--r-- 1 jenkins jenkins 85 Mar 17 07:31 cost.csv [Pipeline] libraryResource [Pipeline] sh 07:40:23 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 07:40:24 ---> package-listing.sh 07:40:24 ++ facter osfamily 07:40:24 ++ tr '[:upper:]' '[:lower:]' 07:40:24 + OS_FAMILY=debian 07:40:24 + workspace=/w/workspace/gexfoundry_device-rest-go_PR-160 07:40:24 + START_PACKAGES=/tmp/packages_start.txt 07:40:24 + END_PACKAGES=/tmp/packages_end.txt 07:40:24 + DIFF_PACKAGES=/tmp/packages_diff.txt 07:40:24 + PACKAGES=/tmp/packages_start.txt 07:40:24 + '[' /w/workspace/gexfoundry_device-rest-go_PR-160 ']' 07:40:24 + PACKAGES=/tmp/packages_end.txt 07:40:24 + case "${OS_FAMILY}" in 07:40:24 + dpkg -l 07:40:24 + grep '^ii' 07:40:24 + '[' -f /tmp/packages_start.txt ']' 07:40:24 + '[' -f /tmp/packages_end.txt ']' 07:40:24 + diff /tmp/packages_start.txt /tmp/packages_end.txt 07:40:24 + '[' /w/workspace/gexfoundry_device-rest-go_PR-160 ']' 07:40:24 + mkdir -p /w/workspace/gexfoundry_device-rest-go_PR-160/archives/ 07:40:24 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/gexfoundry_device-rest-go_PR-160/archives/ [Pipeline] echo 07:40:24 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-160/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 07:40:24 + facter operatingsystem [Pipeline] isUnix [Pipeline] sh 07:40:25 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 07:40:25 . [Pipeline] withDockerContainer 07:40:25 prd-ubuntu20.04-docker-8c-8g-7804 does not seem to be running inside a container 07:40:25 $ 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-160/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-160 -v /w/workspace/gexfoundry_device-rest-go_PR-160:/w/workspace/gexfoundry_device-rest-go_PR-160:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-160@tmp:/w/workspace/gexfoundry_device-rest-go_PR-160@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 07:40:25 $ docker top f3d8eca8799314bde4b7eedf4f0423e766db4764bd8aa2755f26d1d1eec00e8d -eo pid,comm [Pipeline] { [Pipeline] sh 07:40:26 + touch /tmp/pre-build-complete [Pipeline] sh 07:40:26 + mkdir -p /var/log/sysstat [Pipeline] sh 07:40:26 + ls /var/log/sa-host 07:40:26 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 07:40:26 provisioning config files... 07:40:26 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-160@tmp/config6662265865037667251tmp [Pipeline] { [Pipeline] echo 07:40:27 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 07:40:27 ---> create-netrc.sh [Pipeline] } 07:40:27 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 07:40:27 ---> python-tools-install.sh [Pipeline] echo 07:40:27 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 07:40:28 ---> sudo-logs.sh 07:40:28 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 07:40:28 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 07:40:28 ---> job-cost.sh 07:40:28 lf-activate-venv: SKIPPING 07:40:28 DEBUG: total: 0.2199999988079071 07:40:28 INFO: Retrieving Stack Cost... 07:40:28 INFO: Retrieving Pricing Info for: v3-standard-8 07:40:29 INFO: Archiving Costs [Pipeline] echo 07:40:29 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 07:40:29 ---> logs-deploy.sh 07:40:29 lf-activate-venv: SKIPPING 07:40:29 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-160/1 07:40:29 INFO: archiving workspace using pattern(s): 07:40:30 Archives upload complete. 07:40:30 INFO: archiving logs to Nexus