• ■ ■ ■ ■
    pom.xml
    skipped 9 lines
    10 10   <version>1.0.5</version>
    11 11   </parent>
    12 12   <artifactId>agent</artifactId>
    13  - <version>1.0.4</version>
     13 + <version>1.0.5</version>
    14 14   <build>
    15 15   <plugins>
    16 16   <plugin>
    skipped 139 lines
  • ■ ■ ■ ■ ■
    src/main/java/io/onedev/agent/Agent.java
    skipped 190 lines
    191 191   os = AgentOs.MACOSX;
    192 192   else if (SystemUtils.IS_OS_LINUX)
    193 193   os = AgentOs.LINUX;
     194 + else if (SystemUtils.IS_OS_FREE_BSD)
     195 + os = AgentOs.FREEBSD;
    194 196   else
    195  - throw new ExplicitException("Unsupported OS: " + System.getProperty("os.name"));
     197 + os = AgentOs.OTHERS;
    196 198   
    197 199   osVersion = System.getProperty("os.version");
    198 200   osArch = System.getProperty("os.arch");
    skipped 245 lines
  • ■ ■ ■ ■ ■ ■
    src/main/java/io/onedev/agent/AgentOs.java
    skipped 1 lines
    2 2   
    3 3  public enum AgentOs {
    4 4   
    5  - WINDOWS, MACOSX, LINUX
     5 + WINDOWS("windows"), MACOSX("macosx"), LINUX("linux"), FREEBSD("freebsd"), OTHERS("computer");
     6 +
     7 + final String icon;
     8 +
     9 + AgentOs(String icon) {
     10 + this.icon = icon;
     11 + }
     12 + 
     13 + public String getIcon() {
     14 + return icon;
     15 + }
    6 16   
    7 17  }
    8 18   
Please wait...
Page is in error, reload to recover