Thursday, October 08, 2015

Get Substring from nAnt property

In order to get sub-string of the nAnt property, to be used in xmlpoke for nAnt I used following statement. Besides the sub-string the following statement also returns the upper case of the string. Here GIT.Commit is the nAnt property.

<xmlpoke file="my.config" xpath="//UI//application//@version" value="${Version}.${string::substring(string::to-upper(GIT.Commit),0,5)}" />

Wednesday, September 30, 2015

Exit Jenkins

In order to shutdown Jenkins and all ports associated with it's process on server I used following URL


Thursday, September 03, 2015

C:\Progra~2 for C:\Program Files (x86)

Dont want to use  in your tools because there is space between Program and Files. Then use C:\Progra~2 which maps to C:\Program Files (x86). And yes if you use C:\Progra~1 it maps to C:\Program Files

Thursday, July 09, 2015

Get date, add minutes and format it in PowerShell

In order to get current date and add minutes to it and format it I used following command in PowerShell

(get-date).AddMinutes(10).ToString("dd/MMMM/yyyy HH:mm")