protected PromotionRun toPromotionRun(ResultSet rs, Function<ID, Build> buildLoader, Function<ID, PromotionLevel> promotionLevelLoader) throws SQLException { return PromotionRun.of( buildLoader.apply(id(rs, "buildId")), promotionLevelLoader.apply(id(rs, "promotionLevelId")), readSignature(rs), rs.getString("description") ).withId(id(rs)); }
PromotionRun.of( build, promotionLevel,
protected PromotionRun doPromote(Build build, PromotionLevel promotionLevel, String description) throws Exception { return asUser().with(build.projectId(), PromotionRunCreate.class).call(() -> structureService.newPromotionRun( PromotionRun.of( build, promotionLevel, Signature.of("test"), description ) ) ); }
PromotionRun.of( buildOpt.get(), promotionLevelOpt.get(),