• ■ ■ ■ ■
    pom.xml
    skipped 9 lines
    10 10   <version>1.0.5</version>
    11 11   </parent>
    12 12   <artifactId>k8s-helper</artifactId>
    13  - <version>2.1.5</version>
     13 + <version>2.1.6</version>
    14 14   <build>
    15 15   <plugins>
    16 16   <plugin>
    skipped 74 lines
  • ■ ■ ■ ■ ■
    src/main/java/io/onedev/k8shelper/CommandExecutable.java
    skipped 9 lines
    10 10  
    11 11   private final List<String> commands;
    12 12  
    13  - public CommandExecutable(String image, List<String> commands) {
     13 + private final boolean useTTY;
     14 +
     15 + public CommandExecutable(String image, List<String> commands, boolean useTTY) {
    14 16   this.image = image;
    15 17   this.commands = commands;
     18 + this.useTTY = useTTY;
    16 19   }
    17 20   
    18 21   public String getImage() {
    skipped 2 lines
    21 24   
    22 25   public List<String> getCommands() {
    23 26   return commands;
     27 + }
     28 + 
     29 + public boolean isUseTTY() {
     30 + return useTTY;
    24 31   }
    25 32   
    26 33  }
    skipped 1 lines
  • ■ ■ ■ ■
    src/main/java/io/onedev/k8shelper/KubernetesHelper.java
    skipped 677 lines
    678 678  
    679 679   if (test) {
    680 680   CommandExecutable executable = new CommandExecutable(
    681  - "this does not matter", Lists.newArrayList("this does not matter"));
     681 + "this does not matter", Lists.newArrayList("this does not matter"), false);
    682 682   executable.execute(commandHandler, Lists.newArrayList(1));
    683 683   } else {
    684 684   Map<String, Object> jobContext = readJobContext();
    skipped 287 lines
Please wait...
Page is in error, reload to recover