Skip to content

Commit

Permalink
fix(front-50): Use stage.context.pipelineId for strategies (#3224)
Browse files Browse the repository at this point in the history
- Updated to use the correct pipeline id set by deck
- stage.context.pipelineId is specific to strategies
  • Loading branch information
jeyrschabu committed Oct 16, 2019
1 parent dd5dd1f commit e1511d5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ class StartPipelineTask implements Task {
}

String application = stage.context.pipelineApplication ?: stage.context.application
String pipelineId = stage.context.pipelineId ?: stage.context.pipeline
Boolean isStrategy = stage.context.pipelineParameters?.strategy ?: false
String pipelineId = isStrategy ? stage.context.pipelineId : stage.context.pipeline

List<Map<String, Object>> pipelines = isStrategy ? front50Service.getStrategies(application) : front50Service.getPipelines(application, false)
Map<String, Object> pipelineConfig = pipelines.find { it.id == pipelineId }
Expand Down

0 comments on commit e1511d5

Please sign in to comment.