title | description | sidebar_position |
---|---|---|
Pipeline Execution History |
Learn more about the execution history of a pipeline. Where to find it and what information it contains. |
7 |
import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem';
This topic describes how to navigate to the execution history of pipelines and what information is contained within.
You can find the execution history of your pipeline or all pipelines in a project in the following places in the Harness UI.
You can view the execution history of all pipelines for a given project in the Executions tab in the left navigation of the Harness UI:
You can view the execution history of all pipelines for a given project in the Pipelines tab also.
In the Harness UI left navigation, select Pipelines. A list of pipelines created under the project appears.
Select the more actions button on the right for the pipeline of your choice, and then select View Executions.
You can view the execution history of a specific pipeline using Pipeline Studio.
In the Harness UI left navigation, select Pipelines, and then select the pipeline for which you want to view the execution details.
Select the Execution History option on the top right corner of the page to view the execution details.
Each pipeline execution displays the following information.
- Pipeline Name
- The name of the pipeline and execution ID.
- When expanded, this column also shows the name of each stage in the pipeline.
- Status
- Shows the status of the execution. The options are
SUCCESS
,FAILED
,ABORTED
,EXPIRED
. - When expanded, this column shows the status of each stage as an emoji. You can hover over the emoji for more information.
- Shows the status of the execution. The options are
- Service
- Shows the services used in the pipeline. For pipelines with more than one service, a
+X
modifier will be displayed whereX
is the number of additional services. - When expanded, this column shows the services used in each individual stage of the pipeline.
- Hover over the service name to see the artifact attached to the service.
- Shows the services used in the pipeline. For pipelines with more than one service, a
- Environment
- Shows the infrastructure used in the pipeline. For pipelines with more than one associated environment, a
+X
modifier will be displayed whereX
is the number of additional environments. - When expanded, this column shows the environment for each individual stage of the pipeline.
- Hover over the environment name to see the infrastructure associated with the environment.
- Shows the infrastructure used in the pipeline. For pipelines with more than one associated environment, a
- Trigger (This column is unlabeled)
- This column shows the origin of each execution.
- Execution Start Time
- Shows the user, method, and start time of the execution.
- More details
The more details icon for each pipeline offers additional execution actions:
- Add Execution Notes
- View Execution
- Edit Pipeline
- Retry Pipeline
- Abort Pipeline
- View Compiled YAML
- Compare Pipeline
- Download Logs
:::note
The new UI is behind the feature flag CDS_EXECUTION_LIST_CARD_VIEW
. Contact Harness Support to enable this feature.
:::
- Pipeline Name
- The name of the pipeline and execution ID.
- When expanded, this column also shows the name of each stage in the pipeline.
- Status
- Shows the status of the execution. The options are
SUCCESS
,FAILED
,ABORTED
,EXPIRED
. - When expanded, this column shows the status of each stage as an emoji. You can hover over the emoji for more information.
- Shows the status of the execution. The options are
- Trigger Summary
- This column shows the origin of each execution.
- Update Summary
- This column shows the module specific update information for the specific pipeline execution.
- For CD, it will show Service and Environment information.
- Service
- Shows the services used in the pipeline. For pipelines with more than one service, a
+X
modifier will be displayed whereX
is the number of additional services. - When expanded, this column shows the services used in each individual stage of the pipeline.
- Hover over the service name to see the artifact attached to the service.
- Shows the services used in the pipeline. For pipelines with more than one service, a
- Environment
- Shows the infrastructure used in the pipeline. For pipelines with more than one associated environment, a
+X
modifier will be displayed whereX
is the number of additional environments. - When expanded, this column shows the environment for each individual stage of the pipeline.
- Hover over the environment name to see the infrastructure associated with the environment.
- Shows the infrastructure used in the pipeline. For pipelines with more than one associated environment, a
- Execution Start Time
- Shows the user, method, and start time of the execution.
- More details
The more details icon for each pipeline offers additional execution actions:
- Re-run from stage
- View Execution
- View Pipeline
- Re-run Pipeline
- Abort Pipeline
- View Compiled YAML
- Compare Pipeline Executions
- Download Logs
You can filter pipeline executions using the filters in the Execution History or Execution tabs.
You can filter pipeline execution based on Status, Execution Mode, Trigger Type, Trigger Identifier, Timeframe, Deployment Type, Services, Environments, Artifacts or Build Type.
You can use default filter options show at the top such as Status, Pipelines, or Select Repository, or use more filter options by clicking the filter icon next to Select a Saved Filter.
Here you can click +New Filter to create and store filters for future use.
:::note
You can use the new filter UI by enabling the feature flag CDS_EXECUTION_LIST_FILTERS
. Contact Harness Support to enable this feature.
:::
You can use default filter options such as My Executions, Status, or Timeframe, or use more filter options by clicking the +Add Filter button.
You can save your current filter settings by clicking Save and you can reference those saved filters by clicking the filter icon dropdown at the top right.
---Filter pipeline execution based on Status of Pipeline Execution.
It includes:
- Aborted
- Aborted By Freeze
- Expired
- Failed
- Not Started
- Paused
- Queued
- Running
- Success
- Suspended
- Resource Waiting
- Async Waiting
- Skipped
- Task Waiting
- Timed Waiting
- Errored
- Ignore Failure
- Discontinuing
- Approval Rejected
- Intervention Waiting
- Approval Waiting
- Pausing
- Input Waiting
- Wait Step Running
- Queued License Limit Reached
- Queued Execution Concurrency Reached
By default, all executions, including re-runs and child pipelines from the last 30 days, will be listed in the execution view. If you want to view executions beyond 30 days, you can use the filter option available on the Execution page to select a custom time range.
:::important
Pipeline execution data is retained for a maximum of 6 months. If you apply a filter to view executions within the last 6 months, the data will be accessible. However, any data older than 6 months will no longer be available.
:::
Filter pipeline execution based on Execution mode:-
- Default: It shows the latest executions(of any retry) and normal execution(without retries) and rollbacks.
- All: It lists the old retries as well for the retried executions along with the default ones.
- Rollback: It only lists those executions which were executed in the rollback mode.
Filter pipeline execution based on type of trigger.
It includes:
- MANUAL
- WEBHOOK
- WEBHOOK_CUSTOM
- SCHEDULE_CRON
- ARTIFACT
- MANIFEST
You can mention trigger identifiers to filter pipeline execution triggered by a particular trigger.
Filter pipeline execution based on time.
Filter pipeline execution based on the deployment type used in the pipeline.
It includes:
- Kubernetes
- Native Helm
- SSH
- WinRM
- Serverless Lambda
- Azure Web Apps
- Deployment Templates
- Amazon ECS
- Spot Elasticgroup
- Tanzu Application Service
- AWS Lambda
- AWS Sam
You can filter the pipeline execution based on deployed services. Select your services from the drop-down list.
You can filter pipeline execution based on the environment to which you have deployed your service.
Filter pipeline execution based on artifacts.
Filter pipeline execution based on Build Type.
It includes:
- Pull Request/Merge Request
- Branch
- Tag
Harness provides an API to retrieve a summary of pipeline executions:
Sample cURL Command:
curl --location 'https://app.harness.io/gateway/pipeline/api/pipelines/execution/summary?routingId=vpCkHKsDSxK9_KYfjCTMKA&accountIdentifier=vpCkHKsDSxK9_KYfjCTMKA&projectIdentifier=<your-project-id>&orgIdentifier=<your-org-id>&pipelineIdentifier=<your-pipeline-id>global&page=0&size=20&sort=startTs%2CDESC&myDeployments=false&searchTerm=' \
--header 'Authorization: Bearer <your-auth-token>' \
--header 'Content-Type: application/json' \
--data '{"filterType":"PipelineExecution","myDeployments":false,"timeRange":{"timeRangeFilterType":"LAST_30_DAYS"},"moduleProperties":{"ci":{},"cd":{}}}'
Result Limitations:
Due to the underlying technical implementation, the API cannot retrieve records beyond the 10,000th execution, even if the page size is increased. If the results exceed this limit, an error will be encountered.
If this limitation is encountered, an error message will appear. Below is an example screenshot of the error message to help you identify the issue:
Solution:
To avoid encountering this limitation:
Apply additional filters, such as Status and Time Range, to narrow down the result set and reduce the number of executions listed. Refer to the Pipeline Execution API for more details. As an alternate, you can use the Pipeline Execution Outline API.