Skip to content

Commit

Permalink
Updated config checking
Browse files Browse the repository at this point in the history
  • Loading branch information
martingrossmann committed Jul 21, 2022
1 parent e3a1966 commit d883302
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,18 +159,23 @@ private void checkProperties() {
}
if (StringUtils.isEmpty(Properties.AZURE_USER.asString())) {
log().error("Azure DevOps user is not defined.");
this.azureSyncEnabled = false;
}
if (StringUtils.isEmpty(this.azureAuthenticationString)) {
log().error("Azure DevOps user token is not defined.");
this.azureSyncEnabled = false;
}
if (StringUtils.isEmpty(Properties.AZURE_API_ROOT.asString())) {
log().error("Azure DevOps API root is not defined.");
this.azureSyncEnabled = false;
}
if (StringUtils.isEmpty(Properties.AZURE_API_VERSION.asString())) {
log().error("Azure DevOps API version is not defined.");
this.azureSyncEnabled = false;
}
if (Properties.AZURE_TESTPLAN_ID.asLong() == 0) {
log().error("Azure DevOps testplan ID is not defined.");
this.azureSyncEnabled = false;
}
if (!this.azureSyncEnabled) {
log().warn("Azure DevOps sync was disabled because of missing/invalid properties.");
Expand Down

0 comments on commit d883302

Please sign in to comment.