简体   繁体   中英

How to deploy azure webjob using Octopus

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?

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 - 部署目标

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

Octopus 部署持续 WebJob - 物理路径

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

Octopus Deploy 触发的 WebJob - 物理路径

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM