upgrade to nexus 3.70.3-01
This commit is contained in:
parent
d39103bbb1
commit
1c2f7570ed
|
|
@ -117,7 +117,7 @@ Nexus uses [OrientDB](https://en.wikipedia.org/wiki/OrientDB) as its database. T
|
||||||
sudo su -l # switch to the root user.
|
sudo su -l # switch to the root user.
|
||||||
systemctl stop nexus # make sure nexus is not running while you use the database.
|
systemctl stop nexus # make sure nexus is not running while you use the database.
|
||||||
su -s /bin/bash nexus # switch to the nexus user.
|
su -s /bin/bash nexus # switch to the nexus user.
|
||||||
nexus_home=/opt/nexus/nexus-3.58.1-02 # make sure you have the correct version here.
|
nexus_home=/opt/nexus/nexus-3.70.3-01 # make sure you have the correct version here.
|
||||||
nexus_data=$nexus_home/../sonatype-work/nexus3
|
nexus_data=$nexus_home/../sonatype-work/nexus3
|
||||||
function orientdb-console {
|
function orientdb-console {
|
||||||
java -jar $nexus_home/lib/support/nexus-orient-console.jar $*
|
java -jar $nexus_home/lib/support/nexus-orient-console.jar $*
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ function nexus-groovy {
|
||||||
local delete_result=$(http \
|
local delete_result=$(http \
|
||||||
-a "$admin_username:$admin_password" \
|
-a "$admin_username:$admin_password" \
|
||||||
--ignore-stdin \
|
--ignore-stdin \
|
||||||
DELETE https://$nexus_domain/service/rest/v1/script/provision.groovy)
|
DELETE https://$nexus_domain/service/rest/v1/script/provision.groovy)
|
||||||
|
|
||||||
local create_result=$(http \
|
local create_result=$(http \
|
||||||
-a "$admin_username:$admin_password" \
|
-a "$admin_username:$admin_password" \
|
||||||
|
|
|
||||||
|
|
@ -35,17 +35,17 @@ pushd /opt/nexus
|
||||||
# see https://help.sonatype.com/repomanager3/product-information/download/download-archives---repository-manager-3
|
# see https://help.sonatype.com/repomanager3/product-information/download/download-archives---repository-manager-3
|
||||||
# see https://help.sonatype.com/repomanager3/product-information/release-notes
|
# see https://help.sonatype.com/repomanager3/product-information/release-notes
|
||||||
# see https://help.sonatype.com/repomanager3
|
# see https://help.sonatype.com/repomanager3
|
||||||
nexus_version=3.58.1-02
|
nexus_version=3.70.3-01
|
||||||
nexus_home=/opt/nexus/nexus-$nexus_version
|
nexus_home=/opt/nexus/nexus-$nexus_version
|
||||||
nexus_tarball=nexus-$nexus_version-unix.tar.gz
|
nexus_tarball=nexus-$nexus_version-unix.tar.gz
|
||||||
nexus_download_url=https://download.sonatype.com/nexus/3/$nexus_tarball
|
nexus_download_url=https://download.sonatype.com/nexus/3/$nexus_tarball
|
||||||
nexus_download_sha1=99d0cb82471f2b39a6060369e77868dd1462b243
|
nexus_download_sha1=56bf87028892450b2841756bd9fc4caed6b48287
|
||||||
wget -q $nexus_download_url
|
wget -q $nexus_download_url
|
||||||
if [ "$(sha1sum $nexus_tarball | awk '{print $1}')" != "$nexus_download_sha1" ]; then
|
if [ "$(sha1sum $nexus_tarball | awk '{print $1}')" != "$nexus_download_sha1" ]; then
|
||||||
echo "downloaded $nexus_download_url failed the checksum verification"
|
echo "downloaded $nexus_download_url failed the checksum verification"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
tar xf $nexus_tarball # NB this creates the $nexus_home (e.g. nexus-3.58.1-02) and sonatype-work directories.
|
tar xf $nexus_tarball # NB this creates the $nexus_home (e.g. nexus-3.70.3-01) and sonatype-work directories.
|
||||||
rm $nexus_tarball
|
rm $nexus_tarball
|
||||||
install -d -o nexus -g nexus -m 700 .java # java preferences are saved here (the default java.util.prefs.userRoot preference).
|
install -d -o nexus -g nexus -m 700 .java # java preferences are saved here (the default java.util.prefs.userRoot preference).
|
||||||
install -d -o nexus -g nexus -m 700 sonatype-work/nexus3/etc
|
install -d -o nexus -g nexus -m 700 sonatype-work/nexus3/etc
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ binaries: binaries-download
|
||||||
|
|
||||||
binaries-download:
|
binaries-download:
|
||||||
mkdir -p binaries
|
mkdir -p binaries
|
||||||
wget -qO- https://download.sonatype.com/nexus/3/nexus-3.58.1-02-unix.tar.gz \
|
wget -qO- https://download.sonatype.com/nexus/3/nexus-3.70.3-01-unix.tar.gz \
|
||||||
| tar xzf - --strip-components 1 -C binaries
|
| tar xzf - --strip-components 1 -C binaries
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
<version>1.0-SNAPSHOT</version>
|
<version>1.0-SNAPSHOT</version>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<nx-version>3.58.1-02</nx-version>
|
<nx-version>3.70.3-01</nx-version>
|
||||||
</properties>
|
</properties>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|
|
||||||
|
|
@ -111,7 +111,7 @@ taskConfiguration.setString("snapshotRetentionDays", "30")
|
||||||
taskScheduler.scheduleTask(taskConfiguration, new Daily(new Date().clearTime().next()))
|
taskScheduler.scheduleTask(taskConfiguration, new Daily(new Date().clearTime().next()))
|
||||||
|
|
||||||
|
|
||||||
// NB you can list the available realms with realmManager.availableRealms.
|
// enable the required realms.
|
||||||
realmManager = container.lookup(RealmManager.class.name)
|
realmManager = container.lookup(RealmManager.class.name)
|
||||||
// enable the NuGet API-Key Realm.
|
// enable the NuGet API-Key Realm.
|
||||||
realmManager.enableRealm("NuGetApiKey")
|
realmManager.enableRealm("NuGetApiKey")
|
||||||
|
|
@ -155,7 +155,6 @@ addDeployerUser("Jenkins", "Doe", "jenkins@example.com", "jenkins", "password")
|
||||||
addDeployerUser("Alice", "Doe", "alice.doe@example.com", "alice.doe", "password")
|
addDeployerUser("Alice", "Doe", "alice.doe@example.com", "alice.doe", "password")
|
||||||
addDeployerUser("Bob", "Doe", "bob.doe@example.com", "bob.doe", "password")
|
addDeployerUser("Bob", "Doe", "bob.doe@example.com", "bob.doe", "password")
|
||||||
|
|
||||||
realms = realmManager.configuration.realmNames
|
|
||||||
users = security.securitySystem.searchUsers(new UserSearchCriteria())
|
users = security.securitySystem.searchUsers(new UserSearchCriteria())
|
||||||
repositories = repository.repositoryManager.browse().collect { [name:it.name,type:it.type.value] }
|
repositories = repository.repositoryManager.browse().collect { [name:it.name,type:it.type.value] }
|
||||||
|
|
||||||
|
|
@ -174,7 +173,6 @@ return JsonOutput.toJson([
|
||||||
initialValue: it.initialValue,
|
initialValue: it.initialValue,
|
||||||
] }
|
] }
|
||||||
] },*/
|
] },*/
|
||||||
realms: realms.sort { it },
|
|
||||||
users: users.sort { it.userId },
|
users: users.sort { it.userId },
|
||||||
repositories: repositories.sort { it.name },
|
repositories: repositories.sort { it.name },
|
||||||
])
|
])
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue