Skip to content

Instantly share code, notes, and snippets.

@garunski
Created January 6, 2018 02:26
Show Gist options
  • Select an option

  • Save garunski/09afad4d3881cb7e46580f6c7ad94ec2 to your computer and use it in GitHub Desktop.

Select an option

Save garunski/09afad4d3881cb7e46580f6c7ad94ec2 to your computer and use it in GitHub Desktop.
#!/usr/bin/groovy
podTemplate(
label: 'jenkins-pipeline',
inheritFrom: 'default',
containers: [
]
) {
node ('jenkins-pipeline') {
stage('Get latest version of code') {
checkout scm
}
stage('Code Formatting checks') {
}
stage('Build') {
}
stage('Run Unit Tests') {
}
stage('Run Code Coverage') {
}
stage('Deploy Local') {
}
stage('Run Integration Tests') {
}
stage('Deploy Production') {
}
stage('Run Post Deployment Tests') {
}
} // end node
} // end podTemplate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment