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
<p>There are some credentials needed to interact with the release
483
-
process:</p>
484
-
<ulclass="simple">
485
-
<li><p>Release token: magic sequence of characters needed while running <codeclass="docutils literal notranslate"><spanclass="pre">release.py</span></code>
486
-
to interact with <codeclass="docutils literal notranslate"><spanclass="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
+
<olclass="arabic">
485
+
<li><p>Creating a Jenkins API token: opening <aclass="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 <codeclass="docutils literal notranslate"><spanclass="pre">~/.buildfarm/jenkins.ini</span></code> in the form:</p>
upload some Git tags (“release tags”) to the source code repository.</p>
617
626
<p>You will also need the token described in the <aclass="reference internal" href="#access-and-credentials">credentials
618
627
section</a>.</p>
628
+
<p>There are a few external dependencies for running <aclass="reference external" href="http://release.py">release.py</a>. They can be
629
+
esily installed using virtual enviroments and pip:</p>
630
+
<divclass="highlight-default notranslate"><divclass="highlight"><pre><span></span><spanclass="c1"># you can change .releasepy_venv by any directory of your preference</span>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">release.py</span></code> tool supports a <codeclass="docutils literal notranslate"><spanclass="pre">--dry-run</span></code> flag that allows users to
621
639
simulate releases (nothing is modified) in order to ensure that the correct
<divclass="highlight-bash notranslate"><divclass="highlight"><pre><span></span><spanclass="c1"># Example of dry-run for gz-cmake3 bumped to 3.0.1</span>
<p><strong><aclass="reference external" href="http://release.py">release.py</a> for prereleases or nightlies</strong></p>
645
662
<p>When releasing prereleases or nightly releases, there are some special flags
646
663
to be set. The <codeclass="docutils literal notranslate"><spanclass="pre">--upload-to-repo</span></code> argument is mandatory when running
647
664
<codeclass="docutils literal notranslate"><spanclass="pre">release.py</span></code>, and should be set to <codeclass="docutils literal notranslate"><spanclass="pre">prerelease</span></code> or <codeclass="docutils literal notranslate"><spanclass="pre">nightly</span></code>.</p>
648
-
<divclass="highlight-bash notranslate"><divclass="highlight"><pre><span></span><spanclass="c1"># Example gz-cmake3 bumped to prerelease 3.0.0~pre1 with jenkins_token credential</span>
665
+
<divclass="highlight-bash notranslate"><divclass="highlight"><pre><span></span><spanclass="c1"># Example gz-cmake3 bumped to prerelease 3.0.0~pre1</span>
<p>Nightly invocation is generally coded in the server. The version will be
656
672
taken from the last changelog entry and modified during building. No source
657
673
code will be uploaded, but taken directly in the binary build from the
658
674
branch pointed by <codeclass="docutils literal notranslate"><spanclass="pre">--nightly-src-branch</span></code>.</p>
659
-
<divclass="highlight-bash notranslate"><divclass="highlight"><pre><span></span><spanclass="c1"># Example gz-cmake3 nightly from main branch with jenkins_token credential</span>
660
-
<spanclass="c1"># please replace <jenkins_token> with real release token (check crendentials section)</span>
of the software version. All the tarballs can be found at <aclass="reference external" href="https://classic.gazebosim.org/distributions">https://classic.gazebosim.org/distributions</a>
674
689
or the information should appear in the parameters of the Jenkins -debbuilder build that created
675
690
the first version of the sofware.</p>
676
-
<divclass="highlight-bash notranslate"><divclass="highlight"><pre><span></span><spanclass="c1"># Example gz-cmake3 bumped from 3.0.1-1 to 3.0.1-2 with jenkins_token credential</span>
677
-
<spanclass="c1"># please replace <jenkins_token> with real release token (check crendentials section)</span>
<divclass="highlight-bash notranslate"><divclass="highlight"><pre><span></span><spanclass="c1"># Example gz-cmake3 bumped from 3.0.1-1 to 3.0.1-2</span>
0 commit comments