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
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/10da89a4-c57b-404c-acc9-cbf57b6808d2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.