amuniz / bitbucket-branch-source-plugin

5 stars 2 forks source link

branch source plugin shortens git repo location #9

Open Kollerb04 opened 7 years ago

Kollerb04 commented 7 years ago

Occurs in 2.1.1 and 2.1.0. My first post so forgive me if it landed in the wrong place. Bitbucket base url is http://something/bitbucket/. The team job is created, branches and repos are indexed properly. But all builds fail with trying to adress the repo with http://something/scm/someuser/repo.git while it should start with http://something/bitbucket/... ?

ERROR: Error fetching remote repo 'origin' hudson.plugins.git.GitException: Failed to fetch from http://something/scm/someuser/repo.git at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:806) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1070) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1101) at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:109) at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:130) at org.jenkinsci.plugins.workflow.multibranch.SCMBinder.create(SCMBinder.java:107) at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:232) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:404) Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress http://something/scm/someuser/repo.git +refs/heads/master" returned status code 128: stdout: stderr: fatal: repository 'http://something/scm/someuser/repo.git' not found

Jenkins ver 2.36 all plugins are up to date https://issues.jenkins-ci.org/browse/JENKINS-42190

fluky commented 7 years ago

+1

eloo commented 7 years ago

same here :/

spotlesscoder commented 7 years ago

For me, it is similar. It takes forever at the step

git fetch --tags --progress http://something/scm/someuser/repo.git +refs/heads/master

(Masked : and organizationname)

image

spotlesscoder commented 7 years ago

Ok, the error might be a different one:

The final result of the Job is the following:

image