Tuesday, July 24, 2018

Jenkins

Key tasks - responsibilities that can perform using Jenkins :



  •  Jenkins AWS Code Deploy plugin to deploy to AWS.
  •  Involved in Setting up the backup server for Jenkins and prepared disaster recovery plans for Jenkins and bamboo. 
  • Used Maven to build rpms from source code checked out from GIT and Subversion repository, with Jenkins being the Continuous Integration Server and Artifactory as repository manager. 
  •  Installed and Configured Jenkins Plugins to support the project specific tasks. 
  • Developed Docker based micro services, deployment modules with Jenkins, Kubernetes and Ansiblebased pipelines/frameworks. 
     




Please download latest windows jenkins installer from - https://jenkins.io/download/thank-you-downloading-windows-installer-stable/






Creating pipeline





Sample  Pipeline script   (GitHub+Maven)


node {
   def mvnHome
   stage('Preparation') { // for display purposes
      // Get some code from a GitHub repository
      git 'https://github.com/jglick/simple-maven-project-with-tests.git'
      // Get the Maven tool.
      // ** NOTE: This 'M3' Maven tool must be configured
      // **       in the global configuration.           
      mvnHome = tool 'M3'
   }
   stage('Build') {
      // Run the maven build
      if (isUnix()) {
         sh "'${mvnHome}/bin/mvn' -Dmaven.test.failure.ignore clean package"
      } else {
         bat(/"${mvnHome}\bin\mvn" -Dmaven.test.failure.ignore clean package/)
      }
   }
   stage('Results') {
      junit '**/target/surefire-reports/TEST-*.xml'
      archive 'target/*.jar'
   }
}



No comments:

Post a Comment

Hyderabad Trip - Best Places to visit

 Best Places to Visit  in Hyderabad 1.        1. Golconda Fort Maps Link :   https://www.google.com/maps/dir/Aparna+Serene+Park,+Masj...