Archived
1
0
Fork 0

Change hook to send a specific action for ref

This commit is contained in:
Nicolas Geniteau 2013-10-17 15:00:34 +02:00
parent 3f265bd9d6
commit a3fca0f622

View file

@ -511,8 +511,12 @@ sub tag_ref
my $long_tag; my $long_tag;
{ {
my $proj_id = $_[1] // ""; my $proj_id = $_[1] // "";
if ($rendu eq "*") {
$long_tag = "ref,$proj_id,,$year";
} else {
$long_tag = "ref,$proj_id,$rendu,$year"; $long_tag = "ref,$proj_id,$rendu,$year";
} }
}
if ($creation) if ($creation)
{ {
@ -533,8 +537,7 @@ sub tag_ref
# Send data to moulette # Send data to moulette
log INFO, "Attente d'un processus de compilation..."; log INFO, "Attente d'un processus de compilation...";
if (my $err = Process::Client::launch("moulette_get", { if (my $err = Process::Client::launch("moulette_get", {
type => "tar", type => "ref",
login => "ref",
id => $project_id, id => $project_id,
"year" => $year, "year" => $year,
"rendu" => $rendu, "rendu" => $rendu,
@ -602,7 +605,7 @@ sub tag_tests
$rendu = $_[2]; $rendu = $_[2];
} }
else { else {
$rendu = ""; $rendu = "*";
} }
my $year; my $year;
@ -623,8 +626,12 @@ sub tag_tests
my $long_tag; my $long_tag;
{ {
my $proj_id = $_[1] // ""; my $proj_id = $_[1] // "";
if ($rendu eq "*") {
$long_tag = "tests,$proj_id,,$year";
} else {
$long_tag = "tests,$proj_id,$rendu,$year"; $long_tag = "tests,$proj_id,$rendu,$year";
} }
}
if ($creation) if ($creation)
{ {