You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-16Lines changed: 18 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,9 +5,9 @@ to our build system managed by Jenkins as it helps pull the right branches from
5
5
6
6
# Installation of dependencies
7
7
8
-
If you build with Python's script then you need to install the dependencies:
8
+
If you intend to build PMM with 'ci.py' Python script, then you need to install the dependencies:
9
9
10
-
```
10
+
```shell
11
11
pip install -r requirements.txt
12
12
```
13
13
@@ -18,29 +18,29 @@ To create a feature build (FB) you have to edit `ci.yml` and specify the branche
18
18
```yaml
19
19
deps:
20
20
- name: pmm
21
-
branch: PMM-0000-fix-everything
21
+
branch: PMM-0000-feature-branch
22
22
- name: pmm-qa
23
-
branch: PMM-0000-fix-everything-and-even-more
23
+
branch: PMM-0000-bugfix-branch
24
24
```
25
25
26
-
To build from a fork, you need to specify `url` for the dependency, for example:
26
+
To build from a fork, you need to additionally specify `url` for the dependency, for example:
27
27
28
28
```yaml
29
29
deps:
30
30
- name: pmm-server
31
31
url: https://github.com/<your-account>/pmm-server
32
-
branch: PMM-0000-fix-everything
32
+
branch: PMM-0000-feature-branch
33
33
```
34
34
35
-
Next, you will commit changes to git and push them to the repo:
35
+
Next, commit your changes to git and push them to the repo:
36
36
37
-
```
37
+
```shell
38
38
git add ci.yml
39
39
git commit -m 'use custom branches'
40
40
git push
41
41
```
42
42
43
-
Whenever you commit and push to a feature branch, a Jenkins job will be triggered and it will start building your feature. You can follow its progress right from the PR's actions (at the bottom of each PR).
43
+
Whenever you commit and push to a feature branch, a Jenkins job will be triggered, which will start building your feature. You can follow its progress by following a github workflow link displayed at the bottom of each PR.
44
44
45
45
## Using a Personal Access Token (PAT)
46
46
@@ -54,21 +54,23 @@ The token requires the following permissions:
54
54
55
55
It is recommended to set an expiration date for your token.
56
56
57
-
if you use zsh:
57
+
To make the Github token available to `ci.py`, add the following lines to your shell script:
NOTE: Please make sure you don't commit your PAT to github. Should the PAT accidentally leak out, please revoke it asap and re-create it.
73
+
NOTE: Please make sure you DO NOT commit your PAT to github. Should the PAT accidentally leak out, please revoke it asap and re-create it.
72
74
73
75
## FAQ
74
76
@@ -77,15 +79,15 @@ NOTE: Please make sure you don't commit your PAT to github. Should the PAT accid
77
79
If you use the same branch name in all repos then you can run:
78
80
79
81
```console
80
-
make prepare <you branchname>
82
+
make prepare <your-branch-name>
81
83
```
82
84
83
-
Branches with "you branchname" will be used for all repos or the default branch (usually called `main`) if the branch with this name isn't found in the repo.
85
+
Branch "your-branch-name" will be used for every submodule repo. If not found, the repo's default branch (usually `main`) will be used.
84
86
85
-
If you want to create a FB from a fork, you can pass an environment variable "FORK_OWNER" which should be equal to your username in github and run:
87
+
If you want to create a FB from a fork, you can pass an environment variable "FORK_OWNER", which should be set to your github username:
86
88
87
89
```console
88
-
FORK_OWNER=<your username> make prepare <you branchname>
90
+
FORK_OWNER=<your username> make prepare <your-branch-name>
89
91
```
90
92
91
93
### I got an error "...branch has no upstream branch"
0 commit comments