Skip to content

Instantly share code, notes, and snippets.

@initcron
Created December 21, 2020 03:45
Show Gist options
  • Select an option

  • Save initcron/7dcedd5a6b0353e12396a465e23cc4a3 to your computer and use it in GitHub Desktop.

Select an option

Save initcron/7dcedd5a6b0353e12396a465e23cc4a3 to your computer and use it in GitHub Desktop.

Revisions

  1. initcron created this gist Dec 21, 2020.
    29 changes: 29 additions & 0 deletions sample_jenkins_pipeline.Jenkinsfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,29 @@
    pipeline {
    agent any
    stages{
    stage("one"){
    steps{
    echo 'step 1'
    sleep 3
    }
    }
    stage("two"){
    steps{
    echo 'step 2'
    sleep 9
    }
    }
    stage("three"){
    steps{
    echo 'step 3'
    sleep 5
    }
    }
    }

    post{
    always{
    echo 'This pipeline is completed..'
    }
    }
    }