Automated build requests with custom buildRequesterUserId property get started with an admin ID
The automated build requests are not using buildRequesterUserId for "requestor." Rather they are using the admin ID.
The automation sets the buildRequesterUserId using the code:
propFromGUI = !(value.isEmpty()) ? BuildItemFactory.createBuildProperty("buildRequesterUserId", value) :
BuildItemFactory.createBuildProperty("buildRequesterUserId", adminEmail);
BuildItemFactory.createBuildProperty("buildRequesterUserId", adminEmail);
I can see from the logs and the build requests that are kicked off that buildRequesterUserId is set to the non-admin email (the email of the user requesting the build via rest service). But the builds are still being kicked of by admin ID!
Is there something that can be done to fix this or this is how it will be when the logged in user (admin) is not the same as the user in the buildRequesterUserId?
This question is similar to another I saw here:
Comments
kanjbala jawahar
Feb 20 '17, 9:05 p.m.Build is requested using the code: