Issue Type: Bug Bug
Assignee: Nicolas De Loof
Components: git
Created: 26/Sep/14 5:37 PM
Description:

Hi,

I'm using Git in a Jenkins process with the following URL:

http://192.168.0.17:7990/scm/sour/${REPO_NAME}.git

where REPO_NAME is given as a Parameter to the Job.

The Source Code Checkout works fine, the URL can be resolved with the variable in it.
At the end of the process I use the "Git Publisher" Post Build Action with following configuration:

Push Only If Build Succeeded (true)
Tag to push $TAG_NAME
Tag message ...
Create new tag (true)
Target remote Name: sources_repo

But now, the GIT URL from above can not be resolved as the variable REPO_NAME can not be resolved. The process Fails with the following exception:


Pushing tag testapp-1.0.0-58 to repo sources_repo
ERROR: Failed to push tag testapp-1.0.0-58 to sources_repo
hudson.plugins.git.GitException: Invalid URL http://192.168.0.17:7990/scm/sour/${REPO_NAME}.git
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.checkCredentials(CliGitAPIImpl.java:2259)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1171)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:87)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$7.execute(CliGitAPIImpl.java:1492)
at hudson.plugins.git.GitPublisher.perform(GitPublisher.java:298)
at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734)
at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1040)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683)
at hudson.model.Run.execute(Run.java:1770)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529)
at hudson.model.ResourceController.execute(ResourceController.java:89)
at hudson.model.Executor.run(Executor.java:240)
Build step 'Git Publisher' marked build as failure

Maybe you could have an eye on this?

Kind regards,

Tobias

Environment: Jenkins 1.581
Git Plugin 2.2.6
Project: Jenkins
Priority: Minor Minor
Reporter: tobias schaber
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

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to