Writing a Jenkins Pipeline: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
(7 intermediate revisions by the same user not shown)
Line 4: Line 4:
* [[Jenkins_Operations#Writing_a_Jenkins_Pipeline|Jenkins Operations]]
* [[Jenkins_Operations#Writing_a_Jenkins_Pipeline|Jenkins Operations]]
* [[Jenkins Pipeline Syntax]]
* [[Jenkins Pipeline Syntax]]
* [[Groovy]]


=Recipes=
=Steps Reference=


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

Latest revision as of 18:12, 21 November 2019