Get Job id OR Job name from within executing job
You will have to use tokens in your job steps to get your own job id. Details here: Using Tokens in Job Steps.
At the end of the article there's one example with jobid:
SELECT * FROM msdb.dbo.sysjobs
WHERE @JobID = CONVERT(uniqueidentifier, $(ESCAPE_NONE(JOBID))) ;