Don't resolve HOME variable at job creation time
Don't resolve HOME variable at job creation time

The HOME directory is differs on master and on packager agents.

Change-Id: I28f809ea795b2bda81ea263b81797a98cfbfa7e1

/*
 * 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>
'''

    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');
		}
    }
}

