-
Type:
Bug
-
Resolution: Cannot Reproduce
-
Priority:
Major
-
Component/s: git-parameter-plugin
-
None
-
Environment: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'
}
}
}
}
Â