Azure Pipelines
Store APPBARN_TOKEN as a secret pipeline variable and run the CLI after producing the artifact.
yaml
- script: |
npm install --global appbarn-cli
appbarn config set api https://staging.api.app-barn.com
appbarn config set app "$(APPBARN_APP_ID)"
appbarn config set environment "$(APPBARN_ENVIRONMENT_ID)"
appbarn upload ./build/app.apk --app-identifier "$(APPBARN_APP_IDENTIFIER)" --version "$(APPBARN_VERSION)" --build-number "$(APPBARN_BUILD_NUMBER)"
displayName: Upload to AppBarn
env:
APPBARN_TOKEN: $(APPBARN_TOKEN)AppBarn detects Azure Pipelines provenance from standard environment variables.
AI prompt — Add an Azure Pipelines upload (Copilot, Codex, Cursor)
text
Inspect the Azure pipeline and mobile artifact output. Add an AppBarn CLI upload only after the selected IPA/APK/AAB is present in the job. Configure the API and real App/Environment UUIDs; provide APPBARN_TOKEN through a secret pipeline variable and Android identity through non-secret variables. Keep existing jobs and native provenance. Ask when artifact paths or targets are unclear, never log credentials, then validate YAML and report required variables.Common failures
Mark the token secret, verify the artifact path in the agent workspace and keep the Automation Token scoped to only the required Project/App.