[JIRA] (JENKINS-41905) Periodic Reincarnation plugin does not work with Pipeline job type

3 views
Skip to first unread message

regs@akom.net (JIRA)

unread,
Feb 9, 2017, 4:10:01 PM2/9/17
to jenkinsc...@googlegroups.com
Alexander Komarov created an issue
 
Jenkins / Patch JENKINS-41905
Periodic Reincarnation plugin does not work with Pipeline job type
Issue Type: Patch Patch
Assignee: Unassigned
Components: periodic-reincarnation-plugin, pipeline
Created: 2017/Feb/09 9:09 PM
Environment: Jenkins 2.30
Periodic Reincarnation: 1.9
Pipeline: 2.4
Priority: Minor Minor
Reporter: Alexander Komarov

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

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
    }
}
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

regs@akom.net (JIRA)

unread,
Feb 9, 2017, 5:35:02 PM2/9/17
to jenkinsc...@googlegroups.com
Alexander Komarov updated an issue
Change By: Alexander Komarov
Steps to reproduce:

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

FreeStyle job is restarted, Pipeline Job is not.

h2. Detailed job configs in my testing:

FreeStyleJob shell step:

{noformat}

echo "some string" ; exit 1
{noformat}


PipelineJob script:

{code:java}

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

andrew.bayer@gmail.com (JIRA)

unread,
Feb 10, 2017, 2:27:02 PM2/10/17
to jenkinsc...@googlegroups.com

torbenthellefsen@gmail.com (JIRA)

unread,
Jul 18, 2019, 4:19:02 AM7/18/19
to jenkinsc...@googlegroups.com
Torben Thellefsen commented on Patch JENKINS-41905
 
Re: Periodic Reincarnation plugin does not work with Pipeline job type

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

pipeline {
    agent any
    stages {
        stage('Test') {
            steps {
                error 'some string'
            }
        }
    }
}
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)
Reply all
Reply to author
Forward
0 new messages