How do I get the ArcGIS server directories(Cache,Jobs,Output,System) paths using arcpy including job ID
I want search for a file in the current Job folder. Is there any environment variables like arcpy.env.scrachfolder.
I know the path but I have to add [jobid]\scratch to that. How do I get current jobid.?