From 722b4c7890e864d6ac042c1a808413e012c82fb8 Mon Sep 17 00:00:00 2001 From: Rui Lopes Date: Tue, 20 Feb 2018 08:21:38 +0000 Subject: [PATCH] upgrade to nexus 3.8.0-02 --- README.md | 10 +- provision/execute-provision.groovy-script.sh | 2 +- provision/nexus-groovy.sh | 6 +- provision/provision-nexus.sh | 4 +- provision/provision-nexus/Makefile | 2 +- provision/provision-nexus/pom.xml | 2 +- provision/provision-nexus/provision-nexus.iml | 92 ++++++++++--------- 7 files changed, 65 insertions(+), 53 deletions(-) diff --git a/README.md b/README.md index eddaaa9..dfa89e4 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,12 @@ Build and install the [Ubuntu Base Box](https://github.com/rgl/ubuntu-vagrant). Build and install the [Windows Base Box](https://github.com/rgl/windows-2016-vagrant). +Install the required Vagrant plugins: + +```bash +vagrant plugin install vagrant-triggers # see https://github.com/emyl/vagrant-triggers +``` + Add the following entry to your `/etc/hosts` file: ``` @@ -56,7 +62,7 @@ function nexus-component-exists { "$( http \ get \ - https://nexus.example.com/service/siesta/rest/beta/search \ + https://nexus.example.com/service/rest/beta/search \ "repository==$1" \ "name==$2" \ "version==$3" \ @@ -81,7 +87,7 @@ function Test-NexusComponent { [string]$version) $items = (Invoke-RestMethod ` -Method Get ` - -Uri https://nexus.example.com/service/siesta/rest/beta/search ` + -Uri https://nexus.example.com/service/rest/beta/search ` -Body @{ repository = $repository name = $name diff --git a/provision/execute-provision.groovy-script.sh b/provision/execute-provision.groovy-script.sh index abcf961..fb9fff7 100644 --- a/provision/execute-provision.groovy-script.sh +++ b/provision/execute-provision.groovy-script.sh @@ -6,7 +6,7 @@ nexus_domain=$(hostname --fqdn) . /vagrant/provision/nexus-groovy.sh # list existing scripts. -#http -a "$admin_username:$admin_password" https://$nexus_domain/service/siesta/rest/v1/script | jq . +#http -a "$admin_username:$admin_password" https://$nexus_domain/service/rest/v1/script | jq . # run the provision script. response=$(nexus-groovy provision) diff --git a/provision/nexus-groovy.sh b/provision/nexus-groovy.sh index b829b22..2d2107b 100644 --- a/provision/nexus-groovy.sh +++ b/provision/nexus-groovy.sh @@ -12,13 +12,13 @@ function nexus-groovy { local delete_result=$(http \ -a "$admin_username:$admin_password" \ --ignore-stdin \ - DELETE https://$nexus_domain/service/siesta/rest/v1/script/provision.groovy) + DELETE https://$nexus_domain/service/rest/v1/script/provision.groovy) local create_result=$(http \ -a "$admin_username:$admin_password" \ --ignore-stdin \ --check-status \ - POST https://$nexus_domain/service/siesta/rest/v1/script \ + POST https://$nexus_domain/service/rest/v1/script \ name=provision.groovy \ type=groovy \ "content=@$source_filename") @@ -27,6 +27,6 @@ function nexus-groovy { -a "$admin_username:$admin_password" \ --ignore-stdin \ --check-status \ - POST https://$nexus_domain/service/siesta/rest/v1/script/provision.groovy/run \ + POST https://$nexus_domain/service/rest/v1/script/provision.groovy/run \ Content-Type:text/plain } diff --git a/provision/provision-nexus.sh b/provision/provision-nexus.sh index 5fad87e..1293466 100644 --- a/provision/provision-nexus.sh +++ b/provision/provision-nexus.sh @@ -31,9 +31,9 @@ install -d -o root -g nexus -m 750 /opt/nexus pushd /opt/nexus # see http://www.sonatype.com/download-oss-sonatype # see https://help.sonatype.com/display/NXRM3 -nexus_tarball=nexus-3.7.1-02-unix.tar.gz +nexus_tarball=nexus-3.8.0-02-unix.tar.gz nexus_download_url=https://sonatype-download.global.ssl.fastly.net/nexus/3/$nexus_tarball -nexus_download_sha1=e15f7b170a13f3f8eef85f4043066d0fd3efe3b7 +nexus_download_sha1=c5a478074b71c74ca92a21584da859f16f255e54 wget -q $nexus_download_url if [ "$(sha1sum $nexus_tarball | awk '{print $1}')" != "$nexus_download_sha1" ]; then echo "downloaded $nexus_download_url failed the checksum verification" diff --git a/provision/provision-nexus/Makefile b/provision/provision-nexus/Makefile index 68847d7..d55ec2c 100644 --- a/provision/provision-nexus/Makefile +++ b/provision/provision-nexus/Makefile @@ -17,7 +17,7 @@ binaries: binaries-download binaries-download: mkdir -p binaries - wget -qO- https://sonatype-download.global.ssl.fastly.net/nexus/3/nexus-3.7.0-04-unix.tar.gz \ + wget -qO- https://sonatype-download.global.ssl.fastly.net/nexus/3/nexus-3.8.0-02-unix.tar.gz \ | tar xzf - --strip-components 1 -C binaries clean: diff --git a/provision/provision-nexus/pom.xml b/provision/provision-nexus/pom.xml index 7a6c4d2..3ebd515 100644 --- a/provision/provision-nexus/pom.xml +++ b/provision/provision-nexus/pom.xml @@ -8,7 +8,7 @@ 1.0-SNAPSHOT - 3.7.0-04 + 3.8.0-02 diff --git a/provision/provision-nexus/provision-nexus.iml b/provision/provision-nexus/provision-nexus.iml index f8eaad7..6b8fc31 100644 --- a/provision/provision-nexus/provision-nexus.iml +++ b/provision/provision-nexus/provision-nexus.iml @@ -8,21 +8,20 @@ - - + + - - + + - - + - - - + + + @@ -43,26 +42,26 @@ - + + - + - - - - + + + - - + + - + @@ -74,38 +73,39 @@ - - - + + + - - - + + + - - - + + + - - - - + + + + + - + - - + + @@ -114,17 +114,17 @@ - - + + - + - + @@ -133,7 +133,13 @@ - + + + + + + + @@ -142,12 +148,12 @@ - - + + - + - +