Skip to main content

Promoting your first features in Gearset Pipelines

Getting your features from your dev sandbox into Gearset Pipelines and getting them propagated through your environments.

Mateusz Kochanowicz avatar
Written by Mateusz Kochanowicz
Updated this week

This article will lead you through getting your first feature(s) from your Dev Sandbox into your pipeline, and then promoting these features through your pipeline environments.

Promoting features from a dev sandbox

Once you have completed a feature in your dev sandbox, navigate to the Deployment pipelines page and click on your Dev Sandbox org.

Then select the "New feature" button: , like so:

Steps if you use Jira or Azure work items with your features

If you have Jira or Azure work items linked then you can select a ticket.

Note: For each Pipeline, you would need to enable Jira by clicking the cog icon > Edit pipeline details... > "Jira" tab > "Enable Jira Integration with this pipeline".

Gearset will automatically fill in the name of the feature branch. you can edit feature branch name to fit any naming convention needed.

Steps if you don't use any ticketing system

If you have no ticketing system linked with your Gearset Pipeline (e.g. Jira or Azure work items), then you can create and name your feature branch manually.

Once branch is named, under COMPARISON FILTER dropdown you can amend the metadata filter for your Dev org > feature branch comparison.

Optionally, you can also configure comparison date range. Before you use this setting, please check known behaviors and limitations of this feature.

In the comparison results, find the feature(s) that you have created, select the items for deployment, click on Next and go through the compare and deploy steps.

Add the changes to your feature branch via Commit changes button.

The changes are now committed in the feature branch.

Gearset will automatically take you to the Deployment pipelines page where you can see (below screenshot):

  1. New and changed items added to the feature branch.

  2. All the commits made to the feature branch.

  3. Option to commit more changes into the feature branch.

  4. Option to create pull request (once the feature is ready for promotion).

How can Gearset Problem Analyzers help with the deployment?

Let's dive into more details on why "changes in this branch" may display more items than the number of items you've actually committed to your feature branch.

On below example, the change committed to the feature branch (highlighted in black) contains the new field (Number1__c) initially selected for deployment.

However, Gearset's Problem Analyzers (PAs) detected that this field belongs to Account1__c object, which was new in the Dev org and didn't exist in your Main/Master branch (off which the feature branch was created), which means the object also didn't exist in the feature branch either.

So Gearset's intelligent Problem Analyzers automatically included Account1 object in the deployment - this object is highlighted in red in the New items section (see image below).

Also, Gearset detected that for a successful org deployment of the field, various Profiles and Profile: field level security components had to be included in the deployment package (these are highlighted in red under Changed items section), and our PAs did that for you! So you don't need to worry about if you miss some items crucial for a successful deployment and/or validatin.

Lastly, if you want to inspect further, you can find the history of your commit made to the feature branch in our Deployment history page.

Creating the first pull request

After you've selected button on your Dev Sandbox, you'll see a pop up window where you can:

  1. Add a PR template - applicable if your organisation uses custom templates created in the Version Control System (e.g. GitHub, Azure DevOps etc). Otherwise, if not, you can skip this step.

  2. Add custom PR description.
    Note: Pull request description may be required in order for Gearset to allow you to create a PR! This is defined by your Pipelines settings controlled by Pipeline owner(s).

  3. Optionally, you can use our "AI suggestion" option to automatically generate PR description using AI (keep in mind that AI suggestions may be wrong, so you should always review them!).

  4. Deployment steps tab allows you to preview and amend the configuration for your pre- and post- deployment steps that are required for this pull request.

  5. Tests tab allows you to add Apex tests for your PR.

Once you're happy with the changes, proceed with creating the PR:


PR description

The description for your PR may be configured as a mandatory field. If so, it needs to be filled in before Pipelines UI allows you to select Create pull request.

This setting is controlled by Pipeline owner(s) and can be amended in the Pipeline settings, like so:

Promoting a change (pull request) through your pipeline

Deployment pipelines page will show you the number of PRs open against your first Pipeline environment.

Click on that icon or on the environment itself to preview the pull requests.

Allow some time for Gearset to run merge conflict check and validate the metadata components in the PR.

