Skip to content

Commit 5299f86

Browse files
committed
deploy: d2d9898
1 parent 70e4ee8 commit 5299f86

File tree

61 files changed

+804
-456
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+804
-456
lines changed
1 Byte
Binary file not shown.
Binary file not shown.

docs/acropolis/_sources/releases-instructions.md.txt

Lines changed: 33 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,20 @@ Before starting the release process, make sure to ask for write access to:
3535
1. The Gz library intended to be released and
3636
2. `gazebo-release` repository.
3737

38-
There are some credentials needed to interact with the release
39-
process:
38+
To interact with Jenkins an API token needs to be created and stored in the
39+
user system:
4040

41-
* Release token: magic sequence of characters needed while running `release.py`
42-
to interact with `build.osrfoundation.org`. This should be given to Gz developers that run releases by the Infra team.
41+
1. Creating a Jenkins API token: opening https://build.osrfoundation.org/me/configure
42+
the section of "API Token" shows the "Add new Token" button (alternatively a github
43+
token could also be used but the Jenkins API helps to restrict the global scope
44+
of the credential).
45+
46+
2. The token needs to be stored in `~/.buildfarm/jenkins.ini` in the form:
47+
```
48+
[https://build.osrfoundation.org]
49+
username = <your-github-user>
50+
password = <token created in step 1>
51+
```
4352

4453
## For Each Release
4554

