Skip to content

Commit

Permalink
(nexus-repository) Temporarily Disables Package Updates
Browse files Browse the repository at this point in the history
Nexus' recently released version causes upgrades to fail, due to the required database migration steps.

Until we've fixed that logic, we are disabling the automatic package updates.
  • Loading branch information
JPRuskin authored Aug 12, 2024
1 parent a56848b commit 275cbb8
Showing 1 changed file with 24 additions and 24 deletions.
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
Import-Module Chocolatey-AU

function global:au_GetLatest {
$LatestRelease = Get-GitHubRelease sonatype nexus-public
$ReleaseVersion = $LatestRelease.tag_name -replace 'release-', ''

@{
NexusVersion = $ReleaseVersion
Version = $ReleaseVersion -replace '-', '.'
URL64 = "https://sonatype-download.global.ssl.fastly.net/repository/downloads-prod-group/3/nexus-$($ReleaseVersion)-win64.zip"
}
}

function global:au_SearchReplace {
@{
".\tools\chocolateyInstall.ps1" = @{
"(^[$]Version\s*=\s*)('.*')" = "`$1'$($Latest.NexusVersion)'"
"(^\s*url64\s*=\s*)('.*')" = "`$1'$($Latest.URL64)'"
"(^\s*checksum64\s*=\s*)('.*')" = "`$1'$($Latest.Checksum64)'"
}
}
}

update -ChecksumFor 64
Import-Module Chocolatey-AU

function global:au_GetLatest {
$LatestRelease = Get-GitHubRelease sonatype nexus-public
$ReleaseVersion = $LatestRelease.tag_name -replace 'release-', ''

@{
NexusVersion = $ReleaseVersion
Version = $ReleaseVersion -replace '-', '.'
URL64 = "https://sonatype-download.global.ssl.fastly.net/repository/downloads-prod-group/3/nexus-$($ReleaseVersion)-win64.zip"
}
}

function global:au_SearchReplace {
@{
".\tools\chocolateyInstall.ps1" = @{
"(^[$]Version\s*=\s*)('.*')" = "`$1'$($Latest.NexusVersion)'"
"(^\s*url64\s*=\s*)('.*')" = "`$1'$($Latest.URL64)'"
"(^\s*checksum64\s*=\s*)('.*')" = "`$1'$($Latest.Checksum64)'"
}
}
}

update -ChecksumFor 64

0 comments on commit 275cbb8

Please sign in to comment.