Trigger build with REST and set revision/changelist

When triggering a build with REST, how do you specify the revision number?

REST API is now preferred for this: http://confluence.jetbrains.com/display/TCD8/REST+API#RESTAPI-TriggeringaBuild
However, only a single, short example is provided. It's supposed to be "feature rich". Where are these features listed?

The old method (http://confluence.jetbrains.com/display/TCD8/Accessing+Server+by+HTTP) allowed us to choose the revision by setting a modificationID.

5 comments
Comment actions Permalink

As far as I can see, the support for specifying modificationId has been removed (forgotten?) in new version of REST API.

Please submit an issue at http://youtrack.jetbrains.com/

0
Comment actions Permalink

Thank you. I have created an issue: http://youtrack.jetbrains.com/issue/TW-35911

By the way, where did you look to see what features are available when triggering a build via REST?

0
Comment actions Permalink

Sergey, it appears this no longer works with the old method either. I've tried using the following request:
http://localhost:8034/httpAuth/action.html?add2Queue=TestConfig&modificationId=116759
But it always runs with the latest. If I manually run a custom build, I can select that change just fine.

We're using Perforce, by the way.

0
Comment actions Permalink

If you run a custom build and select a modification list, it would be a history build, not a normal build.

0
Comment actions Permalink

Matthew,

Well, actually specifying modification id on build triggering via REST is supported. See my comment in the issue.

0

Please sign in to leave a comment.