Skip to content

Commit

Permalink
debug null id
Browse files Browse the repository at this point in the history
  • Loading branch information
sbtaylor15 committed Dec 11, 2017
1 parent 91bf980 commit bc12cf8
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions vars/deployhub.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,18 @@ class deployhub {
this.body = connection.getErrorStream().text;
}

Map<String, List<String>> map = connection.getHeaderFields();
Map<String, List<String>> map = connection.getHeaderFields();
if (cookie.length() == 0)
{
for (Map.Entry<String, List<String>> entry : map.entrySet())
{
for (Map.Entry<String, List<String>> entry : map.entrySet())
{
if (entry.getKey() != null && entry.getKey().equalsIgnoreCase("Set-Cookie"))
{
{
String c = entry.getValue();
cookie += c + "; ";
}
}
}
}
}

Expand Down Expand Up @@ -328,10 +328,9 @@ class deployhub {
if (this.url.length() == 0)
{
if (!login(url,userid,pw))
return [false,"Could not login to " + url];
return [false,"Could not login to " + url];
}
return[false,this.url.length()];


// Get appid
def data = doGetHttpRequestWithJson("${url}/dmadminweb/API/application/" + enc(Application));

Expand Down

0 comments on commit bc12cf8

Please sign in to comment.