-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjenkins_wrapper.sh
executable file
·42 lines (32 loc) · 1.01 KB
/
jenkins_wrapper.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
set -eu -o pipefail
echo "Launching MoH wrapper..."
##################################################
# Setup module
module load mugqic/python/3.10.4
##################################################
# STEP 1: Update file paths and timestamps in DB
echo "-> Running MOH_Check_Progress.py..."
./MOH_Check_Progress.py
echo -e "\n"
# Make sure previous job is done interacting with db
sleep 30
##################################################
# STEP 2: Update metrics in DB
echo "-> Running Metrics_Update.py..."
./Metrics_Update.py
echo -e "\n"
# Make sure previous job is done interacting with db
sleep 30
##################################################
# STEP 3: Update CSV files after DB modification
echo "-> Running Create_CSVs.sh..."
./Create_CSVs.sh
echo -e "...Done.\n"
# Make sure previous job is done interacting with db
# sleep 30
##################################################
# STEP 4: Deliver data
#echo "Running MOH_ln_output.py ..."
#./MOH_ln_output.py
echo "Finished MoH_wrapper execution."