@LocalData @Test public void testConfig() { final Cloud cloud = jenkinsRule.getInstance().getCloud("ff"); assertThat(cloud, instanceOf(DockerCloud.class)); final DockerCloud dockerCloud = (DockerCloud) cloud; final DockerSlaveTemplate template = dockerCloud.getTemplate("image"); assertThat(template, notNullValue()); final RetentionStrategy retentionStrategy = template.getRetentionStrategy(); assertThat(retentionStrategy, instanceOf(DockerCloudRetentionStrategy.class)); final DockerCloudRetentionStrategy strategy = (DockerCloudRetentionStrategy) retentionStrategy; assertThat(strategy.getIdleMinutes(), is(30)); }
public int getIdleMinutes() { return idleMinutes; }
DockerCloudRetentionStrategy extends RetentionStrategy<AbstractCloudComputer> { public int getIdleMinutes() { return idleMinutes; } }
DockerCloudRetentionStrategy extends RetentionStrategy<AbstractCloudComputer> { public int getIdleMinutes() { return idleMinutes; } @DataBoundConstructor  DockerCloudRetentionStrategy(int idleMinutes); }
DockerCloudRetentionStrategy extends RetentionStrategy<AbstractCloudComputer> { public int getIdleMinutes() { return idleMinutes; } @DataBoundConstructor  DockerCloudRetentionStrategy(int idleMinutes); int getIdleMinutes(); @Override @GuardedBy("hudson.model.Queue.lock") long check(final AbstractCloudComputer c); @Override void start(AbstractCloudComputer c); }
DockerCloudRetentionStrategy extends RetentionStrategy<AbstractCloudComputer> { public int getIdleMinutes() { return idleMinutes; } @DataBoundConstructor  DockerCloudRetentionStrategy(int idleMinutes); int getIdleMinutes(); @Override @GuardedBy("hudson.model.Queue.lock") long check(final AbstractCloudComputer c); @Override void start(AbstractCloudComputer c);  }