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

Jenkins safeExit shuts down while job is running

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • core
    • None
    • jenkins 2.277.3

      The /safeExit URL is exiting Jenkins even when a job is running.

      Steps to Reproduce

      1. Create the following pipeline job that sleeps
        pipeline {
            agent any
        
            stages {
                stage('Sleep') {
                    steps {
                        sh 'sleep 60'
                    }
                }
            }
        }
        
      2. Launch the above job
      3. POST https://myjenkins.com/safeExit

      Expected
      Jenkins goes into quiet mode and shuts down once the above job completes

      Actual
      Jenkins shuts down immediately

            Unassigned Unassigned
            mrichar2 Mark R
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: