Skip to content

Commit 26d5476

Browse files
authored
Merge pull request openshift#7503 from gabemontero/fix-pipeline-ex
fix nesting of pipeline and openshift.withCluster in delcarative pipe…
2 parents 557cfee + a20f4d8 commit 26d5476

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dev_guide/dev_tutorials/openshift_pipeline.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,10 @@ link:https://github.com/openshift/origin/tree/master/examples/jenkins/pipeline/n
106106
----
107107
def templatePath = 'https://raw.githubusercontent.com/openshift/nodejs-ex/master/openshift/templates/nodejs-mongodb.json' <1>
108108
def templateName = 'nodejs-mongodb-example' <2>
109-
openshift.withCluster() {
110-
openshift.withProject() {
111-
echo "Using project: ${openshift.project()}"
112-
pipeline {
109+
pipeline {
110+
openshift.withCluster() {
111+
openshift.withProject() {
112+
echo "Using project: ${openshift.project()}"
113113
agent {
114114
node {
115115
label 'nodejs' <3>

0 commit comments

Comments
 (0)