-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add source repo url information to standard parameters
Users can now use source_repo_url in pipelinerun template to get the information from which forked repo the event (Pull Request / Push) is coming from Signed-off-by: Savita Ashture <[email protected]>
- Loading branch information
1 parent
6a2f9c4
commit aa36883
Showing
6 changed files
with
117 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
apiVersion: tekton.dev/v1beta1 | ||
kind: PipelineRun | ||
metadata: | ||
name: "\\ .PipelineName //" | ||
annotations: | ||
pipelinesascode.tekton.dev/target-namespace: "\\ .TargetNamespace //" | ||
pipelinesascode.tekton.dev/on-target-branch: "[\\ .TargetBranch //]" | ||
pipelinesascode.tekton.dev/on-event: "[\\ .TargetEvent //]" | ||
spec: | ||
params: | ||
- name: repo_url | ||
value: "{{ repo_url }}" | ||
- name: source_url | ||
value: "{{ source_url }}" | ||
- name: source_branch | ||
value: "{{ source_branch }}" | ||
- name: target_branch | ||
value: "{{ target_branch }}" | ||
pipelineSpec: | ||
params: | ||
- name: repo_url | ||
- name: source_url | ||
- name: source_branch | ||
- name: target_branch | ||
tasks: | ||
- name: params | ||
taskSpec: | ||
steps: | ||
- name: test-standard-params-value | ||
image: registry.access.redhat.com/ubi9/ubi-micro | ||
script: | | ||
echo "{{ repo_url }}--" | ||
echo "{{ source_url }}--" | ||
echo "{{ source_branch }}--" | ||
echo "{{ target_branch }}--" |