DevOps CI Automation - Eclipse -> Git ->Jenkins

7
DevOps – Continuous Integration Automation Eclipse ->Git/Github -> Jenkins

Transcript of DevOps CI Automation - Eclipse -> Git ->Jenkins

Page 1: DevOps CI Automation - Eclipse -> Git ->Jenkins

DevOps – Continuous Integration Automation

Eclipse ->Git/Github -> Jenkins

Page 2: DevOps CI Automation - Eclipse -> Git ->Jenkins

Continuous Testing

Continuous Deployment

Continuous Monitoring

DevOps

Continuous Integration

Continuous Development

Continuous Feedback

Page 3: DevOps CI Automation - Eclipse -> Git ->Jenkins

Eclipse -> Git Create a new java project in Eclipse -> Add an object in the new Java project -> Add a class in the object -> Write some working code in the class -> Add the project in local Git repository -> Make some changes in the java code -> Commit the changes in local Git repository using option right click the java project -> Select team -> Press commit -> Update details in Git staging window -> View the commit done in history window ->

Page 4: DevOps CI Automation - Eclipse -> Git ->Jenkins

Eclipse -> Git -> GitHubCreate a remote repository in GitHub from Git Repositories window of Eclipse -> Push the committed change of local Git repository into the remote GitHub repository ->

Page 5: DevOps CI Automation - Eclipse -> Git ->Jenkins

Eclipse -> Git & GitHub -> Jenkins Create a freestyle project in Jenkins -> Select SCM option as Git and update local Git repository address as repository URL in the Jenkins project configuration ->Add a Jenkins server in Eclipse using build window -> Select a build job -> Run the build from Eclipse.

Page 6: DevOps CI Automation - Eclipse -> Git ->Jenkins

Trigger a Jenkins job from a script Update the Jenkins build job configuration with option -> trigger build remotely and adding the authentication key ->

Create a post commit script in hooks folder of the Git -> Add following command – “curl --user <UserName>:<API Token of the user> <Jenkins URL of Job to be build>?token=<authentication key of the job>” in the post commit script -> Add a change in the local Git repository master from command line -> Commit the change from command line -> Git commit will execute the Jenkins job.