-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Azure DevOps - "0 projects are to be planned based on their when_modified config" #849
Comments
Thanks for finding that parsing bug! I'm pretty sure the error above is caused by my go-azuredevops library not handling the time formats sent in the webhooks. The new Microsoft Go azure-devops SDK mentions it. Just out of curiosity, what ResourceVersion do you have selected in the webhook subscription? I'll address the time parsing issue in go-azuredevops for now. Maybe we can move to the Microsoft library at some point. Regarding the other issue, I'll dig into that a bit more. I haven't been relying on auto-planning in our workflow yet so I didn't even notice. |
I ran into the time format bug as well. To work around it for now, I've switched to the old UI for Service Hooks, since the new UI doesn't seem to let you save a web hook without testing it first. |
Thanks for looking into it; I'm using Version 1.0 for the Pull Request Created & Pull Request Updated hooks, and Version 2.0 for the Pull Request Commented On hook, as per the docs here: https://www.runatlantis.io/docs/configuring-webhooks.html#azure-devops |
@jimmyjamesbaldwin I have a fix that addresses the time bug, at least as far as the test webhooks indicate. I'll submit a PR for that shortly. It looks like the autoplan wasn't matching based on the when_modified dates because of a missing leading slash in the project dir in the repo
this also wasn't working, but seems like it should have based on the docs:
But this matched successfully and ran autoplan:
|
Adding the slash before the directory indeed solved my problem - many thanks @mcdafydd. Now that things are working I noticed a minor UI issue when atlantis comments on the PR; it looks like azure devops doesn't support emojis so we see the alt text instead. Doesn't bother me but could make things look prettier: |
Could this please be re-opened and fixed? |
@t3mi Perhaps we could open a new issue to track the leading slash thing? I ran into it as well and it confused the heck out of me. |
@amasover it would be better to track it here unless @jimmyjamesbaldwin doesn't want to reopen it for some reason. |
Oops! Actually I realize the issue now (disregard my above comment). Azure devops was using absolute paths instead of relative paths so that's why you needed to set an absolute path in the project config. #888 will fix that. |
Hi, I'm following the instructions to configure atlantis with Azure Devops but am running into some issues; I'm able to get atlantis working with GitLab which adds to the confusion.
Version: runatlantis/atlantis:v0.10.1
Environment vars for azure creds setup and ATLANTIS_REPO_CONFIG_JSON with "allow_custom_workflows":true.
I have a test project structure like so:
Directory structure
atlantis.yaml:
testing/main.tf
testing/provider.tf
if I modify the name of the test resource and create a merge request, atlantis receives the webhook and prints:
I've tried setting up a new project and have checked the webhook settings, but am at a bit of a loss... I also tried manually setting when_modified in the project definition, but it doesn't appear to make a difference. Can anyone tell me what I'm doing wrong?
screenshots for clarity:
The text was updated successfully, but these errors were encountered: