You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling it from a stage block defined in pipeline_config.groovy:
stages{
stage_do_things{
project_specific_step dev
common_step_a
common_step_b
}
}
OUTPUT:
hudson.remoting.ProxyException: groovy.lang.MissingMethodException: No signature of method: org.boozallen.plugins.jte.binding.injectors.ApplicationEnvironment.call() is applicable for argument types: () values: []
Possible solutions: wait(), any(), wait(long), any(groovy.lang.Closure), each(groovy.lang.Closure), wait(long, int)
Error.
Is passing an application_environment object to a step supported from a stage block?
Use case: Only one of my project need to call project_specific_step step. The others don't. I want to reuse the same Jenkinsfile though. I don't want to have to create another Jenkinsfile just for that one project that is different. So overriding a stage block primitive in pipeline_config of this specific project is ideal.
However my step needs an input, as it is being called a few times, in different stages. Behaviour will change depending on the environment we pass
Suggestions please?
The text was updated successfully, but these errors were encountered:
Vince-Cercury
changed the title
Unable to call a step - that takes an application_environment object from stage block
Unable to call a step - that takes an application_environment object as a param - from stage block
Apr 28, 2020
In my pipeline_config:
I've got a step called
project_specific_step.groovy
:Calling it from Jenkinsfile:
OUTPUT:
As expected
Calling it from a stage block defined in pipeline_config.groovy:
OUTPUT:
Error.
Is passing an application_environment object to a step supported from a stage block?
Use case: Only one of my project need to call project_specific_step step. The others don't. I want to reuse the same Jenkinsfile though. I don't want to have to create another Jenkinsfile just for that one project that is different. So overriding a stage block primitive in pipeline_config of this specific project is ideal.
However my step needs an input, as it is being called a few times, in different stages. Behaviour will change depending on the environment we pass
Suggestions please?
The text was updated successfully, but these errors were encountered: