Invalid license

Your Atlassian commercial license has expired. To keep using the app, renew or purchase a license from the Atlassian Marketplace or a Partner.

The user running Confluence / Jira etc must have the needed permissions on the filesystem to execute

def command = "/opt/confluence-home/scripts/GetAndUploadWeeklyIncidentReport.sh"
def proc = command.execute()
proc.waitFor()
return "Process exit code: ${proc.exitValue()}" + "Std Err: ${proc.err.text}" + "Std Out: ${proc.in.text}"