Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Azure DevOps Webhook for gitRepos using SSH URL #446

Merged
merged 1 commit into from Mar 7, 2024

Conversation

p-se
Copy link
Contributor

@p-se p-se commented Mar 7, 2024

Adapt regexp to match Azure DevOps git URLs although the URL returned from Azure is using HTTPS instead SSH, as configured in the GitRepo resource.

Refers to SURE-7047
Refers to rancher/fleet#2191

Adapt regexp to match Azure DevOps git URLs although the URL returned from Azure
is using HTTPS instead SSH, as configured in the GitRepo resource.

Refers to SURE-7047, #2191
@p-se p-se requested a review from a team as a code owner March 7, 2024 08:14
Copy link

@thehejik thehejik left a comment

Choose a reason for hiding this comment

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

I successfully verified this PR on local rancher:2.8.3-rc2 by using my custom built gitjob image thehejik/gitjob:v0.9.3-azure. Fleet app version is fleet:103.1.1+up0.9.1-rc.5 and images are:

thehejik/gitjob:v0.9.3-azure
rancher/fleet:v0.9.1-rc.5
rancher/fleet-agent:v0.9.1-rc.5

I tested:

  • Reproduced Azure SSH + Azure Webhook issue with original rancher/gitjob:v0.9.3 image
  • Azure SSH private repo + Azure Webhook and AUTH
  • Azure HTTPS private repo + Azure Webhook and AUTH
  • Azure HTTPS private repo + Azure Webhook and wrong AUTH - the gitjob wasn't triggered
  • Github SSH private repo + Github Webhook and AUTH - Failing in CI but worked on my env (original PR made from fork)

All went fine. Approving

@p-se p-se merged commit ed55d35 into release/fleet/v0.9 Mar 7, 2024
7 of 8 checks passed
@p-se p-se deleted the azure-devops-webhook-ssh-v0.9.3 branch March 7, 2024 12:18
@weyfonk weyfonk mentioned this pull request Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants