I am trying to create pipe where user can enter their own git url and branch

pipeline {

    agent any

    parameters {
        stringParam(defaultValue: 'ssh://xxxx/yyyy/zzz.git', description: 
'', name: 'gitUrl')
        stringParam(defaultValue: 'master', description: '', name: 
'gitBranch')
    }

    properties {
        buildDiscarder(logRotator(numToKeepStr:'2'))
        disableConcurrentBuilds()
    }

    stages {

        stage ('checkout') {
            steps {
              git url: '${params.gitUrl}', branch: '${params.branch}'
            }
        }

    }
}


here is the error

> git fetch --tags --progress ${params.gitUrl} 
> +refs/heads/*:refs/remotes/origin/*
ERROR: Error fetching remote repo 'origin'hudson.plugins.git.GitException 
<http://stacktrace.jenkins-ci.org/search?query=hudson.plugins.git.GitException>:
 Failed to fetch from ${params.gitUrl}

 
I can file a bug if it is confirm

Thanks

-Dan


-- 
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/09a163f2-b164-4281-a694-2b1c36212baf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to