August 2017
Intermediate to advanced
332 pages
9h 16m
English
Finally, we can use the shared library in the Jenkinsfile script.
Let's have a look at the example:
pipeline { agent any stages { stage("Hello stage") { steps { sayHello 'Rafal' } } }}
As you can see, we can use the Groovy code as a pipeline step sayHello. Obviously, after the pipeline build completes, in the console output, we should see Hello Rafal!.
Read now
Unlock full access