 |
Subscribe to this site |
|
test

Published 9 months ago
by
Koss
class PushImagesStage {
void run(
Map optionalData = [
pushCron:false
],
context,
String dockerHubConf,
String serviceName,
String branch,
boolean pushApi,
boolean pushWorker
) {
if (pushApi) {
println 1;
}
if (pushWorker) {
println 2;
}
if (optionalData.pushCron) {
println 3;
}
}
}
(new PushImagesStage()).run(this, 'asdf', 'a1', 'a2', true, true);
println '-------------'
(new PushImagesStage()).run(this, 'asdf', 'a1', 'a2', true, false);
println '-------------'
(new PushImagesStage()).run([pushCron: false], this, 'asdf', 'a1', 'a2', true, false);
println '-------------'
(new PushImagesStage()).run([pushCron: true], this, 'asdf', 'a1', 'a2', true, false);