
com.liferay.jenkins.results.parser.BuildDatabase Maven / Gradle / Ivy
/**
* SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/
package com.liferay.jenkins.results.parser;
import java.io.File;
import java.net.URL;
import java.util.List;
import java.util.Properties;
import java.util.regex.Pattern;
import org.json.JSONObject;
/**
* @author Leslie Wong
* @author Michael Hashimoto
*/
public interface BuildDatabase {
public static final String FILE_NAME_BUILD_DATABASE = "build-database.json";
public JSONObject getBuildDataJSONObject(String key);
public JSONObject getBuildDataJSONObject(URL buildURL);
public Job getJob(String key);
public JSONObject getJSONObject();
public Properties getProperties(String key);
public Properties getProperties(String key, Pattern pattern);
public PullRequest getPullRequest(String key);
public Workspace getWorkspace(String key);
public WorkspaceGitRepository getWorkspaceGitRepository(String key);
public boolean hasBuildData(String key);
public boolean hasJob(String key);
public boolean hasProperties(String key);
public boolean hasPullRequest(String key);
public boolean hasWorkspace(String key);
public boolean hasWorkspaceGitRepository(String key);
public void putBuildData(String key, BuildData buildData);
public void putJob(String key, Job job);
public void putProperties(String key, File propertiesFile);
public void putProperties(
String key, File propertiesFile, boolean writeFile);
public void putProperties(String key, Properties properties);
public void putProperties(
String key, Properties properties, boolean writeFile);
public void putProperty(
String key, String propertyName, String propertyValue);
public void putProperty(
String key, String propertyName, String propertyValue,
boolean writeFile);
public void putPullRequest(String key, PullRequest pullRequest);
public void putWorkspace(String key, Workspace workspace);
public void putWorkspaceGitRepository(
String key, WorkspaceGitRepository workspaceGitRepository);
public FilePropagator rsyncBuildDatabaseFile(
List distNodes, String distPath, String preDistCommand,
String postDistCommand, int threadCount);
public void writeFilteredPropertiesToFile(
String destFilePath, Pattern pattern, String key);
public void writePropertiesToFile(String destFilePath, String key);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy