Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

PipelineBuilder.StageContext cannot be @CompileStatic #25

Open
szpak opened this issue Jan 13, 2017 · 0 comments
Open

PipelineBuilder.StageContext cannot be @CompileStatic #25

szpak opened this issue Jan 13, 2017 · 0 comments

Comments

@szpak
Copy link
Collaborator

szpak commented Jan 13, 2017

It fails in runtime with not very clear error message:

java.lang.ClassCastException: com.ofg.pipeline.core.PipelineBuilder$StageContext cannot be cast to com.ofg.pipeline.core.PipelineBuilder

	at com.ofg.pipeline.core.PipelineBuilder$StageContext.job(PipelineBuilder.groovy:43)
	at com.ofg.pipeline.microservice.template.MicroservicePipelineTemplate.configurePipelineJobs_closure2$_closure5(MicroservicePipelineTemplate.groovy:67)
	at com.ofg.pipeline.core.PipelineBuilder.stage(PipelineBuilder.groovy:28)
	at com.ofg.pipeline.microservice.template.MicroservicePipelineTemplate.configurePipelineJobs_closure2(MicroservicePipelineTemplate.groovy:66)
	at com.ofg.pipeline.microservice.template.MicroservicePipelineTemplate.configurePipelineJobs(MicroservicePipelineTemplate.groovy:64)
	at com.ofg.pipeline.microservice.template.MicroservicePipelineTemplate.configurePipeline_closure1(MicroservicePipelineTemplate.groovy:58)
	at com.ofg.pipeline.core.PipelineBuilder.configure(PipelineBuilder.groovy:22)
	at com.ofg.pipeline.microservice.template.MicroservicePipelineTemplate.configurePipeline(MicroservicePipelineTemplate.groovy:52)
	at com.ofg.pipeline.core.PipelineTemplateBuilder.build(PipelineTemplateBuilder.groovy:32)
	at com.ofg.pipeline.core.PipelineTemplateBuilder.buildAll_closure1(PipelineTemplateBuilder.groovy:22)
	at com.ofg.pipeline.core.PipelineTemplateBuilder.buildAll(PipelineTemplateBuilder.groovy:21)
	at com.ofg.MicroservicePipelineJobNamesSpec.should create pipeline jobs on default configured instance for backward compatibility(MicroservicePipelineJobNamesSpec.groovy:128)

Low priority. Leaving as a reference.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant