gearman-plugin/src/test/java/hudson/plugins/gearman
zaro0508 42c95ac958 add gearman worker to set build descriptions
This commit adds another management worker for setting a build's descriptions.
The worker will lookup the build by it's build_id (jobName:jobId)
and if it can find it then will set the description and return with COMPLETED.
If it cannot find the build or cannot set the description for any reason
it will return FAILED.

This commit also adds teh build_id to the data returned by the StartJobWorker.

Usage:

  client = gear.Client()
  client.addServer('localhost')
  client.waitForServer()
  job_name = 'set_description:JenkinsHostName'
  data = {'build_id':"pep8:2013-05-15_17-32-07",'description':"<h1>My Test Build</h1>"}
  job = gear.Job(job_name, simplejson.dumps(data))
  client.submitJob(job)

Change-Id: I4990772d591d27bbb3b4f20abfb4d988077b4995
2013-05-18 11:26:15 -07:00
..
AbstractWorkerThreadTest.java add new unit tests for plugin 2013-03-20 21:11:27 -07:00
ExecutorWorkerThreadTest.java fix intermittent test failure 2013-04-30 14:51:12 -07:00
FakeWorkerThread.java add new unit tests for plugin 2013-03-20 21:11:27 -07:00
GearmanPluginConfigTest.java fix for bug 1162887 2013-05-01 10:20:45 -07:00
GearmanPluginUtilTest.java refactor tests to use HudsonTestCase setup and tearDown methods 2013-04-24 12:14:51 -07:00
GearmanProxyTest.java Reference jenkins master in workers. 2013-04-29 13:25:58 -07:00
ManagementWorkerThreadTest.java add gearman worker to set build descriptions 2013-05-18 11:26:15 -07:00