All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liferay.jenkins.results.parser.Job Maven / Gradle / Ivy

The newest version!
/**
 * 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 com.liferay.jenkins.results.parser.test.clazz.group.AxisTestClassGroup;
import com.liferay.jenkins.results.parser.test.clazz.group.BatchTestClassGroup;
import com.liferay.jenkins.results.parser.test.clazz.group.SegmentTestClassGroup;

import java.io.File;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;

import org.json.JSONObject;

/**
 * @author Michael Hashimoto
 */
public interface Job {

	public int getAxisCount();

	public AxisTestClassGroup getAxisTestClassGroup(String axisName);

	public List getAxisTestClassGroups();

	public Set getBatchNames();

	public List getBatchTestClassGroups();

	public List getBuildHistory(JenkinsMaster jenkinsMaster);

	public BuildProfile getBuildProfile();

	public String getCompanyDefaultLocale();

	public List getDependentAxisTestClassGroups();

	public Set getDependentBatchNames();

	public List getDependentBatchTestClassGroups();

	public Set getDependentSegmentNames();

	public List getDependentSegmentTestClassGroups();

	public List getDistNodes();

	public List getDistNodes(String networkName);

	public Set getDistRequiredBatchNames();

	public Set getDistRequiredSegmentNames();

	public DistType getDistType();

	public Set getDistTypes();

	public Set getDistTypesExcludingTomcat();

	public Set getJenkinsCohorts();

	public JobHistory getJobHistory();

	public String getJobName();

	public List getJobPropertiesFiles();

	public List getJobPropertyOptions();

	public String getJobURL(JenkinsMaster jenkinsMaster);

	public JSONObject getJSONObject();

	public Set getNetworkNames();

	public Set getSegmentNames();

	public List getSegmentTestClassGroups();

	public Set getStandaloneBatchNames();

	public Set getStandaloneSegmentNames();

	public String getTestPropertiesContent();

	public int getTimeoutMinutes(JenkinsMaster jenkinsMaster);

	public boolean isDownstreamEnabled();

	public boolean isJUnitTestsModifiedOnly();

	public boolean isSegmentEnabled();

	public boolean isStandaloneBatchEnabled();

	public boolean isValidationRequired();

	public boolean testAnalyticsCloud();

	public boolean testHotfixChanges();

	public boolean testJaCoCoCodeCoverage();

	public boolean testReleaseBundle();

	public boolean testRelevantChanges();

	public boolean testRelevantChangesInStable();

	public static enum BuildProfile {

		DXP("DXP", "dxp"), PORTAL("Portal", "portal");

		public static BuildProfile getByString(String string) {
			return _buildProfiles.get(string);
		}

		public String toDisplayString() {
			return _displayString;
		}

		@Override
		public String toString() {
			return _string;
		}

		private BuildProfile(String displayString, String string) {
			_displayString = displayString;
			_string = string;
		}

		private static Map _buildProfiles =
			new HashMap<>();

		static {
			for (BuildProfile buildProfile : values()) {
				_buildProfiles.put(buildProfile.toString(), buildProfile);
			}
		}

		private final String _displayString;
		private final String _string;

	}

	public static enum DistType {

		CI("ci"), RELEASE("release");

		@Override
		public String toString() {
			return _string;
		}

		private DistType(String string) {
			_string = string;
		}

		private final String _string;

	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy