devops – continuous integration with git/github & maven

9

Click here to load reader

Upload: abhay-kumar-pmp-csm-itil

Post on 16-Apr-2017

215 views

Category:

Software


0 download

TRANSCRIPT

Page 1: DevOps – Continuous Integration with Git/Github & Maven

DevOps – Continuous Integration

Git/Github & Maven

Page 2: DevOps – Continuous Integration with Git/Github & Maven

Continuous Integration

Source control

Continuous Integration

Build Automation

Build Repository

Automated Testing

Automated Release Management

Development

Page 3: DevOps – Continuous Integration with Git/Github & Maven

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

Page 4: DevOps – Continuous Integration with Git/Github & Maven

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.

Page 5: DevOps – Continuous Integration with Git/Github & Maven

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.

Page 6: DevOps – Continuous Integration with Git/Github & Maven

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.

Page 7: DevOps – Continuous Integration with Git/Github & Maven

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.

Page 8: DevOps – Continuous Integration with Git/Github & Maven

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.