Class ProjectSettingsGenerationResult
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.versionedSettings.ProjectSettingsGenerationResult
-
public class ProjectSettingsGenerationResult extends Object
A result of project settings generation
-
-
Constructor Summary
Constructors Constructor Description ProjectSettingsGenerationResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addProjectWithMissingContextParameters(String projectExtId, List<String> parameters)
Collection<ConvertedEntitiesReport>
getConverterReports()
Returns information about changes made by converters on top of generated settingsMap<String,List<String>>
getProjectsWithMissingContextParameters()
Map<String,String>
getProjectVersions()
Returns map (project uuid -> its configs version).void
projectSettingsUpdated(Set<String> projectExtIds)
Called after project settings are successfully updatedvoid
projectSettingsUpdateFailed()
Called after failed settings updatevoid
replacePlaceholderUuids(Map<String,String> projectUuids, Map<String,String> buildTypeUuids, Map<String,String> templateUuids, Map<String,String> vcsRootUuids)
Replaces placeholder uuids with real uuids in generation result.void
setAfterSuccessfulUpdateCallback(Consumer<Set<String>> callback)
Sets callback to run on successful projects updatevoid
setAfterUpdateCallback(Runnable afterUpdateCallback)
Sets callback which is executed after projects update (even if update is skipped or failed).void
setBeforeUpdateCallback(Runnable beforeUpdateCallback)
Sets callback which is executed before projects update (update can be skipped)void
setConverterReports(Collection<ConvertedEntitiesReport> reports)
void
setProjectVersions(Map<String,String> projectVersions)
void
setUpdateFailedCallback(Runnable updateFailedCallback)
Sets callback to run on settings update failure
-
-
-
Method Detail
-
getProjectVersions
@NotNull public Map<String,String> getProjectVersions()
Returns map (project uuid -> its configs version). Version can be missing for a project if its configs don't specify a version.- Returns:
- see above
-
getConverterReports
@NotNull public Collection<ConvertedEntitiesReport> getConverterReports()
Returns information about changes made by converters on top of generated settings- Returns:
- see above
-
setConverterReports
public void setConverterReports(@NotNull Collection<ConvertedEntitiesReport> reports)
-
projectSettingsUpdated
public void projectSettingsUpdated(@NotNull Set<String> projectExtIds)
Called after project settings are successfully updated
-
setAfterSuccessfulUpdateCallback
public void setAfterSuccessfulUpdateCallback(@NotNull Consumer<Set<String>> callback)
Sets callback to run on successful projects update- Parameters:
callback
- callback to run
-
projectSettingsUpdateFailed
public void projectSettingsUpdateFailed()
Called after failed settings update
-
setUpdateFailedCallback
public void setUpdateFailedCallback(@NotNull Runnable updateFailedCallback)
Sets callback to run on settings update failure- Parameters:
updateFailedCallback
- callback to run
-
setBeforeUpdateCallback
public void setBeforeUpdateCallback(Runnable beforeUpdateCallback)
Sets callback which is executed before projects update (update can be skipped)- Parameters:
beforeUpdateCallback
-
-
setAfterUpdateCallback
public void setAfterUpdateCallback(Runnable afterUpdateCallback)
Sets callback which is executed after projects update (even if update is skipped or failed). Callback is called after callbacks specified viasetAfterSuccessfulUpdateCallback(Consumer)
andsetUpdateFailedCallback(Runnable)
methods.- Parameters:
afterUpdateCallback
-
-
replacePlaceholderUuids
public void replacePlaceholderUuids(@NotNull Map<String,String> projectUuids, @NotNull Map<String,String> buildTypeUuids, @NotNull Map<String,String> templateUuids, @NotNull Map<String,String> vcsRootUuids)
Replaces placeholder uuids with real uuids in generation result. All arguments are maps from placeholder uuid to real uuid.
-
addProjectWithMissingContextParameters
public void addProjectWithMissingContextParameters(@NotNull String projectExtId, @NotNull List<String> parameters)
-
-