monitoring a subversion repository for commit notifications.monitoring a mercurial repository for push notifications.You can turn certificate verification back on by passing :verify_ssl => true. https is supported without performing certificate verification (some ci servers such as thoughtworks go generates a self signed cert that would otherwise be rejected without significant messing around). See documentation for more details.īasic authentication is supported by passing :user => 'user', :password => 'password' to the Chicanery::Cctray constructor. See documentation for more information.įor a circleci project, monitor the links, or. This includes thoughtworks go, tddium, travisci, circleci, jenkins, teamcity, cc.net and several others:įor a jenkins or hudson server, monitor For a go server, monitor For a travis ci project, monitor įor a tddium project, monitor the link 'Configure with CCMenu' which will look something like įor team city, monitor the (requires credentials) or for guest. when_recovered - the website was previously down and is now upĬurrently only ci servers that can provide cctray reporting format are supported.when_crashed - the website was previously up and is now down.when_down - the website did not responded with a 2xx HTTP status.when_up - the website responded with a 2xx HTTP status.The following callbacks may be received after checking a web site: when_commit - when a new commit is detected in the repositoryĬurrently only git repositories are supported.The following callbacks may be received after checking a source repository: when_fixed - when a previously failing job passes.when_broken - when a previously passing job fails.when_failed - when a job finishes unsuccessfully.when_succeeded - when a job finishes successfully.when_started - when a new job has started.The following callbacks may be received after checking a CI server: The 'when_run' callback is executed on every poll. If you want to specify an alternate location for this state file, add the following line to your configuration file: persist_state_to ' /tmp/build_state ' Callbacks General This is then restored during the next execution to detect events such as a new build succeeding/failing. You'll notice a file called 'state' is created which represents the state at the last execution. Or to continuously poll every 10 seconds, add the following line to the configuration: poll_period 10 Now you can schedule the following command with cron: chicanery myconfiguration This file is just a ruby file that can make use of a few configuration and callback methods: require ' chicanery/git ' include Chicanery :: Git git ' chicanery ', '. Installation $ gem install chicaneryĬreate a configuration file. State is persisted between executions so that it be scheduled to run regularly with crontab or it can simply be run as a long polling process. If this is what you're looking for, take a look at build reactor instead.Īny kind of action can be taken in response to these events - playing a sound, announcement in an irc session, firing a projectile at a developer, emitting an odour etc. This is intended to run unattended on a server and is not really intended for local notifications on a developer's machine. This is a command line tool to trigger any kind of action in response to any interesting event in a software development project (such as build server events, commit events, deployment events, etc.).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |