2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-01-08 09:22:33 +00:00

Merge pull request #6213 from gurevichmark/travis_debug

Add some more debugs to travis
This commit is contained in:
Weihua Hu
2019-04-10 09:53:26 +08:00
committed by GitHub

View File

@@ -150,6 +150,7 @@ sub check_pr_format{
$check_result_str .= "> **PR FORMAT CORRECT**";
send_back_comment("$check_result_str");
}else{
# Warning if missing milestone or labels, others are errors
if($checkrst =~ /milestone/ || $checkrst =~ /labels/){
$check_result_str .= "> **PR FORMAT WARNING** : $checkrst";
send_back_comment("$check_result_str");
@@ -259,8 +260,13 @@ sub send_back_comment{
}
}
print "[send_back_comment] method = $post_method to $post_url\n";
`curl -u "$ENV{'xcatbotuser'}:$ENV{'xcatbotpw'}" -X $post_method -d '{"body":"$message"}' $post_url`;
print "[send_back_comment] method = $post_method to $post_url. Message = $message\n";
if ( $ENV{'xcatbotuser'} and $ENV{'xcatbotpw'}) {
`curl -u "$ENV{'xcatbotuser'}:$ENV{'xcatbotpw'}" -X $post_method -d '{"body":"$message"}' $post_url`;
}
else {
print "Not able to update pull request with message: $message\n";
}
}
#--------------------------------------------------------