Trouble setting up github integration and deploy tracking

Matt Smith's Avatar

Matt Smith

22 May, 2012 12:09 AM

I've setup this rake task to run on deploy:

task :notify_airbrake do

puts 'Notifying Airbrake of Deploy'
current_revision = `git rev-parse HEAD`
local_user = `git config --get github.user`
repository = `git config --get remote.origin.url`
puts `rake airbrake:deploy TO=production REVISION=#{current_revision} REPO=#{repository} USER=#{local_user}`

end

But as the attached file shows it only records the hash and doesn't link the revision to github. Is there something else I'm missing?

  1. Support Staff 2 Posted by Morgan on 11 Jun, 2012 04:30 PM

    Morgan's Avatar

    Hello Matt,

    Thank you for bringing this issue to our attention. Are you still having trouble getting the deploy to link to github? Please let me know, I will look further into this issue.

    From,
    Morgan

  2. 3 Posted by erwinmatthijssen on 31 Jul, 2012 08:11 PM

    erwinmatthijssen's Avatar

    Hi Morgan,

    I have the same issue on my account. I use the exact same script to notify airbrake: the deploy gets listed, but no links back to github.

    Can you help fix this. The Github integration was a big draw for us.

    Erwin

  3. Support Staff 4 Posted by Morgan on 31 Jul, 2012 11:39 PM

    Morgan's Avatar

    Hello Erwin,

    Please let me know what version of airbrake you are using? Please update to the most current one if yours is out of date. Update me when you get a chance!

    From,
    Morgan

  4. 5 Posted by erwinmatthijssen on 01 Aug, 2012 05:48 AM

    erwinmatthijssen's Avatar

    Hi Morgan,

    We are using version 3.1.2 in our project, which I think is the latest since we updated it to try and solve this issue ourselves.

    Any help appreciated!
    Erwin

  5. Support Staff 6 Posted by Morgan on 03 Aug, 2012 10:58 PM

    Morgan's Avatar

    Hi Guys,

    I was troubleshooting this and we missed some double quotes.
    This one works:

    task :notify_airbrake do
      puts 'Notifying Airbrake of Deploy'
      current_revision = "`git rev-parse HEAD`"
      local_user = "`git config --get github.user`"
      repository = "`git config --get remote.origin.url`"
      puts `rake airbrake:deploy TO=production REVISION=#{current_revision} REPO=#{repository} USER=#{local_user}`
    end
    

    Pleas let me know if you run into any other errors!
    Have a great weekend!

    From,
    Morgan

  6. Morgan closed this discussion on 03 Aug, 2012 10:58 PM.

Comments are currently closed for this discussion. You can start a new one.