Restore Nuget using Powerful Powershell

#script to restore the pacakge [cmdletBinding()] param ( [parameter(Mandatory = $true)] $Solutions, #relative to bamboo working directory [parameter(Mandatory = $true)] $BuildWorkingDirectory, [parameter(Mandatory = $true)] $NugetPackage ) $SlnList = $Solutions -split “;” $NugetPackage = Join-Path $BuildWorkingDirectory $NugetPackage foreach($Sln in $SlnList) { $sln = Join-Path $BuildWorkingDirectory $sln Write-Host “$sln” Write-Host “$NugetPackage” if(Test-Path $Sln) { try { Write-Host[…]

Xcopy Command Line With Error Handling

#Move wiqserver.exe and wiqserver.exe.config file to TaskExecutable Folder inside bin. [cmdletBinding()] param ( [parameter(Mandatory =$true)] [ValidateNotNullOrEmpty()] $Source, [parameter(Mandatory =$true)] [ValidateNotNullOrEmpty()] $Dest, [parameter(Mandatory =$true)] [ValidateNotNullOrEmpty()] $FileList ) if (!(Test-Path $Source)) { throw “Source doesn’t exist” } if (!(Test-path $Dest)) { mkdir $Dest } write-output “The file list passed as argument is ” $FileList if(($FileList -eq $null)[…]

Agile: Transition To Agile Project Manager

Transition to Agile Project Manager 1)   No micromanagement of the team. 2)  Don’t ask status of their work, instead help them. 3)  Don’t blame any individuals for failure instead appreciate the learning from failure 4)  Move from command & control individual to servant leader. 5)  Be a good listener and try to understand other’s[…]

Agile Leadership Style

1) Command & Control Vs Agile Leadership Command &  Control is keeping the ownership, accountability to leader itself however in Agile leadership style, it is shared between team and leader. Command and Control leader directs what needs to done whereas an Agile leader listen the thoughts of the other carefully and help them figure out the[…]

GIT: GIT Garbage Collection Refspecs & Reflog

GIT Garbage Collection For large repositories, GIT will periodically perform a garbage collection to remove any unnecessary objects and compress refs(pointer to commits in GIT) into a single file for more efficient performance. So the ref in .git\refs\branches will be moved a single file (i.e packaged-refs) after the command. BTW… Git maintains information regarding the[…]