rotatePipeline automation

Learn how SRE.ai can be used to facilitate pipeline automation

Overview

Salesforce teams lose time to manual handoffs, waiting for a reviewer to approve, manually triggering a deployment, or tracking down which environment is out of sync.

Pipeline automation is about removing those handoffs by wiring together the events in your pipeline so the right things happen automatically.

SRE.ai addresses this through two features working in combination:

  • Pipelines define the stages, branches, and quality gates that govern how changes move from development to production.

  • Automations let you trigger multi-step workflows (deployments, branch merges, notifications) in response to events in your pipeline.

Together, they let you enforce standards automatically and reduce the manual coordination required to ship.

Static code analysis

Scenario

Problem:

A team wants to catch code quality issues, security vulnerabilities, and best practice violations before changes reach production.

Waiting until deployment to discover these problems creates rework and risk.

SRE.ai's fit:

SRE.ai incorporates static code analysis directly into the pull request review process so issues are caught and addressed early.

circle-check

Who this is for

Teams that want to enforce code quality standards during their review process.

chevron-rightClick to learn how SRE.ai addresses this scenariohashtag

What you'll need

Setup

Configure the Code Review quality gate on each stage where you want static analysis findings enforced.

  1. Navigate to Pipelines and select your active pipeline.

  2. Click on the stage where you want static analysis enforced (typically your code integration or staging stage) to open the Stage Details panel.

  3. Under Quality gates, toggle Enable Code Review on.

  4. Under Block Review Comments, select the minimum finding severity that should block a change from advancing:

    • Critical: only the most severe findings block promotion.

    • High: critical and high-severity findings block promotion.

    • Medium: critical, high, and medium severity findings block promotion.

    • See the Pipelines documentation for the full list of quality gate options.

  5. Repeat for any additional stages where you want analysis enforced. Teams typically set a higher severity threshold (less strict) in early stages and a lower threshold (more strict) as changes approach production.

  6. Verify that your GitHub integration is active and that the repository is connected.

Example workflow

  1. A developer commits changes, and SRE.ai detects the change in the connected repository.

  2. SRE.ai scans the changed components for code quality issues, security vulnerabilities, and best practice violations.

  3. Findings are surfaced in the change detail view, organized by severity. Developers can search for violations, review finding details, and dismiss findings with a recorded reason.

  4. If the Enable Code Review gate is active for the target stage, the change's quality gate status reflects whether unresolved findings at or above the configured Block Review Comments severity are present.

  5. Developers address flagged findings before advancing the change to the next stage.

  6. Once no findings remain at or above the blocking severity, the change clears the gate and can advance.

Result

Code quality issues are identified and resolved before deployment rather than discovered after.

Changes that pass through this workflow meet the team's quality standards before they advance to staging or production, reducing rework and failed deployments.

Back propagation

Scenario

Problem:

A hotfix is deployed directly to production to resolve a critical issue.

Now the team needs those changes to flow back to lower environments so development and staging don't drift out of sync.

Without back-propagation, teams risk building on outdated code or reintroducing the bug that the hotfix resolved.

SRE.ai's fit:

SRE.ai's Pipeline feature supports backpropagation workflows that automatically push changes from higher environments down to lower ones.

circle-check

Who this is for

Teams that deploy hotfixes directly to production need a reliable way to ensure those changes are reflected across all lower environments without manually cherry-picking commits or coordinating branch merges across the team.

chevron-rightClick to learn how SRE.ai addresses this scenariohashtag

What you'll need

Setup

Back propagation requires an Automation that triggers after a hotfix deployment and merges the changes into your lower-environment branches.

  1. Navigate to the Automations page and click New to create a new Automation.

  2. Name the Automation descriptively (e.g., "Back Propagate Hotfixes to Staging + Dev").

  3. In the Automation Builder, click the Trigger block to open the Trigger panel.

  4. Select Deployment as the Trigger type and configure the filters:

    • Under the Org filter, select your production org. This scopes the trigger to deployments targeting production only.

    • Under the Status filter, select Success. This ensures the automation fires only after a successful deployment, not on failures.

    • See the Triggers customization documentation for details on each parameter.

circle-info

The Deployment trigger fires for all successful deployments to the selected org, not only hotfix deployments.

If your team also deploys to production through the standard pipeline, the back-propagation automation will run for those deployments.

