jenkinsci / scm-sync-configuration-plugin

Jenkins scm-sync-configuration plugin
https://plugins.jenkins.io/scm-sync-configuration/
MIT License
115 stars 123 forks source link

URL wrongly manipulated #53

Open nbuso opened 7 years ago

nbuso commented 7 years ago

Jenkins 2.35 SCM Sync Configuration Plugin 0.0.10

Seem a wrong manipulation of the scm URL is done, setting the following URL: git@wp-jenkins-git:/wp-jenkins-cfg.git

I obtain this error in tomcat logs: [INFO] Executing: /bin/sh -c cd '/net/isilon8/web-hx/webadmin/tomcat/bases/es/tc-es-coreci/temp' && 'git' 'ls-remote' 'git@wp-jenkins-git/wp-jenkins-cfg.git' [INFO] Working directory: /net/isilon8/web-hx/webadmin/tomcat/bases/es/tc-es-coreci/temp Feb 02, 2017 10:56:31 AM hudson.plugins.scm_sync_configuration.ScmSyncConfigurationPlugin doCheckGitUrl WARNING: Repository at git@wp-jenkins-git:/wp-jenkins-cfg.git is inaccessible

As from the logs, seem a columns (:) was stripped out from the original URL given at configuration time.

Changing the URL in: git@wp-jenkins-git::/wp-jenkins-cfg.git

Note the double colons (::) it's working fine after disabling and re-enabling with this configuration.