forked from hygieia/hygieia-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpipelines.yml
83 lines (83 loc) · 2.44 KB
/
pipelines.yml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
resources:
- name: webhook
type: IncomingWebhook
configuration:
webhookName: webhook
- name: aql
type: Aql
configuration:
sourceArtifactory: artifactory
query: items.find({"name":"${distribution_filename}"})
- name: release_bundle
type: ReleaseBundle
configuration:
sourceDistribution: clouddistribution
name: mygenericbundle
version: v2.0.1
- name: signed_bundle
type: ReleaseBundle
configuration:
sourceDistribution: clouddistribution
name: mygenericbundle
version: v2.0.1
- name: distribution_rules
type: DistributionRule
configuration:
sourceDistribution: clouddistribution
serviceName: "*"
siteName: "*"
cityName: "*"
countryCodes:
- "US"
pipelines:
- name: dummy_build
steps:
- name: bashScript
type: Bash
configuration:
inputResources:
- name: webhook
outputResources:
- name: aql
execution:
onExecute:
- echo "I HAVE RAN SUCCESSFULLY!"
- set_payload webhook "$res_webhook_payload"
- echo "$res_webhook_payload" | jq '.' > payload.json
- set_payload webhook payload.json --file
- cat payload.json
- read_json payload.json "data.name"
- add_run_variables distribution_filename=$(read_json payload.json "data.name")
- echo $distribution_filename
- name: bundle
type: CreateReleaseBundle
configuration:
releaseBundleName: mygenericbundle
releaseBundleVersion: v2.0.1
dryRun: false
sign: false
description: "Creates generic repo release bundle"
inputResources:
- name: aql
trigger: true
outputResources:
- name: release_bundle
releaseNotes:
syntax: markdown
content: |
## This is a test distribution bundle
* This is generated upon deploy of each artifact in generic-local
- name: sign
type: SignReleaseBundle
configuration:
inputResources:
- name: release_bundle
outputResources:
- name: signed_bundle
- name: distribute
type: DistributeReleaseBundle
configuration:
dryRun: false
inputResources:
- name: signed_bundle
- name: distribution_rules