【问题标题】:Deploying Azure Webjobs from Jenkins pipeline从 Jenkins 管道部署 Azure Webjobs
【发布时间】:2020-06-29 10:11:03
【问题描述】:

请指导我设置如何从 Jenkins Pipeline 部署 azure web 作业的过程。我已经通过谷歌搜索文档,但无法做到。

【问题讨论】:

标签: azure jenkins-pipeline jenkins-plugins continuous-deployment azure-webjobs


【解决方案1】:

经过多次测试,我通过在部署脚本中添加 OutputPath 参数并删除之前的文件夹来做到这一点。脚本如下所示:

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"

【讨论】:

  • 你知道在运行bat线之前删除发布目录的意义吗?
猜你喜欢
  • 1970-01-01
  • 2020-01-10
  • 2021-11-14
  • 1970-01-01
  • 1970-01-01
  • 2020-12-22
  • 1970-01-01
  • 1970-01-01
  • 2020-10-22
相关资源
最近更新 更多