swipely / jenkins-git-notes-plugin

22 stars 6 forks source link

Error when origin is absent #5

Open giorgio-v opened 12 years ago

giorgio-v commented 12 years ago

git-notes plugin: building new notes hash git-notes plugin: updating git notes git-notes plugin: fetching notes git-notes plugin: running command "git fetch -f origin refs/notes/:refs/notes/" with opts {:raise=>true} [workspace] $ git fetch -f origin refs/notes/:refs/notes/ ERROR: Unexpected exit code (128): command: "git fetch -f origin refs/notes/:refs/notes/": result: {:out=>"", :err=>"fatal: 'origin' does not appear to be a git repository\nfatal: The remote end hung up unexpectedly\n", :val=>128} (RuntimeError) /var/lib/jenkins/plugins/git-notes/WEB-INF/classes/lib/build_participant.rb:56:in run' /var/lib/jenkins/plugins/git-notes/WEB-INF/classes/lib/git_updater.rb:20:infetch_notes' /var/lib/jenkins/plugins/git-notes/WEB-INF/classes/lib/git_updater.rb:12:in update!' /var/lib/jenkins/plugins/git-notes/WEB-INF/classes/models/git_notes_publisher.rb:36:inperform' org/jruby/RubyProc.java:258:in call' /var/lib/jenkins/plugins/git-notes/WEB-INF/classes/lib/build_context.rb:14:inset' /var/lib/jenkins/plugins/git-notes/WEB-INF/classes/models/git_notes_publisher.rb:30:in perform' /var/lib/jenkins/plugins/git-notes/WEB-INF/classes/vendor/gems/gems/jenkins-plugin-runtime-0.1.27/lib/jenkins/plugin/proxies/build_step.rb:14:inperform' /var/lib/jenkins/plugins/git-notes/WEB-INF/classes/vendor/gems/gems/jenkins-plugin-runtime-0.1.27/lib/jenkins/plugin/proxies/build_step.rb:22:in boolean_result' /var/lib/jenkins/plugins/git-notes/WEB-INF/classes/vendor/gems/gems/jenkins-plugin-runtime-0.1.27/lib/jenkins/plugin/proxies/build_step.rb:13:inperform'

Build step 'Publish build result as git-notes' marked build as failure

bfulton commented 12 years ago

Thanks for the report. I'd like to get a little more context for your use case. Are you using GitHub to host your remote repository? Are you using Jenkins Git plugin to configure that repo?

giorgio-v commented 12 years ago

Il giorno 11/giu/2012, alle ore 18:49, Bright Fulton reply@reply.github.com ha scritto:

Thanks for the report. I'd like to get a little more context for your use case. Are you using GitHub to host your remote repository? Are you using Jenkins Git plugin to configure that

No, it’s a bitbucket repo, defined before, without the plugin.

Giorgio Valoti


Reply to this email directly or view it on GitHub: https://github.com/swipely/jenkins-git-notes-plugin/issues/5#issuecomment-6249645

bfulton commented 12 years ago

So, you do have a remote, it's just not called origin?

giorgio-v commented 12 years ago

Il giorno 13/giu/2012, alle ore 15:17, Bright Fulton ha scritto:

So, you do have a remote, it's just not called origin?

Exactly. Something like:

[remote "whatever"] ...

Giorgio Valoti

bfulton commented 12 years ago

Got it. I've been wanting to add a few configuration knobs. I'll be sure to include the remote name when I do. Leaving this open for now.

giorgio-v commented 12 years ago

Il giorno 18/giu/2012, alle ore 16:30, Bright Fulton reply@reply.github.com ha scritto:

Got it. I've been wanting to add a few configuration knobs. I'll be sure to include the remote name when I do. Leaving this open for now.

Very good, thank you.

Giorgio Valoti


Reply to this email directly or view it on GitHub: https://github.com/swipely/jenkins-git-notes-plugin/issues/5#issuecomment-6397278