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

Block-scoped "wrapper" options for individual stages

    XMLWordPrintable

Details

    • Pipeline - December

    Description

      Problem
      In Declarative it is not possible to wrap a timeout out side of a stage and not have it utilise the agent.

      stage('Continue deploy') {
        agent none
        steps {
          timeout(time: 1, unit: 'DAYS') {
            input 'Continue deploy?'
          }
        }
      }
      stage('deploy') {
        agent { label 'deployer' }
        steps {
          echo 'deploy'
        }
      }
      

      Solution
      It would be great if we could have something like the following (assuming JENKINS-48379)

      stage('deploy') {
        timeout {
          time: 1
          unit: DAYS
        }
        input {
          input 'Continue deploy?'
        }
        steps {
          echo 'deploy'
        }
      }
      

      Attachments

        Issue Links

          Activity

            People

              abayer Andrew Bayer
              jamesdumay James Dumay
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: