[ILUGC] Reg : Jenkins - Declarative pipeline syntax

  • From: Karthikeyan U <karthi.linux.91@xxxxxxxxx>
  • To: ilugc@xxxxxxxxxxxxx
  • Date: Mon, 6 Aug 2018 13:42:18 +0530

Dear All,
to-continue-past-a-failing-stage ?
i  need run stage2 and stage 3 even stage 1 is failed.

pipeline {
    agent none
    stages {
        stage('stage 1')
        {
            agent {    label "master"  }
          steps { *bat "hostname1" *}
         }

         stage('stage 2')
        {
            agent {    label "master"  }
           steps { bat "hostname" }
        }

       stage('stage 3')
        {
            agent {    label "master"  }
           steps { bat "hostname" }
        }

        }
}

[image: image.png]

Regards,
Karthikeyan



_____________________________________
ILUGC List: http://www.freelists.org/list/ilugc
ILUGC Web: http://ilugc.in/

Other related posts:

  • » [ILUGC] Reg : Jenkins - Declarative pipeline syntax - Karthikeyan U