<!-- 
RSS generated by JIRA (1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d) at Thu Feb 08 23:09:01 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 add field=key&field=summary to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>FOLIO Jira</title>
    <link>https://folio-org.atlassian.net</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>1001.0.0-SNAPSHOT</version>
        <build-number>100246</build-number>
        <build-date>07-02-2024</build-date>
    </build-info>

<item>
            <title>[FOLIO-882] How does protected master branch impact Maven releases on Github</title>
                <link>https://folio-org.atlassian.net/browse/FOLIO-882</link>
                <project id="10290" key="FOLIO">FOLIO</project>
                    <description>&lt;p&gt;Since it is no longer possible to commit directly to master,  the release procedure may need to be slightly changed.   Explore potential pitfalls/changes in this issue.  &lt;/p&gt;</description>
                <environment></environment>
        <key id="80514">FOLIO-882</key>
            <summary>How does protected master branch impact Maven releases on Github</summary>
                <type id="10003" iconUrl="https://folio-org.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10318?size=medium">Task</type>
                                            <priority id="10002" iconUrl="https://dev.folio.org/assets/jira-priority/jira-p3.svg">P3</priority>
                        <status id="6" iconUrl="https://folio-org.atlassian.net/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10003">Done</resolution>
                                                        <assignee accountid="5f9abc1eb45b2e007453f423">John Malconian</assignee>
                                                                <reporter accountid="5f9abc1eb45b2e007453f423">John Malconian</reporter>
                                    <labels>
                    </labels>
                <created>Thu, 5 Oct 2017 15:33:32 +0000</created>
                <updated>Mon, 12 Nov 2018 14:23:48 +0000</updated>
                            <resolved>Thu, 26 Oct 2017 13:57:48 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>9</watches>
                                                    <timespent seconds="8100">2 hours, 15 minutes</timespent>
                                <comments>
                                                            <comment id="190451" author="5f9abc1eb45b2e007453f423" created="Thu, 5 Oct 2017 15:55:37 +0000"  >&lt;p&gt;I forked a copy of mod-inventory-storage to do some release testing on a protected master branch.     Steps are documented below.&lt;/p&gt;

&lt;p&gt;I have the maven-release-plugin configured in my POM:&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;      &amp;lt;plugin&amp;gt;
        &amp;lt;groupId&amp;gt;org.apache.maven.plugins&amp;lt;/groupId&amp;gt;
        &amp;lt;artifactId&amp;gt;maven-release-plugin&amp;lt;/artifactId&amp;gt;
        &amp;lt;version&amp;gt;2.5.3&amp;lt;/version&amp;gt;
        &amp;lt;configuration&amp;gt;
          &amp;lt;preparationGoals&amp;gt;clean verify&amp;lt;/preparationGoals&amp;gt;
          &amp;lt;tagNameFormat&amp;gt;v@{project.version}&amp;lt;/tagNameFormat&amp;gt;
          &amp;lt;pushChanges&amp;gt;false&amp;lt;/pushChanges&amp;gt;
          &amp;lt;localCheckout&amp;gt;true&amp;lt;/localCheckout&amp;gt;
        &amp;lt;/configuration&amp;gt;
      &amp;lt;/plugin&amp;gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;1.  create a new release branch - &apos;git checkout -b release-5.1.1&apos;&lt;br/&gt;
2.  Update NEWs, etc.  Commit changes. &lt;br/&gt;
3.  Run &apos;mvn release:clean release:prepare&apos;.   (This process creates the git release tag &apos;v5.1.1&apos;)&lt;br/&gt;
4.  Push the new branch to remote origin - &apos;git push origin release-5.1.1.&apos;&lt;br/&gt;
5.  Wait for Jenkins to do its thing and verify the build in the new branch. &lt;br/&gt;
6.  Open Github PR to merge your branch into master. &lt;br/&gt;
7.  Wait for verification from Jenkins and then Merge. &lt;br/&gt;
8.  Push the release tag.  &apos;git push --tags&apos;&lt;/p&gt;

&lt;p&gt;You want to push the new release tag &lt;b&gt;after&lt;/b&gt; the PR is merged.  Otherwise, you &lt;b&gt;could&lt;/b&gt; get stuck in the undesirable state of having created a release on Github with a PR that won&apos;t merge.    The tag is created during the proper commit as you can see in the &apos;git log&apos; output below:&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;
commit 9c8c0c93cf6ffa88197f2f6c766ad0ba0e075979 (HEAD -&amp;gt; master, origin/master, origin/HEAD)
Merge: cdf5284 b8e75ba
Author: John Malconian &amp;lt;malc@indexdata.com&amp;gt;
Date:   Thu Oct 5 10:28:07 2017 -0400

    Merge pull request #2 from funkymalc/release-5.1.1
    
    Release 5.1.1

commit b8e75ba2fc1302cf6f2445b9c74198f0ddeb7483 (origin/release-5.1.1)
Author: John Malconian &amp;lt;malc@indexdata.com&amp;gt;
Date:   Thu Oct 5 14:24:20 2017 +0000

    [maven-release-plugin] prepare for next development iteration

commit 1f855d3ad0e7f8dea4cf26d1923143a5b0f8706c (tag: v5.1.1)
Author: John Malconian &amp;lt;malc@indexdata.com&amp;gt;
Date:   Thu Oct 5 14:24:20 2017 +0000

    [maven-release-plugin] prepare release v5.1.1

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This all seems to work.   However,  I wonder what happens if someone merges a commit to master before you merge your release branch back into master.   That seems wrong somehow.     Any other unusual cases or concerns that we should be aware of?  &lt;/p&gt;</comment>
                                                            <comment id="190455" author="5f8314dfbdef80006f6f572d" created="Fri, 6 Oct 2017 16:11:48 +0000"  >&lt;p&gt;master or other branch .. It does not matter.. The point in git history of the &quot;release&quot; is fixed. Nobody can change history BEFORE the point. It will be a fork, but .. eventually it will  be merged. Just never rebase a release, because that rewrites history! I recommend not rebase except inside your very own branch.&lt;/p&gt;</comment>
                                                            <comment id="190456" author="5f8314dfbdef80006f6f572d" created="Thu, 26 Oct 2017 13:45:07 +0000"  >&lt;p&gt;Isn&apos;t this solved?&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10000" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummarycf">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10019" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|hzy0hr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10020" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10024" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>[CHART] Date of First Response</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 6 Oct 2017 16:11:48 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10025" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>[CHART] Time in Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>