package de.androbit.wob.teamcity;

public class BuildResult {
    String id;
    Boolean running = false;
    String percentageComplete;
    Integer number;
    String status;
    String buildTypeId;
    String startDate;
    String href;
    String webUrl;

    public String getId() {
        return id;
    }

    public Boolean isRunning() {
        return running;
    }

    public String getPercentageComplete() {
        return percentageComplete;
    }

    public Integer getNumber() {
        return number;
    }

    public String getStatus() {
        return status;
    }

    public String getBuildTypeId() {
        return buildTypeId;
    }

    public String getStartDate() {
        return startDate;
    }

    public String getHref() {
        return href;
    }

    public String getWebUrl() {
        return webUrl;
    }
}

@@ -134,23 +134,22 @@
 te;%0A    
-Integer
+String
  number;
@@ -503,22 +503,54 @@
  return 
-number
+Integer.parseInt(number.split(%22 %22)%5B0%5D)
 ;%0A    %7D%0A

make build numbers a bit more open, to be able to consume extra attached information like e.g. "#1199 = svn revision xxx"