Steps to reproduce:
FreeStyle job is restarted, Pipeline Job is not.
FreeStyleJob shell step:
echo "some string" ; exit 1
PipelineJob script:
node { stage('Test') { echo 'some string' sh "fail now" //bad command } }
Issue still exists. Example declarative pipeline to demonstrate the problem:
pipeline { agent any stages { stage('Test') { steps { error 'some string' } } } }