report_deployment
Say that something was deployed to one of a project's environments — the call a pipeline step makes. An environment is one of the places a project's work is put out to — 'dev', 'staging', 'prod' — in order; the LAST one is where finished work ends up. A deployment is a pipeline saying «this went out, there». Each issue it carried then says where it lies ('deployedTo' on get_issue), gets one history line per environment, and the project's rules with trigger 'deployed' run on it. Name the issues it carried in 'issues', or give 'from' and 'to' — two revisions — and the keys are read off the messages of the commits between them in the project's connected repository (a merge commit names its branch and merge request). Both may be given. The same 'id' for the same environment again changes nothing and answers 'repeated': true, so a step that runs twice is safe. 'version' also puts each of those issues in that version of the project. Answers with the issues it found, 'unknown' (keys you named that are no issue of this project), how many times a rule ran, and — on the project's last environment — 'unfinished': the issues that went out while not in a finished state. Needs permission to change issues in the project.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Your own identifier for this deployment — a pipeline or job id. Left out, 'revision' stands in for it. | |
| to | No | The end of that range. Left out, 'revision'. | |
| url | No | A link to the pipeline, http or https. | |
| from | No | The revision the previous deployment to this environment was at — the start of the range of commits to read keys from. | |
| issues | No | The issue keys it carried, comma-separated: 'ONB-12,ONB-15'. | |
| version | No | A version of the project to put these issues in, by name, e.g. '2.4.0'. | |
| fromLast | No | True to start the range at the revision the last deployment to this environment was reported at, instead of naming 'from'. The first report to an environment then reads no range. | |
| revision | No | What went out: a commit, a tag, an image tag. | |
| projectKey | Yes | Project key, e.g. 'ONB'. | |
| repository | No | Which connected repository the range is in, as 'group/repo', when the project has several. | |
| environment | Yes | The environment's name, e.g. 'staging' — one of list_environments. |