Date: Fri, 29 Mar 2024 13:03:18 +0000 (UTC) Message-ID: <1988826003.12935.1711717398834@change.sos-berlin.com> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_12934_1754178046.1711717398834" ------=_Part_12934_1754178046.1711717398834 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
This example has three Job Chains.
Each job chain having its own set of jobs as shown below.
Job_Chain1
Job_Chain2
Job_Chain3
When Job_Chain1 has finished on host1 Job_Chain2 on host2 should start. = When Job_Chain2 on host2 has finished Job_Chain3 on host1 should start.
How it works:
The event handler
<= ;?xml version=3D"1.0" encoding=3D"UTF-8"?> <actions> <action name=3D"jobchain1"> <events> <event_group group=3D"group"> <event event_id=3D"jobchain1" event_class=3D"example" /> </event_group> </events> <commands> <remove_event> <event event_id=3D"jobchain1" event_class=3D"example" /> </remove_event> <command name=3D"start_jobchain2" scheduler_host=3D"vmubuntu1" sch= eduler_port=3D"4444"> <order job_chain=3D"events_remote/job_chain2" replace=3D"yes" /&= gt; </command> </commands> </action> <action name=3D"jobchain2"> <events> <event_group group=3D"group"> <event event_id=3D"jobchain2" event_class=3D"example" /> </event_group> </events> <commands> <command name=3D"command_1"> <order job_chain=3D"events_remote/job_chain3" replace=3D"yes" /&= gt; </command> <remove_event> <event event_id=3D"jobchain2" event_class=3D"example" /> </remove_event> <command name=3D"command_2" /> </commands> </action> </actions>
You can download the source for this example from here.
In the zip, you find two live folders, one for host1 and one for host2.<= br> There is also a event handler for host1. Please copy this the config/event= s and configure the actual host names or ip addresses.