Include the work items in a release's email summary in TFS 2017
In the company in which I work we have a CI/CD process set via TFS' builds and releases system.
At the end of the release we send an email telling that the deploy of the branch configured was successful and the latest version of the code is up and running.
What I would like to add in that email is the list of work items/tasks/git commits included in the latest release. Something like the already given list of work items in the release summary
Searching in the official documentation and around the web I found nothing could help me. Do you have any hint?
See also questions close to this topic
VS 2017 Team Explorer - No Repositories Available
I have a new Team Foundation Server that we are hosting - Version 16.131.28226.3. It is over SSL and has a valid certificate.
I have created a new Team Project "Test".
The project source control Type is Git.
In Visual Studio 2017 - 15.9.4 Team Explorer, I can Clone this git repo under Local Git Repositories. And I have successfully added and pushed to the server.
However, if I try to Connect to this new Team Foundation Server - Manage Connections, Connect To a Project, Add TFS Server; when I add the TFS server, there is an exclamation icon next to and if I hover on the server name it says
No Repositories Available
And when selected, the Connect button is disabled. In the screenshot below, the second, highlighted server is the one in question:
So the Local Repo is not associated with the Team Repo, thus I can't assign Work Items to my checkins, etc..
I have explicitly added myself as a User to the Project, I don't know what else to do. Any advice?
TFS SDK via java not working with service account on Ubuntu
We have created an java application using TFS-SDK for source control management which get deployed in Apache Tomcat Application Server. The tomcat is executed/runned via a service account.
TFS-SDK dumps some cache files, xml's in the home directory of the current user. In case of Ubuntu, there are not home directories for service accounts. Due to this it gives permission issue and code cloning fails.
INFO com.microsoft.tfs.jni.loader.NativeLoader - Loaded /opt/aaaaaa_data/TFS-SDK/linux/x86_64/libnative_misc.so from user-specified directory 2018-12-12 09:41:11.993 [pool-3-thread-1] INFO com.microsoft.tfs.core.config.httpclient.DefaultHTTPClientFactory - HttpClient configured for https://dev.azure.com/aaaaaaaaaaa, authenticating as aaaaaaaaaaa 2018-12-12 09:41:14.910 [pool-3-thread-1] INFO com.microsoft.tfs.core.ws.runtime.client.SOAPService - SOAP method='GetRegistrationEntries', status=302, content-length=0, server-wait=2173 ms, parse=3 ms, total=2176 ms, throughput=0 B/s, uncompressed 2018-12-12 09:41:16.548 [pool-3-thread-1] INFO com.microsoft.tfs.core.ws.runtime.client.SOAPService - SOAP method='GetRegistrationEntries', status=200, content-length=111841, server-wait=1253 ms, parse=381 ms, total=1634 ms, throughput=68446 B/s, gzip 2018-12-12 09:41:16.565 [pool-3-thread-1] WARN com.microsoft.tfs.core.clients.registration.ServerMap - unable to save server map to /home/aaaaaa/.microsoft/Team Foundation/4.0/Cache/TEE-Registration:server-map.xml java.lang.RuntimeException: Error creating directories up to /home/aaaaaa/.microsoft/Team Foundation/4.0/Cache/TEE-Registration. Possible permissions problem. at com.microsoft.tfs.core.persistence.FilesystemPersistenceStore.initialize(FilesystemPersistenceStore.java:98) ~[sdk-11.0.0.jar:?] at com.microsoft.tfs.core.persistence.FilesystemPersistenceStore.getLockInternal(FilesystemPersistenceStore.java:690) ~[sdk-11.0.0.jar:?] at com.microsoft.tfs.core.persistence.FilesystemPersistenceStore.getItemLock(FilesystemPersistenceStore.java:592) ~[sdk-11.0.0.jar:?] at com.microsoft.tfs.core.persistence.FilesystemPersistenceStore.storeItem(FilesystemPersistenceStore.java:168) ~[sdk-11.0.0.jar:?] at com.microsoft.tfs.core.persistence.FilesystemPersistenceStore.storeItem(FilesystemPersistenceStore.java:136) ~[sdk-11.0.0.jar:?] at com.microsoft.tfs.core.clients.registration.ServerMap.save(ServerMap.java:84) [sdk-11.0.0.jar:?] at com.microsoft.tfs.core.clients.registration.RegistrationClient.writeDiskCache(RegistrationClient.java:679) [sdk-11.0.0.jar:?] at com.microsoft.tfs.core.clients.registration.RegistrationClient.getRegistrationData(RegistrationClient.java:649) [sdk-11.0.0.jar:?] at com.microsoft.tfs.core.clients.registration.RegistrationClient.getRegistrationEntries(RegistrationClient.java:151) [sdk-11.0.0.jar:?] at com.microsoft.tfs.core.clients.registration.RegistrationClient.getRegistrationEntries(RegistrationClient.java:135) [sdk-11.0.0.jar:?] at com.microsoft.tfs.core.PreFrameworkServerDataProvider.findServiceLocation(PreFrameworkServerDataProvider.java:289) [sdk-11.0.0.jar:?] at com.microsoft.tfs.core.PreFrameworkServerDataProvider.locationForCurrentConnection(PreFrameworkServerDataProvider.java:264) [sdk-11.0.0.jar:?] at com.microsoft.tfs.core.TFSTeamProjectCollection.getServerDataProvider(TFSTeamProjectCollection.java:169) [sdk-11.0.0.jar:?] at com.microsoft.tfs.core.TFSConnection.ensureAuthenticated(TFSConnection.java:739) [sdk-11.0.0.jar:?]
If we run tomcat from normal user, this works.
1) Create a 'serviceAccountUser' dir in /home having serviceAccountUser as owner
2) Change the home directory for service account user in /etc/passwd field number 6 (Similar to Jenkins service user)
I need to know if we can change the temp location for TFS-SDK instead of home directory from the java code itself
TFS Migration to new server with new Name
I am moving my current On-premise TFS 2018.2 & SQL 2016 to TFS 2018.3 on a new Local server with SQL server 2016 .
Both will be on the same domain with different name .
What should be the correct procedure?
- Restore DB on new SQL instance - Different name (Using SQL restore)
- Rename DB Rename Computer with SQL Instance
- Install New TFS 2018.3 and connect to New SQL Instance
- Install TFS 2018.3
- Restore DB from old Server (Using TFS restore)
Thanks for any help
How to Publish Code Coverage results for Multiple Cobertura.xml file in TFS 2017 Build?
I am using TFS 2017 Update3 and I have a Build definition which runs Grunt build task at two different HTML projects and generates two cobertura.xml files at their respective paths.
To display the code coverage result I have used Publish Code Coverage Results task in my build pipeline but it displays the Code coverage for only 1 project and doesn't display the code coverage result of other Html Project.
I tried using two Publish Code Coverage Results task each pointing to different cobertura.xml files but still it displays the code coverage result for only one project on TFS build summary.
Is there any other ways by which I can publish multiple code coverage result?
The PowerShell Task in Release Definition fails to remote login on windows 10 azure vm in VSTS\TFS 2017
TFS version - 2017 Update3
PowerShell task version - 1.2.3
I have PowerShell script kept on azure Windows server 2016 VM and this PowerShell Script if executed manaully remote logins to Windows 10 server and after login the task created in scheduler task gets triggered.
But when I call this PowerShell script kept on Windows server 2016 from PowerShell task it doesn't remote login to the windows 10 server and their is no user present in Task manager.
The task in Release definition is shown as succeeded i.e. in Green colour but has no effect.
I configured and enabled the Windows Remote Shell on windows 10 as well using the Server Side configuration from the below link but still it has no effect. https://support.microsoft.com/en-us/help/555966
Is anyone aware about this or is it a kind of bug in TFS 2017 PowerShell task?
- TFS git compare branch shows a change but files section shows No files have changed