|
|
|
@ -46,7 +46,7 @@ public class Image {
|
|
|
|
|
|
|
|
|
|
Map<String, String> env;
|
|
|
|
|
|
|
|
|
|
boolean cleanCache;
|
|
|
|
|
Boolean cleanCache;
|
|
|
|
|
|
|
|
|
|
boolean verboseLogging;
|
|
|
|
|
|
|
|
|
@ -102,10 +102,14 @@ public class Image {
|
|
|
|
|
* If the cache should be cleaned before building.
|
|
|
|
|
* @return {@code true} if the cache should be cleaned
|
|
|
|
|
*/
|
|
|
|
|
public boolean isCleanCache() {
|
|
|
|
|
public Boolean getCleanCache() {
|
|
|
|
|
return this.cleanCache;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void setCleanCache(Boolean cleanCache) {
|
|
|
|
|
this.cleanCache = cleanCache;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* If verbose logging is required.
|
|
|
|
|
* @return {@code true} for verbose logging
|
|
|
|
@ -160,7 +164,9 @@ public class Image {
|
|
|
|
|
if (this.env != null && !this.env.isEmpty()) {
|
|
|
|
|
request = request.withEnv(this.env);
|
|
|
|
|
}
|
|
|
|
|
request = request.withCleanCache(this.cleanCache);
|
|
|
|
|
if (this.cleanCache != null) {
|
|
|
|
|
request = request.withCleanCache(this.cleanCache);
|
|
|
|
|
}
|
|
|
|
|
request = request.withVerboseLogging(this.verboseLogging);
|
|
|
|
|
if (this.pullPolicy != null) {
|
|
|
|
|
request = request.withPullPolicy(this.pullPolicy);
|
|
|
|
|