@@ -29,12 +29,12 @@ String get_windows_distro_sortname(ci_config)
29
29
+ ci_config.system.version.split('_').collect { it[0 ] }.join('')
30
30
}
31
31
32
- void generate_label_by_requirements(job, lib_name, requirements)
32
+ void generate_label_by_requirements(job, lib_name, requirements, base_label )
33
33
{
34
34
35
35
if (requirements.nvidia_gpu.contains(lib_name) &&
36
36
requirements.large_memory.contains(lib_name)) {
37
- println ("ERROR: more than one label is generated by requirements" )
37
+ println ("ERROR: more than one label is not supported by requirements" )
38
38
exit(1 )
39
39
}
40
40
@@ -46,7 +46,7 @@ void generate_label_by_requirements(job, lib_name, requirements)
46
46
47
47
job.with
48
48
{
49
- label Globals.nontest_label(label)
49
+ label Globals.nontest_label("${base_label} && ${ label}" )
50
50
51
51
if (requirements.nvidia_gpu.contains(lib_name)) {
52
52
// unstable build if missing valid gpu display
@@ -127,7 +127,7 @@ void generate_ci_job(gz_ci_job, lib_name, branch, ci_config,
127
127
"gazebosim/${lib_name}" ,
128
128
branch,
129
129
ws_checkout_dir)
130
- generate_label_by_requirements(gz_ci_job, lib_name, ci_config.requirements)
130
+ generate_label_by_requirements(gz_ci_job, lib_name, ci_config.requirements, 'docker' )
131
131
gz_ci_job.with
132
132
{
133
133
steps {
@@ -217,7 +217,7 @@ void generate_win_ci_job(gz_win_ci_job, lib_name, branch, ci_config)
217
217
"gazebosim/${lib_name}" ,
218
218
branch,
219
219
ws_checkout_dir)
220
-
220
+ generate_label_by_requirements(gz_win_ci_job, lib_name, ci_config.requirements, 'win')
221
221
add_win_devel_bat_call(gz_win_ci_job,
222
222
lib_name,
223
223
ws_checkout_dir,
@@ -446,7 +446,7 @@ branch_index.each { lib_name, distro_configs ->
446
446
is_testing_enabled(lib_name, ci_config),
447
447
ENABLE_CPPCHECK,
448
448
branch_names)
449
- generate_label_by_requirements(gz_ci_any_job, lib_name, ci_config.requirements)
449
+ generate_label_by_requirements(gz_ci_any_job, lib_name, ci_config.requirements, 'docker' )
450
450
gz_ci_any_job.with
451
451
{
452
452
steps
@@ -527,7 +527,7 @@ branch_index.each { lib_name, distro_configs ->
527
527
GenericAnyJobGitHub.create(abi_job,
528
528
"gazebosim/${lib_name}" ,
529
529
branch_names)
530
- generate_label_by_requirements(abi_job, lib_name, ci_config.requirements)
530
+ generate_label_by_requirements(abi_job, lib_name, ci_config.requirements, 'docker' )
531
531
abi_job.with
532
532
{
533
533
steps {
0 commit comments