@@ -172,6 +181,17 @@ upload some Git tags ("release tags") to the source code repository.
172181
You will also need the token described in the [credentials
173182
section](#2-access-and-credentials).
174183

184+
There are a few external dependencies for running release.py. They can be
185+
esily installed using virtual enviroments and pip:
186+
187+
```
188+
# you can change .releasepy_venv by any directory of your preference
189+
python3 -m venv ~/.releasepy_venv
190+
. ~/.releasepy_venv/bin/activate
191+
cd <release-tools-dir>
192+
pip install .
193+
```
194+
175195
**dry-run simulation mode**
176196

177197
The `release.py` tool supports a `--dry-run` flag that allows users to
@@ -186,7 +206,7 @@ The script needs to be run from the repository with the source code (i.e., the r
186206
# Example of dry-run for gz-cmake3 bumped to 3.0.1
187207
cd gz-cmake3
188208
git checkout gz-cmake3
189-
~/release-tools/release.py gz-cmake3 3.0.1 dry-run-fake-token --dry-run
209+
~/release-tools/release.py gz-cmake3 3.0.1 --dry-run
190210
```
191211

192212
**release.py for stable releases**
@@ -196,11 +216,10 @@ git checkout gz-cmake3
196216
cd ign/gz-fooX
197217
git checkout ign/gz-fooX
198218

199-
# Example gz-cmake3 bumped to 3.0.1 with jenkins_token credential
219+
# Example gz-cmake3 bumped to 3.0.1
200220
cd gz-cmake3
201221
git checkout gz-cmake3
202-
# please replace <jenkins_token> with real release token (check crendentials section)
203-
~/release-tools/release.py gz-cmake3 3.0.1 <jenkins_token>
222+
~/release-tools/release.py gz-cmake3 3.0.1
204223
```
205224

206225
**release.py for prereleases or nightlies**
@@ -210,11 +229,10 @@ to be set. The `--upload-to-repo` argument is mandatory when running
210229
`release.py`, and should be set to `prerelease` or `nightly`.
211230

212231
```bash
213-
# Example gz-cmake3 bumped to prerelease 3.0.0~pre1 with jenkins_token credential
232+
# Example gz-cmake3 bumped to prerelease 3.0.0~pre1
214233
cd gz-cmake3
215234
git checkout gz-cmake3
216-
# please replace <jenkins_token> with real release token (check crendentials section)
217-
~/release-tools/release.py gz-cmake3 3.0.0~pre1 <jenkins_token> --upload-to-repo prerelease
235+
~/release-tools/release.py gz-cmake3 3.0.0~pre1 --upload-to-repo prerelease
218236
```
219237

220238
Nightly invocation is generally coded in the server. The version will be
@@ -223,10 +241,8 @@ code will be uploaded, but taken directly in the binary build from the
223241
branch pointed by `--nightly-src-branch`.
224242

225243
```bash
226-
# Example gz-cmake3 nightly from main branch with jenkins_token credential
227-
# please replace <jenkins_token> with real release token (check crendentials section)
228-
~/release-tools/release.py gz-cmake3 3.0.0~pre1 <jenkins_token> --upload-to-repo nightly --nightly-src-branch main
229-
244+
# Example gz-cmake3 nightly from main branch
245+
~/release-tools/release.py gz-cmake3 3.0.0~pre1 --upload-to-repo nightly --nightly-src-branch main
230246
```
231247

232248
**Binary version schema for prereleases and nightlies**
@@ -247,9 +263,8 @@ or the information should appear in the parameters of the Jenkins -debbuilder bu
247263
the first version of the sofware.
248264

249265
```bash
250-
# Example gz-cmake3 bumped from 3.0.1-1 to 3.0.1-2 with jenkins_token credential
251-
# please replace <jenkins_token> with real release token (check crendentials section)
252-
~/release-tools/release.py gz-cmake3 3.0.1 <jenkins_token> --source-tarball-uri https://osrf-distributions.s3.amazonaws.com/gz-cmake/releases/gz-cmake-3.0.1.tar.bz2 --only-bump-revision-linux -release-version 2
266+
# Example gz-cmake3 bumped from 3.0.1-1 to 3.0.1-2
267+
~/release-tools/release.py gz-cmake3 3.0.1 --source-tarball-uri https://osrf-distributions.s3.amazonaws.com/gz-cmake/releases/gz-cmake-3.0.1.tar.bz2 --only-bump-revision-linux -release-version 2
253268
```
254269

255270
## Checking the Building Process

docs/acropolis/releases-instructions/index.html

Lines changed: 33 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -479,12 +479,21 @@ <h3>2. Access and Credentials<a class="headerlink" href="#access-and-credentials
479479
<li><p>The Gz library intended to be released and</p></li>
480480
<li><p><code class="docutils literal notranslate"><span class="pre">gazebo-release</span></code> repository.</p></li>
481481
</ol>
482-
<p>There are some credentials needed to interact with the release
483-
process:</p>
484-
<ul class="simple">
485-
<li><p>Release token: magic sequence of characters needed while running <code class="docutils literal notranslate"><span class="pre">release.py</span></code>
486-
to interact with <code class="docutils literal notranslate"><span class="pre">build.osrfoundation.org</span></code>. This should be given to Gz developers that run releases by the Infra team.</p></li>
487-
</ul>
482+
<p>To interact with Jenkins an API token needs to be created and stored in the
483+
user system:</p>
484+
<ol class="arabic">
485+
<li><p>Creating a Jenkins API token: opening <a class="reference external" href="https://build.osrfoundation.org/me/configure">https://build.osrfoundation.org/me/configure</a>
486+
the section of “API Token” shows the “Add new Token” button (alternatively a github
487+
token could also be used but the Jenkins API helps to restrict the global scope
488+
of the credential).</p></li>
489+
<li><p>The token needs to be stored in <code class="docutils literal notranslate"><span class="pre">~/.buildfarm/jenkins.ini</span></code> in the form:</p>
490+
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="p">[</span><span class="n">https</span><span class="p">:</span><span class="o">//</span><span class="n">build</span><span class="o">.</span><span class="n">osrfoundation</span><span class="o">.</span><span class="n">org</span><span class="p">]</span>
491+
<span class="n">username</span> <span class="o">=</span> <span class="o">&lt;</span><span class="n">your</span><span class="o">-</span><span class="n">github</span><span class="o">-</span><span class="n">user</span><span class="o">&gt;</span>
492+
<span class="n">password</span> <span class="o">=</span> <span class="o">&lt;</span><span class="n">token</span> <span class="n">created</span> <span class="ow">in</span> <span class="n">step</span> <span class="mi">1</span><span class="o">&gt;</span>
493+
</pre></div>
494+
</div>
495+
</li>
496+
</ol>
488497
</section>
489498
</section>
490499
<section id="for-each-release">
@@ -616,6 +625,15 @@ <h3>4. Executing <a class="reference external" href="http://release.py">release.
616625
upload some Git tags (“release tags”) to the source code repository.</p>
617626
<p>You will also need the token described in the <a class="reference internal" href="#access-and-credentials">credentials
618627
section</a>.</p>
628+
<p>There are a few external dependencies for running <a class="reference external" href="http://release.py">release.py</a>. They can be
629+
esily installed using virtual enviroments and pip:</p>
630+
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="c1"># you can change .releasepy_venv by any directory of your preference</span>
631+
<span class="n">python3</span> <span class="o">-</span><span class="n">m</span> <span class="n">venv</span> <span class="o">~/.</span><span class="n">releasepy_venv</span>
632+
<span class="o">.</span> <span class="o">~/.</span><span class="n">releasepy_venv</span><span class="o">/</span><span class="nb">bin</span><span class="o">/</span><span class="n">activate</span>
633+
<span class="n">cd</span> <span class="o">&lt;</span><span class="n">release</span><span class="o">-</span><span class="n">tools</span><span class="o">-</span><span class="nb">dir</span><span class="o">&gt;</span>
634+
<span class="n">pip</span> <span class="n">install</span> <span class="o">.</span>
635+
</pre></div>
636+
</div>
619637
<p><strong>dry-run simulation mode</strong></p>
620638
<p>The <code class="docutils literal notranslate"><span class="pre">release.py</span></code> tool supports a <code class="docutils literal notranslate"><span class="pre">--dry-run</span></code> flag that allows users to
621639
simulate releases (nothing is modified) in order to ensure that the correct
@@ -626,39 +644,36 @@ <h3>4. Executing <a class="reference external" href="http://release.py">release.
626644
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="c1"># Example of dry-run for gz-cmake3 bumped to 3.0.1</span>
627645
<span class="nb">cd</span><span class="w"> </span>gz-cmake3
628646
git<span class="w"> </span>checkout<span class="w"> </span>gz-cmake3
629-
~/release-tools/release.py<span class="w"> </span>gz-cmake3<span class="w"> </span><span class="m">3</span>.0.1<span class="w"> </span>dry-run-fake-token<span class="w"> </span>--dry-run
647+
~/release-tools/release.py<span class="w"> </span>gz-cmake3<span class="w"> </span><span class="m">3</span>.0.1<span class="w"> </span>--dry-run
630648
</pre></div>
631649
</div>
632650
<p><strong><a class="reference external" href="http://release.py">release.py</a> for stable releases</strong></p>
633651
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="c1"># Gz library named foo and major version X</span>
634652
<span class="nb">cd</span><span class="w"> </span>ign/gz-fooX
635653
git<span class="w"> </span>checkout<span class="w"> </span>ign/gz-fooX
636654

637-
<span class="c1"># Example gz-cmake3 bumped to 3.0.1 with jenkins_token credential</span>
655+
<span class="c1"># Example gz-cmake3 bumped to 3.0.1</span>
638656
<span class="nb">cd</span><span class="w"> </span>gz-cmake3
639657
git<span class="w"> </span>checkout<span class="w"> </span>gz-cmake3
640-
<span class="c1"># please replace &lt;jenkins_token&gt; with real release token (check crendentials section)</span>
641-
~/release-tools/release.py<span class="w"> </span>gz-cmake3<span class="w"> </span><span class="m">3</span>.0.1<span class="w"> </span>&lt;jenkins_token&gt;
658+
~/release-tools/release.py<span class="w"> </span>gz-cmake3<span class="w"> </span><span class="m">3</span>.0.1
642659
</pre></div>
643660
</div>
644661
<p><strong><a class="reference external" href="http://release.py">release.py</a> for prereleases or nightlies</strong></p>
645662
<p>When releasing prereleases or nightly releases, there are some special flags
646663
to be set. The <code class="docutils literal notranslate"><span class="pre">--upload-to-repo</span></code> argument is mandatory when running
647664
<code class="docutils literal notranslate"><span class="pre">release.py</span></code>, and should be set to <code class="docutils literal notranslate"><span class="pre">prerelease</span></code> or <code class="docutils literal notranslate"><span class="pre">nightly</span></code>.</p>
648-
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="c1"># Example gz-cmake3 bumped to prerelease 3.0.0~pre1 with jenkins_token credential</span>
665+
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="c1"># Example gz-cmake3 bumped to prerelease 3.0.0~pre1</span>
649666
<span class="nb">cd</span><span class="w"> </span>gz-cmake3
650667
git<span class="w"> </span>checkout<span class="w"> </span>gz-cmake3
651-
<span class="c1"># please replace &lt;jenkins_token&gt; with real release token (check crendentials section)</span>
652-
~/release-tools/release.py<span class="w"> </span>gz-cmake3<span class="w"> </span><span class="m">3</span>.0.0~pre1<span class="w"> </span>&lt;jenkins_token&gt;<span class="w"> </span>--upload-to-repo<span class="w"> </span>prerelease
668+
~/release-tools/release.py<span class="w"> </span>gz-cmake3<span class="w"> </span><span class="m">3</span>.0.0~pre1<span class="w"> </span>--upload-to-repo<span class="w"> </span>prerelease
653669
</pre></div>
654670
</div>
655671
<p>Nightly invocation is generally coded in the server. The version will be
656672
taken from the last changelog entry and modified during building. No source
657673
code will be uploaded, but taken directly in the binary build from the
658674
branch pointed by <code class="docutils literal notranslate"><span class="pre">--nightly-src-branch</span></code>.</p>
659-
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="c1"># Example gz-cmake3 nightly from main branch with jenkins_token credential</span>
660-
<span class="c1"># please replace &lt;jenkins_token&gt; with real release token (check crendentials section)</span>
661-
~/release-tools/release.py<span class="w"> </span>gz-cmake3<span class="w"> </span><span class="m">3</span>.0.0~pre1<span class="w"> </span>&lt;jenkins_token&gt;<span class="w"> </span>--upload-to-repo<span class="w"> </span>nightly<span class="w"> </span>--nightly-src-branch<span class="w"> </span>main
675+
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="c1"># Example gz-cmake3 nightly from main branch</span>
676+
~/release-tools/release.py<span class="w"> </span>gz-cmake3<span class="w"> </span><span class="m">3</span>.0.0~pre1<span class="w"> </span>--upload-to-repo<span class="w"> </span>nightly<span class="w"> </span>--nightly-src-branch<span class="w"> </span>main
662677
</pre></div>
663678
</div>
664679
<p><strong>Binary version schema for prereleases and nightlies</strong></p>
@@ -673,9 +688,8 @@ <h3>4. Executing <a class="reference external" href="http://release.py">release.
673688
of the software version. All the tarballs can be found at <a class="reference external" href="https://classic.gazebosim.org/distributions">https://classic.gazebosim.org/distributions</a>
674689
or the information should appear in the parameters of the Jenkins -debbuilder build that created
675690
the first version of the sofware.</p>
676-
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="c1"># Example gz-cmake3 bumped from 3.0.1-1 to 3.0.1-2 with jenkins_token credential</span>
677-
<span class="c1"># please replace &lt;jenkins_token&gt; with real release token (check crendentials section)</span>
678-
~/release-tools/release.py<span class="w"> </span>gz-cmake3<span class="w"> </span><span class="m">3</span>.0.1<span class="w"> </span>&lt;jenkins_token&gt;<span class="w"> </span>--source-tarball-uri<span class="w"> </span>https://osrf-distributions.s3.amazonaws.com/gz-cmake/releases/gz-cmake-3.0.1.tar.bz2<span class="w"> </span>--only-bump-revision-linux<span class="w"> </span>-release-version<span class="w"> </span><span class="m">2</span>
691+
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="c1"># Example gz-cmake3 bumped from 3.0.1-1 to 3.0.1-2</span>
692+
~/release-tools/release.py<span class="w"> </span>gz-cmake3<span class="w"> </span><span class="m">3</span>.0.1<span class="w"> </span>--source-tarball-uri<span class="w"> </span>https://osrf-distributions.s3.amazonaws.com/gz-cmake/releases/gz-cmake-3.0.1.tar.bz2<span class="w"> </span>--only-bump-revision-linux<span class="w"> </span>-release-version<span class="w"> </span><span class="m">2</span>
679693
</pre></div>
680694
</div>
681695
</section>

docs/acropolis/searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/all/.doctrees/environment.pickle

1 Byte
Binary file not shown.
993 Bytes
Binary file not shown.

docs/all/_sources/releases-instructions.md.txt

Lines changed: 33 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,20 @@ Before starting the release process, make sure to ask for write access to:
3535
1. The Gz library intended to be released and
3636
2. `gazebo-release` repository.
3737

38-
There are some credentials needed to interact with the release
39-
process:
38+
To interact with Jenkins an API token needs to be created and stored in the
39+
user system:
4040

41-
* Release token: magic sequence of characters needed while running `release.py`
42-
to interact with `build.osrfoundation.org`. This should be given to Gz developers that run releases by the Infra team.
41+
1. Creating a Jenkins API token: opening https://build.osrfoundation.org/me/configure
42+
the section of "API Token" shows the "Add new Token" button (alternatively a github
43+
token could also be used but the Jenkins API helps to restrict the global scope
44+
of the credential).
45+
46+
2. The token needs to be stored in `~/.buildfarm/jenkins.ini` in the form:
47+
```
48+
[https://build.osrfoundation.org]
49+
username = <your-github-user>
50+
password = <token created in step 1>
51+
```
4352

4453
## For Each Release
4554

@@ -172,6 +181,17 @@ upload some Git tags ("release tags") to the source code repository.
172181
You will also need the token described in the [credentials
173182
section](#2-access-and-credentials).
174183

184+
There are a few external dependencies for running release.py. They can be
185+
esily installed using virtual enviroments and pip:
186+
187+
```
188+
# you can change .releasepy_venv by any directory of your preference
189+
python3 -m venv ~/.releasepy_venv
190+
. ~/.releasepy_venv/bin/activate
191+
cd <release-tools-dir>
192+
pip install .
193+
```
194+
175195
**dry-run simulation mode**
176196

177197
The `release.py` tool supports a `--dry-run` flag that allows users to
@@ -186,7 +206,7 @@ The script needs to be run from the repository with the source code (i.e., the r
186206
# Example of dry-run for gz-cmake3 bumped to 3.0.1
187207
cd gz-cmake3
188208
git checkout gz-cmake3
189-
~/release-tools/release.py gz-cmake3 3.0.1 dry-run-fake-token --dry-run
209+
~/release-tools/release.py gz-cmake3 3.0.1 --dry-run
190210
```
191211

192212
**release.py for stable releases**
@@ -196,11 +216,10 @@ git checkout gz-cmake3
196216
cd ign/gz-fooX
197217
git checkout ign/gz-fooX
198218

199-
# Example gz-cmake3 bumped to 3.0.1 with jenkins_token credential
219+
# Example gz-cmake3 bumped to 3.0.1
200220
cd gz-cmake3
201221
git checkout gz-cmake3
202-
# please replace <jenkins_token> with real release token (check crendentials section)
203-
~/release-tools/release.py gz-cmake3 3.0.1 <jenkins_token>
222+
~/release-tools/release.py gz-cmake3 3.0.1
204223
```
205224

206225
**release.py for prereleases or nightlies**
@@ -210,11 +229,10 @@ to be set. The `--upload-to-repo` argument is mandatory when running
210229
`release.py`, and should be set to `prerelease` or `nightly`.
211230

212231
```bash
213-
# Example gz-cmake3 bumped to prerelease 3.0.0~pre1 with jenkins_token credential
232+
# Example gz-cmake3 bumped to prerelease 3.0.0~pre1
214233
cd gz-cmake3
215234
git checkout gz-cmake3
216-
# please replace <jenkins_token> with real release token (check crendentials section)
217-
~/release-tools/release.py gz-cmake3 3.0.0~pre1 <jenkins_token> --upload-to-repo prerelease
235+
~/release-tools/release.py gz-cmake3 3.0.0~pre1 --upload-to-repo prerelease
218236
```
219237

220238
Nightly invocation is generally coded in the server. The version will be
@@ -223,10 +241,8 @@ code will be uploaded, but taken directly in the binary build from the
223241
branch pointed by `--nightly-src-branch`.
224242

225243
```bash
226-
# Example gz-cmake3 nightly from main branch with jenkins_token credential
227-
# please replace <jenkins_token> with real release token (check crendentials section)
228-
~/release-tools/release.py gz-cmake3 3.0.0~pre1 <jenkins_token> --upload-to-repo nightly --nightly-src-branch main
229-
244+
# Example gz-cmake3 nightly from main branch
245+
~/release-tools/release.py gz-cmake3 3.0.0~pre1 --upload-to-repo nightly --nightly-src-branch main
230246
```
231247

232248
**Binary version schema for prereleases and nightlies**
@@ -247,9 +263,8 @@ or the information should appear in the parameters of the Jenkins -debbuilder bu
247263
the first version of the sofware.
248264

249265
```bash
250-
# Example gz-cmake3 bumped from 3.0.1-1 to 3.0.1-2 with jenkins_token credential
251-
# please replace <jenkins_token> with real release token (check crendentials section)
252-
~/release-tools/release.py gz-cmake3 3.0.1 <jenkins_token> --source-tarball-uri https://osrf-distributions.s3.amazonaws.com/gz-cmake/releases/gz-cmake-3.0.1.tar.bz2 --only-bump-revision-linux -release-version 2
266+
# Example gz-cmake3 bumped from 3.0.1-1 to 3.0.1-2
267+
~/release-tools/release.py gz-cmake3 3.0.1 --source-tarball-uri https://osrf-distributions.s3.amazonaws.com/gz-cmake/releases/gz-cmake-3.0.1.tar.bz2 --only-bump-revision-linux -release-version 2
253268
```
254269

255270
## Checking the Building Process

0 commit comments

Comments
 (0)