Pipeline file reference
Every setting of .mcdock/pipeline.yml, the variables a job gets, and the limits.
Pipelines are defined in .mcdock/pipeline.yml in the repository. They run on every push and merge, from the web page or through the API. Runners are the same MCDock program, started in runner mode on any Windows or Linux machine; they only make outbound connections.
stages: [build, test, deploy]
jobs:
build:
stage: build
runs-on: [windows]
shell: powershell
script:
- dotnet build -c Release
artifacts: [bin/Release/**]
test:
stage: test
script:
- dotnet test --logger junit
junit: [**/TestResults/*.xml]
deploy-staging:
stage: deploy
environment: staging
branches: [main, release/*]
when: manual
script:
- ./deploy.ps1 -Target staging
Top level
| Setting | Meaning |
|---|---|
stages | The stages in order. Default: build, test, deploy. Each name only once. |
jobs | One to 50 jobs, each a name followed by its settings. Names use letters, digits, spaces and - _ . : /. |
Job settings
| Setting | Meaning | Default |
|---|---|---|
stage | One of stages. | the first stage |
runs-on | Runner labels the job needs, e.g. [windows]. | any runner |
shell | powershell, pwsh, cmd, bash or sh. | the runner's default |
script | The commands, one per line. Required. | |
branches | Branches the job runs for; wildcards like release/* work. | every branch |
tags | true to run for tag pushes too. | false |
when | on_success, manual (started by a person) or always. | on_success |
environment | Deploys to this environment; its approvals and allowed branches apply. | |
junit | Test result files to read; results show on the pipeline and the pull request. | |
artifacts | Files to keep after the job. | |
timeout | Minutes, 1 to 1440. | 60 |
variables | NAME: value lines for this job. | |
allow-failure | true so a failure doesn't fail the pipeline. | false |
An unknown setting stops the pipeline with the line number, so a typo never runs silently.
Variables every job gets
CI=true, MCDOCK_CI, MCDOCK_REPO, MCDOCK_REF, MCDOCK_BRANCH or MCDOCK_TAG, MCDOCK_SHA, MCDOCK_SHORT_SHA, MCDOCK_PIPELINE_ID, MCDOCK_JOB_ID, MCDOCK_JOB_NAME, MCDOCK_STAGE, MCDOCK_TRIGGERED_BY and MCDOCK_ENVIRONMENT.
Variables set in the job come next, then server, repository and environment variables (later ones win). Protected variables reach only protected branches and tags. Secret values are encrypted on the server and hidden in logs.
Limits
- A job log keeps up to 10 MB; further output is dropped with a note.
- Jobs are retried on request; each attempt is kept.
Updated 24 Nov 2026 · Something missing? Ask in the community.