Skip to content

Commit

Permalink
fix(artifacts): Include artifact reference in bake key (#263)
Browse files Browse the repository at this point in the history
This ensures that we are considering the artifacts when deciding
whether a requested bake is a duplicate of a prior bake.
  • Loading branch information
ezimanyi authored May 21, 2018
1 parent 887c3ea commit 5677fec
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ abstract class CloudProviderBakeHandler {

// Package name is always part of key, even if it is an empty string
keys << (package_name ? package_name.tokenize().join('|') : "")
// If any artifacts to bake were specified, include them in the key as well
if (package_artifacts) {
keys << package_artifacts.collect { it.getReference() ?: "" }.join('|')
}

String providerSpecificBakeKeyComponent = produceProviderSpecificBakeKeyComponent(region, bakeRequest)
if (providerSpecificBakeKeyComponent) {
Expand Down

0 comments on commit 5677fec

Please sign in to comment.