Reputation: 3760
Is it possible to trigger a jenkins job only via Jenkins' remote API?
I want that job triggered remotely by a script. That's because the script takes care of test data setup. But sometimes someone triggers the job via the web frontend which results in a failure because of missing test data.
So how can I forbid anyone from triggering the build via the frontend?
Upvotes: 0
Views: 1046
Reputation: 5923
Yes you can, the solution is here here, depending on what you mean by script you will need to issue a post command from the command line (you don't say if you are using Windoes or *nix) details here.
how can I forbid anyone from triggering the build via the frontend?
Enable security and disable the build or all builds depending on your set up see here
Upvotes: 0