Splunk | Schedule Quantum/Splunk monitors with Jenkins
Use Jenkins to schedule your monitors for execution.
On this page:
Pre-Reqs
Read about Jenkins usage.
Ensure that the Maven Integration Plugin is installed on your Jenkins instance.
Set up your first job
-
Click on the Jenkins logo to ensure you are on the home page of Jenkins and then click New Item.
-
Provide a Job name, select Maven as the job type, then click OK.
-
Under the Source Code Management section enter in your URL to your Git/SVN repo and add credentials to access the repo if necessary.
-
Under Build Trigger check the box that says Build Periodically and enter a cron expression value to schedule the job. To read more about the syntax you can press the blue question mark next to the input box.
-
Under the Build section select your Maven Version. In the goals add the following (edit to match your folder structure under the Quantum Config directory):
Copyclean test -DtestngXmlFile=folderPathUnderConfigDirectory/testNg.xml
In POM add the following: quantum-starter\pom.xml
-
Click save and your job is ready to go.
-
Test out your job by clicking Build Now on the Job configuration page.