-
Patch
-
Resolution: Unresolved
-
Minor
-
None
-
Jenkins 2.30
Periodic Reincarnation: 1.9
Pipeline: 2.4
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.
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 } }
[JENKINS-41905] Periodic Reincarnation plugin does not work with Pipeline job type
Description |
Original:
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 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} |
New:
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} |
Component/s | Original: pipeline [ 21692 ] |
Issue still exists. Example declarative pipeline to demonstrate the problem: