devops – continuous integration with git/github & maven
TRANSCRIPT
DevOps – Continuous Integration
Git/Github & Maven
Continuous Integration
Source control
Continuous Integration
Build Automation
Build Repository
Automated Testing
Automated Release Management
Development
Git is installed in Jenkins as a default plugin. If not installed, it can be installed using option - manage Jenkins -> manage plugin -> Click ‘available’ tab -> search & select Git plugin -> click ‘download now & install after restart’- submit button. This will install Git in your Jenkins.
Installing Git in Jenkins
Creating a Git project in JenkinsA project is created in Jenkins with Git as SCM using option – new item -> update project name as new item name -> select freestyle or maven project -> press ok ->Select Git in ‘Source Control Management’ section -> update your Git repository URL in repository URL field -> press apply & save button.
Installing Github in Jenkins –Github is insalled in Jenkins as default plugin. If not installed, it can be installed using option - manage Jenkins -> manage plugin -> Click ‘available’ tab -> search & select Github plugin -> click ‘download now & install after restart’- submit button. This will configure Github in your Jenkins.
Creating a Github project in JenkinsA project is created in Jenkins with Github as SCM using option – new item -> update project name as new item name -> select freestyle or maven project -> press ok -> update Github project URL under general - Github project – project URL ->Select Git in ‘Source Control Management’ section -> update your Github repository URL in repository URL field -> press apply & save button.
Installing Maven in JenkinsMaven is not available as default plugin in Jenkins. Maven is installed in Jenkins using option - manage Jenkins -> manage plugin -> Click ‘available’ tab -> search & select Maven integration plugin -> click ‘download now & install after restart’ submit button. Then, manage Jenkins -> global tool configuration -> under JDK section update JDK version in JDK name -> update jdk location of your server in JDK_HOME -> Under Maven update Maven version in Maven name -> update maven location of your server in Maven_HOME. This will configure Maven in your Jenkins.
Creating a Maven Github project in JenkinsA maven & Github project is created in Jenkins using option – new item -> update project name as new item name -> select maven project -> press ok -> update Github project URL in project URL field under general & Github project -> Select Git in ‘Source Control Management’ section -> update your Github repository URL in ‘repository URL’ field -> check ‘resolve dependencies during POM parsing’ under build section -> press apply & save button ->Create POM xml with required instruction and save the POM xml file in the Github repository.
Thank youhttp://solutionframework.blogspot.in