From 42d90573bfec49c89b10b2f7bdc9ff7a13a55d25 Mon Sep 17 00:00:00 2001 From: Carlos Rodriguez Lopez Date: Wed, 16 Oct 2024 21:28:38 +0200 Subject: [PATCH] feat: adding validate-all-casc-bundles job --- .../cbci/casc/oc/items.admin-folder.yaml | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/blueprints/02-at-scale/cbci/casc/oc/items.admin-folder.yaml b/blueprints/02-at-scale/cbci/casc/oc/items.admin-folder.yaml index e2a2515b..b12c1cdb 100644 --- a/blueprints/02-at-scale/cbci/casc/oc/items.admin-folder.yaml +++ b/blueprints/02-at-scale/cbci/casc/oc/items.admin-folder.yaml @@ -120,3 +120,34 @@ items: n: 5 safeDelaySeconds: 0 concurrentBuild: false + - kind: freeStyle + name: validate-all-casc-bundles + blockBuildWhenDownstreamBuilding: false + blockBuildWhenUpstreamBuilding: false + builders: + - shell: + command: | + casc_repo="https://github.com/cloudbees/terraform-aws-cloudbees-ci-eks-addon" + target_branch="casc" + casc_zip_bundle_path="terraform-aws-cloudbees-ci-eks-addon/blueprints/02-at-scale/cbci/casc-zip/pre-validate-casc.zip" + username="admin_cbci_a" + api_token="^${API_TOKEN}" + git clone -b "$target_branch" "$casc_repo" + curl -s -H 'Accept: application/json' -H 'Content-Type: application/zip;charset=utf-8' --user "$username:$api_token" --data-binary @"$casc_zip_bundle_path" -XPOST "^${JENKINS_URL}casc-bundle/pre-validate-bundle" + concurrentBuild: false + description: '' + disabled: false + displayName: validate-all-casc-bundles + label: busybox-L + parameters: + - string: + trim: true + name: API_TOKEN + description: Insert here a valid API TOKEN for user admin_cbci_a + scm: + none: { + } + scmCheckoutStrategy: + standard: { + } +