You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

Scope

  • JobScheduler offers Powershell as a language for implementation of Jobs
  • Powershell Jobs have to been seen as the analogy for the Shell Jobs, even though there are some differences between Shell and Powershell Jobs
  • The decision to include Powershell as a language for JobScheduler (among others) is in the same line with the development of Microsoft programming languages
  • Powershell Jobs can only be run on Agents and not on the Master

Feature Availability

FEATURE AVAILABILITY STARTING FROM RELEASE 1.10.5

Powershell as a Shell

As mentioned before, Powershell Jobs should be seen as the analogy for Shell Jobs in the future. That means, every Shell job should be able to be (with any or few changes) converted into a Powershell job. 

Nevertheless, there are some compatibility issues described below.

Calling Order parameters or Job parameters

Example Shell: 
myscript.cmd %SCHEDULER_PARAM_NAME1%

Example Powershell: 
myscript.cmd $env:SCHEDULER_PARAM_NAME1

Returning a parameter an its value to an Order

Example Shell: 
echo NAME1 = VALUE1 >> %SCHEDULER_RETURN_VALUES%

Example Powershell: 
echo "NAME1 = VALUE1" >> $env:SCHEDULER_RETURN_VALUES%

Examples

Example: Powershell as a Shell

tbd

Example Shell: 
myscript.cmd %SCHEDULER_PARAM_NAME1%

Example Powershell: 
myscript.cmd $env:SCHEDULER_PARAM_NAME1

 

Example: Powershell API Jobs

tbd

 

Example: Combination of both

tbd

 

Extras: CLI for Powershell Jobs

tbd

 

 

  • No labels