From 8b31678c6e44400967d4934cd9f3c6c6ac0da721 Mon Sep 17 00:00:00 2001 From: Max Nanis Date: Thu, 19 Feb 2026 20:11:41 -0500 Subject: Carer dir into project, some initial pytest, part of the flow tasks. License and Readme update --- Jenkinsfile | 95 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 Jenkinsfile (limited to 'Jenkinsfile') diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..265e6c6 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,95 @@ +/* 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 <