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 15:36:56 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 15:36:56 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 15:36:56 ========================================================= 15:36:56 EdgeX Global Pipelines Version Info 15:36:56 ========================================================= [Pipeline] libraryResource [Pipeline] sh 15:36:56 ------------------- 15:36:56 stable info: 15:36:56 ------------------- 15:36:56 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 15:36:56 Commit SHA: c72b16708d6eed9a08be464a432ce22db7d90667 15:36:56 Message: update stable to v1.0.221 15:36:57 ------------------- 15:36:57 experimental info: 15:36:57 ------------------- 15:36:57 Commited By: Emilio Reyes emilio.reyes@intel.com 15:36:57 Commit SHA: 0296cfd70f3001d69e24c2db393b493f66f700db 15:36:57 Message: update experimental to v1.0.225 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 15:36:57 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 15:36:57 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 15:36:57 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 15:36:57 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 15:36:57 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 15:36:57 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.17 [Pipeline] echo 15:36:57 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 15:36:57 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 15:36:57 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 15:36:57 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 15:36:57 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 15:36:57 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 15:36:57 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 15:36:57 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 15:36:57 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 15:36:57 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 15:36:57 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 15:36:57 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 15:36:57 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 15:36:57 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 15:36:57 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 15:36:57 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 15:36:57 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 15:36:57 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 15:36:57 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 15:36:57 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 15:36:57 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = main [Pipeline] echo 15:36:57 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = main [Pipeline] echo 15:36:57 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = main [Pipeline] echo 15:36:58 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = b5c3ad01f67977970fed420537dc3b570bb51b0a [Pipeline] echo 15:36:58 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = b5c3ad0 [Pipeline] echo 15:36:58 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 15:36:58 provisioning config files... 15:36:58 copy managed file [device-rest-go-settings] to file:/w/workspace/edgexfoundry_device-rest-go_main@tmp/config5328733210446202903tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 15:36:58 ---> docker-login.sh 15:36:58 nexus3.edgexfoundry.org:10001 15:36:58 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 15:36:58 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 15:36:58 Configure a credential helper to remove this warning. See 15:36:58 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 15:36:58 15:36:58 Login Succeeded 15:36:58 nexus3.edgexfoundry.org:10002 15:36:59 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 15:36:59 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 15:36:59 Configure a credential helper to remove this warning. See 15:36:59 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 15:36:59 15:36:59 Login Succeeded 15:36:59 nexus3.edgexfoundry.org:10003 15:36:59 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 15:36:59 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 15:36:59 Configure a credential helper to remove this warning. See 15:36:59 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 15:36:59 15:36:59 Login Succeeded 15:36:59 nexus3.edgexfoundry.org:10004 15:36:59 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 15:36:59 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 15:36:59 Configure a credential helper to remove this warning. See 15:36:59 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 15:36:59 15:36:59 Login Succeeded 15:36:59 docker.io 15:36:59 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 15:36:59 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 15:36:59 Configure a credential helper to remove this warning. See 15:36:59 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 15:36:59 15:36:59 Login Succeeded 15:36:59 ---> docker-login.sh ends [Pipeline] } 15:36:59 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 15:37:00 + git rev-list -1 --merges b5c3ad01f67977970fed420537dc3b570bb51b0a~1..b5c3ad01f67977970fed420537dc3b570bb51b0a [Pipeline] echo 15:37:00 -----------> git rev-list -1 --merges b5c3ad01f67977970fed420537dc3b570bb51b0a~1..b5c3ad01f67977970fed420537dc3b570bb51b0a b5c3ad01f67977970fed420537dc3b570bb51b0a 15:37:00 b5c3ad01f67977970fed420537dc3b570bb51b0a [false] [Pipeline] sh 15:37:00 + git log --format=format:%s -1 b5c3ad01f67977970fed420537dc3b570bb51b0a [Pipeline] echo 15:37:00 ========================================================= 15:37:00 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 15:37:00 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 15:37:01 + git log --format=format:%s -1 b5c3ad01f67977970fed420537dc3b570bb51b0a [Pipeline] echo 15:37:01 [semverPrep] GIT_COMMIT: b5c3ad01f67977970fed420537dc3b570bb51b0a, Commit Message: Merge pull request #177 from MonicaisHer/EDGEX-424-integrate-env-var-injection [Pipeline] echo 15:37:01 [semverPrep] This is not a build commit. [Pipeline] sh 15:37:01 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 15:37:01 + grep -v github /etc/ssh/ssh_known_hosts 15:37:01 + [ -e /tmp/ssh_known_hosts ] 15:37:01 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 15:37:01 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 15:37:01 + sudo tee -a /etc/ssh/ssh_known_hosts 15:37:01 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] sh 15:37:01 + docker inspect -f . nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 15:37:01 15:37:01 Error: No such object: nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] isUnix [Pipeline] sh 15:37:02 + docker pull nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 15:37:02 latest: Pulling from edgex-devops/git-semver 15:37:02 a0d0a0d46f8b: Pulling fs layer 15:37:02 3e5f54012d9b: Pulling fs layer 15:37:02 4c7163046ea9: Pulling fs layer 15:37:02 0c2d73faf560: Pulling fs layer 15:37:02 0c2d73faf560: Waiting 15:37:02 3e5f54012d9b: Verifying Checksum 15:37:02 3e5f54012d9b: Download complete 15:37:02 a0d0a0d46f8b: Verifying Checksum 15:37:02 a0d0a0d46f8b: Download complete 15:37:02 0c2d73faf560: Verifying Checksum 15:37:02 0c2d73faf560: Download complete 15:37:02 4c7163046ea9: Verifying Checksum 15:37:02 4c7163046ea9: Download complete 15:37:02 a0d0a0d46f8b: Pull complete 15:37:02 3e5f54012d9b: Pull complete 15:37:02 4c7163046ea9: Pull complete 15:37:02 0c2d73faf560: Pull complete 15:37:02 Digest: sha256:2751de6e655929dcbe46418c7769d9d992331b5b721eb968631a4166222929f9 15:37:03 Status: Downloaded newer image for nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 15:37:03 nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] withDockerContainer 15:37:03 prd-ubuntu20.04-docker-8c-8g-23618 does not seem to be running inside a container 15:37:03 $ 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 15:37:03 $ docker top f1bfd81405eb5cf0ca536172768e2b2f40958c72791080f0894b9873a349bf6f -eo pid,comm [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 15:37:04 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 15:37:04 [ssh-agent] Looking for ssh-agent implementation... 15:37:04 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 15:37:04 $ docker exec f1bfd81405eb5cf0ca536172768e2b2f40958c72791080f0894b9873a349bf6f ssh-agent 15:37:04 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXljBPOo/agent.14 15:37:04 SSH_AGENT_PID=20 15:37:04 Running ssh-add (command line suppressed) 15:37:04 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) 15:37:04 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 15:37:04 + git tag --points-at HEAD [Pipeline] } 15:37:04 $ docker exec --env ******** --env ******** f1bfd81405eb5cf0ca536172768e2b2f40958c72791080f0894b9873a349bf6f ssh-agent -k 15:37:04 unset SSH_AUTH_SOCK; 15:37:04 unset SSH_AGENT_PID; 15:37:04 echo Agent pid 20 killed; 15:37:04 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 15:37:04 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 15:37:04 [ssh-agent] Looking for ssh-agent implementation... 15:37:05 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 15:37:05 $ docker exec f1bfd81405eb5cf0ca536172768e2b2f40958c72791080f0894b9873a349bf6f ssh-agent 15:37:05 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXpoEmeB/agent.54 15:37:05 SSH_AGENT_PID=60 15:37:05 Running ssh-add (command line suppressed) 15:37:05 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) 15:37:05 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 15:37:05 + git semver init 15:37:05 # -> Open(): unable to determine branch for HEAD 15:37:05 # $GIT_DIR = /w/workspace/edgexfoundry_device-rest-go_main/.git 15:37:05 # $GIT_WORK_TREE = /w/workspace/edgexfoundry_device-rest-go_main 15:37:05 # $SEMVER_REMOTE_NAME = origin 15:37:05 # $SEMVER_USER_EMAIL = collab-it+edgex@linuxfoundation.org 15:37:05 # $SEMVER_USER_NAME = edgex-jenkins 15:37:05 # $SEMVER_BRANCH = main 15:37:05 # $SEMVER_TEMP = /tmp/semver-327699283 15:37:05 # git clone --branch semver git@github.com:edgexfoundry/device-rest-go.git $SEMVER_TEMP 15:37:07 # '/tmp/semver-327699283' -> '/w/workspace/edgexfoundry_device-rest-go_main/.semver' 15:37:07 # -> Force: false 15:37:07 # $SEMVER_DIR = /w/workspace/edgexfoundry_device-rest-go_main/.semver [Pipeline] } 15:37:07 $ docker exec --env ******** --env ******** f1bfd81405eb5cf0ca536172768e2b2f40958c72791080f0894b9873a349bf6f ssh-agent -k 15:37:07 unset SSH_AUTH_SOCK; 15:37:07 unset SSH_AGENT_PID; 15:37:07 echo Agent pid 60 killed; 15:37:07 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 15:37:07 + git semver [Pipeline] } 15:37:07 $ docker stop --time=1 f1bfd81405eb5cf0ca536172768e2b2f40958c72791080f0894b9873a349bf6f 15:37:08 $ docker rm -f f1bfd81405eb5cf0ca536172768e2b2f40958c72791080f0894b9873a349bf6f [Pipeline] // withDockerContainer [Pipeline] sh 15:37:09 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 15:37:09 Stashed 1 file(s) [Pipeline] echo 15:37:09 [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 15:37:09 provisioning config files... 15:37:09 copy managed file [device-rest-go-settings] to file:/w/workspace/edgexfoundry_device-rest-go_main@tmp/config4555241058823932216tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 15:37:10 ---> docker-login.sh 15:37:10 nexus3.edgexfoundry.org:10001 15:37:10 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 15:37:10 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 15:37:10 Configure a credential helper to remove this warning. See 15:37:10 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 15:37:10 15:37:10 Login Succeeded 15:37:10 nexus3.edgexfoundry.org:10002 15:37:10 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 15:37:10 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 15:37:10 Configure a credential helper to remove this warning. See 15:37:10 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 15:37:10 15:37:10 Login Succeeded 15:37:10 nexus3.edgexfoundry.org:10003 15:37:10 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 15:37:10 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 15:37:10 Configure a credential helper to remove this warning. See 15:37:10 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 15:37:10 15:37:10 Login Succeeded 15:37:10 nexus3.edgexfoundry.org:10004 15:37:10 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 15:37:10 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 15:37:10 Configure a credential helper to remove this warning. See 15:37:10 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 15:37:10 15:37:10 Login Succeeded 15:37:10 docker.io 15:37:10 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 15:37:10 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 15:37:10 Configure a credential helper to remove this warning. See 15:37:10 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 15:37:10 15:37:10 Login Succeeded 15:37:10 ---> docker-login.sh ends [Pipeline] } 15:37:10 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 15:37:10 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 15:37:10 ========================================================= 15:37:10 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine] 15:37:10 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 15:37:11 + 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 . 15:37:11 Sending build context to Docker daemon 10.57MB 15:37:11 Step 1/12 : ARG BASE=golang:1.17-alpine3.15 15:37:11 Step 2/12 : FROM ${BASE} AS builder 15:37:11 1.17-alpine: Pulling from edgex-devops/edgex-golang-base 15:37:11 59bf1c3509f3: Pulling fs layer 15:37:11 666ba61612fd: Pulling fs layer 15:37:11 8ed8ca486205: Pulling fs layer 15:37:11 4fe6c5a15a65: Pulling fs layer 15:37:11 22a0e8bec74d: Pulling fs layer 15:37:11 ca2b28591e48: Pulling fs layer 15:37:11 a51346096db8: Pulling fs layer 15:37:11 4fe6c5a15a65: Waiting 15:37:11 daebc70d1ce1: Pulling fs layer 15:37:11 0e18a0eac166: Pulling fs layer 15:37:11 22a0e8bec74d: Waiting 15:37:11 ca2b28591e48: Waiting 15:37:11 0e18a0eac166: Waiting 15:37:11 a51346096db8: Waiting 15:37:11 daebc70d1ce1: Waiting 15:37:11 8ed8ca486205: Verifying Checksum 15:37:11 8ed8ca486205: Download complete 15:37:11 666ba61612fd: Download complete 15:37:11 22a0e8bec74d: Verifying Checksum 15:37:11 22a0e8bec74d: Download complete 15:37:11 ca2b28591e48: Verifying Checksum 15:37:11 ca2b28591e48: Download complete 15:37:11 59bf1c3509f3: Verifying Checksum 15:37:11 59bf1c3509f3: Download complete 15:37:11 a51346096db8: Verifying Checksum 15:37:11 a51346096db8: Download complete 15:37:11 daebc70d1ce1: Verifying Checksum 15:37:11 daebc70d1ce1: Download complete 15:37:11 59bf1c3509f3: Pull complete 15:37:11 666ba61612fd: Pull complete 15:37:11 8ed8ca486205: Pull complete 15:37:12 0e18a0eac166: Verifying Checksum 15:37:12 0e18a0eac166: Download complete 15:37:12 4fe6c5a15a65: Verifying Checksum 15:37:12 4fe6c5a15a65: Download complete 15:37:16 4fe6c5a15a65: Pull complete 15:37:16 22a0e8bec74d: Pull complete 15:37:16 ca2b28591e48: Pull complete 15:37:16 a51346096db8: Pull complete 15:37:16 daebc70d1ce1: Pull complete 15:37:18 0e18a0eac166: Pull complete 15:37:18 Digest: sha256:5cf2d0a306c5171eb5b3008c4b83cc7b6044f1808c238cb17927cddb93576120 15:37:18 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine 15:37:18 ---> f018257e8ee9 15:37:18 Step 3/12 : ARG MAKE='make build' 15:37:20 ---> Running in adcc2633e07a 15:37:20 Removing intermediate container adcc2633e07a 15:37:20 ---> 0c69978fed09 15:37:20 Step 4/12 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 15:37:20 ---> Running in 87135745f037 15:37:20 Removing intermediate container 87135745f037 15:37:20 ---> 9fac8b01c545 15:37:20 Step 5/12 : ARG ALPINE_PKG_EXTRA="" 15:37:20 ---> Running in 67f55a9e2254 15:37:20 Removing intermediate container 67f55a9e2254 15:37:20 ---> e587cf80d4f3 15:37:20 Step 6/12 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 15:37:20 ---> Running in f58ad0f38a4f 15:37:21 Removing intermediate container f58ad0f38a4f 15:37:21 ---> 6724efa9ed45 15:37:21 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 15:37:21 ---> Running in 0a4de4e3b71a 15:37:21 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 15:37:22 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 15:37:22 (1/4) Installing openssh-keygen (8.8_p1-r1) 15:37:22 (2/4) Installing libedit (20210910.3.1-r0) 15:37:22 (3/4) Installing openssh-client-common (8.8_p1-r1) 15:37:22 (4/4) Installing openssh-client-default (8.8_p1-r1) 15:37:23 Executing busybox-1.34.1-r3.trigger 15:37:23 OK: 224 MiB in 56 packages 15:37:23 Removing intermediate container 0a4de4e3b71a 15:37:23 ---> 501215f58fa0 15:37:23 Step 8/12 : WORKDIR /device-rest-go 15:37:23 ---> Running in 852098abbe8e 15:37:24 Removing intermediate container 852098abbe8e 15:37:24 ---> 8a16c47443b1 15:37:24 Step 9/12 : COPY go.mod vendor* ./ 15:37:24 ---> a48f3fcc005c 15:37:24 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 15:37:24 ---> Running in b55b99751530 15:37:24 Still waiting to schedule task 15:37:24 Waiting for next available executor on ‘ubuntu20.04-docker-arm64-4c-16g’ 15:37:38 Removing intermediate container b55b99751530 15:37:38 ---> 8664a3331933 15:37:38 Step 11/12 : COPY . . 15:37:39 ---> 0ed7e748e06d 15:37:39 Step 12/12 : RUN $MAKE 15:37:39 ---> Running in 6600e8fe3952 15:37:39 noop 15:37:40 Removing intermediate container 6600e8fe3952 15:37:40 ---> 5c8b79067139 15:37:40 Successfully built 5c8b79067139 15:37:40 Successfully tagged ci-base-image-x86_64:latest [Pipeline] isUnix [Pipeline] sh 15:37:40 + docker inspect -f . ci-base-image-x86_64 15:37:40 . [Pipeline] withDockerContainer 15:37:41 prd-ubuntu20.04-docker-8c-8g-23618 does not seem to be running inside a container 15:37:41 $ 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 15:37:41 $ docker top 5534f07b646806e901b6077300fd4020dce1a0de182053cc4eb407600374e13c -eo pid,comm [Pipeline] { [Pipeline] sh 15:37:41 + go version 15:37:41 go version go1.17.6 linux/amd64 [Pipeline] } 15:37:41 $ docker stop --time=1 5534f07b646806e901b6077300fd4020dce1a0de182053cc4eb407600374e13c 15:37:43 $ docker rm -f 5534f07b646806e901b6077300fd4020dce1a0de182053cc4eb407600374e13c [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 15:37:43 + docker inspect -f . ci-base-image-x86_64 15:37:43 . [Pipeline] withDockerContainer 15:37:43 prd-ubuntu20.04-docker-8c-8g-23618 does not seem to be running inside a container 15:37:43 $ 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 15:37:44 $ docker top 0173c10720f59d0cf76b3dbd0f5a69881058cb533fb44ded81503d2a39b8a33d -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 15:37:44 + make test 15:37:44 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out ./... 15:37:44 ? github.com/edgexfoundry/device-rest-go [no test files] 15:37:54 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 15:37:54 ok github.com/edgexfoundry/device-rest-go/driver 0.016s coverage: 55.2% of statements 15:38:00 CGO_ENABLED=1 GO111MODULE=on go vet ./... 15:38:03 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 15:38:03 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 15:38:03 ./bin/test-attribution-txt.sh [Pipeline] echo 15:38:03 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 15:38:03 $ docker stop --time=1 0173c10720f59d0cf76b3dbd0f5a69881058cb533fb44ded81503d2a39b8a33d 15:38:05 $ docker rm -f 0173c10720f59d0cf76b3dbd0f5a69881058cb533fb44ded81503d2a39b8a33d [Pipeline] // withDockerContainer [Pipeline] sh 15:38:06 + sudo chown -R jenkins:jenkins . [Pipeline] stash 15:38:06 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 15:38:06 + sudo chown -R jenkins:jenkins . [Pipeline] sh 15:38:07 + ls -al . 15:38:07 total 172 15:38:07 drwxrwxr-x 9 jenkins jenkins 4096 Apr 26 15:38 . 15:38:07 drwxrwxr-x 4 jenkins jenkins 4096 Apr 26 15:36 .. 15:38:07 -rw-rw-r-- 1 jenkins jenkins 151 Apr 26 15:36 .dockerignore 15:38:07 drwxrwxr-x 8 jenkins jenkins 4096 Apr 26 15:36 .git 15:38:07 drwxrwxr-x 3 jenkins jenkins 4096 Apr 26 15:36 .github 15:38:07 -rw-rw-r-- 1 jenkins jenkins 329 Apr 26 15:36 .gitignore 15:38:07 -rw-rw-r-- 1 jenkins jenkins 41 Apr 26 15:36 .golangci.yml 15:38:07 drwx------ 3 jenkins jenkins 4096 Apr 26 15:37 .semver 15:38:07 -rw-rw-r-- 1 jenkins jenkins 8330 Apr 26 15:36 Attribution.txt 15:38:07 -rw-rw-r-- 1 jenkins jenkins 7459 Apr 26 15:36 CHANGELOG.md 15:38:07 -rw-rw-r-- 1 jenkins jenkins 1672 Apr 26 15:36 Dockerfile 15:38:07 -rw-rw-r-- 1 jenkins jenkins 677 Apr 26 15:36 GOVERNANCE.md 15:38:07 -rw-rw-r-- 1 jenkins jenkins 680 Apr 26 15:36 Jenkinsfile 15:38:07 -rw-rw-r-- 1 jenkins jenkins 11340 Apr 26 15:36 LICENSE 15:38:07 -rw-rw-r-- 1 jenkins jenkins 1964 Apr 26 15:36 Makefile 15:38:07 -rw-rw-r-- 1 jenkins jenkins 620 Apr 26 15:36 OWNERS.md 15:38:07 -rw-rw-r-- 1 jenkins jenkins 8246 Apr 26 15:36 README.md 15:38:07 -rw-rw-r-- 1 jenkins jenkins 12 Apr 26 15:37 VERSION 15:38:07 drwxrwxr-x 2 jenkins jenkins 4096 Apr 26 15:36 bin 15:38:07 drwxrwxr-x 3 jenkins jenkins 4096 Apr 26 15:36 cmd 15:38:07 -rw-r--r-- 1 jenkins jenkins 9355 Apr 26 15:37 coverage.out 15:38:07 drwxrwxr-x 2 jenkins jenkins 4096 Apr 26 15:36 driver 15:38:07 -rw-rw-r-- 1 jenkins jenkins 3240 Apr 26 15:36 go.mod 15:38:07 -rw-rw-r-- 1 jenkins jenkins 34722 Apr 26 15:36 go.sum 15:38:07 drwxrwxr-x 3 jenkins jenkins 4096 Apr 26 15:36 snap 15:38:07 -rw-rw-r-- 1 jenkins jenkins 713 Apr 26 15:36 version.go [Pipeline] isUnix [Pipeline] sh 15:38:07 + 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 . 15:38:07 Sending build context to Docker daemon 10.58MB 15:38:07 Step 1/25 : ARG BASE=golang:1.17-alpine3.15 15:38:07 Step 2/25 : FROM ${BASE} AS builder 15:38:07 ---> 5c8b79067139 15:38:07 Step 3/25 : ARG MAKE='make build' 15:38:07 ---> Running in 9e9751573e92 15:38:07 Removing intermediate container 9e9751573e92 15:38:07 ---> 6ba832f1f3a2 15:38:07 Step 4/25 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 15:38:08 ---> Running in 2696f8cec75c 15:38:08 Removing intermediate container 2696f8cec75c 15:38:08 ---> a99816626e02 15:38:08 Step 5/25 : ARG ALPINE_PKG_EXTRA="" 15:38:08 ---> Running in 5548a44fc160 15:38:08 Removing intermediate container 5548a44fc160 15:38:08 ---> a888fb9a57e5 15:38:08 Step 6/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 15:38:09 ---> Running in 388a15291c55 15:38:09 Removing intermediate container 388a15291c55 15:38:09 ---> b824dfd98bb7 15:38:09 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 15:38:09 ---> Running in 7fc2c41d9631 15:38:10 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 15:38:11 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 15:38:11 OK: 224 MiB in 56 packages 15:38:11 Removing intermediate container 7fc2c41d9631 15:38:11 ---> 83a608cb61a0 15:38:11 Step 8/25 : WORKDIR /device-rest-go 15:38:11 ---> Running in 23c187246699 15:38:11 Removing intermediate container 23c187246699 15:38:11 ---> f4df3b83ab71 15:38:11 Step 9/25 : COPY go.mod vendor* ./ 15:38:12 ---> 6a137876f7a4 15:38:12 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 15:38:12 ---> Running in 2610a0a6d20a 15:38:12 Removing intermediate container 2610a0a6d20a 15:38:12 ---> 0f79dcfe2b5c 15:38:12 Step 11/25 : COPY . . 15:38:13 ---> a9cad89358f5 15:38:13 Step 12/25 : RUN $MAKE 15:38:13 ---> Running in 18d0fc981a87 15:38:13 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 15:38:35 Removing intermediate container 18d0fc981a87 15:38:35 ---> 2cfa6ab808fa 15:38:35 Step 13/25 : FROM alpine:3.14 15:38:35 3.14: Pulling from library/alpine 15:38:35 8663204ce13b: Pulling fs layer 15:38:35 8663204ce13b: Verifying Checksum 15:38:35 8663204ce13b: Download complete 15:38:35 8663204ce13b: Pull complete 15:38:35 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 15:38:35 Status: Downloaded newer image for alpine:3.14 15:38:35 ---> e04c818066af 15:38:35 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' 15:38:35 ---> Running in fac45b18af84 15:38:35 Removing intermediate container fac45b18af84 15:38:35 ---> 78e4f235caed 15:38:35 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 15:38:35 ---> Running in 580c72364225 15:38:35 Removing intermediate container 580c72364225 15:38:35 ---> c239ee0064db 15:38:35 Step 16/25 : RUN apk add --update --no-cache zeromq dumb-init 15:38:35 ---> Running in 5ab1bc2d9bf9 15:38:35 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz 15:38:35 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz 15:38:35 (1/6) Installing dumb-init (1.2.5-r1) 15:38:35 (2/6) Installing libgcc (10.3.1_git20210424-r2) 15:38:35 (3/6) Installing libsodium (1.0.18-r0) 15:38:35 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 15:38:35 (5/6) Installing libzmq (4.3.4-r0) 15:38:35 (6/6) Installing zeromq (4.3.4-r0) 15:38:35 Executing busybox-1.33.1-r7.trigger 15:38:35 OK: 8 MiB in 20 packages 15:38:35 Removing intermediate container 5ab1bc2d9bf9 15:38:35 ---> 94649b4d82f6 15:38:35 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 15:38:35 ---> 7c0e983b916b 15:38:35 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 15:38:35 ---> 3e2cfab0edff 15:38:35 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 15:38:35 ---> 22889bfd089f 15:38:35 Step 20/25 : EXPOSE 59986 15:38:35 ---> Running in 4d666fb104a9 15:38:35 Removing intermediate container 4d666fb104a9 15:38:35 ---> 123fe93009b3 15:38:35 Step 21/25 : ENTRYPOINT ["/device-rest"] 15:38:35 ---> Running in 37ff583df804 15:38:35 Removing intermediate container 37ff583df804 15:38:35 ---> b16d6447a56c 15:38:35 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--confdir=/res", "--registry"] 15:38:35 ---> Running in 5ee1428127fb 15:38:35 Removing intermediate container 5ee1428127fb 15:38:35 ---> 99e1a1479453 15:38:35 Step 23/25 : LABEL arch=amd64 15:38:35 ---> Running in 0e0b46151b95 15:38:35 Removing intermediate container 0e0b46151b95 15:38:35 ---> b44307576ec7 15:38:35 Step 24/25 : LABEL git_sha=b5c3ad01f67977970fed420537dc3b570bb51b0a 15:38:35 ---> Running in 26c6e3bf10e0 15:38:35 Removing intermediate container 26c6e3bf10e0 15:38:35 ---> 0e7cff7b8650 15:38:35 Step 25/25 : LABEL version=2.2.0-dev.12 15:38:36 ---> Running in cd2589c619fc 15:38:36 Removing intermediate container cd2589c619fc 15:38:36 ---> 3bf4fe8cfcff 15:38:36 [Warning] One or more build-args [ARCH] were not consumed 15:38:36 Successfully built 3bf4fe8cfcff 15:38:36 Successfully tagged device-rest:latest [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Docker Push) [Pipeline] script [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 15:38:36 provisioning config files... 15:38:36 copy managed file [device-rest-go-settings] to file:/w/workspace/edgexfoundry_device-rest-go_main@tmp/config7832229835250380841tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 15:38:36 ---> docker-login.sh 15:38:36 nexus3.edgexfoundry.org:10001 15:38:36 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 15:38:36 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 15:38:36 Configure a credential helper to remove this warning. See 15:38:36 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 15:38:36 15:38:36 Login Succeeded 15:38:36 nexus3.edgexfoundry.org:10002 15:38:36 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 15:38:36 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 15:38:36 Configure a credential helper to remove this warning. See 15:38:36 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 15:38:36 15:38:36 Login Succeeded 15:38:36 nexus3.edgexfoundry.org:10003 15:38:36 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 15:38:36 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 15:38:36 Configure a credential helper to remove this warning. See 15:38:36 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 15:38:36 15:38:36 Login Succeeded 15:38:36 nexus3.edgexfoundry.org:10004 15:38:36 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 15:38:36 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 15:38:36 Configure a credential helper to remove this warning. See 15:38:36 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 15:38:36 15:38:36 Login Succeeded 15:38:36 docker.io 15:38:36 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 15:38:37 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 15:38:37 Configure a credential helper to remove this warning. See 15:38:37 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 15:38:37 15:38:37 Login Succeeded 15:38:37 ---> docker-login.sh ends [Pipeline] } 15:38:37 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] echo 15:38:37 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 15:38:37 [edgeXDocker.push] Tagging docker image device-rest with the following tags: 15:38:37 b5c3ad01f67977970fed420537dc3b570bb51b0a 15:38:37 latest 15:38:37 2.2.0-dev.12 15:38:37 b5c3ad01f67977970fed420537dc3b570bb51b0a-2.2.0-dev.12 15:38:37 main 15:38:37 ===================================================== [Pipeline] withEnv [Pipeline] { [Pipeline] withDockerRegistry [Pipeline] { [Pipeline] isUnix [Pipeline] sh 15:38:37 + docker tag device-rest nexus3.edgexfoundry.org:10004/device-rest:b5c3ad01f67977970fed420537dc3b570bb51b0a [Pipeline] isUnix [Pipeline] sh 15:38:37 + docker push nexus3.edgexfoundry.org:10004/device-rest:b5c3ad01f67977970fed420537dc3b570bb51b0a 15:38:37 The push refers to repository [nexus3.edgexfoundry.org:10004/device-rest] 15:38:37 45b9f130f783: Preparing 15:38:37 5dfb8f3df056: Preparing 15:38:37 91d0abe90a94: Preparing 15:38:37 29f47de87893: Preparing 15:38:37 b541d28bf3b4: Preparing 15:38:37 b541d28bf3b4: Layer already exists 15:38:37 45b9f130f783: Pushed 15:38:37 5dfb8f3df056: Pushed 15:38:38 29f47de87893: Pushed 15:38:40 91d0abe90a94: Pushed 15:38:40 b5c3ad01f67977970fed420537dc3b570bb51b0a: digest: sha256:06662d0c7e61b8a0c88c6a516bb3dc12d4d103ee2c204d382129ba2f55b09db9 size: 1367 [Pipeline] isUnix [Pipeline] sh 15:38:41 + docker tag device-rest nexus3.edgexfoundry.org:10004/device-rest:latest [Pipeline] isUnix [Pipeline] sh 15:38:41 + docker push nexus3.edgexfoundry.org:10004/device-rest:latest 15:38:41 The push refers to repository [nexus3.edgexfoundry.org:10004/device-rest] 15:38:41 45b9f130f783: Preparing 15:38:41 5dfb8f3df056: Preparing 15:38:41 91d0abe90a94: Preparing 15:38:41 29f47de87893: Preparing 15:38:41 b541d28bf3b4: Preparing 15:38:41 45b9f130f783: Layer already exists 15:38:41 29f47de87893: Layer already exists 15:38:41 5dfb8f3df056: Layer already exists 15:38:41 91d0abe90a94: Layer already exists 15:38:41 b541d28bf3b4: Layer already exists 15:38:41 latest: digest: sha256:06662d0c7e61b8a0c88c6a516bb3dc12d4d103ee2c204d382129ba2f55b09db9 size: 1367 [Pipeline] isUnix [Pipeline] sh 15:38:41 + docker tag device-rest nexus3.edgexfoundry.org:10004/device-rest:2.2.0-dev.12 [Pipeline] isUnix [Pipeline] sh 15:38:41 + docker push nexus3.edgexfoundry.org:10004/device-rest:2.2.0-dev.12 15:38:41 The push refers to repository [nexus3.edgexfoundry.org:10004/device-rest] 15:38:41 45b9f130f783: Preparing 15:38:41 5dfb8f3df056: Preparing 15:38:41 91d0abe90a94: Preparing 15:38:41 29f47de87893: Preparing 15:38:41 b541d28bf3b4: Preparing 15:38:41 b541d28bf3b4: Layer already exists 15:38:41 91d0abe90a94: Layer already exists 15:38:41 29f47de87893: Layer already exists 15:38:41 5dfb8f3df056: Layer already exists 15:38:41 45b9f130f783: Layer already exists 15:38:41 2.2.0-dev.12: digest: sha256:06662d0c7e61b8a0c88c6a516bb3dc12d4d103ee2c204d382129ba2f55b09db9 size: 1367 [Pipeline] isUnix [Pipeline] sh 15:38:42 + docker tag device-rest nexus3.edgexfoundry.org:10004/device-rest:b5c3ad01f67977970fed420537dc3b570bb51b0a-2.2.0-dev.12 [Pipeline] isUnix [Pipeline] sh 15:38:42 + docker push nexus3.edgexfoundry.org:10004/device-rest:b5c3ad01f67977970fed420537dc3b570bb51b0a-2.2.0-dev.12 15:38:42 The push refers to repository [nexus3.edgexfoundry.org:10004/device-rest] 15:38:42 45b9f130f783: Preparing 15:38:42 5dfb8f3df056: Preparing 15:38:42 91d0abe90a94: Preparing 15:38:42 29f47de87893: Preparing 15:38:42 b541d28bf3b4: Preparing 15:38:42 29f47de87893: Layer already exists 15:38:42 5dfb8f3df056: Layer already exists 15:38:42 45b9f130f783: Layer already exists 15:38:42 b541d28bf3b4: Layer already exists 15:38:42 91d0abe90a94: Layer already exists 15:38:42 b5c3ad01f67977970fed420537dc3b570bb51b0a-2.2.0-dev.12: digest: sha256:06662d0c7e61b8a0c88c6a516bb3dc12d4d103ee2c204d382129ba2f55b09db9 size: 1367 [Pipeline] isUnix [Pipeline] sh 15:38:42 + docker tag device-rest nexus3.edgexfoundry.org:10004/device-rest:main [Pipeline] isUnix [Pipeline] sh 15:38:43 + docker push nexus3.edgexfoundry.org:10004/device-rest:main 15:38:43 The push refers to repository [nexus3.edgexfoundry.org:10004/device-rest] 15:38:43 45b9f130f783: Preparing 15:38:43 5dfb8f3df056: Preparing 15:38:43 91d0abe90a94: Preparing 15:38:43 29f47de87893: Preparing 15:38:43 b541d28bf3b4: Preparing 15:38:43 91d0abe90a94: Layer already exists 15:38:43 29f47de87893: Layer already exists 15:38:43 45b9f130f783: Layer already exists 15:38:43 5dfb8f3df056: Layer already exists 15:38:43 b541d28bf3b4: Layer already exists 15:38:43 main: digest: sha256:06662d0c7e61b8a0c88c6a516bb3dc12d4d103ee2c204d382129ba2f55b09db9 size: 1367 [Pipeline] } [Pipeline] // withDockerRegistry [Pipeline] } [Pipeline] // withEnv [Pipeline] echo 15:38:43 ===================================================== [Pipeline] echo 15:38:43 taggedImages: 15:38:43 - nexus3.edgexfoundry.org:10004/device-rest:b5c3ad01f67977970fed420537dc3b570bb51b0a 15:38:43 - nexus3.edgexfoundry.org:10004/device-rest:latest 15:38:43 - nexus3.edgexfoundry.org:10004/device-rest:2.2.0-dev.12 15:38:43 - nexus3.edgexfoundry.org:10004/device-rest:b5c3ad01f67977970fed420537dc3b570bb51b0a-2.2.0-dev.12 15:38:43 - 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 15:38:43 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 15:38:43 15:38:43 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] sh 15:38:43 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 15:38:43 latest: Pulling from edgex-lftools-log-publisher 15:38:43 5eb5b503b376: Pulling fs layer 15:38:43 5c69ac0246d0: Pulling fs layer 15:38:43 ec43610c2a17: Pulling fs layer 15:38:43 3a2ae6a8a46f: Pulling fs layer 15:38:43 33b1e0a273af: Pulling fs layer 15:38:43 5d3b04190fa2: Pulling fs layer 15:38:43 2f39f015ded8: Pulling fs layer 15:38:43 5d3b04190fa2: Waiting 15:38:43 33b1e0a273af: Waiting 15:38:43 2f39f015ded8: Waiting 15:38:43 3a2ae6a8a46f: Waiting 15:38:43 5c69ac0246d0: Download complete 15:38:43 3a2ae6a8a46f: Download complete 15:38:43 33b1e0a273af: Download complete 15:38:43 5d3b04190fa2: Download complete 15:38:43 ec43610c2a17: Verifying Checksum 15:38:43 ec43610c2a17: Download complete 15:38:44 5eb5b503b376: Verifying Checksum 15:38:44 5eb5b503b376: Download complete 15:38:44 2f39f015ded8: Download complete 15:38:45 5eb5b503b376: Pull complete 15:38:45 5c69ac0246d0: Pull complete 15:38:45 ec43610c2a17: Pull complete 15:38:46 3a2ae6a8a46f: Pull complete 15:38:46 33b1e0a273af: Pull complete 15:38:46 5d3b04190fa2: Pull complete 15:38:50 2f39f015ded8: Pull complete 15:38:50 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 15:38:50 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 15:38:50 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] withDockerContainer 15:38:50 prd-ubuntu20.04-docker-8c-8g-23618 does not seem to be running inside a container 15:38:50 $ 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 15:38:52 $ docker top cf71d79dd0c7011c7673f216e60633b125242e0a4748b57c9e31b80176316d6d -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 15:38:53 ---> job-cost.sh 15:38:53 lf-activate-venv: SKIPPING 15:38:53 INFO: No Stack... 15:38:53 INFO: Retrieving Pricing Info for: v3-standard-8 15:38:53 INFO: Archiving Costs [Pipeline] sh 15:38:54 + cat /w/workspace/edgexfoundry_device-rest-go_main/archives/cost.csv 15:38:54 + cut -d, -f6 [Pipeline] lock 15:38:54 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-main-33-stack-cost] 15:38:54 Resource [jenkins-edgexfoundry-device-rest-go-main-33-stack-cost] did not exist. Created. 15:38:54 Lock acquired on [jenkins-edgexfoundry-device-rest-go-main-33-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 15:38:54 + echo total: 0.2199999988079071 [Pipeline] stash 15:38:54 Stashed 1 file(s) [Pipeline] } 15:38:54 Lock released on resource [jenkins-edgexfoundry-device-rest-go-main-33-stack-cost] [Pipeline] // lock [Pipeline] } 15:38:54 $ docker stop --time=1 cf71d79dd0c7011c7673f216e60633b125242e0a4748b57c9e31b80176316d6d 15:38:55 $ docker rm -f cf71d79dd0c7011c7673f216e60633b125242e0a4748b57c9e31b80176316d6d [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 15:40:46 Running on prd-ubuntu20.04-docker-arm64-4c-16g-23622 in /w/workspace/edgexfoundry_device-rest-go_main [Pipeline] { [Pipeline] ws 15:40:46 Running in /w/workspace/device-rest-go/33 [Pipeline] { [Pipeline] checkout 15:40:46 The recommended git tool is: git 15:40:53 using credential edgex-jenkins-ssh 15:40:53 Cloning the remote Git repository 15:40:53 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 15:40:53 > git init /w/workspace/device-rest-go/33 # timeout=10 15:40:53 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 15:40:53 > git --version # timeout=10 15:40:54 > git --version # 'git version 2.25.1' 15:40:54 using GIT_SSH to set credentials SSH Credentials for GitHub 15:40:54 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 15:40:56 Avoid second fetch 15:40:56 Checking out Revision b5c3ad01f67977970fed420537dc3b570bb51b0a (main) 15:40:56 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 15:40:56 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 15:40:56 > git config core.sparsecheckout # timeout=10 15:40:56 > git checkout -f b5c3ad01f67977970fed420537dc3b570bb51b0a # timeout=10 15:41:00 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 15:41:01 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 15:41:01 % Total % Received % Xferd Average Speed Time Time Time Current 15:41:01 Dload Upload Total Spent Left Speed 15:41:01 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 11843 100 11843 0 0 89719 0 --:--:-- --:--:-- --:--:-- 89719 [Pipeline] sh 15:41:02 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 15:41:02 + + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 15:41:02 sudo tee /etc/docker/daemon.new 15:41:02 { 15:41:02 "registry-mirrors": [ 15:41:02 "https://nexus3.edgexfoundry.org:10001" 15:41:02 ], 15:41:02 "bip": "10.250.0.254/24", 15:41:02 "hosts": [ 15:41:02 "tcp://0.0.0.0:5555", 15:41:02 "unix:///var/run/docker.sock" 15:41:02 ], 15:41:02 "mtu": 1458, 15:41:02 "selinux-enabled": true, 15:41:02 "seccomp-profile": "/etc/docker/seccomp.json" 15:41:02 } [Pipeline] sh 15:41:02 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 15:41:03 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 15:41:21 provisioning config files... 15:41:21 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/33@tmp/config3378856052476597854tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 15:41:22 ---> docker-login.sh 15:41:22 nexus3.edgexfoundry.org:10001 15:41:23 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 15:41:23 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 15:41:23 Configure a credential helper to remove this warning. See 15:41:23 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 15:41:23 15:41:23 Login Succeeded 15:41:23 nexus3.edgexfoundry.org:10002 15:41:23 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 15:41:24 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 15:41:24 Configure a credential helper to remove this warning. See 15:41:24 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 15:41:24 15:41:24 Login Succeeded 15:41:24 nexus3.edgexfoundry.org:10003 15:41:24 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 15:41:24 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 15:41:24 Configure a credential helper to remove this warning. See 15:41:24 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 15:41:24 15:41:24 Login Succeeded 15:41:24 nexus3.edgexfoundry.org:10004 15:41:24 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 15:41:25 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 15:41:25 Configure a credential helper to remove this warning. See 15:41:25 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 15:41:25 15:41:25 Login Succeeded 15:41:25 docker.io 15:41:25 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 15:41:26 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 15:41:26 Configure a credential helper to remove this warning. See 15:41:26 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 15:41:26 15:41:26 Login Succeeded 15:41:26 ---> docker-login.sh ends [Pipeline] } 15:41:26 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 15:41:26 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 15:41:26 ========================================================= 15:41:26 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine] 15:41:26 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 15:41:26 + 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 . 15:41:26 Sending build context to Docker daemon 129.5kB 15:41:27 Step 1/12 : ARG BASE=golang:1.17-alpine3.15 15:41:27 Step 2/12 : FROM ${BASE} AS builder 15:41:27 1.17-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 15:41:27 9b3977197b4f: Pulling fs layer 15:41:27 1a89e8eeedd5: Pulling fs layer 15:41:27 94645a83ff95: Pulling fs layer 15:41:27 3f3a8bcf1eab: Pulling fs layer 15:41:27 0c92f367c5e7: Pulling fs layer 15:41:27 3096ccb668a1: Pulling fs layer 15:41:27 e8cf19c19ddd: Pulling fs layer 15:41:27 a4caa8a26152: Pulling fs layer 15:41:27 3096ccb668a1: Waiting 15:41:27 e8cf19c19ddd: Waiting 15:41:27 a4caa8a26152: Waiting 15:41:27 3f3a8bcf1eab: Waiting 15:41:27 0c92f367c5e7: Waiting 15:41:27 94645a83ff95: Verifying Checksum 15:41:27 94645a83ff95: Download complete 15:41:27 1a89e8eeedd5: Download complete 15:41:27 0c92f367c5e7: Download complete 15:41:27 3096ccb668a1: Verifying Checksum 15:41:27 3096ccb668a1: Download complete 15:41:27 9b3977197b4f: Download complete 15:41:27 e8cf19c19ddd: Verifying Checksum 15:41:27 e8cf19c19ddd: Download complete 15:41:28 9b3977197b4f: Pull complete 15:41:29 1a89e8eeedd5: Pull complete 15:41:29 94645a83ff95: Pull complete 15:41:30 a4caa8a26152: Verifying Checksum 15:41:30 a4caa8a26152: Download complete 15:41:30 3f3a8bcf1eab: Verifying Checksum 15:41:30 3f3a8bcf1eab: Download complete 15:41:42 3f3a8bcf1eab: Pull complete 15:41:43 0c92f367c5e7: Pull complete 15:41:43 3096ccb668a1: Pull complete 15:41:43 e8cf19c19ddd: Pull complete 15:41:50 a4caa8a26152: Pull complete 15:41:50 Digest: sha256:b3ad895ecde34a7521bb8912598475bc58d052e1c2c58d00df7f0fe54a102a46 15:41:50 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine 15:41:50 ---> 725f1c02e7f9 15:41:50 Step 3/12 : ARG MAKE='make build' 15:41:50 ---> Running in e76b7c08aec0 15:41:51 Removing intermediate container e76b7c08aec0 15:41:51 ---> eadb2cc4877a 15:41:51 Step 4/12 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 15:41:51 ---> Running in e2aa4a6ca2ea 15:41:51 Removing intermediate container e2aa4a6ca2ea 15:41:51 ---> 3515f81a6a24 15:41:51 Step 5/12 : ARG ALPINE_PKG_EXTRA="" 15:41:51 ---> Running in 854a51ad25f7 15:41:52 Removing intermediate container 854a51ad25f7 15:41:52 ---> 95e2b22fa99c 15:41:52 Step 6/12 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 15:41:52 ---> Running in 02877cbc7a78 15:41:55 Removing intermediate container 02877cbc7a78 15:41:55 ---> 4487ed37e539 15:41:55 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 15:41:55 ---> Running in 7cfddb221a50 15:41:56 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 15:41:57 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 15:41:59 (1/4) Installing openssh-keygen (8.8_p1-r1) 15:41:59 (2/4) Installing libedit (20210910.3.1-r0) 15:41:59 (3/4) Installing openssh-client-common (8.8_p1-r1) 15:41:59 (4/4) Installing openssh-client-default (8.8_p1-r1) 15:41:59 Executing busybox-1.34.1-r3.trigger 15:41:59 OK: 224 MiB in 56 packages 15:42:00 Removing intermediate container 7cfddb221a50 15:42:00 ---> f4375f1d4364 15:42:00 Step 8/12 : WORKDIR /device-rest-go 15:42:00 ---> Running in fe93bb47acf5 15:42:00 Removing intermediate container fe93bb47acf5 15:42:00 ---> 64e69f1caca3 15:42:00 Step 9/12 : COPY go.mod vendor* ./ 15:42:01 ---> 5f529c80ad77 15:42:01 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 15:42:01 ---> Running in feb91c17fb1d 15:42:58 Removing intermediate container feb91c17fb1d 15:42:58 ---> 0eb09f5ac6fc 15:42:58 Step 11/12 : COPY . . 15:42:58 ---> 114b3f2bccf5 15:42:58 Step 12/12 : RUN $MAKE 15:42:58 ---> Running in c2ca9c18b7d5 15:42:58 noop 15:42:58 Removing intermediate container c2ca9c18b7d5 15:42:58 ---> 075256593a16 15:42:58 Successfully built 075256593a16 15:42:58 Successfully tagged ci-base-image-arm64:latest [Pipeline] isUnix [Pipeline] sh 15:42:58 + docker inspect -f . ci-base-image-arm64 15:42:58 . [Pipeline] withDockerContainer 15:42:58 prd-ubuntu20.04-docker-arm64-4c-16g-23622 does not seem to be running inside a container 15:42:58 $ 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 15:43:00 $ docker top 9197b4d8d28d6b04f33dd5e2d9e8f192267cb99e406db4ca1479362b852d5bc4 -eo pid,comm [Pipeline] { [Pipeline] sh 15:43:01 + go version 15:43:01 go version go1.17.6 linux/arm64 [Pipeline] } 15:43:01 $ docker stop --time=1 9197b4d8d28d6b04f33dd5e2d9e8f192267cb99e406db4ca1479362b852d5bc4 15:43:03 $ docker rm -f 9197b4d8d28d6b04f33dd5e2d9e8f192267cb99e406db4ca1479362b852d5bc4 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 15:43:03 + docker inspect -f . ci-base-image-arm64 15:43:03 . [Pipeline] withDockerContainer 15:43:04 prd-ubuntu20.04-docker-arm64-4c-16g-23622 does not seem to be running inside a container 15:43:04 $ 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 15:43:05 $ docker top d0c885cd56f114d32d9241fb1ea577d44e3ff68f76b3edd6e73949fd9e8c7b8c -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 15:43:06 + make test 15:43:06 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out ./... 15:43:08 ? github.com/edgexfoundry/device-rest-go [no test files] 15:44:45 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 15:44:45 ok github.com/edgexfoundry/device-rest-go/driver 0.085s coverage: 55.2% of statements 15:44:45 WARNING: Linting skipped (not on x86_64 or linter not installed) 15:44:45 CGO_ENABLED=1 GO111MODULE=on go vet ./... 15:45:18 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 15:45:18 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 15:45:18 ./bin/test-attribution-txt.sh [Pipeline] echo 15:45:20 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 15:45:20 $ docker stop --time=1 d0c885cd56f114d32d9241fb1ea577d44e3ff68f76b3edd6e73949fd9e8c7b8c 15:45:22 $ docker rm -f d0c885cd56f114d32d9241fb1ea577d44e3ff68f76b3edd6e73949fd9e8c7b8c [Pipeline] // withDockerContainer [Pipeline] sh 15:45:23 + sudo chown -R jenkins:jenkins . [Pipeline] stash 15:45:23 Warning: overwriting stash ‘coverage-report’ 15:45:24 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 15:45:24 + sudo chown -R jenkins:jenkins . [Pipeline] sh 15:45:24 + ls -al . 15:45:24 total 168 15:45:24 drwxrwxr-x 8 jenkins jenkins 4096 Apr 26 15:45 . 15:45:24 drwxrwxr-x 4 jenkins jenkins 4096 Apr 26 15:40 .. 15:45:24 -rw-rw-r-- 1 jenkins jenkins 151 Apr 26 15:40 .dockerignore 15:45:24 drwxrwxr-x 8 jenkins jenkins 4096 Apr 26 15:41 .git 15:45:24 drwxrwxr-x 3 jenkins jenkins 4096 Apr 26 15:40 .github 15:45:24 -rw-rw-r-- 1 jenkins jenkins 329 Apr 26 15:40 .gitignore 15:45:24 -rw-rw-r-- 1 jenkins jenkins 41 Apr 26 15:40 .golangci.yml 15:45:24 -rw-rw-r-- 1 jenkins jenkins 8330 Apr 26 15:40 Attribution.txt 15:45:24 -rw-rw-r-- 1 jenkins jenkins 7459 Apr 26 15:40 CHANGELOG.md 15:45:24 -rw-rw-r-- 1 jenkins jenkins 1672 Apr 26 15:40 Dockerfile 15:45:24 -rw-rw-r-- 1 jenkins jenkins 677 Apr 26 15:40 GOVERNANCE.md 15:45:24 -rw-rw-r-- 1 jenkins jenkins 680 Apr 26 15:40 Jenkinsfile 15:45:24 -rw-rw-r-- 1 jenkins jenkins 11340 Apr 26 15:40 LICENSE 15:45:24 -rw-rw-r-- 1 jenkins jenkins 1964 Apr 26 15:40 Makefile 15:45:24 -rw-rw-r-- 1 jenkins jenkins 620 Apr 26 15:40 OWNERS.md 15:45:24 -rw-rw-r-- 1 jenkins jenkins 8246 Apr 26 15:40 README.md 15:45:24 -rw-rw-r-- 1 jenkins jenkins 12 Apr 26 15:37 VERSION 15:45:24 drwxrwxr-x 2 jenkins jenkins 4096 Apr 26 15:40 bin 15:45:24 drwxrwxr-x 3 jenkins jenkins 4096 Apr 26 15:40 cmd 15:45:24 -rw-r--r-- 1 jenkins jenkins 9355 Apr 26 15:44 coverage.out 15:45:24 drwxrwxr-x 2 jenkins jenkins 4096 Apr 26 15:40 driver 15:45:24 -rw-rw-r-- 1 jenkins jenkins 3240 Apr 26 15:40 go.mod 15:45:24 -rw-rw-r-- 1 jenkins jenkins 34722 Apr 26 15:40 go.sum 15:45:24 drwxrwxr-x 3 jenkins jenkins 4096 Apr 26 15:40 snap 15:45:24 -rw-rw-r-- 1 jenkins jenkins 713 Apr 26 15:40 version.go [Pipeline] isUnix [Pipeline] sh 15:45:25 + 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 . 15:45:25 Sending build context to Docker daemon 139.8kB 15:45:25 Step 1/25 : ARG BASE=golang:1.17-alpine3.15 15:45:25 Step 2/25 : FROM ${BASE} AS builder 15:45:25 ---> 075256593a16 15:45:25 Step 3/25 : ARG MAKE='make build' 15:45:25 ---> Running in fbe9853356c9 15:45:26 Removing intermediate container fbe9853356c9 15:45:26 ---> d2821e108aa4 15:45:26 Step 4/25 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 15:45:26 ---> Running in ad76dca74b69 15:45:26 Removing intermediate container ad76dca74b69 15:45:26 ---> 21fb064924e4 15:45:26 Step 5/25 : ARG ALPINE_PKG_EXTRA="" 15:45:26 ---> Running in c12a2d526172 15:45:26 Removing intermediate container c12a2d526172 15:45:26 ---> 82d1e6a6a731 15:45:26 Step 6/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 15:45:26 ---> Running in e8af7e74710d 15:45:28 Removing intermediate container e8af7e74710d 15:45:28 ---> d3c87ec48341 15:45:28 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 15:45:28 ---> Running in 9256deb41479 15:45:29 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 15:45:30 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 15:45:31 OK: 224 MiB in 56 packages 15:45:32 Removing intermediate container 9256deb41479 15:45:32 ---> a457612d6b39 15:45:32 Step 8/25 : WORKDIR /device-rest-go 15:45:32 ---> Running in d91afec6ee18 15:45:33 Removing intermediate container d91afec6ee18 15:45:33 ---> 842d7a8002d2 15:45:33 Step 9/25 : COPY go.mod vendor* ./ 15:45:33 ---> a17e35552001 15:45:33 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 15:45:33 ---> Running in dfa7c5d87836 15:45:35 Removing intermediate container dfa7c5d87836 15:45:35 ---> ed02fd83ccef 15:45:35 Step 11/25 : COPY . . 15:45:36 ---> 56ece6d8eb2d 15:45:36 Step 12/25 : RUN $MAKE 15:45:36 ---> Running in fc54aa755ed9 15:45:37 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 15:47:59 Removing intermediate container fc54aa755ed9 15:47:59 ---> 5b036bb26907 15:47:59 Step 13/25 : FROM alpine:3.14 15:47:59 3.14: Pulling from library/alpine 15:47:59 455c02918c45: Pulling fs layer 15:47:59 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 15:48:00 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 15:48:00 15:48:00 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] sh 15:48:00 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 15:48:00 arm64: Pulling from edgex-lftools-log-publisher 15:48:00 8998bd30e6a1: Pulling fs layer 15:48:00 04944245beec: Pulling fs layer 15:48:00 699f458cf7ca: Pulling fs layer 15:48:00 765212b225bb: Pulling fs layer 15:48:00 f23df028b6ca: Pulling fs layer 15:48:00 d65c8cfc05b1: Pulling fs layer 15:48:00 2437ff75d9bd: Pulling fs layer 15:48:00 765212b225bb: Waiting 15:48:00 f23df028b6ca: Waiting 15:48:00 2437ff75d9bd: Waiting 15:48:00 d65c8cfc05b1: Waiting 15:48:00 04944245beec: Verifying Checksum 15:48:00 04944245beec: Download complete 15:48:00 765212b225bb: Download complete 15:48:00 f23df028b6ca: Verifying Checksum 15:48:00 f23df028b6ca: Download complete 15:48:01 d65c8cfc05b1: Verifying Checksum 15:48:01 d65c8cfc05b1: Download complete 15:48:01 699f458cf7ca: Verifying Checksum 15:48:01 699f458cf7ca: Download complete 15:48:01 8998bd30e6a1: Verifying Checksum 15:48:01 8998bd30e6a1: Download complete 15:48:04 2437ff75d9bd: Verifying Checksum 15:48:04 2437ff75d9bd: Download complete 15:48:06 8998bd30e6a1: Pull complete 15:48:06 04944245beec: Pull complete 15:48:08 699f458cf7ca: Pull complete 15:48:08 765212b225bb: Pull complete 15:48:09 f23df028b6ca: Pull complete 15:48:09 d65c8cfc05b1: Pull complete 15:48:24 2437ff75d9bd: Pull complete 15:48:24 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 15:48:24 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 15:48:24 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] withDockerContainer 15:48:25 prd-ubuntu20.04-docker-arm64-4c-16g-23622 does not seem to be running inside a container 15:48:25 $ 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 15:48:28 $ docker top 7105c2c478474ce6a5aa260049049351deab7d08e61daf5b762427ded528617e -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 15:48:28 ---> job-cost.sh 15:48:28 lf-activate-venv: SKIPPING 15:48:28 INFO: No Stack... 15:48:29 INFO: Retrieving Pricing Info for: v3-standard-4 15:48:30 INFO: Archiving Costs [Pipeline] sh 15:48:31 + cat /w/workspace/device-rest-go/33/archives/cost.csv 15:48:31 + cut -d, -f6 [Pipeline] lock 15:48:31 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-main-33-stack-cost] 15:48:31 Resource [jenkins-edgexfoundry-device-rest-go-main-33-stack-cost] did not exist. Created. 15:48:31 Lock acquired on [jenkins-edgexfoundry-device-rest-go-main-33-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 15:48:32 /w/workspace/device-rest-go/33@tmp/durable-bb0d73aa/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 15:48:32 + echo total: 0.10999999940395355 [Pipeline] stash 15:48:32 Warning: overwriting stash ‘stack-cost’ 15:48:32 Stashed 1 file(s) [Pipeline] } 15:48:32 Lock released on resource [jenkins-edgexfoundry-device-rest-go-main-33-stack-cost] [Pipeline] // lock [Pipeline] } 15:48:32 $ docker stop --time=1 7105c2c478474ce6a5aa260049049351deab7d08e61daf5b762427ded528617e 15:48:34 $ 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] } 15:48:34 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 15:48:35 + [ -d /w/workspace/edgexfoundry_device-rest-go_main/archives ] 15:48:35 + ls -al /w/workspace/edgexfoundry_device-rest-go_main/archives 15:48:35 total 16 15:48:35 drwxr-xr-x 3 root root 4096 Apr 26 15:38 . 15:48:35 drwxrwxr-x 10 jenkins jenkins 4096 Apr 26 15:38 .. 15:48:35 drwxr-xr-x 2 root root 4096 Apr 26 15:38 cost 15:48:35 -rw-r--r-- 1 root root 84 Apr 26 15:38 cost.csv 15:48:35 + sudo chown -R jenkins:jenkins /w/workspace/edgexfoundry_device-rest-go_main/archives 15:48:35 + ls -al /w/workspace/edgexfoundry_device-rest-go_main/archives 15:48:35 total 16 15:48:35 drwxr-xr-x 3 jenkins jenkins 4096 Apr 26 15:38 . 15:48:35 drwxrwxr-x 10 jenkins jenkins 4096 Apr 26 15:38 .. 15:48:35 drwxr-xr-x 2 jenkins jenkins 4096 Apr 26 15:38 cost 15:48:35 -rw-r--r-- 1 jenkins jenkins 84 Apr 26 15:38 cost.csv [Pipeline] libraryResource [Pipeline] sh 15:48:35 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 15:48:36 ---> package-listing.sh 15:48:36 ++ facter osfamily 15:48:36 ++ tr '[:upper:]' '[:lower:]' 15:48:36 + OS_FAMILY=debian 15:48:36 + workspace=/w/workspace/edgexfoundry_device-rest-go_main 15:48:36 + START_PACKAGES=/tmp/packages_start.txt 15:48:36 + END_PACKAGES=/tmp/packages_end.txt 15:48:36 + DIFF_PACKAGES=/tmp/packages_diff.txt 15:48:36 + PACKAGES=/tmp/packages_start.txt 15:48:36 + '[' /w/workspace/edgexfoundry_device-rest-go_main ']' 15:48:36 + PACKAGES=/tmp/packages_end.txt 15:48:36 + case "${OS_FAMILY}" in 15:48:36 + dpkg -l 15:48:36 + grep '^ii' 15:48:36 + '[' -f /tmp/packages_start.txt ']' 15:48:36 + '[' -f /tmp/packages_end.txt ']' 15:48:36 + diff /tmp/packages_start.txt /tmp/packages_end.txt 15:48:36 + '[' /w/workspace/edgexfoundry_device-rest-go_main ']' 15:48:36 + mkdir -p /w/workspace/edgexfoundry_device-rest-go_main/archives/ 15:48:36 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/edgexfoundry_device-rest-go_main/archives/ [Pipeline] echo 15:48:36 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 15:48:37 + facter operatingsystem [Pipeline] isUnix [Pipeline] sh 15:48:37 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 15:48:37 . [Pipeline] withDockerContainer 15:48:37 prd-ubuntu20.04-docker-8c-8g-23618 does not seem to be running inside a container 15:48:37 $ 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 15:48:38 $ docker top cade08e4d503619aa3c49c11b6fd6ed90fa3ca76593beff838eee6d3acac7ca7 -eo pid,comm [Pipeline] { [Pipeline] sh 15:48:38 + touch /tmp/pre-build-complete [Pipeline] sh 15:48:38 + mkdir -p /var/log/sysstat [Pipeline] sh 15:48:39 + ls /var/log/sa-host 15:48:39 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 15:48:39 provisioning config files... 15:48:39 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/edgexfoundry_device-rest-go_main@tmp/config3485491500117859935tmp [Pipeline] { [Pipeline] echo 15:48:39 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 15:48:39 ---> create-netrc.sh [Pipeline] } 15:48:39 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 15:48:39 ---> python-tools-install.sh [Pipeline] echo 15:48:39 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 15:48:40 ---> sudo-logs.sh 15:48:40 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 15:48:40 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 15:48:40 ---> job-cost.sh 15:48:40 lf-activate-venv: SKIPPING 15:48:40 DEBUG: total: 0.2199999988079071 15:48:40 INFO: Retrieving Stack Cost... 15:48:40 INFO: Retrieving Pricing Info for: v3-standard-8 15:48:41 INFO: Archiving Costs [Pipeline] echo 15:48:41 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 15:48:41 ---> logs-deploy.sh 15:48:41 lf-activate-venv: SKIPPING 15:48:41 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/main/33 15:48:41 INFO: archiving workspace using pattern(s): 15:48:42 Archives upload complete. 15:48:42 INFO: archiving logs to Nexus