when i run this i get below. i changed the original enterprise git url
az acr task create \
--registry amitest \
--name utilsbuild \
--image utils:{{.Run.ID}} \
--context https://scm.abctest.com/kubernetes/utils.git \
--file Dockerfile \
--git-access-token xxxxxxxxx
Operation failed with status: 'Bad Request'. Details: "{\"error\":{\"code\":\"InvalidRepositoryUrl\",\"message\":\"Invalid repository URL 'https://scm.abctest.com/kubernetes/utils.git'. For more information see the tutorial https://aka.ms/acr/tasks/tutorial-git-trigger.\",\"target\":\"VisualStudioTeamService\",\"details\":null}}"
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@amitamit281
Thanks for the question! We are investigating and will update you shortly.
@dlepow will acr task support enterprise git?
@dlepow Please add your comments and update the doc if needed
You cannot create Tasks and enable commit or pull-request trigger on github enterprise. It’s not supported. You may still create a task if you want to set up timer trigger or base image update trigger to build your project, but you need to pass ‘—commit-trigger-enabled false’
I will update the documentation to point this out. Thanks @amitamit281 for raising the issue.
Note added in https://docs.microsoft.com/en-us/azure/container-registry/container-registry-tasks-overview
I have just created an "idea" on feedback.azure.com for adding support for GitHub Enterprise. For anyone reading this issue, please vote for the idea so that it hopefully gets implemented.
Most helpful comment
I will update the documentation to point this out. Thanks @amitamit281 for raising the issue.