InterviewSolution
Saved Bookmarks
| 1. |
How to get the Jenkins version programmatically in Jobs/Pipelines or nodes other than master? |
|
Answer» To check the version of Jenkins, load the top-level page or any top-level Remote ACCESS API PATH like the '.../api/*' page and then check for the 'X-Jenkins' response header. This CONTAINS the version number of Jenkins, like "1.404". This is also a good way to check if an URL is a Jenkins URL. |
|