From: Daniel Stenberg Date: Sat, 12 Feb 2022 15:56:06 +0000 (+0100) Subject: scripts/cijobs.pl: detect zuul cmake jobs better X-Git-Tag: curl-7_82_0~87 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b0d18dbcc056e00941e430ed601ee53e354f5625;p=thirdparty%2Fcurl.git scripts/cijobs.pl: detect zuul cmake jobs better --- diff --git a/scripts/cijobs.pl b/scripts/cijobs.pl index b6a437a39c..ec506833b3 100755 --- a/scripts/cijobs.pl +++ b/scripts/cijobs.pl @@ -402,6 +402,7 @@ sub zuul { my $c = 0; my %job; my $line=0; + my $type; $job{'file'} = "zuul.d/jobs.yaml"; $job{'service'} = "zuul"; while() { @@ -409,6 +410,7 @@ sub zuul { #print "L: ($jobmode / $env) $_"; if($_ =~ /^- job:/) { $jobmode = 1; # start a new + $type="configure"; } if($jobmode) { if($apt) { @@ -433,10 +435,14 @@ sub zuul { my ($var, $value) = ($1, $2); if($var eq "C") { - $var = "configure"; + $var = $type; } elsif($var eq "T") { $var = "tests"; + if($value eq "cmake") { + # otherwise it remains configure + $type = "cmake"; + } } elsif($var eq "CC") { $var = "compiler";