Skip to content

Commit 0e12d1a

Browse files
authored
remove test gallery from bump up version (#26857)
1 parent 05c7e00 commit 0e12d1a

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

tools/VersionController/Models/ModuleHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ internal static string GetLatestVersionFromPSGallery(string moduleName, ReleaseT
3232
}
3333

3434
/// <summary>
35-
/// Get version from PSGallery and TestGallery and merge into one list.
35+
/// Get version from PSGallery and merge into one list.
3636
/// </summary>
3737
/// <returns>A list of version</returns>
3838
internal static List<AzurePSVersion> GetAllVersionsFromGallery(string moduleName, string psRepository)

tools/VersionController/Program.cs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -165,36 +165,21 @@ private static void BumpVersions()
165165
{
166166
powershell.AddScript("Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope Process;");
167167
powershell.AddScript("Register-PackageSource -Name PSGallery -Location https://www.powershellgallery.com/api/v2 -ProviderName PowerShellGet");
168-
powershell.AddScript("Register-PackageSource -Name TestGallery -Location https://www.poshtestgallery.com/api/v2 -ProviderName PowerShellGet");
169168
powershell.AddScript("Get-PSRepository");
170169
var repositories = powershell.Invoke();
171170
string psgallery = null;
172-
string testgallery = null;
173171
foreach (var repo in repositories)
174172
{
175173
if ("https://www.powershellgallery.com/api/v2".Equals(repo.Properties["SourceLocation"]?.Value))
176174
{
177175
psgallery = repo.Properties["Name"]?.Value?.ToString();
178176
}
179-
if ("https://www.poshtestgallery.com/api/v2".Equals(repo.Properties["SourceLocation"]?.Value))
180-
{
181-
testgallery = repo.Properties["Name"]?.Value?.ToString();
182-
}
183177
}
184178
if (psgallery == null)
185179
{
186180
throw new Exception("Cannot calculate module version because PSGallery is not available.");
187181
}
188182
targetRepositories = psgallery;
189-
if (testgallery == null)
190-
{
191-
Console.WriteLine("Warning: Cannot calculate module version precisely because TestGallery is not available.");
192-
}
193-
else
194-
{
195-
targetRepositories += $",{testgallery}";
196-
}
197-
198183
}
199184

200185
var changedModules = new List<string>();

0 commit comments

Comments
 (0)