-
Notifications
You must be signed in to change notification settings - Fork 174
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
Job api to create jobs inside a folder #10
Comments
@Dhivyaa21 that sounds like a great idea. Maybe something like @martinda you've been working in this space recently and may have some thoughts one way or another. |
@cdancy Sure. I can send you a PR. |
@Dhivyaa21 check out this PR and give things a go locally and let me know how you fare. We amend the existing |
@cdancy This looks good. I am adding tests to this change. Meanwhile, a quick question. Do you think its a good idea to use this Right now we squeeze in the path to job in the Example -
Disable job api is jenkins-rest/src/main/java/com/cdancy/jenkins/rest/features/JobsApi.java Lines 131 to 136 in e176247
To disable the job , I'll have to call |
@Dhivyaa21 I would say that any endpoint that can take an optional folder parameter you can put together a PR to wire all of them up. As there are a few please put each endpoint change into its own commit for easier viewing/reviewing on my end. |
Great idea. I need this too. Thanks @Dhivyaa21 and @cdancy |
Functionality merged per #20 |
Currently, the job Api to create a job is as follows
jenkins-rest/src/main/java/com/cdancy/jenkins/rest/features/JobsApi.java
Lines 73 to 82 in e176247
This API creates a job in jenkins root folder but not inside a folder.
Perhaps, we can add another API to with a pathparam like
@Path("{pathToJob}/createItem")
to support the creation of jobs inside a folder.The text was updated successfully, but these errors were encountered: