- Allez dans « Application Management », et cliquez sur « Manage service applications ».
- Dans la page « Manage Service Application », cliquez sur la ligne « Project Server Service Application ».
- Dans le ruban, cliquez sur « Permissions ».
- Indiquez le nom du compte de service de TFS, et cliquez sur « Add ».
- Dans la zone du bas, cliquez sur « Full Control », et cliquez sur « OK ».
- Ouvrez votre ou vos instances PWA (http://PS2010/PWA).
- Allez dans « Server Settings »
- Cliquez sur « Manage Users »
- Cliquez sur « New User »
- Dans la zone « * Display Name » indiquez le nom du compte de service « Ex : Compte de service TFS »
- Dans la zone « * User longon account : » saisissez le compte de service « Ex : PS2010\TFSService »
- Dans la zone « Security Groups » sélectionnez « Administrators » et cliquez sur « Add »
- Dans la zone « Security Categories » cliquez sur « Add All >> »
- Pour chaque catégories, sélectionnez dans la liste « Set permissions with Template: » « Administrator » puis cliquez sur « Apply »
- Dans la zone « Global Permissions », sélectionnez dans la liste « Set permissions with Template: » « Administrator » et cliquez sur « Apply »
- Enfin cliquez sur « Save »
- pwaUrl : Adresse de PWA, http://PS2010/Pwa
- tfsUrl : Adresse de TFS, http://PS2010:8080/tfs
Batch :
@echo off
set v_PWA="http://ps2010/pwa"
set v_TFS="http://ps2010:8080/tfs"
cd c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE
set /p v_Question= if you want to register an instance of PWA : %v_PWA% (y or n) ?
if not %v_Question%== y goto Suite
echo Register an instance of PWA : %v_PWA%
TfsAdmin ProjectServer /RegisterPWA /pwa:%v_PWA% /TFSServerURL:%v_TFS%
pause
:Suite
Enregistrement de la relation entre une instance de PWA et une collection de TFS
- pwaUrl : Adresse de l’instance de PWA : http://PS2010/pwa
- tpcUrl : Adresse de la collection de site : http://PS2010:8080/tfs/DefaultCollection
Batch
@echo off
set v_PWA="http://ps2010/pwa"
set v_Collection="http://ps2010:8080/tfs/DefaultCollection"
cd c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE
set /p v_Question= if you want to map this collection project : %v_Collection% (y or n) ?
if not %v_Question%== y goto Suite
echo Map the PWA instance (%v_PWA%) with a team project collection (%v_Collection%)
TfsAdmin ProjectServer /MapPWAtoCollection /pwa:%v_PWA% /collection:%v_Collection%
pause
:Suite
Mise à jour du fichier de mapping
- tpcUrl : Adresse de la collection de projet : http://PS2010:8080/tfs/DefaultCollection
- useDafaultFieldMappings : Permet d’utiliser le mapping par défaut, il contient les champs obligatoire.
- filePath : Permet de spécifier un fichier : c:\mapping.xml
@echo offset v_Collection="http://ps2010:8080/tfs/DefaultCollection"
cd c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE
set /p v_Question= if you want to upload the mapping default : (y or n) ?
if not %v_Question%== y goto Suite
echo Upload default field mappings
TfsAdmin ProjectServer /UploadFieldMappings /collection:%v_Collection% /useDefaultFieldMappings
pause
:Suite
- tcpUrl : Adresse de la collection de projet : http://PS2010:8080/tfs/defaultCollection
- enterpriseProject : Nom du projet dans PWA : Agile Plan
- teamProject : Nom du projet dans TFS : Agile Project Team
- WorkitemTypes : Liste des type de WI à synchroniser : « User Story,Task »
@echo offDésinscription
set v_Collection="http://ps2010:8080/tfs/DefaultCollection"
set v_WIType="User Story"
set v_EnterpriseProject = "Agile Plan"
set v_TeamProject = "Agile Team Project"
cd c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE
set /p v_Question= if you want to register an instance of PWA : %v_PWA% (y or n) ?
if not %v_Question%== y goto Suite
echo Associate an enterprise project plan (%v_EnterpriseProject%) with a team project(%v_TeamProject%), workitem (%v_WIType%)
TfsAdmin ProjectServer /MapPlanToTeamProject /collection:%v_Collection% /enterpriseproject:%v_EnterpriseProject% /teamproject:%v_TeamProject% /workitemtypes:%v_WIType%
echo Now you must to add team members to the enterprise resource pool !!!!
pause
:Suite
- tcpUrl : Adresse de la collection de projet : http://PS2010:8080/tfs/defaultCollection
- enterpriseProject : Nom du projet dans PWA : Agile Plan
- teamProject : Nom du projet dans TFS : Agile Project Team
- tcpUrl : Adresse de la collection de projet : http://PS2010:8080/tfs/defaultCollection
- pwaUrl : Adresse de l’instance de PWA : http://PS2010/pwa
- tcpUrl : Adresse de TFS : http://PS2010:8080/tfs
- pwaUrl : Adresse de l’instance de PWA : http://PS2010/pwa