-
Notifications
You must be signed in to change notification settings - Fork 384
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(nexus-repository) Temporarily Disables Package Updates
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
Showing
1 changed file
with
24 additions
and
24 deletions.
There are no files selected for viewing
48 changes: 24 additions & 24 deletions
48
automatic/nexus-repository/update.ps1 → automatic/nexus-repository/_update.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |