Skip to content

Commit

Permalink
Allow the host configuration to see what features are required for th…
Browse files Browse the repository at this point in the history
…e publisher

Support for JENKINS-10315
  • Loading branch information
bap2000 committed Jul 17, 2011
1 parent 6f4ff86 commit f4e220f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Expand Up @@ -85,6 +85,10 @@ public String getEncryptedPassword() {
public COMMON_CONFIG getCommonConfig() { return commonConfig; }
public void setCommonConfig(final COMMON_CONFIG commonConfig) { this.commonConfig = commonConfig; }

public CLIENT createClient(final BPBuildInfo buildInfo, final BapPublisher publisher) {
return createClient(buildInfo);
}

public abstract CLIENT createClient(BPBuildInfo buildInfo);

protected boolean isDirectoryAbsolute(final String directory) {
Expand Down
Expand Up @@ -217,7 +217,7 @@ private List<Integer> perform() throws Exception {
do {
try {
buildInfo.println(Messages.console_connecting(configName));
client = hostConfig.createClient(buildInfo);
client = hostConfig.createClient(buildInfo, BapPublisher.this);
while (!remainingTransfers.isEmpty()) {
beginTransfers();
transfer();
Expand Down

0 comments on commit f4e220f

Please sign in to comment.