We want to change wrappers from:

      pipeline {
          agent none
          wrappers {
              timeout(time: 5, unit: 'MINUTES')
              colorize()
          }
          stages {
              stage("foo") {
                  steps {
                      echo "hello"
                  }
              }
          }
      }
      

      To look like this:

      pipeline {
          agent none
          options {
            timeout(time: 5, unit: 'MINUTES')
            colorize()
          }
          stages {
              stage("foo") {
                  steps {
                      echo "hello"
                  }
              }
          }
      }
      

          [JENKINS-40462] Wrappers in options

          James Dumay created issue -
          James Dumay made changes -
          Description Original: We don't want to have

          {code}
          pipeline {
              agent none
              wrappers {
                  timeout(time: 5, unit: 'MINUTES')
                  colorize()
              }
              stages {
                  stage("foo") {
                      steps {
                          echo "hello"
                      }
                  }
              }
          }
          {code}

          To:
          {code}
          pipeline {
              agent none
              options {
                timeout(time: 5, unit: 'MINUTES')
                colorize()
              }
              stages {
                  stage("foo") {
                      steps {
                          echo "hello"
                      }
                  }
              }
          }
          {code}
          New: We want to change wrappers from:
          {code}
          pipeline {
              agent none
              wrappers {
                  timeout(time: 5, unit: 'MINUTES')
                  colorize()
              }
              stages {
                  stage("foo") {
                      steps {
                          echo "hello"
                      }
                  }
              }
          }
          {code}

          To look like this:
          {code}
          pipeline {
              agent none
              options {
                timeout(time: 5, unit: 'MINUTES')
                colorize()
              }
              stages {
                  stage("foo") {
                      steps {
                          echo "hello"
                      }
                  }
              }
          }
          {code}
          Andrew Bayer made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Andrew Bayer made changes -
          Remote Link New: This issue links to "PR #72 (Web Link)" [ 15140 ]
          Andrew Bayer made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Andrew Bayer made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Review [ 10005 ] New: Resolved [ 5 ]
          Liam Newman made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]

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

              Created:
              Updated:
              Resolved: