-
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
JENKINS-56133: Add build url as default annotation #433
Conversation
619e30d
to
25afebd
Compare
25afebd
to
8bbabb9
Compare
@@ -142,9 +142,39 @@ public static void assumeKubernetes() throws Exception { | |||
return l; | |||
} | |||
|
|||
public static Map<String, String> getAnnotations(KubernetesCloud cloud, String podName) { |
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.
you are not using this method
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.
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.
yes, you are using it in the tests but not in the actual plugin, there's nothing that will add the annotations to the pods when they are launched
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.
The annotation is being added automatically by the step execution - https://github.com/jenkinsci/kubernetes-plugin/pull/433/files#diff-5501a99a43da60cbad908396dfee9336R100 - the method is necessary to confirm that the the annotation was added and properly reflects the build url.
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.
my bad, missread it
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.
Both tests are failing in assertNotNull(annotations);
@@ -142,9 +142,39 @@ public static void assumeKubernetes() throws Exception { | |||
return l; | |||
} | |||
|
|||
public static Map<String, String> getAnnotations(KubernetesCloud cloud, String podName) { |
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.
my bad, missread it
Is there a link to the failed tests? Worked fine locally, but I'm worried it was an edge case. |
Going to rewrite the tests to match runInPod approach to verifying to avoid race condition. |
8bbabb9
to
72343f0
Compare
72343f0
to
8ba06a5
Compare
No description provided.