From 597cf2f1f38125607598982ce427dea833f418b0 Mon Sep 17 00:00:00 2001 From: Marc Hoersken Date: Sun, 1 Mar 2020 14:43:58 +0100 Subject: 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. --- tests/azure.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/azure.pm') diff --git a/tests/azure.pm b/tests/azure.pm index ef0bb6211..4a450148b 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'}) { -- cgit v1.2.3