Declarative pipelines don't work with any overrides
See original GitHub issueI am using the version of the plugin 1.23 with Jenkins 2.176.2. I have a cloud associated with a template and the plugin starts ECS agents correctly when called with an agent { label 'ecs-label'} and also from a freestyle project with using the same label and restrictions. Then I am trying a very simple declarative pipeline:
pipeline {
agent {
ecs {
inheritFrom 'ecs-label'
}
}
stages {
stage('Test') {
steps {
sh 'echo hello'
}
}
}
}
Which results in the error message
ERROR: Not allowed to override inheritFrom. Allowed overrides are
Finished: FAILURE
The peculiar part is that this worked correctly with version 1.22 until I created a second cloud in a different region and I have not managed to run an agent { ecs { } } block with any configuration since.
I have tried reinstalling the plugin. I upgrade to the latest version - 1.22 - deleted all the clouds and recreated them all resulting in the same error.
I used to get a list of supported allowed overrides, at the moment I only get an empty string for allowed overrides.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6

Top Related StackOverflow Question
I can confirm that was indeed the problem. Putting
allis the only option that works however. Would have been helpful to be given information or at least to have been pointed at the documentation. I think this needs to be made much clearer in the README.So, I have some progress. You have to manually say which values are overridable for each cluster. Under Advanced for each cluster you can find the
Allowed declarative settings. The description of the filed saysI will test that next week and will report if that was my problem. This should not be buried in the advanced settings if it is so critical for the plugin’s operation.