I have two jobs in Jenkins, one is chained to the other. The first Job compiles a project and stores a temp "archived" zip file. If the build job is successful the second job is triggered which copies the archived item from the first job to the second job. This is done so that only successful builds are saved.
I don't want the second build to have a 'Schedule Build' button, as it should NEVER be manually triggered. I do not want to 'hide' the build in another view, just disable the 'build' button.
Best Answer
I haven't tried this, but one way to do this would be to enable
Project-based Matrix Authorization Strategy
in theAuthorization Section
ofManage Jenkins
and uncheckBuild
option for all users for the specific job that you do not want to be built manually.