HOME | Blog | YouTube | LinkedIn | About Me         || Calculators    | SoftEng/Tech Posts    | Code/Scripts

Monday, May 4, 2015

Self-contained Scripts, Jenkins, TeamCity ...

This week's scripting advice:

When you write scripts (windows batch, Puppet, PowerShell, ...etc), try to make them as self-contained as possible. Sometimes it is easy to get caught up in the coolness factor of Jenkins, TeamCity and other tools where you start breaking things apart too much and you end up marrying yourself too much with that tool. Then the de-coupling becomes much harder when you decide to re-architect things.

As you scripting out an automation process, assume that you would be invoking this main script from command-line yourself. How would you develop it. Yes, learn the features of Jenkins and TeamCity and think about them as you are developing your scripts, but don't let those features impact the modular design of your scripts.

- almirsCorner.com -

#scripting #scripts #batch #batchscripts #PowerShell #Puppet #Jenkins #TeamCity #programming #programmer #DevOps #automation #BuildAutomation 

No comments:

Post a Comment