Class SystemPropertiesConstants


  • public class SystemPropertiesConstants
    extends Object
    A list of all system properties used by the plugin.
    • Field Detail

      • BUILD_STATUS_DISABLED_KEY

        public static final String BUILD_STATUS_DISABLED_KEY
        If set to true, this property will prevent build statuses being sent by jobs to Bitbucket. This applies to all jobs running on the instance. This may be done for testing purposes, or to stop multiple Jenkins instances posting duplicate build statuses to Bitbucket. Defaults to FALSE.
        See Also:
        Constant Field Values
      • CAPABILITIES_CACHE_DURATION_KEY

        public static final String CAPABILITIES_CACHE_DURATION_KEY
        Specifies the duration of the Bitbucket capabilities cache. This cache is used to determine which features of Bitbucket are available to Jenkins. Jenkins makes a request to Bitbucket whenever the cache expires. Defaults to 1 hour.
        See Also:
        Constant Field Values
      • DEFAULT_HTTP_CONNECTION_TIMEOUT

        public static final String DEFAULT_HTTP_CONNECTION_TIMEOUT
        Http client connection timeout for rest calls. Defaults to 30,000 milliseconds (30 seconds)
        Since:
        4.0.1
        See Also:
        Constant Field Values
      • DEFAULT_HTTP_READ_TIMEOUT

        public static final String DEFAULT_HTTP_READ_TIMEOUT
        Http client read timeout for rest calls. Defaults to 30,000 milliseconds (30 seconds)
        Since:
        4.0.1
        See Also:
        Constant Field Values
      • DEFAULT_OAUTH_ACCESS_TOKEN_TTL_KEY

        public static final String DEFAULT_OAUTH_ACCESS_TOKEN_TTL_KEY
        Specifies the time to live (TTL) of an OAuth access token, used when making API requests in Jenkins on behalf of the Bitbucket user, such as starting jobs. When the token expires, the user will have to acquire another before being able to make further API requests. Defaults to 5 years.
        See Also:
        Constant Field Values
      • DEFAULT_OAUTH_REQUEST_TOKEN_TTL_KEY

        public static final String DEFAULT_OAUTH_REQUEST_TOKEN_TTL_KEY
        Specifies the time to live (TTL) of an OAuth request token, which is used when performing an authorization flow between Bitbucket and Jenkins. This token TTL determines the maximum length of that flow before the user must attempt again. Defaults to 10 minutes.
        See Also:
        Constant Field Values
      • DEFAULT_OAUTH_SESSION_TTL_KEY

        public static final String DEFAULT_OAUTH_SESSION_TTL_KEY
        Specifies the time to live (TTL) of an OAuth session. This is the period after an OAuth token has been acquired as part of applinking Bitbucket and Jenkins. So long as the session is active, old or expired access tokens can be swapped for new ones. This can be lengthened or shortened, but it's recommended the session is never shorter than the DEFAULT_OAUTH_ACCESS_TOKEN_TTL_KEY. Defaults to 5 years and 30 days.
        See Also:
        Constant Field Values
      • REQUEST_RETRY_MAX_ATTEMPTS

        public static final String REQUEST_RETRY_MAX_ATTEMPTS
        Maximum number of attempts to retry when posting a build status and the server responds wth a 429. Defaults 3. Care should be taken when adjusting this as to not overload a server that is already under load.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SystemPropertiesConstants

        public SystemPropertiesConstants()