|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.utils.SystemProperty
public class SystemProperty
This class represents system properties as constants. The system / environmental constants resolution order goes:
Nested Class Summary | |
---|---|
static class |
SystemProperty.BooleanSystemProperty
|
static class |
SystemProperty.IntegerSystemProperty
|
Field Summary | |
---|---|
static SystemProperty.BooleanSystemProperty |
AGENT_QUEUE_OFFLOADING_ENABLED
Enables offloading of agent queue to disk. |
static SystemProperty.BooleanSystemProperty |
ALLOW_MUTATIVE_GET_IN_STRICT_XSRF_MODE
|
static SystemProperty |
ALLOW_UNSUPPORTED_DB
Whether the user can select an unsupported database or not. |
static SystemProperty |
ANT_HOME
Location of ANT |
static SystemProperty |
ARTIFACT_COMPRESSION_DARK_FEATURE
Makes artifacts and logs compression tied to the global compression configuration. |
static SystemProperty |
ARTIFACT_HANDLER_DARK_FEATURE
Turns on the artifact handler UI. |
static SystemProperty |
ARTIFACT_SIZE_LIMIT_PER_BUILD
|
static SystemProperty |
ATLASSIAN_DEV_MODE
|
static SystemProperty |
BAMBOO_DELETION_ENABLED
If this is set to 'false' then the background deletion service will not delete objects within Bamboo that are ImmutableDeletable.isMarkedForDeletion()
This is only useful for support purposes |
static SystemProperty |
BAMBOO_FREEMARKER_DEBUG
Unlocks different aspects of Freemarker debug output: - output template names as html comments (BAM-8006) |
static SystemProperty |
BAMBOO_HOME_FROM_ENV
Location of Bamboo Home |
static String |
BAMBOO_HOME_PROPERTY_NAME
|
static SystemProperty |
BAMBOO_HOSTED_MODE
Executes Bamboo in hosted mode |
static SystemProperty |
BAMBOO_HOSTED_TEST_MODE
Executes Bamboo in hosted mode for functional tests |
static SystemProperty.BooleanSystemProperty |
BAMBOO_IGNORE_SERVER_STATE_ON_RESTART
|
static SystemProperty |
BAMBOO_MAX_AGENTS_LOADING
Specifies the maximum amount of remote agents able to load at one time |
static SystemProperty |
BAMBOO_RELOAD_AGENT_CLASSPATH
When set causes the classpath.zip of the Jar Remote class loader to be reset for each agent startup |
static SystemProperty |
BAMBOO_REQUEST_PROFILING
|
static SystemProperty |
BUILD_FAILED_MARKER
Text the builders will look for when checking for build failure, currently only used by ant builder |
static SystemProperty |
BUILD_PARENT_JAVA_IO_TMPDIR
Parent directory for temporary directories created for builds. |
static SystemProperty |
BUILD_RESULTS_CACHE_SIZE
Make the buildresults cache configurable |
static SystemProperty |
BUILD_SUCCESSFUL_MARKER
Text the builders will look for when checking for build success. |
static SystemProperty |
BUILDING_DISABLED
Disable building plans globally in Bamboo |
static SystemProperty.BooleanSystemProperty |
CREATE_BRANCHES_FOR_PULL_REQUESTS_ENABLED
Is automatic creation of plan branches for Stash pull requests enabled. |
static SystemProperty |
CVS_CHECKOUT_FORMAT
CVS checkout format, the default behavior is to checkout in BINARY format, although this can be overidden with either TEXT or NONE |
static SystemProperty |
CVS_FORCE_CHECKOUT_TO_LATEST
A flag that forces Bamboo's CVS repository to checkout to the latest of that particular branch / HEAD, rather than using the -d flag, which seems to have compatibility issues in some cases. |
static int |
CVS_SOCKET_TIMEOUT_MS
A socket level timeout in milli-seconds for all CVS connections. |
static SystemProperty |
CVS_TIME_DIFF
The CVS Server's time offset in minutes if different to Bamboo Server |
static SystemProperty |
DEFAULT_CVS_ROOT
Default CVS Root (CVS server!) |
static SystemProperty |
DEFAULT_P4_EXE
Default Perforce p4 executable |
static SystemProperty |
DEFAULT_PERFORCE_CLIENT
Default Perforce Client |
static SystemProperty |
DEFAULT_PERFORCE_PORT
Default Perforce Port (Perforce server!) |
static SystemProperty |
DEFAULT_PERFORCE_USER
Default Perforce User |
static SystemProperty |
DIRECTORY_SCANNING_PLUGIN_SCAN_DIR
An optional directory to attempt to load additional plugins from. |
static SystemProperty |
DISABLE_AGENT_AUTO_CAPABILITY_DETECTION
Prevents agents from automatically overriding remote agent capabilities on new startup |
static SystemProperty |
DISABLE_BRANCH_DETECTION
|
static SystemProperty |
DISABLE_CLOSED_BRANCH_DETECTION
|
static SystemProperty.BooleanSystemProperty |
DISABLE_STASH_BUILD_STATUS_UPDATES
Globally disable sending build status updates to Stash after builds are executed. |
static SystemProperty |
EC2_AGENT_ENDPOINT
You can override the EC2 agent endpoint here, it will be used instead of the base URL. |
static SystemProperty.BooleanSystemProperty |
EC2_HTTP_TUNNEL_ENABLED
Whether to enable Tunnel for http traffic to and from the agents. |
static SystemProperty |
EC2_IGNORE_CERT_CHECK
Allow EC2 agents to ignore invalid certificates, if not using the tunnel |
static SystemProperty.BooleanSystemProperty |
EC2_JMS_TUNNEL_ENABLED
Whether to enable Tunnel for http and JMS traffic to and from the agents. |
static SystemProperty |
EC2_TUNNEL_ENABLED
Deprecated. since 5.6 use EC2_HTTP_TUNNEL_ENABLED instead. |
static SystemProperty |
ELASTIC_AGENT_LOG_AWS_ID
If it is set to a valid AWS id, it will be used to authenticate to S3 and copy logs there upon shutdown Default : empty Usage: env : bamboo.ec2.agentLogAwsId=XXXXXXX java: -Dbamboo.ec2.agentLogAwsId=XXXXXXX |
static SystemProperty |
ELASTIC_AGENT_LOG_AWS_SECRET
If it is set to a valid AWS id, it will be used to authenticate to S3 and copy logs there upon shutdown Default : empty Usage: env : bamboo.ec2.agentLogSecret=XXXXXXX java: -Dbamboo.ec2.agentLogSecret=XXXXXXX |
static SystemProperty |
ELASTIC_IMAGE_AMI_ID
Lets you over ride the default elastic images used |
static SystemProperty.BooleanSystemProperty |
ENABLE_JMS_OVER_HTTP
|
static SystemProperty.BooleanSystemProperty |
ENABLE_REMOTE_AGENTS_SHELL
When enabled, users with appropriate permissions can access agents through a terminal integrated with Bamboo. |
static SystemProperty.BooleanSystemProperty |
ENABLE_XML_FACTORY_OVERRIDE
When enabled, enables applying the system XML parser workaround (BDEV-7924) |
static SystemProperty.BooleanSystemProperty |
ENFORCE_POLLING_BRANCH_DETECTION_EVEN_WHEN_REPO_CAN_PUSH_IT
Enforce polling branches even for Repository that implements BranchInformationProvider
and returns False from BranchInformationProvider.usePollingForBranchDetection() |
static SystemProperty |
EVENT_MANAGER_CORE_POOL_SIZE
Optional property for tuning core pool size in Bamboo Event Manager |
static SystemProperty |
EVENT_MANAGER_MAXIMUM_POOL_SIZE
Optional property for tuning maximum pool size in Bamboo Event Manager |
static SystemProperty |
EXPORT_WAIT_FOR_SERVER_PAUSE_SLEEP
Period between checks of the Server state when export is waiting for the server to pause. |
static SystemProperty |
EXPORT_WAIT_FOR_SERVER_PAUSE_TIMEOUT
Timeout period to wait for running jobs to all be paused before running an export. |
static SystemProperty |
FILE_UPLOAD_MAXIMUM_SIZE
Maximum size of uploaded files in megabytes |
static SystemProperty |
FILTER_MAVEN_LOG_FOR_DOWNLOAD_STATUS
Filter out Maven artifact download progress status message in build log. |
static SystemProperty |
FIND_SUCCESS_MESSAGE_IN_LAST
Number of lines for builders to look back to guarantee build successful. |
static SystemProperty |
FIRE_INITAL_BUILD_FOR_MANUAL_STRATEGY
Fire initial build automatically for manual build strategy on build creation |
static SystemProperty.IntegerSystemProperty |
FS_TIMESTAMP_RESOLUTION_MS
Defines the worst case resolution of times stored on filesystem. |
static SystemProperty.BooleanSystemProperty |
FUSION_DEPLOYMENTS_SUPPORT_DISABLED
Disable sending any Deployments data to Fusion plugin. |
static SystemProperty |
HG_CHANGE_SET_LIMIT
|
static SystemProperty |
HG_COMMAND_FORCE_DEBUG
Whether mercurial plans output more verbose logs from hg commands. |
static SystemProperty.BooleanSystemProperty |
LIMITED_TIME_QUARANTINE_ENABLED
Enables limited time quarantine feature. |
static SystemProperty.IntegerSystemProperty |
LOG_LINES_FOR_NOTIFICATIONS
Lets you control how much information is showed in notifications |
static SystemProperty |
MAVEN_HOME
Location of MAVEN 1 |
static SystemProperty |
MAVEN2_HOME
Location of MAVEN 2 |
static SystemProperty |
MAX_VCS_OPERATION_RETRIES
Overrides the maximum number of retries for operations that fail. |
static SystemProperty |
PATH
The system PATH variable. |
static boolean |
PATH_SET_ALLOWED
Whenever arbitrary path for export and backup allowed |
static SystemProperty |
PDL_DARK_FEATURE
Turns on the PDL and related stuff |
static SystemProperty.BooleanSystemProperty |
PERSIST_RUNTIME_STATE
Whether Bamboo should persist/restore runtime operations: builds and deployments in progress. |
static SystemProperty |
PLAN_CONFIG_SIMPLIFIED
Turns on new plan config UI (simplified) |
static SystemProperty |
PLAN_DIRECTORY_INFO_REST
|
static SystemProperty |
PLAN_EXECUTION_DETECTION_THREADS
Allows for the pool size for change detection to be modified. |
static SystemProperty.BooleanSystemProperty |
REMOVE_LABELS_AND_PLANS_FOR_NON_PLAN_ADMIN
Disable sending any Deployments data to Fusion plugin. |
static SystemProperty |
ROTP_ADMIN_SHORTCUTS_DARK_FEATURE
Turns on the ROTP admin shortcuts |
static SystemProperty |
ROTP_DARK_FEATURE
Turns on the ROTP header and related stuff |
static SystemProperty |
ROTP_PROJECT_SHORTCUTS_DARK_FEATURE
Turns on the ROTP project shortcuts |
static SystemProperty |
SEARCH_BUILD_SUCCESS_FAIL_MESSAGE_EVERYWHERE
A workaround for BAM-4069, allows us to search for build successful/failed messages. |
static SystemProperty |
SEND_FILE_NAMES_TO_AGENT
If your agent side plugins rely on presence of file names in BuildContext, set this property to true. |
static SystemProperty.BooleanSystemProperty |
SKIP_BOOT_DELEGATION_OVERRIDES
When enabled, skips performing boot delegation workarounds on Bamboo startup |
static SystemProperty.IntegerSystemProperty |
STASH_REPOSITORY_TRIGGER_POLLING_INTERVAL
Polling interval (in seconds) for Stash trigger type. |
static SystemProperty.IntegerSystemProperty |
STASH_SSH_PORT_NUMBER
Default ssh port number for stash server. |
static SystemProperty |
SVN_CACHE_CREDENTIALS
SVN authentication caching |
static SystemProperty |
SVN_SPOOL_TO_FILE
SVN client to use temporary file for spooling repository files |
static SystemProperty |
SVN_WC_FORMAT
Deprecated. since 4.2.1 use AdministrationConfiguration.getRepositorySettings()
* *
|
static SystemProperty |
TRIGGERS_ON_ENVIRONMENT_PAGES_DARK_FEATURE
Turns on creating and showing triggers on Environment configuration pages |
Constructor Summary | |
---|---|
|
SystemProperty(boolean mandatory,
String... properties)
Creates an instance containing the value of the given property - logs an error if it cannot be found |
protected |
SystemProperty(String property,
boolean mandatory,
org.apache.log4j.Logger log)
Used in testing |
Method Summary | |
---|---|
boolean |
exists()
|
protected static String |
getEnvironmentVariable(String variable,
boolean mandatory)
Obtain the specified environment variable. |
String |
getKey()
Obtain the key used to find this property |
String |
getValue()
Obtain the value of this proprty |
boolean |
getValue(boolean defaultValue)
Obtain the boolean property value |
int |
getValue(int defaultValue)
|
long |
getValue(long defaultValue)
|
String |
getValue(String defaultValue)
Obtain the value of the property (returns the default value if the environment variable has not been defined. |
void |
setValue(String propertyValue)
So the setting can be set by a test |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String BAMBOO_HOME_PROPERTY_NAME
public static final SystemProperty BAMBOO_HOME_FROM_ENV
public static final SystemProperty MAVEN_HOME
public static final SystemProperty MAVEN2_HOME
public static final SystemProperty ANT_HOME
public static final SystemProperty DEFAULT_CVS_ROOT
public static final SystemProperty DEFAULT_PERFORCE_PORT
public static final SystemProperty DEFAULT_PERFORCE_CLIENT
public static final SystemProperty DEFAULT_PERFORCE_USER
public static final SystemProperty DEFAULT_P4_EXE
public static final SystemProperty FIND_SUCCESS_MESSAGE_IN_LAST
public static final SystemProperty BUILD_SUCCESSFUL_MARKER
public static final SystemProperty BUILD_FAILED_MARKER
public static final SystemProperty SEARCH_BUILD_SUCCESS_FAIL_MESSAGE_EVERYWHERE
public static final SystemProperty DISABLE_AGENT_AUTO_CAPABILITY_DETECTION
public static final SystemProperty SVN_SPOOL_TO_FILE
public static final SystemProperty BUILDING_DISABLED
public static final SystemProperty PATH
public static final SystemProperty CVS_TIME_DIFF
public static final SystemProperty CVS_CHECKOUT_FORMAT
public static final SystemProperty CVS_FORCE_CHECKOUT_TO_LATEST
public static final int CVS_SOCKET_TIMEOUT_MS
Socket.setSoTimeout(int)
public static final SystemProperty BUILD_RESULTS_CACHE_SIZE
public static final SystemProperty FILTER_MAVEN_LOG_FOR_DOWNLOAD_STATUS
@Deprecated public static final SystemProperty SVN_WC_FORMAT
AdministrationConfiguration.getRepositorySettings()
* *
public static final SystemProperty SVN_CACHE_CREDENTIALS
public static final SystemProperty.IntegerSystemProperty LOG_LINES_FOR_NOTIFICATIONS
public static final SystemProperty.IntegerSystemProperty FS_TIMESTAMP_RESOLUTION_MS
public static final SystemProperty SEND_FILE_NAMES_TO_AGENT
public static final SystemProperty ELASTIC_IMAGE_AMI_ID
public static final SystemProperty.BooleanSystemProperty EC2_HTTP_TUNNEL_ENABLED
@Deprecated public static final SystemProperty EC2_TUNNEL_ENABLED
EC2_HTTP_TUNNEL_ENABLED
instead.public static final SystemProperty.BooleanSystemProperty EC2_JMS_TUNNEL_ENABLED
public static final SystemProperty EC2_IGNORE_CERT_CHECK
public static final SystemProperty FIRE_INITAL_BUILD_FOR_MANUAL_STRATEGY
public static final SystemProperty ALLOW_UNSUPPORTED_DB
public static final boolean PATH_SET_ALLOWED
public static final SystemProperty BUILD_PARENT_JAVA_IO_TMPDIR
public static final SystemProperty EVENT_MANAGER_CORE_POOL_SIZE
public static final SystemProperty EVENT_MANAGER_MAXIMUM_POOL_SIZE
public static final SystemProperty HG_COMMAND_FORCE_DEBUG
public static final SystemProperty DIRECTORY_SCANNING_PLUGIN_SCAN_DIR
public static final SystemProperty ELASTIC_AGENT_LOG_AWS_ID
public static final SystemProperty ELASTIC_AGENT_LOG_AWS_SECRET
public static final SystemProperty BAMBOO_DELETION_ENABLED
ImmutableDeletable.isMarkedForDeletion()
This is only useful for support purposes
public static final SystemProperty BAMBOO_RELOAD_AGENT_CLASSPATH
public static final SystemProperty BAMBOO_MAX_AGENTS_LOADING
public static final SystemProperty BAMBOO_FREEMARKER_DEBUG
public static final SystemProperty MAX_VCS_OPERATION_RETRIES
public static final SystemProperty PLAN_EXECUTION_DETECTION_THREADS
public static final SystemProperty ARTIFACT_HANDLER_DARK_FEATURE
public static final SystemProperty ARTIFACT_COMPRESSION_DARK_FEATURE
public static final SystemProperty ROTP_DARK_FEATURE
public static final SystemProperty ROTP_PROJECT_SHORTCUTS_DARK_FEATURE
public static final SystemProperty ROTP_ADMIN_SHORTCUTS_DARK_FEATURE
public static final SystemProperty PDL_DARK_FEATURE
public static final SystemProperty TRIGGERS_ON_ENVIRONMENT_PAGES_DARK_FEATURE
public static final SystemProperty BAMBOO_HOSTED_MODE
public static final SystemProperty PLAN_CONFIG_SIMPLIFIED
public static final SystemProperty BAMBOO_HOSTED_TEST_MODE
public static final SystemProperty HG_CHANGE_SET_LIMIT
public static final SystemProperty ARTIFACT_SIZE_LIMIT_PER_BUILD
public static final SystemProperty DISABLE_BRANCH_DETECTION
public static final SystemProperty DISABLE_CLOSED_BRANCH_DETECTION
public static final SystemProperty ATLASSIAN_DEV_MODE
public static final SystemProperty BAMBOO_REQUEST_PROFILING
public static final SystemProperty.BooleanSystemProperty ALLOW_MUTATIVE_GET_IN_STRICT_XSRF_MODE
public static final SystemProperty EXPORT_WAIT_FOR_SERVER_PAUSE_SLEEP
public static final SystemProperty EXPORT_WAIT_FOR_SERVER_PAUSE_TIMEOUT
public static final SystemProperty EC2_AGENT_ENDPOINT
public static final SystemProperty FILE_UPLOAD_MAXIMUM_SIZE
public static final SystemProperty.BooleanSystemProperty BAMBOO_IGNORE_SERVER_STATE_ON_RESTART
public static SystemProperty.BooleanSystemProperty ENABLE_JMS_OVER_HTTP
public static SystemProperty.BooleanSystemProperty FUSION_DEPLOYMENTS_SUPPORT_DISABLED
FeatureManager.isFusionDeploymentsSupportEnabled()
to check it's value.
public static final SystemProperty.IntegerSystemProperty STASH_SSH_PORT_NUMBER
public static SystemProperty.BooleanSystemProperty REMOVE_LABELS_AND_PLANS_FOR_NON_PLAN_ADMIN
FeatureManager.isFusionDeploymentsSupportEnabled()
to check it's value.
public static SystemProperty.BooleanSystemProperty DISABLE_STASH_BUILD_STATUS_UPDATES
FeatureManager.isUpdatingStashWithBuildStatusEnabled()
to check it's value.
public static SystemProperty.BooleanSystemProperty ENFORCE_POLLING_BRANCH_DETECTION_EVEN_WHEN_REPO_CAN_PUSH_IT
Repository
that implements BranchInformationProvider
and returns False from BranchInformationProvider.usePollingForBranchDetection()
public static SystemProperty.BooleanSystemProperty CREATE_BRANCHES_FOR_PULL_REQUESTS_ENABLED
public static SystemProperty.IntegerSystemProperty STASH_REPOSITORY_TRIGGER_POLLING_INTERVAL
public static final SystemProperty.BooleanSystemProperty AGENT_QUEUE_OFFLOADING_ENABLED
public static SystemProperty.BooleanSystemProperty ENABLE_REMOTE_AGENTS_SHELL
public static final SystemProperty.BooleanSystemProperty LIMITED_TIME_QUARANTINE_ENABLED
public static SystemProperty.BooleanSystemProperty SKIP_BOOT_DELEGATION_OVERRIDES
public static SystemProperty.BooleanSystemProperty ENABLE_XML_FACTORY_OVERRIDE
public static final SystemProperty.BooleanSystemProperty PERSIST_RUNTIME_STATE
public static final SystemProperty PLAN_DIRECTORY_INFO_REST
Constructor Detail |
---|
public SystemProperty(boolean mandatory, String... properties)
mandatory
- Is the property mandatory or optional?properties
- The property we're loading from the environment (first name found will be loaded)protected SystemProperty(String property, boolean mandatory, org.apache.log4j.Logger log)
property
- The property we're loading from the environmentmandatory
- Is the property mandatory or optional?log
- The logger we're logging errors toMethod Detail |
---|
@Nullable public String getValue()
public String getKey()
@NotNull public String getValue(@NotNull String defaultValue)
defaultValue
- The default value, if the environment variable has not been defined
public boolean getValue(boolean defaultValue)
defaultValue
- The default value, if the environment variable has not been defined
@Nullable protected static String getEnvironmentVariable(@NotNull String variable, boolean mandatory)
variable
- The variable we requiremandatory
- Is this a mandatory property?
public void setValue(String propertyValue)
propertyValue
- The value required by the testpublic boolean exists()
public int getValue(int defaultValue)
public long getValue(long defaultValue)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |