This issue is archived. You can view it, but you can't modify it. Learn more

ExportXMLWordPrintable

      I'd like to be able to share recommended defaults for options directives. My initial use case was sharing steps through shared libraries.

       

      // vars/defaultOptionsConfig.groovy
      call() {
          timestamps()
      }
      
      options {
         defaultOptionsConfig()
         ansiColor('xterm')
      }

       

      At the same time, It'd also be nice to be able to be able to shared directives generally, so I didn't want to scope the request down too far.

       

      // vars/defaultOptions.groovy
      call() {
         options {
             timestamps()
         }
      }
      
      pipeline {
      ...
         defaultOptions()
         stages {
             ...
         }
      }

       

            Assignee:
            Unassigned
            Reporter:
            Robby Pocase
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: