File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 22title : Running the PipelineRun
33weight : 4
44---
5+
56# Running the PipelineRun
67
78Pipelines-as-Code (PAC) can be used to run pipelines on events such as pushes
2021For example, if a PipelineRun has this annotation:
2122
2223``` yaml
23- pipelinesascode.tekton.dev/on-event : " [pull_request]"
24+ pipelinesascode.tekton.dev/on-event : " [pull_request]"
2425` ` `
2526
2627it will be matched when a pull request is created and run on the cluster, as
@@ -76,7 +77,8 @@ Code will not be triggered.
7677The PipelineRun will always run in the namespace of the Repository CRD associated with the repo
7778that generated the event.
7879
79- You can follow the execution of your PipelineRun with the [tkn pac](../cli/#install) cli :
80+ You can monitor the execution using the command line with the [tkn
81+ pac](../cli/#install) CLI :
8082
8183` ` ` console
8284tkn pac logs -n my-pipeline-ci -L
Original file line number Diff line number Diff line change @@ -7,21 +7,21 @@ import (
77 "strings"
88 "sync"
99
10+ v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
11+ "k8s.io/apimachinery/pkg/watch"
12+
1013 "github.com/openshift-pipelines/pipelines-as-code/pkg/consoleui"
1114 "github.com/openshift-pipelines/pipelines-as-code/pkg/params/clients"
1215 "github.com/openshift-pipelines/pipelines-as-code/pkg/params/info"
1316 "github.com/openshift-pipelines/pipelines-as-code/pkg/params/settings"
14- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
15- "k8s.io/apimachinery/pkg/watch"
1617)
1718
1819const (
1920 PACConfigmapName = "pipelines-as-code"
2021 StartingPipelineRunText = `Starting Pipelinerun <b>%s</b> in namespace
21- <b>%s</b><br><br>You can follow the execution on the [%s](%s) PipelineRun viewer or via
22- the command line with :
23- <br><code>%s pr logs -n %s %s -f</code>`
24- QueuingPipelineRunText = `PipelineRun <b>%s</b> has been queued Queuing in namespace
22+ <b>%s</b><br><br>You can monitor the execution using the [%s](%s) PipelineRun viewer or through the command line by using the following command:
23+ <br><code>%s pr logs -n %s %s -f</code>`
24+ QueuingPipelineRunText = `PipelineRun <b>%s</b> has been queued in namespace
2525 <b>%s</b><br><br>`
2626)
2727
You can’t perform that action at this time.
0 commit comments