Writing a Jenkins Pipeline: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 5: Line 5:
* [[Jenkins Pipeline Syntax]]
* [[Jenkins Pipeline Syntax]]


=Recipes=
=Steps=


* read-file step. Reading a file from the workspace: https://jenkins.io/doc/pipeline/steps/workflow-basic-steps/#readfile-read-file-from-workspace
* read-file step. Reading a file from the workspace: https://jenkins.io/doc/pipeline/steps/workflow-basic-steps/#readfile-read-file-from-workspace
Line 12: Line 12:
def versionFile = stage.readFile("${stage.WORKSPACE}/terraform/my-module/VERSION")
def versionFile = stage.readFile("${stage.WORKSPACE}/terraform/my-module/VERSION")
</syntaxhighlight>
</syntaxhighlight>
* error https://jenkins.io/doc/pipeline/steps/workflow-basic-steps/#error-error-signal

Revision as of 01:30, 21 November 2019

Internal

Steps

def versionFile = stage.readFile("${stage.WORKSPACE}/terraform/my-module/VERSION")