Uploaded image for project: 'IGB'
  1. IGB
  2. IGBF-1197

Add new branch workflow to IGB bitbucket pipelines

    Details

    • Story Points:
      2
    • Sprint:
      B - Summer 2018

      Description

      Edit bitbucket-pipelines.yml to enable building of branch-specific installers for testing. Change the installer name to include branch name in addition to version.

      See: https://confluence.atlassian.com/bitbucket/branch-workflows-856697482.html

        Attachments

          Issue Links

            Activity

            ann.loraine Ann Loraine created issue -
            ann.loraine Ann Loraine made changes -
            Field Original Value New Value
            Rank Ranked higher
            ann.loraine Ann Loraine made changes -
            Rank Ranked higher
            ann.loraine Ann Loraine made changes -
            Rank Ranked higher
            ann.loraine Ann Loraine made changes -
            Sprint A - Spring 2018 [ 48 ]
            ann.loraine Ann Loraine made changes -
            Rank Ranked lower
            ann.loraine Ann Loraine made changes -
            Assignee Ann Loraine [ aloraine ]
            ann.loraine Ann Loraine made changes -
            Rank Ranked higher
            ann.loraine Ann Loraine made changes -
            Summary build branch-specific installers for each platform Add new custom -specific installers for each platform
            ann.loraine Ann Loraine made changes -
            Summary Add new custom -specific installers for each platform Add new custom configuration for installers named by branch
            spatil26 Sanket Patil (Inactive) made changes -
            Description Edit bitbucket-pipelines.yml to enable building of branch-specific installers for testing. Change the installer name to include branch name in addition to version.

            For example:

            igb-9.0.2-[branchname]

            Use provided bitbucket pipelines environment variable. (See bitbucket pipeline documentation for details.)

            Note: This is a good project for a beginner to get familiar with CI as used in the IGB project.
            Edit bitbucket-pipelines.yml to enable building of branch-specific installers for testing. Change the installer name to include branch name in addition to version.

            For example:

            igb-[branchname]

            Use provided bitbucket pipelines environment variable. (See bitbucket pipeline documentation for details.)

            Note: This is a good project for a beginner to get familiar with CI as used in the IGB project.
            spatil26 Sanket Patil (Inactive) made changes -
            Assignee Sanket Patil [ spatil26 ]
            spatil26 Sanket Patil (Inactive) made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            Hide
            spatil26 Sanket Patil (Inactive) added a comment -
            • $BITBUCKET_BRANCH variable is works only if used inside default pipeline configuration.
            • As per our discussion i am using $BITBUCKET_BRANCH variable inside default configuration instead of creating new custom configuration.
            • For branch name Bitbucket automatically replaces spaces with '-' . So, I think its safe to go with branch name for renaming installers.
            Show
            spatil26 Sanket Patil (Inactive) added a comment - $BITBUCKET_BRANCH variable is works only if used inside default pipeline configuration. As per our discussion i am using $BITBUCKET_BRANCH variable inside default configuration instead of creating new custom configuration. For branch name Bitbucket automatically replaces spaces with '-' . So, I think its safe to go with branch name for renaming installers.
            ann.loraine Ann Loraine made changes -
            Link This issue relates to IGBF-1207 [ IGBF-1207 ]
            ann.loraine Ann Loraine made changes -
            Description Edit bitbucket-pipelines.yml to enable building of branch-specific installers for testing. Change the installer name to include branch name in addition to version.

            For example:

            igb-[branchname]

            Use provided bitbucket pipelines environment variable. (See bitbucket pipeline documentation for details.)

            Note: This is a good project for a beginner to get familiar with CI as used in the IGB project.
            Edit bitbucket-pipelines.yml to enable building of branch-specific installers for testing. Change the installer name to include branch name in addition to version.

            ann.loraine Ann Loraine made changes -
            Comment [ Change of plan. We'll make our yml file look like this:

            https://confluence.atlassian.com/bitbucket/branch-workflows-856697482.html



            ]
            ann.loraine Ann Loraine made changes -
            Description Edit bitbucket-pipelines.yml to enable building of branch-specific installers for testing. Change the installer name to include branch name in addition to version.

            Edit bitbucket-pipelines.yml to enable building of branch-specific installers for testing. Change the installer name to include branch name in addition to version.

            See: https://confluence.atlassian.com/bitbucket/branch-workflows-856697482.html


            ann.loraine Ann Loraine made changes -
            Comment [ Edit bitbucket-pipelines.yml

            Make custom configuration that copies windows 64-bit and mac installers to download space as IGB-[Unique id].exe and IGB-[Unique id].dmg

            See:
            https://confluence.atlassian.com/bitbucket/environment-variables-794502608.html

            Use BB environment variables to determine "Unique id" above.

            Use branch name if at all possible. This may not be allowed as branch names can contain spaces. If not, use commit hash.




                       ]
            Hide
            spatil26 Sanket Patil (Inactive) added a comment - - edited

            Branch flow makes thing even more simpler.
            I have tested the pipeline configuration using branch flow. It is working as expected.
            I have added three branches under branches configuration

            • IGBF-* : for any topic branch, name starting with IGBF
            • master
            • release:
              default configuration will be triggered whenever there is no branch found under branches configuration. I have remover custom configuration as it is no longer required.

            For default, topic branch and master branch, installers name will contain branch name. This was possible using $$BITBUCKET_BRANCH variable.

            Show
            spatil26 Sanket Patil (Inactive) added a comment - - edited Branch flow makes thing even more simpler. I have tested the pipeline configuration using branch flow. It is working as expected. I have added three branches under branches configuration IGBF-* : for any topic branch, name starting with IGBF master release: default configuration will be triggered whenever there is no branch found under branches configuration. I have remover custom configuration as it is no longer required. For default, topic branch and master branch, installers name will contain branch name. This was possible using $$BITBUCKET_BRANCH variable.
            spatil26 Sanket Patil (Inactive) made changes -
            Summary Add new custom configuration for installers named by branch Add new branch workflow to IGB bitbucket pipelines
            ann.loraine Ann Loraine made changes -
            Resolution Done [ 10000 ]
            Status In Progress [ 3 ] Closed [ 6 ]
            ieclabau Ivory Blakley (Inactive) made changes -
            Fix Version/s 9.0.1 Minor Release [ 10500 ]
            ann.loraine Ann Loraine made changes -
            Workflow Loraine Lab Workflow [ 17876 ] Fall 2019 Workflow Update [ 19828 ]
            ann.loraine Ann Loraine made changes -
            Workflow Fall 2019 Workflow Update [ 19828 ] Revised Fall 2019 Workflow Update [ 21947 ]

              People

              • Assignee:
                spatil26 Sanket Patil (Inactive)
                Reporter:
                ann.loraine Ann Loraine
              • Votes:
                0 Vote for this issue
                Watchers:
                Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: