return Collections.emptyList();
}
if (hasValue(job.getServiceName()) && hasValue(job.getServiceJobId())) {
return Collections.emptyList();
}
Level level = (job.isDryRun() ? Level.WARN : Level.ERROR);
String message = "Either repository token or service with job id must be defined";
return Arrays.asList(new ValidationError(level, message));
}