Thursday, June 3, 2021

Azure devops does not show azure subscription

Do you want to add service connection, but you do not see Azure Subscription?

Do you see error: You don’t appear to have an active Azure subscription?

Your subscription is active but still nothing happened?

Read this article to see answer on your questions.


Monday, November 16, 2020

[AzureDevops] Team members are unable to see GIT repo

 Hi folks.

I faced with not ususall task:

-Add users to azure devops. I didn't simmilar as I did every time with TFS 2013, 2015. But even administrator after all can't see git repo.

So finally I found solution. And decided to share it with you:

  1. Go to your project page > under "Project Settings", under "General" > "Overview" which is the default, you should see "Process" = "Basic". Click on the word "Basic", that should lead you to your Organization Settings.
  2. Under "General" > "Users", you can see that yourself or some users have the access level of "Stakeholder" rather than "Basic". Next step is just to get someone who can, to change that.

Thursday, September 3, 2020

AzureDevops: autocancel pipelines? How it is?

 Hi everyone!



In this topic I would like to disscuss very small feature, but very important for some projects.

Autocancal pull request. 

What it is, and what is the majour feature will be talking today!

Tuesday, November 12, 2019

LibGit2Sharp.NotFoundException: Object not found - no matching loose object

Hi Everyone.
In this article we will talk about very old bug in GIT:

LibGit2Sharp.NotFoundException: Object not found - no matching loose object (0000000000000000000000000000000000000000)
at LibGit2Sharp.Core.Ensure.HandleError(Int32 result)
at LibGit2Sharp.Core.Proxy.git_checkout_tree(RepositorySafeHandle repo, ObjectId treeId, GitCheckoutOpts& opts)
at LibGit2Sharp.Repository.CheckoutTree(Tree tree, IList`1 paths, IConvertableToGitCheckoutOpts opts)
at LibGit2Sharp.Repository.Checkout(Tree tree, CheckoutOptions checkoutOptions, String refLogHeadSpec)
at LibGit2Sharp.Repository.Checkout(String committishOrBranchSpec, CheckoutOptions options)
at Microsoft.TeamFoundation.DistributedTask.Task.Internal.Core.GitHelper.SyncAndCheckout(ITaskEndpoint endpoint, String rootPath, Boolean cleanRepository, String sourceBranch, String sourceVersion, String& commit, CancellationToken cancellationToken, Boolean checkoutSubmodules)
at Microsoft.TeamFoundation.DistributedTask.Plugin.Build.TfsGitSourceProvider.<>c__DisplayClass3_0.<PrepareRepositoryAsync>b__0()


Thursday, April 11, 2019

Powershell vs Golang: what is better?



Hi, everyone.

In this post, I want to share my opinion and result of the test which compares PowerShell with golang.


Wednesday, September 12, 2018

The workspace XXX;Project Collection Build Service (TEAM FOUNDATION) does not exist.

Let's discuss today not usual error.

How to fix workspace issue, if you did not successful move it?
This error possible to face in two situation: when you move (modified) workspace in you local computer. For example Visual Studio.
Or if you clone build agent with virtual machine or physical server. In this case you can delete all work space but see same issue:

Thursday, August 16, 2018

Does pro grammatically check-in the best practice?

Does pro grammatically check-in the best practice?


From time to time I receive request to add check-in step to build definition. In general this is simple operation: some step change file(s), and customer need that this files put to source control.
But is it good scenario, and what a risk will you receive after this implementation? Let's discuss it in this article.

Tuesday, April 17, 2018

Error: The active Test Run was aborted because the execution process exited unexpectedly

Hi everybody.

Long time I haven't interesting cases, but few days ago I was face with interesting issue.

Prerequisite:
-VNext builds with execute unit tests.

Thursday, December 28, 2017

How start a build Vnext from specific number

Hi.
Imagine situation: you need to create build definition. You set some version like: 1.0.0.$(Rev:v)
After that tfs start create build with number 1.0.0.1; 1.0.0.2 and etc.
And you have task to clone this build and in some reason you need that build start from number 1.0.0.100.

Friday, June 16, 2017

WORSKPACE: delete or not delete?!





If you are reading my blog, probably you understand, that my blog is about cheating using usual feature and fixing bug from Microsoft.

Thursday, April 13, 2017

Tuesday, January 31, 2017

Why we need global variables

Hi all.

Few weeks ago I went to Visual Studio Online and discovered new feature of TFS 2017.
It was looking like this window:

How split permission for build engineer if you don't have access to production

Hi all.
I don't write a lot of time. So I'm deep learning development on .Net and have not had time.
I decided to tell you about my experience in our company.
We know, that team foundation server has "Release management tools". Actually from the name of this tool we understand that with this tools we can deploy to production your code.

Monday, August 1, 2016

Vnext build definition waiting agent

Hi.
In this post I want describe short article about execution build definition.

Test Agent :Could not load file or assembly Microsoft.VisualStudio.QualityTools.CodedUITestFramework Part2

Hi everybody!
In this post I want continue describe issue, which was public in part one part one.
I see that this article has big interest. and I decide continue help fix this issue.
If you didn't read article, this is short context of this article.
During execution tests on test agent, you probably see error:

Unit Test Adapter threw exception: Could not load file or assembly 'Microsoft.VisualStudio.QualityTools.CodedUITestFramework, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
But first  article describe issue with TFS 2013(2015)+Build Controller 2013+Test Controller 2013+Test Agent 2013.

If your team still use Test Agent 2013, you probably see this issue with soft:
TFS 2015+Build Controller 2015+Test Controller 2013+Test Agent 2013.

If you did recommendation in first article but it still not work, you can try follow way:
-Try to install Visual studio (ideal Enterprise version) to build agent.
 When we install to this path C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\ Visual studio., some of subdirectory (don't remember the name) has required library.

After this we fix this error.

Or quick but bad way: change build controller to version 2013.
So this chain is working:
TFS 2015+Build Controller 2015+Test Controller 2013+Test Agent 2013.

Good luck to all.

Thursday, June 9, 2016

Faile execute test(s): Error calling Initialization method for test class




Hi.
Today  I want discuss short issue with execute codedUI test on test agent.
If you see this error:

Error calling Initialization method for test class ***: Microsoft.VisualStudio.TestTools.UITest.Extension.UITestException: Automation engine is unable to playback the test because it is not able to interact with the desktop. This could happen if the computer running the test is locked or it’s remote session window is minimized.

Monday, April 18, 2016

Test agent 2013: The setup batch file exited with error code 1


Hi. Today I want show you how resolve errors connect with execute batch file in deploy step before
execute tests.

So in my case I have:
  1. TFS 2015
  2. Test Controller 2013
  3. Test Agent 2013
  4. Microsoft Test Manager.
 Imagine, that you have task execute tests before execute tests. You write this script and put it to Microsoft test manager in (Advance -> Scripts).

Tuesday, March 29, 2016