jobvariable is automatically available for custom commands and Task Runners.
complete()method to show that your job has finished successfully. use the
error()method to show your job has ended but with issues.
job.error()method can take an optional message to describe what happened which will remain on the screen. If a Task Runner has an unhandled error or the user interrupts execution with Ctrl-C, CommandBox will end the job for you as an error. The exception message will be passed to the
job.error()call for you so the user can see what happened.
dumpLogas true in your
job.error()calls. This is great for debugging tasks that ran on a CI server. This dumps ALL logging lines regardless of what your
logSizewas set to.
logSizeis only used for the interactive output during execution to keep things clean.
dumpLogto each job, what do we get?
ask()function, you can temporarily clear out output from all current jobs.