Click on the PR button and you can see its details auto populate on the side bar (highlighted in green are the optional settings):

  1. The name of the (feature) branch that the PR is coming from.

  2. Merge and validation checks will show you if there are any merge conflicts between the branches, and if the validation has succeeded or failed.

  3. You can see if the pull request has been validated against the target org. With options to view details of the validation or to rerun validation.

  4. Reviewers and other checks shows information about any other status checks and assigned reviewers for the pull request (if applicable).

  5. Testing section (optional) will allow you to specify tests for the PR, or to rerun validation with tests (if case you've manually added new tests).

  6. Post-deployment step section allow you to manually add step(s) that need to be performed after PR gets deployed the to next environment(s).

  7. Jira issues section links to a Jira tickets or issues associated with your PR. With an option to add more issues for your open PR if needed.

Select the pull request (or multiple pull requests) and click Promote changes to promote your PR into the next environment.

Clicking the Promote changes button will start the CI job on the Gearset side, to:

  • Merge the pull request; this takes the feature into the next environment branch (in this example it's the INT branch).

  • Start the CI job to deploy this feature into the next org (in this example it's the INT org). The deployment process is indicated by the spinning circle.

  • Once the org deployment to the first environment is completed (in this example to INT environment), you can open a pull request of the feature against the next environment in the Pipeline (e.g. UAT).

Note: If there are existing PRs in the queue being promoted or pending for promotion to the environment you pushed your change to, check this section to find out how Gearset handles this scenario: promoting multiple PRs against the same environment, or head to our documentation on queuing PRs for promotion.

Completed and successful org deployment (via CI job targeting INT org) is confirmed with a tick icon on the environment to which the PR was promoted.

This is also indicated by the environment changing colour from blue to green.

You can now continue to promote the changes down the pipeline, in this example into UAT and then eventually towards Production.

Promoting multiple PRs against the same environment

If there are multiple PRs opened against your environment (e.g. INT in this example), clicking the Promote changes button will initiate the promotion of the PR only if there aren't any other other pull requests already in the queue for promotion

Read more about our feature of queuing PRs for promotion in Gearset Pipeline.

On below video there's a PR with feature Number3.field being promoted while other PRs are pending in the queue. Any new PR that is promoted against INT will be added to the bottom of the queue.

Pipeline owners (or Team Owners in case of a team-shared Pipeline) can rearrange the PRs in the queue either by dragging PRs up and down the list (as shown on the video).

Pipeline owners (or Team Owners in case of a team-shared Pipeline) can rearrange the PRs in the queue either by dragging PRs up and down the list (as on video above), or by selecting the three dots icon: and clicking on Promote next button to move a given PR to the top of the existing queue.

While users with a Member status can remove only their own PRs from the queue (to find out more check our FAQs section related to this feature).

Next steps: after a feature has made it to Prod

After your feature has made it to Production, before you start creating new PRs, Gearset recommends to always keep your environment branches in sync.

You can do it by opening sync pull requests from your Prod environment in the Pipeline. These type of pull requests sync the metadata differences and Git commit histories between your Main/Master branch and the long-lived environment branches in the Pipeline (e.g. INT and UAT branches in this example).

Promoting a hotfix directly to Prod

If you have a hotfix that needs to be quickly deployed to Prod, and want to skip promoting it through the entire Pipeline, Gearset has a solution for you!

For this type of scenario, you should have a Dev org (to serve as a Hotfix environment) added to your Pipeline that will link directly to your Production environment.

Once this is set up, you can follow a similar promotion process to when you deploy brand new features. With the only difference being that your hotfix feature is promoted directly from the dedicated Hotfix environment.

Example below shows a Hotfix environment and a feature branch that will be used for hotfix deployment.

Below steps will lead you through creating a hotfix PR:

1. Click on your dedicated Hotfix environment.

2. Click on New feature (if you haven't created your feature branch for hotfix), add your feature branch on the pop up window, select the metadata filter, and hit Compare now.
after you've run a comparison and committed your changes, you can move into the final step where you create a pull request.

Continue these steps if a feature branch where hotfix will be deployed already exists:

3. If you've already created your feature branch for hotfix, select it from the dropdown.

4. Click Commit more changes once you have the right feature branch selected.

5. Finally, click Create pull request...

Once your hotfix is merged into Main/Master branch, CI job will deploy it to Prod.

Useful resource:

Read our documentation on deploying a fix to Production via hotfix branch for more detailed guidelines.


Back propagation after hotfix deployment

After CI job deployment is completed, Gearset will trigger back propagation PRs to your lower static environments (CI jobs in the Pipeline), such as INT or UAT (in this example).

If you've enabled Updates to Dev Sandboxes in your Pipeline, the Sandboxes for which updates are enabled will also receive updates of the hotfix deployed to Prod.

Using JIRA or Azure work items with pipelines

Both Jira or Azure work items integrate seamlessly with Gearset Pipelines. Gearset can update the status of a Jira ticket or your Azure work item.

When creating a new feature, you can select a a ticket that will be linked to the feature in the pipeline. It can be configured to follow all PR promotions until the feature has reached the final environment.


Useful resources for Jira and Azure work items

Details on how to configure one of the above services can be found in our documentation on:

Other useful resources for promoting features in Pipelines

Did this answer your question?