Embedding username and password in the URL of an https bitbucket repository
has been problematic for the git plugin.
https://issues.jenkins-ci.org/browse/JENKINS-28460 and
https://issues.jenkins-ci.org/browse/JENKINS-22694 both report issues with
that form.

You will probably have better results if you use the form "
https://bitbucket.org/scm/camps/xxx.git"; and then define a username and
password credential in Jenkins.

Mark Waite

On Tue, Aug 30, 2016 at 2:10 AM Readonly Guilhermo <
[email protected]> wrote:

> Hi dear enthusiastic Jenkins users, I hope one of you can help me ! ;)
>
> I'm facing a real problem since we use git plugin instead of svn.
>
> While the git plugin is fetching a repo (on a stash server) nothing happen
> until we fall into the timeout period. This behavior is systematic and we
> never succeed in passing this step.
>
> *Versions :*
>
> jenkins : 2.0
> git plugin : 2.4.4
>
>
> *here are the logs :*
>
>
> 17:25:53 Started by user Admin
> 17:25:53 Building in workspace C:\jenkins\.jenkins\workspace\XXXXXX
> 17:25:53  > git.exe rev-parse --is-inside-work-tree # timeout=10
> 17:25:54 Fetching changes from the remote Git repository
> 17:25:54  > git.exe config remote.origin.url
> https://[email protected]/scm/camps/xxxxxx.git # timeout=10
> 17:25:54 Fetching upstream changes from
> https://[email protected]/scm/camps/xxxxxx.git
> 17:25:54  > git.exe --version # timeout=10
> 17:25:54 using .gitcredentials to set credentials
> 17:25:54  > git.exe config --local credential.username userXxxx #
> timeout=10
> 17:25:54  > git.exe config --local credential.helper store
> --file=\"C:\Windows\TEMP\git1311771030924317267.credentials\" # timeout=10
> 17:25:54  > git.exe -c core.askpass=true fetch --tags --progress
> https://[email protected]/scm/camps/xxxxxx.git
> +refs/heads/*:refs/remotes/origin/*
> 17:35:54 ERROR: Timeout after 10 minutes
> 17:35:54  > git.exe config --local --remove-section credential # timeout=10
> 17:35:54 ERROR: Error fetching remote repo 'origin'
> 17:35:54 hudson.plugins.git.GitException: Failed to fetch from
> https://[email protected]/scm/camps/xxxxxx.git
> 17:35:54     at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:810)
> 17:35:54     at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1066)
> 17:35:54     at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1097)
> 17:35:54     at hudson.scm.SCM.checkout(SCM.java:485)
> 17:35:54     at
> hudson.model.AbstractProject.checkout(AbstractProject.java:1269)
> 17:35:54     at
> hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607)
> 17:35:54     at
> jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
> 17:35:54     at
> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
> 17:35:54     at hudson.model.Run.execute(Run.java:1738)
> 17:35:54     at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
> 17:35:54     at
> hudson.model.ResourceController.execute(ResourceController.java:98)
> 17:35:54     at hudson.model.Executor.run(Executor.java:410)
> 17:35:54 Caused by: hudson.plugins.git.GitException: Command "git.exe -c
> core.askpass=true fetch --tags --progress
> https://[email protected]/scm/camps/xxxxxx.git
> +refs/heads/*:refs/remotes/origin/*" returned status code -1:
> 17:35:54 stdout:
> 17:35:54 stderr:
> 17:35:54     at
> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1719)
> 17:35:54     at
> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1463)
> 17:35:54     at
> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:63)
> 17:35:54     at
> org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:314)
> 17:35:54     at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:808)
> 17:35:54     ... 11 more
> 17:35:54 ERROR: null
> 17:35:54 Skipped archiving because build is not successful
> 17:35:54 Finished: FAILURE
>
>
> I don't know what to try more, if one of you have an idea it'll be welcome
> ! :D
>
> Sincerely,
>
> Guilhermo
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/7e0c6e87-16a1-4b3c-b3c0-a4c1c3ef7b96%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/7e0c6e87-16a1-4b3c-b3c0-a4c1c3ef7b96%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtE-OkTkZB6tnkKquzXbJ3nv5qub66O3mSp5Kd8pWe53cA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to