From 629080f4b369fab08968048381f20894b1a63289 Mon Sep 17 00:00:00 2001 From: Shital Savekar Date: Thu, 24 May 2018 17:22:34 -0700 Subject: [PATCH] Added a way to preserve uses parameters for othe jobs --- .../Scripts/JenkinsTestSelectionMenuGenerator.ps1 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/JenkinsPipelines/Scripts/JenkinsTestSelectionMenuGenerator.ps1 b/JenkinsPipelines/Scripts/JenkinsTestSelectionMenuGenerator.ps1 index f588350d7..4143ff749 100644 --- a/JenkinsPipelines/Scripts/JenkinsTestSelectionMenuGenerator.ps1 +++ b/JenkinsPipelines/Scripts/JenkinsTestSelectionMenuGenerator.ps1 @@ -161,5 +161,10 @@ LogMsg "Validating TestByTestnameDetailed.txt..." (Get-Content "$DestinationPath\TestByTestnameDetailed.txt") | Where-Object {$_.trim() -ne "" } | set-content "$DestinationPath\TestByTestnameDetailed.txt" LogMsg "Done" +LogMsg "Saving '$($env:GitRepo)' to DefaultGitRepo.txt..." +Set-Content -Value "DefaultGitRepo=$($env:GitRepo)" -Path "$DestinationPath\DefaultGitRepo.txt" -Force -NoNewline + +LogMsg "Saving '$($env:GitBranch)' to DefaultGitBranch.txt..." +Set-Content -Value "DefaultGitBranch=$($env:GitBranch)" -Path "$DestinationPath\DefaultGitBranch.txt" -Force -NoNewline exit 0 \ No newline at end of file