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

safeRestart is not safe when pipelines are run on ephemeral slaves

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • safe-restart
    • None
    • Jenkins 2.138.1

      safeRestart currently doesn't seem to wait for pipelines to end before issuing a restart; it only waits for a step to end. Unfortunately, after restart, Jenkins attempts to resume the build on the same slave. In our cases – slaves launched on-demand from Mesos – the same slave does not and will never exist again, resulting in pipeline failure.

      JENKINS-51323 exists for this issue, however it is marked as a minor improvement. I would consider it a major bug, because with ephemeral slaves, every single pipeline will fail if a safeRestart is issued.

            Unassigned Unassigned
            shulima Margaret Lewicka
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: