Domain: Artifact

JFrog Platform Administration Documentation

Content Type
Administration / Platform
ft:sourceType
Paligo

Includes events that are triggered when certain artifact events occur in Artifactory:

Event: deployed

The Webhook is triggered when an artifact is deployed to a repository. You can select the repositories and repository paths on which the Webhook will be applied.

Artifact was Deployed

{
  "domain": "artifact",
  "event_type": "deployed",
  "data": {
    "repo_key": "sample_repo",
    "path": "sample_dir/sample.txt",
    "name": "sample.txt",
    "sha256": "sample_checksum",
    "size": 0
  },
  "subscription_key": "test",
  "jpd_origin": "https://<your_origin>",
  "source": "jfrog/<your_source>"
}

Event: deleted

The Webhook is triggered when an artifact is deleted from a repository. You can select the repositories on which the Webhook will be applied.

Artifact was Deleted

{
  "domain": "artifact",
  "event_type": "deleted",
  "data": {
    "repo_key": "sample_repo",
    "path": "sample_dir/sample.txt",
    "name": "sample.txt",
    "sha256": "sample_checksum",
    "size": 0
  },
  "subscription_key": "test",
  "jpd_origin": "https://<your_origin>",
  "source": "jfrog/<your_source"
}

Event: moved

The Webhook is triggered when an artifact is moved from one repository to another. You can select the repositories and repository paths on which the Webhook will be applied. The Webhook will apply to the repositories from which the artifact is moved.

Artifact was Moved

{
  "domain": "artifact",
  "event_type": "moved",
  "data": {
    "repo_key": "sample_repo",
    "path": "sample_dir/sample.txt",
    "name": "sample.txt",
    "sha256": "sample_checksum",
    "size": 0,
    "source_repo_path": "sample_repo",
    "target_repo_path": "sample_target_repo"
  },
  "subscription_key": "test",
  "jpd_origin": "https://<your_origin>",
  "source": "jfrog/<your_source>"
}

Event: copied

The Webhook is triggered when an artifact is copied from one repository to another. You can select the repositories and repository paths on which the Webhook will be applied. The Webhook will apply to the repositories from which the artifact is copied.

Artifact was Copied

{
  "domain": "artifact",
  "event_type": "copied",
  "data": {
    "repo_key": "sample_repo",
    "path": "sample_dir/sample.txt",
    "name": "sample.txt",
    "sha256": "sample_checksum",
    "size": 0,
    "source_repo_path": "sample_repo",
    "target_repo_path": "sample_target_repo"
  },
  "subscription_key": "test",
  "jpd_origin": "https://<your_origin>",
  "source": "jfrog/<your_source>"
}

Event: cached

The Webhook is triggered for each artifact that is pulled from a new remote repository with cache enabled. Webhooks are generated when downloading remote artifacts, for example: npm install busybox. This event can also be triggered when a pull replication is configured.

Artifact was Cached

{
  "domain": "artifact",
  "event_type": "cached",
  "data": {
    "repo_key": "sample_repo",
    "path": "sample_dir/sample.txt",
    "name": "sample.txt",
    "sha256": "sample_checksum",
    "size": 0
  },
  "subscription_key": "test",
  "jpd_origin": "https://<your_origin>",
  "source": "jfrog/<your_source>"
}