Skip to content

Commit 1a93d4d

Browse files
authored
Merge pull request chocolatey#191 from chocolatey/develop
Update Jenkins Jobs, Jenkins Version, and CCM Dependency Versions
2 parents 69acaf2 + b49af37 commit 1a93d4d

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Start-C4bCcmSetup.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ process {
104104
$chocoArgs = @('install', 'IIS-ApplicationInit', "--source='windowsfeatures'" ,'--no-progress', '-y')
105105
& choco @chocoArgs
106106

107-
$chocoArgs = @('install', 'dotnet-aspnetcoremodule-v2', "--version='16.0.23055'", "--source='$Ccr'", '--no-progress', '--pin', '--pin-reason="Latest version compatible with chocolatey-management-web V 0.10.1"', '-y')
107+
$chocoArgs = @('install', 'dotnet-aspnetcoremodule-v2', "--version='16.0.23083'", "--source='$Ccr'", '--no-progress', '--pin', '--pin-reason="Latest version compatible with chocolatey-management-web V 0.10.1"', '-y')
108108
& choco @chocoArgs
109109

110110
$chocoArgs = @('install', 'dotnet-6.0-runtime', "--source='$Ccr'", '--no-progress', '-y')

Start-C4bJenkinsSetup.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ process {
4040
& choco @chocoArgs
4141

4242
# Install Jenkins
43-
$chocoArgs = @('install', 'jenkins', '-y', "--source='$Source'", '--no-progress', "--version='2.387.1'")
43+
$chocoArgs = @('install', 'jenkins', '-y', "--source='$Source'", '--no-progress')
4444
& choco @chocoArgs
4545

4646
Write-Host "Giving Jenkins 30 seconds to complete background setup..." -ForegroundColor Green

jenkins/scripts/Get-UpdatedPackage.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ Param (
1616
. "$PSScriptRoot\ConvertTo-ChocoObject.ps1"
1717

1818
Write-Verbose "Getting list of local packages from '$LocalRepo'."
19-
$localPkgs = choco list --source $LocalRepo -r | ConvertTo-ChocoObject
19+
$localPkgs = choco search --source $LocalRepo -r | ConvertTo-ChocoObject
2020
Write-Verbose "Retrieved list of $(($localPkgs).count) packages from '$Localrepo'."
2121

2222
$localPkgs | ForEach-Object {
2323
Write-Verbose "Getting remote package information for '$($_.name)'."
24-
$remotePkg = choco list $_.name --source $RemoteRepo --exact -r | ConvertTo-ChocoObject
24+
$remotePkg = choco search $_.name --source $RemoteRepo --exact -r | ConvertTo-ChocoObject
2525
if ([version]($remotePkg.version) -gt ([version]$_.version)) {
2626
Write-Verbose "Package '$($_.name)' has a remote version of '$($remotePkg.version)' which is later than the local version '$($_.version)'."
2727
Write-Verbose "Internalizing package '$($_.name)' with version '$($remotePkg.version)'."

jenkins/scripts/Update-ProdRepoFromTest.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ param (
1414
)
1515

1616
Write-Verbose "Checking the list of packages available in the test and prod repositories"
17-
$testPkgs = choco list --source $TestRepo --all-versions --limit-output | ConvertFrom-Csv -Delimiter '|' -Header Name, Version
18-
$prodPkgs = choco list --source $ProdRepo --all-versions --limit-output | ConvertFrom-Csv -Delimiter '|' -Header Name, Version
17+
$testPkgs = choco search --source $TestRepo --all-versions --limit-output | ConvertFrom-Csv -Delimiter '|' -Header Name, Version
18+
$prodPkgs = choco search --source $ProdRepo --all-versions --limit-output | ConvertFrom-Csv -Delimiter '|' -Header Name, Version
1919
$tempPath = Join-Path -Path $env:TEMP -ChildPath ([GUID]::NewGuid()).GUID
2020

2121
$Packages = if ($null -eq $testPkgs) {

0 commit comments

Comments
 (0)