Skip to content

Commit

Permalink
fix(provider/appengine): Fix for issue spinnaker/spinnaker#5836 (#3755)
Browse files Browse the repository at this point in the history
groovy.lang.MissingMethodException when referencing github config artifact for GAE deploy. The config artifacts  were of instance of HashMap not an Artifact object. Added logic to translate HashMap to Artifact.
  • Loading branch information
guido9j committed Jun 22, 2020
1 parent 264e4e0 commit 711c21a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class AppEngineServerGroupCreator implements ServerGroupCreator {
List<ArtifactAccountPair> configArtifacts = operation.configArtifacts
if (configArtifacts != null && configArtifacts.size() > 0) {
operation.configArtifacts = configArtifacts.collect { artifactAccountPair ->
def artifact = artifactUtils.getBoundArtifactForStage(stage, artifactAccountPair.id, artifactAccountPair.artifact)
def artifact = artifactUtils.getBoundArtifactForStage(stage, artifactAccountPair.id, objectMapper.convertValue(artifactAccountPair.artifact, Artifact.class))
return ArtifactUtils.withAccount(artifact, artifactAccountPair.account)
}
}
Expand Down

0 comments on commit 711c21a

Please sign in to comment.