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

Git parameter 'Parameter Type ' not set correctly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • job-dsl-plugin
    • None
    • Jenkins ver. 2.164.2
      Job DSL 1.72
      Git Parameter Plug-In 0.9.10

      I'm trying to setup pipeline jobs with the Job DSL plugin but it seems to fail to set the Parameter Type correctly to Branch or Tag and sets it to Branch instead.

      pipelineJob('Test-DSL-Pipeline') {
          parameters {
              gitParameterDefinition {
                  name('GIT_BRANCH')
                  type('BRANCH_TAG')
                  defaultValue('origin/master')
                  description('Name of the branch or tag to check out')
                  branch('')
                  branchFilter('.*')
                  tagFilter('*')
                  sortMode('DESCENDING_SMART')
                  selectedValue('DEFAULT')
                  useRepository('')
                  quickFilterEnabled(true)
              }
          }
      }
      

            daspilker Daniel Spilker
            jansohn Robin Jansohn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: