Skip to content
Promote Force
Docs: Pipeline file reference (.promoteforce.yml)

Docs

Pipeline file reference (.promoteforce.yml)

Signed in? Open this page in the app, with links straight to your team's screens.

.promoteforce.yml is the optional pipeline file of an application project. It lives in your repository and describes the stages and what each promotion into a stage must pass. Salesforce projects do not use it.

The file only ever holds names: stages, branches, gate names, the deploy adapter and the names of environment variables. Deploy credentials, tokens and environment values are set in Promote Force and never belong in git.

Where it is read from, and what happens if it is missing or broken

  • Promote Force reads .promoteforce.yml from the root of the project’s default branch. That is main, except on Azure DevOps and GitLab, where it is the repository’s own default branch. A change to the file takes effect once it is on that branch, not when it is only on your feature branch.
  • It is re-read when someone pushes to the default branch, when a promotion’s checks first run and the file has not been read yet, and when you select Read again on the project’s Pipeline file card.
  • The card shows the status: valid, missing, invalid or unreadable.
  • Missing is fine. The config gate passes, the pipeline’s stages apply, and so do your Git host’s own branch policies. You just do not get the extras below.
  • Invalid (bad YAML, an unknown key, a value out of range) fails the Pipeline config gate of every promotion with the errors until it is fixed. The project’s card lists them. Unknown keys are errors, so a typo is caught instead of ignored.
  • Unreadable (the host could not be reached) shows the reason and is retried on the next read.
  • The file can be at most 100 KB and have at most 12 stages.
  • If the file is valid but differs from the pipeline, the card shows warnings (a stage in the file that is not in the pipeline or the other way round, a different branch, a deploy adapter that does not match the stage’s deploy target). Warnings do not block anything.

When a project has no pipeline yet and the file is valid, owners, admins and release managers can select Create the pipeline from the file. It builds a pipeline called “Delivery” whose first stage receives branches you name and whose every next stage is promoted from the one before. Each stage’s approvals.required becomes the approvals its path asks for.

The fields

version: 1
stages:
  - name: Integration
    branch: integration
    production: false
    gates: []
    deploy:
      adapter: webhook
    env: []
agent:
  test_command: npm test

Top level

Field Required Meaning
version yes Must be 1.
stages yes The stages in promotion order, 1 to 12 of them. The first stage receives feature branches. Each next stage is promoted from the one before.
agent no Hints for AI agents and the platform verification. See agent.

Stages

