hudson.plugins.git.GitException: Invalid URL http://192.168.0.17:7990/scm/sour/${REPO_NAME}.git

Jenkins JIRA | tobias schaber | 2 years ago
  1. 0

    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

    Jenkins JIRA | 2 years ago | tobias schaber
    hudson.plugins.git.GitException: Invalid URL http://192.168.0.17:7990/scm/sour/${REPO_NAME}.git
  2. 0

    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

    Jenkins JIRA | 2 years ago | tobias schaber
    hudson.plugins.git.GitException: Invalid URL http://192.168.0.17:7990/scm/sour/${REPO_NAME}.git
  3. 0

    [JIRA] [git-plugin] (JENKINS-31108) Git-Publisher should allow to push tags from a shallow clone

    Google Groups | 1 year ago | pub@loomchild.net (JIRA)
    hudson.plugins.git.GitException: Can't push from shallow repository using git client older than 1.9.0
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Jenkins git submodule update fails

    Stack Overflow | 10 months ago | SlimCheney
    hudson.plugins.git.GitException: Command "git.exe submodule update --init --recursive" returned status code 128: stdout: stderr: Cloning into 'my-submodule'... Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. fatal: clone of 'git@bitbucket.org:team/my-submodule.git' into submodule path 'my-submodule' failed
  6. 0

    [JIRA] (JENKINS-38860) Git plugin using local config to update submodules

    Google Groups | 2 months ago | bdani...@preemptsecurity.com (JIRA)
    hudson.plugins.git.GitException: Command "C:\Program Files\Git\bin\git.exe submodule update --init --recursiveold_path/to/sub" returned status code 1:<br>stdout: <br>stderr: error: pathspec 'old_path/to/sub' did not match any file(s) known to git.<br><br>

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. hudson.plugins.git.GitException

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

      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.checkCredentials()
    2. org.jenkinsci.plugins
      CliGitAPIImpl$7.execute
      1. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.checkCredentials(CliGitAPIImpl.java:2259)
      2. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1171)
      3. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:87)
      4. org.jenkinsci.plugins.gitclient.CliGitAPIImpl$7.execute(CliGitAPIImpl.java:1492)
      4 frames
    3. Hudson GIT plugin
      GitPublisher.perform
      1. hudson.plugins.git.GitPublisher.perform(GitPublisher.java:298)
      1 frame
    4. Hudson
      AbstractBuild$AbstractBuildExecution.performAllBuildSteps
      1. hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
      3. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734)
      3 frames
    5. Hudson Maven Embedder
      MavenModuleSetBuild$MavenModuleSetBuildExecution.post2
      1. hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1040)
      1 frame
    6. Hudson
      Run.execute
      1. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683)
      2. hudson.model.Run.execute(Run.java:1770)
      2 frames
    7. Hudson Maven Embedder
      MavenModuleSetBuild.run
      1. hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529)
      1 frame
    8. Hudson
      Executor.run
      1. hudson.model.ResourceController.execute(ResourceController.java:89)
      2. hudson.model.Executor.run(Executor.java:240)
      2 frames