从Jenkins管道部署Azure Webjobs [英] Deploying Azure Webjobs from Jenkins pipeline
本文介绍了从Jenkins管道部署Azure Webjobs的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
请指导我设置如何从Jenkins Pipeline部署Azure Web作业的过程.我已经通过谷歌搜索文档,但无法做到这一点.
Please guide me to setup the procedure how to deploy the azure web jobs from Jenkins Pipeline. I have gone through the google of searching the documentation but couldn't able to make it.
推荐答案
在进行了许多测试之后,我通过在部署脚本中添加 OutputPath 参数并删除了该文件夹来做到了.该脚本如下所示:
After many tests I did it by adding the OutputPath parameter in the deploy script and deleting the folder before. The script looks like this:
dir('Publish'){
deleteDir()
}
bat "\"${tool 'Your MS Build'}\" Path_To_Project.csproj /p:Configuration=Release /p:DeployOnBuild=true /p:AllowUntrustedCertificate=true /p:OutputPath=Publish\\ /p:PublishProfile=path_to_web_job_publish_settings.pubxml /p:Password=your_password"
这篇关于从Jenkins管道部署Azure Webjobs的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文