From: Marc Hoersken Date: Sun, 1 Mar 2020 13:43:58 +0000 (+0100) Subject: ci/tests: Make sure that the AZURE_ACCESS_TOKEN is available X-Git-Tag: curl-7_69_0~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=597cf2f1f38125607598982ce427dea833f418b0;p=thirdparty%2Fcurl.git ci/tests: Make sure that the AZURE_ACCESS_TOKEN is available For security reasons the access token is not available to PR builds. Therefore we should not try to use the DevOps API with an empty token. --- diff --git a/tests/azure.pm b/tests/azure.pm index ef0bb6211b..4a450148b1 100644 --- a/tests/azure.pm +++ b/tests/azure.pm @@ -27,7 +27,7 @@ use warnings; use POSIX qw(strftime); sub azure_check_environment { - if(defined $ENV{'AZURE_ACCESS_TOKEN'} && + if(defined $ENV{'AZURE_ACCESS_TOKEN'} && $ENV{'AZURE_ACCESS_TOKEN'} defined $ENV{'AGENT_JOBNAME'} && $ENV{'BUILD_BUILDID'} && defined $ENV{'SYSTEM_TEAMFOUNDATIONCOLLECTIONURI'} && defined $ENV{'SYSTEM_TEAMPROJECTID'}) {