Writing a Jenkins Pipeline: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 6: Line 6:


=Recipes=
=Recipes=
* read-file step. Reading a file from the workspace: https://jenkins.io/doc/pipeline/steps/workflow-basic-steps/#readfile-read-file-from-workspace
<syntaxhighlight lang='groovy'>
def clsFile = stage.readFile("${stage.WORKSPACE}/${path}/${name}.groovy")
</syntaxhighlight>

Revision as of 01:06, 21 November 2019

Internal

Recipes

def clsFile = stage.readFile("${stage.WORKSPACE}/${path}/${name}.groovy")