Im trying to launch a project through Jenkins DSL but dont need to wait for it to complete. Basically i want it to kick off an orphan job.
node("slave-node")
{
// Launch pipeline job
stage("LaunchPipelineJob")
{
// this step runs for x mins and does a buch of work
echo "Starting pipelinejob"
def pipelinejob = build job: 'pipelineStep'
//echo "Pipeline job status: ${pipelinejob.result}"
}
// Launch the orphan
stage("LaunchOrphanJob")
{
// need to kick off this job, but dont care to wait for it to finish
echo "Starting orphanPipelinejob"
def orphanPipelinejob = build job: 'orphanStep'
}
}
i have looked over the dsl but cant find any docs on how to start an orphan. Thank you