<!-- 
RSS generated by JIRA (1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d) at Thu Feb 08 23:26:29 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-3217] Investigate configure Jenkins jobs via environment variable</title>
                <link>https://folio-org.atlassian.net/browse/FOLIO-3217</link>
                <project id="10290" key="FOLIO">FOLIO</project>
                    <description>&lt;p&gt;Each Jenkins job has a configuration setting via the UI (e.g. the &quot;Configure : Pipeline&quot; tab at &lt;a href=&quot;https://jenkins-aws.indexdata.com/job/FOLIO_Reference_Builds/job/folio-snapshot-test/configure&quot; class=&quot;external-link&quot; rel=&quot;nofollow noreferrer&quot;&gt;folio-snapshot-test&lt;/a&gt;) to declare the &quot;Branches to build : Branch specifier&quot;.&lt;/p&gt;

&lt;p&gt;The default is &quot;*/master&quot; and when DevOps people need to test another branch of folio-infrastructure (&lt;a href=&quot;https://dev.folio.org/guides/devops-install-backend-module/#jenkins-testing-configuration&quot; class=&quot;external-link&quot; rel=&quot;nofollow noreferrer&quot;&gt;doc&lt;/a&gt;) then we set it specifically to be &quot;refs/heads/my-test-infra-branch&quot;.&lt;/p&gt;

&lt;p&gt;The Jenkins docs (i.e. select the help via that Configure section) indicate that an environment variable can be utilised. Investigate.&lt;/p&gt;</description>
                <environment></environment>
        <key id="82206">FOLIO-3217</key>
            <summary>Investigate configure Jenkins jobs via environment variable</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="10005" iconUrl="https://dev.folio.org/assets/jira-priority/tbd.svg">TBD</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="61cd0ca0bce5e00069e98be7">David Crossley</assignee>
                                                                <reporter accountid="61cd0ca0bce5e00069e98be7">David Crossley</reporter>
                                    <labels>
                    </labels>
                <created>Thu, 24 Jun 2021 07:24:17 +0000</created>
                <updated>Thu, 1 Jul 2021 05:27:02 +0000</updated>
                            <resolved>Thu, 1 Jul 2021 05:27:02 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                <comments>
                                                            <comment id="197819" author="61cd0ca0bce5e00069e98be7" created="Wed, 30 Jun 2021 04:56:28 +0000"  >&lt;p&gt;There is now a Jenkins global environment variable TRUNK_BRANCH_NAME. That is currently configured to be &quot;master&quot;.&lt;/p&gt;

&lt;p&gt;With &lt;a href=&quot;https://github.com/folio-org-priv/folio-infrastructure/pull/310&quot; class=&quot;external-link&quot; rel=&quot;nofollow noreferrer&quot;&gt;pull/310&lt;/a&gt; this has been utilised in CI/jenkins/Jenkinsfile.folio-testing-test-build and CI/jenkins/Jenkinsfile.folio-snapshot-test-build and enabled to be configurable for a testing feature branch.&lt;/p&gt;

&lt;p&gt;Subsequent test builds (folio-testing-test and folio-snapshot-test) were successful.&lt;/p&gt;</comment>
                                                            <comment id="197822" author="61cd0ca0bce5e00069e98be7" created="Wed, 30 Jun 2021 05:08:41 +0000"  >&lt;p&gt;The Jenkins docs (see link to help via this ticket Description) seem to indicate that this global environment variable can also be utilised to configure the UI.&lt;/p&gt;

&lt;p&gt;Testing revealed that this cannot be done. See build &lt;a href=&quot;https://jenkins-aws.indexdata.com/job/FOLIO_Reference_Builds/job/folio-testing-test/147/console&quot; class=&quot;external-link&quot; rel=&quot;nofollow noreferrer&quot;&gt;folio-testing-test/147&lt;/a&gt;&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-java&quot;&gt;
hudson.plugins.git.GitException: Command &lt;span class=&quot;code-quote&quot;&gt;&quot;git fetch --tags --progress --prune -- origin +refs/heads/${TRUNK_BRANCH_NAME}:refs/remotes/origin/${TRUNK_BRANCH_NAME}&quot;&lt;/span&gt; returned status code 128:
stdout: 
stderr: fatal: Couldn&apos;t find remote ref refs/heads/${TRUNK_BRANCH_NAME}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;So it seems that the environment variable is not evaluated via the UI, but is okay via the pipeline script source code.&lt;/p&gt;</comment>
                                                            <comment id="197825" author="61cd0ca0bce5e00069e98be7" created="Thu, 1 Jul 2021 05:26:45 +0000"  >&lt;p&gt;Verified that other repos (e.g. jenkins-pipeline-libs) have this environment variable available.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                                                <inwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="80025">FOLIO-2858</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <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_10057" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Development Team</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10155"><![CDATA[FOLIO DevOps]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10063" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>PO Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10019" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i03093:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10020" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="1994">DevOps Sprint 117</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>