-
Notifications
You must be signed in to change notification settings - Fork 16
/
Distribution-Pipelines.yaml
79 lines (67 loc) · 2.36 KB
/
Distribution-Pipelines.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
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
pipelines:
- name: distribution
configuration:
environmentVariables:
readOnly:
restCall: ${int_distribution_url}/api/v1/release_bundle/${res_New_ReleaseBundle_name}/${res_New_ReleaseBundle_version}/sign
connString: ${int_artifactory_user}:${int_artifactory_apikey}
header: 'Content-Length:'
steps:
- name: Create_ReleaseBundle
type: CreateReleaseBundle
configuration:
releaseBundleName: Demo_RB
releaseBundleVersion: V1.0.${run_number}
dryRun: false
# Sign step preformed on automatic Release bundle Creation
sign: true
storeAtSourceArtifactory: aritfactory
inputResources:
- name: docker_gradleBuild_Info
- name: docker_npmBuild_Info
outputResources:
- name: New_ReleaseBundle
description: RB of gradle and npm build
releaseNotes:
syntax: markdown
content: |
## Heading
* Bullet
* Points
# Native Step To Sigh Release Bundle
# - name: Sign_ReleaseBundle
# type: SignReleaseBundle
# configuration:
# inputResources:
# - name: New_ReleaseBundle
# trigger: true
# outputResources:
# - name: Signed_ReleaseBundle
# Bash Step to sign release bundle
# - name: Sign_ReleaseBundle
# type: Bash
# configuration:
# integrations:
# - name: artifactory
# - name: distribution
# inputResources:
# - name: New_ReleaseBundle
# trigger: true # default true
# outputResources:
# - name: Signed_ReleaseBundle
#
# execution:
# onStart:
# - printenv
# onExecute:
# - curl -XPOST -u${connString} --header "${header} 0" ${restCall}
# onSuccess:
# - echo "Release Bundle wasapproved signed"
- name: Distribute_ReleaseBundle
type: DistributeReleaseBundle
configuration:
dryRun: false
inputResources:
- name: New_ReleaseBundle
trigger: true
- name: Distribution_Rule