Branch indexing Connecting to https://api.github.com using edgex-jenkins github personal access token Obtained Jenkinsfile from 16d0f59c65e85c4618cac72dec8e5020fa81a1d7+238d080d640a7e3d9ba0ccf186e4988c74ba76ef (fdc10a5ca115b14cd43ec4d6952b8c49cb110d5b) 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-ssh1174002985526199319.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-ssh12317993035836684981.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/PR-174/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/PR-174/workspace@libs/edgex-global-pipelines@tmp/jenkins-gitclient-ssh7784450725070775571.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-ssh13610903353019391266.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/PR-174/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/PR-174/workspace@libs/lf-pipelines@tmp/jenkins-gitclient-ssh15851473610299844692.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 Still waiting to schedule task All nodes of label ‘ubuntu20.04-docker-8c-8g’ are offline Running on prd-ubuntu20.04-docker-8c-8g-20914 in /w/workspace/gexfoundry_device-rest-go_PR-174 [Pipeline] { [Pipeline] stage [Pipeline] { (Declarative: Checkout SCM) [Pipeline] checkout The recommended git tool is: git using credential edgex-jenkins-ssh Cloning the remote Git repository Cloning repository git@github.com:edgexfoundry/device-rest-go.git > git init /w/workspace/gexfoundry_device-rest-go_PR-174 # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git > git --version # timeout=10 > git --version # 'git version 2.25.1' using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 Merging remotes/origin/main commit 238d080d640a7e3d9ba0ccf186e4988c74ba76ef into PR head commit 16d0f59c65e85c4618cac72dec8e5020fa81a1d7 Merge succeeded, producing 5214d9b1db836e294056fccaeda2a9744dd6ce90 Checking out Revision 5214d9b1db836e294056fccaeda2a9744dd6ce90 (PR-174) > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/174/head:refs/remotes/origin/PR-174 +refs/heads/main:refs/remotes/origin/main # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 16d0f59c65e85c4618cac72dec8e5020fa81a1d7 # timeout=10 > git remote # timeout=10 > git config --get remote.origin.url # timeout=10 using GIT_SSH to set credentials SSH Credentials for GitHub > git merge 238d080d640a7e3d9ba0ccf186e4988c74ba76ef # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 5214d9b1db836e294056fccaeda2a9744dd6ce90 # timeout=10 Commit message: "Merge commit '238d080d640a7e3d9ba0ccf186e4988c74ba76ef' into HEAD" > git rev-list --no-walk 16d0f59c65e85c4618cac72dec8e5020fa81a1d7 # timeout=10 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 03:10:32 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 03:10:33 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 03:10:33 ========================================================= 03:10:33 EdgeX Global Pipelines Version Info 03:10:33 ========================================================= [Pipeline] libraryResource [Pipeline] sh 03:10:33 ------------------- 03:10:33 stable info: 03:10:33 ------------------- 03:10:33 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 03:10:33 Commit SHA: c72b16708d6eed9a08be464a432ce22db7d90667 03:10:33 Message: update stable to v1.0.221 03:10:34 ------------------- 03:10:34 experimental info: 03:10:34 ------------------- 03:10:34 Commited By: **** collab-it+edgex@linuxfoundation.org 03:10:34 Commit SHA: c72b16708d6eed9a08be464a432ce22db7d90667 03:10:34 Message: update experimental to v1.0.221 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 03:10:34 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 03:10:34 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 03:10:34 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 03:10:34 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 03:10:34 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 03:10:34 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.17 [Pipeline] echo 03:10:34 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 03:10:34 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 03:10:34 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 03:10:34 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 03:10:34 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 03:10:34 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 03:10:34 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 03:10:34 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 03:10:34 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 03:10:34 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 03:10:34 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 03:10:34 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 03:10:34 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 03:10:34 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 03:10:34 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 03:10:34 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 03:10:34 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 03:10:34 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 03:10:34 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 03:10:34 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 03:10:34 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-174 [Pipeline] echo 03:10:34 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-174 [Pipeline] echo 03:10:34 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-174 [Pipeline] echo 03:10:34 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 5214d9b1db836e294056fccaeda2a9744dd6ce90 [Pipeline] echo 03:10:34 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 5214d9b [Pipeline] echo 03:10:34 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 03:10:35 provisioning config files... 03:10:35 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-174@tmp/config2759987959095342370tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 03:10:35 ---> docker-login.sh 03:10:35 nexus3.edgexfoundry.org:10001 03:10:35 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:10:35 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:10:35 Configure a credential helper to remove this warning. See 03:10:35 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:10:35 03:10:35 Login Succeeded 03:10:35 nexus3.edgexfoundry.org:10002 03:10:35 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:10:35 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:10:35 Configure a credential helper to remove this warning. See 03:10:35 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:10:35 03:10:35 Login Succeeded 03:10:35 nexus3.edgexfoundry.org:10003 03:10:35 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:10:35 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:10:35 Configure a credential helper to remove this warning. See 03:10:35 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:10:35 03:10:35 Login Succeeded 03:10:35 nexus3.edgexfoundry.org:10004 03:10:35 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:10:36 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:10:36 Configure a credential helper to remove this warning. See 03:10:36 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:10:36 03:10:36 Login Succeeded 03:10:36 docker.io 03:10:36 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:10:36 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:10:36 Configure a credential helper to remove this warning. See 03:10:36 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:10:36 03:10:36 Login Succeeded 03:10:36 ---> docker-login.sh ends [Pipeline] } 03:10:36 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 03:10:36 + git rev-list -1 --merges 5214d9b1db836e294056fccaeda2a9744dd6ce90~1..5214d9b1db836e294056fccaeda2a9744dd6ce90 [Pipeline] echo 03:10:36 -----------> git rev-list -1 --merges 5214d9b1db836e294056fccaeda2a9744dd6ce90~1..5214d9b1db836e294056fccaeda2a9744dd6ce90 5214d9b1db836e294056fccaeda2a9744dd6ce90 03:10:36 5214d9b1db836e294056fccaeda2a9744dd6ce90 [false] [Pipeline] sh 03:10:37 + git log --format=format:%s -1 5214d9b1db836e294056fccaeda2a9744dd6ce90 [Pipeline] echo 03:10:37 ========================================================= 03:10:37 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 03:10:37 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 03:10:37 + git log --format=format:%s -1 5214d9b1db836e294056fccaeda2a9744dd6ce90 [Pipeline] echo 03:10:37 [semverPrep] GIT_COMMIT: 5214d9b1db836e294056fccaeda2a9744dd6ce90, Commit Message: Merge commit '238d080d640a7e3d9ba0ccf186e4988c74ba76ef' into HEAD [Pipeline] echo 03:10:37 [semverPrep] This is not a build commit. [Pipeline] sh 03:10:37 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 03:10:37 + grep -v github /etc/ssh/ssh_known_hosts 03:10:37 + [ -e /tmp/ssh_known_hosts ] 03:10:37 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 03:10:37 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 03:10:37 + sudo tee -a /etc/ssh/ssh_known_hosts 03:10:37 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] sh 03:10:38 + docker inspect -f . nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 03:10:38 03:10:38 Error: No such object: nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] isUnix [Pipeline] sh 03:10:38 + docker pull nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 03:10:38 latest: Pulling from edgex-devops/git-semver 03:10:38 a0d0a0d46f8b: Pulling fs layer 03:10:38 3e5f54012d9b: Pulling fs layer 03:10:38 4c7163046ea9: Pulling fs layer 03:10:38 0c2d73faf560: Pulling fs layer 03:10:38 0c2d73faf560: Waiting 03:10:38 3e5f54012d9b: Verifying Checksum 03:10:38 3e5f54012d9b: Download complete 03:10:38 a0d0a0d46f8b: Verifying Checksum 03:10:38 a0d0a0d46f8b: Download complete 03:10:38 0c2d73faf560: Verifying Checksum 03:10:38 0c2d73faf560: Download complete 03:10:38 4c7163046ea9: Verifying Checksum 03:10:38 4c7163046ea9: Download complete 03:10:38 a0d0a0d46f8b: Pull complete 03:10:38 3e5f54012d9b: Pull complete 03:10:39 4c7163046ea9: Pull complete 03:10:39 0c2d73faf560: Pull complete 03:10:39 Digest: sha256:2751de6e655929dcbe46418c7769d9d992331b5b721eb968631a4166222929f9 03:10:39 Status: Downloaded newer image for nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 03:10:39 nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] withDockerContainer 03:10:39 prd-ubuntu20.04-docker-8c-8g-20914 does not seem to be running inside a container 03:10:39 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/gexfoundry_device-rest-go_PR-174 -v /w/workspace/gexfoundry_device-rest-go_PR-174:/w/workspace/gexfoundry_device-rest-go_PR-174:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-174@tmp:/w/workspace/gexfoundry_device-rest-go_PR-174@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest cat 03:10:40 $ docker top 515622cd32b713dc3e5cab4853b5aa58ff69e5ef5fe46f5e63471b026ae5fb89 -eo pid,comm [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 03:10:40 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 03:10:40 [ssh-agent] Looking for ssh-agent implementation... 03:10:40 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 03:10:40 $ docker exec 515622cd32b713dc3e5cab4853b5aa58ff69e5ef5fe46f5e63471b026ae5fb89 ssh-agent 03:10:40 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXKCJPbG/agent.14 03:10:40 SSH_AGENT_PID=21 03:10:40 Running ssh-add (command line suppressed) 03:10:40 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-174@tmp/private_key_2924371918725932682.key (/w/workspace/gexfoundry_device-rest-go_PR-174@tmp/private_key_2924371918725932682.key) 03:10:40 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 03:10:40 + git tag --points-at HEAD [Pipeline] } 03:10:41 $ docker exec --env ******** --env ******** 515622cd32b713dc3e5cab4853b5aa58ff69e5ef5fe46f5e63471b026ae5fb89 ssh-agent -k 03:10:41 unset SSH_AUTH_SOCK; 03:10:41 unset SSH_AGENT_PID; 03:10:41 echo Agent pid 21 killed; 03:10:41 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 03:10:41 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 03:10:41 [ssh-agent] Looking for ssh-agent implementation... 03:10:41 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 03:10:41 $ docker exec 515622cd32b713dc3e5cab4853b5aa58ff69e5ef5fe46f5e63471b026ae5fb89 ssh-agent 03:10:41 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXciiOlO/agent.53 03:10:41 SSH_AGENT_PID=59 03:10:41 Running ssh-add (command line suppressed) 03:10:41 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-174@tmp/private_key_564715614303785618.key (/w/workspace/gexfoundry_device-rest-go_PR-174@tmp/private_key_564715614303785618.key) 03:10:41 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 03:10:41 + git semver init 03:10:41 # -> Open(): unable to determine branch for HEAD 03:10:41 # $GIT_DIR = /w/workspace/gexfoundry_device-rest-go_PR-174/.git 03:10:41 # $GIT_WORK_TREE = /w/workspace/gexfoundry_device-rest-go_PR-174 03:10:41 # $SEMVER_REMOTE_NAME = origin 03:10:41 # $SEMVER_USER_EMAIL = collab-it+edgex@linuxfoundation.org 03:10:41 # $SEMVER_USER_NAME = edgex-jenkins 03:10:41 # $SEMVER_BRANCH = PR-174 03:10:41 # $SEMVER_TEMP = /tmp/semver-482035609 03:10:41 # git clone --branch semver git@github.com:edgexfoundry/device-rest-go.git $SEMVER_TEMP 03:10:43 # '/tmp/semver-482035609' -> '/w/workspace/gexfoundry_device-rest-go_PR-174/.semver' 03:10:43 # -> Force: false 03:10:43 # $SEMVER_DIR = /w/workspace/gexfoundry_device-rest-go_PR-174/.semver [Pipeline] } 03:10:43 $ docker exec --env ******** --env ******** 515622cd32b713dc3e5cab4853b5aa58ff69e5ef5fe46f5e63471b026ae5fb89 ssh-agent -k 03:10:43 unset SSH_AUTH_SOCK; 03:10:43 unset SSH_AGENT_PID; 03:10:43 echo Agent pid 59 killed; 03:10:43 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 03:10:43 + git semver [Pipeline] } 03:10:43 $ docker stop --time=1 515622cd32b713dc3e5cab4853b5aa58ff69e5ef5fe46f5e63471b026ae5fb89 03:10:45 $ docker rm -f 515622cd32b713dc3e5cab4853b5aa58ff69e5ef5fe46f5e63471b026ae5fb89 [Pipeline] // withDockerContainer [Pipeline] sh 03:10:45 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 03:10:45 Stashed 1 file(s) [Pipeline] echo 03:10:45 [edgeXSemver]: initialized semver on version 0.0.0 [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] parallel [Pipeline] { (Branch: amd64) [Pipeline] { (Branch: arm64) [Pipeline] stage [Pipeline] { (amd64) [Pipeline] stage [Pipeline] { (arm64) [Pipeline] withEnv [Pipeline] { [Pipeline] node [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 03:10:45 provisioning config files... 03:10:45 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-174@tmp/config4158591830846944695tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 03:10:46 ---> docker-login.sh 03:10:46 nexus3.edgexfoundry.org:10001 03:10:46 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:10:46 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:10:46 Configure a credential helper to remove this warning. See 03:10:46 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:10:46 03:10:46 Login Succeeded 03:10:46 nexus3.edgexfoundry.org:10002 03:10:46 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:10:46 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:10:46 Configure a credential helper to remove this warning. See 03:10:46 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:10:46 03:10:46 Login Succeeded 03:10:46 nexus3.edgexfoundry.org:10003 03:10:46 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:10:46 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:10:46 Configure a credential helper to remove this warning. See 03:10:46 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:10:46 03:10:46 Login Succeeded 03:10:46 nexus3.edgexfoundry.org:10004 03:10:46 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:10:46 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:10:46 Configure a credential helper to remove this warning. See 03:10:46 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:10:46 03:10:46 Login Succeeded 03:10:46 docker.io 03:10:46 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:10:46 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:10:46 Configure a credential helper to remove this warning. See 03:10:46 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:10:46 03:10:46 Login Succeeded 03:10:46 ---> docker-login.sh ends [Pipeline] } 03:10:46 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 03:10:46 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 03:10:46 ========================================================= 03:10:46 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine] 03:10:46 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 03:10:47 + docker build -t ci-base-image-x86_64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine --build-arg MAKE=echo noop --target=builder . 03:10:47 Sending build context to Docker daemon 10.58MB 03:10:47 Step 1/12 : ARG BASE=golang:1.17-alpine3.15 03:10:47 Step 2/12 : FROM ${BASE} AS builder 03:10:47 1.17-alpine: Pulling from edgex-devops/edgex-golang-base 03:10:47 59bf1c3509f3: Pulling fs layer 03:10:47 666ba61612fd: Pulling fs layer 03:10:47 8ed8ca486205: Pulling fs layer 03:10:47 4fe6c5a15a65: Pulling fs layer 03:10:47 22a0e8bec74d: Pulling fs layer 03:10:47 4fe6c5a15a65: Waiting 03:10:47 640e595b4fbd: Pulling fs layer 03:10:47 763cafe07f6e: Pulling fs layer 03:10:47 0c0b528cf693: Pulling fs layer 03:10:47 10935f4eaf8b: Pulling fs layer 03:10:47 640e595b4fbd: Waiting 03:10:47 763cafe07f6e: Waiting 03:10:47 10935f4eaf8b: Waiting 03:10:47 8ed8ca486205: Verifying Checksum 03:10:47 8ed8ca486205: Download complete 03:10:47 666ba61612fd: Verifying Checksum 03:10:47 666ba61612fd: Download complete 03:10:47 22a0e8bec74d: Verifying Checksum 03:10:47 22a0e8bec74d: Download complete 03:10:47 640e595b4fbd: Verifying Checksum 03:10:47 640e595b4fbd: Download complete 03:10:47 59bf1c3509f3: Verifying Checksum 03:10:47 59bf1c3509f3: Download complete 03:10:47 763cafe07f6e: Verifying Checksum 03:10:47 763cafe07f6e: Download complete 03:10:47 59bf1c3509f3: Pull complete 03:10:47 0c0b528cf693: Verifying Checksum 03:10:47 0c0b528cf693: Download complete 03:10:47 666ba61612fd: Pull complete 03:10:48 8ed8ca486205: Pull complete 03:10:48 10935f4eaf8b: Verifying Checksum 03:10:48 10935f4eaf8b: Download complete 03:10:48 4fe6c5a15a65: Verifying Checksum 03:10:48 4fe6c5a15a65: Download complete 03:10:51 4fe6c5a15a65: Pull complete 03:10:51 22a0e8bec74d: Pull complete 03:10:51 640e595b4fbd: Pull complete 03:10:51 763cafe07f6e: Pull complete 03:10:52 0c0b528cf693: Pull complete 03:10:54 10935f4eaf8b: Pull complete 03:10:54 Digest: sha256:fe2da51ced2bed6c5fc1d1038c2fbec5a5bb29cdcacce78977c37c66bfba8387 03:10:54 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine 03:10:54 ---> 99d49a6021b9 03:10:54 Step 3/12 : ARG MAKE='make build' 03:10:55 ---> Running in 17657eac1bfc 03:10:56 Removing intermediate container 17657eac1bfc 03:10:56 ---> 37f30da50de2 03:10:56 Step 4/12 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 03:10:56 ---> Running in c3ba0d2e42d9 03:10:56 Removing intermediate container c3ba0d2e42d9 03:10:56 ---> d2520e9f04b7 03:10:56 Step 5/12 : ARG ALPINE_PKG_EXTRA="" 03:10:56 ---> Running in 7d9b6432330e 03:10:56 Removing intermediate container 7d9b6432330e 03:10:56 ---> be2eabd28cda 03:10:56 Step 6/12 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 03:10:56 ---> Running in 892a3502aade 03:10:57 Removing intermediate container 892a3502aade 03:10:57 ---> 8b71239ee9bd 03:10:57 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 03:10:57 ---> Running in bce7864508d3 03:10:57 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 03:10:58 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 03:10:58 (1/4) Installing openssh-keygen (8.8_p1-r1) 03:10:58 (2/4) Installing libedit (20210910.3.1-r0) 03:10:58 (3/4) Installing openssh-client-common (8.8_p1-r1) 03:10:58 (4/4) Installing openssh-client-default (8.8_p1-r1) 03:10:58 Executing busybox-1.34.1-r3.trigger 03:10:58 OK: 224 MiB in 56 packages 03:10:59 Removing intermediate container bce7864508d3 03:10:59 ---> 591cfb750b08 03:10:59 Step 8/12 : WORKDIR /device-rest-go 03:10:59 ---> Running in c9e275518df8 03:10:59 Removing intermediate container c9e275518df8 03:10:59 ---> 2670177c08ab 03:10:59 Step 9/12 : COPY go.mod vendor* ./ 03:10:59 ---> 8fd32f396190 03:10:59 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 03:10:59 ---> Running in 5d4d9b59ae50 03:11:00 Still waiting to schedule task 03:11:00 All nodes of label ‘ubuntu20.04-docker-arm64-4c-16g’ are offline 03:11:17 Removing intermediate container 5d4d9b59ae50 03:11:17 ---> 6943457f8019 03:11:17 Step 11/12 : COPY . . 03:11:17 ---> 089a545f4354 03:11:17 Step 12/12 : RUN $MAKE 03:11:17 ---> Running in 32ecd9b07691 03:11:17 noop 03:11:17 Removing intermediate container 32ecd9b07691 03:11:17 ---> ffd39937639c 03:11:17 Successfully built ffd39937639c 03:11:17 Successfully tagged ci-base-image-x86_64:latest [Pipeline] isUnix [Pipeline] sh 03:11:18 + docker inspect -f . ci-base-image-x86_64 03:11:18 . [Pipeline] withDockerContainer 03:11:18 prd-ubuntu20.04-docker-8c-8g-20914 does not seem to be running inside a container 03:11:18 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-174 -v /w/workspace/gexfoundry_device-rest-go_PR-174:/w/workspace/gexfoundry_device-rest-go_PR-174:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-174@tmp:/w/workspace/gexfoundry_device-rest-go_PR-174@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 03:11:18 $ docker top 6611f078f417d930e5564c49fe7c4a909288d17243b31dbe31c81236d2a585f9 -eo pid,comm [Pipeline] { [Pipeline] sh 03:11:19 + go version 03:11:19 go version go1.17.6 linux/amd64 [Pipeline] } 03:11:19 $ docker stop --time=1 6611f078f417d930e5564c49fe7c4a909288d17243b31dbe31c81236d2a585f9 03:11:20 $ docker rm -f 6611f078f417d930e5564c49fe7c4a909288d17243b31dbe31c81236d2a585f9 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 03:11:20 + docker inspect -f . ci-base-image-x86_64 03:11:20 . [Pipeline] withDockerContainer 03:11:20 prd-ubuntu20.04-docker-8c-8g-20914 does not seem to be running inside a container 03:11:20 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-174 -v /w/workspace/gexfoundry_device-rest-go_PR-174:/w/workspace/gexfoundry_device-rest-go_PR-174:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-174@tmp:/w/workspace/gexfoundry_device-rest-go_PR-174@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 03:11:21 $ docker top 3da6fed2288f632ebe581b572da3a084d6827e99de7027f9721ef222acd5ba91 -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 03:11:21 + make test 03:11:21 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out ./... 03:11:22 ? github.com/edgexfoundry/device-rest-go [no test files] 03:11:32 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 03:11:32 ok github.com/edgexfoundry/device-rest-go/driver 0.014s coverage: 55.2% of statements 03:11:39 CGO_ENABLED=1 GO111MODULE=on go vet ./... 03:11:43 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 03:11:43 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 03:11:43 ./bin/test-attribution-txt.sh [Pipeline] echo 03:11:43 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 03:11:43 $ docker stop --time=1 3da6fed2288f632ebe581b572da3a084d6827e99de7027f9721ef222acd5ba91 03:11:45 $ docker rm -f 3da6fed2288f632ebe581b572da3a084d6827e99de7027f9721ef222acd5ba91 [Pipeline] // withDockerContainer [Pipeline] sh 03:11:45 + sudo chown -R jenkins:jenkins . [Pipeline] stash 03:11:45 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 03:11:46 + sudo chown -R jenkins:jenkins . [Pipeline] sh 03:11:46 + ls -al . 03:11:46 total 192 03:11:46 drwxrwxr-x 9 jenkins jenkins 4096 Apr 14 03:11 . 03:11:46 drwxrwxr-x 4 jenkins jenkins 4096 Apr 14 03:10 .. 03:11:46 -rw-rw-r-- 1 jenkins jenkins 151 Apr 14 03:10 .dockerignore 03:11:46 drwxrwxr-x 8 jenkins jenkins 4096 Apr 14 03:10 .git 03:11:46 drwxrwxr-x 3 jenkins jenkins 4096 Apr 14 03:10 .github 03:11:46 -rw-rw-r-- 1 jenkins jenkins 329 Apr 14 03:10 .gitignore 03:11:46 -rw-rw-r-- 1 jenkins jenkins 41 Apr 14 03:10 .golangci.yml 03:11:46 drwx------ 3 jenkins jenkins 4096 Apr 14 03:10 .semver 03:11:46 -rw-rw-r-- 1 jenkins jenkins 8330 Apr 14 03:10 Attribution.txt 03:11:46 -rw-rw-r-- 1 jenkins jenkins 7459 Apr 14 03:10 CHANGELOG.md 03:11:46 -rw-rw-r-- 1 jenkins jenkins 1672 Apr 14 03:10 Dockerfile 03:11:46 -rw-rw-r-- 1 jenkins jenkins 677 Apr 14 03:10 GOVERNANCE.md 03:11:46 -rw-rw-r-- 1 jenkins jenkins 680 Apr 14 03:10 Jenkinsfile 03:11:46 -rw-rw-r-- 1 jenkins jenkins 11340 Apr 14 03:10 LICENSE 03:11:46 -rw-rw-r-- 1 jenkins jenkins 1964 Apr 14 03:10 Makefile 03:11:46 -rw-rw-r-- 1 jenkins jenkins 620 Apr 14 03:10 OWNERS.md 03:11:46 -rw-rw-r-- 1 jenkins jenkins 8246 Apr 14 03:10 README.md 03:11:46 -rw-rw-r-- 1 jenkins jenkins 5 Apr 14 03:10 VERSION 03:11:46 drwxrwxr-x 2 jenkins jenkins 4096 Apr 14 03:10 bin 03:11:46 drwxrwxr-x 3 jenkins jenkins 4096 Apr 14 03:10 cmd 03:11:46 -rw-r--r-- 1 jenkins jenkins 9355 Apr 14 03:11 coverage.out 03:11:46 drwxrwxr-x 2 jenkins jenkins 4096 Apr 14 03:10 driver 03:11:46 -rw-rw-r-- 1 jenkins jenkins 3240 Apr 14 03:10 go.mod 03:11:46 -rw-rw-r-- 1 jenkins jenkins 54276 Apr 14 03:10 go.sum 03:11:46 drwxrwxr-x 3 jenkins jenkins 4096 Apr 14 03:10 snap 03:11:46 -rw-rw-r-- 1 jenkins jenkins 713 Apr 14 03:10 version.go [Pipeline] isUnix [Pipeline] sh 03:11:46 + 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=5214d9b1db836e294056fccaeda2a9744dd6ce90 --label arch=amd64 --label version=0.0.0 . 03:11:46 Sending build context to Docker daemon 10.59MB 03:11:46 Step 1/25 : ARG BASE=golang:1.17-alpine3.15 03:11:46 Step 2/25 : FROM ${BASE} AS builder 03:11:46 ---> ffd39937639c 03:11:46 Step 3/25 : ARG MAKE='make build' 03:11:47 ---> Running in 97c55f0ad019 03:11:47 Removing intermediate container 97c55f0ad019 03:11:47 ---> 7f5080ca4653 03:11:47 Step 4/25 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 03:11:47 ---> Running in d45e5212b08e 03:11:47 Removing intermediate container d45e5212b08e 03:11:47 ---> 10257b9160d5 03:11:47 Step 5/25 : ARG ALPINE_PKG_EXTRA="" 03:11:47 ---> Running in 1841d65c0d46 03:11:47 Removing intermediate container 1841d65c0d46 03:11:47 ---> ae8b4d653f03 03:11:47 Step 6/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 03:11:47 ---> Running in 43f1d052cc7d 03:11:47 Removing intermediate container 43f1d052cc7d 03:11:47 ---> 10c646a93dab 03:11:47 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 03:11:47 ---> Running in 8e9c5f1e37d8 03:11:48 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 03:11:49 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 03:11:49 OK: 224 MiB in 56 packages 03:11:49 Removing intermediate container 8e9c5f1e37d8 03:11:49 ---> 4c37b7bab8ce 03:11:49 Step 8/25 : WORKDIR /device-rest-go 03:11:49 ---> Running in 77edc3386617 03:11:49 Removing intermediate container 77edc3386617 03:11:49 ---> da40a0a88f3b 03:11:49 Step 9/25 : COPY go.mod vendor* ./ 03:11:49 ---> bd4956c81711 03:11:49 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 03:11:49 ---> Running in ab7dd1ae7299 03:11:50 Removing intermediate container ab7dd1ae7299 03:11:50 ---> fa9d1e31a68c 03:11:50 Step 11/25 : COPY . . 03:11:51 ---> 451206ce9ff0 03:11:51 Step 12/25 : RUN $MAKE 03:11:51 ---> Running in c3e11a220372 03:11:51 CGO_ENABLED=1 GO111MODULE=on go build -ldflags "-linkmode=external -X github.com/edgexfoundry/device-rest-go.Version=0.0.0" -trimpath -mod=readonly -buildmode=pie -o cmd/device-rest ./cmd 03:12:13 Removing intermediate container c3e11a220372 03:12:13 ---> 0f0102fbecfa 03:12:13 Step 13/25 : FROM alpine:3.14 03:12:13 3.14: Pulling from library/alpine 03:12:13 8663204ce13b: Pulling fs layer 03:12:13 8663204ce13b: Verifying Checksum 03:12:13 8663204ce13b: Download complete 03:12:13 8663204ce13b: Pull complete 03:12:13 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 03:12:13 Status: Downloaded newer image for alpine:3.14 03:12:13 ---> e04c818066af 03:12:13 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' 03:12:13 ---> Running in 3c6fe9680305 03:12:13 Removing intermediate container 3c6fe9680305 03:12:13 ---> 648978daedf5 03:12:13 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 03:12:13 ---> Running in 652f2a368b36 03:12:13 Removing intermediate container 652f2a368b36 03:12:13 ---> e9a230aa290e 03:12:13 Step 16/25 : RUN apk add --update --no-cache zeromq dumb-init 03:12:13 ---> Running in 0b927d0b9900 03:12:13 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz 03:12:13 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz 03:12:13 (1/6) Installing dumb-init (1.2.5-r1) 03:12:13 (2/6) Installing libgcc (10.3.1_git20210424-r2) 03:12:13 (3/6) Installing libsodium (1.0.18-r0) 03:12:13 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 03:12:13 (5/6) Installing libzmq (4.3.4-r0) 03:12:13 (6/6) Installing zeromq (4.3.4-r0) 03:12:13 Executing busybox-1.33.1-r7.trigger 03:12:13 OK: 8 MiB in 20 packages 03:12:13 Removing intermediate container 0b927d0b9900 03:12:13 ---> 31345c4ac17f 03:12:13 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 03:12:13 ---> 1ff93ac63a97 03:12:13 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 03:12:13 ---> 6f1e7024c7d9 03:12:13 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 03:12:13 ---> efaa7b673ee2 03:12:13 Step 20/25 : EXPOSE 59986 03:12:13 ---> Running in c6f624c9d88e 03:12:13 Removing intermediate container c6f624c9d88e 03:12:13 ---> 700afc925293 03:12:13 Step 21/25 : ENTRYPOINT ["/device-rest"] 03:12:13 ---> Running in aff55074a9fe 03:12:13 Removing intermediate container aff55074a9fe 03:12:13 ---> 16458b628a1f 03:12:13 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--confdir=/res", "--registry"] 03:12:13 ---> Running in a8f730b4e217 03:12:13 Removing intermediate container a8f730b4e217 03:12:13 ---> 6610d8dec3d9 03:12:13 Step 23/25 : LABEL arch=amd64 03:12:13 ---> Running in 62681033f63c 03:12:13 Removing intermediate container 62681033f63c 03:12:13 ---> 7c9f2c30de1a 03:12:13 Step 24/25 : LABEL git_sha=5214d9b1db836e294056fccaeda2a9744dd6ce90 03:12:13 ---> Running in aea4d9ef3058 03:12:14 Removing intermediate container aea4d9ef3058 03:12:14 ---> fac797b2b100 03:12:14 Step 25/25 : LABEL version=0.0.0 03:12:14 ---> Running in 36831fcdb467 03:12:14 Removing intermediate container 36831fcdb467 03:12:14 ---> ae49f513730b 03:12:14 [Warning] One or more build-args [ARCH] were not consumed 03:12:14 Successfully built ae49f513730b 03:12:14 Successfully tagged device-rest:latest [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Docker Push) Stage "Docker Push" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Snap) Stage "Snap" skipped due to when conditional [Pipeline] } [Pipeline] // stage Post stage [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 03:12:14 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 03:12:14 03:12:14 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] sh 03:12:14 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 03:12:14 latest: Pulling from edgex-lftools-log-publisher 03:12:14 5eb5b503b376: Pulling fs layer 03:12:14 5c69ac0246d0: Pulling fs layer 03:12:14 ec43610c2a17: Pulling fs layer 03:12:14 3a2ae6a8a46f: Pulling fs layer 03:12:14 33b1e0a273af: Pulling fs layer 03:12:14 5d3b04190fa2: Pulling fs layer 03:12:14 2f39f015ded8: Pulling fs layer 03:12:14 33b1e0a273af: Waiting 03:12:14 5d3b04190fa2: Waiting 03:12:14 2f39f015ded8: Waiting 03:12:14 3a2ae6a8a46f: Waiting 03:12:14 5c69ac0246d0: Download complete 03:12:14 3a2ae6a8a46f: Verifying Checksum 03:12:14 3a2ae6a8a46f: Download complete 03:12:14 33b1e0a273af: Verifying Checksum 03:12:14 33b1e0a273af: Download complete 03:12:15 5d3b04190fa2: Verifying Checksum 03:12:15 5d3b04190fa2: Download complete 03:12:15 ec43610c2a17: Verifying Checksum 03:12:15 ec43610c2a17: Download complete 03:12:15 5eb5b503b376: Download complete 03:12:15 2f39f015ded8: Verifying Checksum 03:12:15 2f39f015ded8: Download complete 03:12:16 5eb5b503b376: Pull complete 03:12:16 5c69ac0246d0: Pull complete 03:12:16 ec43610c2a17: Pull complete 03:12:17 3a2ae6a8a46f: Pull complete 03:12:17 33b1e0a273af: Pull complete 03:12:17 5d3b04190fa2: Pull complete 03:12:21 2f39f015ded8: Pull complete 03:12:21 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 03:12:21 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 03:12:21 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] withDockerContainer 03:12:21 prd-ubuntu20.04-docker-8c-8g-20914 does not seem to be running inside a container 03:12:21 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/gexfoundry_device-rest-go_PR-174 -v /w/workspace/gexfoundry_device-rest-go_PR-174:/w/workspace/gexfoundry_device-rest-go_PR-174:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-174@tmp:/w/workspace/gexfoundry_device-rest-go_PR-174@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 03:12:23 $ docker top dfaea8d035142bbb5792f0a6aac97c82ab6fe5fe3e7e05bfde16396928cb3456 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 03:12:23 ---> job-cost.sh 03:12:23 lf-activate-venv: SKIPPING 03:12:23 INFO: No Stack... 03:12:24 INFO: Retrieving Pricing Info for: v3-standard-8 03:12:25 INFO: Archiving Costs [Pipeline] sh 03:12:25 + cat /w/workspace/gexfoundry_device-rest-go_PR-174/archives/cost.csv 03:12:25 + cut -d, -f6 [Pipeline] lock 03:12:25 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-174-2-stack-cost] 03:12:25 Resource [jenkins-edgexfoundry-device-rest-go-PR-174-2-stack-cost] did not exist. Created. 03:12:25 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-174-2-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 03:12:25 + echo total: 0.2199999988079071 [Pipeline] stash 03:12:25 Stashed 1 file(s) [Pipeline] } 03:12:25 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-174-2-stack-cost] [Pipeline] // lock [Pipeline] } 03:12:25 $ docker stop --time=1 dfaea8d035142bbb5792f0a6aac97c82ab6fe5fe3e7e05bfde16396928cb3456 03:12:26 $ docker rm -f dfaea8d035142bbb5792f0a6aac97c82ab6fe5fe3e7e05bfde16396928cb3456 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 03:13:37 Running on prd-ubuntu20.04-docker-arm64-4c-16g-20920 in /w/workspace/gexfoundry_device-rest-go_PR-174 [Pipeline] { [Pipeline] ws 03:13:37 Running in /w/workspace/device-rest-go/2 [Pipeline] { [Pipeline] checkout 03:13:37 The recommended git tool is: git 03:13:46 using credential edgex-jenkins-ssh 03:13:46 Cloning the remote Git repository 03:13:46 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 03:13:46 > git init /w/workspace/device-rest-go/2 # timeout=10 03:13:46 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 03:13:46 > git --version # timeout=10 03:13:46 > git --version # 'git version 2.25.1' 03:13:46 using GIT_SSH to set credentials SSH Credentials for GitHub 03:13:46 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 03:13:49 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 03:13:49 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 03:13:49 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 03:13:49 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 03:13:49 using GIT_SSH to set credentials SSH Credentials for GitHub 03:13:49 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/174/head:refs/remotes/origin/PR-174 +refs/heads/main:refs/remotes/origin/main # timeout=10 03:13:49 Merging remotes/origin/main commit 238d080d640a7e3d9ba0ccf186e4988c74ba76ef into PR head commit 16d0f59c65e85c4618cac72dec8e5020fa81a1d7 03:13:50 Merge succeeded, producing ae4493de747ceee80ba4fa0798937d6ad96d7f46 03:13:50 Checking out Revision ae4493de747ceee80ba4fa0798937d6ad96d7f46 (PR-174) 03:13:49 > git config core.sparsecheckout # timeout=10 03:13:49 > git checkout -f 16d0f59c65e85c4618cac72dec8e5020fa81a1d7 # timeout=10 03:13:49 > git remote # timeout=10 03:13:49 > git config --get remote.origin.url # timeout=10 03:13:49 using GIT_SSH to set credentials SSH Credentials for GitHub 03:13:49 > git merge 238d080d640a7e3d9ba0ccf186e4988c74ba76ef # timeout=10 03:13:50 > git rev-parse HEAD^{commit} # timeout=10 03:13:50 > git config core.sparsecheckout # timeout=10 03:13:50 > git checkout -f ae4493de747ceee80ba4fa0798937d6ad96d7f46 # timeout=10 03:13:54 Commit message: "Merge commit '238d080d640a7e3d9ba0ccf186e4988c74ba76ef' into HEAD" 03:13:54 > git rev-list --no-walk 16d0f59c65e85c4618cac72dec8e5020fa81a1d7 # timeout=10 [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 03:13:55 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 03:13:55 % Total % Received % Xferd Average Speed Time Time Time Current 03:13:55 Dload Upload Total Spent Left Speed 03:13:55 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 11843 100 11843 0 0 210k 0 --:--:-- --:--:-- --:--:-- 214k [Pipeline] sh 03:13:56 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 03:13:56 + sudo tee /etc/docker/daemon.new 03:13:56 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 03:13:56 { 03:13:56 "registry-mirrors": [ 03:13:56 "https://nexus3.edgexfoundry.org:10001" 03:13:56 ], 03:13:56 "bip": "10.250.0.254/24", 03:13:56 "hosts": [ 03:13:56 "tcp://0.0.0.0:5555", 03:13:56 "unix:///var/run/docker.sock" 03:13:56 ], 03:13:56 "mtu": 1458, 03:13:56 "selinux-enabled": true, 03:13:56 "seccomp-profile": "/etc/docker/seccomp.json" 03:13:56 } [Pipeline] sh 03:13:56 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 03:13:57 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 03:14:15 provisioning config files... 03:14:15 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/2@tmp/config6859017657853801773tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 03:14:16 ---> docker-login.sh 03:14:16 nexus3.edgexfoundry.org:10001 03:14:16 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:14:17 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:14:17 Configure a credential helper to remove this warning. See 03:14:17 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:14:17 03:14:17 Login Succeeded 03:14:17 nexus3.edgexfoundry.org:10002 03:14:17 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:14:17 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:14:17 Configure a credential helper to remove this warning. See 03:14:17 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:14:17 03:14:17 Login Succeeded 03:14:17 nexus3.edgexfoundry.org:10003 03:14:18 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:14:18 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:14:18 Configure a credential helper to remove this warning. See 03:14:18 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:14:18 03:14:18 Login Succeeded 03:14:18 nexus3.edgexfoundry.org:10004 03:14:18 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:14:18 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:14:18 Configure a credential helper to remove this warning. See 03:14:18 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:14:18 03:14:18 Login Succeeded 03:14:18 docker.io 03:14:19 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 03:14:19 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 03:14:19 Configure a credential helper to remove this warning. See 03:14:19 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 03:14:19 03:14:19 Login Succeeded 03:14:19 ---> docker-login.sh ends [Pipeline] } 03:14:19 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 03:14:20 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 03:14:20 ========================================================= 03:14:20 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine] 03:14:20 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 03:14:20 + docker build -t ci-base-image-arm64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine --build-arg MAKE=echo noop --target=builder . 03:14:20 Sending build context to Docker daemon 129.5kB 03:14:20 Step 1/12 : ARG BASE=golang:1.17-alpine3.15 03:14:20 Step 2/12 : FROM ${BASE} AS builder 03:14:20 1.17-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 03:14:20 9b3977197b4f: Pulling fs layer 03:14:20 1a89e8eeedd5: Pulling fs layer 03:14:20 94645a83ff95: Pulling fs layer 03:14:20 3f3a8bcf1eab: Pulling fs layer 03:14:20 0c92f367c5e7: Pulling fs layer 03:14:20 f7c0051592d6: Pulling fs layer 03:14:20 a227ed2f7395: Pulling fs layer 03:14:20 7b1c46037f91: Pulling fs layer 03:14:20 3f3a8bcf1eab: Waiting 03:14:20 0c92f367c5e7: Waiting 03:14:20 f7c0051592d6: Waiting 03:14:20 a227ed2f7395: Waiting 03:14:20 7b1c46037f91: Waiting 03:14:20 94645a83ff95: Verifying Checksum 03:14:20 94645a83ff95: Download complete 03:14:20 1a89e8eeedd5: Verifying Checksum 03:14:20 1a89e8eeedd5: Download complete 03:14:20 0c92f367c5e7: Verifying Checksum 03:14:20 0c92f367c5e7: Download complete 03:14:20 f7c0051592d6: Verifying Checksum 03:14:20 f7c0051592d6: Download complete 03:14:20 9b3977197b4f: Verifying Checksum 03:14:20 9b3977197b4f: Download complete 03:14:20 a227ed2f7395: Download complete 03:14:21 9b3977197b4f: Pull complete 03:14:22 1a89e8eeedd5: Pull complete 03:14:22 94645a83ff95: Pull complete 03:14:23 7b1c46037f91: Verifying Checksum 03:14:23 7b1c46037f91: Download complete 03:14:23 3f3a8bcf1eab: Verifying Checksum 03:14:23 3f3a8bcf1eab: Download complete 03:14:36 3f3a8bcf1eab: Pull complete 03:14:36 0c92f367c5e7: Pull complete 03:14:36 f7c0051592d6: Pull complete 03:14:36 a227ed2f7395: Pull complete 03:14:42 7b1c46037f91: Pull complete 03:14:42 Digest: sha256:72afd471f6932efc3b14a707e53dab7ff98911016b282aefa83be7c085db88fe 03:14:42 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine 03:14:42 ---> f79e39bc4007 03:14:42 Step 3/12 : ARG MAKE='make build' 03:14:44 ---> Running in b2db13386f4b 03:14:44 Removing intermediate container b2db13386f4b 03:14:44 ---> dea71727ae3f 03:14:44 Step 4/12 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 03:14:44 ---> Running in 621054c00395 03:14:45 Removing intermediate container 621054c00395 03:14:45 ---> f0d314ae2bb8 03:14:45 Step 5/12 : ARG ALPINE_PKG_EXTRA="" 03:14:45 ---> Running in 03a6fc839d5e 03:14:45 Removing intermediate container 03a6fc839d5e 03:14:45 ---> 52d0bfb74790 03:14:45 Step 6/12 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 03:14:45 ---> Running in b57e161e66da 03:14:47 Removing intermediate container b57e161e66da 03:14:47 ---> 0c88cd1f0715 03:14:47 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 03:14:47 ---> Running in 39431e464d26 03:14:49 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 03:14:49 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 03:14:50 (1/4) Installing openssh-keygen (8.8_p1-r1) 03:14:50 (2/4) Installing libedit (20210910.3.1-r0) 03:14:50 (3/4) Installing openssh-client-common (8.8_p1-r1) 03:14:51 (4/4) Installing openssh-client-default (8.8_p1-r1) 03:14:51 Executing busybox-1.34.1-r3.trigger 03:14:51 OK: 224 MiB in 56 packages 03:14:52 Removing intermediate container 39431e464d26 03:14:52 ---> 96dc3fb6736b 03:14:52 Step 8/12 : WORKDIR /device-rest-go 03:14:52 ---> Running in 4cd53d41a204 03:14:52 Removing intermediate container 4cd53d41a204 03:14:52 ---> 089e3335632c 03:14:52 Step 9/12 : COPY go.mod vendor* ./ 03:14:53 ---> a5c02c5e93c8 03:14:53 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 03:14:53 ---> Running in 66fa150b0b69 03:15:50 Removing intermediate container 66fa150b0b69 03:15:50 ---> e08b3b749b0c 03:15:50 Step 11/12 : COPY . . 03:15:50 ---> bd392c81dd5e 03:15:50 Step 12/12 : RUN $MAKE 03:15:50 ---> Running in 02f46a977b95 03:15:50 noop 03:15:50 Removing intermediate container 02f46a977b95 03:15:50 ---> 37bd57f9d491 03:15:50 Successfully built 37bd57f9d491 03:15:50 Successfully tagged ci-base-image-arm64:latest [Pipeline] isUnix [Pipeline] sh 03:15:50 + docker inspect -f . ci-base-image-arm64 03:15:50 . [Pipeline] withDockerContainer 03:15:50 prd-ubuntu20.04-docker-arm64-4c-16g-20920 does not seem to be running inside a container 03:15:51 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/2 -v /w/workspace/device-rest-go/2:/w/workspace/device-rest-go/2:rw,z -v /w/workspace/device-rest-go/2@tmp:/w/workspace/device-rest-go/2@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 03:15:52 $ docker top da60aef493f48b8ab4d098b29dd167d7074bf69b400eedc97da5b475b66593d8 -eo pid,comm [Pipeline] { [Pipeline] sh 03:15:53 + go version 03:15:53 go version go1.17.6 linux/arm64 [Pipeline] } 03:15:53 $ docker stop --time=1 da60aef493f48b8ab4d098b29dd167d7074bf69b400eedc97da5b475b66593d8 03:15:55 $ docker rm -f da60aef493f48b8ab4d098b29dd167d7074bf69b400eedc97da5b475b66593d8 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 03:15:55 + docker inspect -f . ci-base-image-arm64 03:15:55 . [Pipeline] withDockerContainer 03:15:56 prd-ubuntu20.04-docker-arm64-4c-16g-20920 does not seem to be running inside a container 03:15:56 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/2 -v /w/workspace/device-rest-go/2:/w/workspace/device-rest-go/2:rw,z -v /w/workspace/device-rest-go/2@tmp:/w/workspace/device-rest-go/2@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 03:15:57 $ docker top d17b163e388e01ed42e4b74dc3952dd71f41bc7ca38701d1f444657713bdb6ea -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 03:15:58 + make test 03:15:58 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out ./... 03:16:00 ? github.com/edgexfoundry/device-rest-go [no test files] 03:17:37 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 03:17:37 ok github.com/edgexfoundry/device-rest-go/driver 0.073s coverage: 55.2% of statements 03:17:37 WARNING: Linting skipped (not on x86_64 or linter not installed) 03:17:37 CGO_ENABLED=1 GO111MODULE=on go vet ./... 03:18:04 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 03:18:04 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 03:18:04 ./bin/test-attribution-txt.sh [Pipeline] echo 03:18:04 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 03:18:04 $ docker stop --time=1 d17b163e388e01ed42e4b74dc3952dd71f41bc7ca38701d1f444657713bdb6ea 03:18:06 $ docker rm -f d17b163e388e01ed42e4b74dc3952dd71f41bc7ca38701d1f444657713bdb6ea [Pipeline] // withDockerContainer [Pipeline] sh 03:18:08 + sudo chown -R jenkins:jenkins . [Pipeline] stash 03:18:08 Warning: overwriting stash ‘coverage-report’ 03:18:08 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 03:18:09 + sudo chown -R jenkins:jenkins . [Pipeline] sh 03:18:09 + ls -al . 03:18:09 total 188 03:18:09 drwxrwxr-x 8 jenkins jenkins 4096 Apr 14 03:18 . 03:18:09 drwxrwxr-x 4 jenkins jenkins 4096 Apr 14 03:13 .. 03:18:09 -rw-rw-r-- 1 jenkins jenkins 151 Apr 14 03:13 .dockerignore 03:18:09 drwxrwxr-x 8 jenkins jenkins 4096 Apr 14 03:13 .git 03:18:09 drwxrwxr-x 3 jenkins jenkins 4096 Apr 14 03:13 .github 03:18:09 -rw-rw-r-- 1 jenkins jenkins 329 Apr 14 03:13 .gitignore 03:18:09 -rw-rw-r-- 1 jenkins jenkins 41 Apr 14 03:13 .golangci.yml 03:18:09 -rw-rw-r-- 1 jenkins jenkins 8330 Apr 14 03:13 Attribution.txt 03:18:09 -rw-rw-r-- 1 jenkins jenkins 7459 Apr 14 03:13 CHANGELOG.md 03:18:09 -rw-rw-r-- 1 jenkins jenkins 1672 Apr 14 03:13 Dockerfile 03:18:09 -rw-rw-r-- 1 jenkins jenkins 677 Apr 14 03:13 GOVERNANCE.md 03:18:09 -rw-rw-r-- 1 jenkins jenkins 680 Apr 14 03:13 Jenkinsfile 03:18:09 -rw-rw-r-- 1 jenkins jenkins 11340 Apr 14 03:13 LICENSE 03:18:09 -rw-rw-r-- 1 jenkins jenkins 1964 Apr 14 03:13 Makefile 03:18:09 -rw-rw-r-- 1 jenkins jenkins 620 Apr 14 03:13 OWNERS.md 03:18:09 -rw-rw-r-- 1 jenkins jenkins 8246 Apr 14 03:13 README.md 03:18:09 -rw-rw-r-- 1 jenkins jenkins 5 Apr 14 03:10 VERSION 03:18:09 drwxrwxr-x 2 jenkins jenkins 4096 Apr 14 03:13 bin 03:18:09 drwxrwxr-x 3 jenkins jenkins 4096 Apr 14 03:13 cmd 03:18:09 -rw-r--r-- 1 jenkins jenkins 9355 Apr 14 03:17 coverage.out 03:18:09 drwxrwxr-x 2 jenkins jenkins 4096 Apr 14 03:13 driver 03:18:09 -rw-rw-r-- 1 jenkins jenkins 3240 Apr 14 03:13 go.mod 03:18:09 -rw-rw-r-- 1 jenkins jenkins 54276 Apr 14 03:13 go.sum 03:18:09 drwxrwxr-x 3 jenkins jenkins 4096 Apr 14 03:13 snap 03:18:09 -rw-rw-r-- 1 jenkins jenkins 713 Apr 14 03:13 version.go [Pipeline] isUnix [Pipeline] sh 03:18:09 + 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=ae4493de747ceee80ba4fa0798937d6ad96d7f46 --label arch=arm64 --label version=0.0.0 . 03:18:09 Sending build context to Docker daemon 139.8kB 03:18:10 Step 1/25 : ARG BASE=golang:1.17-alpine3.15 03:18:10 Step 2/25 : FROM ${BASE} AS builder 03:18:10 ---> 37bd57f9d491 03:18:10 Step 3/25 : ARG MAKE='make build' 03:18:10 ---> Running in 6b1a13eb44c6 03:18:10 Removing intermediate container 6b1a13eb44c6 03:18:10 ---> 7e28eecd9fc9 03:18:10 Step 4/25 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 03:18:10 ---> Running in d8e3329aaf60 03:18:11 Removing intermediate container d8e3329aaf60 03:18:11 ---> 070fd10a356a 03:18:11 Step 5/25 : ARG ALPINE_PKG_EXTRA="" 03:18:11 ---> Running in dc74d5482144 03:18:11 Removing intermediate container dc74d5482144 03:18:11 ---> 21518db8847c 03:18:11 Step 6/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 03:18:11 ---> Running in 3742e9819ed0 03:18:13 Removing intermediate container 3742e9819ed0 03:18:13 ---> 8f5fda762e19 03:18:13 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 03:18:13 ---> Running in cbaa20fc819b 03:18:14 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 03:18:15 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 03:18:17 OK: 224 MiB in 56 packages 03:18:17 Removing intermediate container cbaa20fc819b 03:18:17 ---> eb4cb15b26d9 03:18:17 Step 8/25 : WORKDIR /device-rest-go 03:18:18 ---> Running in 3529ccf533a2 03:18:18 Removing intermediate container 3529ccf533a2 03:18:18 ---> d919eae9d993 03:18:18 Step 9/25 : COPY go.mod vendor* ./ 03:18:19 ---> 503802e75208 03:18:19 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 03:18:19 ---> Running in 6dfda4777992 03:18:21 Removing intermediate container 6dfda4777992 03:18:21 ---> 6869ef5ee05c 03:18:21 Step 11/25 : COPY . . 03:18:22 ---> 933a379c7daf 03:18:22 Step 12/25 : RUN $MAKE 03:18:22 ---> Running in dc860ee12000 03:18:23 CGO_ENABLED=1 GO111MODULE=on go build -ldflags "-linkmode=external -X github.com/edgexfoundry/device-rest-go.Version=0.0.0" -trimpath -mod=readonly -buildmode=pie -o cmd/device-rest ./cmd 03:20:45 Removing intermediate container dc860ee12000 03:20:45 ---> ea07c9ff4d84 03:20:45 Step 13/25 : FROM alpine:3.14 03:20:45 3.14: Pulling from library/alpine 03:20:45 455c02918c45: Pulling fs layer 03:20:45 455c02918c45: Download complete 03:20:45 455c02918c45: Pull complete 03:20:45 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 03:20:45 Status: Downloaded newer image for alpine:3.14 03:20:45 ---> ac73e934f311 03:20:45 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' 03:20:45 ---> Running in ee6c538b873d 03:20:45 Removing intermediate container ee6c538b873d 03:20:45 ---> 5a88c865884e 03:20:45 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 03:20:45 ---> Running in fa6e65e562f6 03:20:45 Removing intermediate container fa6e65e562f6 03:20:45 ---> 2986b0dc595e 03:20:45 Step 16/25 : RUN apk add --update --no-cache zeromq dumb-init 03:20:45 ---> Running in 2bb70e42919b 03:20:47 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/aarch64/APKINDEX.tar.gz 03:20:47 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/aarch64/APKINDEX.tar.gz 03:20:48 (1/6) Installing dumb-init (1.2.5-r1) 03:20:48 (2/6) Installing libgcc (10.3.1_git20210424-r2) 03:20:48 (3/6) Installing libsodium (1.0.18-r0) 03:20:48 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 03:20:48 (5/6) Installing libzmq (4.3.4-r0) 03:20:48 (6/6) Installing zeromq (4.3.4-r0) 03:20:48 Executing busybox-1.33.1-r7.trigger 03:20:48 OK: 8 MiB in 20 packages 03:20:49 Removing intermediate container 2bb70e42919b 03:20:49 ---> ca30b6e9b027 03:20:49 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 03:20:50 ---> b05d73ce9e72 03:20:50 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 03:20:51 ---> 5b03d7755888 03:20:51 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 03:20:51 ---> 77cfe9a66b12 03:20:51 Step 20/25 : EXPOSE 59986 03:20:52 ---> Running in 54868afb0680 03:20:52 Removing intermediate container 54868afb0680 03:20:52 ---> 85719fcf044b 03:20:52 Step 21/25 : ENTRYPOINT ["/device-rest"] 03:20:52 ---> Running in e33b129b9d2a 03:20:52 Removing intermediate container e33b129b9d2a 03:20:52 ---> 58b791d3a32d 03:20:52 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--confdir=/res", "--registry"] 03:20:52 ---> Running in bef30c76d7f2 03:20:53 Removing intermediate container bef30c76d7f2 03:20:53 ---> eff8b42caf58 03:20:53 Step 23/25 : LABEL arch=arm64 03:20:53 ---> Running in 9729f578d6fd 03:20:53 Removing intermediate container 9729f578d6fd 03:20:53 ---> 4d3fa76e8a84 03:20:53 Step 24/25 : LABEL git_sha=ae4493de747ceee80ba4fa0798937d6ad96d7f46 03:20:53 ---> Running in f94692a325f7 03:20:54 Removing intermediate container f94692a325f7 03:20:54 ---> 7c53b38bd7db 03:20:54 Step 25/25 : LABEL version=0.0.0 03:20:54 ---> Running in a55c3b820ea6 03:20:54 Removing intermediate container a55c3b820ea6 03:20:54 ---> 60ad9c4a9697 03:20:54 [Warning] One or more build-args [ARCH] were not consumed 03:20:54 Successfully built 60ad9c4a9697 03:20:54 Successfully tagged device-rest-arm64:latest [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Docker Push) Stage "Docker Push" skipped due to when conditional [Pipeline] } [Pipeline] // stage Post stage [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 03:20:54 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 03:20:54 03:20:54 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] sh 03:20:55 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 03:20:55 arm64: Pulling from edgex-lftools-log-publisher 03:20:55 8998bd30e6a1: Pulling fs layer 03:20:55 04944245beec: Pulling fs layer 03:20:55 699f458cf7ca: Pulling fs layer 03:20:55 765212b225bb: Pulling fs layer 03:20:55 f23df028b6ca: Pulling fs layer 03:20:55 d65c8cfc05b1: Pulling fs layer 03:20:55 2437ff75d9bd: Pulling fs layer 03:20:55 765212b225bb: Waiting 03:20:55 f23df028b6ca: Waiting 03:20:55 d65c8cfc05b1: Waiting 03:20:55 2437ff75d9bd: Waiting 03:20:55 04944245beec: Verifying Checksum 03:20:55 04944245beec: Download complete 03:20:55 765212b225bb: Verifying Checksum 03:20:55 765212b225bb: Download complete 03:20:55 f23df028b6ca: Verifying Checksum 03:20:55 f23df028b6ca: Download complete 03:20:55 d65c8cfc05b1: Verifying Checksum 03:20:55 d65c8cfc05b1: Download complete 03:20:55 699f458cf7ca: Verifying Checksum 03:20:55 699f458cf7ca: Download complete 03:20:55 8998bd30e6a1: Verifying Checksum 03:20:55 8998bd30e6a1: Download complete 03:20:58 2437ff75d9bd: Verifying Checksum 03:20:58 2437ff75d9bd: Download complete 03:21:00 8998bd30e6a1: Pull complete 03:21:00 04944245beec: Pull complete 03:21:02 699f458cf7ca: Pull complete 03:21:02 765212b225bb: Pull complete 03:21:03 f23df028b6ca: Pull complete 03:21:03 d65c8cfc05b1: Pull complete 03:21:18 2437ff75d9bd: Pull complete 03:21:18 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 03:21:18 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 03:21:18 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] withDockerContainer 03:21:18 prd-ubuntu20.04-docker-arm64-4c-16g-20920 does not seem to be running inside a container 03:21:18 $ 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/2 -v /w/workspace/device-rest-go/2:/w/workspace/device-rest-go/2:rw,z -v /w/workspace/device-rest-go/2@tmp:/w/workspace/device-rest-go/2@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 03:21:22 $ docker top 86d624de4d3dd1f4ac21bfb17d137b01a1f07493a93a68ddcd6605f41f7712d9 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 03:21:23 ---> job-cost.sh 03:21:23 lf-activate-venv: SKIPPING 03:21:23 INFO: No Stack... 03:21:23 INFO: Retrieving Pricing Info for: v3-standard-4 03:21:24 INFO: Archiving Costs [Pipeline] sh 03:21:25 + cat /w/workspace/device-rest-go/2/archives/cost.csv 03:21:25 + cut -d, -f6 [Pipeline] lock 03:21:25 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-174-2-stack-cost] 03:21:25 Resource [jenkins-edgexfoundry-device-rest-go-PR-174-2-stack-cost] did not exist. Created. 03:21:25 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-174-2-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 03:21:26 /w/workspace/device-rest-go/2@tmp/durable-eb8865bb/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 03:21:26 + echo total: 0.10999999940395355 [Pipeline] stash 03:21:26 Warning: overwriting stash ‘stack-cost’ 03:21:26 Stashed 1 file(s) [Pipeline] } 03:21:26 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-174-2-stack-cost] [Pipeline] // lock [Pipeline] } 03:21:26 $ docker stop --time=1 86d624de4d3dd1f4ac21bfb17d137b01a1f07493a93a68ddcd6605f41f7712d9 03:21:28 $ docker rm -f 86d624de4d3dd1f4ac21bfb17d137b01a1f07493a93a68ddcd6605f41f7712d9 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // ws [Pipeline] } [Pipeline] // node [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // parallel [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (CodeCov) [Pipeline] unstash [Pipeline] configFileProvider 03:21:29 provisioning config files... 03:21:29 copy managed file [device-rest-go-codecov-token] to file:/w/workspace/gexfoundry_device-rest-go_PR-174@tmp/config5251480160283901935tmp [Pipeline] { [Pipeline] sh 03:21:29 + set +x 03:21:29 + curl -s https://codecov.io/bash 03:21:29 + bash -s -- 03:21:29 03:21:29 _____ _ 03:21:29 / ____| | | 03:21:29 | | ___ __| | ___ ___ _____ __ 03:21:29 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 03:21:29 | |___| (_) | (_| | __/ (_| (_) \ V / 03:21:29 \_____\___/ \__,_|\___|\___\___/ \_/ 03:21:29 Bash-1.0.6 03:21:29 03:21:29 03:21:29 ==> git version 2.25.1 found 03:21:29 ==> curl 7.68.0 (x86_64-pc-linux-gnu) libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3 03:21:29 Release-Date: 2020-01-08 03:21:29 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 03:21:29 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 03:21:29 ==> Jenkins CI detected. 03:21:29 current dir:  /w/workspace/gexfoundry_device-rest-go_PR-174 03:21:29 project root: . 03:21:29 --> token set from env 03:21:29 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 03:21:29 ==> Running gcov in . (disable via -X gcov) 03:21:29 ==> Python coveragepy not found 03:21:29 ==> Searching for coverage reports in: 03:21:29 + . 03:21:29 -> Found 1 reports 03:21:29 ==> Detecting git/mercurial file structure 03:21:29 ==> Reading reports 03:21:29 + ./coverage.out bytes=9355 03:21:29 ==> Appending adjustments 03:21:29 https://docs.codecov.io/docs/fixing-reports 03:21:29 + Found adjustments 03:21:29 ==> Gzipping contents 03:21:29 4.0K /tmp/codecov.kGqqI2.gz 03:21:29 ==> Uploading reports 03:21:29 url: https://codecov.io 03:21:29 query: branch=PR-174&commit=5214d9b1db836e294056fccaeda2a9744dd6ce90&build=2&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-174%2F2%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=174&job=&cmd_args= 03:21:29 -> Pinging Codecov 03:21:29 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=c51feb23-73ac-4f49-b3d1-d26df23137db&branch=PR-174&commit=5214d9b1db836e294056fccaeda2a9744dd6ce90&build=2&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-174%2F2%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=174&job=&cmd_args= 03:21:29 -> Uploading to 03:21:29 https://storage.googleapis.com/codecov/v4/raw/2022-04-14/4E5D53B4F1F92C436F7061BF334D961C/5214d9b1db836e294056fccaeda2a9744dd6ce90/24cc39fe-461d-415f-92f7-8144ea54da63.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20220414%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20220414T032129Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=bb585b1e7a71e2160f538f9b0b0462a294289e7a997d6b66d664b59ea82c1bf7 03:21:29 % Total % Received % Xferd Average Speed Time Time Time Current 03:21:29 Dload Upload Total Spent Left Speed 03:21:29 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 1800 0 0 100 1800 0 8653 --:--:-- --:--:-- --:--:-- 8653 03:21:29 -> Reports have been successfully queued for processing at https://codecov.io/github/edgexfoundry/device-rest-go/commit/5214d9b1db836e294056fccaeda2a9744dd6ce90 [Pipeline] } 03:21:29 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Snyk Dependency Scan) Stage "Snyk Dependency Scan" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Archive Prep) Stage "Archive Prep" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Publish Swagger) Stage "Publish Swagger" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Semver) Stage "Semver" skipped due to when conditional [Pipeline] stage [Pipeline] { (Tag) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Pre-Release Version) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Experimental Tag) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Bump Stable (Named) Tag) Stage "Semver" skipped due to when conditional [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Declarative: Post Actions) [Pipeline] stage [Pipeline] { (LF Post Build Actions) [Pipeline] sh 03:21:30 + [ -d /w/workspace/gexfoundry_device-rest-go_PR-174/archives ] 03:21:30 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-174/archives 03:21:30 total 16 03:21:30 drwxr-xr-x 3 root root 4096 Apr 14 03:12 . 03:21:30 drwxrwxr-x 10 jenkins jenkins 4096 Apr 14 03:12 .. 03:21:30 drwxr-xr-x 2 root root 4096 Apr 14 03:12 cost 03:21:30 -rw-r--r-- 1 root root 85 Apr 14 03:12 cost.csv 03:21:30 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-rest-go_PR-174/archives 03:21:30 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-174/archives 03:21:30 total 16 03:21:30 drwxr-xr-x 3 jenkins jenkins 4096 Apr 14 03:12 . 03:21:30 drwxrwxr-x 10 jenkins jenkins 4096 Apr 14 03:12 .. 03:21:30 drwxr-xr-x 2 jenkins jenkins 4096 Apr 14 03:12 cost 03:21:30 -rw-r--r-- 1 jenkins jenkins 85 Apr 14 03:12 cost.csv [Pipeline] libraryResource [Pipeline] sh 03:21:30 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 03:21:31 ---> package-listing.sh 03:21:31 ++ facter osfamily 03:21:31 ++ tr '[:upper:]' '[:lower:]' 03:21:32 + OS_FAMILY=debian 03:21:32 + workspace=/w/workspace/gexfoundry_device-rest-go_PR-174 03:21:32 + START_PACKAGES=/tmp/packages_start.txt 03:21:32 + END_PACKAGES=/tmp/packages_end.txt 03:21:32 + DIFF_PACKAGES=/tmp/packages_diff.txt 03:21:32 + PACKAGES=/tmp/packages_start.txt 03:21:32 + '[' /w/workspace/gexfoundry_device-rest-go_PR-174 ']' 03:21:32 + PACKAGES=/tmp/packages_end.txt 03:21:32 + case "${OS_FAMILY}" in 03:21:32 + dpkg -l 03:21:32 + grep '^ii' 03:21:32 + '[' -f /tmp/packages_start.txt ']' 03:21:32 + '[' -f /tmp/packages_end.txt ']' 03:21:32 + diff /tmp/packages_start.txt /tmp/packages_end.txt 03:21:32 + '[' /w/workspace/gexfoundry_device-rest-go_PR-174 ']' 03:21:32 + mkdir -p /w/workspace/gexfoundry_device-rest-go_PR-174/archives/ 03:21:32 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/gexfoundry_device-rest-go_PR-174/archives/ [Pipeline] echo 03:21:32 Launching container with: [--privileged -u 0:0 --net host -v /var/log/sysstat:/var/log/sysstat -v /var/log/secure:/var/log/secure -v /var/log/auth.log:/var/log/auth.log -v /w/workspace/gexfoundry_device-rest-go_PR-174/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 03:21:32 + facter operatingsystem [Pipeline] isUnix [Pipeline] sh 03:21:32 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 03:21:32 . [Pipeline] withDockerContainer 03:21:32 prd-ubuntu20.04-docker-8c-8g-20914 does not seem to be running inside a container 03:21:32 $ docker run -t -d -u 1001:1001 --privileged -u 0:0 --net host -v /var/log/sysstat:/var/log/sysstat -v /var/log/secure:/var/log/secure -v /var/log/auth.log:/var/log/auth.log -v /w/workspace/gexfoundry_device-rest-go_PR-174/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/gexfoundry_device-rest-go_PR-174 -v /w/workspace/gexfoundry_device-rest-go_PR-174:/w/workspace/gexfoundry_device-rest-go_PR-174:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-174@tmp:/w/workspace/gexfoundry_device-rest-go_PR-174@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 03:21:33 $ docker top cbfa20541d63ddaa081b7ece44a77ec59be5d078d2748961b1a1c72244f0d597 -eo pid,comm [Pipeline] { [Pipeline] sh 03:21:33 + touch /tmp/pre-build-complete [Pipeline] sh 03:21:33 + mkdir -p /var/log/sysstat [Pipeline] sh 03:21:34 + ls /var/log/sa-host 03:21:34 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 03:21:34 provisioning config files... 03:21:34 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-174@tmp/config7984573495160836395tmp [Pipeline] { [Pipeline] echo 03:21:34 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 03:21:34 ---> create-netrc.sh [Pipeline] } 03:21:34 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 03:21:34 ---> python-tools-install.sh [Pipeline] echo 03:21:34 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 03:21:35 ---> sudo-logs.sh 03:21:35 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 03:21:35 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 03:21:35 ---> job-cost.sh 03:21:35 lf-activate-venv: SKIPPING 03:21:35 DEBUG: total: 0.2199999988079071 03:21:35 INFO: Retrieving Stack Cost... 03:21:36 INFO: Retrieving Pricing Info for: v3-standard-8 03:21:36 INFO: Archiving Costs [Pipeline] echo 03:21:36 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 03:21:36 ---> logs-deploy.sh 03:21:36 lf-activate-venv: SKIPPING 03:21:36 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-174/2 03:21:36 INFO: archiving workspace using pattern(s): 03:21:37 Archives upload complete. 03:21:37 INFO: archiving logs to Nexus