Change TFS 2017 Theme Color (for test environments)

November 8, 2017

(First of all it’s important to make clear that this technique is not supported by Microsoft so PLEASE DON’T TRY THIS AT PRODUCTION)   It’s quite common in medium and big companies to have a TFS test environment to safely test plugins, test third party tools and show customizations before implementing them in production environment. However, because the test server is an exact copy of the production it may happen that we unintentionally perform the tests on the wrong server (in fact the only difference between them is the url so is easy to get wrong).  So, how can we avoid this...
no comments

Microsoft ALM User Group – Migrating To Git And Staying Alive

September 6, 2017

Last Wednesday 06/09/17 I gave a talk about Migrations from TFVC to Git in Microsoft Raanana as part of the ALM User Group. In this talk we discussed the advantages and disadvantages of Git in comparison to TFVC (TFS Version Control), we reviewed the implications and points to take into account when migrating to Git, we analyzed the keys to a successful migration, we saw how to plan it, how to perform it and finally how to get used to Git once we have migrated. All of this from a theoretical point of view as well with a practical...
no comments

Nagios – Using custom scripts with NSClient++ (with arguments)

August 3, 2017

If you are using Nagios to monitor your environments probably at some point you will want to write your custom scripts in order to monitor more complex or specific things. Next we will review how to do it using the check_nrpe command for scripts with arguments (for scripts without arguments see my another post here)   1) Write the Script • Throw the exit code using a $LASTEXITCODE variable following this convention: 0 –> OK 1 –> Warning 2 –> Critical 3 –> Unknown   • The arguments must be passed to the script using the following syntax: $variable = $args   • The messages printed...
no comments

Nagios – Using custom scripts with NSClient++ (no arguments)

August 1, 2017

If you are using Nagios to monitor your environments probably at some point you will want to write your custom scripts in order to monitor more complex or specific things. Next we will review how to do it using the check_nrpe command for scripts that don't need arguments (for scripts with arguments see my another post here)   1) Write the Script • Throw the exit code using a $LASTEXITCODE variable following this convention: 0 –> OK 1 –> Warning 2 –> Critical 3 –> Unknown   • The messages printed in the console will be shown in Nagios   2) Add the script to the...
no comments

.gitignore not working

July 3, 2017

The Issue The .gitignore file is used to prevent Git to tracking certain files (namely ensure that certain files not tracked by Git remain untracked), for example test outputs, logs and build files. The best practice is to create this file when the repository is created, however in most cases, this file is created after detecting that unwanted files are being stored.   The Problem The files/folder that already are in the repository will not just delete themselves just because you added them to the gitignore file. Remember, the .gitignore file ignores only files that are not tracked.   The Solution To resolve the problem remove from...
no comments

Avoid Excessive Database Growth for Git-TFS Users

June 5, 2017

Let’s see some tips to avoid the excessive growth of the database if you are using Git in TFS...   Keep in mind that in Git-TFS there is not “git gc” implemented in the server side This means that once you push a change to the database it will remain in the database forever (yes, forever). The only way to remove it is to delete the whole repository Nevertheless this fact allows us to recover at any moment any thing that we have deleted (see how here)   Avoid to push the same...
no comments

Recovering Deleted Branches/Commits In Git-TFS

May 29, 2017

In Git TFS there is not “git gc” implemented in the server side. At first sight this can be a big problem because once you push a change to the database it will remain in the database forever (yes, forever). The only way to remove it is to delete the whole repository. Nevertheless this fact allows us to recover at any moment any thing that we have deleted. Let’s see how achieve this…   1) Get the Internal Repository ID: SELECT Name, InternalRepositoryId FROM .. ORDER BY InternalRepositoryId   2) Search the deleted branch in the reflog using the following query: SELECT DISTINCT...
no comments

Microsoft ALM User Group – Everything you wanted to know about Git

March 19, 2017

Last Wednesday 15/03/17 I gave a talk about Git in Microsoft Raanana as part of the ALM User Group. People generally learn how to use Git but don’t really understand it so this time the idea was to answer the most frequently asked questions, give a couple of tips and explain Git from another point of view. Many thanks to all for coming and I hope you enjoyed it as much as I did. If you have any questions, you know how to contact me. See you next time, Leon Jalfon   PDF: EverythingYouWantedToKnowAboutGit.pdf  
no comments

JFrog Artifactory – Move Filestore from One Drive to Another

March 12, 2017

A few days ago I was asked to move all the artifacts stored on the Artifactory server from the “C:\” drive to the “E:\” drive. I went to the official documentation but I didn't find exactly what I was looking for. There explain how to specify where to save the artifacts when configuring the server but not how to do it on an existing server. Here are the steps to follow to achieve it:   1) Get the ARTIFACTORY_HOME path: .    • Open PowerShell and run the command: .          • Get-ChildItem Env:   2) Search for the file “binarystore.xml” .    • In...
no comments

Meeting the TFS Aggregator

February 23, 2017

The TFS Aggregator is undoubtedly one of the most known and most useful tools for TFS. This comes to fill all the needs that can’t be covered using the traditional work item rules. Basically allows you to execute your own rules after each save.   Installation and Deployment The TFS Aggregator is an open source project stored in https://github.com/tfsaggregator/tfsaggregator. You can download the code and deploy it by yourself or simply use the installer provided by the project. The installer will detect your TFS version and install for you the console app and the plugin.   How the Plugin Works? A TFS Plugin is a...
no comments