Writing a Jenkins Pipeline: Difference between revisions
Jump to navigation
Jump to search
(→Steps) |
|||
Line 5: | Line 5: | ||
* [[Jenkins Pipeline Syntax]] | * [[Jenkins Pipeline Syntax]] | ||
* [[Groovy]] | * [[Groovy]] | ||
=Basic Steps Reference= | |||
=Steps= | =Steps= |
Revision as of 17:32, 21 November 2019
Internal
Basic Steps Reference
Steps
These steps are used invoking on stage.
. In a Jenkinsfile, and inside a stage, invoke on this.
or simply invoking directly like below:
- 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 = readFile("${stage.WORKSPACE}/terraform/my-module/VERSION")