3

Is it possible to trigger build of some specific revision remotely?
As I can see it is possible to configure authentication token only.
But not revision.
Now I use following URL in SVN post-commit script to call build remotely after commit:
http://tsthost/hudson/view/ci/job/tst_trunk/build?token=CHECK_TST_TRUNK

But I would like to use something like next URL to build specific revision: http://tsthost/hudson/view/ci/job/tst_trunk/build?token=CHECK_TST_TRUNK&revision=123

Is there a plugin for this purpose?

Volodymyr Bezuglyy
  • 16,295
  • 33
  • 103
  • 133

1 Answers1

2

You can use next approach:

  1. Make your build parameterized.
  2. Add parameter revision (with default value HEAD to support regular runs)
  3. In build script add line svn update -r $revision.
Steve Weet
  • 28,126
  • 11
  • 70
  • 86
Sergey Grinev
  • 34,078
  • 10
  • 128
  • 141
  • It will not help. There could be several commits before HUDSON starts to update working copy. – Volodymyr Bezuglyy Jan 20 '12 at 13:41
  • I meant to run update in your hudson job. Right before the actions you want to do to this specific revision are going to be performed. – Sergey Grinev Jan 20 '12 at 14:53
  • What exactly revision should I use in update? I need automated builds. Who will set this revision? – Volodymyr Bezuglyy Jan 23 '12 at 09:37
  • In your question you said `But I would like to use something like next URL to build specific revision: http://tsthost/hudson/view/ci/job/tst_trunk/build?token=CHECK_TST_TRUNK&revision=123` -- so the caller of the build should know the revision. – Sergey Grinev Jan 23 '12 at 13:04