Jenkins Shell: Which One Does it Use? Get the Answer Here!
If you are wondering which shell Jenkins uses, the answer is simple: Jenkins uses the default shell of the underlying operating system. So, if you are using a Linux-based operating system, Jenkins will use Bash as the default shell. Similarly, if you are using a Windows-based operating system, Jenkins will use Windows PowerShell as the default shell.
However, it is important to note that you can change the default shell in Jenkins by configuring the "Shell executable" field in the Jenkins configuration page. This can be useful if you want to use a different shell or if you want to use a specific version of the default shell.
To change the default shell, follow these steps:
- Go to the Jenkins dashboard and click on "Manage Jenkins".
- Click on "Configure System".
- Scroll down to the "Shell" section.
- Enter the path to the shell executable that you want to use.
- Click on "Save" to save the changes.
That's it! Now you know which shell Jenkins uses and how to change it if needed.