-
New Feature
-
Resolution: Fixed
-
Minor
-
None
-
-
1.28.6
When writing pipeline libraries that utilize pod based agents, it would be useful to know a few bits about the pod and container currently running. Currently all you can get is pod name...kind of...
The easiest way to accomplish this is to add a few env variables - for example:
- JENKINS_CONTAINER - name of the currently active container
- JENKINS_CONTAINERS - list of all containers in the pod
It seems these should be easily injectable when switching containers
- is related to
-
JENKINS-64643 Add abilty to list all avaialble containers in a pod
-
- Open
-
- links to
Implemented with POD_CONTAINER variable. Listing containers would need to be implemented a separate ticket.