Git is not visible in Source Code Managment on Jenkins job
Solution 1
You have got the Git SCM plugin installed, right?
Solution 2
Git Plugin has 10 dependencies:
- Promoted Builds Plugin
- Credentials Plugin
- Git Client Plugin
- SCM API Plugin
- Mailer
- Token Macro Plugin
- Matrix Project Plugin
- SSH Credentials Plugin
- Parameterized Trigger Plugin
make sure you have installed all the plugins.
Solution 3
I had the same issue. I checked all plugins mentioned above and those are already installed (also most of the Git plugins shipped default with the Jenkins)
I think you have to choose "Free style project" when you create a New Item in Jenkins. If you have selected the "Pipeline" or any other from the list that "Source code management" section is not available when we configure the project.
Solution 4
I installed the "GitHub Branch Source Plugin", then it appears
Winston
Updated on July 06, 2022Comments
-
Winston almost 2 years
I would like to set source code managment of my freestyle jenkins job. I installed git plugin manually from git-client.hpi file. I restarted jenkins, set git path but I can not see git in the source code management list. There is no internet connection in server. So any suggestion? Thank You
-
Winston over 8 yearsDear @Stuart i re-installed scm-api and git is in SCM list. Thank you
-
Sridhar Sarnobat over 4 yearsStrange, I installed the Git Blue Ocean plugin and restarted Jenkins and now it appears.
-
Alessio over 3 yearsWelcome to Stack Overflow! This was posted as an answer, but it does not attempt to answer the question. It should possibly be an edit or a comment.