-
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-53500] Windows support for container step #626
Conversation
…es not work. Also needed to skip pods using nodeAffinity.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
…nd certainly not “deprecated”.
…bly thought and why you should probably ignore it.
@@ -431,21 +427,22 @@ public void kill(Map<String, String> modelEnvVars) throws IOException, Interrupt | |||
|
|||
int exitCode = doLaunch( | |||
true, null, null, null, null, | |||
// TODO Windows |
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.
Have not managed to come up with a PowerShell equivalent. Get-Process
and Stop-Process
, fine, but how do I select just those processes matching the JENKINS_SERVER_COOKIE
? You would think Process.StartInfo
would offer this via its Environment
or EnvironmentVariables
(what is the difference?), but this property is always null in my tests, perhaps because
For example, you should not access the
StartInfo
property on aProcess
object returned byGetProcesses
.
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.
Hmm, that seems to be true from an interactive shell, but then from inside the build
Get-Process | Format-Table -DisplayError Id, ProcessName, @{Label="stuff"; Expression={$_.StartInfo.EnvironmentVariables["JENKINS_SERVER_COOKIE"]}}
works.
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.
Or rather, it prints durable-XXX
…but for every process, even for example 0 Idle
and 4 System
, so either the StartInfo
is somehow poisoned by later state, or the set
from cmd
somehow mutated global state.
There is also the fact that PowershellScript
overrides doLaunch
when it should be overriding launchWithCookie
, so even if we could identify only processes actually started with this JENKINS_SERVER_COOKIE
, we would wind up killing the controller process and getting a -1 return code and losing any final output.
So for now I think this is just unfixable.
…ritFrom pending a working variant.
Build failure seems to be due to yet another general ci.jenkins.io outage. |
@@ -376,6 +371,7 @@ public void onClose(int i, String s) { | |||
|
|||
try { | |||
OutputStream stdin = watch.getInput(); | |||
// stdin = new TeeOutputStream(stdin, new LogTaskListener(LOGGER, Level.FINEST).getLogger()); |
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.
leftover?
@@ -70,6 +70,8 @@ spec: | |||
args: | |||
- -c | |||
- 'sleep infinity' | |||
nodeSelector: |
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.
Shouldn't be needed since you added https://github.com/jenkinsci/kubernetes-plugin/pull/626/files#diff-ec0e1841b0d5d888d11370d1a10eeabaR214-R220 ?
- name: m2repo | ||
persistentVolumeClaim: | ||
claimName: m2repo | ||
nodeSelector: |
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.
Same as above?
JENKINS-53500 and more generally JENKINS-57256.
Subsumes #629.