Skip to content

Add Azure DevOps to GitOps pipelines#6896

Open
hardillb wants to merge 14 commits intomainfrom
azure-devops-pipelines
Open

Add Azure DevOps to GitOps pipelines#6896
hardillb wants to merge 14 commits intomainfrom
azure-devops-pipelines

Conversation

@hardillb
Copy link
Contributor

fixes #5491

Description

Adds support for Pipelines to push/pull from Azue DevOps git repos.

The create token dialog is still to be properly fixed, will need to rebase when #6891 is merged but ugly stand is is available

Screenshot From 2026-03-19 12-41-30

Also missing API to turn PAT into username/email address so hard coded flowfuse and flowfuse@example.com for now.

Related Issue(s)

#5491

Checklist

  • I have read the contribution guidelines
  • Suitable unit/system level tests have been added and they pass
  • Documentation has been updated
    • Upgrade instructions
    • Configuration details
    • Concepts
  • Changes flowforge.yml?
    • Issue/PR raised on FlowFuse/helm to update ConfigMap Template
    • Issue/PR raised on FlowFuse/CloudProject to update values for Staging/Production
  • Link to Changelog Entry PR, or note why one is not needed.

Labels

  • Includes a DB migration? -> add the area:migration label

@codecov
Copy link

codecov bot commented Mar 19, 2026

Codecov Report

❌ Patch coverage is 15.00000% with 187 lines in your changes missing coverage. Please review.
✅ Project coverage is 76.33%. Comparing base (ae02fe1) to head (8d5accc).

Files with missing lines Patch % Lines
forge/ee/lib/gitops/backends/github.js 12.63% 83 Missing ⚠️
forge/ee/lib/gitops/backends/azure.js 12.79% 75 Missing ⚠️
forge/ee/lib/gitops/backends/utils.js 17.39% 19 Missing ⚠️
forge/ee/lib/gitops/index.js 20.00% 8 Missing ⚠️
...ge/db/migrations/20260318-01-EE-extend-gittoken.js 80.00% 1 Missing ⚠️
forge/ee/routes/gitops/index.js 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6896      +/-   ##
==========================================
- Coverage   76.63%   76.33%   -0.30%     
==========================================
  Files         399      403       +4     
  Lines       20167    20281     +114     
  Branches     4856     4877      +21     
==========================================
+ Hits        15454    15481      +27     
- Misses       4713     4800      +87     
Flag Coverage Δ
backend 76.33% <15.00%> (-0.30%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

const url = new URL(repoOptions.url)
url.password = token

// TODO find an azure version
Copy link
Contributor Author

@hardillb hardillb Mar 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This still needs looking at, I can't find an equivalent API that converts token to user details.

Comment on lines +57 to +60
// TODO fix these place holders
const userGitName = 'flowfuse' // userDetails.data.login
const userGitEmail = 'flowfuse@example.com' // `${userDetails.data.id}+${userDetails.data.login}@users.noreply.github.com`
const author = `${userGitName} <${userGitEmail}>`.replace(/"/g, '\\"')
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See above

@hardillb hardillb marked this pull request as ready for review March 20, 2026 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants