Pull request #275 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 MonicaisHer for edgexfoundry/device-rest-go Obtained Jenkinsfile from b4eaadda57dc0dcf005d7c598ed54ebfb7ce09bb+e28169b2e94fb685934981c338b1a6a24f9d6fce (cacd8e751d7ea446b6facdf1d8e29c41993c58e9) 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-ssh128887764202339198.key > git ls-remote -h -t -- git@github.com:edgexfoundry/edgex-global-pipelines.git # timeout=10 Found match: refs/tags/stable revision 66200e8eedfc470904d6b329e562ec5b45423d6a 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-ssh3761525496557810836.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 66200e8eedfc470904d6b329e562ec5b45423d6a 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-275/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82 # 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-275/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh12013373178502503025.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-275/workspace@libs/711e2b78f836f82711d3b25fb9937a6f21c7d85885a63faf9727f7092bdaef82@tmp/jenkins-gitclient-ssh12488575194796551511.key > git fetch --tags --progress -- git@github.com:edgexfoundry/edgex-global-pipelines.git +refs/pull/*:refs/remotes/origin/pr/* # timeout=10 Checking out Revision 66200e8eedfc470904d6b329e562ec5b45423d6a (stable) > git config core.sparsecheckout # timeout=10 > git checkout -f 66200e8eedfc470904d6b329e562ec5b45423d6a # timeout=10 Commit message: "feat: add capability to use golang 1.20 (#427)" > 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 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-ssh201666181299589065.key > git ls-remote -h -- git@github.com:lfit/releng-pipelines.git # timeout=10 Found match: refs/heads/master revision 65355178549468b165f8106641c96c3190b1d843 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-275/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e # 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-275/workspace@libs/43bcb2cb36fa890fc8ffff9daeee975b45f005d05d2c7bdedc52bb4b4373df4e@tmp/jenkins-gitclient-ssh4179741878363524222.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 65355178549468b165f8106641c96c3190b1d843 (master) > git config core.sparsecheckout # timeout=10 > git checkout -f 65355178549468b165f8106641c96c3190b1d843 # timeout=10 Commit message: "Fix: Add S3 URL in href to ship logs" > 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 66200e8eedfc470904d6b329e562ec5b45423d6a Excluding src/test/ from checkout of git git@github.com:lfit/releng-pipelines.git so that 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.20 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 SNYK_DEBUG: false [Pipeline] node Still waiting to schedule task Waiting for next available executor on ‘ubuntu20.04-docker-8c-8g’ Running on prd-ubuntu20.04-docker-8c-8g-4836 in /w/workspace/gexfoundry_device-rest-go_PR-275 [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-275 # 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/275/head:refs/remotes/origin/PR-275 +refs/heads/main:refs/remotes/origin/main # timeout=10 Merging remotes/origin/main commit e28169b2e94fb685934981c338b1a6a24f9d6fce into PR head commit b4eaadda57dc0dcf005d7c598ed54ebfb7ce09bb Merge succeeded, producing b4eaadda57dc0dcf005d7c598ed54ebfb7ce09bb Checking out Revision b4eaadda57dc0dcf005d7c598ed54ebfb7ce09bb (PR-275) > git config core.sparsecheckout # timeout=10 > git checkout -f b4eaadda57dc0dcf005d7c598ed54ebfb7ce09bb # 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 e28169b2e94fb685934981c338b1a6a24f9d6fce # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f b4eaadda57dc0dcf005d7c598ed54ebfb7ce09bb # timeout=10 Commit message: "fix(snap): Refactor to avoid conflicts with readonly config provider directory" First time build. Skipping changelog. > git --version # timeout=10 > git --version # 'git version 2.25.1' fatal: bad object 66200e8eedfc470904d6b329e562ec5b45423d6a [Pipeline] } [Pipeline] // stage [Pipeline] withEnv [Pipeline] { [Pipeline] timestamps [Pipeline] { [Pipeline] timeout 12:02:25 Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Prepare) [Pipeline] script [Pipeline] { [Pipeline] withCredentials 12:02:26 Masking supported pattern matches of $GH_TOKEN_USR or $GH_TOKEN_PSW [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] echo 12:02:26 ========================================================= 12:02:26 EdgeX Global Pipelines Version Info 12:02:26 ========================================================= [Pipeline] libraryResource [Pipeline] sh 12:02:26 ------------------- 12:02:26 stable info: 12:02:26 ------------------- 12:02:26 Commited By: Ernesto Ojeda ernesto.ojeda@intel.com 12:02:26 Commit SHA: 66200e8eedfc470904d6b329e562ec5b45423d6a 12:02:26 Message: update stable to v1.0.245 12:02:27 ------------------- 12:02:27 experimental info: 12:02:27 ------------------- 12:02:27 Commited By: **** collab-it+edgex@linuxfoundation.org 12:02:27 Commit SHA: eb5041bb0874f6b7cdca3e6793e1ef87c0289dce 12:02:27 Message: update experimental to v1.0.246 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withCredentials [Pipeline] echo 12:02:27 [edgeXSetupEnvironment]: set envvar MAVEN_SETTINGS = device-rest-go-settings [Pipeline] echo 12:02:27 [edgeXSetupEnvironment]: set envvar PROJECT = device-rest-go [Pipeline] echo 12:02:27 [edgeXSetupEnvironment]: set envvar USE_SEMVER = true [Pipeline] echo 12:02:27 [edgeXSetupEnvironment]: set envvar TEST_SCRIPT = make test [Pipeline] echo 12:02:27 [edgeXSetupEnvironment]: set envvar BUILD_SCRIPT = make build [Pipeline] echo 12:02:27 [edgeXSetupEnvironment]: set envvar GO_VERSION = 1.20 [Pipeline] echo 12:02:28 [edgeXSetupEnvironment]: set envvar USE_ALPINE = true [Pipeline] echo 12:02:28 [edgeXSetupEnvironment]: set envvar DOCKER_FILE_PATH = Dockerfile [Pipeline] echo 12:02:28 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_FILE_PATH = Dockerfile.build [Pipeline] echo 12:02:28 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_CONTEXT = . [Pipeline] echo 12:02:28 [edgeXSetupEnvironment]: set envvar DOCKER_BUILD_IMAGE_TARGET = builder [Pipeline] echo 12:02:28 [edgeXSetupEnvironment]: set envvar DOCKER_IMAGE_NAME = device-rest [Pipeline] echo 12:02:28 [edgeXSetupEnvironment]: set envvar DOCKER_REGISTRY_NAMESPACE = [Pipeline] echo 12:02:28 [edgeXSetupEnvironment]: set envvar DOCKER_NEXUS_REPO = staging [Pipeline] echo 12:02:28 [edgeXSetupEnvironment]: set envvar BUILD_DOCKER_IMAGE = true [Pipeline] echo 12:02:28 [edgeXSetupEnvironment]: set envvar PUSH_DOCKER_IMAGE = true [Pipeline] echo 12:02:28 [edgeXSetupEnvironment]: set envvar BUILD_EXPERIMENTAL_DOCKER_IMAGE = false [Pipeline] echo 12:02:28 [edgeXSetupEnvironment]: set envvar BUILD_STABLE_DOCKER_IMAGE = false [Pipeline] echo 12:02:28 [edgeXSetupEnvironment]: set envvar SEMVER_BUMP_LEVEL = pre [Pipeline] echo 12:02:28 [edgeXSetupEnvironment]: set envvar BUILD_SNAP = false [Pipeline] echo 12:02:28 [edgeXSetupEnvironment]: set envvar PUBLISH_SWAGGER_DOCS = false [Pipeline] echo 12:02:28 [edgeXSetupEnvironment]: set envvar SWAGGER_API_FOLDERS = openapi/v1 [Pipeline] echo 12:02:28 [edgeXSetupEnvironment]: set envvar ARTIFACT_ROOT = archives/bin [Pipeline] echo 12:02:28 [edgeXSetupEnvironment]: set envvar ARTIFACT_TYPES = docker [Pipeline] echo 12:02:28 [edgeXSetupEnvironment]: set envvar SHOULD_BUILD = true [Pipeline] echo 12:02:28 [edgeXSetupEnvironment]: set envvar BUILD_FAILURE_NOTIFY_LIST = edgex-tsc-core@lists.edgexfoundry.org,edgex-tsc-devops@lists.edgexfoundry.org [Pipeline] echo 12:02:28 [edgeXSetupEnvironment]: set envvar SNYK_DEBUG = false [Pipeline] echo 12:02:28 [edgeXSetupEnvironment]: set envvar GIT_BRANCH = PR-275 [Pipeline] echo 12:02:28 [edgeXSetupEnvironment]: set envvar SEMVER_BRANCH = PR-275 [Pipeline] echo 12:02:28 [edgeXSetupEnvironment]: set envvar GIT_BRANCH_CLEAN = PR-275 [Pipeline] echo 12:02:29 [edgeXSetupEnvironment]: set envvar GIT_COMMIT = b4eaadda57dc0dcf005d7c598ed54ebfb7ce09bb [Pipeline] echo 12:02:29 [edgeXSetupEnvironment]: set envvar SHORT_GIT_COMMIT = b4eaadd [Pipeline] echo 12:02:29 [edgeXSetupEnvironment]: set envvar SEMVER_PRE_PREFIX = dev [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 12:02:29 provisioning config files... 12:02:29 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-275@tmp/config1585054865774715237tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 12:02:29 ---> docker-login.sh 12:02:29 nexus3.edgexfoundry.org:10001 12:02:29 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:02:29 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:02:29 Configure a credential helper to remove this warning. See 12:02:29 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:02:29 12:02:29 Login Succeeded 12:02:29 nexus3.edgexfoundry.org:10002 12:02:29 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:02:29 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:02:29 Configure a credential helper to remove this warning. See 12:02:29 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:02:29 12:02:29 Login Succeeded 12:02:29 nexus3.edgexfoundry.org:10003 12:02:30 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:02:30 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:02:30 Configure a credential helper to remove this warning. See 12:02:30 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:02:30 12:02:30 Login Succeeded 12:02:30 nexus3.edgexfoundry.org:10004 12:02:30 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:02:30 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:02:30 Configure a credential helper to remove this warning. See 12:02:30 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:02:30 12:02:30 Login Succeeded 12:02:30 docker.io 12:02:30 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:02:30 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:02:30 Configure a credential helper to remove this warning. See 12:02:30 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:02:30 12:02:30 Login Succeeded 12:02:30 ---> docker-login.sh ends [Pipeline] } 12:02:30 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build Check) [Pipeline] sh 12:02:31 + git rev-list -1 --merges b4eaadda57dc0dcf005d7c598ed54ebfb7ce09bb~1..b4eaadda57dc0dcf005d7c598ed54ebfb7ce09bb [Pipeline] echo 12:02:31 -----------> git rev-list -1 --merges b4eaadda57dc0dcf005d7c598ed54ebfb7ce09bb~1..b4eaadda57dc0dcf005d7c598ed54ebfb7ce09bb b4eaadda57dc0dcf005d7c598ed54ebfb7ce09bb [false] [Pipeline] sh 12:02:31 + git log --format=format:%s -1 b4eaadda57dc0dcf005d7c598ed54ebfb7ce09bb [Pipeline] echo 12:02:31 ========================================================= 12:02:31 [isLTSReleaseBuild] Regular build required. isLTSRelease: [false] 12:02:31 ========================================================= [Pipeline] stage [Pipeline] { (Semver Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 12:02:31 + git log --format=format:%s -1 b4eaadda57dc0dcf005d7c598ed54ebfb7ce09bb [Pipeline] echo 12:02:31 [semverPrep] GIT_COMMIT: b4eaadda57dc0dcf005d7c598ed54ebfb7ce09bb, Commit Message: fix(snap): Refactor to avoid conflicts with readonly config provider directory [Pipeline] echo 12:02:31 [semverPrep] This is not a build commit. [Pipeline] sh 12:02:32 + grep github.com ecdsa /etc/ssh/ssh_known_hosts 12:02:32 + grep -v github /etc/ssh/ssh_known_hosts 12:02:32 + [ -e /tmp/ssh_known_hosts ] 12:02:32 + sudo mv /tmp/ssh_known_hosts /etc/ssh/ssh_known_hosts 12:02:32 + + echo github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= 12:02:32 sudo tee -a /etc/ssh/ssh_known_hosts 12:02:32 github.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEmKSENjQEezOmxkZMy7opKgwFB9nkt5YRrYMjNuG5N87uRgg6CLrbo5wAdT/y6v0mKV0U2w0WZ2YB/++Tpockg= [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 12:02:32 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 12:02:32 12:02:32 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 12:02:33 + docker pull nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 12:02:33 0.1.4: Pulling from edgex-devops/py-git-semver 12:02:33 b85a868b505f: Pulling fs layer 12:02:33 e2be974225ed: Pulling fs layer 12:02:33 339a4e72a1f5: Pulling fs layer 12:02:33 988bab9f4d93: Pulling fs layer 12:02:33 1469e6f7b9e6: Pulling fs layer 12:02:33 eaf3925da568: Pulling fs layer 12:02:33 bab4dde63d76: Pulling fs layer 12:02:33 bde34c3a00c8: Pulling fs layer 12:02:33 b352a97aabf1: Pulling fs layer 12:02:33 4872d77fe225: Pulling fs layer 12:02:33 5851b861e8e6: Pulling fs layer 12:02:33 bab4dde63d76: Waiting 12:02:33 bde34c3a00c8: Waiting 12:02:33 b352a97aabf1: Waiting 12:02:33 4872d77fe225: Waiting 12:02:33 5851b861e8e6: Waiting 12:02:33 988bab9f4d93: Waiting 12:02:33 1469e6f7b9e6: Waiting 12:02:33 eaf3925da568: Waiting 12:02:33 e2be974225ed: Verifying Checksum 12:02:33 e2be974225ed: Download complete 12:02:33 988bab9f4d93: Download complete 12:02:33 339a4e72a1f5: Verifying Checksum 12:02:33 339a4e72a1f5: Download complete 12:02:33 1469e6f7b9e6: Verifying Checksum 12:02:33 1469e6f7b9e6: Download complete 12:02:33 eaf3925da568: Verifying Checksum 12:02:33 bde34c3a00c8: Verifying Checksum 12:02:33 bde34c3a00c8: Download complete 12:02:33 b352a97aabf1: Verifying Checksum 12:02:33 b352a97aabf1: Download complete 12:02:33 4872d77fe225: Verifying Checksum 12:02:33 4872d77fe225: Download complete 12:02:33 5851b861e8e6: Verifying Checksum 12:02:33 5851b861e8e6: Download complete 12:02:33 b85a868b505f: Verifying Checksum 12:02:33 b85a868b505f: Download complete 12:02:33 bab4dde63d76: Verifying Checksum 12:02:33 bab4dde63d76: Download complete 12:02:34 b85a868b505f: Pull complete 12:02:34 e2be974225ed: Pull complete 12:02:35 339a4e72a1f5: Pull complete 12:02:35 988bab9f4d93: Pull complete 12:02:35 1469e6f7b9e6: Pull complete 12:02:35 eaf3925da568: Pull complete 12:02:37 bab4dde63d76: Pull complete 12:02:37 bde34c3a00c8: Pull complete 12:02:37 b352a97aabf1: Pull complete 12:02:37 4872d77fe225: Pull complete 12:02:38 5851b861e8e6: Pull complete 12:02:38 Digest: sha256:59a28aa3b44c0bc56b9c3d2e9ecabe42e63693d939cc6e425eb8786f29f663d8 12:02:38 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 12:02:38 nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 12:02:38 prd-ubuntu20.04-docker-8c-8g-4836 does not seem to be running inside a container 12:02:38 $ docker run -t -d -u 1001:1001 -u 0:0 -v /etc/ssh:/etc/ssh -w /w/workspace/gexfoundry_device-rest-go_PR-275 -v /w/workspace/gexfoundry_device-rest-go_PR-275:/w/workspace/gexfoundry_device-rest-go_PR-275:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-275@tmp:/w/workspace/gexfoundry_device-rest-go_PR-275@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-devops/py-git-semver:0.1.4 cat 12:02:39 $ docker top 7f449a835d25046d635234499d1fc3b74b86745b03f2c6e40dbc21a79f4f9a27 -eo pid,comm 12:02:39 ERROR: The container started but didn't run the expected command. Please double check your ENTRYPOINT does execute the command passed as docker run argument, as required by official docker images (see https://github.com/docker-library/official-images#consistency for entrypoint consistency requirements). 12:02:39 Alternatively you can force image entrypoint to be disabled by adding option `--entrypoint=''`. [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] sshagent 12:02:39 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 12:02:39 [ssh-agent] Looking for ssh-agent implementation... 12:02:40 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 12:02:40 $ docker exec 7f449a835d25046d635234499d1fc3b74b86745b03f2c6e40dbc21a79f4f9a27 ssh-agent 12:02:40 SSH_AUTH_SOCK=/tmp/ssh-uiHFqchIUCH7/agent.32 12:02:40 SSH_AGENT_PID=38 12:02:40 Running ssh-add (command line suppressed) 12:02:40 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-275@tmp/private_key_2179201401653763768.key (/w/workspace/gexfoundry_device-rest-go_PR-275@tmp/private_key_2179201401653763768.key) 12:02:40 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 12:02:40 + git tag --points-at HEAD [Pipeline] } 12:02:40 $ docker exec --env ******** --env ******** 7f449a835d25046d635234499d1fc3b74b86745b03f2c6e40dbc21a79f4f9a27 ssh-agent -k 12:02:40 unset SSH_AUTH_SOCK; 12:02:40 unset SSH_AGENT_PID; 12:02:40 echo Agent pid 38 killed; 12:02:40 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] sshagent 12:02:40 [ssh-agent] Using credentials edgex-jenkins (SSH Credentials for GitHub) 12:02:40 [ssh-agent] Looking for ssh-agent implementation... 12:02:41 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 12:02:41 $ docker exec 7f449a835d25046d635234499d1fc3b74b86745b03f2c6e40dbc21a79f4f9a27 ssh-agent 12:02:41 SSH_AUTH_SOCK=/tmp/ssh-sJD7ROBbbSas/agent.69 12:02:41 SSH_AGENT_PID=75 12:02:41 Running ssh-add (command line suppressed) 12:02:41 Identity added: /w/workspace/gexfoundry_device-rest-go_PR-275@tmp/private_key_7207338614222512884.key (/w/workspace/gexfoundry_device-rest-go_PR-275@tmp/private_key_7207338614222512884.key) 12:02:41 [ssh-agent] Started. [Pipeline] { [Pipeline] sh 12:02:41 + git semver init 12:02:41 2023-03-21 12:02:41,800 [run_init] DEBUG init version:0.0.0 force:False 12:02:41 2023-03-21 12:02:41,801 [clone_semver_branch] DEBUG clone semver branch to:/w/workspace/gexfoundry_device-rest-go_PR-275/.semver 12:02:41 2023-03-21 12:02:41,802 [execute] INFO git clone -b semver git@github.com:edgexfoundry/device-rest-go.git /w/workspace/gexfoundry_device-rest-go_PR-275/.semver 12:02:41 2023-03-21 12:02:41,802 [execute] DEBUG Popen(['git', 'clone', '-b', 'semver', 'git@github.com:edgexfoundry/device-rest-go.git', '/w/workspace/gexfoundry_device-rest-go_PR-275/.semver'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-275, universal_newlines=False, shell=None, istream=None) 12:02:42 2023-03-21 12:02:42,743 [append_file] DEBUG append to file:/w/workspace/gexfoundry_device-rest-go_PR-275/.git/info/exclude 12:02:42 2023-03-21 12:02:42,744 [write_version] DEBUG write version:0.0.0 to path:/w/workspace/gexfoundry_device-rest-go_PR-275/.semver/PR-275 with force:False 12:02:42 2023-03-21 12:02:42,744 [write_file] DEBUG write to file:/w/workspace/gexfoundry_device-rest-go_PR-275/.semver/PR-275 12:02:42 2023-03-21 12:02:42,748 [execute] INFO git cat-file --batch-check 12:02:42 2023-03-21 12:02:42,749 [execute] DEBUG Popen(['git', 'cat-file', '--batch-check'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-275/.semver, universal_newlines=False, shell=None, istream=) 12:02:42 2023-03-21 12:02:42,755 [execute] INFO git cat-file --batch 12:02:42 2023-03-21 12:02:42,755 [execute] DEBUG Popen(['git', 'cat-file', '--batch'], cwd=/w/workspace/gexfoundry_device-rest-go_PR-275/.semver, universal_newlines=False, shell=None, istream=) 12:02:42 2023-03-21 12:02:42,759 [read_version] DEBUG read version from /w/workspace/gexfoundry_device-rest-go_PR-275/.semver/PR-275 12:02:42 0.0.0 [Pipeline] } 12:02:42 $ docker exec --env ******** --env ******** 7f449a835d25046d635234499d1fc3b74b86745b03f2c6e40dbc21a79f4f9a27 ssh-agent -k 12:02:42 unset SSH_AUTH_SOCK; 12:02:42 unset SSH_AGENT_PID; 12:02:42 echo Agent pid 75 killed; 12:02:42 [ssh-agent] Stopped. [Pipeline] // sshagent [Pipeline] } [Pipeline] // withEnv [Pipeline] sh 12:02:43 + git semver [Pipeline] } 12:02:43 $ docker stop --time=1 7f449a835d25046d635234499d1fc3b74b86745b03f2c6e40dbc21a79f4f9a27 12:02:44 $ docker rm -f --volumes 7f449a835d25046d635234499d1fc3b74b86745b03f2c6e40dbc21a79f4f9a27 [Pipeline] // withDockerContainer [Pipeline] sh 12:02:45 + sudo chown -R jenkins:jenkins .semver [Pipeline] writeFile [Pipeline] stash 12:02:45 Stashed 1 file(s) [Pipeline] echo 12:02:45 [edgeXSemver]: initialized semver on version 0.0.0 [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] parallel [Pipeline] { (Branch: amd64) [Pipeline] { (Branch: arm64) [Pipeline] stage [Pipeline] { (amd64) [Pipeline] stage [Pipeline] { (arm64) [Pipeline] withEnv [Pipeline] { [Pipeline] node [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 12:02:46 provisioning config files... 12:02:46 copy managed file [device-rest-go-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-275@tmp/config12718715278026791778tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 12:02:46 ---> docker-login.sh 12:02:46 nexus3.edgexfoundry.org:10001 12:02:46 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:02:46 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:02:46 Configure a credential helper to remove this warning. See 12:02:46 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:02:46 12:02:46 Login Succeeded 12:02:46 nexus3.edgexfoundry.org:10002 12:02:46 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:02:46 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:02:46 Configure a credential helper to remove this warning. See 12:02:46 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:02:46 12:02:46 Login Succeeded 12:02:46 nexus3.edgexfoundry.org:10003 12:02:46 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:02:46 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:02:46 Configure a credential helper to remove this warning. See 12:02:46 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:02:46 12:02:46 Login Succeeded 12:02:46 nexus3.edgexfoundry.org:10004 12:02:46 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:02:46 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:02:46 Configure a credential helper to remove this warning. See 12:02:46 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:02:46 12:02:46 Login Succeeded 12:02:46 docker.io 12:02:47 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:02:47 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:02:47 Configure a credential helper to remove this warning. See 12:02:47 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:02:47 12:02:47 Login Succeeded 12:02:47 ---> docker-login.sh ends [Pipeline] } 12:02:47 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 12:02:47 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 12:02:47 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 12:02:47 ========================================================= 12:02:47 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine] 12:02:47 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 12:02:47 + docker build -t ci-base-image-x86_64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine --build-arg MAKE=echo noop --target=builder . 12:02:47 Sending build context to Docker daemon 10.87MB 12:02:47 Step 1/12 : ARG BASE=golang:1.20-alpine3.17 12:02:47 Step 2/12 : FROM ${BASE} AS builder 12:02:47 1.20-alpine: Pulling from edgex-devops/edgex-golang-base 12:02:47 63b65145d645: Pulling fs layer 12:02:47 a2d21d5440eb: Pulling fs layer 12:02:47 935e6c44a52c: Pulling fs layer 12:02:47 94cc34f8dd06: Pulling fs layer 12:02:47 30dea6a524f1: Pulling fs layer 12:02:47 a2aff8979fd8: Pulling fs layer 12:02:47 6808be2612f2: Pulling fs layer 12:02:47 f25807f1079a: Pulling fs layer 12:02:47 6808be2612f2: Waiting 12:02:47 a2aff8979fd8: Waiting 12:02:47 94cc34f8dd06: Waiting 12:02:47 f25807f1079a: Waiting 12:02:47 30dea6a524f1: Waiting 12:02:47 a2d21d5440eb: Download complete 12:02:48 94cc34f8dd06: Download complete 12:02:48 30dea6a524f1: Download complete 12:02:48 63b65145d645: Verifying Checksum 12:02:48 63b65145d645: Download complete 12:02:48 a2aff8979fd8: Verifying Checksum 12:02:48 a2aff8979fd8: Download complete 12:02:48 63b65145d645: Pull complete 12:02:48 a2d21d5440eb: Pull complete 12:02:48 f25807f1079a: Verifying Checksum 12:02:48 f25807f1079a: Download complete 12:02:48 935e6c44a52c: Verifying Checksum 12:02:48 935e6c44a52c: Download complete 12:02:49 6808be2612f2: Verifying Checksum 12:02:49 6808be2612f2: Download complete 12:02:52 935e6c44a52c: Pull complete 12:02:52 94cc34f8dd06: Pull complete 12:02:52 30dea6a524f1: Pull complete 12:02:52 a2aff8979fd8: Pull complete 12:02:55 6808be2612f2: Pull complete 12:02:55 f25807f1079a: Pull complete 12:02:55 Digest: sha256:106942793af8b5907f587008084bb0888cadbc76d86ebd37d4d3227fb0f1e438 12:02:55 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base:1.20-alpine 12:02:55 ---> 3b553350e43f 12:02:55 Step 3/12 : ARG ADD_BUILD_TAGS="" 12:02:57 ---> Running in 956be15fc78f 12:02:57 Removing intermediate container 956be15fc78f 12:02:57 ---> 2247763614ca 12:02:57 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 12:02:57 ---> Running in 7e811d238967 12:02:57 Removing intermediate container 7e811d238967 12:02:57 ---> 566dcdd1c938 12:02:57 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 12:02:57 ---> Running in 7e2d3de827cc 12:02:57 Removing intermediate container 7e2d3de827cc 12:02:57 ---> 9c9fc3d746a1 12:02:57 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 12:02:57 ---> Running in 6d0e0705f0fc 12:02:57 Removing intermediate container 6d0e0705f0fc 12:02:57 ---> 9bc2fd720a77 12:02:57 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 12:02:57 ---> Running in e7c618a0bbd9 12:02:57 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 12:02:58 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 12:02:58 (1/4) Installing openssh-keygen (9.1_p1-r2) 12:02:58 (2/4) Installing libedit (20221030.3.1-r0) 12:02:58 (3/4) Installing openssh-client-common (9.1_p1-r2) 12:02:58 (4/4) Installing openssh-client-default (9.1_p1-r2) 12:02:58 Executing busybox-1.35.0-r29.trigger 12:02:58 OK: 269 MiB in 57 packages 12:02:59 Removing intermediate container e7c618a0bbd9 12:02:59 ---> 2326597d88b2 12:02:59 Step 8/12 : WORKDIR /device-rest-go 12:02:59 ---> Running in 94a5af8af462 12:02:59 Removing intermediate container 94a5af8af462 12:02:59 ---> dc19ad7f5f11 12:02:59 Step 9/12 : COPY go.mod vendor* ./ 12:02:59 ---> 5be34c48ff16 12:02:59 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 12:02:59 ---> Running in f85dbc219120 12:03:01 Still waiting to schedule task 12:03:01 Waiting for next available executor on ‘ubuntu20.04-docker-arm64-4c-16g’ 12:03:25 Removing intermediate container f85dbc219120 12:03:25 ---> a795ca0e62cd 12:03:25 Step 11/12 : COPY . . 12:03:25 ---> 9f7fe4d8b935 12:03:25 Step 12/12 : RUN $MAKE 12:03:25 ---> Running in 8710defc0461 12:03:25 noop 12:03:25 Removing intermediate container 8710defc0461 12:03:25 ---> 8a5d1011f829 12:03:25 Successfully built 8a5d1011f829 12:03:25 Successfully tagged ci-base-image-x86_64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 12:03:26 + docker inspect -f . ci-base-image-x86_64 12:03:26 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 12:03:26 prd-ubuntu20.04-docker-8c-8g-4836 does not seem to be running inside a container 12:03:26 $ docker run -t -d -u 1001:1001 -u 0:0 -w /w/workspace/gexfoundry_device-rest-go_PR-275 -v /w/workspace/gexfoundry_device-rest-go_PR-275:/w/workspace/gexfoundry_device-rest-go_PR-275:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-275@tmp:/w/workspace/gexfoundry_device-rest-go_PR-275@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 12:03:26 $ docker top 7f4402e740437c4c3419eaaf1bde80a279b1fb487aced1af21b3dadd4eecb279 -eo pid,comm [Pipeline] { [Pipeline] sh 12:03:27 + go version 12:03:27 go version go1.20.2 linux/amd64 [Pipeline] } 12:03:27 $ docker stop --time=1 7f4402e740437c4c3419eaaf1bde80a279b1fb487aced1af21b3dadd4eecb279 12:03:28 $ docker rm -f --volumes 7f4402e740437c4c3419eaaf1bde80a279b1fb487aced1af21b3dadd4eecb279 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 12:03:29 + docker inspect -f . ci-base-image-x86_64 12:03:29 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 12:03:29 prd-ubuntu20.04-docker-8c-8g-4836 does not seem to be running inside a container 12:03:29 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged -v /var/run/docker.sock:/var/run/docker.sock -w /w/workspace/gexfoundry_device-rest-go_PR-275 -v /w/workspace/gexfoundry_device-rest-go_PR-275:/w/workspace/gexfoundry_device-rest-go_PR-275:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-275@tmp:/w/workspace/gexfoundry_device-rest-go_PR-275@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** ci-base-image-x86_64 cat 12:03:29 $ docker top 6dcb96f5d99256e3ce46e1580c1e37b201391c3b9caa921358437c5d85907c66 -eo pid,comm [Pipeline] { [Pipeline] sh 12:03:30 + git config --global --add safe.directory /w/workspace/gexfoundry_device-rest-go_PR-275 [Pipeline] fileExists [Pipeline] sh 12:03:30 + make test 12:03:30 go test ./... -coverprofile=coverage.out ./... 12:03:34 ? github.com/edgexfoundry/device-rest-go [no test files] 12:03:44 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 12:03:44 ok github.com/edgexfoundry/device-rest-go/driver 0.009s coverage: 33.0% of statements 12:03:50 go vet ./... 12:03:53 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 12:03:53 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 12:03:53 ./bin/test-attribution-txt.sh [Pipeline] echo 12:03:53 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 12:03:53 $ docker stop --time=1 6dcb96f5d99256e3ce46e1580c1e37b201391c3b9caa921358437c5d85907c66 12:03:55 $ docker rm -f --volumes 6dcb96f5d99256e3ce46e1580c1e37b201391c3b9caa921358437c5d85907c66 [Pipeline] // withDockerContainer [Pipeline] sh 12:03:56 + sudo chown -R jenkins:jenkins . [Pipeline] stash 12:03:56 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] sh 12:03:56 + sudo chown -R jenkins:jenkins . [Pipeline] sh 12:03:57 + ls -al . 12:03:57 total 184 12:03:57 drwxrwxr-x 9 jenkins jenkins 4096 Mar 21 12:03 . 12:03:57 drwxrwxr-x 4 jenkins jenkins 4096 Mar 21 12:02 .. 12:03:57 -rw-rw-r-- 1 jenkins jenkins 151 Mar 21 12:02 .dockerignore 12:03:57 drwxrwxr-x 8 jenkins jenkins 4096 Mar 21 12:02 .git 12:03:57 drwxrwxr-x 3 jenkins jenkins 4096 Mar 21 12:02 .github 12:03:57 -rw-rw-r-- 1 jenkins jenkins 329 Mar 21 12:02 .gitignore 12:03:57 -rw-rw-r-- 1 jenkins jenkins 41 Mar 21 12:02 .golangci.yml 12:03:57 drwxr-xr-x 3 jenkins jenkins 4096 Mar 21 12:02 .semver 12:03:57 -rw-rw-r-- 1 jenkins jenkins 9321 Mar 21 12:02 Attribution.txt 12:03:57 -rw-rw-r-- 1 jenkins jenkins 13085 Mar 21 12:02 CHANGELOG.md 12:03:57 -rw-rw-r-- 1 jenkins jenkins 1578 Mar 21 12:02 Dockerfile 12:03:57 -rw-rw-r-- 1 jenkins jenkins 677 Mar 21 12:02 GOVERNANCE.md 12:03:57 -rw-rw-r-- 1 jenkins jenkins 680 Mar 21 12:02 Jenkinsfile 12:03:57 -rw-rw-r-- 1 jenkins jenkins 11340 Mar 21 12:02 LICENSE 12:03:57 -rw-rw-r-- 1 jenkins jenkins 1779 Mar 21 12:02 Makefile 12:03:57 -rw-rw-r-- 1 jenkins jenkins 620 Mar 21 12:02 OWNERS.md 12:03:57 -rw-rw-r-- 1 jenkins jenkins 15447 Mar 21 12:02 README.md 12:03:57 -rw-rw-r-- 1 jenkins jenkins 5 Mar 21 12:02 VERSION 12:03:57 drwxrwxr-x 2 jenkins jenkins 4096 Mar 21 12:02 bin 12:03:57 drwxrwxr-x 3 jenkins jenkins 4096 Mar 21 12:02 cmd 12:03:57 -rw-r--r-- 1 jenkins jenkins 14200 Mar 21 12:03 coverage.out 12:03:57 drwxrwxr-x 2 jenkins jenkins 4096 Mar 21 12:02 driver 12:03:57 -rw-rw-r-- 1 jenkins jenkins 3446 Mar 21 12:02 go.mod 12:03:57 -rw-rw-r-- 1 jenkins jenkins 31299 Mar 21 12:02 go.sum 12:03:57 drwxrwxr-x 4 jenkins jenkins 4096 Mar 21 12:02 snap 12:03:57 -rw-rw-r-- 1 jenkins jenkins 713 Mar 21 12:02 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 12:03:57 + 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=b4eaadda57dc0dcf005d7c598ed54ebfb7ce09bb --label arch=amd64 --label version=0.0.0 . 12:03:57 Sending build context to Docker daemon 10.88MB 12:03:57 Step 1/25 : ARG BASE=golang:1.20-alpine3.17 12:03:57 Step 2/25 : FROM ${BASE} AS builder 12:03:57 ---> 8a5d1011f829 12:03:57 Step 3/25 : ARG ADD_BUILD_TAGS="" 12:03:57 ---> Running in 7b5482deb4bc 12:03:57 Removing intermediate container 7b5482deb4bc 12:03:57 ---> 57cc8e5aef00 12:03:57 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 12:03:57 ---> Running in a7b4d3e90155 12:03:57 Removing intermediate container a7b4d3e90155 12:03:57 ---> 7ac6bd527c9a 12:03:57 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 12:03:57 ---> Running in ae3a088770cc 12:03:57 Removing intermediate container ae3a088770cc 12:03:57 ---> 7b5a7492793c 12:03:57 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 12:03:57 ---> Running in 4a5b65121c40 12:03:57 Removing intermediate container 4a5b65121c40 12:03:57 ---> 36f8db3aecaa 12:03:57 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 12:03:57 ---> Running in b4575f9ab875 12:03:58 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 12:03:58 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 12:03:58 OK: 269 MiB in 57 packages 12:03:58 Removing intermediate container b4575f9ab875 12:03:58 ---> 78cdc294fd17 12:03:58 Step 8/25 : WORKDIR /device-rest-go 12:03:58 ---> Running in 5894d167b2e2 12:03:58 Removing intermediate container 5894d167b2e2 12:03:58 ---> ef7bd35351ca 12:03:58 Step 9/25 : COPY go.mod vendor* ./ 12:03:59 ---> 62f3d16d1f24 12:03:59 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 12:03:59 ---> Running in 0e0c8c4fcbaf 12:04:00 Removing intermediate container 0e0c8c4fcbaf 12:04:00 ---> a0484ea693d9 12:04:00 Step 11/25 : COPY . . 12:04:00 ---> 94fc3577e3a3 12:04:00 Step 12/25 : RUN $MAKE 12:04:00 ---> Running in ad7cfee084ec 12:04:00 CGO_ENABLED=0 go build -tags "" -ldflags "-X github.com/edgexfoundry/device-rest-go.Version=0.0.0" -trimpath -mod=readonly -o cmd/device-rest ./cmd 12:04:18 Removing intermediate container ad7cfee084ec 12:04:18 ---> 5ece52c0f47a 12:04:18 Step 13/25 : FROM alpine:3.17 12:04:18 3.17: Pulling from library/alpine 12:04:18 63b65145d645: Already exists 12:04:18 Digest: sha256:ff6bdca1701f3a8a67e328815ff2346b0e4067d32ec36b7992c1fdc001dc8517 12:04:18 Status: Downloaded newer image for alpine:3.17 12:04:18 ---> b2aa39c304c2 12:04:18 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 12:04:18 ---> Running in 8ce8458fd3a2 12:04:18 Removing intermediate container 8ce8458fd3a2 12:04:18 ---> b74ca1230692 12:04:18 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 12:04:18 ---> Running in 6ffd4f9cd5cf 12:04:18 Removing intermediate container 6ffd4f9cd5cf 12:04:18 ---> c5999f30c291 12:04:18 Step 16/25 : RUN apk add --update --no-cache dumb-init 12:04:18 ---> Running in 5748246dc747 12:04:18 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz 12:04:18 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/x86_64/APKINDEX.tar.gz 12:04:18 (1/1) Installing dumb-init (1.2.5-r2) 12:04:18 Executing busybox-1.35.0-r29.trigger 12:04:18 OK: 7 MiB in 16 packages 12:04:18 Removing intermediate container 5748246dc747 12:04:18 ---> adb27248b2e6 12:04:18 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 12:04:19 ---> 6f666633509b 12:04:19 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 12:04:19 ---> fe2f2aff5ab6 12:04:19 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 12:04:19 ---> c0b0a272e678 12:04:19 Step 20/25 : EXPOSE 59986 12:04:19 ---> Running in bb4857456866 12:04:19 Removing intermediate container bb4857456866 12:04:19 ---> 0ae35dc5ef99 12:04:19 Step 21/25 : ENTRYPOINT ["/device-rest"] 12:04:19 ---> Running in ccb1272c7b9e 12:04:19 Removing intermediate container ccb1272c7b9e 12:04:19 ---> 5b0696a894d1 12:04:19 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 12:04:19 ---> Running in 909a3e18e65e 12:04:19 Removing intermediate container 909a3e18e65e 12:04:19 ---> f49a558b0591 12:04:19 Step 23/25 : LABEL arch=amd64 12:04:19 ---> Running in d690961fbd2b 12:04:20 Removing intermediate container d690961fbd2b 12:04:20 ---> 0f294c35f91c 12:04:20 Step 24/25 : LABEL git_sha=b4eaadda57dc0dcf005d7c598ed54ebfb7ce09bb 12:04:20 ---> Running in 2f93036fdf82 12:04:20 Removing intermediate container 2f93036fdf82 12:04:20 ---> 6ec5ab31e29f 12:04:20 Step 25/25 : LABEL version=0.0.0 12:04:20 ---> Running in 9b7af8e55470 12:04:20 Removing intermediate container 9b7af8e55470 12:04:20 ---> 7c28fdd75186 12:04:20 [Warning] One or more build-args [ARCH] were not consumed 12:04:20 Successfully built 7c28fdd75186 12:04:20 Successfully tagged device-rest:latest [Pipeline] } [Pipeline] // withEnv [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] withEnv [Pipeline] { [Pipeline] sh 12:04:21 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 12:04:21 12:04:21 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 12:04:21 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 12:04:21 latest: Pulling from edgex-lftools-log-publisher 12:04:21 5eb5b503b376: Pulling fs layer 12:04:21 5c69ac0246d0: Pulling fs layer 12:04:21 ec43610c2a17: Pulling fs layer 12:04:21 3a2ae6a8a46f: Pulling fs layer 12:04:21 33b1e0a273af: Pulling fs layer 12:04:21 5d3b04190fa2: Pulling fs layer 12:04:21 2f39f015ded8: Pulling fs layer 12:04:21 3a2ae6a8a46f: Waiting 12:04:21 5d3b04190fa2: Waiting 12:04:21 33b1e0a273af: Waiting 12:04:21 2f39f015ded8: Waiting 12:04:21 5c69ac0246d0: Download complete 12:04:21 3a2ae6a8a46f: Download complete 12:04:21 33b1e0a273af: Verifying Checksum 12:04:21 33b1e0a273af: Download complete 12:04:21 5d3b04190fa2: Verifying Checksum 12:04:21 5d3b04190fa2: Download complete 12:04:21 ec43610c2a17: Verifying Checksum 12:04:21 ec43610c2a17: Download complete 12:04:21 5eb5b503b376: Verifying Checksum 12:04:21 5eb5b503b376: Download complete 12:04:22 2f39f015ded8: Download complete 12:04:22 5eb5b503b376: Pull complete 12:04:22 5c69ac0246d0: Pull complete 12:04:23 ec43610c2a17: Pull complete 12:04:23 3a2ae6a8a46f: Pull complete 12:04:23 33b1e0a273af: Pull complete 12:04:23 5d3b04190fa2: Pull complete 12:04:27 2f39f015ded8: Pull complete 12:04:27 Digest: sha256:aad550b2ae72f0c3871cfab1553edc96d28a4cf46347c1b5d8abfaef0d2cf592 12:04:27 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 12:04:27 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 12:04:28 prd-ubuntu20.04-docker-8c-8g-4836 does not seem to be running inside a container 12:04:28 $ 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-275 -v /w/workspace/gexfoundry_device-rest-go_PR-275:/w/workspace/gexfoundry_device-rest-go_PR-275:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-275@tmp:/w/workspace/gexfoundry_device-rest-go_PR-275@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest cat 12:04:30 $ docker top 934f383cf8e7c887d1cbc0bff9c3e175c5d9b3cd19b034cd03f20265c0ec6724 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 12:04:30 ---> job-cost.sh 12:04:30 lf-activate-venv: SKIPPING 12:04:30 INFO: No Stack... 12:04:30 INFO: Retrieving Pricing Info for: v3-standard-8 12:04:31 INFO: Archiving Costs [Pipeline] sh 12:04:31 + cat /w/workspace/gexfoundry_device-rest-go_PR-275/archives/cost.csv 12:04:31 + cut -d, -f6 [Pipeline] lock 12:04:31 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-275-1-stack-cost] 12:04:31 Resource [jenkins-edgexfoundry-device-rest-go-PR-275-1-stack-cost] did not exist. Created. 12:04:31 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-275-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 12:04:31 + echo total: 0.2199999988079071 [Pipeline] stash 12:04:31 Stashed 1 file(s) [Pipeline] } 12:04:31 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-275-1-stack-cost] [Pipeline] // lock [Pipeline] } 12:04:31 $ docker stop --time=1 934f383cf8e7c887d1cbc0bff9c3e175c5d9b3cd19b034cd03f20265c0ec6724 12:04:33 $ docker rm -f --volumes 934f383cf8e7c887d1cbc0bff9c3e175c5d9b3cd19b034cd03f20265c0ec6724 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // stage [Pipeline] } 12:06:05 Running on prd-ubuntu20.04-docker-arm64-4c-16g-4838 in /w/workspace/gexfoundry_device-rest-go_PR-275 [Pipeline] { [Pipeline] ws 12:06:05 Running in /w/workspace/device-rest-go/1 [Pipeline] { [Pipeline] checkout 12:06:05 The recommended git tool is: git 12:06:12 using credential edgex-jenkins-ssh 12:06:12 Cloning the remote Git repository 12:06:12 Cloning repository git@github.com:edgexfoundry/device-rest-go.git 12:06:12 > git init /w/workspace/device-rest-go/1 # timeout=10 12:06:12 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 12:06:12 > git --version # timeout=10 12:06:12 > git --version # 'git version 2.25.1' 12:06:12 using GIT_SSH to set credentials SSH Credentials for GitHub 12:06:12 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/heads/*:refs/remotes/origin/* # timeout=10 12:06:14 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 12:06:14 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 12:06:15 > git config remote.origin.url git@github.com:edgexfoundry/device-rest-go.git # timeout=10 12:06:15 Fetching upstream changes from git@github.com:edgexfoundry/device-rest-go.git 12:06:15 using GIT_SSH to set credentials SSH Credentials for GitHub 12:06:15 > git fetch --tags --force --progress -- git@github.com:edgexfoundry/device-rest-go.git +refs/pull/275/head:refs/remotes/origin/PR-275 +refs/heads/main:refs/remotes/origin/main # timeout=10 12:06:16 Merging remotes/origin/main commit e28169b2e94fb685934981c338b1a6a24f9d6fce into PR head commit b4eaadda57dc0dcf005d7c598ed54ebfb7ce09bb 12:06:16 Merge succeeded, producing b4eaadda57dc0dcf005d7c598ed54ebfb7ce09bb 12:06:16 Checking out Revision b4eaadda57dc0dcf005d7c598ed54ebfb7ce09bb (PR-275) 12:06:16 > git config core.sparsecheckout # timeout=10 12:06:16 > git checkout -f b4eaadda57dc0dcf005d7c598ed54ebfb7ce09bb # timeout=10 12:06:16 > git remote # timeout=10 12:06:16 > git config --get remote.origin.url # timeout=10 12:06:16 using GIT_SSH to set credentials SSH Credentials for GitHub 12:06:16 > git merge e28169b2e94fb685934981c338b1a6a24f9d6fce # timeout=10 12:06:16 > git rev-parse HEAD^{commit} # timeout=10 12:06:16 > git config core.sparsecheckout # timeout=10 12:06:16 > git checkout -f b4eaadda57dc0dcf005d7c598ed54ebfb7ce09bb # timeout=10 12:06:20 Commit message: "fix(snap): Refactor to avoid conflicts with readonly config provider directory" 12:06:20 > git --version # timeout=10 12:06:20 > git --version # 'git version 2.25.1' 12:06:20 fatal: bad object 66200e8eedfc470904d6b329e562ec5b45423d6a [Pipeline] withEnv [Pipeline] { [Pipeline] withEnv [Pipeline] { [Pipeline] stage [Pipeline] { (Prep) [Pipeline] script [Pipeline] { [Pipeline] sh 12:06:21 + sudo curl -o /etc/docker/seccomp.json https://raw.githubusercontent.com/moby/moby/master/profiles/seccomp/default.json 12:06:21 % Total % Received % Xferd Average Speed Time Time Time Current 12:06:21 Dload Upload Total Spent Left Speed 12:06:21 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 12751 100 12751 0 0 106k 0 --:--:-- --:--:-- --:--:-- 106k [Pipeline] sh 12:06:22 + sudo sed -i s/"defaultAction": "SCMP_ACT_ERRNO"/"defaultAction": "SCMP_ACT_TRACE"/g /etc/docker/seccomp.json [Pipeline] sh 12:06:22 + sudo jq . += {"seccomp-profile": "/etc/docker/seccomp.json"} /etc/docker/daemon.json 12:06:22 + sudo tee /etc/docker/daemon.new 12:06:22 { 12:06:22 "registry-mirrors": [ 12:06:22 "https://nexus3.edgexfoundry.org:10001" 12:06:22 ], 12:06:22 "bip": "10.250.0.254/24", 12:06:22 "hosts": [ 12:06:22 "tcp://0.0.0.0:5555", 12:06:22 "unix:///var/run/docker.sock" 12:06:22 ], 12:06:22 "mtu": 1458, 12:06:22 "selinux-enabled": true, 12:06:22 "seccomp-profile": "/etc/docker/seccomp.json" 12:06:22 } [Pipeline] sh 12:06:22 + sudo mv /etc/docker/daemon.new /etc/docker/daemon.json [Pipeline] sh 12:06:23 + sudo service docker restart [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 12:06:41 provisioning config files... 12:06:41 copy managed file [device-rest-go-settings] to file:/w/workspace/device-rest-go/1@tmp/config12018691833855576292tmp [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 12:06:42 ---> docker-login.sh 12:06:42 nexus3.edgexfoundry.org:10001 12:06:42 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:06:42 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:06:42 Configure a credential helper to remove this warning. See 12:06:42 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:06:42 12:06:42 Login Succeeded 12:06:42 nexus3.edgexfoundry.org:10002 12:06:42 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:06:43 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:06:43 Configure a credential helper to remove this warning. See 12:06:43 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:06:43 12:06:43 Login Succeeded 12:06:43 nexus3.edgexfoundry.org:10003 12:06:43 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:06:43 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:06:43 Configure a credential helper to remove this warning. See 12:06:43 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:06:43 12:06:43 Login Succeeded 12:06:43 nexus3.edgexfoundry.org:10004 12:06:44 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:06:44 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:06:44 Configure a credential helper to remove this warning. See 12:06:44 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:06:44 12:06:44 Login Succeeded 12:06:44 docker.io 12:06:44 WARNING! Using --password via the CLI is insecure. Use --password-stdin. 12:06:44 WARNING! Your password will be stored unencrypted in /home/jenkins/.docker/config.json. 12:06:44 Configure a credential helper to remove this warning. See 12:06:44 https://docs.docker.com/engine/reference/commandline/login/#credentials-store 12:06:44 12:06:44 Login Succeeded 12:06:44 ---> docker-login.sh ends [Pipeline] } 12:06:44 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] } [Pipeline] // withEnv [Pipeline] unstash [Pipeline] echo 12:06:45 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 12:06:45 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] echo 12:06:45 ========================================================= 12:06:45 [edgeXBuildGoApp] Building Code With image [nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine] 12:06:45 ========================================================= [Pipeline] fileExists [Pipeline] fileExists [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 12:06:45 + docker build -t ci-base-image-arm64 -f Dockerfile --build-arg BASE=nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine --build-arg MAKE=echo noop --target=builder . 12:06:45 Sending build context to Docker daemon 138.2kB 12:06:45 Step 1/12 : ARG BASE=golang:1.20-alpine3.17 12:06:45 Step 2/12 : FROM ${BASE} AS builder 12:06:46 1.20-alpine: Pulling from edgex-devops/edgex-golang-base-arm64 12:06:46 af6eaf76a39c: Pulling fs layer 12:06:46 55522c791124: Pulling fs layer 12:06:46 ce5c4a1c91eb: Pulling fs layer 12:06:46 169dfbe0d373: Pulling fs layer 12:06:46 e1ff8fa3b103: Pulling fs layer 12:06:46 52ebb69f0ebf: Pulling fs layer 12:06:46 5abe8eddf0d5: Pulling fs layer 12:06:46 e1ff8fa3b103: Waiting 12:06:46 52ebb69f0ebf: Waiting 12:06:46 5abe8eddf0d5: Waiting 12:06:46 169dfbe0d373: Waiting 12:06:46 55522c791124: Download complete 12:06:46 169dfbe0d373: Verifying Checksum 12:06:46 169dfbe0d373: Download complete 12:06:46 e1ff8fa3b103: Verifying Checksum 12:06:46 e1ff8fa3b103: Download complete 12:06:46 af6eaf76a39c: Verifying Checksum 12:06:46 af6eaf76a39c: Download complete 12:06:47 af6eaf76a39c: Pull complete 12:06:47 5abe8eddf0d5: Verifying Checksum 12:06:47 5abe8eddf0d5: Download complete 12:06:47 55522c791124: Pull complete 12:06:49 52ebb69f0ebf: Verifying Checksum 12:06:49 52ebb69f0ebf: Download complete 12:06:49 ce5c4a1c91eb: Verifying Checksum 12:06:59 ce5c4a1c91eb: Pull complete 12:06:59 169dfbe0d373: Pull complete 12:06:59 e1ff8fa3b103: Pull complete 12:07:06 52ebb69f0ebf: Pull complete 12:07:07 5abe8eddf0d5: Pull complete 12:07:07 Digest: sha256:978cc1420e451f27bd88fdeece3ad01a9109ec773b62f165dfc696fd516b3d8f 12:07:07 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-devops/edgex-golang-base-arm64:1.20-alpine 12:07:07 ---> 6cb57ee374ae 12:07:07 Step 3/12 : ARG ADD_BUILD_TAGS="" 12:07:09 ---> Running in dc40ba133074 12:07:10 Removing intermediate container dc40ba133074 12:07:10 ---> 97193a81f845 12:07:10 Step 4/12 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 12:07:10 ---> Running in 3fc0114eecf3 12:07:10 Removing intermediate container 3fc0114eecf3 12:07:10 ---> d6a7bd27ca80 12:07:10 Step 5/12 : ARG ALPINE_PKG_BASE="make git openssh-client" 12:07:10 ---> Running in fa2e1ef3611f 12:07:10 Removing intermediate container fa2e1ef3611f 12:07:10 ---> 0ab01d36f104 12:07:10 Step 6/12 : ARG ALPINE_PKG_EXTRA="" 12:07:10 ---> Running in b507dd8d50ce 12:07:11 Removing intermediate container b507dd8d50ce 12:07:11 ---> e6d2237803d4 12:07:11 Step 7/12 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 12:07:11 ---> Running in a717e54d323b 12:07:12 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 12:07:13 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 12:07:14 (1/4) Installing openssh-keygen (9.1_p1-r2) 12:07:14 (2/4) Installing libedit (20221030.3.1-r0) 12:07:14 (3/4) Installing openssh-client-common (9.1_p1-r2) 12:07:14 (4/4) Installing openssh-client-default (9.1_p1-r2) 12:07:14 Executing busybox-1.35.0-r29.trigger 12:07:14 OK: 268 MiB in 57 packages 12:07:15 Removing intermediate container a717e54d323b 12:07:15 ---> 714adff639c7 12:07:15 Step 8/12 : WORKDIR /device-rest-go 12:07:15 ---> Running in fe5b836d9875 12:07:16 Removing intermediate container fe5b836d9875 12:07:16 ---> dc17d3edefe4 12:07:16 Step 9/12 : COPY go.mod vendor* ./ 12:07:16 ---> 2b823a7c3e27 12:07:16 Step 10/12 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 12:07:16 ---> Running in 5ce4e631b996 12:08:38 Removing intermediate container 5ce4e631b996 12:08:38 ---> 66a17b426a2d 12:08:38 Step 11/12 : COPY . . 12:08:38 ---> 59cd759045f4 12:08:38 Step 12/12 : RUN $MAKE 12:08:38 ---> Running in fff997020a49 12:08:38 noop 12:08:38 Removing intermediate container fff997020a49 12:08:38 ---> ba7d4ff302c1 12:08:38 Successfully built ba7d4ff302c1 12:08:38 Successfully tagged ci-base-image-arm64:latest [Pipeline] } [Pipeline] // withEnv [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 12:08:39 + docker inspect -f . ci-base-image-arm64 12:08:39 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 12:08:39 prd-ubuntu20.04-docker-arm64-4c-16g-4838 does not seem to be running inside a container 12:08:39 $ 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 12:08:40 $ docker top c03be8c4e35b896d4f27b32d9a3b446bd097d12f793d7c82d35ea00d21f53ef2 -eo pid,comm [Pipeline] { [Pipeline] sh 12:08:41 + go version 12:08:41 go version go1.20.2 linux/arm64 [Pipeline] } 12:08:41 $ docker stop --time=1 c03be8c4e35b896d4f27b32d9a3b446bd097d12f793d7c82d35ea00d21f53ef2 12:08:43 $ docker rm -f --volumes c03be8c4e35b896d4f27b32d9a3b446bd097d12f793d7c82d35ea00d21f53ef2 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Test) [Pipeline] script [Pipeline] { [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 12:08:44 + docker inspect -f . ci-base-image-arm64 12:08:44 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 12:08:44 prd-ubuntu20.04-docker-arm64-4c-16g-4838 does not seem to be running inside a container 12:08:44 $ docker run -t -d -u 1001:1001 -u 0:0 --privileged -v /var/run/docker.sock:/var/run/docker.sock -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 12:08:46 $ docker top 6319ffe944c886b6f3a36d81362b4c3e08bb0ad42084b20b9cdd118f042169a5 -eo pid,comm [Pipeline] { [Pipeline] sh 12:08:46 + git config --global --add safe.directory /w/workspace/device-rest-go/1 [Pipeline] fileExists [Pipeline] sh 12:08:47 + make test 12:08:47 go test ./... -coverprofile=coverage.out ./... 12:09:26 ? github.com/edgexfoundry/device-rest-go [no test files] 12:11:33 ? github.com/edgexfoundry/device-rest-go/cmd [no test files] 12:11:33 ok github.com/edgexfoundry/device-rest-go/driver 0.060s coverage: 33.0% of statements 12:11:33 WARNING: Linting skipped (not on x86_64 or linter not installed) 12:11:33 go vet ./... 12:11:55 gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/") 12:11:55 [ "`gofmt -l $(find . -type f -name '*.go'| grep -v "/vendor/")`" = "" ] 12:11:55 ./bin/test-attribution-txt.sh [Pipeline] echo 12:11:55 [edgeX.isLTS] Checking if [main] matches against LTS streams [[^jakarta$, ^lts-test$]] [Pipeline] } 12:11:55 $ docker stop --time=1 6319ffe944c886b6f3a36d81362b4c3e08bb0ad42084b20b9cdd118f042169a5 12:11:57 $ docker rm -f --volumes 6319ffe944c886b6f3a36d81362b4c3e08bb0ad42084b20b9cdd118f042169a5 [Pipeline] // withDockerContainer [Pipeline] sh 12:11:58 + sudo chown -R jenkins:jenkins . [Pipeline] stash 12:11:58 Warning: overwriting stash ‘coverage-report’ 12:11:59 Stashed 1 file(s) [Pipeline] } [Pipeline] // script [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) [Pipeline] script [Pipeline] { [Pipeline] sh 12:11:59 + sudo chown -R jenkins:jenkins . [Pipeline] sh 12:12:00 + ls -al . 12:12:00 total 180 12:12:00 drwxrwxr-x 8 jenkins jenkins 4096 Mar 21 12:08 . 12:12:00 drwxrwxr-x 4 jenkins jenkins 4096 Mar 21 12:06 .. 12:12:00 -rw-rw-r-- 1 jenkins jenkins 151 Mar 21 12:06 .dockerignore 12:12:00 drwxrwxr-x 8 jenkins jenkins 4096 Mar 21 12:06 .git 12:12:00 drwxrwxr-x 3 jenkins jenkins 4096 Mar 21 12:06 .github 12:12:00 -rw-rw-r-- 1 jenkins jenkins 329 Mar 21 12:06 .gitignore 12:12:00 -rw-rw-r-- 1 jenkins jenkins 41 Mar 21 12:06 .golangci.yml 12:12:00 -rw-rw-r-- 1 jenkins jenkins 9321 Mar 21 12:06 Attribution.txt 12:12:00 -rw-rw-r-- 1 jenkins jenkins 13085 Mar 21 12:06 CHANGELOG.md 12:12:00 -rw-rw-r-- 1 jenkins jenkins 1578 Mar 21 12:06 Dockerfile 12:12:00 -rw-rw-r-- 1 jenkins jenkins 677 Mar 21 12:06 GOVERNANCE.md 12:12:00 -rw-rw-r-- 1 jenkins jenkins 680 Mar 21 12:06 Jenkinsfile 12:12:00 -rw-rw-r-- 1 jenkins jenkins 11340 Mar 21 12:06 LICENSE 12:12:00 -rw-rw-r-- 1 jenkins jenkins 1779 Mar 21 12:06 Makefile 12:12:00 -rw-rw-r-- 1 jenkins jenkins 620 Mar 21 12:06 OWNERS.md 12:12:00 -rw-rw-r-- 1 jenkins jenkins 15447 Mar 21 12:06 README.md 12:12:00 -rw-rw-r-- 1 jenkins jenkins 5 Mar 21 12:02 VERSION 12:12:00 drwxrwxr-x 2 jenkins jenkins 4096 Mar 21 12:06 bin 12:12:00 drwxrwxr-x 3 jenkins jenkins 4096 Mar 21 12:06 cmd 12:12:00 -rw-r--r-- 1 jenkins jenkins 14200 Mar 21 12:11 coverage.out 12:12:00 drwxrwxr-x 2 jenkins jenkins 4096 Mar 21 12:06 driver 12:12:00 -rw-rw-r-- 1 jenkins jenkins 3446 Mar 21 12:06 go.mod 12:12:00 -rw-rw-r-- 1 jenkins jenkins 31299 Mar 21 12:06 go.sum 12:12:00 drwxrwxr-x 4 jenkins jenkins 4096 Mar 21 12:06 snap 12:12:00 -rw-rw-r-- 1 jenkins jenkins 713 Mar 21 12:06 version.go [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 12:12:00 + 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=b4eaadda57dc0dcf005d7c598ed54ebfb7ce09bb --label arch=arm64 --label version=0.0.0 . 12:12:00 Sending build context to Docker daemon 153.1kB 12:12:01 Step 1/25 : ARG BASE=golang:1.20-alpine3.17 12:12:01 Step 2/25 : FROM ${BASE} AS builder 12:12:01 ---> ba7d4ff302c1 12:12:01 Step 3/25 : ARG ADD_BUILD_TAGS="" 12:12:01 ---> Running in d0da72e348ba 12:12:01 Removing intermediate container d0da72e348ba 12:12:01 ---> 6765baeb8757 12:12:01 Step 4/25 : ARG MAKE="make -e ADD_BUILD_TAGS=$ADD_BUILD_TAGS build" 12:12:01 ---> Running in b6ca05e8af82 12:12:01 Removing intermediate container b6ca05e8af82 12:12:01 ---> fc6aed66794c 12:12:01 Step 5/25 : ARG ALPINE_PKG_BASE="make git openssh-client" 12:12:01 ---> Running in 3826b4061137 12:12:02 Removing intermediate container 3826b4061137 12:12:02 ---> 080fd9895a5d 12:12:02 Step 6/25 : ARG ALPINE_PKG_EXTRA="" 12:12:02 ---> Running in b1a632c6acc9 12:12:02 Removing intermediate container b1a632c6acc9 12:12:02 ---> 74895840e8da 12:12:02 Step 7/25 : RUN apk add --update --no-cache ${ALPINE_PKG_BASE} ${ALPINE_PKG_EXTRA} 12:12:02 ---> Running in 49579a51536b 12:12:04 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 12:12:04 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 12:12:05 OK: 268 MiB in 57 packages 12:12:08 Removing intermediate container 49579a51536b 12:12:08 ---> fb30f1cfa770 12:12:08 Step 8/25 : WORKDIR /device-rest-go 12:12:08 ---> Running in cd1058d3b59f 12:12:08 Removing intermediate container cd1058d3b59f 12:12:08 ---> 0c642570a144 12:12:08 Step 9/25 : COPY go.mod vendor* ./ 12:12:09 ---> 2c654e8a7d1d 12:12:09 Step 10/25 : RUN [ ! -d "vendor" ] && go mod download all || echo "skipping..." 12:12:09 ---> Running in a7fb25e32b80 12:12:12 Removing intermediate container a7fb25e32b80 12:12:12 ---> 11583f150eae 12:12:12 Step 11/25 : COPY . . 12:12:12 ---> 4fa680928c79 12:12:12 Step 12/25 : RUN $MAKE 12:12:12 ---> Running in 1cb5c7678887 12:12:14 CGO_ENABLED=0 go build -tags "" -ldflags "-X github.com/edgexfoundry/device-rest-go.Version=0.0.0" -trimpath -mod=readonly -o cmd/device-rest ./cmd 12:14:36 Removing intermediate container 1cb5c7678887 12:14:36 ---> b9b82fab7c08 12:14:36 Step 13/25 : FROM alpine:3.17 12:14:36 3.17: Pulling from library/alpine 12:14:36 af6eaf76a39c: Already exists 12:14:36 Digest: sha256:ff6bdca1701f3a8a67e328815ff2346b0e4067d32ec36b7992c1fdc001dc8517 12:14:36 Status: Downloaded newer image for alpine:3.17 12:14:36 ---> d74e625d9115 12:14:36 Step 14/25 : LABEL license='SPDX-License-Identifier: Apache-2.0' copyright='Copyright (c) 2022: Intel' 12:14:36 ---> Running in f5a162eb9026 12:14:36 Removing intermediate container f5a162eb9026 12:14:36 ---> 3fdcd428ddc1 12:14:36 Step 15/25 : LABEL Name=device-rest-go Version=${VERSION} 12:14:36 ---> Running in 8adda8d49363 12:14:36 Removing intermediate container 8adda8d49363 12:14:36 ---> 9a5225522ec3 12:14:36 Step 16/25 : RUN apk add --update --no-cache dumb-init 12:14:36 ---> Running in 18b28b4a7f80 12:14:36 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/aarch64/APKINDEX.tar.gz 12:14:36 fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/aarch64/APKINDEX.tar.gz 12:14:36 (1/1) Installing dumb-init (1.2.5-r2) 12:14:36 Executing busybox-1.35.0-r29.trigger 12:14:36 OK: 8 MiB in 16 packages 12:14:36 Removing intermediate container 18b28b4a7f80 12:14:36 ---> 614da38e214d 12:14:36 Step 17/25 : COPY --from=builder /device-rest-go/cmd / 12:14:36 ---> 13bd1ecb6228 12:14:36 Step 18/25 : COPY --from=builder /device-rest-go/LICENSE / 12:14:36 ---> de2c78dd356e 12:14:36 Step 19/25 : COPY --from=builder /device-rest-go/Attribution.txt / 12:14:36 ---> 09a312a4c17a 12:14:36 Step 20/25 : EXPOSE 59986 12:14:36 ---> Running in 7e4ec88aa84c 12:14:36 Removing intermediate container 7e4ec88aa84c 12:14:36 ---> 8c37155c2ad3 12:14:36 Step 21/25 : ENTRYPOINT ["/device-rest"] 12:14:36 ---> Running in 3ada35663cf4 12:14:36 Removing intermediate container 3ada35663cf4 12:14:36 ---> 73cb89569e64 12:14:36 Step 22/25 : CMD ["--cp=consul://edgex-core-consul:8500", "--registry"] 12:14:36 ---> Running in fbc857cc4754 12:14:36 Removing intermediate container fbc857cc4754 12:14:36 ---> 3a9774d9f793 12:14:36 Step 23/25 : LABEL arch=arm64 12:14:36 ---> Running in e42a272df663 12:14:36 Removing intermediate container e42a272df663 12:14:36 ---> 46492023dd58 12:14:36 Step 24/25 : LABEL git_sha=b4eaadda57dc0dcf005d7c598ed54ebfb7ce09bb 12:14:36 ---> Running in 0d401cd8ee84 12:14:36 Removing intermediate container 0d401cd8ee84 12:14:36 ---> 39a8b7164e7f 12:14:36 Step 25/25 : LABEL version=0.0.0 12:14:36 ---> Running in 65250719910e 12:14:36 Removing intermediate container 65250719910e 12:14:36 ---> 2525c0bf8f65 12:14:36 [Warning] One or more build-args [ARCH] were not consumed 12:14:36 Successfully built 2525c0bf8f65 12:14:36 Successfully tagged device-rest-arm64:latest [Pipeline] } [Pipeline] // withEnv [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] withEnv [Pipeline] { [Pipeline] sh 12:14:37 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 12:14:37 12:14:37 Error: No such object: nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 12:14:37 + docker pull nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 12:14:37 arm64: Pulling from edgex-lftools-log-publisher 12:14:37 8998bd30e6a1: Pulling fs layer 12:14:37 04944245beec: Pulling fs layer 12:14:37 699f458cf7ca: Pulling fs layer 12:14:37 765212b225bb: Pulling fs layer 12:14:37 f23df028b6ca: Pulling fs layer 12:14:37 d65c8cfc05b1: Pulling fs layer 12:14:37 2437ff75d9bd: Pulling fs layer 12:14:37 f23df028b6ca: Waiting 12:14:37 d65c8cfc05b1: Waiting 12:14:37 765212b225bb: Waiting 12:14:37 2437ff75d9bd: Waiting 12:14:37 04944245beec: Verifying Checksum 12:14:37 04944245beec: Download complete 12:14:37 765212b225bb: Verifying Checksum 12:14:37 765212b225bb: Download complete 12:14:37 f23df028b6ca: Verifying Checksum 12:14:37 f23df028b6ca: Download complete 12:14:37 d65c8cfc05b1: Verifying Checksum 12:14:37 d65c8cfc05b1: Download complete 12:14:37 699f458cf7ca: Verifying Checksum 12:14:37 699f458cf7ca: Download complete 12:14:38 8998bd30e6a1: Verifying Checksum 12:14:40 2437ff75d9bd: Download complete 12:14:42 8998bd30e6a1: Pull complete 12:14:42 04944245beec: Pull complete 12:14:43 699f458cf7ca: Pull complete 12:14:43 765212b225bb: Pull complete 12:14:44 f23df028b6ca: Pull complete 12:14:44 d65c8cfc05b1: Pull complete 12:14:59 2437ff75d9bd: Pull complete 12:14:59 Digest: sha256:08a7fcc486bb39f1d20d4dd6a72316e28301370873105f4106f8313defd495da 12:14:59 Status: Downloaded newer image for nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 12:14:59 nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:arm64 [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 12:15:00 prd-ubuntu20.04-docker-arm64-4c-16g-4838 does not seem to be running inside a container 12:15:00 $ 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 12:15:03 $ docker top 94f3ae649ee5c74593365baa2af767b9954bb1c7991123e9480824044a2ee2d9 -eo pid,comm [Pipeline] { [Pipeline] libraryResource [Pipeline] sh 12:15:03 ---> job-cost.sh 12:15:03 lf-activate-venv: SKIPPING 12:15:03 INFO: No Stack... 12:15:04 INFO: Retrieving Pricing Info for: v3-standard-4 12:15:05 INFO: Archiving Costs [Pipeline] sh 12:15:05 + cat /w/workspace/device-rest-go/1/archives/cost.csv 12:15:05 + cut -d, -f6 [Pipeline] lock 12:15:05 Trying to acquire lock on [jenkins-edgexfoundry-device-rest-go-PR-275-1-stack-cost] 12:15:05 Resource [jenkins-edgexfoundry-device-rest-go-PR-275-1-stack-cost] did not exist. Created. 12:15:05 Lock acquired on [jenkins-edgexfoundry-device-rest-go-PR-275-1-stack-cost] [Pipeline] { [Pipeline] unstash [Pipeline] sh 12:15:06 /w/workspace/device-rest-go/1@tmp/durable-4e3db9f6/script.sh: 1: Syntax error: Unterminated quoted string [Pipeline] sh 12:15:07 + echo total: 0.10999999940395355 [Pipeline] stash 12:15:07 Warning: overwriting stash ‘stack-cost’ 12:15:07 Stashed 1 file(s) [Pipeline] } 12:15:07 Lock released on resource [jenkins-edgexfoundry-device-rest-go-PR-275-1-stack-cost] [Pipeline] // lock [Pipeline] } 12:15:07 $ docker stop --time=1 94f3ae649ee5c74593365baa2af767b9954bb1c7991123e9480824044a2ee2d9 12:15:09 $ docker rm -f --volumes 94f3ae649ee5c74593365baa2af767b9954bb1c7991123e9480824044a2ee2d9 [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 12:15:11 provisioning config files... 12:15:11 copy managed file [device-rest-go-codecov-token] to file:/w/workspace/gexfoundry_device-rest-go_PR-275@tmp/config14867330937011422509tmp [Pipeline] { [Pipeline] sh 12:15:11 + set +x 12:15:11 + curl -s https://codecov.io/bash 12:15:11 + bash -s -- 12:15:11 12:15:11 _____ _ 12:15:11 / ____| | | 12:15:11 | | ___ __| | ___ ___ _____ __ 12:15:11 | | / _ \ / _` |/ _ \/ __/ _ \ \ / / 12:15:11 | |___| (_) | (_| | __/ (_| (_) \ V / 12:15:11 \_____\___/ \__,_|\___|\___\___/ \_/ 12:15:11 Bash-1.0.6 12:15:11 12:15:11 12:15:11 ==> git version 2.25.1 found 12:15:11 ==> 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 12:15:11 Release-Date: 2020-01-08 12:15:11 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 12:15:11 Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets 12:15:11 ==> Jenkins CI detected. 12:15:11 current dir:  /w/workspace/gexfoundry_device-rest-go_PR-275 12:15:11 project root: . 12:15:11 --> token set from env 12:15:11 Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml 12:15:11 ==> Running gcov in . (disable via -X gcov) 12:15:11 ==> Python coveragepy not found 12:15:11 ==> Searching for coverage reports in: 12:15:11 + . 12:15:11 -> Found 1 reports 12:15:11 ==> Detecting git/mercurial file structure 12:15:11 ==> Reading reports 12:15:11 + ./coverage.out bytes=14200 12:15:11 ==> Appending adjustments 12:15:11 https://docs.codecov.io/docs/fixing-reports 12:15:11 + Found adjustments 12:15:11 ==> Gzipping contents 12:15:11 4.0K /tmp/codecov.cqKHLV.gz 12:15:11 ==> Uploading reports 12:15:11 url: https://codecov.io 12:15:11 query: branch=PR-275&commit=b4eaadda57dc0dcf005d7c598ed54ebfb7ce09bb&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-275%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=275&job=&cmd_args= 12:15:11 -> Pinging Codecov 12:15:11 https://codecov.io/upload/v4?package=bash-1.0.6&token=&package=bash-1.0.6&token=c51feb23-73ac-4f49-b3d1-d26df23137db&branch=PR-275&commit=b4eaadda57dc0dcf005d7c598ed54ebfb7ce09bb&build=1&build_url=https%3A%2F%2Fjenkins.edgexfoundry.org%2Fjob%2Fedgexfoundry%2Fjob%2Fdevice-rest-go%2Fjob%2FPR-275%2F1%2F&name=&tag=&slug=edgexfoundry%2Fdevice-rest-go&service=jenkins&flags=&pr=275&job=&cmd_args= 12:15:11 -> Uploading to 12:15:11 https://storage.googleapis.com/codecov/v4/raw/2023-03-21/4E5D53B4F1F92C436F7061BF334D961C/b4eaadda57dc0dcf005d7c598ed54ebfb7ce09bb/06213f49-f6ec-427a-ae48-116c371ec0b1.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20230321%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20230321T121511Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=2e214bbf861993317aa3a4b92b635568d0b2eb70f9eb94642f1c5ff2527bc6b8 12:15:12 % Total % Received % Xferd Average Speed Time Time Time Current 12:15:12 Dload Upload Total Spent Left Speed 12:15:12 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 2465 0 0 100 2465 0 8679 --:--:-- --:--:-- --:--:-- 8679 12:15:12 -> Reports have been successfully queued for processing at https://app.codecov.io/github/edgexfoundry/device-rest-go/commit/b4eaadda57dc0dcf005d7c598ed54ebfb7ce09bb [Pipeline] } 12:15:12 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 12:15:14 + [ -d /w/workspace/gexfoundry_device-rest-go_PR-275/archives ] 12:15:14 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-275/archives 12:15:14 total 16 12:15:14 drwxr-xr-x 3 root root 4096 Mar 21 12:04 . 12:15:14 drwxrwxr-x 10 jenkins jenkins 4096 Mar 21 12:04 .. 12:15:14 drwxr-xr-x 2 root root 4096 Mar 21 12:04 cost 12:15:14 -rw-r--r-- 1 root root 86 Mar 21 12:04 cost.csv 12:15:14 + sudo chown -R jenkins:jenkins /w/workspace/gexfoundry_device-rest-go_PR-275/archives 12:15:14 + ls -al /w/workspace/gexfoundry_device-rest-go_PR-275/archives 12:15:14 total 16 12:15:14 drwxr-xr-x 3 jenkins jenkins 4096 Mar 21 12:04 . 12:15:14 drwxrwxr-x 10 jenkins jenkins 4096 Mar 21 12:04 .. 12:15:14 drwxr-xr-x 2 jenkins jenkins 4096 Mar 21 12:04 cost 12:15:14 -rw-r--r-- 1 jenkins jenkins 86 Mar 21 12:04 cost.csv [Pipeline] libraryResource [Pipeline] sh 12:15:14 ---> sysstat.sh [Pipeline] libraryResource [Pipeline] sh 12:15:15 ---> package-listing.sh 12:15:15 ++ facter osfamily 12:15:15 ++ tr '[:upper:]' '[:lower:]' 12:15:15 + OS_FAMILY=debian 12:15:15 + workspace=/w/workspace/gexfoundry_device-rest-go_PR-275 12:15:15 + START_PACKAGES=/tmp/packages_start.txt 12:15:15 + END_PACKAGES=/tmp/packages_end.txt 12:15:15 + DIFF_PACKAGES=/tmp/packages_diff.txt 12:15:15 + PACKAGES=/tmp/packages_start.txt 12:15:15 + '[' /w/workspace/gexfoundry_device-rest-go_PR-275 ']' 12:15:15 + PACKAGES=/tmp/packages_end.txt 12:15:15 + case "${OS_FAMILY}" in 12:15:15 + dpkg -l 12:15:15 + grep '^ii' 12:15:15 + '[' -f /tmp/packages_start.txt ']' 12:15:15 + '[' -f /tmp/packages_end.txt ']' 12:15:15 + diff /tmp/packages_start.txt /tmp/packages_end.txt 12:15:15 + '[' /w/workspace/gexfoundry_device-rest-go_PR-275 ']' 12:15:15 + mkdir -p /w/workspace/gexfoundry_device-rest-go_PR-275/archives/ 12:15:15 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/gexfoundry_device-rest-go_PR-275/archives/ [Pipeline] echo 12:15:15 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-275/facter-os:/facter-os -v /proc/uptime:/proc/uptime -v /run/cloud-init/result.json:/run/cloud-init/result.json] [Pipeline] sh 12:15:15 + facter operatingsystem [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh 12:15:16 + docker inspect -f . nexus3.edgexfoundry.org:10003/edgex-lftools-log-publisher:latest 12:15:16 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer 12:15:16 prd-ubuntu20.04-docker-8c-8g-4836 does not seem to be running inside a container 12:15:16 $ 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-275/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-275 -v /w/workspace/gexfoundry_device-rest-go_PR-275:/w/workspace/gexfoundry_device-rest-go_PR-275:rw,z -v /w/workspace/gexfoundry_device-rest-go_PR-275@tmp:/w/workspace/gexfoundry_device-rest-go_PR-275@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 12:15:16 $ docker top 11f8dea7e423cf9bc96a055946f52298b456353d05ad96572e5f713ee6452539 -eo pid,comm [Pipeline] { [Pipeline] sh 12:15:17 + touch /tmp/pre-build-complete [Pipeline] sh 12:15:17 + mkdir -p /var/log/sysstat [Pipeline] sh 12:15:18 + ls /var/log/sa-host 12:15:18 ls: cannot access '/var/log/sa-host': No such file or directory [Pipeline] withEnv [Pipeline] { [Pipeline] configFileProvider 12:15:18 provisioning config files... 12:15:18 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/gexfoundry_device-rest-go_PR-275@tmp/config14872314132337738251tmp [Pipeline] { [Pipeline] echo 12:15:18 Running shell/create-netrc.sh [Pipeline] libraryResource [Pipeline] sh 12:15:18 ---> create-netrc.sh [Pipeline] } 12:15:18 Deleting 1 temporary files [Pipeline] // configFileProvider [Pipeline] libraryResource [Pipeline] sh 12:15:18 ---> python-tools-install.sh [Pipeline] echo 12:15:18 Running shell/sudo-logs.sh [Pipeline] libraryResource [Pipeline] sh 12:15:19 ---> sudo-logs.sh 12:15:19 Archiving 'sudo' log.. [Pipeline] unstash [Pipeline] echo 12:15:19 Running shell/job-cost.sh [Pipeline] libraryResource [Pipeline] sh 12:15:19 ---> job-cost.sh 12:15:19 lf-activate-venv: SKIPPING 12:15:19 DEBUG: total: 0.2199999988079071 12:15:19 INFO: Retrieving Stack Cost... 12:15:20 INFO: Retrieving Pricing Info for: v3-standard-8 12:15:20 INFO: Archiving Costs [Pipeline] echo 12:15:20 Running shell/logs-deploy.sh [Pipeline] libraryResource [Pipeline] sh 12:15:20 ---> logs-deploy.sh 12:15:20 lf-activate-venv: SKIPPING 12:15:20 INFO: Nexus URL https://nexus.edgexfoundry.org path production/vex-yul-edgex-jenkins-1/edgexfoundry/device-rest-go/PR-275/1 12:15:20 INFO: archiving workspace using pattern(s): 12:15:21 Archives upload complete. 12:15:21 INFO: archiving logs to Nexus