From 09e7964b5f352db11e7e8330d321b5998806215e Mon Sep 17 00:00:00 2001 From: hu-weihua Date: Wed, 5 Jul 2017 01:29:21 -0400 Subject: [PATCH] Using token to instead of user name and password --- travis.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/travis.pl b/travis.pl index 7ca5563fe..382c61148 100644 --- a/travis.pl +++ b/travis.pl @@ -157,8 +157,7 @@ sub send_back_comment{ } print "[send_back_comment] method = $post_method to $post_url \n"; - `curl -u "$ENV{'USERNAME'}:$ENV{'PASSWORD'}" -X $post_method -d '{"body":"$message"}' $post_url 2>&1 > /dev/null`; - # `curl -u "denfshuaishuai\@icloud.com:ds18811031107" -X $post_method -d '{"body":"$message"}' $post_url 2>&1 > /dev/null`; + `curl -v -H "Authorization: token 7333caf3936a938ad0803e7a297423e43f69fb62" -X POST -d '{"body":"$message"}' $post_url 2>&1 > /dev/null`; } #--------------------------------------------------------