-
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
[JENKINS-63627] Add ability to tell which container is currently active
Remote Link | New: This issue links to "PR #925 (Web Link)" [ 26412 ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Status | Original: In Progress [ 3 ] | New: In Review [ 10005 ] |
Assignee | New: Vincent Latombe [ vlatombe ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: In Review [ 10005 ] | New: Fixed but Unreleased [ 10203 ] |
Released As | New: 1.28.6 | |
Status | Original: Fixed but Unreleased [ 10203 ] | New: Resolved [ 5 ] |
Link | New: This issue is related to JENKINS-64643 [ JENKINS-64643 ] |
Implemented with POD_CONTAINER variable. Listing containers would need to be implemented a separate ticket.