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

Handle running Pipeline jobs when going into quietMode

    XMLWordPrintable

Details

    • Improvement
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • thinbackup-plugin
    • None
    • Jenkins LTS 2.60.3
      thinBackup 1.9
      Pipeline 2.5
      other Pipeline: ... plugins in most recent version

    Description

      We've got the thinBackup plugin running regularly (see settings in attached screenshot).

      Lately a pipeline job has been created that runs nigtly. The job has kind of the following pipeline script:

      node {
          stage('master') { // for display purposes
              build job: 'JOB_NAME', parameters: [string(name: 'BRANCH_OR_TAG', value: 'master')], propagate: false, quietPeriod: 1
          }
          stage('branch1') { // for display purposes
              build job: 'JOB_NAME', parameters: [string(name: 'BRANCH_OR_TAG', value: 'blub1')], propagate: false, quietPeriod: 1
          }
          stage('branch2') { // for display purposes
              build job: 'JOB_NAME', parameters: [string(name: 'BRANCH_OR_TAG', value: 'blub2')], propagate: false, quietPeriod: 1
          }
      }

       

      Problem is that the backup process seems to start in the midst of the pipeline build. While the pipeline build is waiting for the next build of a defined job, Jenkins is in quietMode and won't continue to build. So the pipeline job "hangs" and the backup will not be done until manual interaction.

      Maybe the thinBackup plugin could offer a setting to decide on how to handle these situations. Only option that comes to my mind currently is to automatically abort the affected pipeline jobs.

      Attachments

        Activity

          There are no comments yet on this issue.

          People

            tofuatjava Thomas Fürer
            krulls Stephan Krull
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: