I want to programatically kick off an Anthill job from another system and set some build properties (the Git branch).
What API exists to help me do that?
I want to programatically kick off an Anthill job from another system and set some build properties (the Git branch).
What API exists to help me do that?
An alternative (simpler but less flexible) approach... Create a Trigger on the build workflow and use wget or curl to send an HTTP POST to Anthill passing the required parameters with the POST.
Here is a way to send an HTTP POST using an HTML FORM.
http://anthillizer.com/display/main/How+to+create+a+simple+tool+to+fire+an+AnthillPro+CI+Trigger You can do the same thing with wget.
Hope this helps! Eric
You'll need to the Anthill SDK (click the 'tools' link at the top of the Anthill Pro screen)
Add the
remoting/lib
andremoting/conf
to you classpath. Using these imports:This code will look up a project and workflow then kick off a build.