Skip to content

Commit

Permalink
Update PipelineRun
Browse files Browse the repository at this point in the history
  • Loading branch information
blues-man committed Oct 1, 2020
1 parent b1bd1f0 commit 03b2497
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions documentation/modules/ROOT/pages/nationalparks-java-pipeline.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,33 @@ It is using two *Workspace*:
[#run_the_pipeline]
== Run the Pipeline

In order to start the Pipeline, we can use a `PipelineRun` Custom Resource, representing our parameters to send to the pipeline:
In order to start the Pipeline, we can use a `PipelineRun` Custom Resource, representing our parameters to send to the pipeline.

[.console-input]
[source,bash,subs="+attributes,macros+"]
From the Developer perspective click *+Add* in the left navigation menu and then select *YAML*.

image::devops-pipeline-add-yaml-menu.png[Add yaml to project - Menu]

Now, copy the following code into the YAML input box and click *Create* to a *PipelineRun* resource to start your pipeline:

[source,shell,role=copypaste]
----
oc create -f http://gogs-%INFRA_PROJECT%.%CLUSTER_SUBDOMAIN%/%USERNAME%/nationalparks/raw/master/pipeline/nationalparks-pipelinerun.yaml -n %PROJECT_NAMESPACE%
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
generateName: nationalparks-deploy-run-
spec:
params:
- name: APP_GIT_URL
value: "http://gogs-%INFRA_PROJECT%.%CLUSTER_SUBDOMAIN%/%USERNAME%/nationalparks.git"
pipelineRef:
name: nationalparks-pipeline
workspaces:
- name: app-source
persistentVolumeClaim:
claimName: app-source-pvc
- name: maven-settings
emptyDir: {}
----

You can follow the Pipeline execution from *Pipeline* section, watching all the steps in progress. Click on *Pipeline Runs* tab to see it running:
Expand Down

0 comments on commit 03b2497

Please sign in to comment.