Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support minimumNoInstancesActiveTimeRangeDays (ec2-plugin) #1389

Closed
lifeofguenter opened this issue May 17, 2020 · 2 comments
Closed

Support minimumNoInstancesActiveTimeRangeDays (ec2-plugin) #1389

lifeofguenter opened this issue May 17, 2020 · 2 comments
Labels
feature A PR that adds a feature - used by Release Drafter

Comments

@lifeofguenter
Copy link

This does not seem to be supported: https://github.com/jenkinsci/ec2-plugin/blob/da14631cc9406d8d5dae5dd25ecfe5d642b86679/src/main/resources/hudson/plugins/ec2/SlaveTemplate/config.jelly#L142-L159

I tried:

            minimumNumberOfInstances: 0
            minimumNumberOfInstancesTimeRangeConfig:
              minimumNoInstancesActiveTimeRangeFrom: 06:00
              minimumNoInstancesActiveTimeRangeTo: 15:00
              minimumNoInstancesActiveTimeRangeDays:
                monday: true
                tuesday: true
                wednesday: true
                thursday: true
                friday: true
                saturday: false
                sunday: false
            minimumNumberOfSpareInstances: 1

but get the following error:

io.jenkins.plugins.casc.ConfiguratorException: Invalid configuration elements for type class hudson.plugins.ec2.util.MinimumNumberOfInstancesTimeRangeConfig : minimumNoInstancesActiveTimeRangeDays.
@lifeofguenter lifeofguenter added the feature A PR that adds a feature - used by Release Drafter label May 17, 2020
@jetersen
Copy link
Member

This is not a JCasC issue, but an issue with the ec2 plugin.

@lifeofguenter
Copy link
Author

Thanks @jetersen , just for reference: https://issues.jenkins-ci.org/browse/JENKINS-62331

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A PR that adds a feature - used by Release Drafter
Projects
None yet
Development

No branches or pull requests

2 participants