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

Pass custom parameters to job-dsl via pipeline step jobDsl

    • 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

          [JENKINS-44128] Pass custom parameters to job-dsl via pipeline step jobDsl

          Christian V created issue -
          Daniel Spilker made changes -
          Link New: This issue is related to JENKINS-36679 [ JENKINS-36679 ]
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Daniel Spilker made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          Aaron D. Marasco made changes -
          Link New: This issue is related to JENKINS-51144 [ JENKINS-51144 ]

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

              Created:
              Updated:
              Resolved: