@@ -63,6 +63,27 @@ windows_16_cpu_32G_template: &WINDOWS_16_CPU_32G
63
63
preemptible : false
64
64
use_ssd : true
65
65
66
+ orchestrator_cache_definition : &ORCHESTRATOR_CACHE_DEFINITION
67
+ set_orchestrator_home_script : |
68
+ # Check if SQ_VERSION exists and create an intermediary variable
69
+ if [ -n "$SQ_VERSION" ]; then
70
+ FOLDER="${SQ_VERSION}"
71
+ else
72
+ FOLDER="DEFAULT"
73
+ fi
74
+
75
+ CURRENT_MONTH=$(date +"%B")
76
+ echo "CURRENT_MONTH=${CURRENT_MONTH}" >> $CIRRUS_ENV
77
+ echo "ORCHESTRATOR_HOME=${CIRRUS_WORKING_DIR}/orchestrator/${FOLDER}/${CURRENT_MONTH}" >> $CIRRUS_ENV
78
+ echo "FOLDER=${FOLDER}" >> $CIRRUS_ENV
79
+ mkdir_orchestrator_home_script : |
80
+ echo "Create dir ${ORCHESTRATOR_HOME} if needed"
81
+ mkdir -p ${ORCHESTRATOR_HOME}
82
+ orchestrator_cache :
83
+ folder : ${ORCHESTRATOR_HOME}
84
+ fingerprint_script : echo ${FOLDER}-${CURRENT_MONTH}
85
+ reupload_on_changes : " true"
86
+
66
87
setup_gradle_cache_template : &SETUP_GRADLE_CACHE
67
88
gradle_cache :
68
89
folder : .gradle/caches
@@ -78,6 +99,7 @@ cleanup_gradle_cache_script_template: &CLEANUP_GRADLE_CACHE_SCRIPT
78
99
79
100
gradle_its_template : &GRADLE_ITS_TEMPLATE
80
101
<< : *SETUP_GRADLE_CACHE
102
+ << : *ORCHESTRATOR_CACHE_DEFINITION
81
103
run_its_script :
82
104
- |
83
105
if [ -n "${GIT_SUB_MODULE}" ]; then
@@ -198,6 +220,7 @@ qa_ruling_kotlin_compiler_task:
198
220
GIT_SUB_MODULE : " its/sources"
199
221
<< : *LINUX_6_CPU_12G_JAVA_17
200
222
<< : *SETUP_GRADLE_CACHE
223
+ << : *ORCHESTRATOR_CACHE_DEFINITION
201
224
run_its_script :
202
225
- |
203
226
if [ -n "${GIT_SUB_MODULE}" ]; then
0 commit comments