InterviewSolution
Saved Bookmarks
| 1. |
What is the use of setting environment directive in Jenkins? |
|
Answer» The ENVIRONMENT directive specifies a sequence of key-value pairs which will be defined as environment variables for the all steps, or stage-specific steps, depending on where the environment directive is located within the Pipeline. This directive SUPPORTS a SPECIAL helper method credentials() which can be used to access pre-defined Credentials by their IDENTIFIER in the Jenkins environment. |
|