Skip to content

Commit

Permalink
fix(rrb): Store RRB before-cleanup pipeline ID in the right context f…
Browse files Browse the repository at this point in the history
…ield (#3239)

* fix(rrb): Store RRB before cleanup pipeline ID in the right context field

* test(rrb): Add checks for cleanup pipeline context info in RRB spec
  • Loading branch information
luispollo authored and mergify[bot] committed Oct 21, 2019
1 parent 122721b commit ba249be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ class RollingRedBlackStrategy implements Strategy, ApplicationContextAware {
def pipelineContext = [
application : stageData.pipelineBeforeCleanup.application,
pipelineApplication: stageData.pipelineBeforeCleanup.application,
pipelineId : stageData.pipelineBeforeCleanup.pipelineId,
pipeline : stageData.pipelineBeforeCleanup.pipelineId,
pipelineParameters : stageData.pipelineBeforeCleanup.pipelineParameters + [
"deployedServerGroup": serverGroupCoordinates + [
serverGroupName: deployedServerGroupName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,11 @@ class RollingRedBlackStrategySpec extends Specification {
afterStages.size() == 5
afterStages.first().type == determineTargetServerGroupStage.type
afterStages[2].type == pipelineStage.type
afterStages[2].context.pipelineApplication == stage.context.pipelineBeforeCleanup.application
afterStages[2].context.pipeline == stage.context.pipelineBeforeCleanup.pipelineId
afterStages[4].type == pipelineStage.type
afterStages[4].context.pipelineApplication == stage.context.pipelineBeforeCleanup.application
afterStages[4].context.pipeline == stage.context.pipelineBeforeCleanup.pipelineId
}

def "should correctly determine source during pin/unpin"() {
Expand Down

0 comments on commit ba249be

Please sign in to comment.