代码之家  ›  专栏  ›  技术社区  ›  Nitin Gupta

使用Azure CLI创建管道时出现404错误

  •  0
  • Nitin Gupta  · 技术社区  · 1 年前

    我正在学习azure devops。我正试图创建一个azure devops管道来构建一个sacala项目。

    在dev.ay.com中,我创建了一个名为nitinxgupta9的组织,在这个组织下有一个名为了TheBestAppEver的项目。在这个项目下,我试图创建一个管道来构建以下GitHub scala项目

    https://github.com/nitin3000/ml

    我正在使用下面的azure cli windows提示符命令

    az pipelines create --name "First-Java.CI" --org https://dev.azure.com/nitinxgupta9 --project TheBestAppEver --repository https:// [email protected] /nitinxgupta9/TheBestAppEver/_git/TheBestAppEver --branch master

    我弄错了

    找不到页面。操作返回了404状态代码。

    0 回复  |  直到 1 年前
        1
  •  0
  •   Miao Tian-MSFT    1 年前

    我可以重现这个问题,我发现在添加了 --yml-path /azure-pipelines.yml 到commamd。

    az pipelines create --name "First-Java.test" --org https://dev.azure.com/orgname  --project projectname --repository reponame --branch main --yml-path /azure-pipelines.yml --repository-type tfsgit
    

    enter image description here

    你可以参考这个 similar question .