Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Start-C4bCcmSetup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,11 @@ process {
}
& Invoke-Choco @chocoArgs

# Add CCM & .Net Dependencies to upgradeAllExceptions list
$upgradeAllExceptions = choco config get --name=upgradeAllExceptions --limit-output
$chocoArgs = @('config', 'set', '--name=upgradeAllExceptions', "--value=dotnet-aspnetcoremodule-v2,dotnet-8.0-runtime,dotnet-8.0-aspnetruntime,chocolatey-management-database,chocolatey-management-service,chocolatey-management-web,$upgradeAllExceptions")
& Invoke-Choco @chocoArgs

# Setup Website SSL
if ($Thumbprint) {
Stop-CcmService
Expand Down
5 changes: 5 additions & 0 deletions Start-C4bJenkinsSetup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ process {
$chocoArgs = @('install', 'jenkins', "--source='ChocolateyInternal'", '-y', '--no-progress')
& Invoke-Choco @chocoArgs

# Add Jenkins & Java Dependency to upgradeAllExceptions list
$upgradeAllExceptions = choco config get --name=upgradeAllExceptions --limit-output
$chocoArgs = @('config', 'set', '--name=upgradeAllExceptions', "--value=jenkins,temurin21jre,$upgradeAllExceptions")
& Invoke-Choco @chocoArgs

# Jenkins needs a moment
Wait-Site Jenkins

Expand Down
4 changes: 4 additions & 0 deletions Start-C4bNexusSetup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ process {
$chocoArgs = @('install', 'nexus-repository', '-y' ,'--no-progress', "--package-parameters='/Fqdn:localhost'")
& Invoke-Choco @chocoArgs

# Add nexus-repository to upgradeAllExceptions list
$chocoArgs = @('config', 'set', '--name=upgradeAllExceptions', '--value=nexus-repository', '--limit-output')
& Invoke-Choco @chocoArgs

$chocoArgs = @('install', 'nexushell', '-y' ,'--no-progress')
& Invoke-Choco @chocoArgs

Expand Down
11 changes: 11 additions & 0 deletions tests/packages.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,14 @@ $RepositoryOnlyPackages = @(
@{Name = 'chocolateygui.extension' }
@{Name = 'dotnetfx' }
)
$upgradeAllExceptionPackages = @(
@{Name = 'chocolatey-management-database' }
@{Name = 'chocolatey-management-service' }
@{Name = 'chocolatey-management-web' }
@{Name = 'dotnet-8.0-aspnetruntime' }
@{Name = 'dotnet-8.0-runtime' }
@{Name = 'dotnet-aspnetcoremodule-v2' }
@{Name = 'jenkins' }
@{Name = 'nexus-repository' }
@{Name = 'Temurin21jre' }
)
10 changes: 10 additions & 0 deletions tests/server.tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ Describe "Server Integrity" {
}
}

Context "Packages Set as Upgrade All Exceptions" {
BeforeAll {
$upgradeAllExceptionsList = (choco config get --name=upgradeAllExceptions --limit-output).Split(',')
}

It "<Name> is part of the upgradeAllExceptions list" -ForEach $upgradeAllExceptionPackages {
$Name | Should -BeIn $upgradeAllExceptionsList
}
}

Context "Readme File" {
It "Readme file was created" {
Test-Path (Join-Path "$env:PUBLIC\Desktop" -ChildPath 'Readme.html') | Should -Be $true
Expand Down
Loading