Release highlights
Label is no longer required when using podTemplate keyword.
Just use
podTemplate(yaml: """
...
""")
node(POD_LABEL) {
...
}
}
The POD_LABEL variable will be automatically filled within the podTemplate block with a value derived from the current build id and some randomness to make it unique.
If a KubernetesComputer disconnects, the KubernetesSlave is now removed
It will also abort the corresponding build. This is super useful when running on top of EC2 Spot instances for example as it will prevent the build from waiting forever for the agent to reconnect (spoiler: it won't).
🚀 New features and improvements
- JENKINS-57830 - Convenient default for PodTemplateStep.name/label and KubernetesDeclarativeAgent.label (#539) @jglick
- JENKINS-49707 - If a KubernetesComputer disconnects, remove the KubernetesSlave (#461) @jglick
🐛 Bug Fixes
- JENKINS-42763 - Only override HOME if OpenShift (#531) @Vlatombe
📦 Dependency updates
- Jenkins core 2.176.1
- Workflow-support 3.3
- Workflow-step-api 2.20
- Workflow-durable-task-step 2.32