Am 03.11.2009 um 20:24 schrieb vasof:
> I need to update a job configuration file from a client program
> using the
> Hudson API before calling a job build, then I need to revert back to
> the
> original configuration. Is there a way to refresh the config.xml
> file for an
> specific job? Something similar to /reload but just for an specific
> job.
Hello,
I do not know how your workflow would be exactly. Otherwise you could:
- do a GET to
http://HOST/hudson/job/JOBNAME/config.xml to get the
current configuration
- change the configuration locally
- do a POST to
http://HOST/hudson/job/JOBNAME/config.xml with your
configuration (will refresh),
- start your build by POSTing to
http://HOST/hudson/job/JOBNAME/build- restore the old version after the build ended via POST again.
Regards
Mirko
---------------------------------------------------------------------
To unsubscribe, e-mail:
[hidden email]
For additional commands, e-mail:
[hidden email]