|
||||||||
This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira |
- [JIRA] (JENKINS-14131) scm-sync-configura... aherit...@apache.org (JIRA)
- [JIRA] (JENKINS-14131) scm-sync-conf... fcamb...@java.net (JIRA)
- [JIRA] (JENKINS-14131) scm-sync-conf... fcamb...@java.net (JIRA)
- [JIRA] (JENKINS-14131) scm-sync-conf... bertrand.paq...@gmail.com (JIRA)
- [JIRA] (JENKINS-14131) scm-sync-conf... fcamb...@java.net (JIRA)
- [JIRA] (JENKINS-14131) scm-sync-conf... bertrand.paq...@gmail.com (JIRA)
- [JIRA] (JENKINS-14131) scm-sync-conf... bertrand.paq...@gmail.com (JIRA)
To my POV, the maven scm api is not the best way to implement this because :
and
That's why the hudson.plugins.scm_sync_configuration.scms.SCM is made for : provide an abstraction above hudson.scm.SCM to retrieve credentials using jenkins stored credentials (see https://github.com/jenkinsci/scm-sync-configuration-plugin/blob/master/src/main/java/hudson/plugins/scm_sync_configuration/scms/ScmSyncSubversionSCM.java)
Note that for everything else (for the moment, it can change in the future), I rely on maven scm api for standardization about commit, updates, etc...
What is lacking in the Git implementation, is the implementation for the extractScmCredentials().
I must admit I had a hard part making it work (and even... "work" is a big word here...) for the SVN implementation. But yours is totally empty.
That's why if repository is never initialized first, it will never work.