Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,37 +1,38 @@
---
title: "Better connect between CI and CD with Deployment Trace"
title: "Deployment Trace"
linkTitle: "Deployment Trace"
weight: 992
description: >
A helper fulfill the gap between CI and CD.
Understand the deployment trace feature and how you can link application commits to the deployments they trigger.
---

You are a developer who works with application code change, and don't know what deployment is triggered by your commit on PipeCD UI? This feature is for you.
Deployment Trace links application code changes to the resulting deployments that reflect those code changes in the PipeCD Web UI.

If you're using PipeCD [Event Watcher](./event-watcher) to trigger the deployment for your code change, you can attach information of the triggered commit as the event data, PipeCD will use that information and helps you to make a link between your application code commit and the triggered deployments that reflect your code change.
When using PipeCD [Event Watcher](./event-watcher) to trigger deployments, you can attach commit information as event data. PipeCD uses that information to create links between your application code commits and the triggered deployments.

![Deployment Trace feature](/images/deployment-trace-ui.png)

## Usage

Via `pipectl event register` command
Use the `pipectl event register` command:

```bash
Usage:
pipectl event register [flags]
```

Flags:

```
--commit-author string The author of commit that triggers the event.
--commit-hash string The commit hash that triggers the event.
--commit-message string The message of commit that triggers the event.
--commit-message string The commit message that triggers the event.
--commit-timestamp int The timestamp of commit that triggers the event.
--commit-title string The title of commit that triggers the event.
--commit-url string The URL of commit that triggers the event.
```

Note: You have to attach at least `commit-hash` and `commit-url` as the event data in order to use the Deployment Trace feature.
>**Note:** Attach at least `commit-hash` and `commit-url` as event data to use the Deployment Trace feature.

## Github Actions
## GitHub Actions

If you're using Github Actions in your CI workflow, [actions-event-register](https://github.com/marketplace/actions/pipecd-register-event) is for you!
With it, you can easily register events without any installation.
If you are using GitHub Actions in your CI workflow, use [actions-event-register](https://github.com/marketplace/actions/pipecd-register-event) to register events without any installation.