Hi All,
I have a pipeline that starts out like this:
pipeline {
agent any
parameters {
string(defaultValue: 'develop', description: 'branch', name: 'Branch')
}
stages {
stage('Checkout') {
steps {
checkout([$class: 'GitSCM', branches: [
[name: 'refs/remotes/origin/${params.Branch}']
When the project it runs because the parameter isn't being inserted.:
> C:\Program Files (x86)\Git\cmd\git.exe rev-parse "refs/remotes/origin/${params.Branch}^{commit}" # timeout=10
> C:\Program Files (x86)\Git\cmd\git.exe rev-parse "refs/remotes/origin/refs/remotes/origin/${params.Branch}^{commit}" # timeout=10
> C:\Program Files (x86)\Git\cmd\git.exe rev-parse "refs/remotes/origin/${params.Branch}^{commit}" # timeout=10
What am I doing wrong? Thanks,
-Michael