Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Password-protected build for TFS2010

Tags:

tfs

tfsbuild

I have created a TFS build definition to create our software releases. Now I want to restrict access to start this build. Main goal is to avoid starting a release build by accident. Is there a way to either

  • make the build available/visible/startable only to a certain account or
  • protect the build definition with a password?

EDIT: finally I came up with an own solution for part 2 of the question

I edited the buildprocesstemplate and added a custom argument (following this howto) which I test at the very start of the buildprocess. If one tries to start the build without entering the password, the build will fail with an exception. Of course this is not a supersafe protection by any means, but that was not the intention in this case.

enter image description here

like image 323
ChriPf Avatar asked Apr 03 '12 13:04

ChriPf


People also ask

How do I add a build service to TFS 2010?

Enter the credentials of a user (like DOMAIN\_tfsInstaller) with Admin permissions on TFS 2010 and click OK Select the Team Project Collection you want to add the Build Service and click Connect (You may be prompted again for credentials – just enter them a second time)

How do I test the build agent and TFS server?

Use the Test Connection on the Build Agent Properties dialog to test communications between the Build Agent, TFS Server and Build Controller.

What is password protect PDF?

Password Protect PDF. Encrypt your PDF with a password so it can't be removed. Encrypt your PDF with a password to prevent unauthorized access to the file content, especially for file sharing or archiving. All files and passwords are transferred using secure SSL connections.


1 Answers

Right click on the build definition > Security > Select a group you wish to control >

Check the Deny permission for:

Queue builds

Edit build definition

View build definition

like image 178
KMoraz Avatar answered Nov 15 '22 07:11

KMoraz