Add support for declarative pipeline env var population

XMLWordPrintable

      The plugin currently supports "scripted pipelines" thanks to the withAWSParameterStore pipeline method. It would be great if there was similar first-class support for "declarative pipelines".

      An example of what this might look like:

       

      pipeline {
          environment {
              EXAMPLE = awsparamstore(path: '/service', credentialsId: '', naming: 'relative', recursive: true, regionName: 'eu-west-1')
          }    
      
          stages {
              stage('stage') {
                  steps {
                      sh "echo look at me using $EXAMPLE_APP_PARAM from /service/app/param"
                  }
              }
          }
      }
      

      Would you be happy to receive a pull request on GitHub adding this functionality? If so, I'd be happy to submit it. I would envision the arguments to the awsparamstore helper mirroring those of the scripted pipeline helper.

       

      (Thanks for the helpful library!)

            Assignee:
            Rik Turnbull
            Reporter:
            Aidan Steele
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: