-
Notifications
You must be signed in to change notification settings - Fork 18
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
Remove unsupported jf build step from freestyle projects #102
Conversation
// JfStep Extends SimpleBuildStep, which applies also to FreeStyleProjects, as well as workflow jobs. | ||
// To avoid errors due to unsupported inputs in FreeStyleProjects, | ||
// Return applicable only for WorkflowJobProperty. | ||
return WorkflowJobProperty.class.isAssignableFrom(jobType); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't be this?
return WorkflowJob.class.isAssignableFrom(jobType) || WorkflowJob.class.isAssignableFrom(jobType);
I haven't tested the solution.
Please also verify with Multibranch Pipelines.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's strange, but when i debug i'm getting an error thrown, also on the main branch when it comes to multi-branch.
On the other hand, when i installed the plugin on my local Jenkins, it doesn't crash.
Maybe it's related to the Jenkins version.
It needs to be tested.
…into hide_freestyle_project
This is causing the multi-branch pipeline to crash. |
was fixed due #113 |
jf commands as a freestyle build step is not supported.
Remove to avoid confusion.