Killer Nant Scripting Part 3

Targets Level 2: Jobs

Jobs are general steps in a deployment process. They can generally be described in one or two words. They will consist of only a couple steps or actions. Examples of job would be: backup, archive, copy application, build, etc.

Jobs may be set up to be generalized, so they can be used in different types of deployment targets. They should have general theme such as moving files, or sections. You may skip jobs if your scripts are simple and require one action, but they are good for providing a level of abstraction, that may be necessary when working on larger scripts.

Job Structure

—> Job Example 1
—-> Call Backup Action
—-> Call Copy Action #1
—-> Call Copy Action #2
—-> Call Clean up Action

An Example Job

<target name="Job.copy.production">

  <!-- Call the actions from your job -->

  <call target="action.copy.bin" />  <call target="action.copy.controls" />  <call target="action.copy.sql" />

</target>

View All Killer Nant Scripting Articles

Post a Comment

Your email is never shared. Required fields are marked *

*
*
Profile Picture

About Ian Lintner


I am a software developer, mostly web,  in Des Moines, Iowa. I take a very opinionated stand concerning development, you will never regret a simple design or architecture. My education was at Drake University in Biology and Computer Science. Offline I am recently married to my wife Heather. I try my hand at many hobbies currently I am gardening till the snow comes in.



My Current Projects


Des Moines Twitter Trends