You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As expected, the Azure DevOps triggers the HTTP request and receives an HTTP 200 response. Analysing the argocd-server logs we can see that it received the Push request with the right repository:
I have followed the following bug Webhook not refreshing applications, but that one is related to the ApplicationSet Webhook - fix in a further release.
We currently use both Application and ApplicationSets and both Webhooks do not work as expected (meaning that they do not refresh the respective application).
Could you look at #20039 to see if you are having the same issue?
Well, it is similar. Thank you so much.
The problem is using SSH because the URL that Azure DevOps gives to clone is different from the one given in the Azure DevOps Webhook POST data. Just to record it here for future reference, the URL returned from the Azure DevOps Webhook POST data is:
This will make the regex to fail and it gives the following logs:
time="2024-09-27T10:45:58Z" level=debug msg="<user>@vs-ssh.visualstudio.com:v3/<company>/<project>/<repository> does not match (?i)^(http://|https://|[a-zA-Z0-9_\\.][a-zA-Z0-9_\\.-]{0,30}[a-zA-Z0-9_\\.\\$-]?@|ssh://([a-zA-Z0-9_\\.][a-zA-Z0-9_\\.-]{0,30}[a-zA-Z0-9_\\.\\$-]?@)?)<company>\\.visualstudio\\.com(:[0-9]+|)[:/]<project>/_git/<repository>(\\.git)?$"
Here is the Regex used:
I will close this issue and continue the tracking in the following one, since it is the same: #16854
Checklist:
argocd version
.Describe the bug
A push code to master branch in an Azure DevOps repository is not triggering the automatic Application refresh.
Azure DevOps Repository
For the sake of this, let's take as an example an ElasticSearch application (omitting non relevant applications).
Description:
To Reproduce
Add a webhook as described in documentation.
Create an Ingress to expose the "argocd-server" Service Webhook externally:
Commit a push to the Azure DevOps Repository changing the elasticsearch/overlays/staging/myelasticsearch.yaml configuration.
Expected behavior
Argocd refresh applications and not waiting before it updated by refresh interval.
Screenshots
Version
Logs
As expected, the Azure DevOps triggers the HTTP request and receives an HTTP 200 response. Analysing the argocd-server logs we can see that it received the Push request with the right repository:
Logs right after the "Received push" log:
No other relevant logs.
The text was updated successfully, but these errors were encountered: