Push event to branch main Connecting to https://api.github.com using edgex-jenkins github personal access token Obtained Jenkinsfile from b5c3ad01f67977970fed420537dc3b570bb51b0a 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-ssh4193895931697282422.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-ssh12156462373937746063.key > git fetch --tags --progress -- origin +refs/heads/*:refs/remotes/origin/* # timeout=10 > git rev-parse refs/tags/stable^{commit} # timeout=10 Resolved tag stable revision c72b16708d6eed9a08be464a432ce22db7d90667 The recommended git tool is: git using credential edgex-jenkins-ssh > git rev-parse --resolve-git-dir /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/main/workspace@libs/edgex-global-pipelines/.git # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Fetching with tags Fetching upstream changes from git@github.com:edgexfoundry/edgex-global-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/main/workspace@libs/edgex-global-pipelines@tmp/jenkins-gitclient-ssh2906759520149648450.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision c72b16708d6eed9a08be464a432ce22db7d90667 (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f c72b16708d6eed9a08be464a432ce22db7d90667 # timeout=10 Commit message: "Merge pull request #378 from ernestojeda/ubuntu-20-changes" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 Excluding src/test/ from checkout of git git@github.com:edgexfoundry/edgex-global-pipelines.git so that shared library test code cannot be accessed by Pipelines. To remove this log message, move the test code outside of src/. To restore the previous behavior that allowed access to files in src/test/, pass -Dorg.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.INCLUDE_SRC_TEST_IN_LIBRARIES=true to the java command used to start Jenkins. Loading library lf-pipelines@master Attempting to resolve master from remote references... > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /tmp/jenkins-gitclient-ssh11051066618529921005.key > git ls-remote -h -- git@github.com:lfit/releng-pipelines.git # timeout=10 Found match: refs/heads/master revision b3dada9287033e4e81bc68320e01fd57bef02650 The recommended git tool is: NONE using credential edgex-jenkins-ssh > git rev-parse --resolve-git-dir /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/main/workspace@libs/lf-pipelines/.git # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url git@github.com:lfit/releng-pipelines.git # timeout=10 Fetching without tags Fetching upstream changes from git@github.com:lfit/releng-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/main/workspace@libs/lf-pipelines@tmp/jenkins-gitclient-ssh2782872234451254432.key > git fetch --no-tags --progress -- git@github.com:lfit/releng-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10 Checking out Revision b3dada9287033e4e81bc68320e01fd57bef02650 (master) > git config core.sparsecheckout # timeout=10 > git checkout -f b3dada9287033e4e81bc68320e01fd57bef02650 # timeout=10 Commit message: "Fix: Update requirements.txt, update global-jjb" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 Excluding src/test/ from checkout of git git@github.com:lfit/releng-pipelines.git so that shared library test code cannot be accessed by Pipelines. To remove this log message, move the test code outside of src/. To restore the previous behavior that allowed access to files in src/test/, pass -Dorg.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.INCLUDE_SRC_TEST_IN_LIBRARIES=true to the java command used to start Jenkins. [Pipeline] Start of Pipeline [Pipeline] echo ========================================================= [edgeXBuildGoApp] RAW Config: [project:device-rest-go] ========================================================= [Pipeline] echo Setting up nodes based on requested architectures [[amd64, arm64]] [Pipeline] echo Nodes requested: [[ubuntu20.04-docker-8c-8g, ubuntu20.04-docker-arm64-4c-16g]] [Pipeline] echo ========================================================= [edgeXBuildGoApp] Pipeline Parameters: ========================================================= [Pipeline] echo MAVEN_SETTINGS: device-rest-go-settings PROJECT: device-rest-go USE_SEMVER: true TEST_SCRIPT: make test BUILD_SCRIPT: make build GO_VERSION: 1.17 USE_ALPINE: true DOCKER_FILE_PATH: Dockerfile DOCKER_BUILD_FILE_PATH: Dockerfile.build DOCKER_BUILD_CONTEXT: . DOCKER_BUILD_IMAGE_TARGET: builder DOCKER_IMAGE_NAME: device-rest DOCKER_REGISTRY_NAMESPACE: DOCKER_NEXUS_REPO: staging BUILD_DOCKER_IMAGE: true PUSH_DOCKER_IMAGE: true BUILD_EXPERIMENTAL_DOCKER_IMAGE: false BUILD_STABLE_DOCKER_IMAGE: false SEMVER_BUMP_LEVEL: pre BUILD_SNAP: false PUBLISH_SWAGGER_DOCS: false SWAGGER_API_FOLDERS: openapi/v1 ARTIFACT_ROOT: archives/bin ARTIFACT_TYPES: docker SHOULD_BUILD: true BUILD_FAILURE_NOTIFY_LIST: edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] node Running on prd-ubuntu20.04-docker-8c-8g-23618 in /w/workspace/edgexfoundry_device-rest-go_main [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/edgexfoundry_device-rest-go_main # 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 Avoid second fetch Checking out Revision b5c3ad01f67977970fed420537dc3b570bb51b0a (main) > 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 core.sparsecheckout # timeout=10 > git checkout -f b5c3ad01f67977970fed420537dc3b570bb51b0a # timeout=10 Commit message: "Merge pull request #177 from MonicaisHer/EDGEX-424-integrate-env-var-injection" > git rev-list --no-walk 238d080d640a7e3d9ba0ccf186e4988c74ba76ef # timeout=10 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout [2022-04-26T15:36:56.032Z] Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials [2022-04-26T15:36:56.099Z] Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo [2022-04-26T15:36:56.126Z] ========================================================= [2022-04-26T15:36:56.126Z] EdgeX Global Pipelines Version Info [2022-04-26T15:36:56.126Z] ========================================================= [Pipeline] libraryResource [Pipeline] sh [2022-04-26T15:36:56.890Z] ------------------- [2022-04-26T15:36:56.890Z] stable info: [2022-04-26T15:36:56.890Z] ------------------- [2022-04-26T15:36:56.890Z] Commited By: Ernesto Ojeda ernesto.ojeda@intel.com [2022-04-26T15:36:56.890Z] Commit SHA: c72b16708d6eed9a08be464a432ce22db7d90667 [2022-04-26T15:36:56.890Z] Message: update stable to v1.0.221 [2022-04-26T15:36:57.464Z] ------------------- [2022-04-26T15:36:57.464Z] experimental info: [2022-04-26T15:36:57.464Z] ------------------- [2022-04-26T15:36:57.464Z] Commited By: Emilio Reyes emilio.reyes@intel.com [2022-04-26T15:36:57.464Z] Commit SHA: 0296cfd70f3001d69e24c2db393b493f66f700db [2022-04-26T15:36:57.464Z] Message: update experimental to v1.0.225 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo [2022-04-26T15:36:57.609Z] [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo [2022-04-26T15:36:57.619Z] [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo [2022-04-26T15:36:57.640Z] [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo [2022-04-26T15:36:57.655Z] [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo [2022-04-26T15:36:57.675Z] [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo [2022-04-26T15:36:57.695Z] [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.17 [Pipeline] echo [2022-04-26T15:36:57.713Z] [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo [2022-04-26T15:36:57.726Z] [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo [2022-04-26T15:36:57.743Z] [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo [2022-04-26T15:36:57.756Z] [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo [2022-04-26T15:36:57.770Z] [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo [2022-04-26T15:36:57.780Z] [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo [2022-04-26T15:36:57.790Z] [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo [2022-04-26T15:36:57.800Z] [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo [2022-04-26T15:36:57.809Z] [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo [2022-04-26T15:36:57.819Z] [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo [2022-04-26T15:36:57.829Z] [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo [2022-04-26T15:36:57.838Z] [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo [2022-04-26T15:36:57.850Z] [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo [2022-04-26T15:36:57.868Z] [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo [2022-04-26T15:36:57.883Z] [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo [2022-04-26T15:36:57.901Z] [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo [2022-04-26T15:36:57.913Z] [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo [2022-04-26T15:36:57.925Z] [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo [2022-04-26T15:36:57.936Z] [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo [2022-04-26T15:36:57.950Z] [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo [2022-04-26T15:36:57.963Z] [edgeXSetupEnvironment]: set envvar GIT_BRANCH = main [Pipeline] echo [2022-04-26T15:36:57.975Z] [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = main [Pipeline] echo [2022-04-26T15:36:57.987Z] [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = main [Pipeline] echo [2022-04-26T15:36:58.000Z] [edgeXSetupEnvironment]: set envvar GIT_COMMIT = b5c3ad01f67977970fed420537dc3b570bb51b0a [Pipeline] echo [2022-04-26T15:36:58.086Z] [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = b5c3ad0 [Pipeline] echo [2022-04-26T15:36:58.112Z] [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider [2022-04-26T15:36:58.153Z] provisioning config files... [2022-04-26T15:36:58.171Z] copy managed file [device-rest-go-settings] to file:/w/workspace/edgexfoundry_device-rest-go_main@tmp/config5328733210446202903tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh [2022-04-26T15:36:58.576Z] ---> docker-login.sh [2022-04-26T15:36:58.576Z] nexus3.edgexfoundry.org:10001 [2022-04-26T15:36:58.838Z] WARNING! Using --password via the CLI is insecure. Use --password-stdin. [2022-04-26T15:36:58.838Z] WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. [2022-04-26T15:36:58.838Z] Configure a credential helper to remove this warning. See [2022-04-26T15:36:58.838Z] https://docs.docker.com/engine/reference/commandline/login/#credentials-store [2022-04-26T15:36:58.838Z] [2022-04-26T15:36:58.838Z] Login Succeeded [2022-04-26T15:36:58.838Z] nexus3.edgexfoundry.org:10002 [2022-04-26T15:36:59.101Z] WARNING! Using --password via the CLI is insecure. Use --password-stdin. [2022-04-26T15:36:59.101Z] WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. [2022-04-26T15:36:59.101Z] Configure a credential helper to remove this warning. See [2022-04-26T15:36:59.101Z] https://docs.docker.com/engine/reference/commandline/login/#credentials-store [2022-04-26T15:36:59.101Z] [2022-04-26T15:36:59.101Z] Login Succeeded [2022-04-26T15:36:59.101Z] nexus3.edgexfoundry.org:10003 [2022-04-26T15:36:59.101Z] WARNING! Using --password via the CLI is insecure. Use --password-stdin. [2022-04-26T15:36:59.101Z] WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. [2022-04-26T15:36:59.101Z] Configure a credential helper to remove this warning. See [2022-04-26T15:36:59.101Z] https://docs.docker.com/engine/reference/commandline/login/#credentials-store [2022-04-26T15:36:59.101Z] [2022-04-26T15:36:59.101Z] Login Succeeded [2022-04-26T15:36:59.101Z] nexus3.edgexfoundry.org:10004 [2022-04-26T15:36:59.363Z] WARNING! Using --password via the CLI is insecure. Use --password-stdin. [2022-04-26T15:36:59.364Z] WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. [2022-04-26T15:36:59.364Z] Configure a credential helper to remove this warning. See [2022-04-26T15:36:59.364Z] https://docs.docker.com/engine/reference/commandline/login/#credentials-store [2022-04-26T15:36:59.364Z] [2022-04-26T15:36:59.364Z] Login Succeeded [2022-04-26T15:36:59.364Z] docker.io [2022-04-26T15:36:59.364Z] WARNING! Using --password via the CLI is insecure. Use --password-stdin. [2022-04-26T15:36:59.937Z] WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. [2022-04-26T15:36:59.937Z] Configure a credential helper to remove this warning. See [2022-04-26T15:36:59.937Z] https://docs.docker.com/engine/reference/commandline/login/#credentials-store [2022-04-26T15:36:59.937Z] [2022-04-26T15:36:59.937Z] Login Succeeded [2022-04-26T15:36:59.937Z] ---> docker-login.sh ends [Pipeline] } [2022-04-26T15:36:59.946Z] Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh [2022-04-26T15:37:00.355Z] + git rev-list -1 --merges b5c3ad01f67977970fed420537dc3b570bb51b0a~1..b5c3ad01f67977970fed420537dc3b570bb51b0a [Pipeline] echo [2022-04-26T15:37:00.393Z] -----------> git rev-list -1 --merges b5c3ad01f67977970fed420537dc3b570bb51b0a~1..b5c3ad01f67977970fed420537dc3b570bb51b0a b5c3ad01f67977970fed420537dc3b570bb51b0a [2022-04-26T15:37:00.393Z] b5c3ad01f67977970fed420537dc3b570bb51b0a [false] [Pipeline] sh [2022-04-26T15:37:00.694Z] + git log --format=format:%s -1 b5c3ad01f67977970fed420537dc3b570bb51b0a [Pipeline] echo [2022-04-26T15:37:00.711Z] ========================================================= [2022-04-26T15:37:00.711Z] [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] [2022-04-26T15:37:00.711Z] ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh [2022-04-26T15:37:01.054Z] + git log --format=format:%s -1 b5c3ad01f67977970fed420537dc3b570bb51b0a [Pipeline] echo [2022-04-26T15:37:01.067Z] [semverPrep] GIT_COMMIT: b5c3ad01f67977970fed420537dc3b570bb51b0a, Commit Message: Merge pull request #177 from MonicaisHer/EDGEX-424-integrate-env-var-injection [Pipeline] echo [2022-04-26T15:37:01.079Z] [semverPrep] This is not a build commit. [Pipeline] sh [2022-04-26T15:37:01.473Z] + grep github.com ecdsa /etc/ssh/ssh_known_hosts [2022-04-26T15:37:01.473Z] + grep -v github /etc/ssh/ssh_known_hosts [2022-04-26T15:37:01.473Z] + [ -e /tmp/ssh_known_hosts ] [2022-04-26T15:37:01.473Z] + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts [2022-04-26T15:37:01.473Z] + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [2022-04-26T15:37:01.473Z] + sudo tee -a /etc/ssh/ssh_known_hosts [2022-04-26T15:37:01.473Z] github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] sh [2022-04-26T15:37:01.827Z] + docker inspect -f . nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [2022-04-26T15:37:01.827Z] [2022-04-26T15:37:01.827Z] Error: No such object: nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] isUnix [Pipeline] sh [2022-04-26T15:37:02.150Z] + docker pull nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [2022-04-26T15:37:02.151Z] latest: Pulling from edgex-devops/git-semver [2022-04-26T15:37:02.151Z] a0d0a0d46f8b: Pulling fs layer [2022-04-26T15:37:02.151Z] 3e5f54012d9b: Pulling fs layer [2022-04-26T15:37:02.151Z] 4c7163046ea9: Pulling fs layer [2022-04-26T15:37:02.151Z] 0c2d73faf560: Pulling fs layer [2022-04-26T15:37:02.151Z] 0c2d73faf560: Waiting [2022-04-26T15:37:02.151Z] 3e5f54012d9b: Verifying Checksum [2022-04-26T15:37:02.151Z] 3e5f54012d9b: Download complete [2022-04-26T15:37:02.151Z] a0d0a0d46f8b: Verifying Checksum [2022-04-26T15:37:02.151Z] a0d0a0d46f8b: Download complete [2022-04-26T15:37:02.151Z] 0c2d73faf560: Verifying Checksum [2022-04-26T15:37:02.151Z] 0c2d73faf560: Download complete [2022-04-26T15:37:02.412Z] 4c7163046ea9: Verifying Checksum [2022-04-26T15:37:02.412Z] 4c7163046ea9: Download complete [2022-04-26T15:37:02.412Z] a0d0a0d46f8b: Pull complete [2022-04-26T15:37:02.673Z] 3e5f54012d9b: Pull complete [2022-04-26T15:37:02.934Z] 4c7163046ea9: Pull complete [2022-04-26T15:37:02.934Z] 0c2d73faf560: Pull complete [2022-04-26T15:37:02.934Z] Digest: sha256:2751de6e655929dcbe46418c7769d9d992331b5b721eb968631a4166222929f9 [2022-04-26T15:37:03.195Z] Status: Downloaded newer image for nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [2022-04-26T15:37:03.196Z] nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] withDockerContainer [2022-04-26T15:37:03.276Z] prd-ubuntu20.04-docker-8c-8g-23618 does not seem to be running inside a container [2022-04-26T15:37:03.320Z] $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/edgexfoundry_device-rest-go_main -v /w/workspace/edgexfoundry_device-rest-go_main:/w/workspace/edgexfoundry_device-rest-go_main:rw,z -v /w/workspace/edgexfoundry_device-rest-go_main@tmp:/w/workspace/edgexfoundry_device-rest-go_main@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 ******** nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest cat [2022-04-26T15:37:03.961Z] $ docker top f1bfd81405eb5cf0ca536172768e2b2f40958c72791080f0894b9873a349bf6f -eo pid,comm [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent [2022-04-26T15:37:04.060Z] [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) [2022-04-26T15:37:04.060Z] [ssh-agent] Looking for ssh-agent implementation... [2022-04-26T15:37:04.186Z] [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) [2022-04-26T15:37:04.193Z] $ docker exec f1bfd81405eb5cf0ca536172768e2b2f40958c72791080f0894b9873a349bf6f ssh-agent [2022-04-26T15:37:04.305Z] SSH_AUTH_SOCK=/tmp/ssh-XXXXXXljBPOo/agent.14 [2022-04-26T15:37:04.305Z] SSH_AGENT_PID=20 [2022-04-26T15:37:04.321Z] Running ssh-add (command line suppressed) [2022-04-26T15:37:04.444Z] Identity added: /w/workspace/edgexfoundry_device-rest-go_main@tmp/private_key_7495462268757328596.key (/w/workspace/edgexfoundry_device-rest-go_main@tmp/private_key_7495462268757328596.key) [2022-04-26T15:37:04.458Z] [ssh-agent] Started. [Pipeline] { [Pipeline] sh [2022-04-26T15:37:04.757Z] + git tag --points-at HEAD [Pipeline] } [2022-04-26T15:37:04.781Z] $ docker exec --env ******** --env ******** f1bfd81405eb5cf0ca536172768e2b2f40958c72791080f0894b9873a349bf6f ssh-agent -k [2022-04-26T15:37:04.883Z] unset SSH_AUTH_SOCK; [2022-04-26T15:37:04.883Z] unset SSH_AGENT_PID; [2022-04-26T15:37:04.883Z] echo Agent pid 20 killed; [2022-04-26T15:37:04.890Z] [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent [2022-04-26T15:37:04.916Z] [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) [2022-04-26T15:37:04.916Z] [ssh-agent] Looking for ssh-agent implementation... [2022-04-26T15:37:05.039Z] [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) [2022-04-26T15:37:05.047Z] $ docker exec f1bfd81405eb5cf0ca536172768e2b2f40958c72791080f0894b9873a349bf6f ssh-agent [2022-04-26T15:37:05.188Z] SSH_AUTH_SOCK=/tmp/ssh-XXXXXXpoEmeB/agent.54 [2022-04-26T15:37:05.188Z] SSH_AGENT_PID=60 [2022-04-26T15:37:05.193Z] Running ssh-add (command line suppressed) [2022-04-26T15:37:05.314Z] Identity added: /w/workspace/edgexfoundry_device-rest-go_main@tmp/private_key_419544361260887871.key (/w/workspace/edgexfoundry_device-rest-go_main@tmp/private_key_419544361260887871.key) [2022-04-26T15:37:05.342Z] [ssh-agent] Started. [Pipeline] { [Pipeline] sh [2022-04-26T15:37:05.638Z] + git semver init [2022-04-26T15:37:05.638Z] # -> Open(): unable to determine branch for HEAD [2022-04-26T15:37:05.638Z] # $GIT_DIR = /w/workspace/edgexfoundry_device-rest-go_main/.git [2022-04-26T15:37:05.638Z] # $GIT_WORK_TREE = /w/workspace/edgexfoundry_device-rest-go_main [2022-04-26T15:37:05.638Z] # $SEMVER_REMOTE_NAME = origin [2022-04-26T15:37:05.638Z] # $SEMVER_USER_EMAIL = collab-it+edgex@linuxfoundation.org [2022-04-26T15:37:05.638Z] # $SEMVER_USER_NAME = edgex-jenkins [2022-04-26T15:37:05.638Z] # $SEMVER_BRANCH = main [2022-04-26T15:37:05.638Z] # $SEMVER_TEMP = /tmp/semver-327699283 [2022-04-26T15:37:05.638Z] # git clone --branch semver git@github.com:edgexfoundry/device-rest-go.git $SEMVER_TEMP [2022-04-26T15:37:07.025Z] # '/tmp/semver-327699283' -> '/w/workspace/edgexfoundry_device-rest-go_main/.semver' [2022-04-26T15:37:07.025Z] # -> Force: false [2022-04-26T15:37:07.025Z] # $SEMVER_DIR = /w/workspace/edgexfoundry_device-rest-go_main/.semver [Pipeline] } [2022-04-26T15:37:07.042Z] $ docker exec --env ******** --env ******** f1bfd81405eb5cf0ca536172768e2b2f40958c72791080f0894b9873a349bf6f ssh-agent -k [2022-04-26T15:37:07.139Z] unset SSH_AUTH_SOCK; [2022-04-26T15:37:07.140Z] unset SSH_AGENT_PID; [2022-04-26T15:37:07.140Z] echo Agent pid 60 killed; [2022-04-26T15:37:07.148Z] [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh [2022-04-26T15:37:07.464Z] + git semver [Pipeline] } [2022-04-26T15:37:07.486Z] $ docker stop --time=1 f1bfd81405eb5cf0ca536172768e2b2f40958c72791080f0894b9873a349bf6f [2022-04-26T15:37:08.906Z] $ docker rm -f f1bfd81405eb5cf0ca536172768e2b2f40958c72791080f0894b9873a349bf6f [Pipeline] // withDockerContainer [Pipeline] sh [2022-04-26T15:37:09.270Z] + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash [2022-04-26T15:37:09.560Z] Stashed 1 file(s) [Pipeline] echo [2022-04-26T15:37:09.565Z] [edgeXSemver]: initialized semver on version 2.2.0-dev.12 [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 [2022-04-26T15:37:09.741Z] provisioning config files... [2022-04-26T15:37:09.752Z] copy managed file [device-rest-go-settings] to file:/w/workspace/edgexfoundry_device-rest-go_main@tmp/config4555241058823932216tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh [2022-04-26T15:37:10.056Z] ---> docker-login.sh [2022-04-26T15:37:10.056Z] nexus3.edgexfoundry.org:10001 [2022-04-26T15:37:10.056Z] WARNING! Using --password via the CLI is insecure. Use --password-stdin. [2022-04-26T15:37:10.056Z] WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. [2022-04-26T15:37:10.056Z] Configure a credential helper to remove this warning. See [2022-04-26T15:37:10.056Z] https://docs.docker.com/engine/reference/commandline/login/#credentials-store [2022-04-26T15:37:10.056Z] [2022-04-26T15:37:10.056Z] Login Succeeded [2022-04-26T15:37:10.056Z] nexus3.edgexfoundry.org:10002 [2022-04-26T15:37:10.056Z] WARNING! Using --password via the CLI is insecure. Use --password-stdin. [2022-04-26T15:37:10.317Z] WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. [2022-04-26T15:37:10.317Z] Configure a credential helper to remove this warning. See [2022-04-26T15:37:10.317Z] https://docs.docker.com/engine/reference/commandline/login/#credentials-store [2022-04-26T15:37:10.317Z] [2022-04-26T15:37:10.317Z] Login Succeeded [2022-04-26T15:37:10.317Z] nexus3.edgexfoundry.org:10003 [2022-04-26T15:37:10.317Z] WARNING! Using --password via the CLI is insecure. Use --password-stdin. [2022-04-26T15:37:10.317Z] WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. [2022-04-26T15:37:10.317Z] Configure a credential helper to remove this warning. See [2022-04-26T15:37:10.317Z] https://docs.docker.com/engine/reference/commandline/login/#credentials-store [2022-04-26T15:37:10.317Z] [2022-04-26T15:37:10.317Z] Login Succeeded [2022-04-26T15:37:10.317Z] nexus3.edgexfoundry.org:10004 [2022-04-26T15:37:10.317Z] WARNING! Using --password via the CLI is insecure. Use --password-stdin. [2022-04-26T15:37:10.578Z] WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. [2022-04-26T15:37:10.578Z] Configure a credential helper to remove this warning. See [2022-04-26T15:37:10.578Z] https://docs.docker.com/engine/reference/commandline/login/#credentials-store [2022-04-26T15:37:10.578Z] [2022-04-26T15:37:10.578Z] Login Succeeded [2022-04-26T15:37:10.578Z] docker.io [2022-04-26T15:37:10.578Z] WARNING! Using --password via the CLI is insecure. Use --password-stdin. [2022-04-26T15:37:10.843Z] WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. [2022-04-26T15:37:10.843Z] Configure a credential helper to remove this warning. See [2022-04-26T15:37:10.843Z] https://docs.docker.com/engine/reference/commandline/login/#credentials-store [2022-04-26T15:37:10.843Z] [2022-04-26T15:37:10.843Z] Login Succeeded [2022-04-26T15:37:10.843Z] ---> docker-login.sh ends [Pipeline] } [2022-04-26T15:37:10.853Z] Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo [2022-04-26T15:37:10.925Z] [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo [2022-04-26T15:37:10.936Z] ========================================================= [2022-04-26T15:37:10.936Z] [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine] [2022-04-26T15:37:10.936Z] ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh [2022-04-26T15:37:11.265Z] + 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 . [2022-04-26T15:37:11.265Z] Sending build context to Docker daemon 10.57MB [2022-04-26T15:37:11.265Z] Step 1/12 : ARG BASE=golang:1.17-alpine3.15 [2022-04-26T15:37:11.265Z] Step 2/12 : FROM ${BASE} AS builder [2022-04-26T15:37:11.265Z] 1.17-alpine: Pulling from edgex-devops/edgex-golang-base [2022-04-26T15:37:11.265Z] 59bf1c3509f3: Pulling fs layer [2022-04-26T15:37:11.265Z] 666ba61612fd: Pulling fs layer [2022-04-26T15:37:11.265Z] 8ed8ca486205: Pulling fs layer [2022-04-26T15:37:11.265Z] 4fe6c5a15a65: Pulling fs layer [2022-04-26T15:37:11.265Z] 22a0e8bec74d: Pulling fs layer [2022-04-26T15:37:11.265Z] ca2b28591e48: Pulling fs layer [2022-04-26T15:37:11.265Z] a51346096db8: Pulling fs layer [2022-04-26T15:37:11.265Z] 4fe6c5a15a65: Waiting [2022-04-26T15:37:11.265Z] daebc70d1ce1: Pulling fs layer [2022-04-26T15:37:11.265Z] 0e18a0eac166: Pulling fs layer [2022-04-26T15:37:11.265Z] 22a0e8bec74d: Waiting [2022-04-26T15:37:11.265Z] ca2b28591e48: Waiting [2022-04-26T15:37:11.265Z] 0e18a0eac166: Waiting [2022-04-26T15:37:11.265Z] a51346096db8: Waiting [2022-04-26T15:37:11.265Z] daebc70d1ce1: Waiting [2022-04-26T15:37:11.265Z] 8ed8ca486205: Verifying Checksum [2022-04-26T15:37:11.265Z] 8ed8ca486205: Download complete [2022-04-26T15:37:11.265Z] 666ba61612fd: Download complete [2022-04-26T15:37:11.265Z] 22a0e8bec74d: Verifying Checksum [2022-04-26T15:37:11.265Z] 22a0e8bec74d: Download complete [2022-04-26T15:37:11.527Z] ca2b28591e48: Verifying Checksum [2022-04-26T15:37:11.527Z] ca2b28591e48: Download complete [2022-04-26T15:37:11.527Z] 59bf1c3509f3: Verifying Checksum [2022-04-26T15:37:11.527Z] 59bf1c3509f3: Download complete [2022-04-26T15:37:11.527Z] a51346096db8: Verifying Checksum [2022-04-26T15:37:11.527Z] a51346096db8: Download complete [2022-04-26T15:37:11.527Z] daebc70d1ce1: Verifying Checksum [2022-04-26T15:37:11.527Z] daebc70d1ce1: Download complete [2022-04-26T15:37:11.527Z] 59bf1c3509f3: Pull complete [2022-04-26T15:37:11.790Z] 666ba61612fd: Pull complete [2022-04-26T15:37:11.790Z] 8ed8ca486205: Pull complete [2022-04-26T15:37:12.053Z] 0e18a0eac166: Verifying Checksum [2022-04-26T15:37:12.053Z] 0e18a0eac166: Download complete [2022-04-26T15:37:12.319Z] 4fe6c5a15a65: Verifying Checksum [2022-04-26T15:37:12.319Z] 4fe6c5a15a65: Download complete [2022-04-26T15:37:16.548Z] 4fe6c5a15a65: Pull complete [2022-04-26T15:37:16.548Z] 22a0e8bec74d: Pull complete [2022-04-26T15:37:16.548Z] ca2b28591e48: Pull complete [2022-04-26T15:37:16.548Z] a51346096db8: Pull complete [2022-04-26T15:37:16.548Z] daebc70d1ce1: Pull complete [2022-04-26T15:37:18.459Z] 0e18a0eac166: Pull complete [2022-04-26T15:37:18.459Z] Digest: sha256:5cf2d0a306c5171eb5b3008c4b83cc7b6044f1808c238cb17927cddb93576120 [2022-04-26T15:37:18.459Z] Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine [2022-04-26T15:37:18.459Z] ---> f018257e8ee9 [2022-04-26T15:37:18.459Z] Step 3/12 : ARG MAKE='make build' [2022-04-26T15:37:20.383Z] ---> Running in adcc2633e07a [2022-04-26T15:37:20.383Z] Removing intermediate container adcc2633e07a [2022-04-26T15:37:20.383Z] ---> 0c69978fed09 [2022-04-26T15:37:20.383Z] Step 4/12 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" [2022-04-26T15:37:20.383Z] ---> Running in 87135745f037 [2022-04-26T15:37:20.383Z] Removing intermediate container 87135745f037 [2022-04-26T15:37:20.383Z] ---> 9fac8b01c545 [2022-04-26T15:37:20.383Z] Step 5/12 : ARG ALPINE_PKG_EXTRA="" [2022-04-26T15:37:20.644Z] ---> Running in 67f55a9e2254 [2022-04-26T15:37:20.644Z] Removing intermediate container 67f55a9e2254 [2022-04-26T15:37:20.644Z] ---> e587cf80d4f3 [2022-04-26T15:37:20.644Z] Step 6/12 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories [2022-04-26T15:37:20.644Z] ---> Running in f58ad0f38a4f [2022-04-26T15:37:21.219Z] Removing intermediate container f58ad0f38a4f [2022-04-26T15:37:21.219Z] ---> 6724efa9ed45 [2022-04-26T15:37:21.219Z] Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} [2022-04-26T15:37:21.219Z] ---> Running in 0a4de4e3b71a [2022-04-26T15:37:21.480Z] fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz [2022-04-26T15:37:22.430Z] fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz [2022-04-26T15:37:22.691Z] (1/4) Installing openssh-keygen (8.8_p1-r1) [2022-04-26T15:37:22.691Z] (2/4) Installing libedit (20210910.3.1-r0) [2022-04-26T15:37:22.953Z] (3/4) Installing openssh-client-common (8.8_p1-r1) [2022-04-26T15:37:22.953Z] (4/4) Installing openssh-client-default (8.8_p1-r1) [2022-04-26T15:37:23.240Z] Executing busybox-1.34.1-r3.trigger [2022-04-26T15:37:23.240Z] OK: 224 MiB in 56 packages [2022-04-26T15:37:23.501Z] Removing intermediate container 0a4de4e3b71a [2022-04-26T15:37:23.501Z] ---> 501215f58fa0 [2022-04-26T15:37:23.501Z] Step 8/12 : WORKDIR /device-rest-go [2022-04-26T15:37:23.761Z] ---> Running in 852098abbe8e [2022-04-26T15:37:24.023Z] Removing intermediate container 852098abbe8e [2022-04-26T15:37:24.023Z] ---> 8a16c47443b1 [2022-04-26T15:37:24.023Z] Step 9/12 : COPY go.mod vendor* ./ [2022-04-26T15:37:24.023Z] ---> a48f3fcc005c [2022-04-26T15:37:24.023Z] Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." [2022-04-26T15:37:24.023Z] ---> Running in b55b99751530 [2022-04-26T15:37:24.685Z] Still waiting to schedule task [2022-04-26T15:37:24.686Z] Waiting for next available executor on ‘ubuntu20.04-docker-arm64-4c-16g’ [2022-04-26T15:37:38.981Z] Removing intermediate container b55b99751530 [2022-04-26T15:37:38.981Z] ---> 8664a3331933 [2022-04-26T15:37:38.981Z] Step 11/12 : COPY . . [2022-04-26T15:37:39.246Z] ---> 0ed7e748e06d [2022-04-26T15:37:39.246Z] Step 12/12 : RUN $MAKE [2022-04-26T15:37:39.246Z] ---> Running in 6600e8fe3952 [2022-04-26T15:37:39.816Z] noop [2022-04-26T15:37:40.388Z] Removing intermediate container 6600e8fe3952 [2022-04-26T15:37:40.388Z] ---> 5c8b79067139 [2022-04-26T15:37:40.388Z] Successfully built 5c8b79067139 [2022-04-26T15:37:40.388Z] Successfully tagged ci-base-image-x86_64:latest [Pipeline] isUnix [Pipeline] sh [2022-04-26T15:37:40.952Z] + docker inspect -f . ci-base-image-x86_64 [2022-04-26T15:37:40.952Z] . [Pipeline] withDockerContainer [2022-04-26T15:37:41.012Z] prd-ubuntu20.04-docker-8c-8g-23618 does not seem to be running inside a container [2022-04-26T15:37:41.063Z] $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/edgexfoundry_device-rest-go_main -v /w/workspace/edgexfoundry_device-rest-go_main:/w/workspace/edgexfoundry_device-rest-go_main:rw,z -v /w/workspace/edgexfoundry_device-rest-go_main@tmp:/w/workspace/edgexfoundry_device-rest-go_main@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 ******** ci-base-image-x86_64 cat [2022-04-26T15:37:41.509Z] $ docker top 5534f07b646806e901b6077300fd4020dce1a0de182053cc4eb407600374e13c -eo pid,comm [Pipeline] { [Pipeline] sh [2022-04-26T15:37:41.856Z] + go version [2022-04-26T15:37:41.856Z] go version go1.17.6 linux/amd64 [Pipeline] } [2022-04-26T15:37:41.872Z] $ docker stop --time=1 5534f07b646806e901b6077300fd4020dce1a0de182053cc4eb407600374e13c [2022-04-26T15:37:43.207Z] $ docker rm -f 5534f07b646806e901b6077300fd4020dce1a0de182053cc4eb407600374e13c [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh [2022-04-26T15:37:43.640Z] + docker inspect -f . ci-base-image-x86_64 [2022-04-26T15:37:43.640Z] . [Pipeline] withDockerContainer [2022-04-26T15:37:43.721Z] prd-ubuntu20.04-docker-8c-8g-23618 does not seem to be running inside a container [2022-04-26T15:37:43.781Z] $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/edgexfoundry_device-rest-go_main -v /w/workspace/edgexfoundry_device-rest-go_main:/w/workspace/edgexfoundry_device-rest-go_main:rw,z -v /w/workspace/edgexfoundry_device-rest-go_main@tmp:/w/workspace/edgexfoundry_device-rest-go_main@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 ******** ci-base-image-x86_64 cat [2022-04-26T15:37:44.175Z] $ docker top 0173c10720f59d0cf76b3dbd0f5a69881058cb533fb44ded81503d2a39b8a33d -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh [2022-04-26T15:37:44.589Z] + make test [2022-04-26T15:37:44.589Z] CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out ./... [2022-04-26T15:37:44.848Z] ? github.com/edgexfoundry/device-rest-go [no test files] [2022-04-26T15:37:54.839Z] ? github.com/edgexfoundry/device-rest-go/cmd [no test files] [2022-04-26T15:37:54.839Z] ok github.com/edgexfoundry/device-rest-go/driver 0.016s coverage: 55.2% of statements [2022-04-26T15:38:00.114Z] CGO_ENABLED=1 GO111MODULE=on go vet ./... [2022-04-26T15:38:03.416Z] gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") [2022-04-26T15:38:03.416Z] [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] [2022-04-26T15:38:03.416Z] ./bin/test-attribution-txt.sh [Pipeline] echo [2022-04-26T15:38:03.428Z] [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } [2022-04-26T15:38:03.447Z] $ docker stop --time=1 0173c10720f59d0cf76b3dbd0f5a69881058cb533fb44ded81503d2a39b8a33d [2022-04-26T15:38:05.690Z] $ docker rm -f 0173c10720f59d0cf76b3dbd0f5a69881058cb533fb44ded81503d2a39b8a33d [Pipeline] // withDockerContainer [Pipeline] sh [2022-04-26T15:38:06.140Z] + sudo chown -R jenkins:jenkins . [Pipeline] stash [2022-04-26T15:38:06.183Z] Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh [2022-04-26T15:38:06.761Z] + sudo chown -R jenkins:jenkins . [Pipeline] sh [2022-04-26T15:38:07.048Z] + ls -al . [2022-04-26T15:38:07.049Z] total 172 [2022-04-26T15:38:07.049Z] drwxrwxr-x 9 jenkins jenkins 4096 Apr 26 15:38 . [2022-04-26T15:38:07.049Z] drwxrwxr-x 4 jenkins jenkins 4096 Apr 26 15:36 .. [2022-04-26T15:38:07.049Z] -rw-rw-r-- 1 jenkins jenkins 151 Apr 26 15:36 .dockerignore [2022-04-26T15:38:07.049Z] drwxrwxr-x 8 jenkins jenkins 4096 Apr 26 15:36 .git [2022-04-26T15:38:07.049Z] drwxrwxr-x 3 jenkins jenkins 4096 Apr 26 15:36 .github [2022-04-26T15:38:07.049Z] -rw-rw-r-- 1 jenkins jenkins 329 Apr 26 15:36 .gitignore [2022-04-26T15:38:07.049Z] -rw-rw-r-- 1 jenkins jenkins 41 Apr 26 15:36 .golangci.yml [2022-04-26T15:38:07.049Z] drwx------ 3 jenkins jenkins 4096 Apr 26 15:37 .semver [2022-04-26T15:38:07.049Z] -rw-rw-r-- 1 jenkins jenkins 8330 Apr 26 15:36 Attribution.txt [2022-04-26T15:38:07.049Z] -rw-rw-r-- 1 jenkins jenkins 7459 Apr 26 15:36 CHANGELOG.md [2022-04-26T15:38:07.049Z] -rw-rw-r-- 1 jenkins jenkins 1672 Apr 26 15:36 Dockerfile [2022-04-26T15:38:07.049Z] -rw-rw-r-- 1 jenkins jenkins 677 Apr 26 15:36 GOVERNANCE.md [2022-04-26T15:38:07.049Z] -rw-rw-r-- 1 jenkins jenkins 680 Apr 26 15:36 Jenkinsfile [2022-04-26T15:38:07.049Z] -rw-rw-r-- 1 jenkins jenkins 11340 Apr 26 15:36 LICENSE [2022-04-26T15:38:07.049Z] -rw-rw-r-- 1 jenkins jenkins 1964 Apr 26 15:36 Makefile [2022-04-26T15:38:07.049Z] -rw-rw-r-- 1 jenkins jenkins 620 Apr 26 15:36 OWNERS.md [2022-04-26T15:38:07.049Z] -rw-rw-r-- 1 jenkins jenkins 8246 Apr 26 15:36 README.md [2022-04-26T15:38:07.049Z] -rw-rw-r-- 1 jenkins jenkins 12 Apr 26 15:37 VERSION [2022-04-26T15:38:07.049Z] drwxrwxr-x 2 jenkins jenkins 4096 Apr 26 15:36 bin [2022-04-26T15:38:07.049Z] drwxrwxr-x 3 jenkins jenkins 4096 Apr 26 15:36 cmd [2022-04-26T15:38:07.049Z] -rw-r--r-- 1 jenkins jenkins 9355 Apr 26 15:37 coverage.out [2022-04-26T15:38:07.049Z] drwxrwxr-x 2 jenkins jenkins 4096 Apr 26 15:36 driver [2022-04-26T15:38:07.049Z] -rw-rw-r-- 1 jenkins jenkins 3240 Apr 26 15:36 go.mod [2022-04-26T15:38:07.049Z] -rw-rw-r-- 1 jenkins jenkins 34722 Apr 26 15:36 go.sum [2022-04-26T15:38:07.049Z] drwxrwxr-x 3 jenkins jenkins 4096 Apr 26 15:36 snap [2022-04-26T15:38:07.049Z] -rw-rw-r-- 1 jenkins jenkins 713 Apr 26 15:36 version.go [Pipeline] isUnix [Pipeline] sh [2022-04-26T15:38:07.440Z] + 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=b5c3ad01f67977970fed420537dc3b570bb51b0a --label arch=amd64 --label version=2.2.0-dev.12 . [2022-04-26T15:38:07.440Z] Sending build context to Docker daemon 10.58MB [2022-04-26T15:38:07.440Z] Step 1/25 : ARG BASE=golang:1.17-alpine3.15 [2022-04-26T15:38:07.440Z] Step 2/25 : FROM ${BASE} AS builder [2022-04-26T15:38:07.440Z] ---> 5c8b79067139 [2022-04-26T15:38:07.440Z] Step 3/25 : ARG MAKE='make build' [2022-04-26T15:38:07.700Z] ---> Running in 9e9751573e92 [2022-04-26T15:38:07.960Z] Removing intermediate container 9e9751573e92 [2022-04-26T15:38:07.960Z] ---> 6ba832f1f3a2 [2022-04-26T15:38:07.960Z] Step 4/25 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" [2022-04-26T15:38:08.234Z] ---> Running in 2696f8cec75c [2022-04-26T15:38:08.234Z] Removing intermediate container 2696f8cec75c [2022-04-26T15:38:08.234Z] ---> a99816626e02 [2022-04-26T15:38:08.234Z] Step 5/25 : ARG ALPINE_PKG_EXTRA="" [2022-04-26T15:38:08.494Z] ---> Running in 5548a44fc160 [2022-04-26T15:38:08.755Z] Removing intermediate container 5548a44fc160 [2022-04-26T15:38:08.755Z] ---> a888fb9a57e5 [2022-04-26T15:38:08.755Z] Step 6/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories [2022-04-26T15:38:09.017Z] ---> Running in 388a15291c55 [2022-04-26T15:38:09.958Z] Removing intermediate container 388a15291c55 [2022-04-26T15:38:09.959Z] ---> b824dfd98bb7 [2022-04-26T15:38:09.959Z] Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} [2022-04-26T15:38:09.959Z] ---> Running in 7fc2c41d9631 [2022-04-26T15:38:10.527Z] fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz [2022-04-26T15:38:11.096Z] fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz [2022-04-26T15:38:11.667Z] OK: 224 MiB in 56 packages [2022-04-26T15:38:11.929Z] Removing intermediate container 7fc2c41d9631 [2022-04-26T15:38:11.930Z] ---> 83a608cb61a0 [2022-04-26T15:38:11.930Z] Step 8/25 : WORKDIR /device-rest-go [2022-04-26T15:38:11.930Z] ---> Running in 23c187246699 [2022-04-26T15:38:11.930Z] Removing intermediate container 23c187246699 [2022-04-26T15:38:11.930Z] ---> f4df3b83ab71 [2022-04-26T15:38:11.930Z] Step 9/25 : COPY go.mod vendor* ./ [2022-04-26T15:38:12.190Z] ---> 6a137876f7a4 [2022-04-26T15:38:12.190Z] Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." [2022-04-26T15:38:12.190Z] ---> Running in 2610a0a6d20a [2022-04-26T15:38:12.759Z] Removing intermediate container 2610a0a6d20a [2022-04-26T15:38:12.759Z] ---> 0f79dcfe2b5c [2022-04-26T15:38:12.759Z] Step 11/25 : COPY . . [2022-04-26T15:38:13.020Z] ---> a9cad89358f5 [2022-04-26T15:38:13.020Z] Step 12/25 : RUN $MAKE [2022-04-26T15:38:13.020Z] ---> Running in 18d0fc981a87 [2022-04-26T15:38:13.590Z] CGO_ENABLED=1 GO111MODULE=on go build -ldflags "-linkmode=external -X github.com/edgexfoundry/device-rest-go.Version=2.2.0-dev.12" -trimpath -mod=readonly -buildmode=pie -o cmd/device-rest ./cmd [2022-04-26T15:38:35.542Z] Removing intermediate container 18d0fc981a87 [2022-04-26T15:38:35.542Z] ---> 2cfa6ab808fa [2022-04-26T15:38:35.542Z] Step 13/25 : FROM alpine:3.14 [2022-04-26T15:38:35.542Z] 3.14: Pulling from library/alpine [2022-04-26T15:38:35.542Z] 8663204ce13b: Pulling fs layer [2022-04-26T15:38:35.542Z] 8663204ce13b: Verifying Checksum [2022-04-26T15:38:35.542Z] 8663204ce13b: Download complete [2022-04-26T15:38:35.542Z] 8663204ce13b: Pull complete [2022-04-26T15:38:35.542Z] Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 [2022-04-26T15:38:35.542Z] Status: Downloaded newer image for alpine:3.14 [2022-04-26T15:38:35.542Z] ---> e04c818066af [2022-04-26T15:38:35.542Z] Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' [2022-04-26T15:38:35.542Z] ---> Running in fac45b18af84 [2022-04-26T15:38:35.542Z] Removing intermediate container fac45b18af84 [2022-04-26T15:38:35.542Z] ---> 78e4f235caed [2022-04-26T15:38:35.542Z] Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} [2022-04-26T15:38:35.542Z] ---> Running in 580c72364225 [2022-04-26T15:38:35.542Z] Removing intermediate container 580c72364225 [2022-04-26T15:38:35.542Z] ---> c239ee0064db [2022-04-26T15:38:35.542Z] Step 16/25 : RUN apk add --update --no-cache zeromq dumb-init [2022-04-26T15:38:35.542Z] ---> Running in 5ab1bc2d9bf9 [2022-04-26T15:38:35.542Z] fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz [2022-04-26T15:38:35.542Z] fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz [2022-04-26T15:38:35.542Z] (1/6) Installing dumb-init (1.2.5-r1) [2022-04-26T15:38:35.542Z] (2/6) Installing libgcc (10.3.1_git20210424-r2) [2022-04-26T15:38:35.542Z] (3/6) Installing libsodium (1.0.18-r0) [2022-04-26T15:38:35.542Z] (4/6) Installing libstdc++ (10.3.1_git20210424-r2) [2022-04-26T15:38:35.542Z] (5/6) Installing libzmq (4.3.4-r0) [2022-04-26T15:38:35.542Z] (6/6) Installing zeromq (4.3.4-r0) [2022-04-26T15:38:35.542Z] Executing busybox-1.33.1-r7.trigger [2022-04-26T15:38:35.542Z] OK: 8 MiB in 20 packages [2022-04-26T15:38:35.542Z] Removing intermediate container 5ab1bc2d9bf9 [2022-04-26T15:38:35.542Z] ---> 94649b4d82f6 [2022-04-26T15:38:35.542Z] Step 17/25 : COPY --from=builder /device-rest-go/cmd / [2022-04-26T15:38:35.542Z] ---> 7c0e983b916b [2022-04-26T15:38:35.542Z] Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / [2022-04-26T15:38:35.542Z] ---> 3e2cfab0edff [2022-04-26T15:38:35.542Z] Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / [2022-04-26T15:38:35.542Z] ---> 22889bfd089f [2022-04-26T15:38:35.542Z] Step 20/25 : EXPOSE 59986 [2022-04-26T15:38:35.542Z] ---> Running in 4d666fb104a9 [2022-04-26T15:38:35.542Z] Removing intermediate container 4d666fb104a9 [2022-04-26T15:38:35.542Z] ---> 123fe93009b3 [2022-04-26T15:38:35.542Z] Step 21/25 : ENTRYPOINT ["/device-rest"] [2022-04-26T15:38:35.542Z] ---> Running in 37ff583df804 [2022-04-26T15:38:35.542Z] Removing intermediate container 37ff583df804 [2022-04-26T15:38:35.542Z] ---> b16d6447a56c [2022-04-26T15:38:35.542Z] Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--confdir=/res", "--registry"] [2022-04-26T15:38:35.542Z] ---> Running in 5ee1428127fb [2022-04-26T15:38:35.542Z] Removing intermediate container 5ee1428127fb [2022-04-26T15:38:35.542Z] ---> 99e1a1479453 [2022-04-26T15:38:35.542Z] Step 23/25 : LABEL arch=amd64 [2022-04-26T15:38:35.802Z] ---> Running in 0e0b46151b95 [2022-04-26T15:38:35.802Z] Removing intermediate container 0e0b46151b95 [2022-04-26T15:38:35.802Z] ---> b44307576ec7 [2022-04-26T15:38:35.802Z] Step 24/25 : LABEL git_sha=b5c3ad01f67977970fed420537dc3b570bb51b0a [2022-04-26T15:38:35.802Z] ---> Running in 26c6e3bf10e0 [2022-04-26T15:38:35.802Z] Removing intermediate container 26c6e3bf10e0 [2022-04-26T15:38:35.802Z] ---> 0e7cff7b8650 [2022-04-26T15:38:35.802Z] Step 25/25 : LABEL version=2.2.0-dev.12 [2022-04-26T15:38:36.062Z] ---> Running in cd2589c619fc [2022-04-26T15:38:36.062Z] Removing intermediate container cd2589c619fc [2022-04-26T15:38:36.062Z] ---> 3bf4fe8cfcff [2022-04-26T15:38:36.062Z] [Warning] One or more build-args [ARCH] were not consumed [2022-04-26T15:38:36.062Z] Successfully built 3bf4fe8cfcff [2022-04-26T15:38:36.062Z] Successfully tagged device-rest:latest [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Docker Push) [Pipeline] script [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider [2022-04-26T15:38:36.142Z] provisioning config files... [2022-04-26T15:38:36.152Z] copy managed file [device-rest-go-settings] to file:/w/workspace/edgexfoundry_device-rest-go_main@tmp/config7832229835250380841tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh [2022-04-26T15:38:36.457Z] ---> docker-login.sh [2022-04-26T15:38:36.457Z] nexus3.edgexfoundry.org:10001 [2022-04-26T15:38:36.457Z] WARNING! Using --password via the CLI is insecure. Use --password-stdin. [2022-04-26T15:38:36.457Z] WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. [2022-04-26T15:38:36.457Z] Configure a credential helper to remove this warning. See [2022-04-26T15:38:36.457Z] https://docs.docker.com/engine/reference/commandline/login/#credentials-store [2022-04-26T15:38:36.457Z] [2022-04-26T15:38:36.457Z] Login Succeeded [2022-04-26T15:38:36.457Z] nexus3.edgexfoundry.org:10002 [2022-04-26T15:38:36.457Z] WARNING! Using --password via the CLI is insecure. Use --password-stdin. [2022-04-26T15:38:36.722Z] WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. [2022-04-26T15:38:36.722Z] Configure a credential helper to remove this warning. See [2022-04-26T15:38:36.722Z] https://docs.docker.com/engine/reference/commandline/login/#credentials-store [2022-04-26T15:38:36.722Z] [2022-04-26T15:38:36.722Z] Login Succeeded [2022-04-26T15:38:36.722Z] nexus3.edgexfoundry.org:10003 [2022-04-26T15:38:36.722Z] WARNING! Using --password via the CLI is insecure. Use --password-stdin. [2022-04-26T15:38:36.722Z] WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. [2022-04-26T15:38:36.722Z] Configure a credential helper to remove this warning. See [2022-04-26T15:38:36.722Z] https://docs.docker.com/engine/reference/commandline/login/#credentials-store [2022-04-26T15:38:36.722Z] [2022-04-26T15:38:36.722Z] Login Succeeded [2022-04-26T15:38:36.722Z] nexus3.edgexfoundry.org:10004 [2022-04-26T15:38:36.722Z] WARNING! Using --password via the CLI is insecure. Use --password-stdin. [2022-04-26T15:38:36.983Z] WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. [2022-04-26T15:38:36.983Z] Configure a credential helper to remove this warning. See [2022-04-26T15:38:36.983Z] https://docs.docker.com/engine/reference/commandline/login/#credentials-store [2022-04-26T15:38:36.983Z] [2022-04-26T15:38:36.983Z] Login Succeeded [2022-04-26T15:38:36.983Z] docker.io [2022-04-26T15:38:36.983Z] WARNING! Using --password via the CLI is insecure. Use --password-stdin. [2022-04-26T15:38:37.246Z] WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. [2022-04-26T15:38:37.246Z] Configure a credential helper to remove this warning. See [2022-04-26T15:38:37.246Z] https://docs.docker.com/engine/reference/commandline/login/#credentials-store [2022-04-26T15:38:37.246Z] [2022-04-26T15:38:37.246Z] Login Succeeded [2022-04-26T15:38:37.246Z] ---> docker-login.sh ends [Pipeline] } [2022-04-26T15:38:37.254Z] Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] echo [2022-04-26T15:38:37.282Z] [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo [2022-04-26T15:38:37.298Z] [edgeXDocker.push] Tagging docker image device-rest with the following tags: [2022-04-26T15:38:37.298Z] b5c3ad01f67977970fed420537dc3b570bb51b0a [2022-04-26T15:38:37.298Z] latest [2022-04-26T15:38:37.298Z] 2.2.0-dev.12 [2022-04-26T15:38:37.298Z] b5c3ad01f67977970fed420537dc3b570bb51b0a-2.2.0-dev.12 [2022-04-26T15:38:37.298Z] main [2022-04-26T15:38:37.298Z] ===================================================== [Pipeline] withEnv [Pipeline] { [Pipeline] withDockerRegistry [Pipeline] { [Pipeline] isUnix [Pipeline] sh [2022-04-26T15:38:37.606Z] + docker tag device-rest nexus3.edgexfoundry.org:10004/device-rest:b5c3ad01f67977970fed420537dc3b570bb51b0a [Pipeline] isUnix [Pipeline] sh [2022-04-26T15:38:37.896Z] + docker push nexus3.edgexfoundry.org:10004/device-rest:b5c3ad01f67977970fed420537dc3b570bb51b0a [2022-04-26T15:38:37.896Z] The push refers to repository [nexus3.edgexfoundry.org:10004/device-rest] [2022-04-26T15:38:37.896Z] 45b9f130f783: Preparing [2022-04-26T15:38:37.896Z] 5dfb8f3df056: Preparing [2022-04-26T15:38:37.896Z] 91d0abe90a94: Preparing [2022-04-26T15:38:37.896Z] 29f47de87893: Preparing [2022-04-26T15:38:37.896Z] b541d28bf3b4: Preparing [2022-04-26T15:38:37.896Z] b541d28bf3b4: Layer already exists [2022-04-26T15:38:37.896Z] 45b9f130f783: Pushed [2022-04-26T15:38:37.896Z] 5dfb8f3df056: Pushed [2022-04-26T15:38:38.156Z] 29f47de87893: Pushed [2022-04-26T15:38:40.720Z] 91d0abe90a94: Pushed [2022-04-26T15:38:40.720Z] b5c3ad01f67977970fed420537dc3b570bb51b0a: digest: sha256:06662d0c7e61b8a0c88c6a516bb3dc12d4d103ee2c204d382129ba2f55b09db9 size: 1367 [Pipeline] isUnix [Pipeline] sh [2022-04-26T15:38:41.018Z] + docker tag device-rest nexus3.edgexfoundry.org:10004/device-rest:latest [Pipeline] isUnix [Pipeline] sh [2022-04-26T15:38:41.314Z] + docker push nexus3.edgexfoundry.org:10004/device-rest:latest [2022-04-26T15:38:41.315Z] The push refers to repository [nexus3.edgexfoundry.org:10004/device-rest] [2022-04-26T15:38:41.315Z] 45b9f130f783: Preparing [2022-04-26T15:38:41.315Z] 5dfb8f3df056: Preparing [2022-04-26T15:38:41.315Z] 91d0abe90a94: Preparing [2022-04-26T15:38:41.315Z] 29f47de87893: Preparing [2022-04-26T15:38:41.315Z] b541d28bf3b4: Preparing [2022-04-26T15:38:41.315Z] 45b9f130f783: Layer already exists [2022-04-26T15:38:41.315Z] 29f47de87893: Layer already exists [2022-04-26T15:38:41.315Z] 5dfb8f3df056: Layer already exists [2022-04-26T15:38:41.315Z] 91d0abe90a94: Layer already exists [2022-04-26T15:38:41.315Z] b541d28bf3b4: Layer already exists [2022-04-26T15:38:41.315Z] latest: digest: sha256:06662d0c7e61b8a0c88c6a516bb3dc12d4d103ee2c204d382129ba2f55b09db9 size: 1367 [Pipeline] isUnix [Pipeline] sh [2022-04-26T15:38:41.614Z] + docker tag device-rest nexus3.edgexfoundry.org:10004/device-rest:2.2.0-dev.12 [Pipeline] isUnix [Pipeline] sh [2022-04-26T15:38:41.910Z] + docker push nexus3.edgexfoundry.org:10004/device-rest:2.2.0-dev.12 [2022-04-26T15:38:41.911Z] The push refers to repository [nexus3.edgexfoundry.org:10004/device-rest] [2022-04-26T15:38:41.911Z] 45b9f130f783: Preparing [2022-04-26T15:38:41.911Z] 5dfb8f3df056: Preparing [2022-04-26T15:38:41.911Z] 91d0abe90a94: Preparing [2022-04-26T15:38:41.911Z] 29f47de87893: Preparing [2022-04-26T15:38:41.911Z] b541d28bf3b4: Preparing [2022-04-26T15:38:41.911Z] b541d28bf3b4: Layer already exists [2022-04-26T15:38:41.911Z] 91d0abe90a94: Layer already exists [2022-04-26T15:38:41.911Z] 29f47de87893: Layer already exists [2022-04-26T15:38:41.911Z] 5dfb8f3df056: Layer already exists [2022-04-26T15:38:41.911Z] 45b9f130f783: Layer already exists [2022-04-26T15:38:41.911Z] 2.2.0-dev.12: digest: sha256:06662d0c7e61b8a0c88c6a516bb3dc12d4d103ee2c204d382129ba2f55b09db9 size: 1367 [Pipeline] isUnix [Pipeline] sh [2022-04-26T15:38:42.217Z] + docker tag device-rest nexus3.edgexfoundry.org:10004/device-rest:b5c3ad01f67977970fed420537dc3b570bb51b0a-2.2.0-dev.12 [Pipeline] isUnix [Pipeline] sh [2022-04-26T15:38:42.511Z] + docker push nexus3.edgexfoundry.org:10004/device-rest:b5c3ad01f67977970fed420537dc3b570bb51b0a-2.2.0-dev.12 [2022-04-26T15:38:42.511Z] The push refers to repository [nexus3.edgexfoundry.org:10004/device-rest] [2022-04-26T15:38:42.511Z] 45b9f130f783: Preparing [2022-04-26T15:38:42.511Z] 5dfb8f3df056: Preparing [2022-04-26T15:38:42.511Z] 91d0abe90a94: Preparing [2022-04-26T15:38:42.511Z] 29f47de87893: Preparing [2022-04-26T15:38:42.511Z] b541d28bf3b4: Preparing [2022-04-26T15:38:42.511Z] 29f47de87893: Layer already exists [2022-04-26T15:38:42.511Z] 5dfb8f3df056: Layer already exists [2022-04-26T15:38:42.511Z] 45b9f130f783: Layer already exists [2022-04-26T15:38:42.511Z] b541d28bf3b4: Layer already exists [2022-04-26T15:38:42.511Z] 91d0abe90a94: Layer already exists [2022-04-26T15:38:42.511Z] b5c3ad01f67977970fed420537dc3b570bb51b0a-2.2.0-dev.12: digest: sha256:06662d0c7e61b8a0c88c6a516bb3dc12d4d103ee2c204d382129ba2f55b09db9 size: 1367 [Pipeline] isUnix [Pipeline] sh [2022-04-26T15:38:42.813Z] + docker tag device-rest nexus3.edgexfoundry.org:10004/device-rest:main [Pipeline] isUnix [Pipeline] sh [2022-04-26T15:38:43.109Z] + docker push nexus3.edgexfoundry.org:10004/device-rest:main [2022-04-26T15:38:43.109Z] The push refers to repository [nexus3.edgexfoundry.org:10004/device-rest] [2022-04-26T15:38:43.109Z] 45b9f130f783: Preparing [2022-04-26T15:38:43.109Z] 5dfb8f3df056: Preparing [2022-04-26T15:38:43.109Z] 91d0abe90a94: Preparing [2022-04-26T15:38:43.109Z] 29f47de87893: Preparing [2022-04-26T15:38:43.109Z] b541d28bf3b4: Preparing [2022-04-26T15:38:43.109Z] 91d0abe90a94: Layer already exists [2022-04-26T15:38:43.109Z] 29f47de87893: Layer already exists [2022-04-26T15:38:43.109Z] 45b9f130f783: Layer already exists [2022-04-26T15:38:43.109Z] 5dfb8f3df056: Layer already exists [2022-04-26T15:38:43.109Z] b541d28bf3b4: Layer already exists [2022-04-26T15:38:43.109Z] main: digest: sha256:06662d0c7e61b8a0c88c6a516bb3dc12d4d103ee2c204d382129ba2f55b09db9 size: 1367 [Pipeline] } [Pipeline] // withDockerRegistry [Pipeline] } [Pipeline] // withEnv [Pipeline] echo [2022-04-26T15:38:43.153Z] ===================================================== [Pipeline] echo [2022-04-26T15:38:43.163Z] taggedImages: [2022-04-26T15:38:43.163Z] - nexus3.edgexfoundry.org:10004/device-rest:b5c3ad01f67977970fed420537dc3b570bb51b0a [2022-04-26T15:38:43.163Z] - nexus3.edgexfoundry.org:10004/device-rest:latest [2022-04-26T15:38:43.163Z] - nexus3.edgexfoundry.org:10004/device-rest:2.2.0-dev.12 [2022-04-26T15:38:43.163Z] - nexus3.edgexfoundry.org:10004/device-rest:b5c3ad01f67977970fed420537dc3b570bb51b0a-2.2.0-dev.12 [2022-04-26T15:38:43.163Z] - nexus3.edgexfoundry.org:10004/device-rest:main [Pipeline] } [Pipeline] // script [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 [2022-04-26T15:38:43.518Z] + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [2022-04-26T15:38:43.518Z] [2022-04-26T15:38:43.518Z] Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] sh [2022-04-26T15:38:43.824Z] + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [2022-04-26T15:38:43.824Z] latest: Pulling from edgex-lftools-log-publisher [2022-04-26T15:38:43.824Z] 5eb5b503b376: Pulling fs layer [2022-04-26T15:38:43.824Z] 5c69ac0246d0: Pulling fs layer [2022-04-26T15:38:43.824Z] ec43610c2a17: Pulling fs layer [2022-04-26T15:38:43.824Z] 3a2ae6a8a46f: Pulling fs layer [2022-04-26T15:38:43.824Z] 33b1e0a273af: Pulling fs layer [2022-04-26T15:38:43.824Z] 5d3b04190fa2: Pulling fs layer [2022-04-26T15:38:43.824Z] 2f39f015ded8: Pulling fs layer [2022-04-26T15:38:43.824Z] 5d3b04190fa2: Waiting [2022-04-26T15:38:43.824Z] 33b1e0a273af: Waiting [2022-04-26T15:38:43.824Z] 2f39f015ded8: Waiting [2022-04-26T15:38:43.824Z] 3a2ae6a8a46f: Waiting [2022-04-26T15:38:43.824Z] 5c69ac0246d0: Download complete [2022-04-26T15:38:43.824Z] 3a2ae6a8a46f: Download complete [2022-04-26T15:38:43.824Z] 33b1e0a273af: Download complete [2022-04-26T15:38:43.824Z] 5d3b04190fa2: Download complete [2022-04-26T15:38:43.824Z] ec43610c2a17: Verifying Checksum [2022-04-26T15:38:43.824Z] ec43610c2a17: Download complete [2022-04-26T15:38:44.083Z] 5eb5b503b376: Verifying Checksum [2022-04-26T15:38:44.083Z] 5eb5b503b376: Download complete [2022-04-26T15:38:44.652Z] 2f39f015ded8: Download complete [2022-04-26T15:38:45.231Z] 5eb5b503b376: Pull complete [2022-04-26T15:38:45.491Z] 5c69ac0246d0: Pull complete [2022-04-26T15:38:45.752Z] ec43610c2a17: Pull complete [2022-04-26T15:38:46.011Z] 3a2ae6a8a46f: Pull complete [2022-04-26T15:38:46.272Z] 33b1e0a273af: Pull complete [2022-04-26T15:38:46.272Z] 5d3b04190fa2: Pull complete [2022-04-26T15:38:50.547Z] 2f39f015ded8: Pull complete [2022-04-26T15:38:50.547Z] Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 [2022-04-26T15:38:50.547Z] Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [2022-04-26T15:38:50.547Z] nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] withDockerContainer [2022-04-26T15:38:50.611Z] prd-ubuntu20.04-docker-8c-8g-23618 does not seem to be running inside a container [2022-04-26T15:38:50.651Z] $ 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/edgexfoundry_device-rest-go_main -v /w/workspace/edgexfoundry_device-rest-go_main:/w/workspace/edgexfoundry_device-rest-go_main:rw,z -v /w/workspace/edgexfoundry_device-rest-go_main@tmp:/w/workspace/edgexfoundry_device-rest-go_main@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 ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat [2022-04-26T15:38:52.665Z] $ docker top cf71d79dd0c7011c7673f216e60633b125242e0a4748b57c9e31b80176316d6d -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh [2022-04-26T15:38:53.060Z] ---> job-cost.sh [2022-04-26T15:38:53.060Z] lf-activate-venv: SKIPPING [2022-04-26T15:38:53.060Z] INFO: No Stack... [2022-04-26T15:38:53.320Z] INFO: Retrieving Pricing Info for: v3-standard-8 [2022-04-26T15:38:53.890Z] INFO: Archiving Costs [Pipeline] sh [2022-04-26T15:38:54.184Z] + cat /w/workspace/edgexfoundry_device-rest-go_main/archives/cost.csv [2022-04-26T15:38:54.185Z] + cut -d, -f6 [Pipeline] lock [2022-04-26T15:38:54.200Z] Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-main-33-stack-cost] [2022-04-26T15:38:54.205Z] Resource [jenkins-edgexfoundry-device-rest-go-main-33-stack-cost] did not exist. Created. [2022-04-26T15:38:54.205Z] Lock acquired on [jenkins-edgexfoundry-device-rest-go-main-33-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh [2022-04-26T15:38:54.521Z] + echo total: 0.2199999988079071 [Pipeline] stash [2022-04-26T15:38:54.546Z] Stashed 1 file(s) [Pipeline] } [2022-04-26T15:38:54.556Z] Lock released on resource [jenkins-edgexfoundry-device-rest-go-main-33-stack-cost] [Pipeline] // lock [Pipeline] } [2022-04-26T15:38:54.581Z] $ docker stop --time=1 cf71d79dd0c7011c7673f216e60633b125242e0a4748b57c9e31b80176316d6d [2022-04-26T15:38:55.781Z] $ docker rm -f cf71d79dd0c7011c7673f216e60633b125242e0a4748b57c9e31b80176316d6d [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } [2022-04-26T15:40:46.148Z] Running on prd-ubuntu20.04-docker-arm64-4c-16g-23622 in /w/workspace/edgexfoundry_device-rest-go_main [Pipeline] { [Pipeline] ws [2022-04-26T15:40:46.165Z] Running in /w/workspace/device-rest-go/33 [Pipeline] { [Pipeline] checkout [2022-04-26T15:40:46.520Z] The recommended git tool is: git [2022-04-26T15:40:53.716Z] using credential edgex-jenkins-ssh [2022-04-26T15:40:53.740Z] Cloning the remote Git repository [2022-04-26T15:40:53.812Z] Cloning repository git@github.com:edgexfoundry/device-rest-go.git [2022-04-26T15:40:53.902Z] > git init /w/workspace/device-rest-go/33 # timeout=10 [2022-04-26T15:40:53.989Z] Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git [2022-04-26T15:40:53.990Z] > git --version # timeout=10 [2022-04-26T15:40:54.013Z] > git --version # 'git version 2.25.1' [2022-04-26T15:40:54.015Z] using GIT_SSH to set credentials SSH Credentials for GitHub [2022-04-26T15:40:54.127Z] > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 [2022-04-26T15:40:56.116Z] Avoid second fetch [2022-04-26T15:40:56.117Z] Checking out Revision b5c3ad01f67977970fed420537dc3b570bb51b0a (main) [2022-04-26T15:40:56.064Z] > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 [2022-04-26T15:40:56.089Z] > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 [2022-04-26T15:40:56.149Z] > git config core.sparsecheckout # timeout=10 [2022-04-26T15:40:56.169Z] > git checkout -f b5c3ad01f67977970fed420537dc3b570bb51b0a # timeout=10 [2022-04-26T15:41:00.565Z] Commit message: "Merge pull request #177 from MonicaisHer/EDGEX-424-integrate-env-var-injection" [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh [2022-04-26T15:41:01.464Z] + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json [2022-04-26T15:41:01.464Z] % Total % Received % Xferd Average Speed Time Time Time Current [2022-04-26T15:41:01.464Z] Dload Upload Total Spent Left Speed [2022-04-26T15:41:01.464Z] 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 11843 100 11843 0 0 89719 0 --:--:-- --:--:-- --:--:-- 89719 [Pipeline] sh [2022-04-26T15:41:02.067Z] + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh [2022-04-26T15:41:02.428Z] + + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json [2022-04-26T15:41:02.428Z] sudo tee /etc/docker/daemon.new [2022-04-26T15:41:02.428Z] { [2022-04-26T15:41:02.428Z] "registry-mirrors": [ [2022-04-26T15:41:02.428Z] "https://nexus3.edgexfoundry.org:10001" [2022-04-26T15:41:02.428Z] ], [2022-04-26T15:41:02.428Z] "bip": "10.250.0.254/24", [2022-04-26T15:41:02.428Z] "hosts": [ [2022-04-26T15:41:02.428Z] "tcp://0.0.0.0:5555", [2022-04-26T15:41:02.428Z] "unix:///var/run/docker.sock" [2022-04-26T15:41:02.428Z] ], [2022-04-26T15:41:02.428Z] "mtu": 1458, [2022-04-26T15:41:02.428Z] "selinux-enabled": true, [2022-04-26T15:41:02.428Z] "seccomp-profile": "/etc/docker/seccomp.json" [2022-04-26T15:41:02.428Z] } [Pipeline] sh [2022-04-26T15:41:02.800Z] + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh [2022-04-26T15:41:03.157Z] + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider [2022-04-26T15:41:21.674Z] provisioning config files... [2022-04-26T15:41:21.711Z] copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/33@tmp/config3378856052476597854tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh [2022-04-26T15:41:22.222Z] ---> docker-login.sh [2022-04-26T15:41:22.222Z] nexus3.edgexfoundry.org:10001 [2022-04-26T15:41:23.217Z] WARNING! Using --password via the CLI is insecure. Use --password-stdin. [2022-04-26T15:41:23.494Z] WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. [2022-04-26T15:41:23.494Z] Configure a credential helper to remove this warning. See [2022-04-26T15:41:23.494Z] https://docs.docker.com/engine/reference/commandline/login/#credentials-store [2022-04-26T15:41:23.494Z] [2022-04-26T15:41:23.494Z] Login Succeeded [2022-04-26T15:41:23.494Z] nexus3.edgexfoundry.org:10002 [2022-04-26T15:41:23.773Z] WARNING! Using --password via the CLI is insecure. Use --password-stdin. [2022-04-26T15:41:24.049Z] WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. [2022-04-26T15:41:24.049Z] Configure a credential helper to remove this warning. See [2022-04-26T15:41:24.049Z] https://docs.docker.com/engine/reference/commandline/login/#credentials-store [2022-04-26T15:41:24.049Z] [2022-04-26T15:41:24.049Z] Login Succeeded [2022-04-26T15:41:24.049Z] nexus3.edgexfoundry.org:10003 [2022-04-26T15:41:24.326Z] WARNING! Using --password via the CLI is insecure. Use --password-stdin. [2022-04-26T15:41:24.603Z] WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. [2022-04-26T15:41:24.603Z] Configure a credential helper to remove this warning. See [2022-04-26T15:41:24.603Z] https://docs.docker.com/engine/reference/commandline/login/#credentials-store [2022-04-26T15:41:24.603Z] [2022-04-26T15:41:24.603Z] Login Succeeded [2022-04-26T15:41:24.603Z] nexus3.edgexfoundry.org:10004 [2022-04-26T15:41:24.880Z] WARNING! Using --password via the CLI is insecure. Use --password-stdin. [2022-04-26T15:41:25.160Z] WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. [2022-04-26T15:41:25.160Z] Configure a credential helper to remove this warning. See [2022-04-26T15:41:25.160Z] https://docs.docker.com/engine/reference/commandline/login/#credentials-store [2022-04-26T15:41:25.160Z] [2022-04-26T15:41:25.160Z] Login Succeeded [2022-04-26T15:41:25.160Z] docker.io [2022-04-26T15:41:25.436Z] WARNING! Using --password via the CLI is insecure. Use --password-stdin. [2022-04-26T15:41:26.037Z] WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. [2022-04-26T15:41:26.037Z] Configure a credential helper to remove this warning. See [2022-04-26T15:41:26.037Z] https://docs.docker.com/engine/reference/commandline/login/#credentials-store [2022-04-26T15:41:26.037Z] [2022-04-26T15:41:26.037Z] Login Succeeded [2022-04-26T15:41:26.037Z] ---> docker-login.sh ends [Pipeline] } [2022-04-26T15:41:26.057Z] Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo [2022-04-26T15:41:26.584Z] [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo [2022-04-26T15:41:26.600Z] ========================================================= [2022-04-26T15:41:26.600Z] [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine] [2022-04-26T15:41:26.600Z] ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh [2022-04-26T15:41:26.979Z] + 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 . [2022-04-26T15:41:26.979Z] Sending build context to Docker daemon 129.5kB [2022-04-26T15:41:27.256Z] Step 1/12 : ARG BASE=golang:1.17-alpine3.15 [2022-04-26T15:41:27.256Z] Step 2/12 : FROM ${BASE} AS builder [2022-04-26T15:41:27.542Z] 1.17-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 [2022-04-26T15:41:27.542Z] 9b3977197b4f: Pulling fs layer [2022-04-26T15:41:27.542Z] 1a89e8eeedd5: Pulling fs layer [2022-04-26T15:41:27.542Z] 94645a83ff95: Pulling fs layer [2022-04-26T15:41:27.542Z] 3f3a8bcf1eab: Pulling fs layer [2022-04-26T15:41:27.542Z] 0c92f367c5e7: Pulling fs layer [2022-04-26T15:41:27.542Z] 3096ccb668a1: Pulling fs layer [2022-04-26T15:41:27.542Z] e8cf19c19ddd: Pulling fs layer [2022-04-26T15:41:27.542Z] a4caa8a26152: Pulling fs layer [2022-04-26T15:41:27.542Z] 3096ccb668a1: Waiting [2022-04-26T15:41:27.542Z] e8cf19c19ddd: Waiting [2022-04-26T15:41:27.542Z] a4caa8a26152: Waiting [2022-04-26T15:41:27.542Z] 3f3a8bcf1eab: Waiting [2022-04-26T15:41:27.542Z] 0c92f367c5e7: Waiting [2022-04-26T15:41:27.542Z] 94645a83ff95: Verifying Checksum [2022-04-26T15:41:27.542Z] 94645a83ff95: Download complete [2022-04-26T15:41:27.542Z] 1a89e8eeedd5: Download complete [2022-04-26T15:41:27.542Z] 0c92f367c5e7: Download complete [2022-04-26T15:41:27.542Z] 3096ccb668a1: Verifying Checksum [2022-04-26T15:41:27.542Z] 3096ccb668a1: Download complete [2022-04-26T15:41:27.542Z] 9b3977197b4f: Download complete [2022-04-26T15:41:27.542Z] e8cf19c19ddd: Verifying Checksum [2022-04-26T15:41:27.542Z] e8cf19c19ddd: Download complete [2022-04-26T15:41:28.553Z] 9b3977197b4f: Pull complete [2022-04-26T15:41:29.165Z] 1a89e8eeedd5: Pull complete [2022-04-26T15:41:29.442Z] 94645a83ff95: Pull complete [2022-04-26T15:41:30.050Z] a4caa8a26152: Verifying Checksum [2022-04-26T15:41:30.050Z] a4caa8a26152: Download complete [2022-04-26T15:41:30.330Z] 3f3a8bcf1eab: Verifying Checksum [2022-04-26T15:41:30.330Z] 3f3a8bcf1eab: Download complete [2022-04-26T15:41:42.797Z] 3f3a8bcf1eab: Pull complete [2022-04-26T15:41:43.074Z] 0c92f367c5e7: Pull complete [2022-04-26T15:41:43.351Z] 3096ccb668a1: Pull complete [2022-04-26T15:41:43.627Z] e8cf19c19ddd: Pull complete [2022-04-26T15:41:50.433Z] a4caa8a26152: Pull complete [2022-04-26T15:41:50.433Z] Digest: sha256:b3ad895ecde34a7521bb8912598475bc58d052e1c2c58d00df7f0fe54a102a46 [2022-04-26T15:41:50.433Z] Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine [2022-04-26T15:41:50.433Z] ---> 725f1c02e7f9 [2022-04-26T15:41:50.433Z] Step 3/12 : ARG MAKE='make build' [2022-04-26T15:41:50.714Z] ---> Running in e76b7c08aec0 [2022-04-26T15:41:51.332Z] Removing intermediate container e76b7c08aec0 [2022-04-26T15:41:51.333Z] ---> eadb2cc4877a [2022-04-26T15:41:51.333Z] Step 4/12 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" [2022-04-26T15:41:51.333Z] ---> Running in e2aa4a6ca2ea [2022-04-26T15:41:51.634Z] Removing intermediate container e2aa4a6ca2ea [2022-04-26T15:41:51.634Z] ---> 3515f81a6a24 [2022-04-26T15:41:51.634Z] Step 5/12 : ARG ALPINE_PKG_EXTRA="" [2022-04-26T15:41:51.922Z] ---> Running in 854a51ad25f7 [2022-04-26T15:41:52.208Z] Removing intermediate container 854a51ad25f7 [2022-04-26T15:41:52.208Z] ---> 95e2b22fa99c [2022-04-26T15:41:52.208Z] Step 6/12 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories [2022-04-26T15:41:52.484Z] ---> Running in 02877cbc7a78 [2022-04-26T15:41:55.169Z] Removing intermediate container 02877cbc7a78 [2022-04-26T15:41:55.170Z] ---> 4487ed37e539 [2022-04-26T15:41:55.170Z] Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} [2022-04-26T15:41:55.170Z] ---> Running in 7cfddb221a50 [2022-04-26T15:41:56.654Z] fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz [2022-04-26T15:41:57.651Z] fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz [2022-04-26T15:41:59.102Z] (1/4) Installing openssh-keygen (8.8_p1-r1) [2022-04-26T15:41:59.102Z] (2/4) Installing libedit (20210910.3.1-r0) [2022-04-26T15:41:59.102Z] (3/4) Installing openssh-client-common (8.8_p1-r1) [2022-04-26T15:41:59.378Z] (4/4) Installing openssh-client-default (8.8_p1-r1) [2022-04-26T15:41:59.378Z] Executing busybox-1.34.1-r3.trigger [2022-04-26T15:41:59.378Z] OK: 224 MiB in 56 packages [2022-04-26T15:42:00.395Z] Removing intermediate container 7cfddb221a50 [2022-04-26T15:42:00.395Z] ---> f4375f1d4364 [2022-04-26T15:42:00.395Z] Step 8/12 : WORKDIR /device-rest-go [2022-04-26T15:42:00.685Z] ---> Running in fe93bb47acf5 [2022-04-26T15:42:00.972Z] Removing intermediate container fe93bb47acf5 [2022-04-26T15:42:00.972Z] ---> 64e69f1caca3 [2022-04-26T15:42:00.972Z] Step 9/12 : COPY go.mod vendor* ./ [2022-04-26T15:42:01.575Z] ---> 5f529c80ad77 [2022-04-26T15:42:01.575Z] Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." [2022-04-26T15:42:01.575Z] ---> Running in feb91c17fb1d [2022-04-26T15:42:58.210Z] Removing intermediate container feb91c17fb1d [2022-04-26T15:42:58.210Z] ---> 0eb09f5ac6fc [2022-04-26T15:42:58.210Z] Step 11/12 : COPY . . [2022-04-26T15:42:58.210Z] ---> 114b3f2bccf5 [2022-04-26T15:42:58.210Z] Step 12/12 : RUN $MAKE [2022-04-26T15:42:58.210Z] ---> Running in c2ca9c18b7d5 [2022-04-26T15:42:58.210Z] noop [2022-04-26T15:42:58.210Z] Removing intermediate container c2ca9c18b7d5 [2022-04-26T15:42:58.210Z] ---> 075256593a16 [2022-04-26T15:42:58.210Z] Successfully built 075256593a16 [2022-04-26T15:42:58.210Z] Successfully tagged ci-base-image-arm64:latest [Pipeline] isUnix [Pipeline] sh [2022-04-26T15:42:58.584Z] + docker inspect -f . ci-base-image-arm64 [2022-04-26T15:42:58.584Z] . [Pipeline] withDockerContainer [2022-04-26T15:42:58.826Z] prd-ubuntu20.04-docker-arm64-4c-16g-23622 does not seem to be running inside a container [2022-04-26T15:42:58.926Z] $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/33 -v /w/workspace/device-rest-go/33:/w/workspace/device-rest-go/33:rw,z -v /w/workspace/device-rest-go/33@tmp:/w/workspace/device-rest-go/33@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 ******** ci-base-image-arm64 cat [2022-04-26T15:43:00.330Z] $ docker top 9197b4d8d28d6b04f33dd5e2d9e8f192267cb99e406db4ca1479362b852d5bc4 -eo pid,comm [Pipeline] { [Pipeline] sh [2022-04-26T15:43:01.320Z] + go version [2022-04-26T15:43:01.320Z] go version go1.17.6 linux/arm64 [Pipeline] } [2022-04-26T15:43:01.358Z] $ docker stop --time=1 9197b4d8d28d6b04f33dd5e2d9e8f192267cb99e406db4ca1479362b852d5bc4 [2022-04-26T15:43:03.097Z] $ docker rm -f 9197b4d8d28d6b04f33dd5e2d9e8f192267cb99e406db4ca1479362b852d5bc4 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh [2022-04-26T15:43:03.765Z] + docker inspect -f . ci-base-image-arm64 [2022-04-26T15:43:03.765Z] . [Pipeline] withDockerContainer [2022-04-26T15:43:04.041Z] prd-ubuntu20.04-docker-arm64-4c-16g-23622 does not seem to be running inside a container [2022-04-26T15:43:04.159Z] $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/33 -v /w/workspace/device-rest-go/33:/w/workspace/device-rest-go/33:rw,z -v /w/workspace/device-rest-go/33@tmp:/w/workspace/device-rest-go/33@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 ******** ci-base-image-arm64 cat [2022-04-26T15:43:05.693Z] $ docker top d0c885cd56f114d32d9241fb1ea577d44e3ff68f76b3edd6e73949fd9e8c7b8c -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh [2022-04-26T15:43:06.642Z] + make test [2022-04-26T15:43:06.642Z] CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out ./... [2022-04-26T15:43:08.646Z] ? github.com/edgexfoundry/device-rest-go [no test files] [2022-04-26T15:44:45.681Z] ? github.com/edgexfoundry/device-rest-go/cmd [no test files] [2022-04-26T15:44:45.681Z] ok github.com/edgexfoundry/device-rest-go/driver 0.085s coverage: 55.2% of statements [2022-04-26T15:44:45.681Z] WARNING: Linting skipped (not on x86_64 or linter not installed) [2022-04-26T15:44:45.681Z] CGO_ENABLED=1 GO111MODULE=on go vet ./... [2022-04-26T15:45:18.072Z] gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") [2022-04-26T15:45:18.072Z] [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] [2022-04-26T15:45:18.072Z] ./bin/test-attribution-txt.sh [Pipeline] echo [2022-04-26T15:45:20.720Z] [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } [2022-04-26T15:45:20.747Z] $ docker stop --time=1 d0c885cd56f114d32d9241fb1ea577d44e3ff68f76b3edd6e73949fd9e8c7b8c [2022-04-26T15:45:22.563Z] $ docker rm -f d0c885cd56f114d32d9241fb1ea577d44e3ff68f76b3edd6e73949fd9e8c7b8c [Pipeline] // withDockerContainer [Pipeline] sh [2022-04-26T15:45:23.522Z] + sudo chown -R jenkins:jenkins . [Pipeline] stash [2022-04-26T15:45:23.543Z] Warning: overwriting stash ‘coverage-report’ [2022-04-26T15:45:24.072Z] Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh [2022-04-26T15:45:24.484Z] + sudo chown -R jenkins:jenkins . [Pipeline] sh [2022-04-26T15:45:24.826Z] + ls -al . [2022-04-26T15:45:24.827Z] total 168 [2022-04-26T15:45:24.827Z] drwxrwxr-x 8 jenkins jenkins 4096 Apr 26 15:45 . [2022-04-26T15:45:24.827Z] drwxrwxr-x 4 jenkins jenkins 4096 Apr 26 15:40 .. [2022-04-26T15:45:24.827Z] -rw-rw-r-- 1 jenkins jenkins 151 Apr 26 15:40 .dockerignore [2022-04-26T15:45:24.827Z] drwxrwxr-x 8 jenkins jenkins 4096 Apr 26 15:41 .git [2022-04-26T15:45:24.827Z] drwxrwxr-x 3 jenkins jenkins 4096 Apr 26 15:40 .github [2022-04-26T15:45:24.827Z] -rw-rw-r-- 1 jenkins jenkins 329 Apr 26 15:40 .gitignore [2022-04-26T15:45:24.827Z] -rw-rw-r-- 1 jenkins jenkins 41 Apr 26 15:40 .golangci.yml [2022-04-26T15:45:24.827Z] -rw-rw-r-- 1 jenkins jenkins 8330 Apr 26 15:40 Attribution.txt [2022-04-26T15:45:24.827Z] -rw-rw-r-- 1 jenkins jenkins 7459 Apr 26 15:40 CHANGELOG.md [2022-04-26T15:45:24.827Z] -rw-rw-r-- 1 jenkins jenkins 1672 Apr 26 15:40 Dockerfile [2022-04-26T15:45:24.827Z] -rw-rw-r-- 1 jenkins jenkins 677 Apr 26 15:40 GOVERNANCE.md [2022-04-26T15:45:24.827Z] -rw-rw-r-- 1 jenkins jenkins 680 Apr 26 15:40 Jenkinsfile [2022-04-26T15:45:24.827Z] -rw-rw-r-- 1 jenkins jenkins 11340 Apr 26 15:40 LICENSE [2022-04-26T15:45:24.827Z] -rw-rw-r-- 1 jenkins jenkins 1964 Apr 26 15:40 Makefile [2022-04-26T15:45:24.827Z] -rw-rw-r-- 1 jenkins jenkins 620 Apr 26 15:40 OWNERS.md [2022-04-26T15:45:24.827Z] -rw-rw-r-- 1 jenkins jenkins 8246 Apr 26 15:40 README.md [2022-04-26T15:45:24.827Z] -rw-rw-r-- 1 jenkins jenkins 12 Apr 26 15:37 VERSION [2022-04-26T15:45:24.827Z] drwxrwxr-x 2 jenkins jenkins 4096 Apr 26 15:40 bin [2022-04-26T15:45:24.827Z] drwxrwxr-x 3 jenkins jenkins 4096 Apr 26 15:40 cmd [2022-04-26T15:45:24.827Z] -rw-r--r-- 1 jenkins jenkins 9355 Apr 26 15:44 coverage.out [2022-04-26T15:45:24.827Z] drwxrwxr-x 2 jenkins jenkins 4096 Apr 26 15:40 driver [2022-04-26T15:45:24.827Z] -rw-rw-r-- 1 jenkins jenkins 3240 Apr 26 15:40 go.mod [2022-04-26T15:45:24.827Z] -rw-rw-r-- 1 jenkins jenkins 34722 Apr 26 15:40 go.sum [2022-04-26T15:45:24.827Z] drwxrwxr-x 3 jenkins jenkins 4096 Apr 26 15:40 snap [2022-04-26T15:45:24.827Z] -rw-rw-r-- 1 jenkins jenkins 713 Apr 26 15:40 version.go [Pipeline] isUnix [Pipeline] sh [2022-04-26T15:45:25.182Z] + 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=b5c3ad01f67977970fed420537dc3b570bb51b0a --label arch=arm64 --label version=2.2.0-dev.12 . [2022-04-26T15:45:25.182Z] Sending build context to Docker daemon 139.8kB [2022-04-26T15:45:25.456Z] Step 1/25 : ARG BASE=golang:1.17-alpine3.15 [2022-04-26T15:45:25.456Z] Step 2/25 : FROM ${BASE} AS builder [2022-04-26T15:45:25.456Z] ---> 075256593a16 [2022-04-26T15:45:25.456Z] Step 3/25 : ARG MAKE='make build' [2022-04-26T15:45:25.732Z] ---> Running in fbe9853356c9 [2022-04-26T15:45:26.007Z] Removing intermediate container fbe9853356c9 [2022-04-26T15:45:26.007Z] ---> d2821e108aa4 [2022-04-26T15:45:26.007Z] Step 4/25 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" [2022-04-26T15:45:26.007Z] ---> Running in ad76dca74b69 [2022-04-26T15:45:26.615Z] Removing intermediate container ad76dca74b69 [2022-04-26T15:45:26.615Z] ---> 21fb064924e4 [2022-04-26T15:45:26.615Z] Step 5/25 : ARG ALPINE_PKG_EXTRA="" [2022-04-26T15:45:26.615Z] ---> Running in c12a2d526172 [2022-04-26T15:45:26.887Z] Removing intermediate container c12a2d526172 [2022-04-26T15:45:26.887Z] ---> 82d1e6a6a731 [2022-04-26T15:45:26.887Z] Step 6/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories [2022-04-26T15:45:26.887Z] ---> Running in e8af7e74710d [2022-04-26T15:45:28.867Z] Removing intermediate container e8af7e74710d [2022-04-26T15:45:28.867Z] ---> d3c87ec48341 [2022-04-26T15:45:28.867Z] Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} [2022-04-26T15:45:28.867Z] ---> Running in 9256deb41479 [2022-04-26T15:45:29.858Z] fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz [2022-04-26T15:45:30.845Z] fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz [2022-04-26T15:45:31.832Z] OK: 224 MiB in 56 packages [2022-04-26T15:45:32.823Z] Removing intermediate container 9256deb41479 [2022-04-26T15:45:32.823Z] ---> a457612d6b39 [2022-04-26T15:45:32.823Z] Step 8/25 : WORKDIR /device-rest-go [2022-04-26T15:45:32.823Z] ---> Running in d91afec6ee18 [2022-04-26T15:45:33.098Z] Removing intermediate container d91afec6ee18 [2022-04-26T15:45:33.098Z] ---> 842d7a8002d2 [2022-04-26T15:45:33.098Z] Step 9/25 : COPY go.mod vendor* ./ [2022-04-26T15:45:33.699Z] ---> a17e35552001 [2022-04-26T15:45:33.699Z] Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." [2022-04-26T15:45:33.979Z] ---> Running in dfa7c5d87836 [2022-04-26T15:45:35.976Z] Removing intermediate container dfa7c5d87836 [2022-04-26T15:45:35.976Z] ---> ed02fd83ccef [2022-04-26T15:45:35.976Z] Step 11/25 : COPY . . [2022-04-26T15:45:36.593Z] ---> 56ece6d8eb2d [2022-04-26T15:45:36.593Z] Step 12/25 : RUN $MAKE [2022-04-26T15:45:36.593Z] ---> Running in fc54aa755ed9 [2022-04-26T15:45:37.580Z] CGO_ENABLED=1 GO111MODULE=on go build -ldflags "-linkmode=external -X github.com/edgexfoundry/device-rest-go.Version=2.2.0-dev.12" -trimpath -mod=readonly -buildmode=pie -o cmd/device-rest ./cmd [2022-04-26T15:47:59.530Z] Removing intermediate container fc54aa755ed9 [2022-04-26T15:47:59.530Z] ---> 5b036bb26907 [2022-04-26T15:47:59.530Z] Step 13/25 : FROM alpine:3.14 [2022-04-26T15:47:59.530Z] 3.14: Pulling from library/alpine [2022-04-26T15:47:59.530Z] 455c02918c45: Pulling fs layer [2022-04-26T15:47:59.530Z] error pulling image configuration: Get "https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/ac/ac73e934f31119e38da975b98988cbd346af74f94455e6d465b9ce6c975762e7/data?verify=1650991075-9hZUxeS1KK09U617HNJwT4mLOFc%3D": dial tcp [2606:4700::6812:7919]:443: connect: network is unreachable [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Docker Push) Stage "Docker Push" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage Post stage [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh [2022-04-26T15:48:00.006Z] + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [2022-04-26T15:48:00.286Z] [2022-04-26T15:48:00.286Z] Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] sh [2022-04-26T15:48:00.656Z] + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [2022-04-26T15:48:00.934Z] arm64: Pulling from edgex-lftools-log-publisher [2022-04-26T15:48:00.934Z] 8998bd30e6a1: Pulling fs layer [2022-04-26T15:48:00.934Z] 04944245beec: Pulling fs layer [2022-04-26T15:48:00.934Z] 699f458cf7ca: Pulling fs layer [2022-04-26T15:48:00.934Z] 765212b225bb: Pulling fs layer [2022-04-26T15:48:00.934Z] f23df028b6ca: Pulling fs layer [2022-04-26T15:48:00.934Z] d65c8cfc05b1: Pulling fs layer [2022-04-26T15:48:00.934Z] 2437ff75d9bd: Pulling fs layer [2022-04-26T15:48:00.934Z] 765212b225bb: Waiting [2022-04-26T15:48:00.934Z] f23df028b6ca: Waiting [2022-04-26T15:48:00.934Z] 2437ff75d9bd: Waiting [2022-04-26T15:48:00.934Z] d65c8cfc05b1: Waiting [2022-04-26T15:48:00.934Z] 04944245beec: Verifying Checksum [2022-04-26T15:48:00.934Z] 04944245beec: Download complete [2022-04-26T15:48:00.934Z] 765212b225bb: Download complete [2022-04-26T15:48:00.934Z] f23df028b6ca: Verifying Checksum [2022-04-26T15:48:00.934Z] f23df028b6ca: Download complete [2022-04-26T15:48:01.215Z] d65c8cfc05b1: Verifying Checksum [2022-04-26T15:48:01.215Z] d65c8cfc05b1: Download complete [2022-04-26T15:48:01.215Z] 699f458cf7ca: Verifying Checksum [2022-04-26T15:48:01.215Z] 699f458cf7ca: Download complete [2022-04-26T15:48:01.824Z] 8998bd30e6a1: Verifying Checksum [2022-04-26T15:48:01.824Z] 8998bd30e6a1: Download complete [2022-04-26T15:48:04.480Z] 2437ff75d9bd: Verifying Checksum [2022-04-26T15:48:04.480Z] 2437ff75d9bd: Download complete [2022-04-26T15:48:06.464Z] 8998bd30e6a1: Pull complete [2022-04-26T15:48:06.739Z] 04944245beec: Pull complete [2022-04-26T15:48:08.187Z] 699f458cf7ca: Pull complete [2022-04-26T15:48:08.464Z] 765212b225bb: Pull complete [2022-04-26T15:48:09.461Z] f23df028b6ca: Pull complete [2022-04-26T15:48:09.736Z] d65c8cfc05b1: Pull complete [2022-04-26T15:48:24.896Z] 2437ff75d9bd: Pull complete [2022-04-26T15:48:24.896Z] Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da [2022-04-26T15:48:24.896Z] Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [2022-04-26T15:48:24.896Z] nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] withDockerContainer [2022-04-26T15:48:25.146Z] prd-ubuntu20.04-docker-arm64-4c-16g-23622 does not seem to be running inside a container [2022-04-26T15:48:25.253Z] $ 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/33 -v /w/workspace/device-rest-go/33:/w/workspace/device-rest-go/33:rw,z -v /w/workspace/device-rest-go/33@tmp:/w/workspace/device-rest-go/33@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat [2022-04-26T15:48:28.049Z] $ docker top 7105c2c478474ce6a5aa260049049351deab7d08e61daf5b762427ded528617e -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh [2022-04-26T15:48:28.958Z] ---> job-cost.sh [2022-04-26T15:48:28.958Z] lf-activate-venv: SKIPPING [2022-04-26T15:48:28.958Z] INFO: No Stack... [2022-04-26T15:48:29.558Z] INFO: Retrieving Pricing Info for: v3-standard-4 [2022-04-26T15:48:30.540Z] INFO: Archiving Costs [Pipeline] sh [2022-04-26T15:48:31.221Z] + cat /w/workspace/device-rest-go/33/archives/cost.csv [2022-04-26T15:48:31.221Z] + cut -d, -f6 [Pipeline] lock [2022-04-26T15:48:31.294Z] Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-main-33-stack-cost] [2022-04-26T15:48:31.302Z] Resource [jenkins-edgexfoundry-device-rest-go-main-33-stack-cost] did not exist. Created. [2022-04-26T15:48:31.302Z] Lock acquired on [jenkins-edgexfoundry-device-rest-go-main-33-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh [2022-04-26T15:48:32.004Z] /w/workspace/device-rest-go/33@tmp/durable-bb0d73aa/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh [2022-04-26T15:48:32.711Z] + echo total: 0.10999999940395355 [Pipeline] stash [2022-04-26T15:48:32.741Z] Warning: overwriting stash ‘stack-cost’ [2022-04-26T15:48:32.805Z] Stashed 1 file(s) [Pipeline] } [2022-04-26T15:48:32.812Z] Lock released on resource [jenkins-edgexfoundry-device-rest-go-main-33-stack-cost] [Pipeline] // lock [Pipeline] } [2022-04-26T15:48:32.850Z] $ docker stop --time=1 7105c2c478474ce6a5aa260049049351deab7d08e61daf5b762427ded528617e [2022-04-26T15:48:34.417Z] $ docker rm -f 7105c2c478474ce6a5aa260049049351deab7d08e61daf5b762427ded528617e [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // ws [Pipeline] } [Pipeline] // node [Pipeline] } [Pipeline] // stage [Pipeline] } [2022-04-26T15:48:34.758Z] Failed in branch arm64 [Pipeline] // parallel [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (CodeCov) Stage "CodeCov" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Snyk Dependency Scan) Stage "Snyk Dependency Scan" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Archive Prep) Stage "Archive Prep" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Publish Swagger) Stage "Publish Swagger" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Semver) Stage "Semver" skipped due to earlier failure(s) [Pipeline] stage [Pipeline] { (Tag) Stage "Semver" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Pre-Release Version) Stage "Semver" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Experimental Tag) Stage "Semver" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Stable (Named) Tag) Stage "Semver" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Declarative: Post Actions) [Pipeline] stage [Pipeline] { (LF Post Build Actions) [Pipeline] sh [2022-04-26T15:48:35.398Z] + [ -d /w/workspace/edgexfoundry_device-rest-go_main/archives ] [2022-04-26T15:48:35.398Z] + ls -al /w/workspace/edgexfoundry_device-rest-go_main/archives [2022-04-26T15:48:35.398Z] total 16 [2022-04-26T15:48:35.398Z] drwxr-xr-x 3 root root 4096 Apr 26 15:38 . [2022-04-26T15:48:35.398Z] drwxrwxr-x 10 jenkins jenkins 4096 Apr 26 15:38 .. [2022-04-26T15:48:35.398Z] drwxr-xr-x 2 root root 4096 Apr 26 15:38 cost [2022-04-26T15:48:35.398Z] -rw-r--r-- 1 root root 84 Apr 26 15:38 cost.csv [2022-04-26T15:48:35.398Z] + sudo chown -R jenkins:jenkins /w/workspace/edgexfoundry_device-rest-go_main/archives [2022-04-26T15:48:35.398Z] + ls -al /w/workspace/edgexfoundry_device-rest-go_main/archives [2022-04-26T15:48:35.398Z] total 16 [2022-04-26T15:48:35.398Z] drwxr-xr-x 3 jenkins jenkins 4096 Apr 26 15:38 . [2022-04-26T15:48:35.398Z] drwxrwxr-x 10 jenkins jenkins 4096 Apr 26 15:38 .. [2022-04-26T15:48:35.398Z] drwxr-xr-x 2 jenkins jenkins 4096 Apr 26 15:38 cost [2022-04-26T15:48:35.398Z] -rw-r--r-- 1 jenkins jenkins 84 Apr 26 15:38 cost.csv [Pipeline] libraryResource [Pipeline] sh [2022-04-26T15:48:35.698Z] ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh [2022-04-26T15:48:36.571Z] ---> package-listing.sh [2022-04-26T15:48:36.571Z] ++ facter osfamily [2022-04-26T15:48:36.571Z] ++ tr '[:upper:]' '[:lower:]' [2022-04-26T15:48:36.834Z] + OS_FAMILY=debian [2022-04-26T15:48:36.834Z] + workspace=/w/workspace/edgexfoundry_device-rest-go_main [2022-04-26T15:48:36.834Z] + START_PACKAGES=/tmp/packages_start.txt [2022-04-26T15:48:36.834Z] + END_PACKAGES=/tmp/packages_end.txt [2022-04-26T15:48:36.834Z] + DIFF_PACKAGES=/tmp/packages_diff.txt [2022-04-26T15:48:36.834Z] + PACKAGES=/tmp/packages_start.txt [2022-04-26T15:48:36.834Z] + '[' /w/workspace/edgexfoundry_device-rest-go_main ']' [2022-04-26T15:48:36.834Z] + PACKAGES=/tmp/packages_end.txt [2022-04-26T15:48:36.834Z] + case "${OS_FAMILY}" in [2022-04-26T15:48:36.834Z] + dpkg -l [2022-04-26T15:48:36.834Z] + grep '^ii' [2022-04-26T15:48:36.834Z] + '[' -f /tmp/packages_start.txt ']' [2022-04-26T15:48:36.834Z] + '[' -f /tmp/packages_end.txt ']' [2022-04-26T15:48:36.834Z] + diff /tmp/packages_start.txt /tmp/packages_end.txt [2022-04-26T15:48:36.834Z] + '[' /w/workspace/edgexfoundry_device-rest-go_main ']' [2022-04-26T15:48:36.834Z] + mkdir -p /w/workspace/edgexfoundry_device-rest-go_main/archives/ [2022-04-26T15:48:36.834Z] + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/edgexfoundry_device-rest-go_main/archives/ [Pipeline] echo [2022-04-26T15:48:36.845Z] 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/edgexfoundry_device-rest-go_main/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh [2022-04-26T15:48:37.134Z] + facter operatingsystem [Pipeline] isUnix [Pipeline] sh [2022-04-26T15:48:37.709Z] + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [2022-04-26T15:48:37.709Z] . [Pipeline] withDockerContainer [2022-04-26T15:48:37.786Z] prd-ubuntu20.04-docker-8c-8g-23618 does not seem to be running inside a container [2022-04-26T15:48:37.832Z] $ 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/edgexfoundry_device-rest-go_main/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/edgexfoundry_device-rest-go_main -v /w/workspace/edgexfoundry_device-rest-go_main:/w/workspace/edgexfoundry_device-rest-go_main:rw,z -v /w/workspace/edgexfoundry_device-rest-go_main@tmp:/w/workspace/edgexfoundry_device-rest-go_main@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat [2022-04-26T15:48:38.109Z] $ docker top cade08e4d503619aa3c49c11b6fd6ed90fa3ca76593beff838eee6d3acac7ca7 -eo pid,comm [Pipeline] { [Pipeline] sh [2022-04-26T15:48:38.465Z] + touch /tmp/pre-build-complete [Pipeline] sh [2022-04-26T15:48:38.762Z] + mkdir -p /var/log/sysstat [Pipeline] sh [2022-04-26T15:48:39.054Z] + ls /var/log/sa-host [2022-04-26T15:48:39.054Z] ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider [2022-04-26T15:48:39.145Z] provisioning config files... [2022-04-26T15:48:39.155Z] copy managed file [jenkins-log-archives-settings] to file:/w/workspace/edgexfoundry_device-rest-go_main@tmp/config3485491500117859935tmp [Pipeline] { [Pipeline] echo [2022-04-26T15:48:39.171Z] Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh [2022-04-26T15:48:39.458Z] ---> create-netrc.sh [Pipeline] } [2022-04-26T15:48:39.467Z] Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh [2022-04-26T15:48:39.802Z] ---> python-tools-install.sh [Pipeline] echo [2022-04-26T15:48:39.812Z] Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh [2022-04-26T15:48:40.101Z] ---> sudo-logs.sh [2022-04-26T15:48:40.101Z] Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo [2022-04-26T15:48:40.136Z] Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh [2022-04-26T15:48:40.426Z] ---> job-cost.sh [2022-04-26T15:48:40.426Z] lf-activate-venv: SKIPPING [2022-04-26T15:48:40.426Z] DEBUG: total: 0.2199999988079071 [2022-04-26T15:48:40.426Z] INFO: Retrieving Stack Cost... [2022-04-26T15:48:40.999Z] INFO: Retrieving Pricing Info for: v3-standard-8 [2022-04-26T15:48:41.261Z] INFO: Archiving Costs [Pipeline] echo [2022-04-26T15:48:41.277Z] Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh [2022-04-26T15:48:41.569Z] ---> logs-deploy.sh [2022-04-26T15:48:41.569Z] lf-activate-venv: SKIPPING [2022-04-26T15:48:41.569Z] INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/main/33 [2022-04-26T15:48:41.569Z] INFO: archiving workspace using pattern(s): [2022-04-26T15:48:42.510Z] Archives upload complete. [2022-04-26T15:48:42.510Z] INFO: archiving logs to Nexus