Writing a Jenkins Pipeline
Jump to navigation
Jump to search
Internal
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")