/*
 * DSL script for package builder Jenkins jobs
 */

def agents = "autopackager-1 autopackager-2 autopackager-4"

pipelineJob('reboot-agents') {
	description '''
<p>Reboot packaging agents once a day.</p>
<p>The job is created by the DSL plugin from <i>reboot_agents.groovy</i> script.</p>
'''

	logRotator(365, 100, 10, 10)

	properties {
		pipelineTriggers {
			triggers {
				cron {
					spec('@daily')
				}
			}
		}
	}

	definition {
		cps {
			script("""@Library('lsdev-pipeline-library') _
				rebootAgents(label: '${agents}')"""
			)
		}
	}
}

/*
 * DSL script for package builder Jenkins jobs
 */

def agents = "autopackager-1 || autopackager-2 || autopackager-4"

pipelineJob('reboot-agents') {
	description '''
<p>Reboot packaging agents once a day.</p>
<p>The job is created by the DSL plugin from <i>reboot_agents.groovy</i> script.</p>
'''

	logRotator(365, 100, 10, 10)

	properties {
		pipelineTriggers {
			triggers {
				cron {
					spec('@daily')
				}
			}
		}
	}

	definition {
		cps {
			script("""@Library('lsdev-pipeline-library') _
				rebootAgents(label: '${agents}')"""
			)
		}
	}
}

Fix agents for reboot-agents script
Fix agents for reboot-agents script

Change-Id: I0c0bd11f2a907606672bbe6e5078d85603dd433b
