Docs
Application projects
Signed in? Open this page in the app, with links straight to your team's screens.
Not everything is Salesforce metadata. An application project promotes an application (a service, a web app) through the same pipeline, review and gates as a Salesforce project. Instead of deploying metadata to Salesforce orgs, Promote Force merges the change into the stage’s branch and tells your runtime to deploy it.
For the day-to-day steps, see Developer workflow: application projects.
Salesforce and application projects
| Salesforce project | Application project | |
|---|---|---|
| What is promoted | Metadata, between Salesforce orgs | Code, between branches |
| Where the code can live | Promote Force Git or GitHub | Promote Force Git, GitHub, Azure DevOps or GitLab |
| Gates | Merge checks, code analysis, check-only validation with coverage, Jira status | Pipeline config, your CI, approvals, optional manual sign-offs (and your host’s branch policies, where it has them) |
| How a stage deploys | The merge queue validates and deploys to the stage’s org | A deploy adapter (Railway or a webhook) |
| Feature branch tracking, collisions, bundles, Update from main, Pull from my org | Yes | No |
Create one
- On Projects, select New project and choose Application.
- Pick where the code lives:
- Promote Force Git (recommended): Promote Force hosts the repository. It starts with a
README.mdand a starter.promoteforce.ymlonmain. Clone and push with a token from Git access. - Your GitHub repository: an owner or admin first installs the Promote Force GitHub App under Integrations. You then choose the GitHub account and repository.
- Azure DevOps repository or GitLab repository: an owner or admin first connects the host under Integrations (GitLab can be gitlab.com or self-managed), then you link one of its repositories.
- Promote Force Git (recommended): Promote Force hosts the repository. It starts with a
- Build a pipeline: choose a template on the pipelines page (see Concepts), or, when the repository has a valid
.promoteforce.yml, select Create the pipeline from the file on the project page. - Set up a deploy target for each stage that should deploy (see below).
An application project cannot be imported from a URL and has no Salesforce settings (package directories, API version, a production org to retrieve from).
Salesforce projects can stay on GitHub, but not on Azure DevOps or GitLab. Use Promote Force Git or GitHub for those.
What Promote Force does on your host
On every host Promote Force:
- reads the repository and
.promoteforce.ymlfrom the default branch; - opens and tracks pull requests (merge requests on GitLab) and listens for pushes. When someone pushes, it re-checks the open promotions of that branch, and when the default branch moves it re-reads the pipeline file first;
- posts the result of the gates back to the pull request as a status named
promote-force/gates; - merges the pull request itself when someone deploys the promotion. If a branch policy on the host refuses the merge, the promotion fails with the host’s reason.
On Promote Force Git there are no pull requests: a promotion is the branch pair, and Promote Force merges the branch into the stage branch on the server. There is no outside CI to read, so the platform runs its own verification (see Gates).
On GitLab, Promote Force needs the Maintainer role on the project to create its webhooks.
Branch protection on your repository
A customer’s own repository is theirs. Promote Force never changes your branch policies or rulesets unless an owner or admin opts in for the project, and the setting is off by default.
On the project page, under Branch protection, an owner or admin can select Let Promote Force protect branches. Promote Force first shows exactly which branches and policies it will apply. Then:
- Only your stage branches are protected. Your default branch is not touched unless it is itself a configured stage branch.
- Every policy or ruleset Promote Force creates is recorded and written to the audit log. Policies that already existed, or that you made yourself, are never recorded and never touched.
- Turn off stops Promote Force managing the branches and leaves the policies in place. Remove Promote Force’s policies deletes only the ones it created.
- What the host needs: Azure DevOps needs the “Edit policies” permission for the connection. The Promote Force GitHub App needs the Administration permission, and rulesets on private repositories need GitHub Team or Enterprise. GitLab needs the Maintainer role, and approval rules need GitLab Premium or Ultimate (on other tiers only protected branches are applied). To have GitLab itself enforce the
promote-force/gatesstatus, turn on “Pipelines must succeed” in the project’s merge request settings; without it Promote Force still refuses to merge until the gates pass.
Promote Force Git always protects its own branches. Nobody can push to main or a stage branch there; only Promote Force updates them.
Gates
Gates come from your pipeline stages, the optional .promoteforce.yml and your host’s own policies. A promotion shows each as a row:
- Pipeline config: the file is valid. A missing file passes. A broken file fails every promotion until it is fixed.
- Branch policies on your host (GitHub, Azure DevOps and GitLab only, when the host reports policies): required checks and similar. Reviewer policies feed the approvals gate instead.
- Continuous integration: the
cigate waits for the checks or pipelines the file names. On Promote Force Git the platform’s own verification run is the CI: it installs the app, runs youragent.test_commandand any API and UI checks an agent wrote, and reports the checkpromote-force/verify. On other hosts name your CI’s checks in the file. - Sign-offs: the
manualgates, one row per name, confirmed by someone who can approve into the stage. - Reviews and approvals: Promote Force reviews and the number the file asks for. On a customer-hosted repository the project option Count approvals given on the Git host (on by default) lets the host’s reviewer policies satisfy this gate when the host requires approvals on the target branch.
A new push to the promotion’s branch starts a fresh round of checks and clears sign-offs.
Deploy targets
A stage deploys through a deploy target, set per stage in Promote Force with Set up target (owners, admins and release managers). The file only says which adapter a stage uses; values and secrets are stored encrypted in Promote Force and never returned.
| Adapter | Settings | What it does |
|---|---|---|
| Railway | Project ID, Environment ID, Service ID and a Railway project token | The promoted commit deploys that commit (the Railway service must be connected to the GitHub repository). Redeploy the latest deployment re-runs the latest one. |
| Webhook | An https URL, an optional status URL and a signing secret | Sends a signed POST for each deploy. Without a status URL, a 2xx answer means deployed. With one, Promote Force polls it until it answers succeeded or failed. |
Each webhook request carries X-PromoteForce-Timestamp, X-PromoteForce-Signature (sha256= and the HMAC-SHA256 of <timestamp>.<body> with your signing secret) and X-PromoteForce-Delivery (the release id). Reject old timestamps.
With no deploy target the promotion still merges, but nothing is deployed: the release is recorded as succeeded with the note “Merged; this stage has no deploy target.”
Every deploy is a release with a number. Its state is Waiting, Deploying, Deployed or Failed, or Rolled back after a rollback. The live release of a stage has a Roll back button for someone who can promote into the stage; the adapter restores the previous deployment. Only one deploy runs on a stage at a time. A release that is stuck for 45 minutes is failed so the stage is never blocked for good.
After a promotion deploys, Next: promote to … opens the next one. See Developer workflow: application projects.
With agents
Agents can work on application projects too. Their changes are verified (unit tests, API checks and, where a project switches them on, UI checks) before a reviewer sees them. Release managers and above can set the project’s Verification environment (the non-production variables the app is started with for verification). See Plans and AI agents.
Remove a project
On a customer-hosted repository, removing the project from Promote Force leaves your repository untouched. On Promote Force Git the repository is archived, not deleted.