Field Required Meaning
name yes The stage’s name, 1 to 100 characters, unique in the file ignoring case. Promote Force matches it to the pipeline’s stage by name, ignoring case. A pipeline stage that is not in the file gets no gates from the file.
branch yes The stage’s Git branch (letters, digits, ., _, -, /; no .. or //; at most 200 characters). Several stages may use the same branch.
production no true marks the production stage. At most one stage can be production, and it must be the last one. Default false.
gates no The checks a promotion into this stage must pass, at most 20. See below.
deploy no How this stage deploys: adapter: railway or adapter: webhook.
env no The names of the environment variables the stage needs. Names only.

Gates

A stage may have one ci gate, one approvals gate and any number of manual gates.

type: ci: the CI must pass for the change.

Field Meaning
checks Up to 30 check names to wait for. GitHub check runs and commit statuses, Azure DevOps pull request statuses such as genre/name, and on GitLab pipeline:<name>, job:<name> or a commit status name. A name matches a reported check when they are equal (ignoring case) or the reported name ends in /<name>.
pipelines Up to 20 Azure Pipelines definition ids (positive integers).

On Promote Force Git, which has no CI of its own, the platform’s own verification run is the CI. It installs the app, runs agent.test_command, and runs the API and UI checks an agent wrote for the change. It is reported as the check promote-force/verify. Name that check, or leave checks empty: both mean the same.

On GitHub, Azure DevOps and GitLab a ci gate must name at least one check or pipeline, otherwise the gate fails. Naming promote-force/verify there also fails, because that check only exists on Promote Force Git. No other name starting with promote-force/ is allowed in checks.

A stage with no ci gate has no CI requirement from the file.

type: approvals:

Field Meaning
required How many approvals are needed, 1 to 10. Default 1.

This is in addition to the approvals rules of the pipeline path (who may approve, designated reviewers). Both must be satisfied. On a customer-hosted repository, the project option Count approvals given on the Git host (on by default) lets the host’s own reviewer policies satisfy the gate instead, when the host has a policy requiring approvals on the target branch. A count in the file still applies when the host names who approved.

type: manual: a named sign-off.

Field Meaning
name The sign-off’s name, for example “Smoke test passed”, 1 to 80 characters, unique in the stage ignoring case.

Someone who can approve into the stage selects Sign off on the promotion (and Withdraw to take it back). A new push to the promotion’s branch starts a fresh round and clears sign-offs.

Deploy

deploy:
  adapter: railway

adapter is railway or webhook. The file only declares which adapter the stage uses. The details (Railway project, environment and service ids and the project token; the webhook URL, optional status URL and signing secret) are set in Promote Force under Set up target on the project page, are stored encrypted and are never in the file. A mismatch between the file and the stage’s deploy target is shown as a warning. See Application projects.

env

env: [DATABASE_URL, STRIPE_KEY]

A list of variable names (letters, digits and _, starting with a letter or _, unique). NAME=value and a mapping of names to values are rejected: values are never stored in the repository. Promote Force validates and keeps these names as a record of what the stage needs. It does not set or read the values.

agent

Hints for AI agents and for the platform verification. All fields are optional. The commands are text for the agent to run in an isolated sandbox with no deploy credentials. Promote Force itself never runs them on your servers. See Plans and AI agents.

Field Meaning
test_command The command that runs your tests (at most 500 characters, one line). The platform verification on Promote Force Git runs it. Without it Promote Force looks at the Makefile test target, the README and the project manifests. It is read from the branch the change targets first, so a change being verified cannot choose what passes.
lint_command Your lint command (one line, at most 500 characters). Shown to the agent as data.
image_profile Which sandbox image the agent needs: salesforce, node or python. Empty means decided from the project kind and the repository’s files.
start_command How to start the app for verification. Overrides what Promote Force detects. It is read from the branch, so a change can add it in the same pull request.
ready_url An http or https URL on localhost that the started app answers on, for example http://localhost:3000/health.
preview_url Where the branch’s preview deployment lives, an https URL without credentials. {branch} is replaced with the branch name.
services Backing services the app needs (for example postgres, redis), unique names of letters, digits, -, _ and .. The sandbox has no Docker, so these are not started today: point the app at hosted development services through the project’s Verification environment instead.

A worked example

A project on Promote Force Git with three stages, a manual smoke test before production and Railway deploys:

version: 1
stages:
  - name: Integration
    branch: integration
    gates:
      - type: ci
        checks: [promote-force/verify]
    deploy:
      adapter: railway
    env: [DATABASE_URL, API_BASE_URL]

  - name: UAT
    branch: uat
    gates:
      - type: ci
      - type: approvals
        required: 1
    deploy:
      adapter: railway
    env: [DATABASE_URL, API_BASE_URL]

  - name: Production
    branch: main
    production: true
    gates:
      - type: ci
      - type: approvals
        required: 2
      - type: manual
        name: Smoke test passed
    deploy:
      adapter: webhook
    env: [DATABASE_URL, API_BASE_URL]

agent:
  test_command: npm test
  lint_command: npm run lint
  image_profile: node
  start_command: npm run dev
  ready_url: http://localhost:3000/health

The same project on GitHub names its own CI instead of the platform verification:

version: 1
stages:
  - name: Integration
    branch: integration
    gates:
      - type: ci
        checks: [build, test]
  - name: Production
    branch: main
    production: true
    gates:
      - type: ci
        checks: [build, test]
      - type: approvals
        required: 2

See also