ADD-ON MODULE

Publishing and Deployment

What you'll learn in this guide

What a publish does, how to publish a branch or master, what to do when a publish is refused or fails, how to roll back to an earlier publish, and how to read the publish history and the Deployments page.

Overview

A publish is how code reaches the integration runtime. It takes a branch of the project's repository, builds the SSIS project into a deployment package, deploys that package into the tenant's SSISDB, moves master forward to the branch, and records the result with a tag. Until a project has been published it cannot run; after a publish, every new run executes the deployed version until the next publish or a rollback.

Publishing needs the Publish projects permission. Reading the history needs Develop or Publish projects.


What a publish does

  1. Checks the branch: it must be master or a feature branch, it must exist on the git host, and it must not have fallen behind master (unless it arrived from another environment, in which case it replaces master whole).
  2. Exports the branch and builds it with SSISBuild, using the tenant's Build configuration setting. Exactly one SSIS project is expected in the repository.
  3. Reads the project's contract: its packages, entry package, and project and package parameters.
  4. If Deploy SQL scripts is on for the project, applies the repository's db.*.sql files to the staging database, in name order, in one transaction.
  5. Deploys the built project into the project's folder in SSISDB.
  6. Fast-forwards master to the branch tip and tags it publish/{n}.
  7. Stores the build output and the build log, records the contract and the changed files, deletes the feature branch, and makes this the project's current publish.

Publishing master itself skips the branch steps: master does not move and open branches are untouched. The whole thing runs in the background; the Build timeout setting (20 minutes by default) bounds the build and each SQL script.


Publish a branch

  1. Push your branch. A publish builds what is on the git host, not what is in your clone.
  2. Open the project and click Publish.
  3. Choose the Branch to build. Master is listed with (unpublished changes) or (as deployed); feature branches are listed with their owner, with (yours) on your own, (from {release}) on one that arrived from another environment, and behind master on one that needs re-branching.
  4. Read the notes the dialog adds. If other branches with commits would be left behind master by this publish, tick I understand, publish anyway. If the branch arrived from another environment and publishing it would lose releases this environment has, the dialog lists them and asks for the same acknowledgement.
  5. Click Publish. The dialog reads Queuing the publish… and the publish appears on the Publish history tab as Queued, then Building, Deploying, Advancing master and finally Succeeded or Failed.

The Publish dialog with a feature branch chosen and the note about other open branches.

Only one publish of a project runs at a time; a second request while one is in flight is refused with a message naming it. Checkouts with no commits are removed automatically as part of a publish, since they have nothing to keep.


When a publish is refused

  • Push it first: the branch is not on the git host yet.
  • Behind master: something was published after your branch was created. Open the Branches tab and Re-branch; your files are carried onto the current master and the dialog lists any file master also changed, for you to re-apply by hand.
  • A publish is already in progress: wait for it, or check the Deployments page to see where it is.


When a publish fails

Open the publish from the Publish history tab (click its tag) or from Deployments. The publish page shows its details and the Build log, which carries SSISBuild's output and the SSISDB deployment messages. A failed publish leaves the previously deployed version running; master has not moved and the branch is still there to fix and publish again. The Publish failed notification event fires for anyone subscribed to it.


Master and unpublished changes

Master is what has been published. The one exception is a push straight to master, which the git host accepts when it is a fast-forward; this is the simple-fix path for a small change. The dashboard, the projects list and the project page then show Unpublished changes until master is published, and the project page offers Publish master in its banner. The runtime keeps executing the deployed version in the meantime.


Roll back

A rollback redeploys the build from an earlier succeeded publish into SSISDB. Master is not changed, so the repository still holds the newer code; only what the runtime executes moves back.

  1. On the Publish history tab find the publish you want to return to. Only a succeeded publish whose build is stored, and which is not already the one deployed, can be rolled back to.
  2. Click Roll back to {tag} and confirm.
  3. A new history row of kind Rollback appears and runs through the same statuses. When it succeeds, the publish it replaced is marked Rolled back.

A rollback does not undo SQL scripts a later publish applied to the staging database. If the newer publish changed a procedure the older packages rely on, that needs a script of its own.
‍

Quick tip
‍
Pause new runs before a publish that changes a running project's behaviour, and resume afterwards; see Approvals, cancelling and pausing runs. Runs already executing are not interrupted by a publish, but a run that starts mid-deploy may pick up the new version.


Reading the history

The Publish history tab lists every publish and rollback with its release name, tag, status, branch, commit, SSISDB version, who requested it, when it started and how long it took, and the count of changed files. Chips on a row record what has happened to that release since: Tagged for a higher environment to pull, Pulled by or Pushed to an environment, and Deployed in one. Those actions are covered in Version control and environments.

Clicking a tag opens the publish page: the kind, release, branch and commit, master afterwards, SSISDB version, who and when, the lineage of releases it contains, the changed files, and the build log with a Refresh button for one still in progress.

The Deployments page in the sidebar shows the same information across every project, with a status filter and a search by project, tag or person. Its second tab, Lookup publishes, lists lookup set versions and where each has been replicated; lookups are published separately from SSIS projects and are covered in Lookup tables.


What a run records

Every run's Summary shows Deployed code, the publish tag that was current when it ran. When a project starts behaving differently, that field against the publish history is the quickest way to see whether a publish is the cause, and the publish page's changed-files list says what changed.