Run Job and get JobRunLog in an email or file

Version 2
    Share:|

    This script runs a Job (taken as input) and then either emails or copies the log to a nsh location.  For email to work, the appserver must be configured to send email.

     

    Run the script like:

     

    nsh runJobWithLog.nsh <job type> <job folder> <job name> <notify type> <arg1> <arg2>

     

    Right now it only works for Job Types DeployJob and NSHScriptJob

    for Email:

    nsh runJobWithLog.nsh "<job type>" "<job folder>" "<job name>" "email" "your@email.com"

    for a file:

    nsh runJobWithLog.nsh "<job type>" "<job folder>" "<job name>" "file" "server1" "/some/path"