Hi,
The job Id can be passed in by using tokens that will substitute the value at runtime when the step is executed. For the purpose of what you are trying to do, you will have to define a Geoprocessing model and expose the parameter (string) that will contain your job ID.
......
Tope