Create a job in Jenkins automatically when a repo is created in Phabricator -


i have repo in phabricator , cloned in local machine.

now want create new jenkins job automatically after creating new repo in phabricator. jenkins api available create new job remotely.

according jenkins:

to create new job, post config.xml url query parameter name=jobname. need send content-type: application/xml header.

i can create job following command using terminal.

curl -x post -h "content-type:application/xml" -d "<project><builders/><publishers/><buildwrappers/></project>" "http://ip:port/createitem?name=aa_test_job1"  

question: how can run command harbormaster create jenkins job , send config.xml file configuration of new job?

guy warner (http://www.guywarner.com/) has done lot of work show how possible. can visit blog post more details: http://www.guywarner.com/2014/05/integrating-jenkins-and-phabricator.html (part 1) , http://www.guywarner.com/2014/06/part-2-integrating-phabricator-and.html (part 2).

the basic idea harbormaster build plan make http request jenkins instance.

we used tutorials setup 100 builds trigger phabricator based on different types of changes.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -