Powershell and Jobmelder

Document ID : KB000089385
Last Modified Date : 14/04/2018
Show Technical Document Details
Issue:
Affects Release version(s): null

Powershell and Jobmelder
Resolution:

Symptoms

Jobmelder command is unusable in Windows Agents that run in Powershell. ( &UC_JOBMD CMD= ) Especially problematic with the script function GET_LOGIN.


Cause

&UC_JOBMD is not recognized correctly.


Resolution

Create a variable that contains the Jobmelder call and call it externally in Powershell.

:SET &PASS# = GET_LOGIN(&LOG#,NAME,TYPE,PASSWORD)

:set &job_md#=get_var('UC_EX_JOB_MD','&$AGENT#')
$exe='&job_md#'
&$exe CMD="echo &PASS#" | set-variable test