Skip to content

Commit

Permalink
feat: adding validate-all-casc-bundles job
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosrodlop committed Oct 16, 2024
1 parent bd52bb7 commit 42d9057
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions blueprints/02-at-scale/cbci/casc/oc/items.admin-folder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
}

0 comments on commit 42d9057

Please sign in to comment.