Commits

Charles O'Farrell  committed d40c030

Introduct hasWebSudo for Bamboo

  • Participants
  • Parent commits fc89205

Comments (0)

Files changed (2)

File src/main/java/com/atlassian/bamboo/plugins/confdeploy/Product.java

         values.add(new BasicNameValuePair("authenticate", "Confirm"));
         return values;
     }
+
+    public boolean hasWebSudo()
+    {
+        return true;
+    }
 }

File src/main/java/com/atlassian/bamboo/plugins/confdeploy/UniversalPluginUploader.java

             HttpResponse response = client.execute(webSudoPost);
             buildLogger.addBuildLogEntry(response.getStatusLine().toString());
 
-            checkWebSudo(response);
+            if (product.hasWebSudo())
+            {
+                checkWebSudo(response);
+            }
 
             EntityUtils.consume(response.getEntity());
         }