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