Configure Git Repositories
To configure Git repositories,
-
Select the Jenkins Pipeline Project and click Configure.
-
Scroll to the end and click Pipeline Syntax.
-
Select git: Git from the drop-down menu.
-
Add Repository URL, Branch, and Credentials in the respective fields.
-
Click Generate Pipeline Script.
-
Copy this generated pipeline script and use it while configuring the pipeline job.
