Is it possible to execute a jenkins task from an application?
For instance, a user could click on a button in the application and start a jenkins task.
I'm using PHP and laravel framework.
It's possible with Remote access API:
Simple example - sending "String Parameters":
curl -X POST JENKINS_URL/job/JOB_NAME/build \
--data token=TOKEN \
--data-urlencode json='{"parameter": [{"name":"id", "value":"123"}, {"name":"verbosity", "value":"high"}]}'
If you are using PHP, then you need to use some HTTP Client. I recommend GuzzleHTTP which is easy to integrate with Laravel.