Adding logs to the powershell script.
@@ -70,6 +70,8 @@ function Get-DetectSnapshotJar ($DetectFolder, $DetectVersion) {
$DetectVersion = "latest-SNAPSHOT"
}
+ Write-Host "Using detect version $DetectVersion"
+
$DetectJarFile = "$DetectFolder\hub-detect-$DetectVersion.jar"
$DetectCurrentCommitFile = "$DetectFolder\hub-detect-latest-commit.txt"
@@ -103,6 +105,8 @@ function Get-DetectJar ($DetectFolder, $DetectVersion) {
$DetectVersion = Receive-DetectLatestVersion
}
+ Write-Host "Using detect version $DetectVersion"
+
$DetectJarFile = "$DetectFolder\hub-detect-$DetectVersion.jar"
$DetectJarExists = Test-Path $DetectJarFile
@@ -163,6 +167,7 @@ function Receive-DetectLatestVersion {
function Receive-DetectJar ($DetectUrl, $DetectJarFile) {
Write-Host "You don't have detect. Downloading now."
+ Write-Host "Using url $DetectUrl"
Invoke-WebRequest $DetectUrl -OutFile $DetectJarFile | Out-Null #Pipe to Out-Null to prevent dirtying to the function output
Write-Host "Downloaded detect jar."
}
