<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:09:55 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>OpenDaylight JIRA</title>
    <link>https://jira.opendaylight.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>8.20.10</version>
        <build-number>820010</build-number>
        <build-date>22-06-2022</build-date>
    </build-info>


<item>
            <title>[MDSAL-489] Pull version for docs from git tag</title>
                <link>https://jira.opendaylight.org/browse/MDSAL-489</link>
                <project id="10137" key="MDSAL">mdsal</project>
                    <description>&lt;p&gt;Rather than waste time remembering to bump versions for docs in the docs directory. We should pull that information automatically from git tags. This has been done before in LF tooling projects so we can port that into MD-SAL.&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-bash&quot;&gt;
&lt;span class=&quot;code-comment&quot;&gt;# The version info &lt;span class=&quot;code-object&quot;&gt;for&lt;/span&gt; the project you&apos;re documenting, acts as replacement &lt;span class=&quot;code-object&quot;&gt;for&lt;/span&gt;
&lt;/span&gt;&lt;span class=&quot;code-comment&quot;&gt;# |version| and |release|, also used &lt;span class=&quot;code-object&quot;&gt;in&lt;/span&gt; various other places throughout the
&lt;/span&gt;&lt;span class=&quot;code-comment&quot;&gt;# built documents.
&lt;/span&gt;&lt;span class=&quot;code-comment&quot;&gt;#
&lt;/span&gt;&lt;span class=&quot;code-comment&quot;&gt;# The short X.Y version.
&lt;/span&gt;command = &lt;span class=&quot;code-quote-red&quot;&gt;&apos;git describe --tags --long --dirty&apos;&lt;/span&gt;
try:
    git_version = format_version(
        subprocess.check_output(command.split()).decode(&lt;span class=&quot;code-quote-red&quot;&gt;&apos;utf-8&apos;&lt;/span&gt;).strip())
except subprocess.CalledProcessError:  &lt;span class=&quot;code-comment&quot;&gt;# Handle docs builds from tarball
&lt;/span&gt;    git_version = &lt;span class=&quot;code-quote-red&quot;&gt;&quot;v0.0.9999-&lt;span class=&quot;code-object&quot;&gt;local&lt;/span&gt;&quot;&lt;/span&gt;
version = git_version
&lt;span class=&quot;code-comment&quot;&gt;# The full version, including alpha/beta/rc tags.
&lt;/span&gt;release = version
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Source: &lt;a href=&quot;https://github.com/lfit/releng-global-jjb/blob/master/docs/conf.py#L80-L93&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/lfit/releng-global-jjb/blob/master/docs/conf.py#L80-L93&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="32162">MDSAL-489</key>
            <summary>Pull version for docs from git tag</summary>
                <type id="10001" iconUrl="https://jira.opendaylight.org/images/icons/issuetypes/story.svg">Story</type>
                                            <priority id="3" iconUrl="https://jira.opendaylight.org/images/icons/priorities/major.svg">Medium</priority>
                        <status id="5" iconUrl="https://jira.opendaylight.org/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10000">Done</resolution>
                                        <assignee username="zxiiro">Thanh Ha (zxiiro)</assignee>
                                    <reporter username="zxiiro">Thanh Ha (zxiiro)</reporter>
                        <labels>
                    </labels>
                <created>Mon, 4 Nov 2019 14:06:42 +0000</created>
                <updated>Tue, 12 Nov 2019 16:53:41 +0000</updated>
                            <resolved>Tue, 12 Nov 2019 16:53:41 +0000</resolved>
                                                    <fixVersion>4.0.8</fixVersion>
                    <fixVersion>3.0.13</fixVersion>
                    <fixVersion>5.0.5</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="67348" author="zxiiro" created="Mon, 4 Nov 2019 15:56:26 +0000"  >&lt;p&gt;Looks like using `git describe` does not work for us because our tags are not reachable from the master branch due to them being on forked branches. Unfortunately this prevents us from using the same solution as LF uses in global-jjb &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.opendaylight.org/images/icons/emoticons/sad.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;

&lt;p&gt;Moving this back to backlog as it&apos;s a good idea but we&apos;d need to find an alternative way to do it. In the meantime I&apos;ll push patches to bump maintainenace branch versions at least.&lt;/p&gt;</comment>
                            <comment id="67350" author="zxiiro" created="Mon, 4 Nov 2019 16:12:54 +0000"  >&lt;p&gt;Decided to try parsing the version from pom.xml and it seems to work with this code.&lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;import xml.etree.ElementTree as ET
data = ET.parse(&apos;pom.xml&apos;)
mdsal_version = data.getroot().find(&apos;*//{http://maven.apache.org/POM/4.0.0}version&apos;).text
version = mdsal_version
release = mdsal_version
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                                                <inwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="30874">DOCS-113</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                            <customfield id="customfield_11400" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i03ptb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>