Tuesday, 15 February 2011

triggers - Jenkins Job - Build If SQL Condition True -


We want to establish a Hudson job which will execute the query for the current current date on every 10 minute date. If this situation is false, then the job should be loop only and should be run again in a 10-minute interval unless the situation is correct, in that case we want to take the work in the second phase, To execute another SQL. Is it possible to set this in a single job? I am searching, but the example of this scenario is not found anywhere.

Of course you can. Actually can be very simple.

Create a new job in Hudson that runs automatically every 10 minutes. For job content, write a few shell scripts to search SQL, if code returns are correct, then continue the second step, if not, just finish the job. This will be started by Hudson after 10 minutes.

No comments:

Post a Comment