Skip to content

Commit 859acdc

Browse files
Document how to inspect rollout (#69)
* Document how to inspect rollout * Add URLs of instances * Update README.md Co-authored-by: bsieber-mozilla <[email protected]> * Mention infos on root URL Co-authored-by: bsieber-mozilla <[email protected]>
1 parent 49e28ce commit 859acdc

File tree

1 file changed

+65
-1
lines changed

1 file changed

+65
-1
lines changed

README.md

Lines changed: 65 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ A bit more about the different fields...
4949
- The [default action](src/jbi/whiteboard_actions/default.py) expects both the `whiteboard_tag` and `jira_project_key` fields
5050

5151

52-
5352
[View 'nonprod' configurations here.](config/config.nonprod.yaml)
5453

5554
[View 'prod' configurations here.](config/config.prod.yaml)
@@ -75,3 +74,68 @@ graph TD
7574
F["config.{ENV}.yaml"] ---| read actions config| D
7675
end
7776
```
77+
78+
79+
## Deployment
80+
81+
Software and configuration are deployed automatically:
82+
83+
- on NONPROD when a pull-request is merged
84+
- on PROD when a tag is pushed
85+
86+
| Env | Base URL |
87+
|---------|------------------------------------------------|
88+
| Nonprod | https://stage.jbi.nonprod.cloudops.mozgcp.net/ |
89+
| Prod | https://jbi.services.mozilla.com/ |
90+
91+
In order to view the configured Jira and Bugzilla, check the root URL:
92+
93+
```
94+
GET /
95+
96+
{
97+
"configuration": {
98+
"bugzilla_base_url": "https://bugzilla-dev.allizom.org",
99+
"jira_base_url": "https://mozit-test.atlassian.net/"
100+
},
101+
"description": "JBI v2 Platform",
102+
"documentation": "/docs",
103+
"title": "Jira Bugzilla Integration (JBI)",
104+
"version": "2.0.1"
105+
}
106+
```
107+
108+
In order to verify that a certain commit was deployed, check that the Github Actions executed successfully on the commit, and use the *Version* endpoint:
109+
110+
```
111+
GET /__version__
112+
113+
{
114+
"commit": "1ea792a733d704e0094fe6065ee64b2a3435f280",
115+
"version": "refs/tags/v2.0.1",
116+
"image_tag": "v2.0.1",
117+
"source": "https://github.com/mozilla/jira-bugzilla-integration",
118+
"build": "https://github.com/mozilla/jira-bugzilla-integration/actions/runs/2315380477"
119+
}
120+
```
121+
122+
In order to verify that a certain action is configured correctly and enabled, use the *Powered By JBI* endpoint: [https://${SERVER}/powered_by_jbi](https://jbi.services.mozilla.com/powered_by_jbi)
123+
124+
For the list of configured whiteboard tags:
125+
126+
```
127+
GET /whiteboard_tags/
128+
{
129+
"addons": {
130+
"action": "src.jbi.whiteboard_actions.default",
131+
"contact": "tbd",
132+
"description": "Addons whiteboard tag for AMO Team",
133+
"enabled": true,
134+
"parameters": {
135+
"jira_project_key": "WEBEXT",
136+
"whiteboard_tag": "addons"
137+
}
138+
},
139+
...
140+
}
141+
```

0 commit comments

Comments
 (0)