-
Notifications
You must be signed in to change notification settings - Fork 567
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Installing plugins fails jenkins-bootstrap-start #558
Comments
@jtreminio The resource that is failing ( |
@jhoblitt it simply contains the bash code you have on README:
Please reopen, I believe the issue lies with the module. |
That bootstrap script will only ever work once. After authentication is enabled, it will always fail. The new experimental types should not suffer from the difficulties with auth being enable/disabled but as it says on the tin, are in an experimental state. https://github.com/jenkinsci/puppet-jenkins#experimental-types-and-providers |
I understand, but this doesn't really involve the issue I'm seeing. This code runs perfectly if no Jenkins plugins are to be installed. If any plugin is installed, then this fails. If the above is run, then Jenkins plugins installed in a later Puppet run, it succeeds. |
@jtreminio you're not crazy. Installing plugins at initial run definitely somehow causes different behavior than not (it blocks/messes up the cli port with the IOexception you mention above) will let you know if I figure out why |
@jhoblitt would you mind reopening this issue? |
@jtreminio Sure - a complete working manifest might help someone debug this. However, my suggestion is look at using the experimental native types which are a complete solution to the authentication issues. They need more usage before we can think about stabilizing them. |
For what it's worth, I worked around this by just adding more tries to my exec. No idea what the actual problem with the cli is, but I imagine it's its own issues, not really the puppet module. |
It could be just timing issues with jenkins not being ready. There's really no way to debug this. I'm going to close this issue since the code in question is external the module but I would be happy to merge a PR updating the README. |
Using your instructions in README.
Attempting to install any plugin triggers this issue.
I've attempted on your v1.6.1 tag as well as master.
Output:
Omitting plugins avoids the issue and Jenkins is setup properly.
Running Puppet again after initial run also seems to skirt issue completely.
The text was updated successfully, but these errors were encountered: