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