Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Supercharge your CI with pipelines

Supercharge your CI with pipelines

Find out what CI pipelines are and get ready to build your own! We’re touching on the basics, going through the potential applications of pipelines and giving you practical tips on how to apply them to your project.

Mikolaj Leszczynski

June 28, 2017
Tweet

More Decks by Mikolaj Leszczynski

Other Decks in Programming

Transcript

  1. #babylonLondroid #babylonLondroid • What are pipelines? • Building a Jenkins

    pipeline • Our experiences - tips and pitfalls to avoid Outline
  2. #babylonLondroid node { stage('checkout') { checkout scm } stage('build') {

    sh './gradlew assemble' } stage(‘test') { sh './gradlew unitTest' } }
  3. #babylonLondroid node { stage('checkout') { checkout scm } stage('build') {


    sh './gradlew assemble'
 } stage(‘test') { sh './gradlew unitTest' } }
  4. #babylonLondroid node { stage('checkout') {
 checkout scm
 }
 parallel(
 'build':

    {
 sh './gradlew assemble'
 },
 'test': {
 sh './gradlew unitTest'
 }
 )
 }
  5. #babylonLondroid node { stage('checkout') {
 checkout scm
 }
 parallel(
 'build':

    {
 sh './gradlew assemble'
 },
 'test': {
 sh './gradlew unitTest'
 }
 )
 }
  6. #babylonLondroid node {
 stage('checkout') {
 checkout scm
 stash 't3h c0dez'


    }
 }
 parallel(
 'build': {
 node {
 unstash 't3h c0dez'
 sh './gradlew assemble'
 }
 },
 'test': {
 node {
 unstash 't3h c0dez'
 sh './gradlew unitTest'
 }
 }
 )
  7. #babylonLondroid stage('Manual-test') {
 timeout(time:3, unit: 'DAYS') {
 node { //

    You’re going to hell input ( message: 'Approve build?’, ok: ‘Approve' ) }
 }
 }