What is Jenkins
Jenkins is a free and open source automation server. It helps automate the
parts of software development related to building, testing, and deploying, facilitating continuous integration and continuous delivery.What is GitHub
GitHub is a code hosting platform for using collaboration and version control.
Jenkins Task
Step 1) Login into Jenkins
Note :- Firstly install "github intregration plugin"
Step 2) Click on "Manage Jenkins" >> Click on "Manage Plugins"
Step 3) Click on "Available" and search "GitHub integration plugin"
Step 4) Tick on plugin and click on "Install without Restart" button
a) Click on "Restart Jenkins when installation"
b) it will be take 3 min to come on login window
Step 5) Click on New Item >> Enter an item name >> Freestyle Project >> ok
Step 6) Click on github_project >> write GitHub url
Step 7) Go to "Source Code Management" >> click on git
a) Copy and paste github repository url
b) Add Github Credential If Repository is private.
Go to GitHub >> Settings >> Developer_Settings >> Personal_Access_Tokens >> Create_New_Token
Step 8) Write the branch name
Step 9) Go to "Build Triggers" >> Click on "GitHub hook trigger for GITScm polling"
Step 10) Click on save
GitHub Task
Step 1) Click on repository
Click on setting icon >> Click on Webhooks >> Add Webhooks
Step 2) Write the "your Jenkins server ip" and port number
http://18.220.19.2:8080/github-webhook/
Step 3) Click on add webhook
Now :- Add some file in your repository and let see the changes in Jenkins
Jenkins Task
Step 1) Click on Agent_1
Step 2) Click on "Workspace" and see your repository file
No comments:
Post a Comment
testing