-
Notifications
You must be signed in to change notification settings - Fork 0
/
trigger_definition.yaml
45 lines (45 loc) · 1.25 KB
/
trigger_definition.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Define the pipeline's YAML configuration here.
# The pipeline's YAML can be viewed from the GUI.
# Below is an example of the pipeline, as described in the README.md.
trigger:
name: "<your_trigger_name>"
identifier: <your_trigger_id>
enabled: true
encryptedWebhookSecretIdentifier: ""
description: ""
tags: {}
orgIdentifier: default
stagesToExecute: []
projectIdentifier: <your_project_id>
pipelineIdentifier: <your_pipelines_id>
source:
type: Webhook
spec:
type: Github
spec:
type: Push
spec:
connectorRef: <your_connector_id>
autoAbortPreviousExecutions: false
payloadConditions:
- key: targetBranch
operator: Equals
value: <your_trigger_branch>
headerConditions: []
actions: []
inputYaml: |
pipeline:
identifier: <your_pipelines_id>
stages:
- stage:
identifier: stg_deploy
type: Deployment
spec:
service:
serviceInputs:
serviceDefinition:
type: Kubernetes
spec:
artifacts:
primary:
primaryArtifactRef: Primary