Skip to content

Do not show any branches(Retrieving Git references...) #30

Description

@DaiYuanchuan

Jenkins :2.346.1
Git Parameter Plug-In :0.9.17

Maybe there is something wrong with my setting,It only shows (Retrieving Git references...) , do not show any branches...

pipeline {
agent any
parameters {
gitParameter name: 'BRANCH',
type: 'PT_BRANCH',
branchFilter: 'origin/(.*)',
defaultValue: 'origin/master',
selectedValue: 'DEFAULT',
sortMode: 'DESCENDING_SMART',
description: 'Select your branch or tag.'
}
stages {
stage('pull project') {
steps {
checkout([$class: 'GitSCM', branches: [[name: '${params.BRANCH}']], extensions: [], userRemoteConfigs: [[credentialsId: 'fff04102-cb39-49e0-a1d3-363db603d074', url: 'git@xx:apps/renren-generator.git']]])
}
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions