使用microsoft / azure-functions-deploy:1.0.1

时间:2019-05-24 05:12:38

标签: azure continuous-integration bitbucket

我使用图像python3.7.2创建了一个Bitbucket管道,我压缩了python函数并按照Bitbucket中的文档传递给部署。但是当我尝试使用-pipe:microsoft / azure-functions-deploy :1.0.1,它显示一些错误ValueError:无法检索Scm ​​Uri

- step:
    name: build and test
    image: python:3.7.2
    script:
     - cat /etc/os-release
     - ls
     - apt-get update && apt-get install zip
     - zip -r sample-azure-python-func.zip ./*
    artifacts:
      - sample-azure-python-func.zip

- step:
    name: "deploy to dev function"
    deployment: Staging
    trigger: manual
    script:
      - pipe: microsoft/azure-functions-deploy:1.0.1
        variables:
          AZURE_APP_ID: $AZURE_APP_ID
          AZURE_PASSWORD: $AZURE_PASSWORD
          AZURE_TENANT_ID: $AZURE_TENANT_ID
          FUNCTION_APP_NAME: 'readfromip-sell-py-dev-fnap'
          ZIP_FILE: 'sample-azure-python-func.zip'

INFO:部署zip文件 错误:无法检索Scm ​​Uri 追溯(最近一次通话):   调用中的文件“ /usr/local/lib/python3.6/site-packages/knack/cli.py”,行206     cmd_result = self.invocation.execute(args)   在执行中,文件“ /usr/local/lib/python3.6/site-packages/azure/cli/core/commands/init.py”,第328行     提高前   _run_jobs_serially中的第386行的文件“ /usr/local/lib/python3.6/site-packages/azure/cli/core/commands/init.py”     results.append(self._run_job(expanded_arg,cmd_copy))   _run_job中的文件“ /usr/local/lib/python3.6/site-packages/azure/cli/core/commands/init.py”,行379     six.reraise(* sys.exc_info())   重新增加文件“ /usr/local/lib/python3.6/site-packages/six.py”的第693行     提高价值   _run_job中的第356行“ /usr/local/lib/python3.6/site-packages/azure/cli/core/commands/init.py”     结果= cmd_copy(参数)   在调用中的文件“ /usr/local/lib/python3.6/site-packages/azure/cli/core/commands/init.py”,第171行     返回self.handler(* args,** kwargs)   在default_command_handler中,文件“ /usr/local/lib/python3.6/site-packages/azure/cli/core/init.py”,第452行     返回op(** command_args)   在enable_zip_deploy中,文件“ /usr/local/lib/python3.6/site-packages/azure/cli/command_modules/appservice/custom.py”,第273行     scm_url = _get_scm_url(cmd,resource_group_name,name,slot)   文件“ /usr/local/lib/python3.6/site-packages/azure/cli/command_modules/appservice/custom.py”,行1374,位于_get_scm_url中     引发ValueError('无法检索Scm ​​Uri') ValueError:无法检索Scm ​​Uri

0 个答案:

没有答案