问题
How to deploy azure webjob using Octopus deployment?
For me, octopus says it is deployed to azure but not able to see my webjob under the website.
Can anyone help how to achieve this?
回答1:
There is a documentation on how to deploy a web job from octopus Azure Web Apps.
I was using Octopus Deploy 3.0 and in my case, I only wanted to deploy a webjob without a web app:
- I've chosen Azure Web App Deployment Target:
- And in the deployment section, specify the physical path.
- For continuous job you can specify a path like that:
- For triggered job you can specify a path like that:
回答2:
have you try to publish your web jobs to your website using Visual Studio?
One way to verify whether your web jobs has been deployed to your website/web app is to access to the Kudu site of your website. https://.scm.azurewebsites.net/azurejobs/#/jobs
Go to Debug Console (CMD), try to access D:\home\site\wwwroot\App_Data\jobs and see if there is any web jobs underneath it
回答3:
You can try using the nuspec to package your artifacts. Put you web jobs under App_Data\jobs\trigger{webjob} or App_Data\jobs\continuous{webjob} based on your job type. And then deploy using Octopus, Azure will be able to recognize it.
This might help: http://blog.amitapple.com/post/74215124623/deploy-azure-webjobs/#.VVRSANNViko
Good luck
来源:https://stackoverflow.com/questions/29990635/how-to-deploy-azure-webjob-using-octopus