Skip to content

Commit

Permalink
feat(bakery): option to derive rosco bakeOptions from gate.yml (#935)
Browse files Browse the repository at this point in the history
  • Loading branch information
asher committed Oct 25, 2019
1 parent 181b4b4 commit 2fd860b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,12 @@ class BakeService {

// Default bake options from configuration.
List<BakeOptions> bakeOptions
// If set, use bake options defined in gate.yml instead of calling rosco
boolean useDefaultBakeOptions

def bakeOptions() {
roscoServiceSelector ? roscoServiceSelector.withLocation().bakeOptions() : bakeOptions
(roscoServiceSelector && !useDefaultBakeOptions) ?
roscoServiceSelector.withLocation().bakeOptions() : bakeOptions
}

def bakeOptions(String cloudProvider) {
Expand Down

0 comments on commit 2fd860b

Please sign in to comment.