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

Remove unsupported jf build step from freestyle projects #102

Closed
wants to merge 6 commits into from

Conversation

EyalDelarea
Copy link

@EyalDelarea EyalDelarea commented Sep 9, 2024

jf commands as a freestyle build step is not supported.
Remove to avoid confusion.

image

@EyalDelarea EyalDelarea added the bug Something isn't working label Sep 9, 2024
@EyalDelarea EyalDelarea added the safe to test Approve running integration tests on a pull request label Sep 9, 2024
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Sep 9, 2024
@EyalDelarea EyalDelarea added the safe to test Approve running integration tests on a pull request label Sep 9, 2024
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Sep 9, 2024
@EyalDelarea EyalDelarea marked this pull request as ready for review September 9, 2024 12:27
// 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);
Copy link
Member

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.

Copy link
Author

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.

src/main/java/io/jenkins/plugins/jfrog/JfStep.java Outdated Show resolved Hide resolved
@EyalDelarea EyalDelarea marked this pull request as draft September 10, 2024 08:42
@EyalDelarea
Copy link
Author

This is causing the multi-branch pipeline to crash.
Need to fix this.

@EyalDelarea EyalDelarea added the safe to test Approve running integration tests on a pull request label Sep 12, 2024
@github-actions github-actions bot removed the safe to test Approve running integration tests on a pull request label Sep 12, 2024
Copy link

👍 Frogbot scanned this pull request and did not find any new security issues.


@EyalDelarea
Copy link
Author

was fixed due #113

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants