Make BuildConfig incremental
@@ -76,7 +76,13 @@ public class OpenShiftServiceImpl implements OpenShiftService {
.addNewTrigger().withType("ImageChange").endTrigger()
.addNewTrigger().withType("GitHub").withNewGithub().withSecret(webhookSecret).endGithub().endTrigger()
.withNewSource().withType("git").withNewGit().withUri(gitRepo).endGit().endSource()
- .withNewStrategy().withType("Source").withNewSourceStrategy().withNewFrom().withKind("ImageStreamTag").withName(img.getShortName() + ":" + img.getTag()).endFrom().endSourceStrategy().endStrategy()
+ .withNewStrategy()
+ .withType("Source")
+ .withNewSourceStrategy()
+ .withNewFrom().withKind("ImageStreamTag").withName(img.getShortName() + ":" + img.getTag()).endFrom()
+ .withIncremental(true)
+ .endSourceStrategy()
+ .endStrategy()
.withNewOutput().withNewTo().withKind("ImageStreamTag").withName(projectName + ":latest").endTo().endOutput()
.endSpec()
.done();
