-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use label as pod name when not set #375
Conversation
Use better labels in tests to identify runaway pods
@@ -69,8 +69,8 @@ public void runInPod() throws Exception { | |||
List<PodTemplate> templates = cloud.getAllTemplates(); | |||
|
|||
PodTemplate template = null; | |||
while ((template = podTemplateWithLabel("mypod", templates)) == null) { | |||
LOGGER.log(Level.INFO, "Waiting for mypod template to be created"); | |||
while ((template = podTemplateWithLabel("runInPod", templates)) == null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could use a TestName
rule to make it generic
Hi @carlossg , I am trying to use a custom image with amazonlinux as base image, can you please let me know if that possible. The default jnlp agent image used can be customized by adding it to the template containerTemplate(name: 'jnlp', image: 'jenkins/jnlp-slave:3.10-1-alpine', args: '${computer.jnlpmac} ${computer.name}'), I find this on documentation but stil it using alpine image. much appreciated |
@yrsurya you should use jenkins-user mailing list for questions |
To filter with more accuracy
this means instead of |
Use better labels in tests to identify runaway pods