问题
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