Last active
December 16, 2015 20:02
-
-
Save ishults/f09cca6b8f5c8f793514 to your computer and use it in GitHub Desktop.
Sample Jenkins script to drop a database
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Exports | |
export PSQL_HOME=/Library/PostgreSQL/9.3 | |
export PATH=/Library/PostgreSQL/9.3/bin:$PATH | |
export PGPASSWORD=yourPass # Ideally this should live in the .pgpass file | |
# Drop the database | |
dropdb test_db${BUILD_NUMBER} --username=yourUser --if-exists |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment