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

jcli job edit for multibranch pipeline jobs #663

Open
natsen opened this issue Jan 6, 2022 · 2 comments
Open

jcli job edit for multibranch pipeline jobs #663

natsen opened this issue Jan 6, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@natsen
Copy link

natsen commented Jan 6, 2022

Is your feature request related to a problem? Please describe.
jcli job edit is non functional for multibranch pipeline. This is because the job is sourced from a Jenkinsfile in SCM.
Describe the solution you'd like
jcli job edit can provide an option to edit and run the job using the replay api for jobs that are sources from Jenkinsfile in SCM.

@natsen natsen added the enhancement New feature or request label Jan 6, 2022
@natsen
Copy link
Author

natsen commented Feb 4, 2022

jcli job edit does edit the multibranch pipeline by changing Pipeline Definition in the configuration for the branch from "Pipeline from multbrach configuration" to "Pipeline script". This is great. One thing I observed though is edit and build option fails with 400 error. I will create a different bug for that. Will close this.
jcli job edit -b "mutibranch-job branch" -f mypipeline.groovy fails with 400 error. This might be because the job expects parameters. edit and build doesn't ask for parameters.

@natsen natsen closed this as completed Feb 4, 2022
@natsen
Copy link
Author

natsen commented Feb 22, 2022

although jcli edit multibranch pipeline provides an option to run any pipeline script, it does not have ability to edit currently pipeline script sourced from Jenkinsfile in SCM. Keeping this open.

@natsen natsen reopened this Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant