-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yaml
More file actions
54 lines (51 loc) · 1.93 KB
/
action.yaml
File metadata and controls
54 lines (51 loc) · 1.93 KB
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
name: 'Run CD/RO process'
description: Start a process on a remote CloudBees CD/RO instance
branding:
icon: 'command'
color: 'blue'
inputs:
projectName:
description: Name of the project containing the application process
required: true
applicationName:
description: Name of the application containing the process
required: true
processName:
description: Name of the process to run
required: true
environmentName:
description: Name of the environment to run the process in
required: true
actualParameter:
description: Actual parameters to pass to the process
required: false
ignore-unverified-cert:
description: Ignore unverified SSL certificate errors when connecting to CloudBees CD/RO instance
default: 'false'
required: false
runs:
using: "composite"
steps:
- name: runProcess API
id: run-process
uses: cloudbees-github-actions/eval-dsl@v1
with:
dsl: runProcess args
dsl-args: |
projectName: ${{ inputs.projectName }}
applicationName: ${{ inputs.applicationName }}
processName: ${{ inputs.processName }}
environmentName: ${{ inputs.environmentName }}
dsl-actual-parameter: ${{ inputs.actualParameter }}
ignore-unverified-cert: ${{ inputs.ignore-unverified-cert }}
- name: Attach action meta data to runtime object
uses: cloudbees-github-actions/eval-dsl@v1
with:
dsl: |
def jobId = "${{ fromJson(steps.run-process.outputs.response).jobId }}"
def repository = "${{ github.repository }}"
def run_id = "${{ github.run_id }}"
setProperty jobId: jobId,
propertyName: "/myJob/report-urls/GitHub Actions Workflow URL",
value: "https://github.com/${repository}/actions/runs/${run_id}"
ignore-unverified-cert: ${{ inputs.ignore-unverified-cert }}