/* This is intended to test the dev & master branches of the gr-api project, where the tests are entirely self contained */ pipeline { agent any triggers { cron('H */6 * * *') pollSCM('H */3 * * *') } environment { DATA_SRC = "${env.WORKSPACE}/mnt/" AMT_JB_CARER_VENV = "${env.WORKSPACE}/amt-jb-carer-venv" AMT_JB_VENV = "${env.WORKSPACE}/amt-jb-venv" } stages { stage('Setup DB'){ steps { script { env.DB_NAME = "unittest-amt-jb-" + UUID.randomUUID().toString().replace("-", "").take(12) env.AMT_JB_DB = "postgres://jenkins:123456789@unittest-postgresql.fmt2.grl.internal/${env.DB_NAME}" echo "Using database: ${env.DB_NAME}" } sh """ PGPASSWORD=123456789 psql -h unittest-postgresql.fmt2.grl.internal -U jenkins -d postgres <