Azure DevOps Integration
Provider Integration
When TF_BUILD=true and GitLab CI is not detected, cikit selects
AzureDevOpsProvider. Pipeline identity and branch information come from
Azure pipeline variables, while commit metadata is read from the local Git
checkout. The checkout must therefore be available when Git metadata is needed.
See Providers for the complete mapping and branch resolution.
CiSection emits Azure log group markers:
##[group]Title
...
##[endgroup]
Azure renders these as collapsible groups. The cikit collapsed option does
not control their initial collapsed state.
Pipeline Execution
Run cikit commands from ordinary Azure pipeline script steps. For example, assuming the agent environment already provides uv and the required tools:
steps:
- script: uv run cikit init
displayName: Initialize cikit
- script: uv run cikit ruff src tests
displayName: Run Ruff
Agent selection, container configuration and job scheduling remain part of the Azure pipeline definition.
Pipeline Artifacts
On Azure DevOps Services, publish the complete cikit output directory as a
Pipeline Artifact. For the default PUBLIC_DIR configuration:
steps:
- publish: public
artifact: cikit
displayName: Publish cikit output
condition: succeededOrFailed()
A dependent job can download the output, including the artifact registry:
steps:
- download: current
artifact: cikit
- bash: |
mkdir -p public
cp -a "$(Pipeline.Workspace)/cikit/." public/
uv run cikit sphinx docs
displayName: Build documentation
Before running a consuming command, make the downloaded directory available
at the configured PUBLIC_DIR. The Azure download shortcut normally places
artifacts below $(Pipeline.Workspace) rather than the repository root.
The example uses a Bash-capable agent and copies the contents of
$(Pipeline.Workspace)/cikit into the repository’s public directory.
See Artifacts for the required artifact and registry data.
Azure DevOps Server
For Azure DevOps Server installations without Pipeline Artifact support, use Build Artifact tasks instead. For example, publication of the default output location:
steps:
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: public
ArtifactName: cikit
publishLocation: Container
condition: succeededOrFailed()
Use the corresponding DownloadBuildArtifacts task in consuming jobs and
restore the output to PUBLIC_DIR. These tasks belong to Azure Pipelines;
cikit does not publish or download Azure artifacts itself.
Pipeline Variables and Secrets
For optional remote cikit data, configure CIKIT_DATA_BASE_URL and, where
required, CIKIT_DATA_API_TOKEN as Azure pipeline variables. The common
configuration and addressing rules are described in Cikit Data.
Non-secret variables are normally exported to the script environment. Azure secret variables must be explicitly mapped to environment variables for each script step that needs them:
steps:
- script: uv run cikit ruff src tests
displayName: Run Ruff
env:
CIKIT_DATA_API_TOKEN: $(CIKIT_DATA_API_TOKEN)
Store the token as a secret variable, not in the repository. Mapping it only
for init is insufficient: remote data operations occur in commands that
update run data or query history.