Writing a Jenkins Pipeline: Difference between revisions
Jump to navigation
Jump to search
(→Steps) |
|||
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= |
Revision as of 05:49, 21 November 2019
Internal
Steps
These steps are used invoking on stage.
. In a Jenkinsfile, and inside a stage, invoke on this.
- read-file step. Reading a file from the workspace: https://jenkins.io/doc/pipeline/steps/workflow-basic-steps/#readfile-read-file-from-workspace
def versionFile = stage.readFile("${stage.WORKSPACE}/terraform/my-module/VERSION")