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

Git parameter doesn't list branches and tags

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • git-parameter-plugin
    • None
    • git parameter plugin version version_444.vca_b_84d3703c2
      git plugin version 5.7.0
      git client plugin 6.3.0

      I am getting this error:

      • The default value has been returned
      • No Git repository configured in SCM configuration or plugin is configured wron
      • Please check the configuration

      I am using the pipeline script as you mentioned in the documentation:

      pipeline {
        agent any
        parameters {
          gitParameter type: 'PT_BRANCH',
                       name: 'A_BRANCH',
                       branchFilter: 'origin/(.*)',
                       defaultValue: 'master',
                       description: 'Choose a branch to checkout',
                       selectedValue: 'DEFAULT',
                       sortMode: 'DESCENDING_SMART'
        }
        stages {
          stage('Example') {
            steps {
              git branch: params.A_BRANCH,
                  url: 'https://github.com/jenkinsci/git-plugin.git'
            }
          }
        }
      }

       

            Unassigned Unassigned
            hakankilic Hakan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: