Skip to content

Instantly share code, notes, and snippets.

@de314
Created December 20, 2015 07:57
Show Gist options
  • Save de314/9a45d76629a616e7cea2 to your computer and use it in GitHub Desktop.
Save de314/9a45d76629a616e7cea2 to your computer and use it in GitHub Desktop.
Maven Safe Deploy
#!/bin/bash
mvn clean test
rc=$?
if [[ $rc != 0 ]] ; then
echo 'Failing Tests';
exit $rc
fi
mvn clean deploy -DskipTests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment