Hook subject OK
This commit is contained in:
parent
a90638153e
commit
ecf03827c1
@ -31,7 +31,7 @@ if ($ref =~ m<^refs/tags(/.+)$>)
|
|||||||
my $tag = $1;
|
my $tag = $1;
|
||||||
my @args;
|
my @args;
|
||||||
|
|
||||||
while ($tag =~ m<[:/]([^:]+)>g) {
|
while ($tag =~ m<[,/]([^,]+)>g) {
|
||||||
push @args, $1;
|
push @args, $1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -65,7 +65,7 @@ sub check_xml
|
|||||||
sub repository_name
|
sub repository_name
|
||||||
{
|
{
|
||||||
my $repo = $ENV{GL_REPO};
|
my $repo = $ENV{GL_REPO};
|
||||||
$repo =~ s/^subjects\\(.*)/$1/;
|
$repo =~ s#^subjects/(.*)#$1#;
|
||||||
return $repo;
|
return $repo;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -143,8 +143,12 @@ sub tag_project
|
|||||||
|
|
||||||
# Send data to intradata
|
# Send data to intradata
|
||||||
log INFO, "Attente d'un processus de publication...";
|
log INFO, "Attente d'un processus de publication...";
|
||||||
log ERROR, "Erreur durant le processus de publication : $_"
|
if (my $err = Process::Client::launch("intradata_get", { action => "update", type => "project", id => $project_id, "year" => $year }, { "butler.xml" => $content }))
|
||||||
if (Process::Client::launch("intradata_get", { action => "update", type => "project", id => $project_id, "year" => $year }, { "butler.xml" => $content }));
|
{
|
||||||
|
if (${ $err } ne "Ok") {
|
||||||
|
log ERROR, "Erreur durant le processus de publication : " . ${ $err };
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# Call API
|
# Call API
|
||||||
log ERROR, $_ if(API::Projects::add($project_id, $year));
|
log ERROR, $_ if(API::Projects::add($project_id, $year));
|
||||||
|
Reference in New Issue
Block a user