Files
nexus-vagrant/provision/execute-provision.groovy-script.sh
T
2026-06-24 07:24:24 +00:00

18 lines
490 B
Bash

#!/bin/bash
set -euxo pipefail
nexus_domain=$(hostname --fqdn)
. /vagrant/provision/nexus-groovy.sh
# NB this is the default nexus password, which will be changed to
# 'password' by the provision.groovy script that we run bellow.
admin_password='admin123'
# list existing scripts.
#http -a "$admin_username:$admin_password" https://$nexus_domain/service/rest/v1/script | jq .
# run the provision script.
response=$(nexus-groovy provision)
echo "$response" | jq '.result | fromjson'