Thanks Stevan I have added these changes in yaml as
notify: criteria: status: finished callback: url: http://192.168.12.64/<URL> method: GET token: mytoken content-type: json dataset: results
But i am not receiving any data as argument on server. How i can send some information (JobId, LoginUsername, LoginUser Toke) as argument.
On Tue, Apr 3, 2018 at 9:00 PM, Stevan Radakovic < stevan.radakovic@linaro.org> wrote:
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#notification-callback
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> wrote:
Hi Chetan,
You can also use notification callbacks 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 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> 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
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
Thank You.
Senthil Kumaran S http://www.stylesen.org/ http://www.sasenthilkumaran.com/
-- Thanks & Regards Chetan Sharma
Lava-users mailing list Lava-users@lists.linaro.org https://lists.linaro.org/mailman/listinfo/lava-users
--
Neil Williams
neil.williams@linaro.org http://www.linux.codehelp.co.uk/
Lava-users mailing listLava-users@lists.linaro.orghttps://lists.linaro.org/mailman/listinfo/lava-users
-- Stevan Radaković | LAVA Engineer Linaro.org <www.linaro.org> │ Open source software for ARM SoCs
Lava-users mailing list Lava-users@lists.linaro.org https://lists.linaro.org/mailman/listinfo/lava-users
-- Thanks & Regards Chetan Sharma
-- Stevan Radaković | LAVA Engineer Linaro.org <www.linaro.org> │ Open source software for ARM SoCs