Download TFS Process template - tfs

I Create online account and create customized process Template and currently in install TFS in Local Server i need to copy my Process Template to the new server
i did not found download process Template any where

There currently is none. You can use the REST api to extract the process template, but there is no way to "port" these to the "old-style" xml process templates for TFS.

Related

Azure DevOps secure file guids

In my ADO build pipline, I have a secure file download step. When we branch versions, we use powershell to do the heavy lifting with cloning build definitions and updating settings/info in the cloned pipeline.
One issue I've run into is that the Secure File Download step doesn't accept variables, and in the UI you can only select names of files that already exist, so we've had to manually update it after every new branch we create.
I've grabbed the definition task step in powershell (as $step) and was hoping I could set the $step.inputs.fileInputs to a variable I assign to something like cert-$newVersion, however it currently is set to a guid.
Does anyone know if it possible to get the guid of secure files in ADO via the API or have a solution?
Does anyone know if it possible to get the guid of secure files in ADO via the API or have a solution?
Yes. This API exists.
You could try to use the following Rest API:
Get https://dev.azure.com/{OrganizationName}/{ProjectName}/_apis/distributedtask/securefiles?api-version=6.1-preview.1
Result:
You could get the secure file GUID based on the file name.

How do you connect Service Now with Forge to create a new BIM 360 project?

I've used the process documented here https://github.com/Autodesk-Forge/forge-bim360.project.setup.tool to automate creating a new project HUB. We ask our users to fill a form on Service Now for each new project. My question is: Has anyone had any success linking the Service Now API to Forge? So that the variables that are filled by the end user on the Service Now form are used by Forge to create a new project HUB. Thanks.
I am not familiar with Service Now, but I've created integration with internal system.
Integration depends on what you need.
1.You can create a plugin for Service Now(If it is supports adding plugins) ,and create an app to fill into info that you need to create new project in Bim360(project name,users,etc.)
2.If you need to create a new project based on your info in Service Now,you should take Service Now Api, read all info that you need and then pass it to Autodesk Forge Api to create new project.

TFSFieldMapping Access is Denied

Hi I'm am trying to follow Microsoft's guidance to download the TFSFieldMapping file in order that I can make changes (https://learn.microsoft.com/en-us/azure/devops/reference/xml/upload-or-download-the-microsoft-project-mapping-file?view=tfs-2018)
Unfortunately I keep getting the error "Access is denied" when I try to connect to my collection and project
CD C:\Program Files\Common Files\microsoft shared\Team Foundation Server\16.0>TFSFieldMapping.exe download /collection:https://dev.azure.com/(My Company) /teamproject:(My Project)/mappingfile:"C:\Users\danie\Downloads\Test1234.xml"
"Access is denied"
That documentation appears to be for TFS (on-premise). Based on the URL, it looks like you are utilizing Azure DevOps Services. It seems to be a deprecated function, probably because of the way the field templates have been overhauled for work item forms.
Agree with Matt. TFSFieldMapping is only supports TFS 2018 and previous versions. Because their process is Hosted XML Process. Starting from Azure Devops Server 2019 and azure devops service, they use the inherited process. So they doesn't support the TFSFieldMapping.
From the URL in the TFSFieldMapping command, it seems that you are using the Azure Devops Service.
To change the Project field, you can create an inherited process and let the project use it. Then you can perform custom operations (e.g. Custom field) on the inherited process.
You could custom the field in Organization Settings -> Process.
Here is a doc about the detailed steps.
You could also use Rest API to Get and Update the field.
Get Work item field:
GET https://dev.azure.com/{organization}/{project}/_apis/wit/fields?api-version=5.1
Update Work item field:
PATCH https://dev.azure.com/{organization}/{project}/_apis/wit/fields/{fieldNameOrRefName}?api-version=4.1
Note: Corresponding to the inheritance process, you need to inherit first and then customize

Change TFS email template

Can I change the email template used by this TFS 2017 feature?
There's a folder under the TFS installation that hosts the templates for the eventing services alerts. You need to modify the xsl file corresponding to your event (in this case WorkItemChangedEvent.xsl) to change the formatting.
You can find this templates under Drive:\%programfiles%\Microsoft Team Foundation Server 15.0\Application Tier\TFSJobAgent\Transforms\1033 and after you modify it, you need to restart the application pool or the website because the templates are cached when the site starts.
P.S. Be sure to backup the original template and the changed one, because in future service packs or hotfixes Microsoft can replace this template and you'll loose your changes.
More info you can find here.

Publishing MSTest results to team members

I am trying to publish MSTest results to the team. I'd like to send all the test results by email, or have a testresults.trx file attached, or something similar.
How can this be done in TFS 2010?
We are using trx2html tool to convert MSTest report files to readable form (html files). These html files are attached to email send by MSbuild script to all contacts specified in the mailing list.
In the TFS you have to update build template. Call trx2html tool using InvokeProcess activity after every MStest call and at the end pick all html files and send e-mail using Send email activity, but I don't think there is such activity. You have to implement it or send mail using some external tool/script.

Resources