public class Util extends Object
Constructor and Description |
---|
Util() |
Modifier and Type | Method and Description |
---|---|
static jenkins.model.Jenkins |
getActiveInstance() |
static String |
getDoubleDiffString(double d,
int prec)
This method formats the difference as "+/- d".
|
static String |
getFileName(String fileName) |
static GraphsByBuildDates |
getGraphXAxisDisplay(hudson.model.Job job) |
static hudson.util.Area |
getProjectGraphArea()
Method to return the size of the graph on the project page.
|
static String |
possiblyTrimStdio(boolean keepLongStdio,
File workspace,
String filename)
This method returns the possibly trimmed contents of the file.
|
public static String possiblyTrimStdio(boolean keepLongStdio, File workspace, String filename) throws IOException
keepLongStdio
- Disable trimming long filesworkspace
- the directory that contains the filefilename
- input filenameIOException
public static String getDoubleDiffString(double d, int prec)
d
- prec
- public static hudson.util.Area getProjectGraphArea()
public static GraphsByBuildDates getGraphXAxisDisplay(hudson.model.Job job)
public static jenkins.model.Jenkins getActiveInstance()
Copyright © 2016–2024. All rights reserved.