Pipeline settings
As an account administrator, you can configure global pipeline settings and enforce limits on the usage of pipelines in your account.
Some default limitations are applied on pipeline executions and resource consumption depending on your plan tier. Some settings can be modified within individual pipelines or globally by an administrator. Some settings can't be modified.
Pipeline Default Settings
You can configure Default Settings at the account, org, and project scopes. There are various categories of Default Settings.
These are the Default Settings for Pipelines.
Pipeline triggers settings
- Mandate pipeline create and edit permission to create and edit triggers: If enabled, users must have permission to create/edit pipelines to create/edit triggers for those pipelines. If disabled, users with permission to create/edit triggers can create/edit triggers regardless of their access to create/edit the pipelines associated with the triggers.
- Webhook Polling For Triggers
- Mandate Authorization for Custom Webhook Triggers: Enable this setting to require that all custom triggers in this Harness account use API key tokens. For more information, go to Enforcing authorization for custom triggers.
- Mandate Webhook Secrets for Github Triggers: Enable this setting to force secrets for Webhook triggers for authenticating the webhook call. For the secret to work with your webhook, you need to configure the repository webhook with the same secret after creating the trigger in Harness.
- Execute Triggers With All Collected Artifacts or Manifests: Enable this setting to allow all artifacts or manifests collected during the polling interval to trigger a deployment, with one deployment triggered for each artifact/manifest collected. For more information, go to Trigger pipelines on a new artifact.
Enable Pipeline Execution Audit Events
By default, the pipeline execution audit events such as Pipeline Start, Pipeline End, Stage Start, and Stage End are not displayed in the Audit Trail. Enable this setting to display these events.
Run RBAC Validation before executing Inline Pipelines
By default, before running any pipeline, Harness checks whether the user has access to all of the environments and other resources that the pipeline accesses. This check is run only for inline pipelines, not those stored in Git or other repositories. Turn off this setting if the check isn't required. Turning this off can cause pipelines to fail partway through execution (since later stages could have permission issues that haven't been checked beforehand).
Do Not Delete Pipeline Execution Details
When this is set to true, pipeline executions history remains in the system even when the corresponding pipelines are deleted. You can view these executions in the Pipeline Executions list and open them to view details, but you cannot re-run them. When this is set to false, Harness deletes all executions of a pipeline when that pipeline is deleted.
Allow users to mark a running Step as failure
Enable this setting to allow users to manually fail in-progress steps.
Export Service Variables as Env Variables
Enable this setting to export service variables as environment variables in Shell Script steps.
Enable Matrix Labels By Name
Enable this setting to use the names of the matrix indices as labels. By default, Harness uses indices for the matrix naming strategy (stages are named with indices like _2_2, _1_3, and so on). If you prefer, you can customize this naming convention for better readability. For more information, go to Use matrix axes as stage labels.
Enable Json Support for expressions
Enable this setting to write expressions using any JSON parser tool.
Default Image Pull Policy For Add On Container
Use this setting to set the image pull policy for the internal Harness images that run inside a pod along with your containers. For example, you can pull all images using a pull policy of Always (the default setting), or you can select Never because you expect the image to be present in the cluster already.
Concurrent Active Pipeline Executions
This is the number of concurrent pipeline executions allowed per execution API request. The setting considers only those executions that are in progress (including those that are paused temporarily by steps such as the wait step or approval step), not those that have executed to completion.
Any executions that are triggered when the limit is reached are added to the execution queue. These executions and their deployments are not failed by Harness.
The concurrency limits are as follows for each plan tier:
Free plan and Team/Enterprise trials | Team plan | Enterprise plan | |
---|---|---|---|
Default | 2 | 200 | 500 |
Maximum | 2 | 500 | 1000 |
Editable | No | Yes | Yes |
Scope | Account | Account | Account |
This setting can only be edited in Team and Enterprise plans. You can set it at the account scope only. You can configure the limit anywhere between 2 and the maximum.
Pipeline Timeout and Stage Timeout (execution time limits)
The timeout limit is the maximum allowable time a stage or pipeline can run.
By default, the Pipeline Timeout and Stage Timeout settings are set to the maximum for your plan tier. You can edit these limits to anything less than the maximum for your plan tier. If needed, you can configure different timeout limits at the account, org, and project scopes.
Manually configuring a pipeline or stage to have a longer timeout than the system limit, the system limit is still enforced.
The maximum limits for each plan tier are as follows:
Free plan | Team/Enterprise trials | Team plan | Enterprise plan | |
---|---|---|---|---|
Pipeline timeout | 2 hr | 4 hr | 30 days | 35 days |
Stage timeout | 1 hr | 1 hr | 30 days | 35 days |
Fixed pipeline settings
You can't modify these pipeline settings.