Skip to content

Instantly share code, notes, and snippets.

@ishults
Last active December 16, 2015 20:02
Show Gist options
  • Save ishults/f09cca6b8f5c8f793514 to your computer and use it in GitHub Desktop.
Save ishults/f09cca6b8f5c8f793514 to your computer and use it in GitHub Desktop.
Sample Jenkins script to drop a database
# 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