A powerhsell file, several SQL scripts, and 2 bat files.
Here some example content they contain:
In Automic i have 3 File-Events that watch over my autoconvert folder that contains my scripts:
If the folder contains scripts, the following Win-Job is triggered (batch file import example):
The script reads the file content into a process loop, then forms it into one big Variable named &JCL# (thanks to Variable length enhancement in V11). The Variable is then resolved into a deployment of the xml of the Job wich is stored in a storage Object.
The Post Script of the job Imports the XML back into Automic:
If we now navigate into our import folder there was a job created for each script that was found:
Lets have a look into our Batch Script import Job:
Interpreter Script such as Powershell can be importet directly into the external interpreter section:
If you would rather have a function similar to an upload button, you can combine the Importjob with a prompset object
Hope this might be useful to some of you! Hope to see you in the training session!!