Can we use TFS as Source Code Repository for Salesforce? - tfs

Can we use TFS as Source Code Repository for Salesforce? If yes then is there any TFS/Salesforce API which can be used to fetch the latest code from Salesforce Dev Org?

You can store your code in any SCM system. Salesforce orgs also have meta-data that affect configuration and this must be exported, usually via an SFDC plug-in to an IDE like eclipse. Deploying code to SFDC must be through their interfaces and requires test code. This could all be scripted in .NET / PS via SFDC API, but that is beyond the scope of a post like this IMO.

Yes. You can fetch the code from Project collection and deploy into Sandbox.
However, the command line fetch from TFS is still evolving and in TFS 2013 , there are some new changes.
AutoRABIT - a release management suite for Salesforce Applications has support for deployments from Team Foundation Server [ TFS 2013 ] - Salesforce Sandbox or auto-commit from Sandbox to TFS .
Niranjan

Related

Ready API (v2.4) integration with TFS for code repo

I am very new to API automation through ready API , I want to store all my code on TFS but ,I couldn't find any doc or video as to how to do it , although there are many docs and sources available as to how to do it on git HUB but not on TFS, Need your help on same
I am currently using Ready API 2.4 version and TFS 2017
Request you to guide me on this
Found this official doc: Git Integration, which guides you to store tests and test projects in source control, so you could store all code on TFS by connecting to Remote TFS 2017 Repository and clone it.

Unable to install Test Manager extension on Azure DevOps Server 2019

Recently we have upgraded our TFS server to the latest 2019 version.
As the Admin, I was trying to install the downloaded Test Manager extension just like we did in TFS2017 and TFS2018.
However, I was unable to install it even with full access and TFS test plan subscription.
This extension does not support the version of the Server you are
currently using. See Works With for supported Server versions.
What should I do, am I missing something? Why it not work with TFS2019? Appreciate your help.
This is the expected behavior when you try to install the extension in Azure DevOps Server 2019. You do not need to install extra Test Manger for Azure DevOps Server 2019.
The official link is also clearly: This extension does not support the version of the Server you are currently using. See Works With for supported Server versions.
It only work Works with
Team Foundation Server 2017
Team Foundation Server 2018
Note:
Manual testers do not need this extension and can execute tests as a
Basic user in an Azure DevOps organization/collection. Read more on
this here.
This extension is available out-of-the-box in Azure DevOps Services and Azure DevOps Server (2019 onwards) and hence doesn't need to be acquired for them.
We strongly recommend you to use Azure Test Plans or the Test hub in Azure DevOps Service/Server (a fully featured Test management solution) over Microsoft Test Manager for all your test management requirements. There will be no new versions of Microsoft Test Manager.Microsoft Test Manager 2017 (which shipped with Microsoft Visual Studio 2017) is the last version.
More details please take a look at our official tutorial here.
Besides, to use Azure Test Plans in Azure DevOps service you need some License requirements
Azure Test Plans uses an access level called Basic + Test Plans, which is available from Azure DevOps.
For the Manual testing permissions and access suggest refer this link: https://learn.microsoft.com/en-us/azure/devops/test/manual-test-permissions?view=azure-devops#license-requirements
Hope this helps.
As mentiond in the Extension page:
This extension is available out-of-the-box in Azure DevOps Services and Azure DevOps Server (2019 onwards) and hence doesn't need to be acquired for them.
So you don't to install it, it's exist :) just go to the "Test Pans" tab in the left menu (maybe you need give permissions in the settings).

Jenkins plugin "Visual Studio Team Services Continuous Deployment" throws NullPointerException

My system is an on-premises setup for TFS 2015 and I am trying to get Release Management working with my Jenkins continuous integration system. I have recently added the ""Visual Studio Team Services Continuous Deployment" plugin to Jenkins. After finding out that I need to have Basic Authentication enabled on my TFS server to avoid a 401 - Unauthorized: Access is denied due to invalid credentials. error I am getting to the next error: NullPointerException.
I have looked through the code for the vsts-cd-plugin to see that there is an explicit reference to this API call that I don't believe is in TFS 2015 Update 3...
"/_apis/release/releases?api-version=3.0-preview.2"
Has anyone been successful in using the vsts-cd-plugin with Jenkins and an on-premises TFS 2015 setup? Does anyone have a suggestion on how I can fix this problem to create a TFS Release from Jenkins?
The API version 3.0-preview.2 is for Visual Studio Team Services, it is not included in On-premise TFS. In On-premise TFS, you need to use 2.2-preview.1.
api-version = 3.0-preview.1
Using on-premises: An earlier, and slightly different, version of this
Release Management API is available in Team Foundation Server 2015
Update 2. To use, you must specify an API version of 2.2-preview.1.
New release references a release definition to deploy an application
comprising of one/
You can try to download the source code of the plugin and update the API version and then build it on your local machine and install it in Jenkins.

Continous Integration on Azure Mobile Services?

Is there any way to enable continuous integration on azure mobile services using Team Foundation (TFS) source control?
I have seen its easily done on Azure Websites and Cloud Services but i dont see an option on mobile services.
My only option is to set up a custom server ?
You are looking for this:
and maybe you shoudl see this too:
Store project code in source control
Git Source Control Integration with Windows Azure Mobile
Services
Update: your source control can be TFS and you should have your own CI Server, and when is all ok you should use a git command to push it to Azure.

Use Team Foundation Service and Git Support from Monodevelop

NOTE: This question was asked before the release of git support in the TFS Service, and this works quite well now. Read more about using tfs service with monodevelop here: http://sviluppomobile.blogspot.se/2013/02/how-to-use-team-foundation-service-with.html
We decided to try out Team Foundation Service (the TFS cloud version) because it has Git support which would (we hoped) help us manage both our VisualStudio and MonoDevelop code in one place.
The question is how to connect to the TFS service in MonoDevelop? From what I can see, I should use HTTPS protocol, for server I just type the name of our TFS service, and for user I type in my live id user#live.com and try to connect.
The problem is the url which becomes something like this
https://user#live.com#projectname.visualstudio.com/
Note the two # signs in the url. Seems that whatever git Tools are used behind MonoDevelop barfs on that:
NGit.Api.Errors.JGitInternalException: Exception caught during execution of fetch command ---> NGit.Errors.NotSupportedException: Invalid URL
If I try to omit the user name from the dialog, I get another error about unauthorized access.
Is there a way to enter/store git username and password somewhere on the mac or in MonoDevelop? I'm pretty sure this would work eventually.
Team Foundation Service (tfs.visualstudio.com, formerly tfspreview.com) does not host git repositories, only Team Foundation Server repositories.
It sounds like you may be conflating two different concepts:
Codeplex, Microsoft's hosting site for open source software, does support both TFS and git hosting, as well as Mercurial.
Microsoft recently announced the git-tf project that allows you to create a local git repository that tracks a remote Team Foundation Server repository.
git-tf was designed with cross-platform users in mind, who use an IDE that does not have native support for Team Foundation Server source code control. It sounds like using git-tf would probably be the most applicable for you.

Resources