-
Notifications
You must be signed in to change notification settings - Fork 412
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
Fix #188 Fixes for configuration migration from 1.8 to 2.0 #202
Fix #188 Fixes for configuration migration from 1.8 to 2.0 #202
Conversation
Thank you for this pull request! Please check this document for how the Jenkins project handles pull requests. |
- Migrate multi-branch-project plugin template configuration from 1.8 format to 2.0 format. - Remove Slack job properties from Pipeline projects which do not have publishers to migrate to. - Refactor migration code to better handle the additional complexity.
f4e2fcd
to
b6fd0cb
Compare
I've added more changes to fix issues with pipeline jobs, and I also refactored the configuration migration code quite extensively because it was becoming more complicated. It's all in this PR because nobody seemed to be reviewing it yet, and the changes are all related. |
Hi. Just sharing some feedback. I've encountered the same stacktrace running jobs that were created with Job DSL and seed plugins. I built the slack plugin from this pull request and now it runs OK. |
Thanks @froland! |
Nice! I'll let @kmadel weigh in for the final merge. |
Sorry, I was a bit too quick at celebrating. When I updated the plugin, the jobs already created worked but not the one I tried to build through the seed plugin afterwards. Weird. I'll investigate a bit more if I get some time. |
@froland I don't think anyone has mentioned the seeds plugin yet; I'll have to take a closer look. Let me know if you dig up any more details. |
@froland If I'm understanding what you're saying correctly, this issue needs to be fixed within the job dsl plugin (although it is caused by the slack plugin configuration change); it needs to be updated to generate the latest slack plugin configuration. Take a look at https://issues.jenkins-ci.org/browse/JENKINS-34124. If you scroll down to the bottom of that issue, there may have been a recent release that rectifies the situation. If I'm not understanding you correctly, could you please post your seed configuration (or relevant parts of it) so I can test with it. Thanks. |
@OwensCode, your last comment is right. I'm still getting the following stack trace after updating all my Jenkins plugins to their latest version, but I guess this issue is more on the Job DSL plugin side. FATAL: class jenkins.plugins.slack.SlackNotifier$SlackJobProperty is missing its descriptor |
I just used this to test out the fix for #188 -- works for me! @samrocketman @kmadel I don't believe there were any issues in this pull request - the discussion above is about job-dsl, but it is orthogonal to this change. Can this be merged? |
Please merge the latest changes from master into this branch. |
@kmadel I've merged master into this branch. |
Feel free to subscribe to #296 for updates related to Slack Plugin 2.2 release. |
Migrate multi-branch-project plugin template configuration from 1.8
format to 2.0 format.