Skip to content

Commit c89ff0d

Browse files
authored
FFM-10311 Fix pipeline triggers (#138)
1 parent 7789c3a commit c89ff0d

File tree

3 files changed

+58
-1
lines changed

3 files changed

+58
-1
lines changed

.harness/ffgolangserversdk.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ pipeline:
138138
BUILD_MODE: local
139139
when:
140140
stageStatus: Success
141-
condition: <+pipeline.triggeredBy.name> == "OnRelease"
141+
condition: <+pipeline.triggeredBy.name> == "OnRelease" || <+pipeline.triggeredBy.identifier> == "GitPullRequest"
142142
- step:
143143
type: Run
144144
name: CVE scan
@@ -272,6 +272,11 @@ pipeline:
272272
type: String
273273
default: "false"
274274
value: <+input>.allowedValues(true,false)
275+
- name: pull_request
276+
type: String
277+
description: ""
278+
required: false
279+
value: <+input>.allowedValues(true,false)
275280
variables:
276281
- name: github_token
277282
type: Secret
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
inputSet:
2+
name: pull_request_input_set
3+
identifier: pull_request_input_set
4+
orgIdentifier: Feature_Flag
5+
projectIdentifier: FFPipelines
6+
pipeline:
7+
identifier: ffgolangserversdk
8+
properties:
9+
ci:
10+
codebase:
11+
build:
12+
type: branch
13+
spec:
14+
branch: <+trigger.branch>
15+
stages:
16+
- stage:
17+
identifier: Publish_Release_Notes
18+
type: Approval
19+
variables:
20+
- name: release
21+
type: String
22+
value: "false"
23+
- name: pull_request
24+
type: String
25+
value: "true"
26+
object Object: pipeline.properties.ci.codebase

.harness/release_input_set.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
inputSet:
2+
name: release_input_set
3+
identifier: release_input_set
4+
orgIdentifier: Feature_Flag
5+
projectIdentifier: FFPipelines
6+
pipeline:
7+
identifier: ffgolangserversdk
8+
properties:
9+
ci:
10+
codebase:
11+
build:
12+
type: tag
13+
spec:
14+
tag: <+eventPayload.release.tag_name>
15+
stages:
16+
- stage:
17+
identifier: Publish_Release_Notes
18+
type: Approval
19+
variables:
20+
- name: release
21+
type: String
22+
value: "true"
23+
- name: pull_request
24+
type: String
25+
value: "false"
26+
object Object: pipeline.properties.ci.codebase

0 commit comments

Comments
 (0)