@Extension
public final class OldDataConverter
extends hudson.model.listeners.ItemListener
FoundIndication
s with line number info to
the new format using line matcher.Modifier and Type | Class and Description |
---|---|
static class |
OldDataConverter.FoundIndicationWork
A work task that does the actual conversion in an executor thread.
|
static class |
OldDataConverter.MatrixBuildActionWork
Work to convert
FailureCauseMatrixBuildAction s to use FailureCauseMatrixBuildAction.runIds
instead of run instances during serialization. |
Modifier and Type | Field and Description |
---|---|
static int |
POOL_SIZE
The size of the thread pool.
|
static int |
SCHEDULE_DELAY
The seconds to delay actual processing of the conversion.
|
Constructor and Description |
---|
OldDataConverter()
Default Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
convertFoundIndications(hudson.model.Run build)
Adds the provided build to the queue of builds to convert
FoundIndication s in, unless the conversion for
that build is already in progress. |
void |
convertMatrixBuildAction(String matrixProjectName,
FailureCauseMatrixBuildAction action)
Convert
FailureCauseMatrixBuildAction s to use FailureCauseMatrixBuildAction.runIds instead of run
instances during serialization. |
static OldDataConverter |
getInstance()
Retrieves the singleton instance from
ItemListener.all() . |
void |
onLoaded() |
void |
waitForInitialCompletion()
Waits until there are no more running conversion tasks.
|
public static final int POOL_SIZE
public static final int SCHEDULE_DELAY
public OldDataConverter()
public static OldDataConverter getInstance()
ItemListener.all()
. If it is not found there
an IllegalStateException
will be thrown.public void convertFoundIndications(hudson.model.Run build)
FoundIndication
s in, unless the conversion for
that build is already in progress.build
- the build to convert.public void convertMatrixBuildAction(String matrixProjectName, FailureCauseMatrixBuildAction action)
FailureCauseMatrixBuildAction
s to use FailureCauseMatrixBuildAction.runIds
instead of run
instances during serialization.
Will schedule the conversion until all items in Jenkins has been loaded.action
- the action to fix.matrixProjectName
- the name of the matrix project.public void onLoaded()
onLoaded
in class hudson.model.listeners.ItemListener
public void waitForInitialCompletion() throws InterruptedException
InterruptedException
- if so while sleepingCopyright © 2016–2021. All rights reserved.