-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RHDEVDOCS 5729 overriding a task in remote pipeline #68447
RHDEVDOCS 5729 overriding a task in remote pipeline #68447
Conversation
🤖 Updated build preview is available at: Build log: https://circleci.com/gh/ocpdocs-previewbot/openshift-docs/34921 |
|
||
By default, if you use a remote pipeline annotation in a pipeline run, {pac} uses all the tasks that are a part of the remote pipeline. | ||
|
||
To override a task, you can add an annotation for a task with the same name to the remote pipeline annotation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: task with the same name as in remote pipeline to the pipelinerun annotation
lgtm |
/label peer-review-needed |
|
||
By default, if you use a remote pipeline annotation in a pipeline run, {pac} uses all the tasks that are a part of the remote pipeline. | ||
|
||
To override a task, you can add an annotation for a task with the same name as a task in the pipeline that the remote pipeline annotation references. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line is not clear to me, but I am not familiar with pipelines. Maybe something like:
To override a task, you can add an annotation for a task with the same name as a task in the pipeline that the remote pipeline annotation references. | |
You can override a task in a remote pipeline by adding a task that has the same name as an annotation in the pipeline run. |
@mramendi One nit. Otherwise LGTM |
d0c384d
to
67f1e65
Compare
/label merge-review-needed |
/label merge-review-in-progress |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added two questions/comments, but not holding the merge since it was QE reviewed and the other comment is minor.
But please consider checking these and making a future update if one is needed
.Example pipeline run definition referencing a remote pipeline and overriding a task | ||
[source,yaml] | ||
---- | ||
kind: PipelineRun |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this have an apiVersion here?
pipelinesascode.tekton.dev/task: "./my-git-clone-task.yaml" | ||
---- | ||
|
||
For this example, assume the remote task found at \https://git.provider/raw/pipeline.yaml includes a task named `git-clone` and the task that the `my-git-clone-task.yaml` file defines is also named `git-clone`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the URL here should probably be in backticks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bergerhoffer I agree with your notes and thanks for not holding the merge! We have a GA tomorrow and the suggested changes require a new round of reviews. I am making a separate PR but it might get merged after the GA.
/cherrypick pipelines-docs-1.13 |
@bergerhoffer: new pull request created: #68557 In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Version(s):
cp to pipelines-docs-1.13
Issue:
RHDEVDOCS 5729
Link to docs preview:
https://68447--docspreview.netlify.app/openshift-pipelines/latest/pac/using-pac-resolver#overriding-tasks-in-remote-pipeline_using-pac-resolver
QE review:
Additional information: