【发布时间】:2021-05-25 20:34:34
【问题描述】:
如何使用构建管道将文件提交到 azure git repo。
我正在从我的 azure ci 管道生成一些文件,我想将这些文件提交到我在 ci 管道中使用的同一个 repo 中。
我添加了 azure CLI 任务并添加了一个内联命令来提交代码,但它给了我错误并且无法正常工作。
git add .
git commit -m "test commit"
git push -u origin Trunk
【问题讨论】:
-
您是否按照文档中的这些步骤进行操作? docs.microsoft.com/en-us/azure/devops/pipelines/scripts/…
-
是的,它给了我“无法提示,因为用户交互性已被禁用”错误。
-
嗨@Jaydeepsinh 这张票有更新吗?如果该建议可以为您提供帮助,请随时告诉我。只是提醒this。
-
另外,我在 git add "git remote set-url origin username:gitpassword@repository url" 之前添加了这个 url
标签: azure-devops azure-devops-pipelines azure-git-deployment