Domain: Build

JFrog Platform Administration Documentation

Content Type
Administration / Platform

Includes events that are triggered when certain build-related events occur in Artifactory.

Event: uploaded

The Webhook is triggered when a new build is uploaded. You can select the build names or build patterns on which the Webhook will be applied.

Build was Uploaded

{
  "domain": "build",
  "event_type": "uploaded",
  "data": {
    "build_name": "sample_build_name",
    "build_number": "1",
    "build_started": "1970-01-01T00:00:00.000+0000",
    "build_repo": "artifactory-build-info"
  },
  "subscription_key": "test",
  "jpd_origin": "https://<your_origin>",
  "source": "jfrog/<your_source>"
}

Event: deleted

The Webhook is triggered when a build is deleted. You can select the build names or build patterns on which the Webhook will be applied.

Build was Deleted

{
  "domain": "build",
  "event_type": "deleted",
  "data": {
    "build_name": "sample_build_name",
    "build_number": "1",
    "build_started": "1970-01-01T00:00:00.000+0000",
    "build_repo": "artifactory-build-info"
  },
  "subscription_key": "test",
  "jpd_origin": "https://<your_origin>",
  "source": "jfrog/<your_source>"
}

Event: promoted

The Webhook is triggered when a build is promoted. You can select the build names or build patterns on which the Webhook will be applied.

Build was Promoted

{
  "domain": "build",
  "event_type": "promoted",
  "data": {
    "build_name": "sample_build_name",
    "build_number": "1",
    "build_started": "1970-01-01T00:00:00.000+0000",
    "build_repo": "artifactory-build-info"
  },
  "subscription_key": "test",
  "jpd_origin": "https://<your_origin>",
  "source": "jfrog/<your_source>"
}

Important

Artifactory 7.122.2 and later support the creation of webhooks for builds within a specific project. The following guidelines apply:

  • When you create a build webhook under the global scope (All Projects), you will receive notifications for all builds in the system that match the specified name/pattern. For example, if you define a build name that exists at both the global scope and within a particular project, you will receive notifications for both builds. If you select the Any Build option when in All Projects, you will receive notifications for every build in the system.

  • When you create a build webhook from within a specific project, you will receive notifications for builds within that project only that match the specified name/pattern.