Skip to content

Instantly share code, notes, and snippets.

@ahonor
Created May 17, 2014 21:58
Show Gist options
  • Save ahonor/7e9160475b34c0fdc537 to your computer and use it in GitHub Desktop.
Save ahonor/7e9160475b34c0fdc537 to your computer and use it in GitHub Desktop.
oracle/exploit/jobs.xml
<?xml version="1.0" encoding="UTF-8"?>
<joblist>
<job>
<id>7d151ab4-979d-4084-b1eb-8813422e21d6</id>
<loglevel>INFO</loglevel>
<sequence keepgoing="false" strategy="node-first">
<command>
<jobref name="job2" group="oracle/exploit" nodeStep="true">
<arg line="-test ${node.hostname}"/>
</jobref>
</command>
</sequence>
<description/>
<name>job1</name>
<context>
<project>prod</project>
<options>
<option name="test" values="ii,test,tt" enforcedvalues="true"/>
</options>
</context>
<dispatch>
<threadcount>1</threadcount>
<keepgoing>false</keepgoing>
<excludePrecedence>true</excludePrecedence>
<rankOrder>ascending</rankOrder>
</dispatch>
<uuid>7d151ab4-979d-4084-b1eb-8813422e21d6</uuid>
<nodefilters>
<filter>.*</filter>
</nodefilters>
<group>oracle/exploit</group>
</job>
<job>
<id>2a91778f-cfb2-4b68-926c-4c271276d613</id>
<loglevel>INFO</loglevel>
<sequence keepgoing="false" strategy="node-first">
<command>
<scriptargs>${option.test}</scriptargs>
<script><![CDATA[#!/bin/bash
ls -l /home/rundeck
hostname
echo "ARGS $0 "
echo "ARGS $1 "
echo "Context $RD_NODE_NAME"
echo "host try 1 @node.hostname@"
echo "value of -test option is: ${1}"]]></script>
</command>
</sequence>
<description/>
<name>job2</name>
<context>
<project>prod</project>
<options>
<option name="test">
<description>the test to do something to</description>
</option>
</options>
</context>
<uuid>2a91778f-cfb2-4b68-926c-4c271276d613</uuid>
<group>oracle/exploit</group>
</job>
</joblist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment