You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[JENKINS-43825] Improve propagation of issues in ProcessTree.Windows #22043
This is a requirement for better error handling in JENKINS-30782.
Build termination uses environment variables to determine which processes need to be aborted. OSProcess API provides getEnvironmentVariables(), which does not support propagating exceptions to upper levels. But we need it for issues which may happen in WinP. hasMatchingEnvVars() is final on the OSProcess level, hence there is no way to reliably propagate issues.
New API needs to be implemented in order to allow propagating exceptions, at least for Windows processes
This is a requirement for better error handling in JENKINS-30782.
Build termination uses environment variables to determine which processes need to be aborted. OSProcess API provides getEnvironmentVariables(), which does not support propagating exceptions to upper levels. But we need it for issues which may happen in WinP. hasMatchingEnvVars() is final on the OSProcess level, hence there is no way to reliably propagate issues.
New API needs to be implemented in order to allow propagating exceptions, at least for Windows processes
Activity
jenkins-infra-bot commentedon Apr 25, 2017
Raw content of original comment:
#2859
jenkins-infra-bot commentedon Apr 28, 2017
Raw content of original comment:
JENKINS-43825- Refactor WindowsProcess to a separate class and optimize loggingJENKINS-43825- Refactor the code to properly propagate WindowsProcessException in ProcessTree to the top levelJENKINS-43825- Polish loggingJENKINS-43828- s/WindowsProcess/WindowsOSProcessJENKINS-43825- Next time I will try to compile the code before submittingCode changed in jenkins
User: Oleg Nenashev
Path:
core/src/main/java/hudson/util/ProcessTree.java
http://jenkins-ci.org/commit/jenkins/1899f36bfc372ec9b2ee536d3630ea5246e4570f
Log:
JENKINS-43825- Refactor ProcessTree.Windows logic to propagate errors correctly (#2859)JENKINS-43825- Refactor WindowsProcess to a separate class and optimize loggingJENKINS-43825- Refactor the code to properly propagate WindowsProcessException in ProcessTree to the top levelJENKINS-43825- Polish loggingJENKINS-43828- s/WindowsProcess/WindowsOSProcessJENKINS-43825- Next time I will try to compile the code before submittingjenkins-infra-bot commentedon May 1, 2017
Raw content of original comment:
In 2.58.