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

Pass custom parameters to job-dsl via pipeline step jobDsl

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Minor Minor
    • job-dsl-plugin
    • None

      Be able to pass custom parameters to job scripts via the jobDsl pipeline step.

       

      Example:

      node {
          jobDsl targets: ['jobs/projectA/*.groovy', 'jobs/common.groovy'].join('\n'),
                 removedJobAction: 'DELETE',
                 removedViewAction: 'DELETE',
                 lookupStrategy: 'SEED_JOB',
                 params: [param1: 'test', param2: myExpr]
      }
      

       

      See: https://groups.google.com/forum/?fromgroups#!topic/job-dsl-plugin/_EtDfuvBhs4

            vqrs Christian V
            vqrs Christian V
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: