Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JENKINS-14483 Remaining Xvfb processes in matrix jobs
implemented as kindly suggested by Chris Jonhson on jenkins-dev mailing list https://groups.google.com/d/topic/jenkinsci-dev/KQVDCV9ATm8/discussion
- Loading branch information
Zoran Regvart
committed
Sep 18, 2012
1 parent
6de9693
commit b25ee74
Showing
2 changed files
with
108 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
src/main/java/org/jenkinsci/plugins/xvfb/XvfbEnvironment.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package org.jenkinsci.plugins.xvfb; | ||
|
||
import hudson.FilePath; | ||
import hudson.Proc; | ||
import hudson.model.InvisibleAction; | ||
|
||
public class XvfbEnvironment extends InvisibleAction { | ||
/** Temporary directory to hold Xvfb session data, will not be persisted. */ | ||
private final transient FilePath frameBufferDir; | ||
|
||
/** Actual display name used, will not be persisted. */ | ||
private final transient int displayNameUsed; | ||
|
||
/** Handle to the Xvfb process. */ | ||
private final transient Proc process; | ||
|
||
public XvfbEnvironment(final FilePath frameBufferDir, final int displayNameUsed, final Proc process) { | ||
this.frameBufferDir = frameBufferDir; | ||
this.displayNameUsed = displayNameUsed; | ||
this.process = process; | ||
} | ||
|
||
public int getDisplayNameUsed() { | ||
return displayNameUsed; | ||
} | ||
|
||
public FilePath getFrameBufferDir() { | ||
return frameBufferDir; | ||
} | ||
|
||
public Proc getProcess() { | ||
return process; | ||
} | ||
} |