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

Safe restart is not safe when some jobs are running

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • core
    • None

      I have a sample Jenkinsfile is here:

      pipeline {
          agent {
              label 'master'
          }
          
          stages{
              stage('df'){
                  steps{
                      sleep 199999
                      echo "df"
                  }
              }
          }
      }
      

      I execute the safeRestart once above pipeline was running.

      Expected: Jenkins will restart when the job is completed.
      Result: Jenkins restart immediately

      Jenkins ver. 2.150.3

      The URL is http://localhost:8080/safeRestart

            jeet jitender kumar
            surenpi Rick
            Votes:
            8 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated: