Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-41905

Periodic Reincarnation plugin does not work with Pipeline job type

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Steps to reproduce:

      1. Configure Periodic Reincarnation to restart jobs with RegEx "some string"
      2. Create FreeStyle Job that outputs "some string" and exits 1
      3. Create Pipeline Job that outputs "some string" and exits 1
      4. Run both jobs

      FreeStyle job is restarted, Pipeline Job is not.

      Detailed job configs in my testing:

      FreeStyleJob shell step:

      echo "some string" ; exit 1
      

      PipelineJob script:

      node {
          stage('Test') {
              echo 'some string'
              sh "fail now"  //bad command
          }
      }
      

        Attachments

          Activity

          Hide
          pharman Torben Thellefsen added a comment -

          Issue still exists. Example declarative pipeline to demonstrate the problem:

          pipeline {
              agent any
              stages {
                  stage('Test') {
                      steps {
                          error 'some string'
                      }
                  }
              }
          }
          Show
          pharman Torben Thellefsen added a comment - Issue still exists. Example declarative pipeline to demonstrate the problem: pipeline { agent any stages { stage('Test') { steps { error 'some string' } } } }

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            akom Alexander Komarov
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: