From c86e4c8c84e740d5e307fbc7060faa3257ee8146 Mon Sep 17 00:00:00 2001 From: cloudbees-gam-casc Date: Thu, 19 Jan 2023 17:02:57 +0000 Subject: [PATCH] updating cloudbees-gam-casc/ops-controller bundle for bundle-folders --- bundle/bundle.yaml | 4 ++-- bundle/jcasc/credentials.yaml | 21 +++++++++++++++++++++ bundle/{ => jcasc}/jenkins.yaml | 25 ++----------------------- 3 files changed, 25 insertions(+), 25 deletions(-) create mode 100644 bundle/jcasc/credentials.yaml rename bundle/{ => jcasc}/jenkins.yaml (55%) diff --git a/bundle/bundle.yaml b/bundle/bundle.yaml index 856a2f4..d378a3e 100644 --- a/bundle/bundle.yaml +++ b/bundle/bundle.yaml @@ -1,10 +1,10 @@ apiVersion: "1" -version: "2" +version: "3" id: "cloudbees-gam-casc-ops-controller" description: "CloudBees CI configuration bundle for the cloudbees-gam-casc ops-controller Controller" availabilityPattern: "cloudbees-ci-casc-workshop/cloudbees-gam-casc/ops-controller" jcasc: - - "jenkins.yaml" + - "jcasc/" plugins: - "plugins.yaml" items: diff --git a/bundle/jcasc/credentials.yaml b/bundle/jcasc/credentials.yaml new file mode 100644 index 0000000..f8f4dee --- /dev/null +++ b/bundle/jcasc/credentials.yaml @@ -0,0 +1,21 @@ +credentials: + system: + domainCredentials: + - credentials: + - string: + description: "CasC Update Secret" + id: "casc-update-secret" + scope: GLOBAL + secret: "${cbciCascWorkshopControllerProvisionSecret}" + - string: + description: "Webhook secret for CloudBees CI Workshop GitHub App" + id: "cloudbees-ci-workshop-github-webhook-secret" + scope: SYSTEM + secret: "${gitHubWebhookSecret}" + - gitHubApp: + apiUri: "https://api.github.com" + appID: "${cbciCascWorkshopGitHubAppId}" + description: "CloudBees CI CasC Workshop GitHub App credential" + id: "cloudbees-ci-casc-workshop-github-app" + owner: "${GITHUB_ORGANIZATION}" + privateKey: "${cbciCascWorkshopGitHubAppPrivateKey}" diff --git a/bundle/jenkins.yaml b/bundle/jcasc/jenkins.yaml similarity index 55% rename from bundle/jenkins.yaml rename to bundle/jcasc/jenkins.yaml index 2b62a43..a864454 100644 --- a/bundle/jenkins.yaml +++ b/bundle/jcasc/jenkins.yaml @@ -11,7 +11,7 @@ jenkins: - key: "BUNDLE_ID" value: "${CASC_BUNDLE_ID}" quietPeriod: 0 - systemMessage: 'Jenkins configured using CloudBees CI CasC v2' + systemMessage: 'Jenkins configured using CloudBees CI CasC v3' notificationConfiguration: enabled: true router: "operationsCenter" @@ -41,25 +41,4 @@ unclassified: repoOwner: "${GITHUB_ORGANIZATION}" repository: "pipeline-library" headerLabel: - text: "${GITHUB_APP}-bundle-v2" -credentials: - system: - domainCredentials: - - credentials: - - string: - description: "CasC Update Secret" - id: "casc-update-secret" - scope: GLOBAL - secret: "${cbciCascWorkshopControllerProvisionSecret}" - - string: - description: "Webhook secret for CloudBees CI Workshop GitHub App" - id: "cloudbees-ci-workshop-github-webhook-secret" - scope: SYSTEM - secret: "${gitHubWebhookSecret}" - - gitHubApp: - apiUri: "https://api.github.com" - appID: "${cbciCascWorkshopGitHubAppId}" - description: "CloudBees CI CasC Workshop GitHub App credential" - id: "cloudbees-ci-casc-workshop-github-app" - owner: "${GITHUB_ORGANIZATION}" - privateKey: "${cbciCascWorkshopGitHubAppPrivateKey}" + text: "${GITHUB_APP}-bundle-v3"