diff --git a/echo-core/src/main/java/com/netflix/spinnaker/echo/build/BuildInfoService.java b/echo-core/src/main/java/com/netflix/spinnaker/echo/build/BuildInfoService.java index f69a5d22f..608d0a640 100644 --- a/echo-core/src/main/java/com/netflix/spinnaker/echo/build/BuildInfoService.java +++ b/echo-core/src/main/java/com/netflix/spinnaker/echo/build/BuildInfoService.java @@ -74,8 +74,12 @@ public Map getProperties(BuildEvent event, String propertyFile) String job = event.getContent().getProject().getName(); int buildNumber = event.getBuildNumber(); + if (StringUtils.isEmpty(propertyFile) && master.contains("travis")) { + propertyFile = "travis"; + } + String propertyFileFinal = propertyFile; if (StringUtils.isNoneEmpty(master, job, propertyFile)) { - return retry(() -> igorService.getPropertyFile(buildNumber, propertyFile, master, job)); + return retry(() -> igorService.getPropertyFile(buildNumber, propertyFileFinal, master, job)); } return Collections.emptyMap(); }