API to get suitable build configurations ?

Answered

Hi,
I'm wondering whether there's REST API function which would retrieve suitable build configurations for list of VCS files?

Thanks
ET;


VS plugin does that with POST which seems to be not public

POST ....
Content-Type: text/xml
User-Agent: MS Visual Studio/12.0
Cookie: xmlrpcsessionId=VjNV5dFrzDQPyUpoKUbNwZ1cxT00B7R5
Content-Length: 1058
Connection: Close

<?xml version="1.0"?>
<methodCall>
  <methodName>VersionControlServer.getSuitableConfigurations</methodName>
  <params>
    <param>
      <value>
        <array>
          <data>
            <value>
              <string>perforce://server:1666:////file1</string>
            </value>
            <value>
               <string>perforce://server:1666:////file2</string>
            </value>
          </data>
        </array>
      </value>
    </param>
  </params>
</methodCall>

 

 

1 comment
Comment actions Permalink
Official comment

Hi Eduard,

There's no such feature, suitable configurations intended to use with IDE plugins and command-line remote run tool and part of xml-rpc which could be changed in future.

As workaround you could create simple plugin which would extends 'rest-api' plugin (see plugin dependencies documentation page, and 'contrib' part of 'rest-api' plugin). This plugin could provide simple resource which would call 

jetbrains.buildServer.serverSide.SuitableConfigurationsProvider#getSuitableConfigurations

Also note that 'vcs paths' have special format, 'vcs-type://vcs-specific-data'

Please sign in to leave a comment.