{
  "crawlerFilters": {},
  "additionalFields": {
    "project": {
      "title": {
        "displayName": "Project"
      },
      "type": "stringNotAnalyzed"
    },
    "repo": {
      "title": {
        "displayName": "Repository"
      },
      "type": "stringNotAnalyzed"
    }
  },
  "externalUrls": {
    "COMMIT": {
      "url": "${dataSource.baseUiUrl}/projects/${entity.urlParts.project}/repos/${entity.urlParts.repo}/commits/${entity.urlParts.sha}"
    },
    "LABEL": {
      "url": "${dataSource.baseUiUrl}/projects/${entity.urlParts.project}/repos/${entity.urlParts.repo}/browse?at=${entity.urlParts.title}"
    },
    "PULL_REQUEST": {
      "url": "${dataSource.baseUiUrl}/projects/${entity.urlParts.project}/repos/${entity.urlParts.repo}/pull-requests/${entity.urlParts.id}/overview"
    }
  },
  "entityNames": {
    "COMMIT": {
      "displayName": "Bitbucket Server Commit"
    },
    "LABEL": {
      "displayName": "Bitbucket Server Release"
    },
    "PULL_REQUEST": {
      "displayName": "Bitbucket Server Pull Request"
    }
  },
  "relations": {
    "parent": {
      "type": "precise",
      "requireSameDataSource": true,
      "requireSamePluginId": false,
      "requireSameType": false,
      "requireSameDomain": false,
      "requiredTimeRange": null,
      "from": {
        "requireMe": true,
        "types": [
          "COMMIT"
        ],
        "pluginIds": null
      },
      "to": {
        "requireMe": true,
        "types": [
          "COMMIT"
        ],
        "pluginIds": null
      },
      "relationType": "parentCommit",
      "fromField": "other.relations.parents",
      "toField": "id"
    },
    "taggedCommitReference": {
      "type": "precise",
      "requireSameDataSource": true,
      "requireSamePluginId": false,
      "requireSameType": false,
      "requireSameDomain": false,
      "requiredTimeRange": null,
      "from": {
        "requireMe": true,
        "types": [
          "LABEL"
        ],
        "pluginIds": null
      },
      "to": {
        "requireMe": true,
        "types": [
          "COMMIT"
        ],
        "pluginIds": null
      },
      "relationType": "commitReference",
      "fromField": "other.relations.commit.to",
      "toField": "id"
    },
    "mergeCommitReference": {
      "type": "via",
      "requireSameDataSource": true,
      "requireSamePluginId": false,
      "requireSameType": false,
      "requireSameDomain": false,
      "requiredTimeRange": null,
      "from": {
        "requireMe": true,
        "types": [
          "COMMIT"
        ],
        "pluginIds": null
      },
      "to": {
        "requireMe": true,
        "types": [
          "COMMIT"
        ],
        "pluginIds": null
      },
      "relationType": "parentCommit",
      "fromField": "id",
      "toField": "id",
      "via": {
        "requireMe": true,
        "types": [
          "PULL_REQUEST"
        ],
        "pluginIds": null
      },
      "viaFieldToMatchFrom": "other.relations.mergeCommitId",
      "viaFieldToMatchTo": "other.relations.lastCommitId"
    },
    "commitReference": {
      "type": "pattern",
      "requireSameDataSource": false,
      "requireSamePluginId": false,
      "requireSameType": false,
      "requireSameDomain": false,
      "requiredTimeRange": null,
      "from": {
        "requireMe": false,
        "types": [
          "BUILD"
        ],
        "pluginIds": null
      },
      "to": {
        "requireMe": true,
        "types": [
          "COMMIT"
        ],
        "pluginIds": null
      },
      "relationType": "commitReference",
      "regexp": "(^|[^0-9a-f])([0-9a-f]{40})($|[^0-9a-f])",
      "windowSize": 42,
      "beforeGroup": 1,
      "afterGroup": -1,
      "meaningfulGroup": 2,
      "regexpIsOn": "FROM",
      "patternFields": [
        "*"
      ],
      "preciseField": "other.relations.sha"
    }
  },
  "plugin": {
    "id": "BitbucketServerPlugin",
    "name": "Bitbucket Server",
    "version": "1"
  },
  "manifestVersion": 1,
  "validDataTypes": [
    "COMMIT",
    "PULL_REQUEST",
    "LABEL"
  ]
}