Pull request #169 opened Connecting to https://api.github.com using edgex-jenkins github personal access token Connecting to https://api.github.com to check permissions of obtain list of bnevis-i for edgexfoundry/device-rest-go Obtained Jenkinsfile from 3ef3434f29de7babebb530a0a3a69c8b081d7b6d+868c3d37fa7208ff5e10080602f68a64287cb162 (a629a61ff514393818d513d5925ea25dc064afbc) 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-ssh13042026760623538623.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-ssh9737603746672582470.key > git fetch --tags --progress -- origin +refs/heads/*:refs/remotes/origin/* # timeout=10 > git rev-parse refs/tags/stable^{commit} # timeout=10 Resolved tag stable revision c72b16708d6eed9a08be464a432ce22db7d90667 The recommended git tool is: git using credential edgex-jenkins-ssh Cloning the remote Git repository Cloning with configured refspecs honoured and with tags Cloning repository git@github.com:edgexfoundry/edgex-global-pipelines.git > git init /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-169/workspace@libs/edgex-global-pipelines # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/edgex-global-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-169/workspace@libs/edgex-global-pipelines@tmp/jenkins-gitclient-ssh4135903935525711818.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 > git config --add remote.origin.fetch +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Fetching with tags Fetching upstream changes from git@github.com:edgexfoundry/edgex-global-pipelines.git using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-169/workspace@libs/edgex-global-pipelines@tmp/jenkins-gitclient-ssh5028954705968198834.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision c72b16708d6eed9a08be464a432ce22db7d90667 (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f c72b16708d6eed9a08be464a432ce22db7d90667 # timeout=10 Commit message: "Merge pull request #378 from ernestojeda/ubuntu-20-changes" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 > git --version # timeout=10 > git --version # 'git version 2.16.6' Excluding src/test/ from checkout of git git@github.com:edgexfoundry/edgex-global-pipelines.git so that shared library test code cannot be accessed by Pipelines. To remove this log message, move the test code outside of src/. To restore the previous behavior that allowed access to files in src/test/, pass -Dorg.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.INCLUDE_SRC_TEST_IN_LIBRARIES=true to the java command used to start Jenkins. Loading library lf-pipelines@master Attempting to resolve master from remote references... > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /tmp/jenkins-gitclient-ssh15895140255164943108.key > git ls-remote -h -- git@github.com:lfit/releng-pipelines.git # timeout=10 Found match: refs/heads/master revision b3dada9287033e4e81bc68320e01fd57bef02650 The recommended git tool is: NONE using credential edgex-jenkins-ssh Cloning the remote Git repository Cloning with configured refspecs honoured and without tags Cloning repository git@github.com:lfit/releng-pipelines.git > git init /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-169/workspace@libs/lf-pipelines # timeout=10 Fetching upstream changes from git@github.com:lfit/releng-pipelines.git > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /var/lib/jenkins/jobs/edgexfoundry/jobs/device-rest-go/branches/PR-169/workspace@libs/lf-pipelines@tmp/jenkins-gitclient-ssh12937379343750445109.key > git fetch --no-tags --progress -- git@github.com:lfit/releng-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:lfit/releng-pipelines.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 Avoid second fetch Checking out Revision b3dada9287033e4e81bc68320e01fd57bef02650 (master) > git config core.sparsecheckout # timeout=10 > git checkout -f b3dada9287033e4e81bc68320e01fd57bef02650 # timeout=10 Commit message: "Fix: Update requirements.txt, update global-jjb" > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule init # timeout=10 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 > git config --get submodule.global-jjb.url # timeout=10 > git config -f .gitmodules --get submodule.global-jjb.path # timeout=10 > git submodule update --init --recursive global-jjb # timeout=10 > git --version # timeout=10 > git --version # 'git version 2.16.6' fatal: bad object c72b16708d6eed9a08be464a432ce22db7d90667 Excluding src/test/ from checkout of git git@github.com:lfit/releng-pipelines.git so that shared library test code cannot be accessed by Pipelines. To remove this log message, move the test code outside of src/. To restore the previous behavior that allowed access to files in src/test/, pass -Dorg.jenkinsci.plugins.workflow.libs.SCMSourceRetriever.INCLUDE_SRC_TEST_IN_LIBRARIES=true to the java command used to start Jenkins. [Pipeline] Start of Pipeline [Pipeline] echo ========================================================= [edgeXBuildGoApp] RAW Config: [project:device-rest-go] ========================================================= [Pipeline] echo Setting up nodes based on requested architectures [[amd64, arm64]] [Pipeline] echo Nodes requested: [[ubuntu20.04-docker-8c-8g, ubuntu20.04-docker-arm64-4c-16g]] [Pipeline] echo ========================================================= [edgeXBuildGoApp] Pipeline Parameters: ========================================================= [Pipeline] echo MAVEN_SETTINGS: device-rest-go-settings PROJECT: device-rest-go USE_SEMVER: true TEST_SCRIPT: make test BUILD_SCRIPT: make build GO_VERSION: 1.17 USE_ALPINE: true DOCKER_FILE_PATH: Dockerfile DOCKER_BUILD_FILE_PATH: Dockerfile.build DOCKER_BUILD_CONTEXT: . DOCKER_BUILD_IMAGE_TARGET: builder DOCKER_IMAGE_NAME: device-rest DOCKER_REGISTRY_NAMESPACE: DOCKER_NEXUS_REPO: staging BUILD_DOCKER_IMAGE: true PUSH_DOCKER_IMAGE: true BUILD_EXPERIMENTAL_DOCKER_IMAGE: false BUILD_STABLE_DOCKER_IMAGE: false SEMVER_BUMP_LEVEL: pre BUILD_SNAP: false PUBLISH_SWAGGER_DOCS: false SWAGGER_API_FOLDERS: openapi/v1 ARTIFACT_ROOT: archives/bin ARTIFACT_TYPES: docker SHOULD_BUILD: true BUILD_FAILURE_NOTIFY_LIST: edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] node Still waiting to schedule task Waiting for next available executor on ‘ubuntu20.04-docker-8c-8g’ Running on prd-ubuntu20.04-docker-8c-8g-10808 in /w/workspace/gexfoundry_device-rest-go_PR-169 [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-169 # 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 868c3d37fa7208ff5e10080602f68a64287cb162 into PR head commit 3ef3434f29de7babebb530a0a3a69c8b081d7b6d Merge succeeded, producing 3ef3434f29de7babebb530a0a3a69c8b081d7b6d Checking out Revision 3ef3434f29de7babebb530a0a3a69c8b081d7b6d (PR-169) > 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/169/head:refs/remotes/origin/PR-169 +refs/heads/main:refs/remotes/origin/main # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 3ef3434f29de7babebb530a0a3a69c8b081d7b6d # 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 868c3d37fa7208ff5e10080602f68a64287cb162 # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 3ef3434f29de7babebb530a0a3a69c8b081d7b6d # timeout=10 Commit message: "build(deps): Update device-sdk-go" First time build. Skipping changelog. > git --version # timeout=10 > git --version # 'git version 2.25.1' fatal: bad object c72b16708d6eed9a08be464a432ce22db7d90667 [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 00:47:48 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 00:47:48 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 00:47:48 ========================================================= 00:47:48 EdgeX Global Pipelines Version Info 00:47:48 ========================================================= [Pipeline] libraryResource [Pipeline] sh 00:47:49 ------------------- 00:47:49 stable info: 00:47:49 ------------------- 00:47:49 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 00:47:49 Commit SHA: c72b16708d6eed9a08be464a432ce22db7d90667 00:47:49 Message: update stable to v1.0.221 00:47:49 ------------------- 00:47:49 experimental info: 00:47:49 ------------------- 00:47:49 Commited By: **** collab-it+edgex@linuxfoundation.org 00:47:49 Commit SHA: c72b16708d6eed9a08be464a432ce22db7d90667 00:47:49 Message: update experimental to v1.0.221 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 00:47:49 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 00:47:49 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 00:47:49 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 00:47:49 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 00:47:49 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 00:47:50 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.17 [Pipeline] echo 00:47:50 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 00:47:50 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 00:47:50 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 00:47:50 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 00:47:50 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 00:47:50 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 00:47:50 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 00:47:50 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 00:47:50 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 00:47:50 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 00:47:50 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 00:47:50 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 00:47:50 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 00:47:50 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 00:47:50 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 00:47:50 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 00:47:50 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 00:47:50 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 00:47:50 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 00:47:50 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 00:47:50 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-169 [Pipeline] echo 00:47:50 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-169 [Pipeline] echo 00:47:51 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-169 [Pipeline] echo 00:47:51 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = 3ef3434f29de7babebb530a0a3a69c8b081d7b6d [Pipeline] echo 00:47:51 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = 3ef3434 [Pipeline] echo 00:47:51 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 00:47:51 provisioning config files... 00:47:51 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-169@tmp/config9011459746357456543tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 00:47:51 ---> docker-login.sh 00:47:51 nexus3.edgexfoundry.org:10001 00:47:51 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:47:51 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:47:51 Configure a credential helper to remove this warning. See 00:47:51 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:47:51 00:47:51 Login Succeeded 00:47:51 nexus3.edgexfoundry.org:10002 00:47:52 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:47:52 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:47:52 Configure a credential helper to remove this warning. See 00:47:52 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:47:52 00:47:52 Login Succeeded 00:47:52 nexus3.edgexfoundry.org:10003 00:47:52 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:47:52 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:47:52 Configure a credential helper to remove this warning. See 00:47:52 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:47:52 00:47:52 Login Succeeded 00:47:52 nexus3.edgexfoundry.org:10004 00:47:52 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:47:52 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:47:52 Configure a credential helper to remove this warning. See 00:47:52 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:47:52 00:47:52 Login Succeeded 00:47:52 docker.io 00:47:52 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:47:52 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:47:52 Configure a credential helper to remove this warning. See 00:47:52 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:47:52 00:47:52 Login Succeeded 00:47:52 ---> docker-login.sh ends [Pipeline] } 00:47:52 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 00:47:53 + git rev-list -1 --merges 3ef3434f29de7babebb530a0a3a69c8b081d7b6d~1..3ef3434f29de7babebb530a0a3a69c8b081d7b6d [Pipeline] echo 00:47:53 -----------> git rev-list -1 --merges 3ef3434f29de7babebb530a0a3a69c8b081d7b6d~1..3ef3434f29de7babebb530a0a3a69c8b081d7b6d 3ef3434f29de7babebb530a0a3a69c8b081d7b6d [false] [Pipeline] sh 00:47:53 + git log --format=format:%s -1 3ef3434f29de7babebb530a0a3a69c8b081d7b6d [Pipeline] echo 00:47:53 ========================================================= 00:47:53 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 00:47:53 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 00:47:54 + git log --format=format:%s -1 3ef3434f29de7babebb530a0a3a69c8b081d7b6d [Pipeline] echo 00:47:54 [semverPrep] GIT_COMMIT: 3ef3434f29de7babebb530a0a3a69c8b081d7b6d, Commit Message: build(deps): Update device-sdk-go [Pipeline] echo 00:47:54 [semverPrep] This is not a build commit. [Pipeline] sh 00:47:54 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 00:47:54 + grep -v github /etc/ssh/ssh_known_hosts 00:47:54 + [ -e /tmp/ssh_known_hosts ] 00:47:54 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 00:47:54 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 00:47:54 + sudo tee -a /etc/ssh/ssh_known_hosts 00:47:54 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] sh 00:47:55 + docker inspect -f . nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 00:47:55 00:47:55 Error: No such object: nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] isUnix [Pipeline] sh 00:47:55 + docker pull nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 00:47:55 latest: Pulling from edgex-devops/git-semver 00:47:55 a0d0a0d46f8b: Pulling fs layer 00:47:55 3e5f54012d9b: Pulling fs layer 00:47:55 4c7163046ea9: Pulling fs layer 00:47:55 0c2d73faf560: Pulling fs layer 00:47:55 3e5f54012d9b: Download complete 00:47:55 a0d0a0d46f8b: Verifying Checksum 00:47:55 a0d0a0d46f8b: Download complete 00:47:55 0c2d73faf560: Verifying Checksum 00:47:55 0c2d73faf560: Download complete 00:47:55 4c7163046ea9: Verifying Checksum 00:47:55 4c7163046ea9: Download complete 00:47:55 a0d0a0d46f8b: Pull complete 00:47:55 3e5f54012d9b: Pull complete 00:47:56 4c7163046ea9: Pull complete 00:47:56 0c2d73faf560: Pull complete 00:47:56 Digest: sha256:2751de6e655929dcbe46418c7769d9d992331b5b721eb968631a4166222929f9 00:47:56 Status: Downloaded newer image for nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 00:47:56 nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] withDockerContainer 00:47:56 prd-ubuntu20.04-docker-8c-8g-10808 does not seem to be running inside a container 00:47:56 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/gexfoundry_device-rest-go_PR-169 -v /w/workspace/gexfoundry_device-rest-go_PR-169:/w/workspace/gexfoundry_device-rest-go_PR-169:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-169@tmp:/w/workspace/gexfoundry_device-rest-go_PR-169@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest cat 00:47:57 $ docker top d3ef4f1d2431210ab0d7dc41c1f448e55006f0925d2df3080b1b498303f9623a -eo pid,comm [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 00:47:57 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 00:47:57 [ssh-agent] Looking for ssh-agent implementation... 00:47:57 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 00:47:57 $ docker exec d3ef4f1d2431210ab0d7dc41c1f448e55006f0925d2df3080b1b498303f9623a ssh-agent 00:47:57 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXnBjEAG/agent.14 00:47:57 SSH_AGENT_PID=21 00:47:57 Running ssh-add (command line suppressed) 00:47:57 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-169@tmp/private_key_1997697650931114844.key (/w/workspace/gexfoundry_device-rest-go_PR-169@tmp/private_key_1997697650931114844.key) 00:47:57 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 00:47:58 + git tag --points-at HEAD [Pipeline] } 00:47:58 $ docker exec --env ******** --env ******** d3ef4f1d2431210ab0d7dc41c1f448e55006f0925d2df3080b1b498303f9623a ssh-agent -k 00:47:58 unset SSH_AUTH_SOCK; 00:47:58 unset SSH_AGENT_PID; 00:47:58 echo Agent pid 21 killed; 00:47:58 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 00:47:58 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 00:47:58 [ssh-agent] Looking for ssh-agent implementation... 00:47:58 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 00:47:58 $ docker exec d3ef4f1d2431210ab0d7dc41c1f448e55006f0925d2df3080b1b498303f9623a ssh-agent 00:47:58 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXEFGEBC/agent.55 00:47:58 SSH_AGENT_PID=62 00:47:58 Running ssh-add (command line suppressed) 00:47:58 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-169@tmp/private_key_735846010173139866.key (/w/workspace/gexfoundry_device-rest-go_PR-169@tmp/private_key_735846010173139866.key) 00:47:58 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 00:47:58 + git semver init 00:47:58 # -> Open(): unable to determine branch for HEAD 00:47:58 # $GIT_DIR = /w/workspace/gexfoundry_device-rest-go_PR-169/.git 00:47:58 # $GIT_WORK_TREE = /w/workspace/gexfoundry_device-rest-go_PR-169 00:47:58 # $SEMVER_REMOTE_NAME = origin 00:47:58 # $SEMVER_USER_EMAIL = collab-it+edgex@linuxfoundation.org 00:47:58 # $SEMVER_USER_NAME = edgex-jenkins 00:47:58 # $SEMVER_BRANCH = PR-169 00:47:58 # $SEMVER_TEMP = /tmp/semver-611454755 00:47:58 # git clone --branch semver git@github.com:edgexfoundry/device-rest-go.git $SEMVER_TEMP 00:48:00 # '/tmp/semver-611454755' -> '/w/workspace/gexfoundry_device-rest-go_PR-169/.semver' 00:48:00 # -> Force: false 00:48:00 # $SEMVER_DIR = /w/workspace/gexfoundry_device-rest-go_PR-169/.semver [Pipeline] } 00:48:00 $ docker exec --env ******** --env ******** d3ef4f1d2431210ab0d7dc41c1f448e55006f0925d2df3080b1b498303f9623a ssh-agent -k 00:48:00 unset SSH_AUTH_SOCK; 00:48:00 unset SSH_AGENT_PID; 00:48:00 echo Agent pid 62 killed; 00:48:00 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 00:48:00 + git semver [Pipeline] } 00:48:00 $ docker stop --time=1 d3ef4f1d2431210ab0d7dc41c1f448e55006f0925d2df3080b1b498303f9623a 00:48:02 $ docker rm -f d3ef4f1d2431210ab0d7dc41c1f448e55006f0925d2df3080b1b498303f9623a [Pipeline] // withDockerContainer [Pipeline] sh 00:48:02 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 00:48:03 Stashed 1 file(s) [Pipeline] echo 00:48: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:48:03 provisioning config files... 00:48:03 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-169@tmp/config6699690927836458457tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 00:48:04 ---> docker-login.sh 00:48:04 nexus3.edgexfoundry.org:10001 00:48:04 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:48:04 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:48:04 Configure a credential helper to remove this warning. See 00:48:04 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:48:04 00:48:04 Login Succeeded 00:48:04 nexus3.edgexfoundry.org:10002 00:48:04 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:48:04 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:48:04 Configure a credential helper to remove this warning. See 00:48:04 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:48:04 00:48:04 Login Succeeded 00:48:04 nexus3.edgexfoundry.org:10003 00:48:04 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:48:04 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:48:04 Configure a credential helper to remove this warning. See 00:48:04 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:48:04 00:48:04 Login Succeeded 00:48:04 nexus3.edgexfoundry.org:10004 00:48:04 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:48:04 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:48:04 Configure a credential helper to remove this warning. See 00:48:04 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:48:04 00:48:04 Login Succeeded 00:48:04 docker.io 00:48:04 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:48:04 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:48:04 Configure a credential helper to remove this warning. See 00:48:04 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:48:04 00:48:04 Login Succeeded 00:48:04 ---> docker-login.sh ends [Pipeline] } 00:48:04 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 00:48:05 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 00:48:05 ========================================================= 00:48:05 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine] 00:48:05 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 00:48: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:48:05 Sending build context to Docker daemon 10.56MB 00:48:05 Step 1/12 : ARG BASE=golang:1.17-alpine3.15 00:48:05 Step 2/12 : FROM ${BASE} AS builder 00:48:05 1.17-alpine: Pulling from edgex-devops/edgex-golang-base 00:48:05 59bf1c3509f3: Pulling fs layer 00:48:05 666ba61612fd: Pulling fs layer 00:48:05 8ed8ca486205: Pulling fs layer 00:48:05 4fe6c5a15a65: Pulling fs layer 00:48:05 22a0e8bec74d: Pulling fs layer 00:48:05 640e595b4fbd: Pulling fs layer 00:48:05 763cafe07f6e: Pulling fs layer 00:48:05 0c0b528cf693: Pulling fs layer 00:48:05 10935f4eaf8b: Pulling fs layer 00:48:05 640e595b4fbd: Waiting 00:48:05 0c0b528cf693: Waiting 00:48:05 10935f4eaf8b: Waiting 00:48:05 763cafe07f6e: Waiting 00:48:05 22a0e8bec74d: Waiting 00:48:05 4fe6c5a15a65: Waiting 00:48:05 8ed8ca486205: Verifying Checksum 00:48:05 8ed8ca486205: Download complete 00:48:05 666ba61612fd: Download complete 00:48:05 22a0e8bec74d: Verifying Checksum 00:48:05 22a0e8bec74d: Download complete 00:48:05 640e595b4fbd: Verifying Checksum 00:48:05 640e595b4fbd: Download complete 00:48:05 763cafe07f6e: Verifying Checksum 00:48:05 763cafe07f6e: Download complete 00:48:05 59bf1c3509f3: Verifying Checksum 00:48:05 59bf1c3509f3: Download complete 00:48:05 0c0b528cf693: Verifying Checksum 00:48:05 0c0b528cf693: Download complete 00:48:05 59bf1c3509f3: Pull complete 00:48:06 666ba61612fd: Pull complete 00:48:06 8ed8ca486205: Pull complete 00:48:06 10935f4eaf8b: Verifying Checksum 00:48:06 10935f4eaf8b: Download complete 00:48:06 4fe6c5a15a65: Verifying Checksum 00:48:06 4fe6c5a15a65: Download complete 00:48:09 4fe6c5a15a65: Pull complete 00:48:09 22a0e8bec74d: Pull complete 00:48:09 640e595b4fbd: Pull complete 00:48:09 763cafe07f6e: Pull complete 00:48:10 0c0b528cf693: Pull complete 00:48:12 10935f4eaf8b: Pull complete 00:48:12 Digest: sha256:fe2da51ced2bed6c5fc1d1038c2fbec5a5bb29cdcacce78977c37c66bfba8387 00:48:12 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine 00:48:12 ---> 99d49a6021b9 00:48:12 Step 3/12 : ARG MAKE='make build' 00:48:13 ---> Running in 86229ffbf79e 00:48:13 Removing intermediate container 86229ffbf79e 00:48:13 ---> 78f08f4d76ab 00:48:13 Step 4/12 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 00:48:13 ---> Running in 6d60ba02b124 00:48:13 Removing intermediate container 6d60ba02b124 00:48:13 ---> 1f0b785a46a5 00:48:13 Step 5/12 : ARG ALPINE_PKG_EXTRA="" 00:48:13 ---> Running in ea3b1b1f5d29 00:48:13 Removing intermediate container ea3b1b1f5d29 00:48:13 ---> 079250a59505 00:48:13 Step 6/12 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 00:48:13 ---> Running in a0997f86aac7 00:48:14 Removing intermediate container a0997f86aac7 00:48:14 ---> a397d912bd2e 00:48:14 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 00:48:14 ---> Running in 38723f7624a9 00:48:14 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 00:48:15 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 00:48:15 (1/4) Installing openssh-keygen (8.8_p1-r1) 00:48:15 (2/4) Installing libedit (20210910.3.1-r0) 00:48:15 (3/4) Installing openssh-client-common (8.8_p1-r1) 00:48:15 (4/4) Installing openssh-client-default (8.8_p1-r1) 00:48:15 Executing busybox-1.34.1-r3.trigger 00:48:16 OK: 224 MiB in 56 packages 00:48:16 Removing intermediate container 38723f7624a9 00:48:16 ---> 8ea2945abaf4 00:48:16 Step 8/12 : WORKDIR /device-rest-go 00:48:16 ---> Running in 7331291fc69d 00:48:16 Removing intermediate container 7331291fc69d 00:48:16 ---> 7fdc5c780bc5 00:48:16 Step 9/12 : COPY go.mod vendor* ./ 00:48:16 ---> 6e70d87077cd 00:48:16 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 00:48:16 ---> Running in 1e145d484809 00:48:18 Still waiting to schedule task 00:48:18 Waiting for next available executor on ‘ubuntu20.04-docker-arm64-4c-16g’ 00:48:31 Removing intermediate container 1e145d484809 00:48:31 ---> bf043d044172 00:48:31 Step 11/12 : COPY . . 00:48:31 ---> d96fe131dc91 00:48:31 Step 12/12 : RUN $MAKE 00:48:31 ---> Running in f9221e72a9e7 00:48:31 noop 00:48:31 Removing intermediate container f9221e72a9e7 00:48:31 ---> d8cbd22eb217 00:48:31 Successfully built d8cbd22eb217 00:48:31 Successfully tagged ci-base-image-x86_64:latest [Pipeline] isUnix [Pipeline] sh 00:48:32 + docker inspect -f . ci-base-image-x86_64 00:48:32 . [Pipeline] withDockerContainer 00:48:32 prd-ubuntu20.04-docker-8c-8g-10808 does not seem to be running inside a container 00:48:32 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-169 -v /w/workspace/gexfoundry_device-rest-go_PR-169:/w/workspace/gexfoundry_device-rest-go_PR-169:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-169@tmp:/w/workspace/gexfoundry_device-rest-go_PR-169@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 00:48:32 $ docker top a5c417c9a246c2d02639a8ad301bb9327300104a08d3a7e238b069becf19d935 -eo pid,comm [Pipeline] { [Pipeline] sh 00:48:32 + go version 00:48:32 go version go1.17.6 linux/amd64 [Pipeline] } 00:48:33 $ docker stop --time=1 a5c417c9a246c2d02639a8ad301bb9327300104a08d3a7e238b069becf19d935 00:48:34 $ docker rm -f a5c417c9a246c2d02639a8ad301bb9327300104a08d3a7e238b069becf19d935 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 00:48:35 + docker inspect -f . ci-base-image-x86_64 00:48:35 . [Pipeline] withDockerContainer 00:48:35 prd-ubuntu20.04-docker-8c-8g-10808 does not seem to be running inside a container 00:48:35 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-169 -v /w/workspace/gexfoundry_device-rest-go_PR-169:/w/workspace/gexfoundry_device-rest-go_PR-169:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-169@tmp:/w/workspace/gexfoundry_device-rest-go_PR-169@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 00:48:35 $ docker top 69e5062368f75da886c7d4bd1f072560c803e425baddf9668e347b033afcf6e2 -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 00:48:36 + make test 00:48:36 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out ./... 00:48:36 ? github.com/edgexfoundry/device-rest-go [no test files] 00:48:46 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 00:48:46 ok github.com/edgexfoundry/device-rest-go/driver 0.015s coverage: 55.2% of statements 00:48:50 CGO_ENABLED=1 GO111MODULE=on go vet ./... 00:48:54 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 00:48:54 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 00:48:54 ./bin/test-attribution-txt.sh [Pipeline] echo 00:48:54 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 00:48:54 $ docker stop --time=1 69e5062368f75da886c7d4bd1f072560c803e425baddf9668e347b033afcf6e2 00:48:56 $ docker rm -f 69e5062368f75da886c7d4bd1f072560c803e425baddf9668e347b033afcf6e2 [Pipeline] // withDockerContainer [Pipeline] sh 00:48:57 + sudo chown -R jenkins:jenkins . [Pipeline] stash 00:48:57 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 00:48:58 + sudo chown -R jenkins:jenkins . [Pipeline] sh 00:48:58 + ls -al . 00:48:58 total 172 00:48:58 drwxrwxr-x 9 jenkins jenkins 4096 Apr 6 00:48 . 00:48:58 drwxrwxr-x 4 jenkins jenkins 4096 Apr 6 00:47 .. 00:48:58 -rw-rw-r-- 1 jenkins jenkins 151 Apr 6 00:47 .dockerignore 00:48:58 drwxrwxr-x 8 jenkins jenkins 4096 Apr 6 00:47 .git 00:48:58 drwxrwxr-x 2 jenkins jenkins 4096 Apr 6 00:47 .github 00:48:58 -rw-rw-r-- 1 jenkins jenkins 329 Apr 6 00:47 .gitignore 00:48:58 -rw-rw-r-- 1 jenkins jenkins 41 Apr 6 00:47 .golangci.yml 00:48:58 drwx------ 3 jenkins jenkins 4096 Apr 6 00:48 .semver 00:48:58 -rw-rw-r-- 1 jenkins jenkins 8330 Apr 6 00:47 Attribution.txt 00:48:58 -rw-rw-r-- 1 jenkins jenkins 7459 Apr 6 00:47 CHANGELOG.md 00:48:58 -rw-rw-r-- 1 jenkins jenkins 1672 Apr 6 00:47 Dockerfile 00:48:58 -rw-rw-r-- 1 jenkins jenkins 677 Apr 6 00:47 GOVERNANCE.md 00:48:58 -rw-rw-r-- 1 jenkins jenkins 680 Apr 6 00:47 Jenkinsfile 00:48:58 -rw-rw-r-- 1 jenkins jenkins 11340 Apr 6 00:47 LICENSE 00:48:58 -rw-rw-r-- 1 jenkins jenkins 1578 Apr 6 00:47 Makefile 00:48:58 -rw-rw-r-- 1 jenkins jenkins 620 Apr 6 00:47 OWNERS.md 00:48:58 -rw-rw-r-- 1 jenkins jenkins 8246 Apr 6 00:47 README.md 00:48:58 -rw-rw-r-- 1 jenkins jenkins 5 Apr 6 00:48 VERSION 00:48:58 drwxrwxr-x 2 jenkins jenkins 4096 Apr 6 00:47 bin 00:48:58 drwxrwxr-x 3 jenkins jenkins 4096 Apr 6 00:47 cmd 00:48:58 -rw-r--r-- 1 jenkins jenkins 9355 Apr 6 00:48 coverage.out 00:48:58 drwxrwxr-x 2 jenkins jenkins 4096 Apr 6 00:47 driver 00:48:58 -rw-rw-r-- 1 jenkins jenkins 3240 Apr 6 00:47 go.mod 00:48:58 -rw-rw-r-- 1 jenkins jenkins 34722 Apr 6 00:47 go.sum 00:48:58 drwxrwxr-x 3 jenkins jenkins 4096 Apr 6 00:47 snap 00:48:58 -rw-rw-r-- 1 jenkins jenkins 713 Apr 6 00:47 version.go [Pipeline] isUnix [Pipeline] sh 00:48:58 + 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=3ef3434f29de7babebb530a0a3a69c8b081d7b6d --label arch=amd64 --label version=0.0.0 . 00:48:58 Sending build context to Docker daemon 10.57MB 00:48:58 Step 1/25 : ARG BASE=golang:1.17-alpine3.15 00:48:58 Step 2/25 : FROM ${BASE} AS builder 00:48:58 ---> d8cbd22eb217 00:48:58 Step 3/25 : ARG MAKE='make build' 00:48:58 ---> Running in c70e236e70b5 00:48:59 Removing intermediate container c70e236e70b5 00:48:59 ---> 3882336eb2a8 00:48:59 Step 4/25 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 00:48:59 ---> Running in d967fd53fc2c 00:48:59 Removing intermediate container d967fd53fc2c 00:48:59 ---> 06adf15ae614 00:48:59 Step 5/25 : ARG ALPINE_PKG_EXTRA="" 00:48:59 ---> Running in c3869dd67b77 00:48:59 Removing intermediate container c3869dd67b77 00:48:59 ---> b7bdd9cab4e9 00:48:59 Step 6/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 00:48:59 ---> Running in 6d1e6579bec1 00:48:59 Removing intermediate container 6d1e6579bec1 00:48:59 ---> a78d77e738d1 00:48:59 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 00:48:59 ---> Running in fc000ca79be3 00:49:00 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 00:49:01 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 00:49:01 OK: 224 MiB in 56 packages 00:49:01 Removing intermediate container fc000ca79be3 00:49:01 ---> 23e67a35fc95 00:49:01 Step 8/25 : WORKDIR /device-rest-go 00:49:01 ---> Running in 29e635e38e67 00:49:01 Removing intermediate container 29e635e38e67 00:49:01 ---> 633845c08943 00:49:01 Step 9/25 : COPY go.mod vendor* ./ 00:49:01 ---> bc6b3f50700d 00:49:01 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 00:49:01 ---> Running in d7b2ba6fb29c 00:49:02 Removing intermediate container d7b2ba6fb29c 00:49:02 ---> 7c5e746012d2 00:49:02 Step 11/25 : COPY . . 00:49:03 ---> 8528112352a9 00:49:03 Step 12/25 : RUN $MAKE 00:49:03 ---> Running in 5df6a81e67a9 00:49:03 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:49:15 Removing intermediate container 5df6a81e67a9 00:49:15 ---> 5c85035b2e3f 00:49:15 Step 13/25 : FROM alpine:3.14 00:49:15 3.14: Pulling from library/alpine 00:49:15 8663204ce13b: Pulling fs layer 00:49:15 8663204ce13b: Download complete 00:49:15 8663204ce13b: Pull complete 00:49:15 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 00:49:15 Status: Downloaded newer image for alpine:3.14 00:49:15 ---> e04c818066af 00:49:15 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' 00:49:15 ---> Running in 43bfc45e606b 00:49:15 Removing intermediate container 43bfc45e606b 00:49:15 ---> 4f1e91ac1de2 00:49:15 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 00:49:15 ---> Running in e59bfe3ebc19 00:49:15 Removing intermediate container e59bfe3ebc19 00:49:15 ---> 6e736ea44ae7 00:49:15 Step 16/25 : RUN apk add --update --no-cache zeromq dumb-init 00:49:15 ---> Running in 0ac31aa376ef 00:49:15 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz 00:49:15 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz 00:49:16 (1/6) Installing dumb-init (1.2.5-r1) 00:49:16 (2/6) Installing libgcc (10.3.1_git20210424-r2) 00:49:16 (3/6) Installing libsodium (1.0.18-r0) 00:49:16 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 00:49:16 (5/6) Installing libzmq (4.3.4-r0) 00:49:16 (6/6) Installing zeromq (4.3.4-r0) 00:49:16 Executing busybox-1.33.1-r7.trigger 00:49:16 OK: 8 MiB in 20 packages 00:49:16 Removing intermediate container 0ac31aa376ef 00:49:16 ---> eccb61576a69 00:49:16 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 00:49:16 ---> de9349acfc22 00:49:16 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 00:49:17 ---> f473fd96a895 00:49:17 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 00:49:17 ---> 8893ceac568f 00:49:17 Step 20/25 : EXPOSE 59986 00:49:17 ---> Running in dc37df231f20 00:49:17 Removing intermediate container dc37df231f20 00:49:17 ---> e111b01d540b 00:49:17 Step 21/25 : ENTRYPOINT ["/device-rest"] 00:49:17 ---> Running in bb2b4995a45e 00:49:17 Removing intermediate container bb2b4995a45e 00:49:17 ---> c751625059a0 00:49:17 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--confdir=/res", "--registry"] 00:49:17 ---> Running in 8a650891f6ac 00:49:17 Removing intermediate container 8a650891f6ac 00:49:17 ---> b04f92a223f1 00:49:17 Step 23/25 : LABEL arch=amd64 00:49:17 ---> Running in 343980c3e77a 00:49:17 Removing intermediate container 343980c3e77a 00:49:17 ---> 80fad701575d 00:49:17 Step 24/25 : LABEL git_sha=3ef3434f29de7babebb530a0a3a69c8b081d7b6d 00:49:17 ---> Running in f2625f85c205 00:49:17 Removing intermediate container f2625f85c205 00:49:17 ---> 26cae0c988d4 00:49:17 Step 25/25 : LABEL version=0.0.0 00:49:17 ---> Running in 1168c6c4f428 00:49:17 Removing intermediate container 1168c6c4f428 00:49:17 ---> dceb9fe1e2c0 00:49:17 [Warning] One or more build-args [ARCH] were not consumed 00:49:17 Successfully built dceb9fe1e2c0 00:49:17 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:49:18 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 00:49:18 00:49:18 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] sh 00:49:19 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 00:49:19 latest: Pulling from edgex-lftools-log-publisher 00:49:19 5eb5b503b376: Pulling fs layer 00:49:19 5c69ac0246d0: Pulling fs layer 00:49:19 ec43610c2a17: Pulling fs layer 00:49:19 3a2ae6a8a46f: Pulling fs layer 00:49:19 33b1e0a273af: Pulling fs layer 00:49:19 5d3b04190fa2: Pulling fs layer 00:49:19 3a2ae6a8a46f: Waiting 00:49:19 33b1e0a273af: Waiting 00:49:19 2f39f015ded8: Pulling fs layer 00:49:19 5d3b04190fa2: Waiting 00:49:19 2f39f015ded8: Waiting 00:49:19 5c69ac0246d0: Verifying Checksum 00:49:19 5c69ac0246d0: Download complete 00:49:19 3a2ae6a8a46f: Verifying Checksum 00:49:19 3a2ae6a8a46f: Download complete 00:49:19 33b1e0a273af: Verifying Checksum 00:49:19 33b1e0a273af: Download complete 00:49:19 5d3b04190fa2: Verifying Checksum 00:49:19 5d3b04190fa2: Download complete 00:49:19 ec43610c2a17: Verifying Checksum 00:49:19 ec43610c2a17: Download complete 00:49:19 5eb5b503b376: Verifying Checksum 00:49:19 5eb5b503b376: Download complete 00:49:19 2f39f015ded8: Download complete 00:49:20 5eb5b503b376: Pull complete 00:49:20 5c69ac0246d0: Pull complete 00:49:21 ec43610c2a17: Pull complete 00:49:21 3a2ae6a8a46f: Pull complete 00:49:21 33b1e0a273af: Pull complete 00:49:21 5d3b04190fa2: Pull complete 00:49:25 2f39f015ded8: Pull complete 00:49:25 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 00:49:25 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 00:49:25 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] withDockerContainer 00:49:25 prd-ubuntu20.04-docker-8c-8g-10808 does not seem to be running inside a container 00:49:25 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/gexfoundry_device-rest-go_PR-169 -v /w/workspace/gexfoundry_device-rest-go_PR-169:/w/workspace/gexfoundry_device-rest-go_PR-169:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-169@tmp:/w/workspace/gexfoundry_device-rest-go_PR-169@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 00:49:27 $ docker top e909544e48c6545560e7a8033ef206e04ac9ef318c702de58ed5982a3d626f07 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 00:49:27 ---> job-cost.sh 00:49:27 lf-activate-venv: SKIPPING 00:49:27 INFO: No Stack... 00:49:27 INFO: Retrieving Pricing Info for: v3-standard-8 00:49:28 INFO: Archiving Costs [Pipeline] sh 00:49:28 + cat /w/workspace/gexfoundry_device-rest-go_PR-169/archives/cost.csv 00:49:28 + cut -d, -f6 [Pipeline] lock 00:49:28 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-169-1-stack-cost] 00:49:28 Resource [jenkins-edgexfoundry-device-rest-go-PR-169-1-stack-cost] did not exist. Created. 00:49:28 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-169-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 00:49:29 + echo total: 0.2199999988079071 [Pipeline] stash 00:49:29 Stashed 1 file(s) [Pipeline] } 00:49:29 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-169-1-stack-cost] [Pipeline] // lock [Pipeline] } 00:49:29 $ docker stop --time=1 e909544e48c6545560e7a8033ef206e04ac9ef318c702de58ed5982a3d626f07 00:49:30 $ docker rm -f e909544e48c6545560e7a8033ef206e04ac9ef318c702de58ed5982a3d626f07 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 00:50:43 Running on prd-ubuntu20.04-docker-arm64-4c-16g-10809 in /w/workspace/gexfoundry_device-rest-go_PR-169 [Pipeline] { [Pipeline] ws 00:50:43 Running in /w/workspace/device-rest-go/1 [Pipeline] { [Pipeline] checkout 00:50:43 The recommended git tool is: git 00:50:50 using credential edgex-jenkins-ssh 00:50:50 Cloning the remote Git repository 00:50:51 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 00:50:51 > git init /w/workspace/device-rest-go/1 # timeout=10 00:50:51 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 00:50:51 > git --version # timeout=10 00:50:51 > git --version # 'git version 2.25.1' 00:50:51 using GIT_SSH to set credentials SSH Credentials for GitHub 00:50:51 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 00:50:54 Merging remotes/origin/main commit 868c3d37fa7208ff5e10080602f68a64287cb162 into PR head commit 3ef3434f29de7babebb530a0a3a69c8b081d7b6d 00:50:54 Merge succeeded, producing 3ef3434f29de7babebb530a0a3a69c8b081d7b6d 00:50:54 Checking out Revision 3ef3434f29de7babebb530a0a3a69c8b081d7b6d (PR-169) 00:50:53 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 00:50:53 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 00:50:53 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 00:50:53 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 00:50:53 using GIT_SSH to set credentials SSH Credentials for GitHub 00:50:53 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/169/head:refs/remotes/origin/PR-169 +refs/heads/main:refs/remotes/origin/main # timeout=10 00:50:54 > git config core.sparsecheckout # timeout=10 00:50:54 > git checkout -f 3ef3434f29de7babebb530a0a3a69c8b081d7b6d # timeout=10 00:50:54 > git remote # timeout=10 00:50:54 > git config --get remote.origin.url # timeout=10 00:50:54 using GIT_SSH to set credentials SSH Credentials for GitHub 00:50:54 > git merge 868c3d37fa7208ff5e10080602f68a64287cb162 # timeout=10 00:50:54 > git rev-parse HEAD^{commit} # timeout=10 00:50:54 > git config core.sparsecheckout # timeout=10 00:50:54 > git checkout -f 3ef3434f29de7babebb530a0a3a69c8b081d7b6d # timeout=10 00:50:58 Commit message: "build(deps): Update device-sdk-go" 00:50:58 > git --version # timeout=10 00:50:58 > git --version # 'git version 2.25.1' 00:50:58 fatal: bad object c72b16708d6eed9a08be464a432ce22db7d90667 [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 00:50:59 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 00:50:59 % Total % Received % Xferd Average Speed Time Time Time Current 00:50:59 Dload Upload Total Spent Left Speed 00:50:59 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 11843 100 11843 0 0 199k 0 --:--:-- --:--:-- --:--:-- 199k [Pipeline] sh 00:51:00 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 00:51:00 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 00:51:00 + sudo tee /etc/docker/daemon.new 00:51:00 { 00:51:00 "registry-mirrors": [ 00:51:00 "https://nexus3.edgexfoundry.org:10001" 00:51:00 ], 00:51:00 "bip": "10.250.0.254/24", 00:51:00 "hosts": [ 00:51:00 "tcp://0.0.0.0:5555", 00:51:00 "unix:///var/run/docker.sock" 00:51:00 ], 00:51:00 "mtu": 1458, 00:51:00 "selinux-enabled": true, 00:51:00 "seccomp-profile": "/etc/docker/seccomp.json" 00:51:00 } [Pipeline] sh 00:51:01 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 00:51:01 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 00:51:20 provisioning config files... 00:51:20 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/1@tmp/config7235109800530708636tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 00:51:20 ---> docker-login.sh 00:51:20 nexus3.edgexfoundry.org:10001 00:51:21 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:51:21 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:51:21 Configure a credential helper to remove this warning. See 00:51:21 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:51:21 00:51:21 Login Succeeded 00:51:21 nexus3.edgexfoundry.org:10002 00:51:21 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:51:22 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:51:22 Configure a credential helper to remove this warning. See 00:51:22 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:51:22 00:51:22 Login Succeeded 00:51:22 nexus3.edgexfoundry.org:10003 00:51:22 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:51:22 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:51:22 Configure a credential helper to remove this warning. See 00:51:22 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:51:22 00:51:22 Login Succeeded 00:51:22 nexus3.edgexfoundry.org:10004 00:51:22 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:51:22 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:51:22 Configure a credential helper to remove this warning. See 00:51:22 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:51:22 00:51:22 Login Succeeded 00:51:22 docker.io 00:51:23 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 00:51:23 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 00:51:23 Configure a credential helper to remove this warning. See 00:51:23 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 00:51:23 00:51:23 Login Succeeded 00:51:23 ---> docker-login.sh ends [Pipeline] } 00:51:23 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 00:51:24 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 00:51:24 ========================================================= 00:51:24 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine] 00:51:24 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 00:51:24 + 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:51:24 Sending build context to Docker daemon 127.5kB 00:51:24 Step 1/12 : ARG BASE=golang:1.17-alpine3.15 00:51:24 Step 2/12 : FROM ${BASE} AS builder 00:51:25 1.17-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 00:51:25 9b3977197b4f: Pulling fs layer 00:51:25 1a89e8eeedd5: Pulling fs layer 00:51:25 94645a83ff95: Pulling fs layer 00:51:25 3f3a8bcf1eab: Pulling fs layer 00:51:25 0c92f367c5e7: Pulling fs layer 00:51:25 f7c0051592d6: Pulling fs layer 00:51:25 a227ed2f7395: Pulling fs layer 00:51:25 7b1c46037f91: Pulling fs layer 00:51:25 3f3a8bcf1eab: Waiting 00:51:25 0c92f367c5e7: Waiting 00:51:25 f7c0051592d6: Waiting 00:51:25 a227ed2f7395: Waiting 00:51:25 7b1c46037f91: Waiting 00:51:25 94645a83ff95: Download complete 00:51:25 1a89e8eeedd5: Verifying Checksum 00:51:25 1a89e8eeedd5: Download complete 00:51:25 0c92f367c5e7: Download complete 00:51:25 f7c0051592d6: Download complete 00:51:25 9b3977197b4f: Verifying Checksum 00:51:25 9b3977197b4f: Download complete 00:51:25 a227ed2f7395: Verifying Checksum 00:51:25 a227ed2f7395: Download complete 00:51:26 9b3977197b4f: Pull complete 00:51:26 1a89e8eeedd5: Pull complete 00:51:27 94645a83ff95: Pull complete 00:51:27 7b1c46037f91: Verifying Checksum 00:51:27 7b1c46037f91: Download complete 00:51:27 3f3a8bcf1eab: Verifying Checksum 00:51:27 3f3a8bcf1eab: Download complete 00:51:40 3f3a8bcf1eab: Pull complete 00:51:40 0c92f367c5e7: Pull complete 00:51:40 f7c0051592d6: Pull complete 00:51:40 a227ed2f7395: Pull complete 00:51:45 7b1c46037f91: Pull complete 00:51:45 Digest: sha256:72afd471f6932efc3b14a707e53dab7ff98911016b282aefa83be7c085db88fe 00:51:45 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine 00:51:45 ---> f79e39bc4007 00:51:45 Step 3/12 : ARG MAKE='make build' 00:51:47 ---> Running in 5df85d07b4a5 00:51:47 Removing intermediate container 5df85d07b4a5 00:51:47 ---> 024df431af61 00:51:47 Step 4/12 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 00:51:47 ---> Running in 9fff346c60ad 00:51:48 Removing intermediate container 9fff346c60ad 00:51:48 ---> 5edf8a02277f 00:51:48 Step 5/12 : ARG ALPINE_PKG_EXTRA="" 00:51:48 ---> Running in 4da521abeb4e 00:51:48 Removing intermediate container 4da521abeb4e 00:51:48 ---> 99417ef59569 00:51:48 Step 6/12 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 00:51:48 ---> Running in 7b13ae73a81c 00:51:50 Removing intermediate container 7b13ae73a81c 00:51:50 ---> 5a1ecab8bfda 00:51:50 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 00:51:50 ---> Running in f3c15e0d25d9 00:51:51 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 00:51:52 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 00:51:53 (1/4) Installing openssh-keygen (8.8_p1-r1) 00:51:53 (2/4) Installing libedit (20210910.3.1-r0) 00:51:53 (3/4) Installing openssh-client-common (8.8_p1-r1) 00:51:54 (4/4) Installing openssh-client-default (8.8_p1-r1) 00:51:54 Executing busybox-1.34.1-r3.trigger 00:51:54 OK: 224 MiB in 56 packages 00:51:56 Removing intermediate container f3c15e0d25d9 00:51:56 ---> 2c34d7020622 00:51:56 Step 8/12 : WORKDIR /device-rest-go 00:51:56 ---> Running in d75b9f4ce43c 00:51:57 Removing intermediate container d75b9f4ce43c 00:51:57 ---> f2840d38cc8a 00:51:57 Step 9/12 : COPY go.mod vendor* ./ 00:51:57 ---> 45c2804ecf61 00:51:57 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 00:51:57 ---> Running in dafab09c66d5 00:52:44 Removing intermediate container dafab09c66d5 00:52:44 ---> 230e35b62dbb 00:52:44 Step 11/12 : COPY . . 00:52:44 ---> 3bddaeff83b1 00:52:44 Step 12/12 : RUN $MAKE 00:52:45 ---> Running in 5f682e65d49a 00:52:46 noop 00:52:46 Removing intermediate container 5f682e65d49a 00:52:46 ---> d70f6a88cce6 00:52:46 Successfully built d70f6a88cce6 00:52:46 Successfully tagged ci-base-image-arm64:latest [Pipeline] isUnix [Pipeline] sh 00:52:47 + docker inspect -f . ci-base-image-arm64 00:52:47 . [Pipeline] withDockerContainer 00:52:47 prd-ubuntu20.04-docker-arm64-4c-16g-10809 does not seem to be running inside a container 00:52:47 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/1 -v /w/workspace/device-rest-go/1:/w/workspace/device-rest-go/1:rw,z -v /w/workspace/device-rest-go/1@tmp:/w/workspace/device-rest-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 00:52:48 $ docker top 7a727e0360dcb08b27ada6fda799f5805ae8cb855ec62a4d60ee8b62746e366e -eo pid,comm [Pipeline] { [Pipeline] sh 00:52:49 + go version 00:52:49 go version go1.17.6 linux/arm64 [Pipeline] } 00:52:49 $ docker stop --time=1 7a727e0360dcb08b27ada6fda799f5805ae8cb855ec62a4d60ee8b62746e366e 00:52:51 $ docker rm -f 7a727e0360dcb08b27ada6fda799f5805ae8cb855ec62a4d60ee8b62746e366e [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 00:52:52 + docker inspect -f . ci-base-image-arm64 00:52:52 . [Pipeline] withDockerContainer 00:52:52 prd-ubuntu20.04-docker-arm64-4c-16g-10809 does not seem to be running inside a container 00:52:52 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/device-rest-go/1 -v /w/workspace/device-rest-go/1:/w/workspace/device-rest-go/1:rw,z -v /w/workspace/device-rest-go/1@tmp:/w/workspace/device-rest-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-arm64 cat 00:52:53 $ docker top 2a92d64659d9a89b6c49444b6b7394f5dda8f17f0d813689c0796c342a5c1760 -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 00:52:54 + make test 00:52:54 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out ./... 00:52:56 ? github.com/edgexfoundry/device-rest-go [no test files] 00:54:33 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 00:54:33 ok github.com/edgexfoundry/device-rest-go/driver 0.079s coverage: 55.2% of statements 00:54:33 WARNING: Linting skipped (not on x86_64 or linter not installed) 00:54:33 CGO_ENABLED=1 GO111MODULE=on go vet ./... 00:54:56 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 00:54:56 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 00:54:56 ./bin/test-attribution-txt.sh [Pipeline] echo 00:54:58 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 00:54:58 $ docker stop --time=1 2a92d64659d9a89b6c49444b6b7394f5dda8f17f0d813689c0796c342a5c1760 00:55:00 $ docker rm -f 2a92d64659d9a89b6c49444b6b7394f5dda8f17f0d813689c0796c342a5c1760 [Pipeline] // withDockerContainer [Pipeline] sh 00:55:01 + sudo chown -R jenkins:jenkins . [Pipeline] stash 00:55:01 Warning: overwriting stash ‘coverage-report’ 00:55:02 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 00:55:03 + sudo chown -R jenkins:jenkins . [Pipeline] sh 00:55:03 + ls -al . 00:55:03 total 168 00:55:03 drwxrwxr-x 8 jenkins jenkins 4096 Apr 6 00:54 . 00:55:03 drwxrwxr-x 4 jenkins jenkins 4096 Apr 6 00:50 .. 00:55:03 -rw-rw-r-- 1 jenkins jenkins 151 Apr 6 00:50 .dockerignore 00:55:03 drwxrwxr-x 8 jenkins jenkins 4096 Apr 6 00:50 .git 00:55:03 drwxrwxr-x 2 jenkins jenkins 4096 Apr 6 00:50 .github 00:55:03 -rw-rw-r-- 1 jenkins jenkins 329 Apr 6 00:50 .gitignore 00:55:03 -rw-rw-r-- 1 jenkins jenkins 41 Apr 6 00:50 .golangci.yml 00:55:03 -rw-rw-r-- 1 jenkins jenkins 8330 Apr 6 00:50 Attribution.txt 00:55:03 -rw-rw-r-- 1 jenkins jenkins 7459 Apr 6 00:50 CHANGELOG.md 00:55:03 -rw-rw-r-- 1 jenkins jenkins 1672 Apr 6 00:50 Dockerfile 00:55:03 -rw-rw-r-- 1 jenkins jenkins 677 Apr 6 00:50 GOVERNANCE.md 00:55:03 -rw-rw-r-- 1 jenkins jenkins 680 Apr 6 00:50 Jenkinsfile 00:55:03 -rw-rw-r-- 1 jenkins jenkins 11340 Apr 6 00:50 LICENSE 00:55:03 -rw-rw-r-- 1 jenkins jenkins 1578 Apr 6 00:50 Makefile 00:55:03 -rw-rw-r-- 1 jenkins jenkins 620 Apr 6 00:50 OWNERS.md 00:55:03 -rw-rw-r-- 1 jenkins jenkins 8246 Apr 6 00:50 README.md 00:55:03 -rw-rw-r-- 1 jenkins jenkins 5 Apr 6 00:48 VERSION 00:55:03 drwxrwxr-x 2 jenkins jenkins 4096 Apr 6 00:50 bin 00:55:03 drwxrwxr-x 3 jenkins jenkins 4096 Apr 6 00:50 cmd 00:55:03 -rw-r--r-- 1 jenkins jenkins 9355 Apr 6 00:54 coverage.out 00:55:03 drwxrwxr-x 2 jenkins jenkins 4096 Apr 6 00:50 driver 00:55:03 -rw-rw-r-- 1 jenkins jenkins 3240 Apr 6 00:50 go.mod 00:55:03 -rw-rw-r-- 1 jenkins jenkins 34722 Apr 6 00:50 go.sum 00:55:03 drwxrwxr-x 3 jenkins jenkins 4096 Apr 6 00:50 snap 00:55:03 -rw-rw-r-- 1 jenkins jenkins 713 Apr 6 00:50 version.go [Pipeline] isUnix [Pipeline] sh 00:55:03 + 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=3ef3434f29de7babebb530a0a3a69c8b081d7b6d --label arch=arm64 --label version=0.0.0 . 00:55:03 Sending build context to Docker daemon 137.7kB 00:55:04 Step 1/25 : ARG BASE=golang:1.17-alpine3.15 00:55:04 Step 2/25 : FROM ${BASE} AS builder 00:55:04 ---> d70f6a88cce6 00:55:04 Step 3/25 : ARG MAKE='make build' 00:55:04 ---> Running in 0dec9a730210 00:55:04 Removing intermediate container 0dec9a730210 00:55:04 ---> 9526cbb8886d 00:55:04 Step 4/25 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 00:55:04 ---> Running in 280537684ef7 00:55:05 Removing intermediate container 280537684ef7 00:55:05 ---> d94f057193f6 00:55:05 Step 5/25 : ARG ALPINE_PKG_EXTRA="" 00:55:05 ---> Running in 3cc7bc826fb8 00:55:05 Removing intermediate container 3cc7bc826fb8 00:55:05 ---> 4f1a63aa925c 00:55:05 Step 6/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 00:55:05 ---> Running in 3cc1160f65e0 00:55:07 Removing intermediate container 3cc1160f65e0 00:55:07 ---> 30febcf0bf5e 00:55:07 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 00:55:07 ---> Running in 2ad96f4d7be7 00:55:08 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 00:55:09 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 00:55:11 OK: 224 MiB in 56 packages 00:55:11 Removing intermediate container 2ad96f4d7be7 00:55:11 ---> 11c3760a8d92 00:55:11 Step 8/25 : WORKDIR /device-rest-go 00:55:11 ---> Running in f12e839c07cf 00:55:12 Removing intermediate container f12e839c07cf 00:55:12 ---> 7187611a38bb 00:55:12 Step 9/25 : COPY go.mod vendor* ./ 00:55:13 ---> 23516581fadc 00:55:13 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 00:55:13 ---> Running in 4eba99a90122 00:55:15 Removing intermediate container 4eba99a90122 00:55:15 ---> e64372b825b8 00:55:15 Step 11/25 : COPY . . 00:55:16 ---> 4db0ba940161 00:55:16 Step 12/25 : RUN $MAKE 00:55:16 ---> Running in 11311d3eb1a1 00:55:17 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:56:54 Removing intermediate container 11311d3eb1a1 00:56:54 ---> b0e40be49470 00:56:54 Step 13/25 : FROM alpine:3.14 00:56:54 3.14: Pulling from library/alpine 00:56:54 455c02918c45: Pulling fs layer 00:56:54 455c02918c45: Verifying Checksum 00:56:54 455c02918c45: Download complete 00:56:54 455c02918c45: Pull complete 00:56:54 Digest: sha256:06b5d462c92fc39303e6363c65e074559f8d6b1363250027ed5053557e3398c5 00:56:54 Status: Downloaded newer image for alpine:3.14 00:56:54 ---> ac73e934f311 00:56:54 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' 00:56:54 ---> Running in 0fc0c2f48638 00:56:54 Removing intermediate container 0fc0c2f48638 00:56:54 ---> 4fe33d92ea01 00:56:54 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 00:56:54 ---> Running in 6cbfaee44fb1 00:56:54 Removing intermediate container 6cbfaee44fb1 00:56:54 ---> e8b157704e6d 00:56:54 Step 16/25 : RUN apk add --update --no-cache zeromq dumb-init 00:56:54 ---> Running in 299ebf694fe9 00:56:54 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/aarch64/APKINDEX.tar.gz 00:56:54 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/aarch64/APKINDEX.tar.gz 00:56:54 (1/6) Installing dumb-init (1.2.5-r1) 00:56:54 (2/6) Installing libgcc (10.3.1_git20210424-r2) 00:56:54 (3/6) Installing libsodium (1.0.18-r0) 00:56:54 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 00:56:54 (5/6) Installing libzmq (4.3.4-r0) 00:56:54 (6/6) Installing zeromq (4.3.4-r0) 00:56:54 Executing busybox-1.33.1-r7.trigger 00:56:54 OK: 8 MiB in 20 packages 00:56:54 Removing intermediate container 299ebf694fe9 00:56:54 ---> 41a327923010 00:56:54 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 00:56:54 ---> 9190c0ee0293 00:56:54 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 00:56:54 ---> b8689170dbe7 00:56:54 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 00:56:54 ---> b52de91ce7be 00:56:54 Step 20/25 : EXPOSE 59986 00:56:54 ---> Running in f4b225300d54 00:56:54 Removing intermediate container f4b225300d54 00:56:54 ---> e8a6cf025f71 00:56:54 Step 21/25 : ENTRYPOINT ["/device-rest"] 00:56:54 ---> Running in f7f9f0214437 00:56:54 Removing intermediate container f7f9f0214437 00:56:54 ---> 0709b8d6165e 00:56:54 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--confdir=/res", "--registry"] 00:56:54 ---> Running in ed01e782bbc7 00:56:54 Removing intermediate container ed01e782bbc7 00:56:54 ---> b1ea63b31405 00:56:54 Step 23/25 : LABEL arch=arm64 00:56:54 ---> Running in 0eac2485558d 00:56:54 Removing intermediate container 0eac2485558d 00:56:54 ---> 7476bfbc88b6 00:56:54 Step 24/25 : LABEL git_sha=3ef3434f29de7babebb530a0a3a69c8b081d7b6d 00:56:54 ---> Running in 46b270c8aaa4 00:56:54 Removing intermediate container 46b270c8aaa4 00:56:54 ---> a57e6fac5269 00:56:54 Step 25/25 : LABEL version=0.0.0 00:56:54 ---> Running in 0215d7175216 00:56:54 Removing intermediate container 0215d7175216 00:56:54 ---> e960a74229cf 00:56:54 [Warning] One or more build-args [ARCH] were not consumed 00:56:54 Successfully built e960a74229cf 00:56: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 00:56:54 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 00:56:54 00:56:54 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] sh 00:56:55 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 00:56:55 arm64: Pulling from edgex-lftools-log-publisher 00:56:55 8998bd30e6a1: Pulling fs layer 00:56:55 04944245beec: Pulling fs layer 00:56:55 699f458cf7ca: Pulling fs layer 00:56:55 765212b225bb: Pulling fs layer 00:56:55 f23df028b6ca: Pulling fs layer 00:56:55 d65c8cfc05b1: Pulling fs layer 00:56:55 2437ff75d9bd: Pulling fs layer 00:56:55 765212b225bb: Waiting 00:56:55 f23df028b6ca: Waiting 00:56:55 d65c8cfc05b1: Waiting 00:56:55 2437ff75d9bd: Waiting 00:56:55 04944245beec: Download complete 00:56:55 765212b225bb: Verifying Checksum 00:56:55 765212b225bb: Download complete 00:56:55 f23df028b6ca: Verifying Checksum 00:56:55 f23df028b6ca: Download complete 00:56:55 d65c8cfc05b1: Verifying Checksum 00:56:55 d65c8cfc05b1: Download complete 00:56:55 699f458cf7ca: Verifying Checksum 00:56:55 699f458cf7ca: Download complete 00:56:55 8998bd30e6a1: Verifying Checksum 00:56:55 8998bd30e6a1: Download complete 00:56:58 2437ff75d9bd: Verifying Checksum 00:56:58 2437ff75d9bd: Download complete 00:57:00 8998bd30e6a1: Pull complete 00:57:00 04944245beec: Pull complete 00:57:02 699f458cf7ca: Pull complete 00:57:02 765212b225bb: Pull complete 00:57:03 f23df028b6ca: Pull complete 00:57:03 d65c8cfc05b1: Pull complete 00:57:18 2437ff75d9bd: Pull complete 00:57:18 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 00:57:18 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 00:57:18 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] withDockerContainer 00:57:18 prd-ubuntu20.04-docker-arm64-4c-16g-10809 does not seem to be running inside a container 00:57:19 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/device-rest-go/1 -v /w/workspace/device-rest-go/1:/w/workspace/device-rest-go/1:rw,z -v /w/workspace/device-rest-go/1@tmp:/w/workspace/device-rest-go/1@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 cat 00:57:21 $ docker top 3c6287e8f49b6c25ab60cbbb33d69cb4084b5724c191b37b14307c63513a1e74 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 00:57:23 ---> job-cost.sh 00:57:23 lf-activate-venv: SKIPPING 00:57:23 INFO: No Stack... 00:57:23 INFO: Retrieving Pricing Info for: v3-standard-4 00:57:24 INFO: Archiving Costs [Pipeline] sh 00:57:24 + + cut -d,cat -f6 /w/workspace/device-rest-go/1/archives/cost.csv 00:57:24 [Pipeline] lock 00:57:25 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-169-1-stack-cost] 00:57:25 Resource [jenkins-edgexfoundry-device-rest-go-PR-169-1-stack-cost] did not exist. Created. 00:57:25 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-169-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 00:57:25 /w/workspace/device-rest-go/1@tmp/durable-7eef95bc/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 00:57:26 + echo total: 0.10999999940395355 [Pipeline] stash 00:57:26 Warning: overwriting stash ‘stack-cost’ 00:57:26 Stashed 1 file(s) [Pipeline] } 00:57:26 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-169-1-stack-cost] [Pipeline] // lock [Pipeline] } 00:57:26 $ docker stop --time=1 3c6287e8f49b6c25ab60cbbb33d69cb4084b5724c191b37b14307c63513a1e74 00:57:28 $ docker rm -f 3c6287e8f49b6c25ab60cbbb33d69cb4084b5724c191b37b14307c63513a1e74 [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:57:29 provisioning config files... 00:57:29 copy managed file [device-rest-go-codecov-token] to file:/w/workspace/gexfoundry_device-rest-go_PR-169@tmp/config5364626311057072759tmp [Pipeline] { [Pipeline] sh 00:57:29 + set +x 00:57:29 + + curl -s https://codecov.io/bash 00:57:29 bash -s -- 00:57:29 00:57:29 _____ _ 00:57:29 / ____| | | 00:57:29 | | ___ __| | ___ ___ _____ __ 00:57:29 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 00:57:29 | |___| (_) | (_| | __/ (_| (_) \ V / 00:57:29 \_____\___/ \__,_|\___|\___\___/ \_/ 00:57:29 Bash-1.0.6 00:57:29 00:57:29 00:57:29 ==> git version 2.25.1 found 00:57: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 00:57:29 Release-Date: 2020-01-08 00:57: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 00:57:29 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 00:57:29 ==> Jenkins CI detected. 00:57:29 current dir:  /w/workspace/gexfoundry_device-rest-go_PR-169 00:57:29 project root: . 00:57:29 --> token set from env 00:57:29 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 00:57:29 ==> Running gcov in . (disable via -X gcov) 00:57:29 ==> Python coveragepy not found 00:57:29 ==> Searching for coverage reports in: 00:57:29 + . 00:57:29 -> Found 1 reports 00:57:29 ==> Detecting git/mercurial file structure 00:57:29 ==> Reading reports 00:57:29 + ./coverage.out bytes=9355 00:57:29 ==> Appending adjustments 00:57:29 https://docs.codecov.io/docs/fixing-reports 00:57:29 + Found adjustments 00:57:29 ==> Gzipping contents 00:57:29 4.0K /tmp/codecov.cZ9zkH.gz 00:57:29 ==> Uploading reports 00:57:29 url: https://codecov.io 00:57:29 query: branch=PR-169&commit=3ef3434f29de7babebb530a0a3a69c8b081d7b6d&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-169%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=169&job=&cmd_args= 00:57:29 -> Pinging Codecov 00:57: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-169&commit=3ef3434f29de7babebb530a0a3a69c8b081d7b6d&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-169%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=169&job=&cmd_args= 00:57:30 -> Uploading to 00:57:30 https://storage.googleapis.com/codecov/v4/raw/2022-04-06/4E5D53B4F1F92C436F7061BF334D961C/3ef3434f29de7babebb530a0a3a69c8b081d7b6d/96cdfbb4-5397-4081-87c6-a095dc253453.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20220406%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20220406T005729Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=e3e77668a21dbe56c8da164d7e6a80e4be318e4a576e6b0b246384eee97a802b 00:57:30 % Total % Received % Xferd Average Speed Time Time Time Current 00:57:30 Dload Upload Total Spent Left Speed 00:57:30 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 1811 0 0 100 1811 0 7019 --:--:-- --:--:-- --:--:-- 7019 00:57:30 -> Reports have been successfully queued for processing at https://codecov.io/github/edgexfoundry/device-rest-go/commit/3ef3434f29de7babebb530a0a3a69c8b081d7b6d [Pipeline] } 00:57:30 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:57:32 + [ -d /w/workspace/gexfoundry_device-rest-go_PR-169/archives ] 00:57:32 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-169/archives 00:57:32 total 16 00:57:32 drwxr-xr-x 3 root root 4096 Apr 6 00:49 . 00:57:32 drwxrwxr-x 10 jenkins jenkins 4096 Apr 6 00:49 .. 00:57:32 drwxr-xr-x 2 root root 4096 Apr 6 00:49 cost 00:57:32 -rw-r--r-- 1 root root 85 Apr 6 00:49 cost.csv 00:57:32 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-rest-go_PR-169/archives 00:57:32 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-169/archives 00:57:32 total 16 00:57:32 drwxr-xr-x 3 jenkins jenkins 4096 Apr 6 00:49 . 00:57:32 drwxrwxr-x 10 jenkins jenkins 4096 Apr 6 00:49 .. 00:57:32 drwxr-xr-x 2 jenkins jenkins 4096 Apr 6 00:49 cost 00:57:32 -rw-r--r-- 1 jenkins jenkins 85 Apr 6 00:49 cost.csv [Pipeline] libraryResource [Pipeline] sh 00:57:32 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 00:57:33 ---> package-listing.sh 00:57:33 ++ facter osfamily 00:57:33 ++ tr '[:upper:]' '[:lower:]' 00:57:33 + OS_FAMILY=debian 00:57:33 + workspace=/w/workspace/gexfoundry_device-rest-go_PR-169 00:57:33 + START_PACKAGES=/tmp/packages_start.txt 00:57:33 + END_PACKAGES=/tmp/packages_end.txt 00:57:33 + DIFF_PACKAGES=/tmp/packages_diff.txt 00:57:33 + PACKAGES=/tmp/packages_start.txt 00:57:33 + '[' /w/workspace/gexfoundry_device-rest-go_PR-169 ']' 00:57:33 + PACKAGES=/tmp/packages_end.txt 00:57:33 + case "${OS_FAMILY}" in 00:57:33 + dpkg -l 00:57:33 + grep '^ii' 00:57:33 + '[' -f /tmp/packages_start.txt ']' 00:57:33 + '[' -f /tmp/packages_end.txt ']' 00:57:33 + diff /tmp/packages_start.txt /tmp/packages_end.txt 00:57:33 + '[' /w/workspace/gexfoundry_device-rest-go_PR-169 ']' 00:57:33 + mkdir -p /w/workspace/gexfoundry_device-rest-go_PR-169/archives/ 00:57:33 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/gexfoundry_device-rest-go_PR-169/archives/ [Pipeline] echo 00:57:33 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-169/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 00:57:33 + facter operatingsystem [Pipeline] isUnix [Pipeline] sh 00:57:34 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 00:57:34 . [Pipeline] withDockerContainer 00:57:34 prd-ubuntu20.04-docker-8c-8g-10808 does not seem to be running inside a container 00:57:34 $ 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-169/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-169 -v /w/workspace/gexfoundry_device-rest-go_PR-169:/w/workspace/gexfoundry_device-rest-go_PR-169:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-169@tmp:/w/workspace/gexfoundry_device-rest-go_PR-169@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 00:57:34 $ docker top 4d70d8cd1fad8285fc2205ed33d6aaadff4a393c969ee456abc9909682787b62 -eo pid,comm [Pipeline] { [Pipeline] sh 00:57:35 + touch /tmp/pre-build-complete [Pipeline] sh 00:57:35 + mkdir -p /var/log/sysstat [Pipeline] sh 00:57:35 + ls /var/log/sa-host 00:57:35 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 00:57:36 provisioning config files... 00:57:36 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-169@tmp/config8511423208552799297tmp [Pipeline] { [Pipeline] echo 00:57:36 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 00:57:36 ---> create-netrc.sh [Pipeline] } 00:57:36 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 00:57:36 ---> python-tools-install.sh [Pipeline] echo 00:57:36 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 00:57:37 ---> sudo-logs.sh 00:57:37 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 00:57:37 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 00:57:37 ---> job-cost.sh 00:57:37 lf-activate-venv: SKIPPING 00:57:37 DEBUG: total: 0.2199999988079071 00:57:37 INFO: Retrieving Stack Cost... 00:57:38 INFO: Retrieving Pricing Info for: v3-standard-8 00:57:38 INFO: Archiving Costs [Pipeline] echo 00:57:38 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 00:57:39 ---> logs-deploy.sh 00:57:39 lf-activate-venv: SKIPPING 00:57:39 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-169/1 00:57:39 INFO: archiving workspace using pattern(s): 00:57:40 Archives upload complete. 00:57:40 INFO: archiving logs to Nexus