This is typically safe, but worth confirming against your team's workflow.

  1. Add a Commit Change Step to merge the hotfix changes into your staging branch. Configure it with the following parameters:

  2. Add a second Commit Change Step to merge the hotfix changes into your development branch, configured the same way but targeting the development branch.

  3. Optionally, add a Send Teams Message Step to notify your team that backpropagation has completed and to confirm which branches received the changes.

  4. Click the Activation button to activate the Automation.

circle-check

Workflow

  1. A hotfix is deployed directly to the production environment through the hotfix stage.

  2. Once the hotfix lands in production, SRE.ai triggers an automation to initiate back-propagation.

  3. The automation automatically merges the hotfix changes into the staging and development branches.

  4. Each lower environment receives the changes, ensuring parity across the full pipeline without manual cherry-picking.

  5. Back propagation is logged on the Changes page, providing a clear audit trail of what was propagated and when.

Result

All lower environments (staging, development, and any other configured stages) now include the hotfix changes.

The team can continue building on branches that reflect the current production state, eliminating drift and preventing the reintroduction of resolved issues.

Hotfix strategy

Scenario

Problem:

A critical bug has been discovered in production.

The team needs an expedited path to deploy a fix without going through the full development pipeline, while still maintaining governance, visibility, and an audit trail.

SRE.ai's fit:

SRE.ai's Pipeline feature includes a dedicated hotfix stage that branches off from staging and connects directly to production, providing a governed fast path for emergency fixes.

circle-check

Who this is for

Teams that need to ship emergency fixes to production quickly while maintaining quality controls and traceability

chevron-rightClick to learn how SRE.ai addresses this scenariohashtag

What you'll need

  • A Pipeline configured using the Release Flow template, which includes a hotfix stage (see Pipelines documentation)

  • At least one production environment mapped to the production stage

  • Quality gates configured for the hotfix stage can be set differently from those in other stages to balance speed with safety.

  • Optionally, an Automation configured to trigger back propagation after the hotfix deploys (see the Back propagation use case)

Setup

The hotfix stage is included in the Release Flow pipeline template, but you need to configure its environment mapping and quality gates before it's ready to use.

  1. Navigate to Pipelines and select your Release Flow pipeline.

  2. Click on the Hotfix stage to open the Stage Details panel.

  3. Under Environment mapping, click Add Environment, then select the Salesforce org you want hotfixes deployed to. This is typically the same production org mapped to your production stage.

    • A green checkmark confirms the connection is validated.

  4. Under Quality gates, configure the checks required for hotfix deployments. These can be set differently from your standard pipeline stages to balance speed with safety. Consider:

    • A lower test coverage threshold than your staging or production gates

    • Keeping static analysis requirements enabled to catch critical issues

    • Requiring at least one approval

    • See the Pipelines documentation for more on quality gate configuration.

  5. Optionally, configure a backpropagation automation to propagate hotfix changes to lower environments after deployment. This prevents drift between production and your development/staging branches.

    • Navigate to Automations, create a new Automation, and configure a Deployment trigger that listens for deployments to the hotfix stage.

    • Add Steps to merge the hotfix into your staging and development branches.

    • See the Back propagation use case for a full walkthrough.

circle-check

Workflow

  1. The team identifies a critical bug in production that requires an immediate fix.

  2. A developer creates a hotfix branch that originates from the hotfix stage in the pipeline, branches off staging, and connects directly to production.

  3. The developer implements the fix and commits to the hotfix branch.

  4. The hotfix passes through the quality gates configured for the hotfix stage. These gates can be scoped differently from the standard pipeline stages to prioritize speed while still enforcing essential checks.

  5. Once quality gates pass, the fix is deployed directly to production through the hotfix stage, bypassing the standard promotion path.

  6. The deployment is tracked in the Changes page and Command Center, maintaining a full audit trail.

  7. Optionally, a back propagation automation merges the hotfix changes into lower environments to maintain parity across the pipeline.

Result

The critical fix is live in production without the delay of a full pipeline promotion.

Quality gates ensured the fix met the team's minimum safety standards even on the expedited path.

The hotfix is fully tracked on the Changes page, and if backpropagation is configured, lower environments are automatically updated to reflect the fix, preventing drift and ensuring the bug isn't reintroduced in future deployments.

Last updated