Pull request #166 updated Connecting to https://api.github.com using edgex-jenkins github personal access token Connecting to https://api.github.com to check permissions of obtain list of jpwhitemn for edgexfoundry/device-rest-go Loading trusted files from base branch main at ec779fd03c03a2eb2a0571cd3b2e316fba414fa2 rather than 5ecef4ab336b606bc5c74f88ee05ddca0a9d95e3 Obtained Jenkinsfile from ec779fd03c03a2eb2a0571cd3b2e316fba414fa2 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-ssh7394930175226806894.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-ssh18445746992125719630.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-166/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-166/workspace@libs/edgex-global-pipelines@tmp/jenkins-gitclient-ssh5628484917291406762.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-ssh15620797579593636410.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-166/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-166/workspace@libs/lf-pipelines@tmp/jenkins-gitclient-ssh3516201750501440316.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-10355 in /w/workspace/gexfoundry_device-rest-go_PR-166 [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-166 # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git > git --version # timeout=10 > git --version # 'git version 2.25.1' using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 Merging remotes/origin/main commit ec779fd03c03a2eb2a0571cd3b2e316fba414fa2 into PR head commit 5ecef4ab336b606bc5c74f88ee05ddca0a9d95e3 Merge succeeded, producing 5ecef4ab336b606bc5c74f88ee05ddca0a9d95e3 Checking out Revision 5ecef4ab336b606bc5c74f88ee05ddca0a9d95e3 (PR-166) > 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/166/head:refs/remotes/origin/PR-166 +refs/heads/main:refs/remotes/origin/main # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 5ecef4ab336b606bc5c74f88ee05ddca0a9d95e3 # timeout=10 > git remote # timeout=10 > git config --get remote.origin.url # timeout=10 using GIT_SSH to set credentials SSH Credentials for GitHub > git merge ec779fd03c03a2eb2a0571cd3b2e316fba414fa2 # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 5ecef4ab336b606bc5c74f88ee05ddca0a9d95e3 # timeout=10 Commit message: "feat: per review, remove commented line" > git rev-list --no-walk 747ebf972dbf71458de27d5ea00d8ae2a2c98e33 # timeout=10 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 00:15:50 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 00:15:50 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 00:15:50 ========================================================= 00:15:50 EdgeX Global Pipelines Version Info 00:15:50 ========================================================= [Pipeline] libraryResource [Pipeline] sh 00:15:51 ------------------- 00:15:51 stable info: 00:15:51 ------------------- 00:15:51 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 00:15:51 Commit SHA: c72b16708d6eed9a08be464a432ce22db7d90667 00:15:51 Message: update stable to v1.0.221 00:15:51 ------------------- 00:15:51 experimental info: 00:15:51 ------------------- 00:15:51 Commited By: **** collab-it+edgex@linuxfoundation.org 00:15:51 Commit SHA: c72b16708d6eed9a08be464a432ce22db7d90667 00:15:51 Message: update experimental to v1.0.221 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 00:15:52 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 00:15:52 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 00:15:52 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 00:15:52 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 00:15:52 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 00:15:52 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.17 [Pipeline] echo 00:15:52 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 00:15:52 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 00:15:52 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 00:15:52 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 00:15:52 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 00:15:52 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 00:15:52 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 00:15:52 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 00:15:52 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 00:15:52 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 00:15:52 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 00:15:52 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 00:15:52 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 00:15:52 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 00:15:52 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 00:15:52 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 00:15:52 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 00:15:52 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 00:15:52 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 00:15:52 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 00:15:52 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-166 [Pipeline] echo 00:15:52 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-166 [Pipeline] echo 00:15:52 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-166 [Pipeline] echo 00:15:52 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 5ecef4ab336b606bc5c74f88ee05ddca0a9d95e3 [Pipeline] echo 00:15:52 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 5ecef4a [Pipeline] echo 00:15:52 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 00:15:52 provisioning config files... 00:15:52 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-166@tmp/config7173431339759415133tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 00:15:52 ---> docker-login.sh 00:15:52 nexus3.edgexfoundry.org:10001 00:15:53 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:15:53 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:15:53 Configure a credential helper to remove this warning. See 00:15:53 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:15:53 00:15:53 Login Succeeded 00:15:53 nexus3.edgexfoundry.org:10002 00:15:53 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:15:53 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:15:53 Configure a credential helper to remove this warning. See 00:15:53 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:15:53 00:15:53 Login Succeeded 00:15:53 nexus3.edgexfoundry.org:10003 00:15:53 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:15:53 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:15:53 Configure a credential helper to remove this warning. See 00:15:53 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:15:53 00:15:53 Login Succeeded 00:15:53 nexus3.edgexfoundry.org:10004 00:15:53 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:15:53 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:15:53 Configure a credential helper to remove this warning. See 00:15:53 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:15:53 00:15:53 Login Succeeded 00:15:53 docker.io 00:15:53 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:15:54 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:15:54 Configure a credential helper to remove this warning. See 00:15:54 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:15:54 00:15:54 Login Succeeded 00:15:54 ---> docker-login.sh ends [Pipeline] } 00:15:54 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 00:15:54 + git rev-list -1 --merges 5ecef4ab336b606bc5c74f88ee05ddca0a9d95e3~1..5ecef4ab336b606bc5c74f88ee05ddca0a9d95e3 [Pipeline] echo 00:15:54 -----------> git rev-list -1 --merges 5ecef4ab336b606bc5c74f88ee05ddca0a9d95e3~1..5ecef4ab336b606bc5c74f88ee05ddca0a9d95e3 5ecef4ab336b606bc5c74f88ee05ddca0a9d95e3 [false] [Pipeline] sh 00:15:55 + git log --format=format:%s -1 5ecef4ab336b606bc5c74f88ee05ddca0a9d95e3 [Pipeline] echo 00:15:55 ========================================================= 00:15:55 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 00:15:55 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 00:15:55 + git log --format=format:%s -1 5ecef4ab336b606bc5c74f88ee05ddca0a9d95e3 [Pipeline] echo 00:15:55 [semverPrep] GIT_COMMIT: 5ecef4ab336b606bc5c74f88ee05ddca0a9d95e3, Commit Message: feat: per review, remove commented line [Pipeline] echo 00:15:55 [semverPrep] This is not a build commit. [Pipeline] sh 00:15:55 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 00:15:55 + grep -v github /etc/ssh/ssh_known_hosts 00:15:55 + [ -e /tmp/ssh_known_hosts ] 00:15:55 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 00:15:55 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 00:15:55 + sudo tee -a /etc/ssh/ssh_known_hosts 00:15:55 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] sh 00:15:56 + docker inspect -f . nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 00:15:56 00:15:56 Error: No such object: nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] isUnix [Pipeline] sh 00:15:56 + docker pull nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 00:15:56 latest: Pulling from edgex-devops/git-semver 00:15:56 a0d0a0d46f8b: Pulling fs layer 00:15:56 3e5f54012d9b: Pulling fs layer 00:15:56 4c7163046ea9: Pulling fs layer 00:15:56 0c2d73faf560: Pulling fs layer 00:15:56 0c2d73faf560: Waiting 00:15:56 3e5f54012d9b: Verifying Checksum 00:15:56 3e5f54012d9b: Download complete 00:15:56 a0d0a0d46f8b: Download complete 00:15:56 0c2d73faf560: Verifying Checksum 00:15:56 0c2d73faf560: Download complete 00:15:56 4c7163046ea9: Verifying Checksum 00:15:56 4c7163046ea9: Download complete 00:15:56 a0d0a0d46f8b: Pull complete 00:15:56 3e5f54012d9b: Pull complete 00:15:57 4c7163046ea9: Pull complete 00:15:57 0c2d73faf560: Pull complete 00:15:57 Digest: sha256:2751de6e655929dcbe46418c7769d9d992331b5b721eb968631a4166222929f9 00:15:57 Status: Downloaded newer image for nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 00:15:57 nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] withDockerContainer 00:15:57 prd-ubuntu20.04-docker-8c-8g-10355 does not seem to be running inside a container 00:15:57 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/gexfoundry_device-rest-go_PR-166 -v /w/workspace/gexfoundry_device-rest-go_PR-166:/w/workspace/gexfoundry_device-rest-go_PR-166:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-166@tmp:/w/workspace/gexfoundry_device-rest-go_PR-166@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:10004/edgex-devops/git-semver:latest cat 00:15:58 $ docker top 347a85201a4d111f45c5391438f51fafc94766a7fcdc3e061f963b60197d03f5 -eo pid,comm [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 00:15:58 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 00:15:58 [ssh-agent] Looking for ssh-agent implementation... 00:15:58 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 00:15:58 $ docker exec 347a85201a4d111f45c5391438f51fafc94766a7fcdc3e061f963b60197d03f5 ssh-agent 00:15:58 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXJAhEjm/agent.13 00:15:58 SSH_AGENT_PID=20 00:15:58 Running ssh-add (command line suppressed) 00:15:58 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-166@tmp/private_key_1426055754029757831.key (/w/workspace/gexfoundry_device-rest-go_PR-166@tmp/private_key_1426055754029757831.key) 00:15:58 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 00:15:59 + git tag --points-at HEAD [Pipeline] } 00:15:59 $ docker exec --env ******** --env ******** 347a85201a4d111f45c5391438f51fafc94766a7fcdc3e061f963b60197d03f5 ssh-agent -k 00:15:59 unset SSH_AUTH_SOCK; 00:15:59 unset SSH_AGENT_PID; 00:15:59 echo Agent pid 20 killed; 00:15:59 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 00:15:59 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 00:15:59 [ssh-agent] Looking for ssh-agent implementation... 00:15:59 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 00:15:59 $ docker exec 347a85201a4d111f45c5391438f51fafc94766a7fcdc3e061f963b60197d03f5 ssh-agent 00:15:59 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXappbfI/agent.53 00:15:59 SSH_AGENT_PID=60 00:15:59 Running ssh-add (command line suppressed) 00:15:59 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-166@tmp/private_key_2048021188718794998.key (/w/workspace/gexfoundry_device-rest-go_PR-166@tmp/private_key_2048021188718794998.key) 00:15:59 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 00:15:59 + git semver init 00:15:59 # -> Open(): unable to determine branch for HEAD 00:15:59 # $GIT_DIR = /w/workspace/gexfoundry_device-rest-go_PR-166/.git 00:15:59 # $GIT_WORK_TREE = /w/workspace/gexfoundry_device-rest-go_PR-166 00:15:59 # $SEMVER_REMOTE_NAME = origin 00:15:59 # $SEMVER_USER_EMAIL = collab-it+edgex@linuxfoundation.org 00:15:59 # $SEMVER_USER_NAME = edgex-jenkins 00:15:59 # $SEMVER_BRANCH = PR-166 00:15:59 # $SEMVER_TEMP = /tmp/semver-205381240 00:15:59 # git clone --branch semver git@github.com:edgexfoundry/device-rest-go.git $SEMVER_TEMP 00:16:01 # '/tmp/semver-205381240' -> '/w/workspace/gexfoundry_device-rest-go_PR-166/.semver' 00:16:01 # -> Force: false 00:16:01 # $SEMVER_DIR = /w/workspace/gexfoundry_device-rest-go_PR-166/.semver [Pipeline] } 00:16:01 $ docker exec --env ******** --env ******** 347a85201a4d111f45c5391438f51fafc94766a7fcdc3e061f963b60197d03f5 ssh-agent -k 00:16:01 unset SSH_AUTH_SOCK; 00:16:01 unset SSH_AGENT_PID; 00:16:01 echo Agent pid 60 killed; 00:16:01 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 00:16:01 + git semver [Pipeline] } 00:16:01 $ docker stop --time=1 347a85201a4d111f45c5391438f51fafc94766a7fcdc3e061f963b60197d03f5 00:16:03 $ docker rm -f 347a85201a4d111f45c5391438f51fafc94766a7fcdc3e061f963b60197d03f5 [Pipeline] // withDockerContainer [Pipeline] sh 00:16:03 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 00:16:03 Stashed 1 file(s) [Pipeline] echo 00:16:03 [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 00:16:04 provisioning config files... 00:16:04 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-166@tmp/config3419470765577289397tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 00:16:04 ---> docker-login.sh 00:16:04 nexus3.edgexfoundry.org:10001 00:16:04 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:16:04 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:16:04 Configure a credential helper to remove this warning. See 00:16:04 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:16:04 00:16:04 Login Succeeded 00:16:04 nexus3.edgexfoundry.org:10002 00:16:04 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:16:04 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:16:04 Configure a credential helper to remove this warning. See 00:16:04 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:16:04 00:16:04 Login Succeeded 00:16:04 nexus3.edgexfoundry.org:10003 00:16:04 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:16:04 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:16:04 Configure a credential helper to remove this warning. See 00:16:04 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:16:04 00:16:04 Login Succeeded 00:16:04 nexus3.edgexfoundry.org:10004 00:16:04 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:16:04 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:16:04 Configure a credential helper to remove this warning. See 00:16:04 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:16:04 00:16:04 Login Succeeded 00:16:04 docker.io 00:16:04 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:16:05 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:16:05 Configure a credential helper to remove this warning. See 00:16:05 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:16:05 00:16:05 Login Succeeded 00:16:05 ---> docker-login.sh ends [Pipeline] } 00:16:05 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 00:16:05 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 00:16:05 ========================================================= 00:16:05 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine] 00:16:05 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 00:16:05 + 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 . 00:16:05 Sending build context to Docker daemon 10.55MB 00:16:05 Step 1/12 : ARG BASE=golang:1.17-alpine3.15 00:16:05 Step 2/12 : FROM ${BASE} AS builder 00:16:05 1.17-alpine: Pulling from edgex-devops/edgex-golang-base 00:16:05 59bf1c3509f3: Pulling fs layer 00:16:05 666ba61612fd: Pulling fs layer 00:16:05 8ed8ca486205: Pulling fs layer 00:16:05 4fe6c5a15a65: Pulling fs layer 00:16:05 22a0e8bec74d: Pulling fs layer 00:16:05 640e595b4fbd: Pulling fs layer 00:16:05 763cafe07f6e: Pulling fs layer 00:16:05 0c0b528cf693: Pulling fs layer 00:16:05 10935f4eaf8b: Pulling fs layer 00:16:05 0c0b528cf693: Waiting 00:16:05 4fe6c5a15a65: Waiting 00:16:05 640e595b4fbd: Waiting 00:16:05 10935f4eaf8b: Waiting 00:16:05 22a0e8bec74d: Waiting 00:16:05 763cafe07f6e: Waiting 00:16:05 8ed8ca486205: Verifying Checksum 00:16:05 8ed8ca486205: Download complete 00:16:05 666ba61612fd: Download complete 00:16:05 22a0e8bec74d: Verifying Checksum 00:16:05 22a0e8bec74d: Download complete 00:16:05 640e595b4fbd: Verifying Checksum 00:16:05 640e595b4fbd: Download complete 00:16:05 59bf1c3509f3: Verifying Checksum 00:16:05 763cafe07f6e: Verifying Checksum 00:16:05 763cafe07f6e: Download complete 00:16:05 0c0b528cf693: Verifying Checksum 00:16:05 0c0b528cf693: Download complete 00:16:05 59bf1c3509f3: Pull complete 00:16:06 666ba61612fd: Pull complete 00:16:06 8ed8ca486205: Pull complete 00:16:06 10935f4eaf8b: Verifying Checksum 00:16:06 10935f4eaf8b: Download complete 00:16:06 4fe6c5a15a65: Verifying Checksum 00:16:06 4fe6c5a15a65: Download complete 00:16:10 4fe6c5a15a65: Pull complete 00:16:10 22a0e8bec74d: Pull complete 00:16:10 640e595b4fbd: Pull complete 00:16:11 763cafe07f6e: Pull complete 00:16:11 0c0b528cf693: Pull complete 00:16:13 10935f4eaf8b: Pull complete 00:16:13 Digest: sha256:fe2da51ced2bed6c5fc1d1038c2fbec5a5bb29cdcacce78977c37c66bfba8387 00:16:13 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine 00:16:13 ---> 99d49a6021b9 00:16:13 Step 3/12 : ARG MAKE='make build' 00:16:14 ---> Running in e6db16d8b275 00:16:14 Removing intermediate container e6db16d8b275 00:16:14 ---> c3c1336f5306 00:16:14 Step 4/12 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 00:16:15 ---> Running in df8328db21e2 00:16:15 Removing intermediate container df8328db21e2 00:16:15 ---> 2b4c4aacc9fd 00:16:15 Step 5/12 : ARG ALPINE_PKG_EXTRA="" 00:16:15 ---> Running in 8acb0bbc61d8 00:16:15 Removing intermediate container 8acb0bbc61d8 00:16:15 ---> 0ebf14c3b0ea 00:16:15 Step 6/12 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 00:16:15 ---> Running in 5962bd4be08f 00:16:16 Removing intermediate container 5962bd4be08f 00:16:16 ---> e2901fbc88b7 00:16:16 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 00:16:16 ---> Running in 70f159c600c6 00:16:16 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 00:16:17 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 00:16:17 (1/4) Installing openssh-keygen (8.8_p1-r1) 00:16:17 (2/4) Installing libedit (20210910.3.1-r0) 00:16:17 (3/4) Installing openssh-client-common (8.8_p1-r1) 00:16:17 (4/4) Installing openssh-client-default (8.8_p1-r1) 00:16:18 Executing busybox-1.34.1-r3.trigger 00:16:18 OK: 224 MiB in 56 packages 00:16:18 Removing intermediate container 70f159c600c6 00:16:18 ---> 2e3b9aa32d96 00:16:18 Step 8/12 : WORKDIR /device-rest-go 00:16:18 ---> Running in 74390adf4891 00:16:18 Removing intermediate container 74390adf4891 00:16:18 ---> 273215924eb5 00:16:18 Step 9/12 : COPY go.mod vendor* ./ 00:16:18 ---> 020e8c9c8ab7 00:16:18 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 00:16:18 ---> Running in caaf9ed091a7 00:16:18 Still waiting to schedule task 00:16:18 All nodes of label ‘ubuntu20.04-docker-arm64-4c-16g’ are offline 00:16:45 Removing intermediate container caaf9ed091a7 00:16:45 ---> a2ca50e7aba5 00:16:45 Step 11/12 : COPY . . 00:16:45 ---> 528c37904785 00:16:45 Step 12/12 : RUN $MAKE 00:16:45 ---> Running in ce0d8c3a9c81 00:16:45 noop 00:16:46 Removing intermediate container ce0d8c3a9c81 00:16:46 ---> f75dd588369f 00:16:46 Successfully built f75dd588369f 00:16:46 Successfully tagged ci-base-image-x86_64:latest [Pipeline] isUnix [Pipeline] sh 00:16:46 + docker inspect -f . ci-base-image-x86_64 00:16:46 . [Pipeline] withDockerContainer 00:16:46 prd-ubuntu20.04-docker-8c-8g-10355 does not seem to be running inside a container 00:16:46 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-166 -v /w/workspace/gexfoundry_device-rest-go_PR-166:/w/workspace/gexfoundry_device-rest-go_PR-166:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-166@tmp:/w/workspace/gexfoundry_device-rest-go_PR-166@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 ******** -e ******** -e ******** ci-base-image-x86_64 cat 00:16:46 $ docker top 339229a49ac5c3e6c8f6652eae18fee5fda71f6de351dffba3e30153865998be -eo pid,comm [Pipeline] { [Pipeline] sh 00:16:47 + go version 00:16:47 go version go1.17.6 linux/amd64 [Pipeline] } 00:16:47 $ docker stop --time=1 339229a49ac5c3e6c8f6652eae18fee5fda71f6de351dffba3e30153865998be 00:16:48 $ docker rm -f 339229a49ac5c3e6c8f6652eae18fee5fda71f6de351dffba3e30153865998be [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 00:16:49 + docker inspect -f . ci-base-image-x86_64 00:16:49 . [Pipeline] withDockerContainer 00:16:49 prd-ubuntu20.04-docker-8c-8g-10355 does not seem to be running inside a container 00:16:49 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-166 -v /w/workspace/gexfoundry_device-rest-go_PR-166:/w/workspace/gexfoundry_device-rest-go_PR-166:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-166@tmp:/w/workspace/gexfoundry_device-rest-go_PR-166@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 ******** -e ******** -e ******** ci-base-image-x86_64 cat 00:16:49 $ docker top 529f21c211cfc5bd84086d35c22b95b5f38ee70172dd89fb5febeff86d044cc1 -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 00:16:49 + make test 00:16:49 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out ./... 00:16:50 ? github.com/edgexfoundry/device-rest-go [no test files] 00:16:58 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 00:16:58 ok github.com/edgexfoundry/device-rest-go/driver 0.014s coverage: 55.2% of statements 00:17:03 CGO_ENABLED=1 GO111MODULE=on go vet ./... 00:17:07 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 00:17:07 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 00:17:07 ./bin/test-attribution-txt.sh [Pipeline] echo 00:17:07 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 00:17:07 $ docker stop --time=1 529f21c211cfc5bd84086d35c22b95b5f38ee70172dd89fb5febeff86d044cc1 00:17:09 $ docker rm -f 529f21c211cfc5bd84086d35c22b95b5f38ee70172dd89fb5febeff86d044cc1 [Pipeline] // withDockerContainer [Pipeline] sh 00:17:10 + sudo chown -R jenkins:jenkins . [Pipeline] stash 00:17:10 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 00:17:11 + sudo chown -R jenkins:jenkins . [Pipeline] sh 00:17:11 + ls -al . 00:17:11 total 184 00:17:11 drwxrwxr-x 9 jenkins jenkins 4096 Apr 1 00:17 . 00:17:11 drwxrwxr-x 4 jenkins jenkins 4096 Apr 1 00:15 .. 00:17:11 -rw-rw-r-- 1 jenkins jenkins 151 Apr 1 00:15 .dockerignore 00:17:11 drwxrwxr-x 8 jenkins jenkins 4096 Apr 1 00:15 .git 00:17:11 drwxrwxr-x 2 jenkins jenkins 4096 Apr 1 00:15 .github 00:17:11 -rw-rw-r-- 1 jenkins jenkins 329 Apr 1 00:15 .gitignore 00:17:11 -rw-rw-r-- 1 jenkins jenkins 41 Apr 1 00:15 .golangci.yml 00:17:11 drwx------ 3 jenkins jenkins 4096 Apr 1 00:16 .semver 00:17:11 -rw-rw-r-- 1 jenkins jenkins 7192 Apr 1 00:15 Attribution.txt 00:17:11 -rw-rw-r-- 1 jenkins jenkins 7459 Apr 1 00:15 CHANGELOG.md 00:17:11 -rw-rw-r-- 1 jenkins jenkins 1672 Apr 1 00:15 Dockerfile 00:17:11 -rw-rw-r-- 1 jenkins jenkins 677 Apr 1 00:15 GOVERNANCE.md 00:17:11 -rw-rw-r-- 1 jenkins jenkins 680 Apr 1 00:15 Jenkinsfile 00:17:11 -rw-rw-r-- 1 jenkins jenkins 11340 Apr 1 00:15 LICENSE 00:17:11 -rw-rw-r-- 1 jenkins jenkins 1578 Apr 1 00:15 Makefile 00:17:11 -rw-rw-r-- 1 jenkins jenkins 620 Apr 1 00:15 OWNERS.md 00:17:11 -rw-rw-r-- 1 jenkins jenkins 8246 Apr 1 00:15 README.md 00:17:11 -rw-rw-r-- 1 jenkins jenkins 5 Apr 1 00:16 VERSION 00:17:11 drwxrwxr-x 2 jenkins jenkins 4096 Apr 1 00:15 bin 00:17:11 drwxrwxr-x 3 jenkins jenkins 4096 Apr 1 00:15 cmd 00:17:11 -rw-r--r-- 1 jenkins jenkins 9355 Apr 1 00:16 coverage.out 00:17:11 drwxrwxr-x 2 jenkins jenkins 4096 Apr 1 00:15 driver 00:17:11 -rw-rw-r-- 1 jenkins jenkins 2908 Apr 1 00:15 go.mod 00:17:11 -rw-rw-r-- 1 jenkins jenkins 50572 Apr 1 00:15 go.sum 00:17:11 drwxrwxr-x 3 jenkins jenkins 4096 Apr 1 00:15 snap 00:17:11 -rw-rw-r-- 1 jenkins jenkins 713 Apr 1 00:15 version.go [Pipeline] isUnix [Pipeline] sh 00:17:11 + 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=5ecef4ab336b606bc5c74f88ee05ddca0a9d95e3 --label arch=amd64 --label version=0.0.0 . 00:17:11 Sending build context to Docker daemon 10.56MB 00:17:11 Step 1/25 : ARG BASE=golang:1.17-alpine3.15 00:17:11 Step 2/25 : FROM ${BASE} AS builder 00:17:11 ---> f75dd588369f 00:17:11 Step 3/25 : ARG MAKE='make build' 00:17:12 ---> Running in ee88c5995d00 00:17:12 Removing intermediate container ee88c5995d00 00:17:12 ---> f62e955ded2e 00:17:12 Step 4/25 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 00:17:12 ---> Running in 3bdf9e2ec9e4 00:17:12 Removing intermediate container 3bdf9e2ec9e4 00:17:12 ---> ad2b66b17256 00:17:12 Step 5/25 : ARG ALPINE_PKG_EXTRA="" 00:17:12 ---> Running in 7808dd30f76e 00:17:12 Removing intermediate container 7808dd30f76e 00:17:12 ---> ee81b504a843 00:17:12 Step 6/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 00:17:12 ---> Running in 440d1b428f19 00:17:13 Removing intermediate container 440d1b428f19 00:17:13 ---> 3ae176dbd944 00:17:13 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 00:17:13 ---> Running in 605f8ba83460 00:17:13 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 00:17:14 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 00:17:14 OK: 224 MiB in 56 packages 00:17:14 Removing intermediate container 605f8ba83460 00:17:14 ---> 99ce032b401d 00:17:14 Step 8/25 : WORKDIR /device-rest-go 00:17:14 ---> Running in 7e04153d3f13 00:17:15 Removing intermediate container 7e04153d3f13 00:17:15 ---> 6342a3c84555 00:17:15 Step 9/25 : COPY go.mod vendor* ./ 00:17:15 ---> 1fe57acf41f7 00:17:15 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 00:17:15 ---> Running in 581ae7ebf3f0 00:17:16 Removing intermediate container 581ae7ebf3f0 00:17:16 ---> 3d5cc4471b0f 00:17:16 Step 11/25 : COPY . . 00:17:16 ---> e3059e4643bb 00:17:16 Step 12/25 : RUN $MAKE 00:17:16 ---> Running in 4fca9dfe5cb7 00:17:16 CGO_ENABLED=1 GO111MODULE=on go build -ldflags "-X github.com/edgexfoundry/device-rest-go.Version=0.0.0" -o cmd/device-rest ./cmd 00:17:24 Removing intermediate container 4fca9dfe5cb7 00:17:24 ---> 1f38cf04f46a 00:17:24 Step 13/25 : FROM alpine:3.14 00:17:25 3.14: Pulling from library/alpine 00:17:25 cfab2db72209: Pulling fs layer 00:17:25 cfab2db72209: Verifying Checksum 00:17:25 cfab2db72209: Download complete 00:17:25 cfab2db72209: Pull complete 00:17:25 Digest: sha256:85c63ff404e9b4daf18f264447161b50ffa70047cc4c03381478cf2c6edfa9da 00:17:25 Status: Downloaded newer image for alpine:3.14 00:17:25 ---> 84b07dd2d1fd 00:17:25 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' 00:17:26 ---> Running in e0fda0b9199e 00:17:26 Removing intermediate container e0fda0b9199e 00:17:26 ---> f7b40e01bf88 00:17:26 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 00:17:26 ---> Running in d59b89ed0e28 00:17:26 Removing intermediate container d59b89ed0e28 00:17:26 ---> dbb8bf8fa055 00:17:26 Step 16/25 : RUN apk add --update --no-cache zeromq dumb-init 00:17:26 ---> Running in c69bc939e969 00:17:26 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz 00:17:26 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz 00:17:26 (1/6) Installing dumb-init (1.2.5-r1) 00:17:26 (2/6) Installing libgcc (10.3.1_git20210424-r2) 00:17:26 (3/6) Installing libsodium (1.0.18-r0) 00:17:26 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 00:17:26 (5/6) Installing libzmq (4.3.4-r0) 00:17:26 (6/6) Installing zeromq (4.3.4-r0) 00:17:26 Executing busybox-1.33.1-r6.trigger 00:17:26 OK: 8 MiB in 20 packages 00:17:27 Removing intermediate container c69bc939e969 00:17:27 ---> d91f33ee5709 00:17:27 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 00:17:27 ---> 0d0a58cc3132 00:17:27 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 00:17:27 ---> 7c8401a24dab 00:17:27 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 00:17:28 ---> 7afdf9af6782 00:17:28 Step 20/25 : EXPOSE 59986 00:17:28 ---> Running in df8946fa8959 00:17:28 Removing intermediate container df8946fa8959 00:17:28 ---> 9afc727491f3 00:17:28 Step 21/25 : ENTRYPOINT ["/device-rest"] 00:17:28 ---> Running in 802f54abd94a 00:17:28 Removing intermediate container 802f54abd94a 00:17:28 ---> 8c98b83a662e 00:17:28 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--confdir=/res", "--registry"] 00:17:28 ---> Running in 312a6f13c275 00:17:28 Removing intermediate container 312a6f13c275 00:17:28 ---> 660b37a7720e 00:17:28 Step 23/25 : LABEL arch=amd64 00:17:28 ---> Running in 49aa37b866fd 00:17:28 Removing intermediate container 49aa37b866fd 00:17:28 ---> 3e2e4dd73d2a 00:17:28 Step 24/25 : LABEL git_sha=5ecef4ab336b606bc5c74f88ee05ddca0a9d95e3 00:17:28 ---> Running in ab18f72f0c5e 00:17:28 Removing intermediate container ab18f72f0c5e 00:17:28 ---> 55c76dd4c725 00:17:28 Step 25/25 : LABEL version=0.0.0 00:17:28 ---> Running in 57a3536a99b5 00:17:28 Removing intermediate container 57a3536a99b5 00:17:28 ---> 612ec62158b8 00:17:28 [Warning] One or more build-args [ARCH] were not consumed 00:17:28 Successfully built 612ec62158b8 00:17:28 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 00:17:29 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 00:17:29 00:17:29 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] sh 00:17:29 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 00:17:29 latest: Pulling from edgex-lftools-log-publisher 00:17:29 5eb5b503b376: Pulling fs layer 00:17:29 5c69ac0246d0: Pulling fs layer 00:17:29 ec43610c2a17: Pulling fs layer 00:17:29 3a2ae6a8a46f: Pulling fs layer 00:17:29 33b1e0a273af: Pulling fs layer 00:17:29 5d3b04190fa2: Pulling fs layer 00:17:29 2f39f015ded8: Pulling fs layer 00:17:29 3a2ae6a8a46f: Waiting 00:17:29 33b1e0a273af: Waiting 00:17:29 5d3b04190fa2: Waiting 00:17:29 2f39f015ded8: Waiting 00:17:29 5c69ac0246d0: Download complete 00:17:29 3a2ae6a8a46f: Verifying Checksum 00:17:29 3a2ae6a8a46f: Download complete 00:17:29 33b1e0a273af: Verifying Checksum 00:17:29 33b1e0a273af: Download complete 00:17:29 ec43610c2a17: Verifying Checksum 00:17:29 ec43610c2a17: Download complete 00:17:29 5d3b04190fa2: Verifying Checksum 00:17:29 5d3b04190fa2: Download complete 00:17:29 5eb5b503b376: Verifying Checksum 00:17:29 5eb5b503b376: Download complete 00:17:30 2f39f015ded8: Verifying Checksum 00:17:31 5eb5b503b376: Pull complete 00:17:31 5c69ac0246d0: Pull complete 00:17:32 ec43610c2a17: Pull complete 00:17:32 3a2ae6a8a46f: Pull complete 00:17:32 33b1e0a273af: Pull complete 00:17:32 5d3b04190fa2: Pull complete 00:17:37 2f39f015ded8: Pull complete 00:17:37 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 00:17:37 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 00:17:37 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] withDockerContainer 00:17:37 prd-ubuntu20.04-docker-8c-8g-10355 does not seem to be running inside a container 00:17:37 $ 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-166 -v /w/workspace/gexfoundry_device-rest-go_PR-166:/w/workspace/gexfoundry_device-rest-go_PR-166:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-166@tmp:/w/workspace/gexfoundry_device-rest-go_PR-166@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 ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 00:17:39 $ docker top 2eeddb0fb43052070d9f43e9688756f1f6eb7ad6acde2fa8530a7f3090d4da69 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 00:17:40 ---> job-cost.sh 00:17:40 lf-activate-venv: SKIPPING 00:17:40 INFO: No Stack... 00:17:40 INFO: Retrieving Pricing Info for: v3-standard-8 00:17:40 INFO: Archiving Costs [Pipeline] sh 00:17:41 + cat /w/workspace/gexfoundry_device-rest-go_PR-166/archives/cost.csv 00:17:41 + cut -d, -f6 [Pipeline] lock 00:17:41 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-166-4-stack-cost] 00:17:41 Resource [jenkins-edgexfoundry-device-rest-go-PR-166-4-stack-cost] did not exist. Created. 00:17:41 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-166-4-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 00:17:41 + echo total: 0.2199999988079071 [Pipeline] stash 00:17:41 Stashed 1 file(s) [Pipeline] } 00:17:41 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-166-4-stack-cost] [Pipeline] // lock [Pipeline] } 00:17:41 $ docker stop --time=1 2eeddb0fb43052070d9f43e9688756f1f6eb7ad6acde2fa8530a7f3090d4da69 00:17:42 $ docker rm -f 2eeddb0fb43052070d9f43e9688756f1f6eb7ad6acde2fa8530a7f3090d4da69 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 00:17:59 Running on prd-ubuntu20.04-docker-arm64-4c-16g-10356 in /w/workspace/gexfoundry_device-rest-go_PR-166 [Pipeline] { [Pipeline] ws 00:17:59 Running in /w/workspace/device-rest-go/4 [Pipeline] { [Pipeline] checkout 00:17:59 The recommended git tool is: git 00:18:07 using credential edgex-jenkins-ssh 00:18:07 Cloning the remote Git repository 00:18:07 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 00:18:07 > git init /w/workspace/device-rest-go/4 # timeout=10 00:18:07 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 00:18:07 > git --version # timeout=10 00:18:07 > git --version # 'git version 2.25.1' 00:18:07 using GIT_SSH to set credentials SSH Credentials for GitHub 00:18:07 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 00:18:10 Merging remotes/origin/main commit ec779fd03c03a2eb2a0571cd3b2e316fba414fa2 into PR head commit 5ecef4ab336b606bc5c74f88ee05ddca0a9d95e3 00:18:10 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 00:18:10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 00:18:10 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 00:18:10 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 00:18:10 using GIT_SSH to set credentials SSH Credentials for GitHub 00:18:10 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/166/head:refs/remotes/origin/PR-166 +refs/heads/main:refs/remotes/origin/main # timeout=10 00:18:11 > git config core.sparsecheckout # timeout=10 00:18:11 > git checkout -f 5ecef4ab336b606bc5c74f88ee05ddca0a9d95e3 # timeout=10 00:18:11 > git remote # timeout=10 00:18:11 > git config --get remote.origin.url # timeout=10 00:18:11 using GIT_SSH to set credentials SSH Credentials for GitHub 00:18:11 > git merge ec779fd03c03a2eb2a0571cd3b2e316fba414fa2 # timeout=10 00:18:11 > git rev-parse HEAD^{commit} # timeout=10 00:18:11 Merge succeeded, producing 5ecef4ab336b606bc5c74f88ee05ddca0a9d95e3 00:18:11 Checking out Revision 5ecef4ab336b606bc5c74f88ee05ddca0a9d95e3 (PR-166) 00:18:11 > git config core.sparsecheckout # timeout=10 00:18:11 > git checkout -f 5ecef4ab336b606bc5c74f88ee05ddca0a9d95e3 # timeout=10 00:18:15 Commit message: "feat: per review, remove commented line" [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 00:18:16 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 00:18:16 % Total % Received % Xferd Average Speed Time Time Time Current 00:18:16 Dload Upload Total Spent Left Speed 00:18:16 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 11843 100 11843 0 0 45903 0 --:--:-- --:--:-- --:--:-- 46081 [Pipeline] sh 00:18:17 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 00:18:17 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 00:18:17 + sudo tee /etc/docker/daemon.new 00:18:17 { 00:18:17 "registry-mirrors": [ 00:18:17 "https://nexus3.edgexfoundry.org:10001" 00:18:17 ], 00:18:17 "bip": "10.250.0.254/24", 00:18:17 "hosts": [ 00:18:17 "tcp://0.0.0.0:5555", 00:18:17 "unix:///var/run/docker.sock" 00:18:17 ], 00:18:17 "mtu": 1458, 00:18:17 "selinux-enabled": true, 00:18:17 "seccomp-profile": "/etc/docker/seccomp.json" 00:18:17 } [Pipeline] sh 00:18:17 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 00:18:18 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 00:18:36 provisioning config files... 00:18:36 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/4@tmp/config5731891378262420134tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 00:18:37 ---> docker-login.sh 00:18:37 nexus3.edgexfoundry.org:10001 00:18:37 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:18:37 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:18:37 Configure a credential helper to remove this warning. See 00:18:37 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:18:37 00:18:37 Login Succeeded 00:18:37 nexus3.edgexfoundry.org:10002 00:18:38 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:18:38 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:18:38 Configure a credential helper to remove this warning. See 00:18:38 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:18:38 00:18:38 Login Succeeded 00:18:38 nexus3.edgexfoundry.org:10003 00:18:38 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:18:38 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:18:38 Configure a credential helper to remove this warning. See 00:18:38 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:18:38 00:18:38 Login Succeeded 00:18:38 nexus3.edgexfoundry.org:10004 00:18:39 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:18:39 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:18:39 Configure a credential helper to remove this warning. See 00:18:39 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:18:39 00:18:39 Login Succeeded 00:18:39 docker.io 00:18:39 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:18:39 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:18:39 Configure a credential helper to remove this warning. See 00:18:39 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:18:39 00:18:39 Login Succeeded 00:18:39 ---> docker-login.sh ends [Pipeline] } 00:18:39 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 00:18:40 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 00:18:40 ========================================================= 00:18:40 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine] 00:18:40 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 00:18:40 + 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 . 00:18:40 Sending build context to Docker daemon 126kB 00:18:41 Step 1/12 : ARG BASE=golang:1.17-alpine3.15 00:18:41 Step 2/12 : FROM ${BASE} AS builder 00:18:41 1.17-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 00:18:41 9b3977197b4f: Pulling fs layer 00:18:41 1a89e8eeedd5: Pulling fs layer 00:18:41 94645a83ff95: Pulling fs layer 00:18:41 3f3a8bcf1eab: Pulling fs layer 00:18:41 0c92f367c5e7: Pulling fs layer 00:18:41 f7c0051592d6: Pulling fs layer 00:18:41 a227ed2f7395: Pulling fs layer 00:18:41 7b1c46037f91: Pulling fs layer 00:18:41 f7c0051592d6: Waiting 00:18:41 a227ed2f7395: Waiting 00:18:41 3f3a8bcf1eab: Waiting 00:18:41 7b1c46037f91: Waiting 00:18:41 0c92f367c5e7: Waiting 00:18:41 94645a83ff95: Verifying Checksum 00:18:41 94645a83ff95: Download complete 00:18:41 1a89e8eeedd5: Download complete 00:18:41 0c92f367c5e7: Verifying Checksum 00:18:41 0c92f367c5e7: Download complete 00:18:41 f7c0051592d6: Verifying Checksum 00:18:41 f7c0051592d6: Download complete 00:18:41 9b3977197b4f: Download complete 00:18:41 a227ed2f7395: Verifying Checksum 00:18:41 a227ed2f7395: Download complete 00:18:41 9b3977197b4f: Pull complete 00:18:42 1a89e8eeedd5: Pull complete 00:18:42 94645a83ff95: Pull complete 00:18:43 7b1c46037f91: Verifying Checksum 00:18:43 7b1c46037f91: Download complete 00:18:43 3f3a8bcf1eab: Download complete 00:18:56 3f3a8bcf1eab: Pull complete 00:18:56 0c92f367c5e7: Pull complete 00:18:56 f7c0051592d6: Pull complete 00:18:56 a227ed2f7395: Pull complete 00:19:03 7b1c46037f91: Pull complete 00:19:03 Digest: sha256:72afd471f6932efc3b14a707e53dab7ff98911016b282aefa83be7c085db88fe 00:19:03 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine 00:19:03 ---> f79e39bc4007 00:19:03 Step 3/12 : ARG MAKE='make build' 00:19:03 ---> Running in 3f99baa3e6be 00:19:03 Removing intermediate container 3f99baa3e6be 00:19:03 ---> 664bad642c40 00:19:03 Step 4/12 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 00:19:03 ---> Running in 27bcc742cdd4 00:19:04 Removing intermediate container 27bcc742cdd4 00:19:04 ---> 28fdc074e37e 00:19:04 Step 5/12 : ARG ALPINE_PKG_EXTRA="" 00:19:04 ---> Running in 41458a087125 00:19:04 Removing intermediate container 41458a087125 00:19:04 ---> d6838a67c8a4 00:19:04 Step 6/12 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 00:19:04 ---> Running in e2cce12ca34c 00:19:06 Removing intermediate container e2cce12ca34c 00:19:06 ---> cf3ea9062de8 00:19:06 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 00:19:06 ---> Running in 016805838c9a 00:19:07 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 00:19:08 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 00:19:09 (1/4) Installing openssh-keygen (8.8_p1-r1) 00:19:09 (2/4) Installing libedit (20210910.3.1-r0) 00:19:09 (3/4) Installing openssh-client-common (8.8_p1-r1) 00:19:09 (4/4) Installing openssh-client-default (8.8_p1-r1) 00:19:09 Executing busybox-1.34.1-r3.trigger 00:19:09 OK: 224 MiB in 56 packages 00:19:10 Removing intermediate container 016805838c9a 00:19:10 ---> 4ced4bf43e90 00:19:10 Step 8/12 : WORKDIR /device-rest-go 00:19:10 ---> Running in fb1e3d38ab22 00:19:10 Removing intermediate container fb1e3d38ab22 00:19:10 ---> caf817f43a77 00:19:10 Step 9/12 : COPY go.mod vendor* ./ 00:19:11 ---> ca0acbed6f3e 00:19:11 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 00:19:11 ---> Running in 542fbc187d9f 00:20:33 Removing intermediate container 542fbc187d9f 00:20:33 ---> 94ead46c4a8f 00:20:33 Step 11/12 : COPY . . 00:20:33 ---> 9b781ca58864 00:20:33 Step 12/12 : RUN $MAKE 00:20:33 ---> Running in 42ea3207b6ef 00:20:33 noop 00:20:33 Removing intermediate container 42ea3207b6ef 00:20:33 ---> e774af33796a 00:20:33 Successfully built e774af33796a 00:20:33 Successfully tagged ci-base-image-arm64:latest [Pipeline] isUnix [Pipeline] sh 00:20:33 + docker inspect -f . ci-base-image-arm64 00:20:33 . [Pipeline] withDockerContainer 00:20:33 prd-ubuntu20.04-docker-arm64-4c-16g-10356 does not seem to be running inside a container 00:20:33 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/4 -v /w/workspace/device-rest-go/4:/w/workspace/device-rest-go/4:rw,z -v /w/workspace/device-rest-go/4@tmp:/w/workspace/device-rest-go/4@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 ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 00:20:35 $ docker top fb2fb60430e9d2d0fcf40976351230f40d902ff798954f65a2a78677d34aa7b1 -eo pid,comm [Pipeline] { [Pipeline] sh 00:20:35 + go version 00:20:35 go version go1.17.6 linux/arm64 [Pipeline] } 00:20:35 $ docker stop --time=1 fb2fb60430e9d2d0fcf40976351230f40d902ff798954f65a2a78677d34aa7b1 00:20:37 $ docker rm -f fb2fb60430e9d2d0fcf40976351230f40d902ff798954f65a2a78677d34aa7b1 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 00:20:38 + docker inspect -f . ci-base-image-arm64 00:20:38 . [Pipeline] withDockerContainer 00:20:38 prd-ubuntu20.04-docker-arm64-4c-16g-10356 does not seem to be running inside a container 00:20:38 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/4 -v /w/workspace/device-rest-go/4:/w/workspace/device-rest-go/4:rw,z -v /w/workspace/device-rest-go/4@tmp:/w/workspace/device-rest-go/4@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 ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 00:20:39 $ docker top 6134c80c5823ce760a8676aefb922d47a6069f77aeaf372af60fd995a8357cd5 -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 00:20:40 + make test 00:20:40 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out ./... 00:20:42 ? github.com/edgexfoundry/device-rest-go [no test files] 00:21:29 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 00:21:31 ok github.com/edgexfoundry/device-rest-go/driver 0.061s coverage: 55.2% of statements 00:21:31 WARNING: Linting skipped (not on x86_64 or linter not installed) 00:21:31 CGO_ENABLED=1 GO111MODULE=on go vet ./... 00:21:49 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 00:21:49 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 00:21:49 ./bin/test-attribution-txt.sh [Pipeline] echo 00:21:51 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 00:21:51 $ docker stop --time=1 6134c80c5823ce760a8676aefb922d47a6069f77aeaf372af60fd995a8357cd5 00:21:53 $ docker rm -f 6134c80c5823ce760a8676aefb922d47a6069f77aeaf372af60fd995a8357cd5 [Pipeline] // withDockerContainer [Pipeline] sh 00:21:54 + sudo chown -R jenkins:jenkins . [Pipeline] stash 00:21:54 Warning: overwriting stash ‘coverage-report’ 00:21:54 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 00:21:55 + sudo chown -R jenkins:jenkins . [Pipeline] sh 00:21:55 + ls -al . 00:21:55 total 180 00:21:55 drwxrwxr-x 8 jenkins jenkins 4096 Apr 1 00:21 . 00:21:55 drwxrwxr-x 4 jenkins jenkins 4096 Apr 1 00:18 .. 00:21:55 -rw-rw-r-- 1 jenkins jenkins 151 Apr 1 00:18 .dockerignore 00:21:55 drwxrwxr-x 8 jenkins jenkins 4096 Apr 1 00:18 .git 00:21:55 drwxrwxr-x 2 jenkins jenkins 4096 Apr 1 00:18 .github 00:21:55 -rw-rw-r-- 1 jenkins jenkins 329 Apr 1 00:18 .gitignore 00:21:55 -rw-rw-r-- 1 jenkins jenkins 41 Apr 1 00:18 .golangci.yml 00:21:55 -rw-rw-r-- 1 jenkins jenkins 7192 Apr 1 00:18 Attribution.txt 00:21:55 -rw-rw-r-- 1 jenkins jenkins 7459 Apr 1 00:18 CHANGELOG.md 00:21:55 -rw-rw-r-- 1 jenkins jenkins 1672 Apr 1 00:18 Dockerfile 00:21:55 -rw-rw-r-- 1 jenkins jenkins 677 Apr 1 00:18 GOVERNANCE.md 00:21:55 -rw-rw-r-- 1 jenkins jenkins 680 Apr 1 00:18 Jenkinsfile 00:21:55 -rw-rw-r-- 1 jenkins jenkins 11340 Apr 1 00:18 LICENSE 00:21:55 -rw-rw-r-- 1 jenkins jenkins 1578 Apr 1 00:18 Makefile 00:21:55 -rw-rw-r-- 1 jenkins jenkins 620 Apr 1 00:18 OWNERS.md 00:21:55 -rw-rw-r-- 1 jenkins jenkins 8246 Apr 1 00:18 README.md 00:21:55 -rw-rw-r-- 1 jenkins jenkins 5 Apr 1 00:16 VERSION 00:21:55 drwxrwxr-x 2 jenkins jenkins 4096 Apr 1 00:18 bin 00:21:55 drwxrwxr-x 3 jenkins jenkins 4096 Apr 1 00:18 cmd 00:21:55 -rw-r--r-- 1 jenkins jenkins 9355 Apr 1 00:21 coverage.out 00:21:55 drwxrwxr-x 2 jenkins jenkins 4096 Apr 1 00:18 driver 00:21:55 -rw-rw-r-- 1 jenkins jenkins 2908 Apr 1 00:18 go.mod 00:21:55 -rw-rw-r-- 1 jenkins jenkins 50572 Apr 1 00:18 go.sum 00:21:55 drwxrwxr-x 3 jenkins jenkins 4096 Apr 1 00:18 snap 00:21:55 -rw-rw-r-- 1 jenkins jenkins 713 Apr 1 00:18 version.go [Pipeline] isUnix [Pipeline] sh 00:21:55 + 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=5ecef4ab336b606bc5c74f88ee05ddca0a9d95e3 --label arch=arm64 --label version=0.0.0 . 00:21:55 Sending build context to Docker daemon 136.2kB 00:21:56 Step 1/25 : ARG BASE=golang:1.17-alpine3.15 00:21:56 Step 2/25 : FROM ${BASE} AS builder 00:21:56 ---> e774af33796a 00:21:56 Step 3/25 : ARG MAKE='make build' 00:21:56 ---> Running in cbfe4336e270 00:21:56 Removing intermediate container cbfe4336e270 00:21:56 ---> df5adc78412e 00:21:56 Step 4/25 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 00:21:56 ---> Running in 96e69e242ad3 00:21:56 Removing intermediate container 96e69e242ad3 00:21:56 ---> 882303f5cecd 00:21:56 Step 5/25 : ARG ALPINE_PKG_EXTRA="" 00:21:56 ---> Running in 2d036480abbf 00:21:57 Removing intermediate container 2d036480abbf 00:21:57 ---> 5125a70e62c0 00:21:57 Step 6/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 00:21:57 ---> Running in cc80ef0c9dd0 00:21:58 Removing intermediate container cc80ef0c9dd0 00:21:58 ---> 5d8ebaac3223 00:21:58 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 00:21:59 ---> Running in a665676ac925 00:22:00 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 00:22:01 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 00:22:02 OK: 224 MiB in 56 packages 00:22:02 Removing intermediate container a665676ac925 00:22:02 ---> 2c487c6ec062 00:22:02 Step 8/25 : WORKDIR /device-rest-go 00:22:02 ---> Running in 9c4edb068f4e 00:22:03 Removing intermediate container 9c4edb068f4e 00:22:03 ---> 081c20612ec7 00:22:03 Step 9/25 : COPY go.mod vendor* ./ 00:22:03 ---> 861d14808875 00:22:03 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 00:22:03 ---> Running in 5f4864bbd467 00:22:06 Removing intermediate container 5f4864bbd467 00:22:06 ---> d7d94d83d221 00:22:06 Step 11/25 : COPY . . 00:22:06 ---> 402fe31a05c7 00:22:06 Step 12/25 : RUN $MAKE 00:22:06 ---> Running in baaea9ea756a 00:22:07 CGO_ENABLED=1 GO111MODULE=on go build -ldflags "-X github.com/edgexfoundry/device-rest-go.Version=0.0.0" -o cmd/device-rest ./cmd 00:22:54 Removing intermediate container baaea9ea756a 00:22:54 ---> 20096159df66 00:22:54 Step 13/25 : FROM alpine:3.14 00:22:54 3.14: Pulling from library/alpine 00:22:54 810d54c7e01b: Pulling fs layer 00:22:54 810d54c7e01b: Download complete 00:22:54 810d54c7e01b: Pull complete 00:22:54 Digest: sha256:85c63ff404e9b4daf18f264447161b50ffa70047cc4c03381478cf2c6edfa9da 00:22:54 Status: Downloaded newer image for alpine:3.14 00:22:54 ---> cc3d11fa2d52 00:22:54 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' 00:22:54 ---> Running in a99856bb93ee 00:22:54 Removing intermediate container a99856bb93ee 00:22:54 ---> 434190187d4a 00:22:54 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 00:22:54 ---> Running in 359d91560551 00:22:54 Removing intermediate container 359d91560551 00:22:54 ---> 191810d6ba8c 00:22:54 Step 16/25 : RUN apk add --update --no-cache zeromq dumb-init 00:22:54 ---> Running in 862abf523c40 00:22:54 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/aarch64/APKINDEX.tar.gz 00:22:54 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/aarch64/APKINDEX.tar.gz 00:22:54 (1/6) Installing dumb-init (1.2.5-r1) 00:22:54 (2/6) Installing libgcc (10.3.1_git20210424-r2) 00:22:54 (3/6) Installing libsodium (1.0.18-r0) 00:22:54 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 00:22:54 (5/6) Installing libzmq (4.3.4-r0) 00:22:54 (6/6) Installing zeromq (4.3.4-r0) 00:22:54 Executing busybox-1.33.1-r6.trigger 00:22:54 OK: 8 MiB in 20 packages 00:22:54 Removing intermediate container 862abf523c40 00:22:54 ---> 2a6a2a4e0c49 00:22:54 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 00:22:55 ---> fa417a43dd70 00:22:55 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 00:22:56 ---> 5d859e213444 00:22:56 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 00:22:56 ---> 8fb8d957e1bb 00:22:56 Step 20/25 : EXPOSE 59986 00:22:57 ---> Running in aae4051e6d9d 00:22:57 Removing intermediate container aae4051e6d9d 00:22:57 ---> 63c0964ee570 00:22:57 Step 21/25 : ENTRYPOINT ["/device-rest"] 00:22:57 ---> Running in 2878e27f5250 00:22:57 Removing intermediate container 2878e27f5250 00:22:57 ---> c44235d1167f 00:22:57 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--confdir=/res", "--registry"] 00:22:58 ---> Running in 03b679814d9e 00:22:58 Removing intermediate container 03b679814d9e 00:22:58 ---> d978d4b36787 00:22:58 Step 23/25 : LABEL arch=arm64 00:22:58 ---> Running in 4dc02a312cd6 00:22:59 Removing intermediate container 4dc02a312cd6 00:22:59 ---> d9064c2097a5 00:22:59 Step 24/25 : LABEL git_sha=5ecef4ab336b606bc5c74f88ee05ddca0a9d95e3 00:22:59 ---> Running in 8593f56b5dc9 00:22:59 Removing intermediate container 8593f56b5dc9 00:22:59 ---> c1ece5c05c3d 00:22:59 Step 25/25 : LABEL version=0.0.0 00:22:59 ---> Running in ed3edbc14d6c 00:22:59 Removing intermediate container ed3edbc14d6c 00:22:59 ---> 156fff70f94e 00:22:59 [Warning] One or more build-args [ARCH] were not consumed 00:22:59 Successfully built 156fff70f94e 00:22:59 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 00:23:00 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 00:23:00 00:23:00 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] sh 00:23:00 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 00:23:00 arm64: Pulling from edgex-lftools-log-publisher 00:23:00 8998bd30e6a1: Pulling fs layer 00:23:00 04944245beec: Pulling fs layer 00:23:00 699f458cf7ca: Pulling fs layer 00:23:00 765212b225bb: Pulling fs layer 00:23:00 f23df028b6ca: Pulling fs layer 00:23:00 d65c8cfc05b1: Pulling fs layer 00:23:00 2437ff75d9bd: Pulling fs layer 00:23:00 2437ff75d9bd: Waiting 00:23:00 d65c8cfc05b1: Waiting 00:23:00 765212b225bb: Waiting 00:23:00 f23df028b6ca: Waiting 00:23:00 04944245beec: Download complete 00:23:00 765212b225bb: Verifying Checksum 00:23:00 765212b225bb: Download complete 00:23:00 f23df028b6ca: Verifying Checksum 00:23:00 f23df028b6ca: Download complete 00:23:00 d65c8cfc05b1: Verifying Checksum 00:23:00 d65c8cfc05b1: Download complete 00:23:00 699f458cf7ca: Verifying Checksum 00:23:00 699f458cf7ca: Download complete 00:23:01 8998bd30e6a1: Verifying Checksum 00:23:01 8998bd30e6a1: Download complete 00:23:03 2437ff75d9bd: Verifying Checksum 00:23:03 2437ff75d9bd: Download complete 00:23:05 8998bd30e6a1: Pull complete 00:23:06 04944245beec: Pull complete 00:23:07 699f458cf7ca: Pull complete 00:23:07 765212b225bb: Pull complete 00:23:08 f23df028b6ca: Pull complete 00:23:09 d65c8cfc05b1: Pull complete 00:23:24 2437ff75d9bd: Pull complete 00:23:24 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 00:23:24 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 00:23:24 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] withDockerContainer 00:23:24 prd-ubuntu20.04-docker-arm64-4c-16g-10356 does not seem to be running inside a container 00:23:24 $ 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/4 -v /w/workspace/device-rest-go/4:/w/workspace/device-rest-go/4:rw,z -v /w/workspace/device-rest-go/4@tmp:/w/workspace/device-rest-go/4@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 ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 00:23:27 $ docker top d20924b018cb72019ac4105c0048d871ce25f60970f0fd73c3ed4755f4e3c04a -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 00:23:28 ---> job-cost.sh 00:23:28 lf-activate-venv: SKIPPING 00:23:28 INFO: No Stack... 00:23:28 INFO: Retrieving Pricing Info for: v3-standard-4 00:23:29 INFO: Archiving Costs [Pipeline] sh 00:23:30 + cat /w/workspace/device-rest-go/4/archives/cost.csv 00:23:30 + cut -d, -f6 [Pipeline] lock 00:23:30 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-166-4-stack-cost] 00:23:30 Resource [jenkins-edgexfoundry-device-rest-go-PR-166-4-stack-cost] did not exist. Created. 00:23:30 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-166-4-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 00:23:30 /w/workspace/device-rest-go/4@tmp/durable-b26e982f/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 00:23:31 + echo total: 0.10999999940395355 [Pipeline] stash 00:23:31 Warning: overwriting stash ‘stack-cost’ 00:23:31 Stashed 1 file(s) [Pipeline] } 00:23:31 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-166-4-stack-cost] [Pipeline] // lock [Pipeline] } 00:23:31 $ docker stop --time=1 d20924b018cb72019ac4105c0048d871ce25f60970f0fd73c3ed4755f4e3c04a 00:23:33 $ docker rm -f d20924b018cb72019ac4105c0048d871ce25f60970f0fd73c3ed4755f4e3c04a [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 00:23:33 provisioning config files... 00:23:33 copy managed file [device-rest-go-codecov-token] to file:/w/workspace/gexfoundry_device-rest-go_PR-166@tmp/config617476919841967878tmp [Pipeline] { [Pipeline] sh 00:23:34 + set +x 00:23:34 + curl -s https://codecov.io/bash 00:23:34 + bash -s -- 00:23:34 00:23:34 _____ _ 00:23:34 / ____| | | 00:23:34 | | ___ __| | ___ ___ _____ __ 00:23:34 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 00:23:34 | |___| (_) | (_| | __/ (_| (_) \ V / 00:23:34 \_____\___/ \__,_|\___|\___\___/ \_/ 00:23:34 Bash-1.0.6 00:23:34 00:23:34 00:23:34 ==> git version 2.25.1 found 00:23:34 ==> 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 00:23:34 Release-Date: 2020-01-08 00:23:34 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 00:23:34 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 00:23:34 ==> Jenkins CI detected. 00:23:34 current dir:  /w/workspace/gexfoundry_device-rest-go_PR-166 00:23:34 project root: . 00:23:34 --> token set from env 00:23:34 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 00:23:34 ==> Running gcov in . (disable via -X gcov) 00:23:34 ==> Python coveragepy not found 00:23:34 ==> Searching for coverage reports in: 00:23:34 + . 00:23:34 -> Found 1 reports 00:23:34 ==> Detecting git/mercurial file structure 00:23:34 ==> Reading reports 00:23:34 + ./coverage.out bytes=9355 00:23:34 ==> Appending adjustments 00:23:34 https://docs.codecov.io/docs/fixing-reports 00:23:34 + Found adjustments 00:23:34 ==> Gzipping contents 00:23:34 4.0K /tmp/codecov.Djd3Lv.gz 00:23:34 ==> Uploading reports 00:23:34 url: https://codecov.io 00:23:34 query: branch=PR-166&commit=5ecef4ab336b606bc5c74f88ee05ddca0a9d95e3&build=4&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-166%2F4%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=166&job=&cmd_args= 00:23:34 -> Pinging Codecov 00:23:34 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=c51feb23-73ac-4f49-b3d1-d26df23137db&branch=PR-166&commit=5ecef4ab336b606bc5c74f88ee05ddca0a9d95e3&build=4&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-166%2F4%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=166&job=&cmd_args= 00:23:34 -> Uploading to 00:23:34 https://storage.googleapis.com/codecov/v4/raw/2022-04-01/4E5D53B4F1F92C436F7061BF334D961C/5ecef4ab336b606bc5c74f88ee05ddca0a9d95e3/8815b0a6-ad8b-4139-bc7d-cb0236842777.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20220401%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20220401T002334Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=902ed513b894d507b7348f50d7e36c51206a5b9e1c5808d68640a3513a69acf4 00:23:34 % Total % Received % Xferd Average Speed Time Time Time Current 00:23:34 Dload Upload Total Spent Left Speed 00:23:34 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 1800 0 0 100 1800 0 6792 --:--:-- --:--:-- --:--:-- 6792 00:23:34 -> Reports have been successfully queued for processing at https://codecov.io/github/edgexfoundry/device-rest-go/commit/5ecef4ab336b606bc5c74f88ee05ddca0a9d95e3 [Pipeline] } 00:23:34 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 00:23:35 + [ -d /w/workspace/gexfoundry_device-rest-go_PR-166/archives ] 00:23:35 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-166/archives 00:23:35 total 16 00:23:35 drwxr-xr-x 3 root root 4096 Apr 1 00:17 . 00:23:35 drwxrwxr-x 10 jenkins jenkins 4096 Apr 1 00:17 .. 00:23:35 drwxr-xr-x 2 root root 4096 Apr 1 00:17 cost 00:23:35 -rw-r--r-- 1 root root 85 Apr 1 00:17 cost.csv 00:23:35 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-rest-go_PR-166/archives 00:23:35 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-166/archives 00:23:35 total 16 00:23:35 drwxr-xr-x 3 jenkins jenkins 4096 Apr 1 00:17 . 00:23:35 drwxrwxr-x 10 jenkins jenkins 4096 Apr 1 00:17 .. 00:23:35 drwxr-xr-x 2 jenkins jenkins 4096 Apr 1 00:17 cost 00:23:35 -rw-r--r-- 1 jenkins jenkins 85 Apr 1 00:17 cost.csv [Pipeline] libraryResource [Pipeline] sh 00:23:35 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 00:23:36 ---> package-listing.sh 00:23:36 ++ facter osfamily 00:23:36 ++ tr '[:upper:]' '[:lower:]' 00:23:36 + OS_FAMILY=debian 00:23:36 + workspace=/w/workspace/gexfoundry_device-rest-go_PR-166 00:23:36 + START_PACKAGES=/tmp/packages_start.txt 00:23:36 + END_PACKAGES=/tmp/packages_end.txt 00:23:36 + DIFF_PACKAGES=/tmp/packages_diff.txt 00:23:36 + PACKAGES=/tmp/packages_start.txt 00:23:36 + '[' /w/workspace/gexfoundry_device-rest-go_PR-166 ']' 00:23:36 + PACKAGES=/tmp/packages_end.txt 00:23:36 + case "${OS_FAMILY}" in 00:23:36 + dpkg -l 00:23:36 + grep '^ii' 00:23:36 + '[' -f /tmp/packages_start.txt ']' 00:23:36 + '[' -f /tmp/packages_end.txt ']' 00:23:36 + diff /tmp/packages_start.txt /tmp/packages_end.txt 00:23:36 + '[' /w/workspace/gexfoundry_device-rest-go_PR-166 ']' 00:23:36 + mkdir -p /w/workspace/gexfoundry_device-rest-go_PR-166/archives/ 00:23:36 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/gexfoundry_device-rest-go_PR-166/archives/ [Pipeline] echo 00:23: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/gexfoundry_device-rest-go_PR-166/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 00:23:37 + facter operatingsystem [Pipeline] isUnix [Pipeline] sh 00:23:37 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 00:23:37 . [Pipeline] withDockerContainer 00:23:37 prd-ubuntu20.04-docker-8c-8g-10355 does not seem to be running inside a container 00:23: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/gexfoundry_device-rest-go_PR-166/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-166 -v /w/workspace/gexfoundry_device-rest-go_PR-166:/w/workspace/gexfoundry_device-rest-go_PR-166:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-166@tmp:/w/workspace/gexfoundry_device-rest-go_PR-166@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 ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 00:23:38 $ docker top 2e9fde0c8e3820a00a63989ee74c78f8b281921e08321eb92c84410329b79190 -eo pid,comm [Pipeline] { [Pipeline] sh 00:23:38 + touch /tmp/pre-build-complete [Pipeline] sh 00:23:38 + mkdir -p /var/log/sysstat [Pipeline] sh 00:23:39 + ls /var/log/sa-host 00:23:39 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 00:23:39 provisioning config files... 00:23:39 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-166@tmp/config8110108689772329567tmp [Pipeline] { [Pipeline] echo 00:23:39 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 00:23:39 ---> create-netrc.sh [Pipeline] } 00:23:39 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 00:23:40 ---> python-tools-install.sh [Pipeline] echo 00:23:40 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 00:23:40 ---> sudo-logs.sh 00:23:40 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 00:23:40 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 00:23:40 ---> job-cost.sh 00:23:40 lf-activate-venv: SKIPPING 00:23:40 DEBUG: total: 0.2199999988079071 00:23:40 INFO: Retrieving Stack Cost... 00:23:41 INFO: Retrieving Pricing Info for: v3-standard-8 00:23:41 INFO: Archiving Costs [Pipeline] echo 00:23:41 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 00:23:41 ---> logs-deploy.sh 00:23:41 lf-activate-venv: SKIPPING 00:23:41 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-166/4 00:23:41 INFO: archiving workspace using pattern(s): 00:23:42 Archives upload complete. 00:23:42 INFO: archiving logs to Nexus