Skip to content

Commit

Permalink
FFM-10311 Fix pipeline triggers (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
erdirowlands authored Dec 20, 2023
1 parent 7789c3a commit c89ff0d
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .harness/ffgolangserversdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ pipeline:
BUILD_MODE: local
when:
stageStatus: Success
condition: <+pipeline.triggeredBy.name> == "OnRelease"
condition: <+pipeline.triggeredBy.name> == "OnRelease" || <+pipeline.triggeredBy.identifier> == "GitPullRequest"
- step:
type: Run
name: CVE scan
Expand Down Expand Up @@ -272,6 +272,11 @@ pipeline:
type: String
default: "false"
value: <+input>.allowedValues(true,false)
- name: pull_request
type: String
description: ""
required: false
value: <+input>.allowedValues(true,false)
variables:
- name: github_token
type: Secret
Expand Down
26 changes: 26 additions & 0 deletions .harness/pull_request_input_set.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
inputSet:
name: pull_request_input_set
identifier: pull_request_input_set
orgIdentifier: Feature_Flag
projectIdentifier: FFPipelines
pipeline:
identifier: ffgolangserversdk
properties:
ci:
codebase:
build:
type: branch
spec:
branch: <+trigger.branch>
stages:
- stage:
identifier: Publish_Release_Notes
type: Approval
variables:
- name: release
type: String
value: "false"
- name: pull_request
type: String
value: "true"
object Object: pipeline.properties.ci.codebase
26 changes: 26 additions & 0 deletions .harness/release_input_set.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
inputSet:
name: release_input_set
identifier: release_input_set
orgIdentifier: Feature_Flag
projectIdentifier: FFPipelines
pipeline:
identifier: ffgolangserversdk
properties:
ci:
codebase:
build:
type: tag
spec:
tag: <+eventPayload.release.tag_name>
stages:
- stage:
identifier: Publish_Release_Notes
type: Approval
variables:
- name: release
type: String
value: "true"
- name: pull_request
type: String
value: "false"
object Object: pipeline.properties.ci.codebase

0 comments on commit c89ff0d

Please sign in to comment.