Azure webapps 和 functionapps 部署随机失败

时间:2021-01-20 11:11:20

标签: azure jenkins-pipeline azure-functions azure-web-app-service azure-deployment

在管道部署期间,向 azure webapps 和 functionapps 的部署随机失败。有时部署成功完成,没有任何错误,但随机构建失败。尝试并行部署多个 webapps 和 functionapps。使用 Jenkins 管道进行部署。

我用于部署 webapps 的命令是 az webapp deployment source config-zip -g xxx -n xxx --src xxx

失败时记录:

09:47:31  Deployment endpoint responded with status code 202
09:47:31  Configuring default logging for the app, if not already enabled
09:47:31  Zip deployment failed. {'id': 'XXXX', 'status': 3, 'status_text': '', 'author_email': 'N/A', 'author': 'N/A', 'deployer': 'ZipDeploy', 'message': 'Created via a push deployment', 'progress': '', 'received_time': '2021-01-20T08:47:00.3856858Z', 'start_time': '2021-01-20T08:47:00.791329Z', 'end_time': '2021-01-20T08:47:18.7995378Z', 'last_success_end_time': None, 'complete': True, 'active': False, 'is_temp': False, 'is_readonly': True, 'url': 'https://xxxxx.scm.azurewebsites.net/api/deployments/latest', 'log_url': 'https://xxxxx.scm.azurewebsites.net/api/deployments/latest/log', 'site_name': 'xxxxx', 'provisioningState': None}. Please run the command az webapp log deployment show -n xxxx -g xxxx

azure 中的部署日志 url 显示:

{"Message":"An error has occurred.","ExceptionMessage":"No log found for 'latest'.","ExceptionType":"System.IO.FileNotFoundException","StackTrace":"   at Kudu.Core.Deployment.DeploymentManager.GetLogEntries(String id) in C:\\Kudu Files\\Private\\src\\master\\Kudu.Core\\Deployment\\DeploymentManager.cs:line 93\r\n   at Kudu.Services.Deployment.DeploymentController.GetLogEntry(String id) in C:\\Kudu Files\\Private\\src\\master\\Kudu.Services\\Deployment\\DeploymentController.cs:line 375"}```


0 个答案:

没有答案