How to deploy azure webjob using Octopus

2019-04-14 04:06发布

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?

3条回答
我命由我不由天
2楼-- · 2019-04-14 04:26

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楼-- · 2019-04-14 04:38

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:

Octopus Deploy WebJob - Deployment Target

  • And in the deployment section, specify the physical path.
    • For continuous job you can specify a path like that:

Octopus Deploy Continuous WebJob - Physical Path

  • For triggered job you can specify a path like that:

Octopus Deploy Triggered WebJob - Physical Path

查看更多
我命由我不由天
4楼-- · 2019-04-14 04:49

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

查看更多
登录 后发表回答