Change hook to send a specific action for ref
This commit is contained in:
parent
3f265bd9d6
commit
a3fca0f622
1 changed files with 12 additions and 5 deletions
|
@ -511,7 +511,11 @@ sub tag_ref
|
|||
my $long_tag;
|
||||
{
|
||||
my $proj_id = $_[1] // "";
|
||||
$long_tag = "ref,$proj_id,$rendu,$year";
|
||||
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,7 +626,11 @@ sub tag_tests
|
|||
my $long_tag;
|
||||
{
|
||||
my $proj_id = $_[1] // "";
|
||||
$long_tag = "tests,$proj_id,$rendu,$year";
|
||||
if ($rendu eq "*") {
|
||||
$long_tag = "tests,$proj_id,,$year";
|
||||
} else {
|
||||
$long_tag = "tests,$proj_id,$rendu,$year";
|
||||
}
|
||||
}
|
||||
|
||||
if ($creation)
|
||||
|
|
Reference in a new issue