1
1
load ("github.com/SonarSource/cirrus-modules/cloud-native/actions.star@analysis/master" , "default_gradle_on_failure" )
2
2
load ("github.com/SonarSource/cirrus-modules/cloud-native/platform.star@analysis/master" , "base_image_container_builder" ,
3
3
"ec2_instance_builder" )
4
- load ("github.com/SonarSource/cirrus-modules/cloud-native/conditions.star@analysis/master" , "is_branch_qa_eligible" )
4
+ load ("github.com/SonarSource/cirrus-modules/cloud-native/conditions.star@analysis/master" ,
5
+ "is_branch_qa_eligible" ,
6
+ "are_changes_doc_only"
7
+ )
5
8
load ("github.com/SonarSource/cirrus-modules/cloud-native/env.star@analysis/master" , "artifactory_reader_env" )
6
9
load ("build.star" , "profile_report_artifacts" )
7
10
load (
@@ -44,7 +47,7 @@ def qa_win_script():
44
47
def qa_os_win_task ():
45
48
return {
46
49
"qa_os_win_task" : {
47
- "only_if" : is_branch_qa_eligible (),
50
+ "only_if" : "({}) && !({})" . format ( is_branch_qa_eligible (), are_changes_doc_only () ),
48
51
"depends_on" : "build" ,
49
52
"ec2_instance" : ec2_instance_builder (),
50
53
"env" : artifactory_reader_env (),
@@ -62,7 +65,7 @@ def qa_os_win_task():
62
65
63
66
def qa_task (env , run_its_script ):
64
67
return {
65
- "only_if" : is_branch_qa_eligible (),
68
+ "only_if" : "({}) && !({})" . format ( is_branch_qa_eligible (), are_changes_doc_only () ),
66
69
"depends_on" : "build" ,
67
70
"eks_container" : base_image_container_builder (cpu = 4 , memory = "12G" ),
68
71
"env" : env ,
0 commit comments