Skip to content

Commit

Permalink
Merge pull request #15 from lee442/master
Browse files Browse the repository at this point in the history
Increasing Version to 3.12.1
  • Loading branch information
dsingh07 authored Jul 26, 2018
2 parents 2da11a7 + 8387176 commit 6f4415e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM sonatype/nexus3:3.7.1
FROM sonatype/nexus3:3.12.1


ENV LDAP_ENABLED=true \
Expand Down
2 changes: 1 addition & 1 deletion resources/conf/addUpdatescript.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def file = new File(options.f)
assert file.exists()

def host = options.h ?: 'http://localhost:8081'
def resource = 'service/siesta'
def resource = 'service/'

ScriptClient scripts = new ResteasyClientBuilder()
.build()
Expand Down
4 changes: 2 additions & 2 deletions resources/provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function addAndRunScript() {
classPath=$(find /root/.groovy/grapes -name *.jar)
groovy -cp $(echo $classPath | sed 's/ /:/g') -Dgroovy.grape.report.downloads=true resources/conf/addUpdatescript.groovy -u "$username" -p "$password" -n "$name" -f "$file" -h "$nexus_host"
printf "\nPublished $file as $name\n\n"
curl -v -X POST -u $username:$password --header "Content-Type: text/plain" "$nexus_host/service/siesta/rest/v1/script/$name/run" -d "$args"
curl -v -X POST -u $username:$password --header "Content-Type: text/plain" "$nexus_host/service/rest/v1/script/$name/run" -d "$args"
printf "\nSuccessfully executed $name script\n\n\n"
}

Expand Down Expand Up @@ -113,4 +113,4 @@ if [ -n "${NEXUS_ADMIN_PASSWORD}" ]
fi


printf "\nProvisioning Scripts Completed\n\n"
printf "\nProvisioning Scripts Completed\n\n"

0 comments on commit 6f4415e

Please sign in to comment.