← harnesscd-example-apps

Trigger YAML's

5031f026e7bef34cbfddfa2954614a0a07f8207a · Ompragash Viswanathan · Jul 18, 2023 18:10

Signed-off-by: Ompragash Viswanathan <ompragash@proton.me>

+68 · 3 files changed

  • harness-platform/custom-trigger.yml +17 −0
  • harness-platform/github-trigger.yml +26 −0
  • harness-platform/gitlab-trigger.yml +25 −0
diff --git a/harness-platform/custom-trigger.yml b/harness-platform/custom-trigger.yml
new file mode 100644
index 0000000..6ded117
--- /dev/null
+++ b/harness-platform/custom-trigger.yml
@@ -0,0 +1,17 @@
+trigger:
+  name: custom-trigger
+  identifier: customtrigger
+  enabled: true
+  description: ""
+  tags: {}
+  stagesToExecute: []
+  orgIdentifier: ORGANIZATION_ID
+  projectIdentifier: PROJECT_ID
+  pipelineIdentifier: PIPELINE_ID
+  source:
+    type: Webhook
+    spec:
+      type: Custom
+      spec:
+        payloadConditions: []
+        headerConditions: []
diff --git a/harness-platform/github-trigger.yml b/harness-platform/github-trigger.yml
new file mode 100644
index 0000000..46f49fb
--- /dev/null
+++ b/harness-platform/github-trigger.yml
@@ -0,0 +1,26 @@
+trigger:
+  name: git-trigger
+  identifier: gittrigger
+  enabled: true
+  encryptedWebhookSecretIdentifier: ""
+  description: ""
+  tags: {}
+  orgIdentifier: ORGANIZATION_ID
+  stagesToExecute: []
+  projectIdentifier: PROJECT_ID
+  pipelineIdentifier: PIPELINE_ID
+  source:
+    type: Webhook
+    spec:
+      type: Github
+      spec:
+        type: Push
+        spec:
+          connectorRef: GITHUB_CONNECTOR
+          autoAbortPreviousExecutions: false
+          payloadConditions:
+            - key: targetBranch
+              operator: Equals
+              value: master
+          headerConditions: []
+          actions: []
diff --git a/harness-platform/gitlab-trigger.yml b/harness-platform/gitlab-trigger.yml
new file mode 100644
index 0000000..9a5912b
--- /dev/null
+++ b/harness-platform/gitlab-trigger.yml
@@ -0,0 +1,25 @@
+trigger:
+  name: gitlab-trigger
+  identifier: gitlabtrigger
+  enabled: true
+  description: ""
+  tags: {}
+  orgIdentifier: ORGANIZATION_ID
+  stagesToExecute: []
+  projectIdentifier: PROJECT_ID
+  pipelineIdentifier: PIPELINE_ID
+  source:
+    type: Webhook
+    spec:
+      type: Gitlab
+      spec:
+        type: Push
+        spec:
+          connectorRef: GITLAB_CONNECTOR
+          autoAbortPreviousExecutions: false
+          payloadConditions:
+            - key: targetBranch
+              operator: Equals
+              value: main
+          headerConditions: []
+          actions: []