/*
 * DSL script to create FwSupport job
 */

/*
 * Definition of jobs
 */

job {
    name 'FwSupportTools-Linux-packager-debug-checkoutonly'

    description '''
<p>This job keeps the <i>FwSupportTools</i> directory up-to-date on the packaging machine.</p>
<p>The job is created by the DSL plugin from <i>FwSupport-jobs.groovy</i> script.<p>
'''

    label 'packager';

    customWorkspace("\$HOME/FwSupportTools")

    scm {
        git {
			remote {
				url("git://gerrit.lsdev.sil.org/FwSupportTools.git");
				refspec("\$GERRIT_REFSPEC");
			}
			branch("develop");
			configure { scm ->
				scm / extensions << 'hudson.plugins.git.extensions.impl.BuildChooserSetting' {
					buildChooser(
						class: 'com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTriggerBuildChooser', 
						'Gerrit') {
							separator('#');
					}
				}
			}
		}
    }

    triggers {
		gerrit {
			events {
				RefUpdated
			}
			project('FwSupportTools', 'develop');
		}
    }
}


/*
 * DSL script to create FwSupport job
 */

/*
 * Definition of jobs
 */

job {
    name 'FwSupportTools-Linux-packager-debug-checkoutonly'

    description '''
<p>This job keeps the <i>FwSupportTools</i> directory up-to-date on the packaging machine.</p>
<p>The job is created by the DSL plugin from <i>FwSupport-jobs.groovy</i> script.<p>
'''

    parameters {
        stringParam("GERRIT_REFSPEC", 'refs/heads/develop',
            "The git branch");
    }

    label 'packager';

    customWorkspace("\$HOME/FwSupportTools")

    scm {
        git {
			remote {
				url("git://gerrit.lsdev.sil.org/FwSupportTools.git");
				refspec("\$GERRIT_REFSPEC");
			}
			branch("develop");
			configure { scm ->
				scm / extensions << 'hudson.plugins.git.extensions.impl.BuildChooserSetting' {
					buildChooser(
						class: 'com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTriggerBuildChooser', 
						'Gerrit') {
							separator('#');
					}
				}
			}
		}
    }

    triggers {
		gerrit {
			events {
				RefUpdated
			}
			project('FwSupportTools', 'develop');
		}
    }
}


Allow triggering builds without a change
Allow triggering builds without a change

Change-Id: Idb0cbe644a1ad78f34844dc5b7791376c02b0d8a
