public void setRepositoryFile(CommandRepository repository) {
    commandRepository = repository;
  }
Sets the {@link CommandRepository} which will be sent down to the agent
instructing it on which repository file to create on the host. In most
cases, it is not necessary to set this file since the
{@link ExecutionCommandWrapper} will set it in the event that it is
missing. In fact, it is only appropriate to set this file in the following
cases:
<ul>
<li>When distributing a repository to hosts in preparation for upgrade.
This is because the service/component desired stack is not pointing to the
new repository yet</li>
<li>If the command does not contain a host or service/component></li>
</ul>

@param repository
         the command repository instance.
ambari-server/src/main/java/org/apache/ambari/server/agent/ExecutionCommand.java