Code Monkey home page Code Monkey logo

Comments (9)

achamian avatar achamian commented on July 21, 2024

@aakashd is already looking into it.

from goldberg.

gja avatar gja commented on July 21, 2024

shotgun. I'm trying to make a plugin structure for goldberg

from goldberg.

gja avatar gja commented on July 21, 2024

I added a after_build feature to the config.

It's just a matter of
after_build Proc.new { |build, project|
if (build.status == 'Failed' || (build.status == 'Success' && project.builds[1] == 'failed'))
Pony.mail(:to => oeao, :from => ...)
}

from goldberg.

aakashd avatar aakashd commented on July 21, 2024

@gja - The API that we are planning is as shown in attached gist https://gist.github.com/952006

Let me know what you think about it, and if you have a bandwidth to implement it.

from goldberg.

professor avatar professor commented on July 21, 2024

I'm biased by the way cruisecontrol.rb does this. In the system configuration, one can specify default configurations (ie from address). In the project configuration, one specifies the "to address". If a "to address" is present, then the default behavior would be email on failure and email on first successful after a failure. I would document how to override the default with more interesting behavior.

I'm traveling quite a bit in May, so I'm not able to contribute as much as I can in June.

Todd

from goldberg.

rohitarondekar avatar rohitarondekar commented on July 21, 2024

What's the progress on this? I'm interested in writing a Campfire notifier so that Goldberg can notify a campfire room.

from goldberg.

professor avatar professor commented on July 21, 2024

It's not clear to me who is working on this feature right now.

from goldberg.

aakashd avatar aakashd commented on July 21, 2024

I have worked on this issue, and its already done.

The API is


Project.configure do |config|
  config.rake_task = 'ci'
  config.on_build_failure do |build,notification|
    notification.from('[email protected]').to('[email protected]').with_subject("Build #{build.id} for #{build.project.name} #{build.status}").send
  end
end

from goldberg.

aakashd avatar aakashd commented on July 21, 2024

@Rohit I have added hooks for on_build_completion, on_failure, on_success & on_red_to_green; which you can use to hook the Campfire notifications.

from goldberg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.