/* 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://${env.DB_USER}:${env.DB_PASSWORD}@${env.DB_POSTGRESQL_HOST}/${env.DB_NAME}" echo "Using database: ${env.DB_NAME}" } sh """ PGPASSWORD=${env.DB_PASSWORD} psql -h ${env.DB_POSTGRESQL_HOST} -U ${env.DB_USER} -d ${env.DB_NAME} <