I have 2 Jenkins pipelines, lets call them Pipeline-A and Pipeline-B. Pipeline-A is parent pipeline which invokes Pipeline-B (child) when it (Pipeline-A) is running.
How can i know the name of Pipeline-A (parent) when Pipeline-B (child) is running. Is there any environment variable that i can invoke to know this?
This is important to know because there are many pipelines similar to Pipeline-A which invoke Pipeline-B.
One can refer my answer on how to invoke pipelines at following link: How to invoke a jenkins pipeline A in another jenkins pipeline B