mirror of
https://github.com/goharbor/harbor
synced 2025-04-14 17:48:03 +00:00
feat: add execution_id and task_id to the replication webhook payload (#21614)
Signed-off-by: chlins <chlins.zhang@gmail.com>
This commit is contained in:
parent
fee92c5189
commit
490f898aec
|
@ -163,6 +163,8 @@ func constructReplicationPayload(ctx context.Context, event *event.ReplicationEv
|
|||
OverrideMode: rpPolicy.Override,
|
||||
TriggerType: string(execution.Trigger),
|
||||
ExecutionTimestamp: execution.StartTime.Unix(),
|
||||
ExecutionID: execution.ID,
|
||||
TaskID: task.ID,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
@ -36,6 +36,8 @@ type Replication struct {
|
|||
DestResource *ReplicationResource `json:"dest_resource,omitempty"`
|
||||
SuccessfulArtifact []*ArtifactInfo `json:"successful_artifact,omitempty"`
|
||||
FailedArtifact []*ArtifactInfo `json:"failed_artifact,omitempty"`
|
||||
ExecutionID int64 `json:"execution_id,omitempty"`
|
||||
TaskID int64 `json:"task_id,omitempty"`
|
||||
}
|
||||
|
||||
// ArtifactInfo describe info of artifact
|
||||
|
|
Loading…
Reference in New Issue
Block a user