Running with gitlab-runner 14.1.0 (8925d9a0)  on gitlab-runners-bigbang-gl-packages-privileged-gitlab-runneb7dvc L_wAsvdS section_start:1630099757:resolve_secrets Resolving secrets section_end:1630099757:resolve_secrets section_start:1630099757:prepare_executor Preparing the "kubernetes" executor Using Kubernetes namespace: gitlab-runners Using Kubernetes executor with image registry.dso.mil/platform-one/big-bang/pipeline-templates/pipeline-templates/k3d-builder:0.0.5 ... Using attach strategy to execute scripts... section_end:1630099757:prepare_executor section_start:1630099757:prepare_script Preparing environment Waiting for pod gitlab-runners/runner-lwasvds-project-4906-concurrent-159l4f to be running, status is Pending Running on runner-lwasvds-project-4906-concurrent-159l4f via gitlab-runners-bigbang-gl-packages-privileged-gitlab-runneb7dvc... section_end:1630099763:prepare_script section_start:1630099763:get_sources Getting source from Git repository Fetching changes with git depth set to 50... Initialized empty Git repository in /builds/L_wAsvdS/1/platform-one/big-bang/apps/developer-tools/nexus/.git/ Created fresh repository. Checking out 701aa5e6 as refs/merge-requests/17/head... Skipping Git submodules setup section_end:1630099764:get_sources section_start:1630099764:step_script Executing "step_script" stage of the job script $ echo -e "\e[0Ksection_start:`date +%s`:cluster_setup[collapsed=true]\r\e[0KCluster Setup" section_start:1630099764:cluster_setup[collapsed=true] Cluster Setup $ if [ -z ${PIPELINE_REPO_BRANCH} ]; then # collapsed multi-line command $ git clone -b ${PIPELINE_REPO_BRANCH} ${PIPELINE_REPO} ${PIPELINE_REPO_DESTINATION} Cloning into '../pipeline-repo'... $ source ${WAIT_PATH} $ i=0; while [ "$i" -lt 12 ]; do docker info &>/dev/null && break; sleep 5; i=$(( i + 1 )) ; done $ docker network create ${CI_JOB_ID} --driver=bridge -o "com.docker.network.driver.mtu"="1450" ed96eeeb50eff0273db5d7127c25eac17719cb81af4298ed4e9d73ac5e37bf07 $ k3d cluster create ${CI_JOB_ID} --config ${K3D_CONFIG_PATH} --network ${CI_JOB_ID} INFO[0000] Using config file ../pipeline-repo/jobs/k3d-ci/config.yaml INFO[0000] Prep: Network INFO[0000] Network with name '5995743' already exists with ID 'ed96eeeb50eff0273db5d7127c25eac17719cb81af4298ed4e9d73ac5e37bf07' INFO[0000] Created volume 'k3d-5995743-images' INFO[0001] Creating node 'k3d-5995743-server-0' INFO[0002] Pulling image 'docker.io/rancher/k3s:v1.20.4-k3s1' INFO[0004] Creating LoadBalancer 'k3d-5995743-serverlb' INFO[0005] Pulling image 'docker.io/rancher/k3d-proxy:v4.3.0' INFO[0007] Starting cluster '5995743' INFO[0007] Starting servers... INFO[0007] Starting Node 'k3d-5995743-server-0' INFO[0012] Starting agents... INFO[0012] Starting helpers... INFO[0012] Starting Node 'k3d-5995743-serverlb' INFO[0012] (Optional) Trying to get IP of the docker host and inject it into the cluster as 'host.k3d.internal' for easy access INFO[0016] Successfully added host record to /etc/hosts in 2/2 nodes and to the CoreDNS ConfigMap INFO[0016] Cluster '5995743' created successfully! INFO[0016] --kubeconfig-update-default=false --> sets --kubeconfig-switch-context=false INFO[0016] You can now use it like this: kubectl config use-context k3d-5995743 kubectl cluster-info $ until kubectl get deployment coredns -n kube-system -o go-template='{{.status.availableReplicas}}' | grep -v -e ''; do sleep 1s; done 1 $ if [ ! -z ${PROJECT_NAME} ]; then # collapsed multi-line command namespace/nexus created secret/private-registry created secret/private-registry-mil created $ echo -e "\e[0Ksection_end:`date +%s`:cluster_setup\r\e[0K" section_end:1630099800:cluster_setup  $ echo "Installing ${CI_PROJECT_NAME} from ${CI_DEFAULT_BRANCH}" Installing nexus from main $ echo -e "\e[0Ksection_start:`date +%s`:package_checkout1[collapsed=true]\r\e[0KPackage Checkout" section_start:1630099800:package_checkout1[collapsed=true] Package Checkout $ git fetch && git checkout ${CI_DEFAULT_BRANCH} From https://repo1.dso.mil/platform-one/big-bang/apps/developer-tools/nexus * [new branch] 700-update-nexus-to-3-33-1-01 -> origin/700-update-nexus-to-3-33-1-01 * [new branch] add-external-db -> origin/add-external-db * [new branch] add-resource-limit -> origin/add-resource-limit * [new branch] bigbang -> origin/bigbang * [new branch] bigbang-standard -> origin/bigbang-standard * [new branch] job_image_spec -> origin/job_image_spec * [new branch] latest_tag_removal -> origin/latest_tag_removal * [new branch] main -> origin/main * [new branch] nexus-external-db -> origin/nexus-external-db * [new branch] pbops-121 -> origin/pbops-121 * [new tag] 29.1.0-beta -> 29.1.0-beta Previous HEAD position was 701aa5e add in chart repo location to Changelog for future reference Switched to a new branch 'main' Branch 'main' set up to track remote branch 'main' from 'origin'. $ echo -e "\e[0Ksection_end:`date +%s`:package_checkout1\r\e[0K" section_end:1630099800:package_checkout1  $ echo -e "\e[0Ksection_start:`date +%s`:dependency_up1[collapsed=true]\r\e[0KDependency Install and Wait" section_start:1630099800:dependency_up1[collapsed=true] Dependency Install and Wait $ if [ -f "tests/dependencies.yaml" ]; then # collapsed multi-line command $ if [ -f "tests/dependencies.yaml" ]; then # collapsed multi-line command $ echo -e "\e[0Ksection_end:`date +%s`:dependency_up1\r\e[0K" section_end:1630099800:dependency_up1  $ if [ ! -z ${PROJECT_NAME} ]; then # collapsed multi-line command Helm installing nexus/chart into nexus namespace using nexus/tests/test-values.yaml for values Release "nexus" does not exist. Installing it now. NAME: nexus LAST DEPLOYED: Fri Aug 27 21:30:00 2021 NAMESPACE: nexus STATUS: deployed REVISION: 1 NOTES: 1. Get the application URL by running these commands: export POD_NAME=$(kubectl get pods --namespace nexus -l "app.kubernetes.io/name=nexus-repository-manager,app.kubernetes.io/instance=nexus" -o jsonpath="{.items[0].metadata.name}") echo "Visit http://127.0.0.1 to use your application" kubectl --namespace nexus port-forward $POD_NAME 8081:80 $ sleep 10 # collapsed multi-line command $ if [ -d "chart/templates/tests" ]; then # collapsed multi-line command NAME: nexus LAST DEPLOYED: Fri Aug 27 21:30:00 2021 NAMESPACE: nexus STATUS: deployed REVISION: 1 TEST SUITE: nexus-repository-manager-cypress-sa Last Started: Fri Aug 27 21:31:01 2021 Last Completed: Fri Aug 27 21:31:01 2021 Phase: Succeeded TEST SUITE: nexus-repository-manager-cypress-config Last Started: Fri Aug 27 21:31:01 2021 Last Completed: Fri Aug 27 21:31:01 2021 Phase: Succeeded TEST SUITE: nexus-repository-manager-cypress-role Last Started: Fri Aug 27 21:31:01 2021 Last Completed: Fri Aug 27 21:31:01 2021 Phase: Succeeded TEST SUITE: nexus-repository-manager-cypress-rolebinding Last Started: Fri Aug 27 21:31:01 2021 Last Completed: Fri Aug 27 21:31:01 2021 Phase: Succeeded TEST SUITE: nexus-repository-manager-cypress-test Last Started: Fri Aug 27 21:31:01 2021 Last Completed: Fri Aug 27 21:31:42 2021 Phase: Succeeded NOTES: 1. Get the application URL by running these commands: export POD_NAME=$(kubectl get pods --namespace nexus -l "app.kubernetes.io/name=nexus-repository-manager,app.kubernetes.io/instance=nexus" -o jsonpath="{.items[0].metadata.name}") echo "Visit http://127.0.0.1 to use your application" kubectl --namespace nexus port-forward $POD_NAME 8081:80 ***** Start Helm Test Logs ***** ====================================================================================================  (Run Starting)  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐  │ Cypress: 5.0.0 │  │ Browser: Chrome 83 (headless) │  │ Specs: 1 found (nexus-healthspec.js) │  └────────────────────────────────────────────────────────────────────────────────────────────────┘ ──────────────────────────────────────────────────────────────────────────────────────────────────── Running: nexus-healthspec.js (1 of 1) Browserslist: caniuse-lite is outdated. Please run: npx browserslist@latest --update-db   Basic Nexus  ✓ Visit the Nexus sign in page (4315ms)   1 passing (5s)  (Results)  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐  │ Tests: 1 │  │ Passing: 1 │  │ Failing: 0 │  │ Pending: 0 │  │ Skipped: 0 │  │ Screenshots: 0 │  │ Video: true │  │ Duration: 5 seconds │  │ Spec Ran: nexus-healthspec.js │  └────────────────────────────────────────────────────────────────────────────────────────────────┘  (Video)   - Started processing: Compressing to 32 CRF   - Finished processing: /test/cypress/videos/nexus-healthspec.js.mp4 (0 seconds) ====================================================================================================  (Run Finished)   Spec Tests Passing Failing Pending Skipped    ┌────────────────────────────────────────────────────────────────────────────────────────────────┐  │ ✔ nexus-healthspec.js 00:05 1 1 - - - │  └────────────────────────────────────────────────────────────────────────────────────────────────┘   ✔ All specs passed! 00:05 1 1 - - -   tar: Removing leading `/' from member names configmap/cypress-videos created ***** End Helm Test Logs ***** $ echo "Upgrading ${CI_PROJECT_NAME} to ${CI_MERGE_REQUEST_SOURCE_BRANCH_NAME}" Upgrading nexus to 700-update-nexus-to-3-33-1-01 $ echo -e "\e[0Ksection_start:`date +%s`:package_checkout2[collapsed=true]\r\e[0KPackage Upgrade Checkout" section_start:1630099903:package_checkout2[collapsed=true] Package Upgrade Checkout $ git reset --hard && git clean -fd HEAD is now at e30db56 Merge branch 'add-limits-resources' into 'main' Removing cypress-artifacts/ Removing cypress-videos.tar.gz Removing cypress-videos.tar.gz.b64 $ git checkout ${CI_MERGE_REQUEST_SOURCE_BRANCH_NAME} Switched to a new branch '700-update-nexus-to-3-33-1-01' Branch '700-update-nexus-to-3-33-1-01' set up to track remote branch '700-update-nexus-to-3-33-1-01' from 'origin'. $ echo -e "\e[0Ksection_end:`date +%s`:package_checkout2\r\e[0K" section_end:1630099903:package_checkout2  $ echo -e "\e[0Ksection_start:`date +%s`:dependency_up2[collapsed=true]\r\e[0KDependency Upgrade and Wait" section_start:1630099903:dependency_up2[collapsed=true] Dependency Upgrade and Wait $ if [ -f "tests/dependencies.yaml" ]; then # collapsed multi-line command $ if [ -f "tests/dependencies.yaml" ]; then # collapsed multi-line command $ echo -e "\e[0Ksection_end:`date +%s`:dependency_up2\r\e[0K" section_end:1630099903:dependency_up2  $ if [ ! -z ${PROJECT_NAME} ]; then # collapsed multi-line command Helm installing nexus/chart into nexus namespace using nexus/tests/test-values.yaml for values Release "nexus" has been upgraded. Happy Helming! NAME: nexus LAST DEPLOYED: Fri Aug 27 21:31:43 2021 NAMESPACE: nexus STATUS: deployed REVISION: 2 NOTES: 1. Get the application URL by running these commands: export POD_NAME=$(kubectl get pods --namespace nexus -l "app.kubernetes.io/name=nexus-repository-manager,app.kubernetes.io/instance=nexus" -o jsonpath="{.items[0].metadata.name}") echo "Visit http://127.0.0.1 to use your application" kubectl --namespace nexus port-forward $POD_NAME 8081:80 $ sleep 10 # collapsed multi-line command $ if [ -d "chart/templates/tests" ]; then # collapsed multi-line command NAME: nexus LAST DEPLOYED: Fri Aug 27 21:31:43 2021 NAMESPACE: nexus STATUS: deployed REVISION: 2 TEST SUITE: nexus-repository-manager-cypress-sa Last Started: Fri Aug 27 21:32:44 2021 Last Completed: Fri Aug 27 21:32:44 2021 Phase: Succeeded TEST SUITE: nexus-repository-manager-cypress-config Last Started: Fri Aug 27 21:32:44 2021 Last Completed: Fri Aug 27 21:32:44 2021 Phase: Succeeded TEST SUITE: nexus-repository-manager-cypress-role Last Started: Fri Aug 27 21:32:44 2021 Last Completed: Fri Aug 27 21:32:44 2021 Phase: Succeeded TEST SUITE: nexus-repository-manager-cypress-rolebinding Last Started: Fri Aug 27 21:32:44 2021 Last Completed: Fri Aug 27 21:32:44 2021 Phase: Succeeded TEST SUITE: nexus-repository-manager-cypress-test Last Started: Fri Aug 27 21:32:44 2021 Last Completed: Fri Aug 27 21:32:57 2021 Phase: Succeeded NOTES: 1. Get the application URL by running these commands: export POD_NAME=$(kubectl get pods --namespace nexus -l "app.kubernetes.io/name=nexus-repository-manager,app.kubernetes.io/instance=nexus" -o jsonpath="{.items[0].metadata.name}") echo "Visit http://127.0.0.1 to use your application" kubectl --namespace nexus port-forward $POD_NAME 8081:80 ***** Start Helm Test Logs ***** ====================================================================================================  (Run Starting)  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐  │ Cypress: 5.0.0 │  │ Browser: Chrome 83 (headless) │  │ Specs: 1 found (nexus-healthspec.js) │  └────────────────────────────────────────────────────────────────────────────────────────────────┘ ──────────────────────────────────────────────────────────────────────────────────────────────────── Running: nexus-healthspec.js (1 of 1) Browserslist: caniuse-lite is outdated. Please run: npx browserslist@latest --update-db   Basic Nexus  ✓ Visit the Nexus sign in page (4912ms)   1 passing (6s)  (Results)  ┌────────────────────────────────────────────────────────────────────────────────────────────────┐  │ Tests: 1 │  │ Passing: 1 │  │ Failing: 0 │  │ Pending: 0 │  │ Skipped: 0 │  │ Screenshots: 0 │  │ Video: true │  │ Duration: 5 seconds │  │ Spec Ran: nexus-healthspec.js │  └────────────────────────────────────────────────────────────────────────────────────────────────┘  (Video)   - Started processing: Compressing to 32 CRF   - Finished processing: /test/cypress/videos/nexus-healthspec.js.mp4 (0 seconds) ====================================================================================================  (Run Finished)   Spec Tests Passing Failing Pending Skipped    ┌────────────────────────────────────────────────────────────────────────────────────────────────┐  │ ✔ nexus-healthspec.js 00:05 1 1 - - - │  └────────────────────────────────────────────────────────────────────────────────────────────────┘   ✔ All specs passed! 00:05 1 1 - - -   tar: Removing leading `/' from member names configmap "cypress-videos" deleted configmap/cypress-videos created ***** End Helm Test Logs ***** $ touch $CI_PROJECT_DIR/success section_end:1630099978:step_script section_start:1630099978:after_script Running after_script Running after script... $ if [ -e success ]; then # collapsed multi-line command section_start:1630099978:cluster_status[collapsed=true] Cluster Status Job Succeeded, cluster status: NAMESPACE NAME READY STATUS RESTARTS AGE kube-system pod/local-path-provisioner-5ff76fc89d-n8zhk 1/1 Running 0 3m6s kube-system pod/metrics-server-86cbb8457f-44zll 1/1 Running 0 3m6s kube-system pod/coredns-854c77959c-tm6h8 1/1 Running 0 3m6s nexus pod/nexus-nexus-repository-manager-5fb8fbb56c-f7rbj 1/1 Running 0 73s nexus pod/nexus-repository-manager-cypress-test 0/1 Completed 0 14s NAMESPACE NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE default service/kubernetes ClusterIP 10.43.0.1 443/TCP 3m22s kube-system service/kube-dns ClusterIP 10.43.0.10 53/UDP,53/TCP,9153/TCP 3m20s kube-system service/metrics-server ClusterIP 10.43.80.67 443/TCP 3m20s nexus service/nexus-nexus-repository-manager ClusterIP 10.43.128.149 8081/TCP 2m58s NAMESPACE NAME READY UP-TO-DATE AVAILABLE AGE kube-system deployment.apps/local-path-provisioner 1/1 1 1 3m20s kube-system deployment.apps/metrics-server 1/1 1 1 3m20s kube-system deployment.apps/coredns 1/1 1 1 3m20s nexus deployment.apps/nexus-nexus-repository-manager 1/1 1 1 2m58s NAMESPACE NAME DESIRED CURRENT READY AGE kube-system replicaset.apps/local-path-provisioner-5ff76fc89d 1 1 1 3m6s kube-system replicaset.apps/metrics-server-86cbb8457f 1 1 1 3m6s kube-system replicaset.apps/coredns-854c77959c 1 1 1 3m6s nexus replicaset.apps/nexus-nexus-repository-manager-687cb65df7 0 0 0 2m58s nexus replicaset.apps/nexus-nexus-repository-manager-5fb8fbb56c 1 1 1 73s section_end:1630099978:cluster_status  $ echo -e "\e[0Ksection_start:`date +%s`:cluster_clean[collapsed=true]\r\e[0KCluster Cleanup" section_start:1630099978:cluster_clean[collapsed=true] Cluster Cleanup $ k3d cluster delete ${CI_JOB_ID} INFO[0000] Deleting cluster '5995743' INFO[0000] Deleted k3d-5995743-serverlb INFO[0004] Deleted k3d-5995743-server-0 INFO[0004] Deleting image volume 'k3d-5995743-images' INFO[0004] Removing cluster details from default kubeconfig... INFO[0004] Removing standalone kubeconfig file (if there is one)... INFO[0004] Successfully deleted cluster 5995743! $ docker network rm ${CI_JOB_ID} 5995743 $ echo -e "\e[0Ksection_end:`date +%s`:cluster_clean\r\e[0K" section_end:1630099983:cluster_clean  section_end:1630099983:after_script section_start:1630099983:upload_artifacts_on_success Uploading artifacts for successful job Uploading artifacts... WARNING: images.txt: no matching files  WARNING: tests/cypress/screenshots: no matching files WARNING: tests/cypress/videos: no matching files  cypress-artifacts: found 3 matching files and directories Uploading artifacts as "archive" to coordinator... ok id=5995743 responseStatus=201 Created token=u9K_ed2T section_end:1630099985:upload_artifacts_on_success section_start:1630099985:cleanup_file_variables Cleaning up file based variables section_end:1630099985:cleanup_file_variables Job succeeded