jetbrains.buildServer.serverSide.auth.AccessDeniedException - Trying to run a build from inside another build using REST API

This is the command I'm using:


   curl -s -u "%system.teamcity.auth.userId%:%system.teamcity.auth.password%" %teamcity.serverUrl%/httpAuth/app/rest/buildQueue --request POST --header "Content-Type:application/xml" -d "<build><buildType id=\"General_NasSync\"/></build>"

 

This results in an error:

 

[10:09:45]    Responding with error, status code: 403 (Forbidden).
[10:09:45]    Details: jetbrains.buildServer.serverSide.auth.AccessDeniedException: You do not have "Run build" permission in project with internal id: project197
[10:09:45]    Access denied. Check the user has enough permissions to perform the operation.

1
1 comment

Hi Ike,

 

I'm afraid this is not really available. The explanation is here: https://youtrack.jetbrains.com/issue/TW-41751

0

Please sign in to leave a comment.