Jenkins - GradedJestRisk/cicd-training GitHub Wiki

Structure

Where to find:

  • home: ~/jenkins
  • workspace: workspace/
  • project definition: jobs//config.xml

Pipeline

Overview:

  • define a step stage <STEP_LABEL>
  • checkout-code git <REPO_URL>
  • launch command in a shell sh <COMMAND>

Template

node{
    stage 'check-out from GitHub'
    git 'https://github.com/GradedJestRisk/spring-petclinic.git'
    
    stage 'compile'
    sh 'mvn clean package'    
}
⚠️ **GitHub.com Fallback** ⚠️