Hi Cyrille,
For cloning repositories I use the credentialsId, like:
checkout changelog: true, poll: true, scm: [$class: 'GitSCM', branches: [[name: 'remotes/origin/master']], userRemoteConfigs: [[credentialsId: '6ab75e78-83c6-423f-97ce-3198c52211a7', url: '
https://github.com/XXXXX']]]
You can find the ID in URL line if you open the Jenkins page holding the credentials.
I think I've seen a ticket in JIRA about specifying these via usernames but they were not yet resolved.
Regards,
Timur
вторник, 20 января 2015 г., 1:59:18 UTC+3 пользователь Cyrille Le Clerc написал: