Writing a Jenkins Pipeline: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
(5 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]]


=Steps=
=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 versionFile = stage.readFile("${stage.WORKSPACE}/terraform/my-module/VERSION")
</syntaxhighlight>
 
* error https://jenkins.io/doc/pipeline/steps/workflow-basic-steps/#error-error-signal

Latest revision as of 18:12, 21 November 2019