I have a pipeline where we will call another freestyle job.
I need to access the pipeline name from this freestyle job to send emails from this or to make conditions.
I tried using ${BUILD_CAUSE} but it is showing only UPSTREAMTRIGGER
Any suggestion on how to get this?