Skip to content

Deployments

A Deployment is the execution of a Solution, Sequence, or Action on one or more target machines. Deployments are the mechanism that turns your automation definitions into real-world changes.

When you trigger a deployment, Mantis:

  1. Resolves the solution/sequence/action to specific versions
  2. Identifies target machines based on your selection
  3. Creates an execution plan with ordered steps
  4. Executes steps on each target
  5. Monitors progress and collects logs
  6. Reports success or failure

Deployments progress through a state machine:

StateDescription
PendingDeployment created, awaiting processing
QueuedIn the dispatch queue
RunningActively executing on targets
SuccessAll steps finished successfully
FailedOne or more steps failed
CancelledUser cancelled the deployment
RollingBackAutomatic rollback in progress
RolledBackSuccessfully rolled back after failure

Regular deployment of a solution, sequence, or action.

Moving a solution from one environment to the next:

  • Development -> Test
  • Test -> Staging
  • Staging -> Production

Reverting to a previous version:

  • Standard Rollback - Deploy a specific previous version
  • Point-in-Time Rollback - Restore to a specific timestamp

Choose from three sources:

SourceUse Case
SolutionComplete application deployment
SequenceSpecific workflow (e.g., just database migration)
ActionSingle operation (e.g., restart a service)

Choose targets by:

MethodDescription
TagsTargets matching specific tags
IndividualSpecific target machines
OptionDescriptionDefault
Execution ModeHow to run across targetsSequential
Failure StrategyWhat to do when a step failsStop on first failure
PriorityDeployment queue priority0 (normal)
TimeoutMaximum time per step300 seconds
Max RetriesRetry count for failed steps3
  1. Review the deployment summary
  2. Verify target selection
  3. Click Deploy

Execute on all targets simultaneously. Best for:

  • Independent targets
  • Fast deployments
  • Stateless services

Execute on one target at a time. Best for:

  • Stateful services
  • Database servers
  • Ordered updates

Execute in batches. Best for:

  • Large deployments
  • Maintaining availability
  • Gradual rollouts

Rolling Configuration:

  • Batch Size - Number of targets per batch
  • Example: 10 targets with batch size 3 = 4 batches
StrategyBehavior
Stop on First FailureHalt deployment on any failure
Continue on FailureMove to next target, continue other targets
Ignore FailuresComplete all steps regardless of failures

Configure automatic rollback behavior:

StrategyBehavior
NoneNo automatic rollback
Failed Target OnlyRollback only the failed target
All ExecutedRollback all targets that received changes

The deployment detail page shows:

  • Overall Progress - Percentage complete
  • Step Counts - Total, completed, failed
  • Duration - Elapsed time
  • Per-Target Status - Each target’s current state

View logs in real-time:

  1. Click on a deployment
  2. Expand a target row
  3. View stdout/stderr output as it streams

Each execution step shows:

FieldDescription
StatePending, Queued, Running, Completed, Failed, Skipped, Cancelled
Exit CodeProcess exit code (0 = success)
DurationExecution time
Outputstdout and stderr
ErrorError message if failed

To cancel a running deployment:

  1. Navigate to the deployment detail page
  2. Click Cancel
  3. Confirm cancellation

When cancelled:

  • Running steps complete (not killed)
  • Queued steps are skipped
  • State changes to “Cancelled”

Administrators can create deployment freezes to prevent deployments during:

  • Maintenance windows
  • Holiday periods
  • Critical business events

If a freeze is active:

  • Standard deployments are blocked
  • Administrators can override with a reason
  • Override is logged for audit

All deployments are recorded with:

  • Who triggered the deployment
  • What was deployed (version, targets)
  • When it ran
  • How it completed (success, failure, cancelled)
  • Complete execution logs

Access history from:

  • Deployments page - All deployments
  • Solution page - Deployments for that solution
  • Target page - Deployments to that target

Before deploying to production:

  1. Deploy to lower environments first
  2. Verify functionality in each environment
  3. Monitor for issues during soak time
  4. Get required approvals

Watch for:

  • Unusual execution times
  • Unexpected failures
  • Resource utilization spikes
  • Application health degradation

After deployment:

  1. Verify application health
  2. Check error rates in monitoring
  3. Review deployment logs
  4. Document any issues encountered