diff options
author | Marc Hoersken <info@marc-hoersken.de> | 2020-03-01 14:43:58 +0100 |
---|---|---|
committer | Marc Hoersken <info@marc-hoersken.de> | 2020-03-01 14:43:58 +0100 |
commit | 597cf2f1f38125607598982ce427dea833f418b0 (patch) | |
tree | 93f2f7c8e92b85c6f5084e7167ce677d0d5a318b /tests | |
parent | d6e3273bb004013ce56bc97fae2d576696ca7579 (diff) |
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.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/azure.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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'}) { |