Pull request #166 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 jpwhitemn for edgexfoundry/device-rest-go Loading trusted files from base branch main at ec779fd03c03a2eb2a0571cd3b2e316fba414fa2 rather than d8a98d2fccb12f3f5057796c9b675e9b6e19a964 Obtained Jenkinsfile from ec779fd03c03a2eb2a0571cd3b2e316fba414fa2 Loading library edgex-global-pipelines@stable Attempting to resolve stable from remote references... > git --version # timeout=10 > git --version # 'git version 2.16.6' using GIT_SSH to set credentials SSH Credentials for GitHub [INFO] Currently running in a labeled security context [INFO] Currently SELinux is 'enforcing' on the host > /usr/bin/chcon --type=ssh_home_t /tmp/jenkins-gitclient-ssh13062574486711244425.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-ssh4344900316208759400.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-166/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-166/workspace@libs/edgex-global-pipelines@tmp/jenkins-gitclient-ssh16210330283250797514.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-166/workspace@libs/edgex-global-pipelines@tmp/jenkins-gitclient-ssh11999383507329362029.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-ssh2477181153025469796.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-166/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-166/workspace@libs/lf-pipelines@tmp/jenkins-gitclient-ssh2219678530335917029.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 ‘prd-ubuntu20.04-docker-8c-8g-9513’ Running on prd-ubuntu20.04-docker-8c-8g-9514 in /w/workspace/gexfoundry_device-rest-go_PR-166 [Pipeline] { [Pipeline] stage [Pipeline] { (Declarative: Checkout SCM) [Pipeline] checkout The recommended git tool is: git using credential edgex-jenkins-ssh Cloning the remote Git repository Cloning repository git@github.com:edgexfoundry/device-rest-go.git > git init /w/workspace/gexfoundry_device-rest-go_PR-166 # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git > git --version # timeout=10 > git --version # 'git version 2.25.1' using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git using GIT_SSH to set credentials SSH Credentials for GitHub > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/166/head:refs/remotes/origin/PR-166 +refs/heads/main:refs/remotes/origin/main # timeout=10 Merging remotes/origin/main commit ec779fd03c03a2eb2a0571cd3b2e316fba414fa2 into PR head commit d8a98d2fccb12f3f5057796c9b675e9b6e19a964 Merge succeeded, producing d8a98d2fccb12f3f5057796c9b675e9b6e19a964 Checking out Revision d8a98d2fccb12f3f5057796c9b675e9b6e19a964 (PR-166) > git config core.sparsecheckout # timeout=10 > git checkout -f d8a98d2fccb12f3f5057796c9b675e9b6e19a964 # timeout=10 > git remote # timeout=10 > git config --get remote.origin.url # timeout=10 using GIT_SSH to set credentials SSH Credentials for GitHub > git merge ec779fd03c03a2eb2a0571cd3b2e316fba414fa2 # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f d8a98d2fccb12f3f5057796c9b675e9b6e19a964 # timeout=10 Commit message: "feat: enable gosec and default linter set" 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 22:22:12 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 22:22:12 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 22:22:12 ========================================================= 22:22:12 EdgeX Global Pipelines Version Info 22:22:12 ========================================================= [Pipeline] libraryResource [Pipeline] sh 22:22:13 ------------------- 22:22:13 stable info: 22:22:13 ------------------- 22:22:13 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 22:22:13 Commit SHA: c72b16708d6eed9a08be464a432ce22db7d90667 22:22:13 Message: update stable to v1.0.221 22:22:13 ------------------- 22:22:13 experimental info: 22:22:13 ------------------- 22:22:13 Commited By: **** collab-it+edgex@linuxfoundation.org 22:22:13 Commit SHA: c72b16708d6eed9a08be464a432ce22db7d90667 22:22:13 Message: update experimental to v1.0.221 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 22:22:14 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 22:22:14 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 22:22:14 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 22:22:14 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 22:22:14 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 22:22:14 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.17 [Pipeline] echo 22:22:14 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 22:22:14 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 22:22:14 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 22:22:14 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 22:22:14 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 22:22:14 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 22:22:14 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 22:22:14 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 22:22:14 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 22:22:14 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 22:22:15 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 22:22:15 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 22:22:15 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 22:22:15 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 22:22:15 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 22:22:15 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 22:22:15 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 22:22:15 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 22:22:15 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 22:22:15 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 22:22:15 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-166 [Pipeline] echo 22:22:15 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-166 [Pipeline] echo 22:22:15 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-166 [Pipeline] echo 22:22:15 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = d8a98d2fccb12f3f5057796c9b675e9b6e19a964 [Pipeline] echo 22:22:15 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = d8a98d2 [Pipeline] echo 22:22:15 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 22:22:15 provisioning config files... 22:22:15 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-166@tmp/config5267089255711005340tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 22:22:16 ---> docker-login.sh 22:22:16 nexus3.edgexfoundry.org:10001 22:22:16 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:22:16 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:22:16 Configure a credential helper to remove this warning. See 22:22:16 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:22:16 22:22:16 Login Succeeded 22:22:16 nexus3.edgexfoundry.org:10002 22:22:16 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:22:16 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:22:16 Configure a credential helper to remove this warning. See 22:22:16 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:22:16 22:22:16 Login Succeeded 22:22:16 nexus3.edgexfoundry.org:10003 22:22:16 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:22:16 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:22:16 Configure a credential helper to remove this warning. See 22:22:16 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:22:16 22:22:16 Login Succeeded 22:22:16 nexus3.edgexfoundry.org:10004 22:22:16 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:22:16 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:22:16 Configure a credential helper to remove this warning. See 22:22:16 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:22:16 22:22:16 Login Succeeded 22:22:16 docker.io 22:22:17 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:22:17 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:22:17 Configure a credential helper to remove this warning. See 22:22:17 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:22:17 22:22:17 Login Succeeded 22:22:17 ---> docker-login.sh ends [Pipeline] } 22:22:17 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 22:22:18 + git rev-list -1 --merges d8a98d2fccb12f3f5057796c9b675e9b6e19a964~1..d8a98d2fccb12f3f5057796c9b675e9b6e19a964 [Pipeline] echo 22:22:18 -----------> git rev-list -1 --merges d8a98d2fccb12f3f5057796c9b675e9b6e19a964~1..d8a98d2fccb12f3f5057796c9b675e9b6e19a964 d8a98d2fccb12f3f5057796c9b675e9b6e19a964 [false] [Pipeline] sh 22:22:18 + git log --format=format:%s -1 d8a98d2fccb12f3f5057796c9b675e9b6e19a964 [Pipeline] echo 22:22:18 ========================================================= 22:22:18 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 22:22:18 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 22:22:18 + git log --format=format:%s -1 d8a98d2fccb12f3f5057796c9b675e9b6e19a964 [Pipeline] echo 22:22:18 [semverPrep] GIT_COMMIT: d8a98d2fccb12f3f5057796c9b675e9b6e19a964, Commit Message: feat: enable gosec and default linter set [Pipeline] echo 22:22:18 [semverPrep] This is not a build commit. [Pipeline] sh 22:22:19 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 22:22:19 + grep -v github /etc/ssh/ssh_known_hosts 22:22:19 + [ -e /tmp/ssh_known_hosts ] 22:22:19 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 22:22:19 + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 22:22:19 + sudo tee -a /etc/ssh/ssh_known_hosts 22:22:19 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] sh 22:22:19 + docker inspect -f . nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 22:22:19 22:22:19 Error: No such object: nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] isUnix [Pipeline] sh 22:22:20 + docker pull nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 22:22:20 latest: Pulling from edgex-devops/git-semver 22:22:20 a0d0a0d46f8b: Pulling fs layer 22:22:20 3e5f54012d9b: Pulling fs layer 22:22:20 4c7163046ea9: Pulling fs layer 22:22:20 0c2d73faf560: Pulling fs layer 22:22:20 0c2d73faf560: Waiting 22:22:20 3e5f54012d9b: Download complete 22:22:20 a0d0a0d46f8b: Verifying Checksum 22:22:20 a0d0a0d46f8b: Download complete 22:22:20 4c7163046ea9: Verifying Checksum 22:22:20 4c7163046ea9: Download complete 22:22:20 0c2d73faf560: Verifying Checksum 22:22:20 0c2d73faf560: Download complete 22:22:20 a0d0a0d46f8b: Pull complete 22:22:20 3e5f54012d9b: Pull complete 22:22:20 4c7163046ea9: Pull complete 22:22:20 0c2d73faf560: Pull complete 22:22:20 Digest: sha256:2751de6e655929dcbe46418c7769d9d992331b5b721eb968631a4166222929f9 22:22:20 Status: Downloaded newer image for nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest 22:22:20 nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest [Pipeline] withDockerContainer 22:22:20 prd-ubuntu20.04-docker-8c-8g-9514 does not seem to be running inside a container 22:22:21 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/gexfoundry_device-rest-go_PR-166 -v /w/workspace/gexfoundry_device-rest-go_PR-166:/w/workspace/gexfoundry_device-rest-go_PR-166:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-166@tmp:/w/workspace/gexfoundry_device-rest-go_PR-166@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10004/edgex-devops/git-semver:latest cat 22:22:21 $ docker top 48721bca6fa805a4377658f4f06cda38d857c9b3d0a9935f08b0470c1a4765d5 -eo pid,comm [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 22:22:21 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 22:22:21 [ssh-agent] Looking for ssh-agent implementation... 22:22:22 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 22:22:22 $ docker exec 48721bca6fa805a4377658f4f06cda38d857c9b3d0a9935f08b0470c1a4765d5 ssh-agent 22:22:22 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXgIKLNk/agent.15 22:22:22 SSH_AGENT_PID=21 22:22:22 Running ssh-add (command line suppressed) 22:22:22 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-166@tmp/private_key_506352890572995477.key (/w/workspace/gexfoundry_device-rest-go_PR-166@tmp/private_key_506352890572995477.key) 22:22:22 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 22:22:22 + git tag --points-at HEAD [Pipeline] } 22:22:22 $ docker exec --env ******** --env ******** 48721bca6fa805a4377658f4f06cda38d857c9b3d0a9935f08b0470c1a4765d5 ssh-agent -k 22:22:22 unset SSH_AUTH_SOCK; 22:22:22 unset SSH_AGENT_PID; 22:22:22 echo Agent pid 21 killed; 22:22:22 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 22:22:22 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 22:22:22 [ssh-agent] Looking for ssh-agent implementation... 22:22:23 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 22:22:23 $ docker exec 48721bca6fa805a4377658f4f06cda38d857c9b3d0a9935f08b0470c1a4765d5 ssh-agent 22:22:23 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXLlKOlE/agent.53 22:22:23 SSH_AGENT_PID=59 22:22:23 Running ssh-add (command line suppressed) 22:22:23 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-166@tmp/private_key_5666949843121220640.key (/w/workspace/gexfoundry_device-rest-go_PR-166@tmp/private_key_5666949843121220640.key) 22:22:23 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 22:22:23 + git semver init 22:22:23 # -> Open(): unable to determine branch for HEAD 22:22:23 # $GIT_DIR = /w/workspace/gexfoundry_device-rest-go_PR-166/.git 22:22:23 # $GIT_WORK_TREE = /w/workspace/gexfoundry_device-rest-go_PR-166 22:22:23 # $SEMVER_REMOTE_NAME = origin 22:22:23 # $SEMVER_USER_EMAIL = collab-it+edgex@linuxfoundation.org 22:22:23 # $SEMVER_USER_NAME = edgex-jenkins 22:22:23 # $SEMVER_BRANCH = PR-166 22:22:23 # $SEMVER_TEMP = /tmp/semver-254224458 22:22:23 # git clone --branch semver git@github.com:edgexfoundry/device-rest-go.git $SEMVER_TEMP 22:22:25 # '/tmp/semver-254224458' -> '/w/workspace/gexfoundry_device-rest-go_PR-166/.semver' 22:22:25 # -> Force: false 22:22:25 # $SEMVER_DIR = /w/workspace/gexfoundry_device-rest-go_PR-166/.semver [Pipeline] } 22:22:25 $ docker exec --env ******** --env ******** 48721bca6fa805a4377658f4f06cda38d857c9b3d0a9935f08b0470c1a4765d5 ssh-agent -k 22:22:25 unset SSH_AUTH_SOCK; 22:22:25 unset SSH_AGENT_PID; 22:22:25 echo Agent pid 59 killed; 22:22:25 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 22:22:25 + git semver [Pipeline] } 22:22:25 $ docker stop --time=1 48721bca6fa805a4377658f4f06cda38d857c9b3d0a9935f08b0470c1a4765d5 22:22:26 $ docker rm -f 48721bca6fa805a4377658f4f06cda38d857c9b3d0a9935f08b0470c1a4765d5 [Pipeline] // withDockerContainer [Pipeline] sh 22:22:27 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 22:22:27 Stashed 1 file(s) [Pipeline] echo 22:22:27 [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 22:22:28 provisioning config files... 22:22:28 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-166@tmp/config7221158553243099816tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 22:22:28 ---> docker-login.sh 22:22:28 nexus3.edgexfoundry.org:10001 22:22:28 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:22:28 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:22:28 Configure a credential helper to remove this warning. See 22:22:28 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:22:28 22:22:28 Login Succeeded 22:22:28 nexus3.edgexfoundry.org:10002 22:22:28 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:22:28 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:22:28 Configure a credential helper to remove this warning. See 22:22:28 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:22:28 22:22:28 Login Succeeded 22:22:28 nexus3.edgexfoundry.org:10003 22:22:28 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:22:28 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:22:28 Configure a credential helper to remove this warning. See 22:22:28 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:22:28 22:22:28 Login Succeeded 22:22:28 nexus3.edgexfoundry.org:10004 22:22:28 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:22:29 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:22:29 Configure a credential helper to remove this warning. See 22:22:29 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:22:29 22:22:29 Login Succeeded 22:22:29 docker.io 22:22:29 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:22:29 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:22:29 Configure a credential helper to remove this warning. See 22:22:29 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:22:29 22:22:29 Login Succeeded 22:22:29 ---> docker-login.sh ends [Pipeline] } 22:22:29 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 22:22:29 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 22:22:29 ========================================================= 22:22:29 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine] 22:22:29 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 22:22:30 + 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 . 22:22:30 Sending build context to Docker daemon 10.55MB 22:22:30 Step 1/12 : ARG BASE=golang:1.17-alpine3.15 22:22:30 Step 2/12 : FROM ${BASE} AS builder 22:22:30 1.17-alpine: Pulling from edgex-devops/edgex-golang-base 22:22:30 59bf1c3509f3: Pulling fs layer 22:22:30 666ba61612fd: Pulling fs layer 22:22:30 8ed8ca486205: Pulling fs layer 22:22:30 4fe6c5a15a65: Pulling fs layer 22:22:30 22a0e8bec74d: Pulling fs layer 22:22:30 640e595b4fbd: Pulling fs layer 22:22:30 763cafe07f6e: Pulling fs layer 22:22:30 0c0b528cf693: Pulling fs layer 22:22:30 10935f4eaf8b: Pulling fs layer 22:22:30 22a0e8bec74d: Waiting 22:22:30 763cafe07f6e: Waiting 22:22:30 640e595b4fbd: Waiting 22:22:30 10935f4eaf8b: Waiting 22:22:30 4fe6c5a15a65: Waiting 22:22:30 8ed8ca486205: Verifying Checksum 22:22:30 8ed8ca486205: Download complete 22:22:30 666ba61612fd: Verifying Checksum 22:22:30 666ba61612fd: Download complete 22:22:30 22a0e8bec74d: Download complete 22:22:30 640e595b4fbd: Download complete 22:22:30 59bf1c3509f3: Download complete 22:22:30 763cafe07f6e: Verifying Checksum 22:22:30 763cafe07f6e: Download complete 22:22:30 0c0b528cf693: Verifying Checksum 22:22:30 0c0b528cf693: Download complete 22:22:30 59bf1c3509f3: Pull complete 22:22:30 666ba61612fd: Pull complete 22:22:30 8ed8ca486205: Pull complete 22:22:30 10935f4eaf8b: Verifying Checksum 22:22:30 10935f4eaf8b: Download complete 22:22:30 4fe6c5a15a65: Verifying Checksum 22:22:30 4fe6c5a15a65: Download complete 22:22:35 4fe6c5a15a65: Pull complete 22:22:35 22a0e8bec74d: Pull complete 22:22:35 640e595b4fbd: Pull complete 22:22:35 763cafe07f6e: Pull complete 22:22:35 0c0b528cf693: Pull complete 22:22:37 10935f4eaf8b: Pull complete 22:22:37 Digest: sha256:fe2da51ced2bed6c5fc1d1038c2fbec5a5bb29cdcacce78977c37c66bfba8387 22:22:37 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.17-alpine 22:22:37 ---> 99d49a6021b9 22:22:37 Step 3/12 : ARG MAKE='make build' 22:22:39 ---> Running in d41818d8b3a6 22:22:39 Removing intermediate container d41818d8b3a6 22:22:39 ---> e5713a0fff4a 22:22:39 Step 4/12 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 22:22:39 ---> Running in 3d689ef1f322 22:22:39 Removing intermediate container 3d689ef1f322 22:22:39 ---> 3993473f5ea3 22:22:39 Step 5/12 : ARG ALPINE_PKG_EXTRA="" 22:22:39 ---> Running in 19131a4416c1 22:22:39 Removing intermediate container 19131a4416c1 22:22:39 ---> 4617730b88cc 22:22:39 Step 6/12 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 22:22:39 ---> Running in 2a56fd045cc1 22:22:39 Removing intermediate container 2a56fd045cc1 22:22:39 ---> c4ff97128b12 22:22:39 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 22:22:39 ---> Running in 2de2dd215e71 22:22:40 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 22:22:41 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 22:22:41 (1/4) Installing openssh-keygen (8.8_p1-r1) 22:22:41 (2/4) Installing libedit (20210910.3.1-r0) 22:22:41 (3/4) Installing openssh-client-common (8.8_p1-r1) 22:22:41 (4/4) Installing openssh-client-default (8.8_p1-r1) 22:22:41 Executing busybox-1.34.1-r3.trigger 22:22:41 OK: 224 MiB in 56 packages 22:22:42 Removing intermediate container 2de2dd215e71 22:22:42 ---> 91406c57a32c 22:22:42 Step 8/12 : WORKDIR /device-rest-go 22:22:42 ---> Running in 4bf5eafba082 22:22:42 Removing intermediate container 4bf5eafba082 22:22:42 ---> 7f30fe60ab80 22:22:42 Step 9/12 : COPY go.mod vendor* ./ 22:22:42 ---> 63353006d86d 22:22:42 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 22:22:42 ---> Running in d188d0315ad2 22:22:43 Still waiting to schedule task 22:22:43 ‘prd-ubuntu20.04-docker-arm64-4c-16g-9451’ is offline 22:23:08 Removing intermediate container d188d0315ad2 22:23:08 ---> 5245b62eb9bd 22:23:08 Step 11/12 : COPY . . 22:23:08 ---> 55d7d0aaaa7a 22:23:08 Step 12/12 : RUN $MAKE 22:23:08 ---> Running in 934d2f6f24c4 22:23:08 noop 22:23:08 Removing intermediate container 934d2f6f24c4 22:23:08 ---> 515ead552d10 22:23:08 Successfully built 515ead552d10 22:23:08 Successfully tagged ci-base-image-x86_64:latest [Pipeline] isUnix [Pipeline] sh 22:23:09 + docker inspect -f . ci-base-image-x86_64 22:23:09 . [Pipeline] withDockerContainer 22:23:09 prd-ubuntu20.04-docker-8c-8g-9514 does not seem to be running inside a container 22:23:09 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-166 -v /w/workspace/gexfoundry_device-rest-go_PR-166:/w/workspace/gexfoundry_device-rest-go_PR-166:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-166@tmp:/w/workspace/gexfoundry_device-rest-go_PR-166@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 22:23:09 $ docker top e5b1288dcf7e38ffd7467722efd4f22060726d3dddb2d20f1c2a6a68683ba60d -eo pid,comm [Pipeline] { [Pipeline] sh 22:23:10 + go version 22:23:10 go version go1.17.6 linux/amd64 [Pipeline] } 22:23:10 $ docker stop --time=1 e5b1288dcf7e38ffd7467722efd4f22060726d3dddb2d20f1c2a6a68683ba60d 22:23:11 $ docker rm -f e5b1288dcf7e38ffd7467722efd4f22060726d3dddb2d20f1c2a6a68683ba60d [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 22:23:12 + docker inspect -f . ci-base-image-x86_64 22:23:12 . [Pipeline] withDockerContainer 22:23:12 prd-ubuntu20.04-docker-8c-8g-9514 does not seem to be running inside a container 22:23:12 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-166 -v /w/workspace/gexfoundry_device-rest-go_PR-166:/w/workspace/gexfoundry_device-rest-go_PR-166:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-166@tmp:/w/workspace/gexfoundry_device-rest-go_PR-166@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 22:23:12 $ docker top fdc4d12c1df9670103610d8b8d3f7618588a005d6093c4eb72ecc59830fb0118 -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 22:23:13 + make test 22:23:13 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out ./... 22:23:13 ? github.com/edgexfoundry/device-rest-go [no test files] 22:23:20 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 22:23:20 ok github.com/edgexfoundry/device-rest-go/driver 0.015s coverage: 57.9% of statements 22:23:26 CGO_ENABLED=1 GO111MODULE=on go vet ./... 22:23:29 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 22:23:29 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 22:23:29 ./bin/test-attribution-txt.sh [Pipeline] echo 22:23:29 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 22:23:29 $ docker stop --time=1 fdc4d12c1df9670103610d8b8d3f7618588a005d6093c4eb72ecc59830fb0118 22:23:31 $ docker rm -f fdc4d12c1df9670103610d8b8d3f7618588a005d6093c4eb72ecc59830fb0118 [Pipeline] // withDockerContainer [Pipeline] sh 22:23:31 + sudo chown -R jenkins:jenkins . [Pipeline] stash 22:23:31 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 22:23:33 + sudo chown -R jenkins:jenkins . [Pipeline] sh 22:23:33 + ls -al . 22:23:33 total 184 22:23:33 drwxrwxr-x 9 jenkins jenkins 4096 Mar 30 22:23 . 22:23:33 drwxrwxr-x 4 jenkins jenkins 4096 Mar 30 22:22 .. 22:23:33 -rw-rw-r-- 1 jenkins jenkins 151 Mar 30 22:22 .dockerignore 22:23:33 drwxrwxr-x 8 jenkins jenkins 4096 Mar 30 22:22 .git 22:23:33 drwxrwxr-x 2 jenkins jenkins 4096 Mar 30 22:22 .github 22:23:33 -rw-rw-r-- 1 jenkins jenkins 329 Mar 30 22:22 .gitignore 22:23:33 -rw-rw-r-- 1 jenkins jenkins 41 Mar 30 22:22 .golangci.yml 22:23:33 drwx------ 3 jenkins jenkins 4096 Mar 30 22:22 .semver 22:23:33 -rw-rw-r-- 1 jenkins jenkins 7192 Mar 30 22:22 Attribution.txt 22:23:33 -rw-rw-r-- 1 jenkins jenkins 7459 Mar 30 22:22 CHANGELOG.md 22:23:33 -rw-rw-r-- 1 jenkins jenkins 1672 Mar 30 22:22 Dockerfile 22:23:33 -rw-rw-r-- 1 jenkins jenkins 677 Mar 30 22:22 GOVERNANCE.md 22:23:33 -rw-rw-r-- 1 jenkins jenkins 680 Mar 30 22:22 Jenkinsfile 22:23:33 -rw-rw-r-- 1 jenkins jenkins 11340 Mar 30 22:22 LICENSE 22:23:33 -rw-rw-r-- 1 jenkins jenkins 1578 Mar 30 22:22 Makefile 22:23:33 -rw-rw-r-- 1 jenkins jenkins 620 Mar 30 22:22 OWNERS.md 22:23:33 -rw-rw-r-- 1 jenkins jenkins 8246 Mar 30 22:22 README.md 22:23:33 -rw-rw-r-- 1 jenkins jenkins 5 Mar 30 22:22 VERSION 22:23:33 drwxrwxr-x 2 jenkins jenkins 4096 Mar 30 22:22 bin 22:23:33 drwxrwxr-x 3 jenkins jenkins 4096 Mar 30 22:22 cmd 22:23:33 -rw-r--r-- 1 jenkins jenkins 9371 Mar 30 22:23 coverage.out 22:23:33 drwxrwxr-x 2 jenkins jenkins 4096 Mar 30 22:22 driver 22:23:33 -rw-rw-r-- 1 jenkins jenkins 2908 Mar 30 22:22 go.mod 22:23:33 -rw-rw-r-- 1 jenkins jenkins 50572 Mar 30 22:22 go.sum 22:23:33 drwxrwxr-x 3 jenkins jenkins 4096 Mar 30 22:22 snap 22:23:33 -rw-rw-r-- 1 jenkins jenkins 713 Mar 30 22:22 version.go [Pipeline] isUnix [Pipeline] sh 22:23:33 + 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=d8a98d2fccb12f3f5057796c9b675e9b6e19a964 --label arch=amd64 --label version=0.0.0 . 22:23:33 Sending build context to Docker daemon 10.56MB 22:23:33 Step 1/25 : ARG BASE=golang:1.17-alpine3.15 22:23:33 Step 2/25 : FROM ${BASE} AS builder 22:23:33 ---> 515ead552d10 22:23:33 Step 3/25 : ARG MAKE='make build' 22:23:33 ---> Running in 4495bd12c811 22:23:33 Removing intermediate container 4495bd12c811 22:23:33 ---> 9bbc30ab025c 22:23:33 Step 4/25 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 22:23:33 ---> Running in 8efc8c445a40 22:23:33 Removing intermediate container 8efc8c445a40 22:23:33 ---> ff7cdbf54024 22:23:33 Step 5/25 : ARG ALPINE_PKG_EXTRA="" 22:23:33 ---> Running in c477fc644c3c 22:23:34 Removing intermediate container c477fc644c3c 22:23:34 ---> e5f453521f08 22:23:34 Step 6/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 22:23:34 ---> Running in 2e9a87bf6025 22:23:34 Removing intermediate container 2e9a87bf6025 22:23:34 ---> c0bbb87523fb 22:23:34 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 22:23:34 ---> Running in e932b082130f 22:23:34 fetch https://nl.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz 22:23:35 fetch https://nl.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz 22:23:36 OK: 224 MiB in 56 packages 22:23:36 Removing intermediate container e932b082130f 22:23:36 ---> c27f0f029228 22:23:36 Step 8/25 : WORKDIR /device-rest-go 22:23:36 ---> Running in d04067190a96 22:23:36 Removing intermediate container d04067190a96 22:23:36 ---> 1dfe1c30b07a 22:23:36 Step 9/25 : COPY go.mod vendor* ./ 22:23:36 ---> 13d89b11964e 22:23:36 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 22:23:36 ---> Running in 03659bed09ab 22:23:37 Removing intermediate container 03659bed09ab 22:23:37 ---> 2153a9741345 22:23:37 Step 11/25 : COPY . . 22:23:37 ---> b51d6d724a4d 22:23:37 Step 12/25 : RUN $MAKE 22:23:37 ---> Running in 0c8a7e28b3de 22:23:38 CGO_ENABLED=1 GO111MODULE=on go build -ldflags "-X github.com/edgexfoundry/device-rest-go.Version=0.0.0" -o cmd/device-rest ./cmd 22:23:46 Removing intermediate container 0c8a7e28b3de 22:23:46 ---> bbbd218f6d17 22:23:46 Step 13/25 : FROM alpine:3.14 22:23:46 3.14: Pulling from library/alpine 22:23:46 cfab2db72209: Pulling fs layer 22:23:46 cfab2db72209: Verifying Checksum 22:23:46 cfab2db72209: Download complete 22:23:46 cfab2db72209: Pull complete 22:23:46 Digest: sha256:85c63ff404e9b4daf18f264447161b50ffa70047cc4c03381478cf2c6edfa9da 22:23:46 Status: Downloaded newer image for alpine:3.14 22:23:46 ---> 84b07dd2d1fd 22:23:46 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' 22:23:46 ---> Running in ed723ca2b446 22:23:46 Removing intermediate container ed723ca2b446 22:23:46 ---> 1210edd7424f 22:23:46 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 22:23:46 ---> Running in 9a1e4f9f1106 22:23:46 Removing intermediate container 9a1e4f9f1106 22:23:46 ---> 5e689d1fc180 22:23:46 Step 16/25 : RUN apk add --update --no-cache zeromq dumb-init 22:23:47 ---> Running in 4b7d98275ca9 22:23:47 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/x86_64/APKINDEX.tar.gz 22:23:47 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/x86_64/APKINDEX.tar.gz 22:23:47 (1/6) Installing dumb-init (1.2.5-r1) 22:23:47 (2/6) Installing libgcc (10.3.1_git20210424-r2) 22:23:47 (3/6) Installing libsodium (1.0.18-r0) 22:23:47 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 22:23:47 (5/6) Installing libzmq (4.3.4-r0) 22:23:47 (6/6) Installing zeromq (4.3.4-r0) 22:23:47 Executing busybox-1.33.1-r6.trigger 22:23:47 OK: 8 MiB in 20 packages 22:23:47 Removing intermediate container 4b7d98275ca9 22:23:47 ---> f3b480b7c57e 22:23:47 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 22:23:48 ---> 1e73fd8d37be 22:23:48 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 22:23:48 ---> 7b4394427617 22:23:48 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 22:23:48 ---> d4bc0528bc03 22:23:48 Step 20/25 : EXPOSE 59986 22:23:48 ---> Running in 72b7a81928f8 22:23:48 Removing intermediate container 72b7a81928f8 22:23:48 ---> c3f0a6fc1540 22:23:48 Step 21/25 : ENTRYPOINT ["/device-rest"] 22:23:48 ---> Running in 1dcd786e9021 22:23:48 Removing intermediate container 1dcd786e9021 22:23:48 ---> 06931f60c811 22:23:48 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--confdir=/res", "--registry"] 22:23:48 ---> Running in 7aea7792a48e 22:23:48 Removing intermediate container 7aea7792a48e 22:23:48 ---> a2e40273480e 22:23:48 Step 23/25 : LABEL arch=amd64 22:23:48 ---> Running in b57b2aaad215 22:23:49 Removing intermediate container b57b2aaad215 22:23:49 ---> 9db512d07bfe 22:23:49 Step 24/25 : LABEL git_sha=d8a98d2fccb12f3f5057796c9b675e9b6e19a964 22:23:49 ---> Running in 348cd8364174 22:23:49 Removing intermediate container 348cd8364174 22:23:49 ---> b507db9f3dda 22:23:49 Step 25/25 : LABEL version=0.0.0 22:23:49 ---> Running in 2894e355973e 22:23:49 Removing intermediate container 2894e355973e 22:23:49 ---> c030164746cf 22:23:49 [Warning] One or more build-args [ARCH] were not consumed 22:23:49 Successfully built c030164746cf 22:23:49 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 22:23:50 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 22:23:50 22:23:50 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] sh 22:23:50 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 22:23:50 latest: Pulling from edgex-lftools-log-publisher 22:23:50 5eb5b503b376: Pulling fs layer 22:23:50 5c69ac0246d0: Pulling fs layer 22:23:50 ec43610c2a17: Pulling fs layer 22:23:50 3a2ae6a8a46f: Pulling fs layer 22:23:50 33b1e0a273af: Pulling fs layer 22:23:50 5d3b04190fa2: Pulling fs layer 22:23:50 2f39f015ded8: Pulling fs layer 22:23:50 3a2ae6a8a46f: Waiting 22:23:50 33b1e0a273af: Waiting 22:23:50 5d3b04190fa2: Waiting 22:23:50 2f39f015ded8: Waiting 22:23:50 5c69ac0246d0: Verifying Checksum 22:23:50 5c69ac0246d0: Download complete 22:23:50 3a2ae6a8a46f: Verifying Checksum 22:23:50 3a2ae6a8a46f: Download complete 22:23:50 33b1e0a273af: Verifying Checksum 22:23:50 33b1e0a273af: Download complete 22:23:50 ec43610c2a17: Verifying Checksum 22:23:50 ec43610c2a17: Download complete 22:23:50 5d3b04190fa2: Verifying Checksum 22:23:50 5d3b04190fa2: Download complete 22:23:50 5eb5b503b376: Verifying Checksum 22:23:50 5eb5b503b376: Download complete 22:23:51 2f39f015ded8: Download complete 22:23:51 5eb5b503b376: Pull complete 22:23:51 5c69ac0246d0: Pull complete 22:23:52 ec43610c2a17: Pull complete 22:23:52 3a2ae6a8a46f: Pull complete 22:23:52 33b1e0a273af: Pull complete 22:23:52 5d3b04190fa2: Pull complete 22:23:56 2f39f015ded8: Pull complete 22:23:56 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 22:23:56 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 22:23:56 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] withDockerContainer 22:23:57 prd-ubuntu20.04-docker-8c-8g-9514 does not seem to be running inside a container 22:23:57 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged --net host -v /home/jenkins:/home/jenkins -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/gexfoundry_device-rest-go_PR-166 -v /w/workspace/gexfoundry_device-rest-go_PR-166:/w/workspace/gexfoundry_device-rest-go_PR-166:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-166@tmp:/w/workspace/gexfoundry_device-rest-go_PR-166@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 22:23:58 $ docker top a4f7ebb648805dd39386e94331475fe4ae5e503f8d57feb5e0fdb4882d64cc4b -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 22:23:59 ---> job-cost.sh 22:23:59 lf-activate-venv: SKIPPING 22:23:59 INFO: No Stack... 22:23:59 INFO: Retrieving Pricing Info for: v3-standard-8 22:23:59 INFO: Archiving Costs [Pipeline] sh 22:24:00 + cat /w/workspace/gexfoundry_device-rest-go_PR-166/archives/cost.csv 22:24:00 + cut -d, -f6 [Pipeline] lock 22:24:00 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-166-1-stack-cost] 22:24:00 Resource [jenkins-edgexfoundry-device-rest-go-PR-166-1-stack-cost] did not exist. Created. 22:24:00 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-166-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 22:24:00 + echo total: 0.2199999988079071 [Pipeline] stash 22:24:00 Stashed 1 file(s) [Pipeline] } 22:24:00 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-166-1-stack-cost] [Pipeline] // lock [Pipeline] } 22:24:00 $ docker stop --time=1 a4f7ebb648805dd39386e94331475fe4ae5e503f8d57feb5e0fdb4882d64cc4b 22:24:02 $ docker rm -f a4f7ebb648805dd39386e94331475fe4ae5e503f8d57feb5e0fdb4882d64cc4b [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 22:24:26 Running on prd-ubuntu20.04-docker-arm64-4c-16g-9515 in /w/workspace/gexfoundry_device-rest-go_PR-166 [Pipeline] { [Pipeline] ws 22:24:26 Running in /w/workspace/device-rest-go/1 [Pipeline] { [Pipeline] checkout 22:24:27 The recommended git tool is: git 22:24:35 using credential edgex-jenkins-ssh 22:24:35 Cloning the remote Git repository 22:24:35 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 22:24:35 > git init /w/workspace/device-rest-go/1 # timeout=10 22:24:35 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 22:24:35 > git --version # timeout=10 22:24:35 > git --version # 'git version 2.25.1' 22:24:35 using GIT_SSH to set credentials SSH Credentials for GitHub 22:24:35 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 22:24:38 Merging remotes/origin/main commit ec779fd03c03a2eb2a0571cd3b2e316fba414fa2 into PR head commit d8a98d2fccb12f3f5057796c9b675e9b6e19a964 22:24:39 Merge succeeded, producing d8a98d2fccb12f3f5057796c9b675e9b6e19a964 22:24:39 Checking out Revision d8a98d2fccb12f3f5057796c9b675e9b6e19a964 (PR-166) 22:24:37 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 22:24:37 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 22:24:37 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 22:24:37 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 22:24:37 using GIT_SSH to set credentials SSH Credentials for GitHub 22:24:37 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/166/head:refs/remotes/origin/PR-166 +refs/heads/main:refs/remotes/origin/main # timeout=10 22:24:38 > git config core.sparsecheckout # timeout=10 22:24:38 > git checkout -f d8a98d2fccb12f3f5057796c9b675e9b6e19a964 # timeout=10 22:24:38 > git remote # timeout=10 22:24:38 > git config --get remote.origin.url # timeout=10 22:24:38 using GIT_SSH to set credentials SSH Credentials for GitHub 22:24:38 > git merge ec779fd03c03a2eb2a0571cd3b2e316fba414fa2 # timeout=10 22:24:38 > git rev-parse HEAD^{commit} # timeout=10 22:24:39 > git config core.sparsecheckout # timeout=10 22:24:39 > git checkout -f d8a98d2fccb12f3f5057796c9b675e9b6e19a964 # timeout=10 22:24:43 Commit message: "feat: enable gosec and default linter set" 22:24:43 > git --version # timeout=10 22:24:43 > git --version # 'git version 2.25.1' 22:24:43 fatal: bad object c72b16708d6eed9a08be464a432ce22db7d90667 [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 22:24:44 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 22:24:44 % Total % Received % Xferd Average Speed Time Time Time Current 22:24:44 Dload Upload Total Spent Left Speed 22:24:44 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 11843 100 11843 0 0 214k 0 --:--:-- --:--:-- --:--:-- 214k [Pipeline] sh 22:24:45 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 22:24:45 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 22:24:45 + sudo tee /etc/docker/daemon.new 22:24:45 { 22:24:45 "registry-mirrors": [ 22:24:45 "https://nexus3.edgexfoundry.org:10001" 22:24:45 ], 22:24:45 "bip": "10.250.0.254/24", 22:24:45 "hosts": [ 22:24:45 "tcp://0.0.0.0:5555", 22:24:45 "unix:///var/run/docker.sock" 22:24:45 ], 22:24:45 "mtu": 1458, 22:24:45 "selinux-enabled": true, 22:24:45 "seccomp-profile": "/etc/docker/seccomp.json" 22:24:45 } [Pipeline] sh 22:24:45 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 22:24:46 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 22:25:04 provisioning config files... 22:25:04 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/1@tmp/config5558453357701324903tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 22:25:05 ---> docker-login.sh 22:25:05 nexus3.edgexfoundry.org:10001 22:25:05 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:25:06 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:25:06 Configure a credential helper to remove this warning. See 22:25:06 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:25:06 22:25:06 Login Succeeded 22:25:06 nexus3.edgexfoundry.org:10002 22:25:06 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:25:06 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:25:06 Configure a credential helper to remove this warning. See 22:25:06 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:25:06 22:25:06 Login Succeeded 22:25:06 nexus3.edgexfoundry.org:10003 22:25:06 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:25:06 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:25:06 Configure a credential helper to remove this warning. See 22:25:06 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:25:06 22:25:06 Login Succeeded 22:25:06 nexus3.edgexfoundry.org:10004 22:25:07 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:25:07 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:25:07 Configure a credential helper to remove this warning. See 22:25:07 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:25:07 22:25:07 Login Succeeded 22:25:07 docker.io 22:25:07 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 22:25:08 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 22:25:08 Configure a credential helper to remove this warning. See 22:25:08 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 22:25:08 22:25:08 Login Succeeded 22:25:08 ---> docker-login.sh ends [Pipeline] } 22:25:08 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 22:25:08 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 22:25:08 ========================================================= 22:25:08 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine] 22:25:08 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] sh 22:25:09 + 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 . 22:25:09 Sending build context to Docker daemon 126.5kB 22:25:09 Step 1/12 : ARG BASE=golang:1.17-alpine3.15 22:25:09 Step 2/12 : FROM ${BASE} AS builder 22:25:09 1.17-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 22:25:09 9b3977197b4f: Pulling fs layer 22:25:09 1a89e8eeedd5: Pulling fs layer 22:25:09 94645a83ff95: Pulling fs layer 22:25:09 3f3a8bcf1eab: Pulling fs layer 22:25:09 0c92f367c5e7: Pulling fs layer 22:25:09 f7c0051592d6: Pulling fs layer 22:25:09 a227ed2f7395: Pulling fs layer 22:25:09 7b1c46037f91: Pulling fs layer 22:25:09 3f3a8bcf1eab: Waiting 22:25:09 0c92f367c5e7: Waiting 22:25:09 f7c0051592d6: Waiting 22:25:09 a227ed2f7395: Waiting 22:25:09 7b1c46037f91: Waiting 22:25:09 94645a83ff95: Download complete 22:25:09 1a89e8eeedd5: Verifying Checksum 22:25:09 1a89e8eeedd5: Download complete 22:25:09 0c92f367c5e7: Verifying Checksum 22:25:09 0c92f367c5e7: Download complete 22:25:09 f7c0051592d6: Verifying Checksum 22:25:09 f7c0051592d6: Download complete 22:25:09 9b3977197b4f: Download complete 22:25:09 a227ed2f7395: Verifying Checksum 22:25:09 a227ed2f7395: Download complete 22:25:10 9b3977197b4f: Pull complete 22:25:11 1a89e8eeedd5: Pull complete 22:25:11 94645a83ff95: Pull complete 22:25:11 7b1c46037f91: Verifying Checksum 22:25:11 7b1c46037f91: Download complete 22:25:12 3f3a8bcf1eab: Download complete 22:25:24 3f3a8bcf1eab: Pull complete 22:25:24 0c92f367c5e7: Pull complete 22:25:24 f7c0051592d6: Pull complete 22:25:25 a227ed2f7395: Pull complete 22:25:31 7b1c46037f91: Pull complete 22:25:31 Digest: sha256:72afd471f6932efc3b14a707e53dab7ff98911016b282aefa83be7c085db88fe 22:25:31 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.17-alpine 22:25:31 ---> f79e39bc4007 22:25:31 Step 3/12 : ARG MAKE='make build' 22:25:32 ---> Running in 63a8688eae76 22:25:32 Removing intermediate container 63a8688eae76 22:25:32 ---> 5de5c1155bd0 22:25:32 Step 4/12 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 22:25:32 ---> Running in 7f66766f4aac 22:25:33 Removing intermediate container 7f66766f4aac 22:25:33 ---> 0b1047a2d73e 22:25:33 Step 5/12 : ARG ALPINE_PKG_EXTRA="" 22:25:33 ---> Running in fb80b9c2f2aa 22:25:33 Removing intermediate container fb80b9c2f2aa 22:25:33 ---> c0935ff8f763 22:25:33 Step 6/12 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 22:25:33 ---> Running in 3710f2936f94 22:25:35 Removing intermediate container 3710f2936f94 22:25:35 ---> 373b039b08df 22:25:35 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 22:25:35 ---> Running in 715aef697336 22:25:36 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 22:25:36 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 22:25:37 (1/4) Installing openssh-keygen (8.8_p1-r1) 22:25:37 (2/4) Installing libedit (20210910.3.1-r0) 22:25:37 (3/4) Installing openssh-client-common (8.8_p1-r1) 22:25:38 (4/4) Installing openssh-client-default (8.8_p1-r1) 22:25:38 Executing busybox-1.34.1-r3.trigger 22:25:38 OK: 224 MiB in 56 packages 22:25:39 Removing intermediate container 715aef697336 22:25:39 ---> 30dd5baac179 22:25:39 Step 8/12 : WORKDIR /device-rest-go 22:25:39 ---> Running in df2c93d6bf85 22:25:39 Removing intermediate container df2c93d6bf85 22:25:39 ---> a538436641e1 22:25:39 Step 9/12 : COPY go.mod vendor* ./ 22:25:40 ---> 91504756302c 22:25:40 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 22:25:40 ---> Running in ee4bc4e3660a 22:27:01 Removing intermediate container ee4bc4e3660a 22:27:01 ---> 8a9d0ef095ea 22:27:01 Step 11/12 : COPY . . 22:27:01 ---> 630d8ee98687 22:27:01 Step 12/12 : RUN $MAKE 22:27:01 ---> Running in b004bbdc3d67 22:27:01 noop 22:27:01 Removing intermediate container b004bbdc3d67 22:27:01 ---> e7b6e332c39d 22:27:01 Successfully built e7b6e332c39d 22:27:01 Successfully tagged ci-base-image-arm64:latest [Pipeline] isUnix [Pipeline] sh 22:27:02 + docker inspect -f . ci-base-image-arm64 22:27:02 . [Pipeline] withDockerContainer 22:27:02 prd-ubuntu20.04-docker-arm64-4c-16g-9515 does not seem to be running inside a container 22:27:02 $ 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 22:27:03 $ docker top 922903dbad426d30bace4a1bb20bb5dcc172f72266e24628c27f463a97d4bbb9 -eo pid,comm [Pipeline] { [Pipeline] sh 22:27:04 + go version 22:27:04 go version go1.17.6 linux/arm64 [Pipeline] } 22:27:04 $ docker stop --time=1 922903dbad426d30bace4a1bb20bb5dcc172f72266e24628c27f463a97d4bbb9 22:27:06 $ docker rm -f 922903dbad426d30bace4a1bb20bb5dcc172f72266e24628c27f463a97d4bbb9 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] sh 22:27:07 + docker inspect -f . ci-base-image-arm64 22:27:07 . [Pipeline] withDockerContainer 22:27:07 prd-ubuntu20.04-docker-arm64-4c-16g-9515 does not seem to be running inside a container 22:27:07 $ 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 22:27:08 $ docker top c3c86f3ed56887c3195da828cca39e315427a8d833e2f8fc0c52b5ac3d87df40 -eo pid,comm [Pipeline] { [Pipeline] fileExists [Pipeline] sh 22:27:09 + make test 22:27:09 CGO_ENABLED=1 GO111MODULE=on go test ./... -coverprofile=coverage.out ./... 22:27:11 ? github.com/edgexfoundry/device-rest-go [no test files] 22:27:58 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 22:27:59 ok github.com/edgexfoundry/device-rest-go/driver 0.057s coverage: 57.9% of statements 22:27:59 WARNING: Linting skipped (not on x86_64 or linter not installed) 22:27:59 CGO_ENABLED=1 GO111MODULE=on go vet ./... 22:28:22 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 22:28:22 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 22:28:22 ./bin/test-attribution-txt.sh [Pipeline] echo 22:28:22 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 22:28:22 $ docker stop --time=1 c3c86f3ed56887c3195da828cca39e315427a8d833e2f8fc0c52b5ac3d87df40 22:28:24 $ docker rm -f c3c86f3ed56887c3195da828cca39e315427a8d833e2f8fc0c52b5ac3d87df40 [Pipeline] // withDockerContainer [Pipeline] sh 22:28:25 + sudo chown -R jenkins:jenkins . [Pipeline] stash 22:28:25 Warning: overwriting stash ‘coverage-report’ 22:28:25 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 22:28:26 + sudo chown -R jenkins:jenkins . [Pipeline] sh 22:28:26 + ls -al . 22:28:26 total 180 22:28:26 drwxrwxr-x 8 jenkins jenkins 4096 Mar 30 22:28 . 22:28:26 drwxrwxr-x 4 jenkins jenkins 4096 Mar 30 22:24 .. 22:28:26 -rw-rw-r-- 1 jenkins jenkins 151 Mar 30 22:24 .dockerignore 22:28:26 drwxrwxr-x 8 jenkins jenkins 4096 Mar 30 22:24 .git 22:28:26 drwxrwxr-x 2 jenkins jenkins 4096 Mar 30 22:24 .github 22:28:26 -rw-rw-r-- 1 jenkins jenkins 329 Mar 30 22:24 .gitignore 22:28:26 -rw-rw-r-- 1 jenkins jenkins 41 Mar 30 22:24 .golangci.yml 22:28:26 -rw-rw-r-- 1 jenkins jenkins 7192 Mar 30 22:24 Attribution.txt 22:28:26 -rw-rw-r-- 1 jenkins jenkins 7459 Mar 30 22:24 CHANGELOG.md 22:28:26 -rw-rw-r-- 1 jenkins jenkins 1672 Mar 30 22:24 Dockerfile 22:28:26 -rw-rw-r-- 1 jenkins jenkins 677 Mar 30 22:24 GOVERNANCE.md 22:28:26 -rw-rw-r-- 1 jenkins jenkins 680 Mar 30 22:24 Jenkinsfile 22:28:26 -rw-rw-r-- 1 jenkins jenkins 11340 Mar 30 22:24 LICENSE 22:28:26 -rw-rw-r-- 1 jenkins jenkins 1578 Mar 30 22:24 Makefile 22:28:26 -rw-rw-r-- 1 jenkins jenkins 620 Mar 30 22:24 OWNERS.md 22:28:26 -rw-rw-r-- 1 jenkins jenkins 8246 Mar 30 22:24 README.md 22:28:26 -rw-rw-r-- 1 jenkins jenkins 5 Mar 30 22:22 VERSION 22:28:26 drwxrwxr-x 2 jenkins jenkins 4096 Mar 30 22:24 bin 22:28:26 drwxrwxr-x 3 jenkins jenkins 4096 Mar 30 22:24 cmd 22:28:26 -rw-r--r-- 1 jenkins jenkins 9371 Mar 30 22:27 coverage.out 22:28:26 drwxrwxr-x 2 jenkins jenkins 4096 Mar 30 22:24 driver 22:28:26 -rw-rw-r-- 1 jenkins jenkins 2908 Mar 30 22:24 go.mod 22:28:26 -rw-rw-r-- 1 jenkins jenkins 50572 Mar 30 22:24 go.sum 22:28:26 drwxrwxr-x 3 jenkins jenkins 4096 Mar 30 22:24 snap 22:28:26 -rw-rw-r-- 1 jenkins jenkins 713 Mar 30 22:24 version.go [Pipeline] isUnix [Pipeline] sh 22:28:27 + 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=d8a98d2fccb12f3f5057796c9b675e9b6e19a964 --label arch=arm64 --label version=0.0.0 . 22:28:27 Sending build context to Docker daemon 136.7kB 22:28:27 Step 1/25 : ARG BASE=golang:1.17-alpine3.15 22:28:27 Step 2/25 : FROM ${BASE} AS builder 22:28:27 ---> e7b6e332c39d 22:28:27 Step 3/25 : ARG MAKE='make build' 22:28:27 ---> Running in 899b823cdd1d 22:28:28 Removing intermediate container 899b823cdd1d 22:28:28 ---> 169f30c0eaa0 22:28:28 Step 4/25 : ARG ALPINE_PKG_BASE="make git openssh-client gcc libc-dev zeromq-dev libsodium-dev" 22:28:28 ---> Running in 314e2bb68f00 22:28:28 Removing intermediate container 314e2bb68f00 22:28:28 ---> 2c27492a1875 22:28:28 Step 5/25 : ARG ALPINE_PKG_EXTRA="" 22:28:28 ---> Running in c34e40632360 22:28:28 Removing intermediate container c34e40632360 22:28:28 ---> 42a2f52b35c8 22:28:28 Step 6/25 : RUN sed -e 's/dl-cdn[.]alpinelinux.org/nl.alpinelinux.org/g' -i~ /etc/apk/repositories 22:28:28 ---> Running in 7f5c9733b35d 22:28:30 Removing intermediate container 7f5c9733b35d 22:28:30 ---> 7c967748261d 22:28:30 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 22:28:30 ---> Running in c4b86d630d6e 22:28:31 fetch https://nl.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz 22:28:32 fetch https://nl.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz 22:28:33 OK: 224 MiB in 56 packages 22:28:33 Removing intermediate container c4b86d630d6e 22:28:33 ---> ebfe8a300763 22:28:33 Step 8/25 : WORKDIR /device-rest-go 22:28:33 ---> Running in 1cbc60cf251d 22:28:34 Removing intermediate container 1cbc60cf251d 22:28:34 ---> ac62fa0ddeb6 22:28:34 Step 9/25 : COPY go.mod vendor* ./ 22:28:34 ---> a72fb4e860b0 22:28:34 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 22:28:34 ---> Running in 54b605676a1a 22:28:36 Removing intermediate container 54b605676a1a 22:28:36 ---> 2a41b9769433 22:28:36 Step 11/25 : COPY . . 22:28:37 ---> 55141a8265f1 22:28:37 Step 12/25 : RUN $MAKE 22:28:37 ---> Running in 17549b8d62cc 22:28:38 CGO_ENABLED=1 GO111MODULE=on go build -ldflags "-X github.com/edgexfoundry/device-rest-go.Version=0.0.0" -o cmd/device-rest ./cmd 22:29:25 Removing intermediate container 17549b8d62cc 22:29:25 ---> 0a7582a881b4 22:29:25 Step 13/25 : FROM alpine:3.14 22:29:25 3.14: Pulling from library/alpine 22:29:25 810d54c7e01b: Pulling fs layer 22:29:25 810d54c7e01b: Verifying Checksum 22:29:25 810d54c7e01b: Download complete 22:29:25 810d54c7e01b: Pull complete 22:29:25 Digest: sha256:85c63ff404e9b4daf18f264447161b50ffa70047cc4c03381478cf2c6edfa9da 22:29:25 Status: Downloaded newer image for alpine:3.14 22:29:25 ---> cc3d11fa2d52 22:29:25 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2019: Intel' 22:29:25 ---> Running in bfcb70662a92 22:29:25 Removing intermediate container bfcb70662a92 22:29:25 ---> ce2ec6d96d76 22:29:25 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 22:29:25 ---> Running in 1e72bc801a22 22:29:25 Removing intermediate container 1e72bc801a22 22:29:25 ---> f76c0cfb1d9a 22:29:25 Step 16/25 : RUN apk add --update --no-cache zeromq dumb-init 22:29:25 ---> Running in bcd9f0d2e34e 22:29:25 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/main/aarch64/APKINDEX.tar.gz 22:29:25 fetch https://dl-cdn.alpinelinux.org/alpine/v3.14/community/aarch64/APKINDEX.tar.gz 22:29:25 (1/6) Installing dumb-init (1.2.5-r1) 22:29:25 (2/6) Installing libgcc (10.3.1_git20210424-r2) 22:29:25 (3/6) Installing libsodium (1.0.18-r0) 22:29:25 (4/6) Installing libstdc++ (10.3.1_git20210424-r2) 22:29:25 (5/6) Installing libzmq (4.3.4-r0) 22:29:25 (6/6) Installing zeromq (4.3.4-r0) 22:29:25 Executing busybox-1.33.1-r6.trigger 22:29:25 OK: 8 MiB in 20 packages 22:29:25 Removing intermediate container bcd9f0d2e34e 22:29:25 ---> a03d4feb06ab 22:29:25 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 22:29:25 ---> 4479de21e188 22:29:25 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 22:29:25 ---> 32f4e1cf4be4 22:29:25 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 22:29:25 ---> f3c7ac07c842 22:29:25 Step 20/25 : EXPOSE 59986 22:29:25 ---> Running in 2514c2f332bb 22:29:25 Removing intermediate container 2514c2f332bb 22:29:25 ---> d4294180a627 22:29:25 Step 21/25 : ENTRYPOINT ["/device-rest"] 22:29:25 ---> Running in 410e485bb3e3 22:29:26 Removing intermediate container 410e485bb3e3 22:29:26 ---> 5d9beb71d37e 22:29:26 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--confdir=/res", "--registry"] 22:29:26 ---> Running in f10d98930ece 22:29:26 Removing intermediate container f10d98930ece 22:29:26 ---> 5a12e9efda5a 22:29:26 Step 23/25 : LABEL arch=arm64 22:29:26 ---> Running in eddde9c37b73 22:29:26 Removing intermediate container eddde9c37b73 22:29:26 ---> 7aa36c7835e3 22:29:26 Step 24/25 : LABEL git_sha=d8a98d2fccb12f3f5057796c9b675e9b6e19a964 22:29:26 ---> Running in af5de6a9aa56 22:29:27 Removing intermediate container af5de6a9aa56 22:29:27 ---> 2644f00fed08 22:29:27 Step 25/25 : LABEL version=0.0.0 22:29:27 ---> Running in 8cde81aabbcc 22:29:27 Removing intermediate container 8cde81aabbcc 22:29:27 ---> 12ff3afceade 22:29:27 [Warning] One or more build-args [ARCH] were not consumed 22:29:27 Successfully built 12ff3afceade 22:29:27 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 22:29:28 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 22:29:28 22:29:28 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] sh 22:29:28 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 22:29:28 arm64: Pulling from edgex-lftools-log-publisher 22:29:28 8998bd30e6a1: Pulling fs layer 22:29:28 04944245beec: Pulling fs layer 22:29:28 699f458cf7ca: Pulling fs layer 22:29:28 765212b225bb: Pulling fs layer 22:29:28 f23df028b6ca: Pulling fs layer 22:29:28 d65c8cfc05b1: Pulling fs layer 22:29:28 2437ff75d9bd: Pulling fs layer 22:29:28 f23df028b6ca: Waiting 22:29:28 765212b225bb: Waiting 22:29:28 d65c8cfc05b1: Waiting 22:29:28 2437ff75d9bd: Waiting 22:29:28 04944245beec: Verifying Checksum 22:29:28 04944245beec: Download complete 22:29:28 765212b225bb: Verifying Checksum 22:29:28 765212b225bb: Download complete 22:29:28 f23df028b6ca: Verifying Checksum 22:29:28 f23df028b6ca: Download complete 22:29:28 d65c8cfc05b1: Verifying Checksum 22:29:28 d65c8cfc05b1: Download complete 22:29:29 699f458cf7ca: Verifying Checksum 22:29:29 699f458cf7ca: Download complete 22:29:29 8998bd30e6a1: Verifying Checksum 22:29:29 8998bd30e6a1: Download complete 22:29:32 2437ff75d9bd: Verifying Checksum 22:29:32 2437ff75d9bd: Download complete 22:29:33 8998bd30e6a1: Pull complete 22:29:34 04944245beec: Pull complete 22:29:35 699f458cf7ca: Pull complete 22:29:35 765212b225bb: Pull complete 22:29:36 f23df028b6ca: Pull complete 22:29:36 d65c8cfc05b1: Pull complete 22:29:51 2437ff75d9bd: Pull complete 22:29:51 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 22:29:51 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 22:29:51 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] withDockerContainer 22:29:52 prd-ubuntu20.04-docker-arm64-4c-16g-9515 does not seem to be running inside a container 22:29:52 $ 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 22:29:54 $ docker top 75c4c55c5968731d49b9c5392d5bd7b30d6b600797df353f9d740449e35bc698 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 22:29:55 ---> job-cost.sh 22:29:55 lf-activate-venv: SKIPPING 22:29:55 INFO: No Stack... 22:29:55 INFO: Retrieving Pricing Info for: v3-standard-4 22:29:56 INFO: Archiving Costs [Pipeline] sh 22:29:57 + cat /w/workspace/device-rest-go/1/archives/cost.csv 22:29:57 + cut -d, -f6 [Pipeline] lock 22:29:57 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-166-1-stack-cost] 22:29:57 Resource [jenkins-edgexfoundry-device-rest-go-PR-166-1-stack-cost] did not exist. Created. 22:29:57 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-166-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 22:29:58 /w/workspace/device-rest-go/1@tmp/durable-0732d2be/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 22:29:59 + echo total: 0.10999999940395355 [Pipeline] stash 22:29:59 Warning: overwriting stash ‘stack-cost’ 22:29:59 Stashed 1 file(s) [Pipeline] } 22:29:59 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-166-1-stack-cost] [Pipeline] // lock [Pipeline] } 22:29:59 $ docker stop --time=1 75c4c55c5968731d49b9c5392d5bd7b30d6b600797df353f9d740449e35bc698 22:30:00 $ docker rm -f 75c4c55c5968731d49b9c5392d5bd7b30d6b600797df353f9d740449e35bc698 [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 22:30:01 provisioning config files... 22:30:01 copy managed file [device-rest-go-codecov-token] to file:/w/workspace/gexfoundry_device-rest-go_PR-166@tmp/config8962411838105696712tmp [Pipeline] { [Pipeline] sh 22:30:02 + set +x 22:30:02 + curl -s https://codecov.io/bash 22:30:02 + bash -s -- 22:30:02 22:30:02 _____ _ 22:30:02 / ____| | | 22:30:02 | | ___ __| | ___ ___ _____ __ 22:30:02 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 22:30:02 | |___| (_) | (_| | __/ (_| (_) \ V / 22:30:02 \_____\___/ \__,_|\___|\___\___/ \_/ 22:30:02 Bash-1.0.6 22:30:02 22:30:02 22:30:02 ==> git version 2.25.1 found 22:30:02 ==> 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 22:30:02 Release-Date: 2020-01-08 22:30:02 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 22:30:02 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 22:30:02 ==> Jenkins CI detected. 22:30:02 current dir:  /w/workspace/gexfoundry_device-rest-go_PR-166 22:30:02 project root: . 22:30:02 --> token set from env 22:30:02 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 22:30:02 ==> Running gcov in . (disable via -X gcov) 22:30:02 ==> Python coveragepy not found 22:30:02 ==> Searching for coverage reports in: 22:30:02 + . 22:30:02 -> Found 1 reports 22:30:02 ==> Detecting git/mercurial file structure 22:30:02 ==> Reading reports 22:30:02 + ./coverage.out bytes=9371 22:30:02 ==> Appending adjustments 22:30:02 https://docs.codecov.io/docs/fixing-reports 22:30:02 + Found adjustments 22:30:02 ==> Gzipping contents 22:30:02 4.0K /tmp/codecov.FlOiDv.gz 22:30:02 ==> Uploading reports 22:30:02 url: https://codecov.io 22:30:02 query: branch=PR-166&commit=d8a98d2fccb12f3f5057796c9b675e9b6e19a964&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-166%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=166&job=&cmd_args= 22:30:02 -> Pinging Codecov 22:30:02 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=c51feb23-73ac-4f49-b3d1-d26df23137db&branch=PR-166&commit=d8a98d2fccb12f3f5057796c9b675e9b6e19a964&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-166%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=166&job=&cmd_args= 22:30:02 -> Uploading to 22:30:02 https://storage.googleapis.com/codecov/v4/raw/2022-03-30/4E5D53B4F1F92C436F7061BF334D961C/d8a98d2fccb12f3f5057796c9b675e9b6e19a964/e9c1b48b-71ab-4aef-ae8c-89c6cf2b9f10.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20220330%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20220330T223002Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=84f377eb98b25ea3f64eb29cb56297c3248d9dfdf5c4b4c08fa2c1c9b4bcac6b 22:30:02 % Total % Received % Xferd Average Speed Time Time Time Current 22:30:02 Dload Upload Total Spent Left Speed 22:30:02 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 1825 0 0 100 1825 0 8774 --:--:-- --:--:-- --:--:-- 8774 22:30:02 -> Reports have been successfully queued for processing at https://codecov.io/github/edgexfoundry/device-rest-go/commit/d8a98d2fccb12f3f5057796c9b675e9b6e19a964 [Pipeline] } 22:30:03 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 22:30:04 + [ -d /w/workspace/gexfoundry_device-rest-go_PR-166/archives ] 22:30:04 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-166/archives 22:30:04 total 16 22:30:04 drwxr-xr-x 3 root root 4096 Mar 30 22:23 . 22:30:04 drwxrwxr-x 10 jenkins jenkins 4096 Mar 30 22:24 .. 22:30:04 drwxr-xr-x 2 root root 4096 Mar 30 22:23 cost 22:30:04 -rw-r--r-- 1 root root 85 Mar 30 22:23 cost.csv 22:30:04 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-rest-go_PR-166/archives 22:30:04 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-166/archives 22:30:04 total 16 22:30:04 drwxr-xr-x 3 jenkins jenkins 4096 Mar 30 22:23 . 22:30:04 drwxrwxr-x 10 jenkins jenkins 4096 Mar 30 22:24 .. 22:30:04 drwxr-xr-x 2 jenkins jenkins 4096 Mar 30 22:23 cost 22:30:04 -rw-r--r-- 1 jenkins jenkins 85 Mar 30 22:23 cost.csv [Pipeline] libraryResource [Pipeline] sh 22:30:05 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 22:30:06 ---> package-listing.sh 22:30:06 ++ facter osfamily 22:30:06 ++ tr '[:upper:]' '[:lower:]' 22:30:06 + OS_FAMILY=debian 22:30:06 + workspace=/w/workspace/gexfoundry_device-rest-go_PR-166 22:30:06 + START_PACKAGES=/tmp/packages_start.txt 22:30:06 + END_PACKAGES=/tmp/packages_end.txt 22:30:06 + DIFF_PACKAGES=/tmp/packages_diff.txt 22:30:06 + PACKAGES=/tmp/packages_start.txt 22:30:06 + '[' /w/workspace/gexfoundry_device-rest-go_PR-166 ']' 22:30:06 + PACKAGES=/tmp/packages_end.txt 22:30:06 + case "${OS_FAMILY}" in 22:30:06 + dpkg -l 22:30:06 + grep '^ii' 22:30:06 + '[' -f /tmp/packages_start.txt ']' 22:30:06 + '[' -f /tmp/packages_end.txt ']' 22:30:06 + diff /tmp/packages_start.txt /tmp/packages_end.txt 22:30:06 + '[' /w/workspace/gexfoundry_device-rest-go_PR-166 ']' 22:30:06 + mkdir -p /w/workspace/gexfoundry_device-rest-go_PR-166/archives/ 22:30:06 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/gexfoundry_device-rest-go_PR-166/archives/ [Pipeline] echo 22:30:06 Launching container with: [--privileged -u 0:0 --net host -v /var/log/sysstat:/var/log/sysstat -v /var/log/secure:/var/log/secure -v /var/log/auth.log:/var/log/auth.log -v /w/workspace/gexfoundry_device-rest-go_PR-166/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 22:30:06 + facter operatingsystem [Pipeline] isUnix [Pipeline] sh 22:30:07 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 22:30:07 . [Pipeline] withDockerContainer 22:30:07 prd-ubuntu20.04-docker-8c-8g-9514 does not seem to be running inside a container 22:30:07 $ docker run -t -d -u 1001:1001 --privileged -u 0:0 --net host -v /var/log/sysstat:/var/log/sysstat -v /var/log/secure:/var/log/secure -v /var/log/auth.log:/var/log/auth.log -v /w/workspace/gexfoundry_device-rest-go_PR-166/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json -w /w/workspace/gexfoundry_device-rest-go_PR-166 -v /w/workspace/gexfoundry_device-rest-go_PR-166:/w/workspace/gexfoundry_device-rest-go_PR-166:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-166@tmp:/w/workspace/gexfoundry_device-rest-go_PR-166@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 22:30:07 $ docker top 40bf14e4dcb7f7e357b563d5ed73746452f3c5a37b261a42d9ea8b345b963d95 -eo pid,comm [Pipeline] { [Pipeline] sh 22:30:07 + touch /tmp/pre-build-complete [Pipeline] sh 22:30:08 + mkdir -p /var/log/sysstat [Pipeline] sh 22:30:08 + ls /var/log/sa-host 22:30:08 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 22:30:08 provisioning config files... 22:30:08 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-166@tmp/config8350268852043915292tmp [Pipeline] { [Pipeline] echo 22:30:08 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 22:30:09 ---> create-netrc.sh [Pipeline] } 22:30:09 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 22:30:09 ---> python-tools-install.sh [Pipeline] echo 22:30:09 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 22:30:09 ---> sudo-logs.sh 22:30:09 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 22:30:09 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 22:30:10 ---> job-cost.sh 22:30:10 lf-activate-venv: SKIPPING 22:30:10 DEBUG: total: 0.2199999988079071 22:30:10 INFO: Retrieving Stack Cost... 22:30:10 INFO: Retrieving Pricing Info for: v3-standard-8 22:30:11 INFO: Archiving Costs [Pipeline] echo 22:30:11 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 22:30:11 ---> logs-deploy.sh 22:30:11 lf-activate-venv: SKIPPING 22:30:11 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-166/1 22:30:11 INFO: archiving workspace using pattern(s): 22:30:12 Archives upload complete. 22:30:12 INFO: archiving logs to Nexus