Permalink
Browse files

Upgrade to a cloudbees-api-client version 1.2.1

  • Loading branch information...
hasalex committed Nov 13, 2012
1 parent f50ad20 commit 9d6960709bb2a7482d8efec3a448a6f1f2d64d0d
Showing with 6 additions and 6 deletions.
  1. +3 −5 pom.xml
  2. +3 −1 src/main/java/org/jboss/arquillian/container/cloudbees/CloudbeesClient.java
View
@@ -23,13 +23,11 @@
<properties>
<!-- Versioning -->
<version.arquillian_core>1.0.0.Final</version.arquillian_core>
<version.arquillian_core>1.0.3.Final</version.arquillian_core>
<version.ejb3_api>3.1.0</version.ejb3_api>
<version.arquillian_ajocado>1.0.0.CR1</version.arquillian_ajocado>
<version.jgit>1.0.0.201106090707-r</version.jgit>
<version.jboss_as>7.0.0.Final</version.jboss_as>
<version.jboss_spec>1.0.0.Final</version.jboss_spec>
<version.cloudbees_client>1.1.2</version.cloudbees_client>
<version.jboss_spec>1.0.2.Final</version.jboss_spec>
<version.cloudbees_client>1.2.1</version.cloudbees_client>
</properties>
@@ -1,6 +1,8 @@
package org.jboss.arquillian.container.cloudbees;
import com.cloudbees.api.*;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.HashMap;
@@ -48,7 +50,7 @@ private void deployArchive(String appId, String description, String archivePath,
Map<String, String> parameters = new HashMap<String, String>();
parameters.put("containerType", containerType);
boolean deltaUpload = true;
client.applicationDeployArchive(appId, null, description, archivePath, null, archiveType.toString(), deltaUpload, parameters, null);
client.applicationDeployArchive(appId, null, description, new File(archivePath), null, archiveType.toString(), deltaUpload, parameters, null);
} catch (Exception ex) {
throw new DeploymentException("Cannot deploy app " + appId, ex);
}

0 comments on commit 9d69607

Please sign in to comment.