Plugin site : https://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin
Git can be used to checkout the code in Jenkins jobs using Git plugin of Jenkins.
Install Git plugin
- Open Jenkins home page and Login as Admin (if security is enabled)
- Click manage Jenkins
- Click Configure Jenkins
- Go to Manage Plugins link on left side
- Select Git from available plugins
- Click Download and Install
Configuration of Git repo in a Jenkins job
- Open Jenkins home page
- Select the job
- Click Configure link on left side
- Inside Source code management section, Enter URL of Git projecthttps://www.myrepo/git/projects/myproject.gitBy default, it will checkout all branches of the repository
- To build a particular branch, provide branch name
- For authentication, provide username / password in advanced... options.
No comments:
Post a Comment
Note: only a member of this blog may post a comment.