BACK to product overview

CI/CD Pipelines

Rule changes deserve the same release discipline as application code. DecisionRules CI/CD Pipelines connect your Spaces to existing DevOps workflows, so business and IT teams can promote rules from development to production through a repeatable process: export the source Space, compare it with the target, review the changes, approve the deployment, save a backup, and import the release.

CI/CD pipeline exporting, comparing, approving, and importing rules from development to production with a destination backup

Repeatable Deployments

Move business rules through the same defined steps every time. Automated exports and imports replace manual recreation, helping development, testing, and production environments stay aligned.

Review Before Release

Compare the source and destination Spaces before deployment and place an approval gate in front of production. Teams can see what is changing and stop an unexpected release before the target environment is updated.

Recoverable Changes

Before Production is updated, the pipeline saves its current state as a backup file. If the new release causes a problem, a recovery pipeline can import that file and return the Space to its previous working state. Backups can be stored in Git, pipeline artifacts, or cloud storage.

Promote Rules Across Environments

DecisionRules Pipeline Tools export a source Space into a portable JSON artifact and deploy it to a selected destination. The destination can be another Space in the same environment or a Space in a separate cloud, regional, private, or on-premise environment.

  • Export a source Space into a portable JSON artifact
  • Deploy to another Space or a separate environment
  • Keep development, testing, and production aligned
DecisionRules Space exported as a JSON artifact and deployed to the same environment, cloud, private cloud, or on-premise installation

Back Up Production Before Every Release

A controlled deployment should include a way back. The documented DecisionRules pipeline examples export the destination before it is changed and store the snapshot as a release artifact. A recovery pipeline can later select that snapshot and restore the Space to its earlier state.

  • Create a backup before the destination changes
  • Store release snapshots as protected artifacts
  • Use a recovery pipeline to restore a known-good state
Destination Space backed up before a JSON release artifact is imported from the source Space

Works with Your CI/CD Stack

DecisionRules Pipeline Tools are provider-neutral and fit into the CI/CD platform your team already uses.

  • Azure DevOps
  • GitHub Actions
  • Bitbucket Pipelines
  • Jenkins
  • OpenShift Pipelines
Azure DevOps, GitHub Actions, Bitbucket Pipelines, Jenkins, and OpenShift Pipelines supported by DecisionRules

Frequently Asked Questions

Still have questions? We have answers.

Getting Started with CI/CD Pipelines

What are CI/CD Pipelines in DecisionRules?

CI/CD Pipelines automate the movement of business rules between DecisionRules Spaces and environments. They use the Management API and DecisionRules Pipeline Tools to export, compare, back up, and import rule projects as part of an existing DevOps release process.

Does the pipeline run inside the DecisionRules application?

No. DecisionRules provides the Management API and pipeline utilities that perform the rule operations. Your existing CI/CD platform orchestrates when those operations run, where artifacts are stored, and whether an approval is required.

What do I need to build a pipeline?

You need a source Space, a destination Space, their DecisionRules environment URLs, and a Management API key for each Space. The official Pipeline Tools run with Node.js and can be added to a standard CI/CD runner. A protected Git repository or object store is recommended for release artifacts and backups.

Which CI/CD platforms can I use?

The tools are provider-neutral scripts. DecisionRules provides documented examples for Azure DevOps, AWS CodeBuild, and Google Cloud Build. The same approach can be used with GitHub Actions, Bitbucket Pipelines, Jenkins, OpenShift Pipelines, and other platforms capable of running Node.js commands.

Does this work with both cloud and on-premise environments?

Yes. The Pipeline Tools support DecisionRules Public Cloud, Regional Cloud, Private Managed Cloud, and on-premise deployments. Each source and destination is identified by its environment URL and Space-specific Management API key.

Promoting Rules and Spaces

What does the standard DecisionRules pipeline move?

The standard Pipeline Tools export and import an entire Space, including its rule resources and folder structure. For more selective workflows, the Management API also exposes operations for individual rules, versions, Rule Flows, and folders, allowing teams to build a pipeline around the scope they need.

Can I compare environments before deployment?

Yes. Export the source and destination Spaces and run the comparison step before import. The Pipeline Tools can create a JSON comparison artifact that gives reviewers an overview of the rule changes between the two environments.

Can production deployment require manual approval?

Yes. Approval is configured in your CI/CD platform. For example, the documented Azure DevOps workflow separates comparison and migration into different stages and requires approval before the migration stage can update the destination Space.

Can the pipeline run automatically after a code change?

Yes. Your CI/CD platform controls the trigger. A pipeline can be started manually, scheduled, or connected to a repository event such as a commit or merge, depending on your release policy.

Does deployment automatically publish Pending rules?

Publishing is a separate lifecycle decision. The pipeline moves the exported rule project; it should not be treated as automatic approval of unfinished business logic. Define the expected rule statuses in your release process and verify them before production traffic is directed to the imported rules.

Does the standard full-Space pipeline replace the destination contents?

Yes. The documented full-Space workflow backs up the destination, clears it, and then imports the selected source artifact. Because this is a replacement operation, the destination backup, environment comparison, and approval gate are important safeguards. A customized Management API workflow can use a narrower deployment scope when full replacement is not appropriate.

Validation and Recovery

Can I add automated checks to the pipeline?

Yes. The pipeline belongs to your DevOps workflow, so validation steps can be added before approval or after import. The official Pipeline Tools focus on exporting, comparing, clearing, and importing Spaces; teams can extend the pipeline with their own policy checks or post-deployment Solver API smoke tests.

How does rollback work?

Before deployment, the pipeline saves the current Production Space as a backup file. If the new release needs to be reversed, a recovery pipeline clears the affected Space and imports the selected backup. Production is then returned to the state captured before deployment.

Is pipeline recovery the same as Rule Versioning?

No. Rule Versioning manages numbered iterations of an individual rule inside a Space. Pipeline recovery restores a saved snapshot of a Space or environment. Use Rule Versioning for the lifecycle of one rule and CI/CD backups for environment-level deployment recovery.

Where should backups be stored?

Store backups outside the destination Space in a protected Git repository, your CI/CD artifact store, or object storage such as Amazon S3 or Google Cloud Storage. Apply the retention and access policies required by your organization.

Security and Best Practices

How should Management API keys be handled?

Store every Management API key in the secret store of your CI/CD platform. Use a separate key for each Space, limit who can run production deployments, and never commit keys to the repository or print them in pipeline logs.

Should development and production use separate Spaces?

Yes. Separate Spaces create a clear boundary between work in progress and production-ready logic. Many teams use a Development, Testing or Staging, and Production progression, but the exact number of environments depends on their review and compliance requirements.

What should happen before every production deployment?

Export and back up the destination, compare it with the source, review unexpected changes, require the appropriate approval, and retain the deployed artifact. After import, run the validation or smoke tests defined by your release process.

How should teams prepare for rollback?

Keep the recovery pipeline separate from the normal deployment pipeline, protect access to it, and test it before it is needed. Make sure the team knows which artifact represents the last known-good production state and how to select it during recovery.

Try for Free

Experience DecisionRules at no cost. A credit card is not required for the trial.

Start for free

Book a Demo

Get a free demo of DecisionRules and see why industry leaders trust us.

book a demo

Contact Sales

Have questions? Our sales team is here to help you find the best solution for your business.

contact sales