Jenkinsfile
- The
agent
directive tells Jenkins where and how to execute the Pipeline
Simple Jenkinsfile
Timeout, Retry, Post Action
String Interpolation
- Jenkins uses the identical rules Groovy has for String interpolation
- These variables will be masked by Jenkins in the console output
- But Env vars in double quotes will be expandend by the shell, exposing it to operating system process listings
- So to avoid leaking credentials, use single quoted String interpolation