Deploying Azure Webjobs from Jenkins pipeline

房东的猫 提交于 2021-02-11 16:59:39

问题


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.


回答1:


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"


来源:https://stackoverflow.com/questions/61060632/deploying-azure-webjobs-from-jenkins-pipeline

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!