How can I use Jenkins git credentials in groovy script -


i using extensible choice parameter plugin

with groovy script

return ['git','ls-remote','-h', 'git@github.com:company/project.git' ]        .execute().text.split("\\n?[a-f0-9\t]+refs/heads/")        .tolist().tail().collect{ it-> it.trim()} 

this works on older version of jenkins trying migrate , works when using public git hub repo https

i not sure need work. on jenkins 2.60.2 , plugins date


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -