Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix JENKINS-48527
There is a missing return this in the example for Zot.groovy. Without this, the issue in the issue arises. This clarifies the example to make sure the user knows that `return this` is needed
  • Loading branch information
slide committed Dec 19, 2017
1 parent 4cb63ac commit 42d5424
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions content/doc/book/pipeline/shared-libraries.adoc
Expand Up @@ -341,6 +341,8 @@ package org.foo;
def checkOutFrom(repo) {
git url: "git@github.com:jenkinsci/${repo}"
}
return this
----

Which can then be called from a Scripted Pipeline:
Expand Down

0 comments on commit 42d5424

Please sign in to comment.