Skip to content

Instantly share code, notes, and snippets.

@Malinskiy
Last active July 31, 2018 06:02
Show Gist options
  • Select an option

  • Save Malinskiy/dead83065d76a021462a58410feb082a to your computer and use it in GitHub Desktop.

Select an option

Save Malinskiy/dead83065d76a021462a58410feb082a to your computer and use it in GitHub Desktop.
#!/usr/bin/env sh
 
# fail if anything errors
set -e
# fail if a function call is missing an argument
set -u
username=$(cat /nexus-password/username)
password=$(cat /nexus-password/password)
ip=$POD_IP
config=/nexus-config/config.yaml
groovy -Dgrape.root=/home/groovy/grapes -Divy.message.logger.level=4 local.groovy -u "$username" -p "$password" -c "$config" -i "$ip"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment