job definition snippet:
notify: criteria: status: finished callback: url: http://remote-url.com/path-to-script-used-to-submit-job-to-lava-through-API/ method: GET token: mytoken
This will trigger a GET request to the provided URL when the job is finished. You can also use POST method for this callback request and pass any sort of data you require in addition. Other options are documented here: https://validation.linaro.org/static/docs/v2/user-notifications.html#notific...
Thanks,
On 04/03/2018 10:29 AM, Chetan Sharma wrote:
Hi Stevan, Can you share any example if it is feasible, So that i can get and understand with reference.
On Tue, Apr 3, 2018 at 12:55 PM, Stevan Radakovic <stevan.radakovic@linaro.org mailto:stevan.radakovic@linaro.org> wrote:
Hi Chetan, You can also use notification callbacks https://validation.linaro.org/static/docs/v2/user-notifications.html#notification-callback <https://validation.linaro.org/static/docs/v2/user-notifications.html#notification-callback> This would require you to write a small callback script which will have to be available via HTTP request (either GET or POST) and that script can trigger the job submission using LAVA API. Cheers, On 04/03/2018 06:51 AM, Neil Williams wrote:
On 3 April 2018 at 05:41, Chetan Sharma <chetan.sharma@timesys.com <mailto:chetan.sharma@timesys.com>> wrote: Thanks Allot Senthil But it is possible only if we are submitting job from lavacli. Or some other script which manages XMLRPC test job submissions - a simple 4 line python script is all you need to submit but you need to use something based on ZMQ to get the proper notification of when the submitted test job has completed. Can we trigger another task If we submit job from LAVA Server Webpage. You can setup notifications (IRC or email) but that is not intended as a way to trigger a task other than a human responding to the notification. On Tue, Apr 3, 2018 at 7:59 AM, Senthil Kumaran S <senthil.kumaran@linaro.org <mailto:senthil.kumaran@linaro.org>> wrote: Hi Chetan, On Monday 02 April 2018 03:17 PM, Chetan Sharma wrote: > Can we trigger a another job/task of completion of one > TestJob ? Can you share any reference if we can perform this action. Using lavacli you can do this as seen in https://gist.github.com/stylesen/cb93346481f43a0c899b7c1e58473d33 <https://gist.github.com/stylesen/cb93346481f43a0c899b7c1e58473d33> There are other methods of doing it with the help of calling XML-RPC APIs using a python script, etc. The latest version of lavacli is available via Debian - https://packages.debian.org/search?keywords=lavacli <https://packages.debian.org/search?keywords=lavacli> Thank You. -- Senthil Kumaran S http://www.stylesen.org/ http://www.sasenthilkumaran.com/ <http://www.sasenthilkumaran.com/> -- Thanks & Regards Chetan Sharma _______________________________________________ Lava-users mailing list Lava-users@lists.linaro.org <mailto:Lava-users@lists.linaro.org> https://lists.linaro.org/mailman/listinfo/lava-users <https://lists.linaro.org/mailman/listinfo/lava-users> -- Neil Williams ============= neil.williams@linaro.org <mailto:neil.williams@linaro.org> http://www.linux.codehelp.co.uk/ <http://www.linux.codehelp.co.uk/> _______________________________________________ Lava-users mailing list Lava-users@lists.linaro.org <mailto:Lava-users@lists.linaro.org> https://lists.linaro.org/mailman/listinfo/lava-users <https://lists.linaro.org/mailman/listinfo/lava-users>
-- Stevan Radaković | LAVA Engineer Linaro.org <www.linaro.org <http://www.linaro.org>> │ Open source software for ARM SoCs _______________________________________________ Lava-users mailing list Lava-users@lists.linaro.org <mailto:Lava-users@lists.linaro.org> https://lists.linaro.org/mailman/listinfo/lava-users <https://lists.linaro.org/mailman/listinfo/lava-users>
-- Thanks & Regards Chetan Sharma