1

So, Azure has disabled adding WebJobs directly through the Portal, if source control (Git/Azure DevOps) is configured for that Web App. It gives an error message in the portal. Now, as per this solution, WebJobs can be deployed if Virtual Application is configured and mapped to Release/Pipeline.

WebJob cannot be added from portal if deployment form source control is configured

After following the steps in that link and creating new Build/Release pipeline, I am facing following issues;

(Edited on 4-Oct-2019 12:30 PM UTC.)

Here is how my Build Pipeline looks.

WebJob fails during Build

Warning/Error messages of WebJob Failure

Complete Build Log

WebJob Build

Build Sequence

Log with Nuget restore before WebJob build

Log after specifying Package directory Path

WebJob actually builds properly in local VS. Why does it fail during build?

amsDeveloper
  • 177
  • 4
  • 14
  • What does " The individual CI Build Pipeline that I could newly add fails if I only add .NET Core build task." mean? Add .net core build task, then it will failed? What's error do you meet? Better update some screenshots about this. – Mengdi Liang Oct 04 '19 at 11:22
  • I have added the screenshots. Could you please confirm? – amsDeveloper Oct 04 '19 at 12:33
  • Since you said that it can build in VS successfully, this means the error should not caused by package lack. Also, dotnet build has implicit restore, so the package should also be restored in azure devops. There has another error reason that the package restored path does not match the specific path in your csproj. Since you only share part of log, I am not sure this, you can refer to [my previous answer](https://stackoverflow.com/a/58082935/11508165) for first self-check. This customer has the similar error with you. – Mengdi Liang Oct 04 '19 at 13:24
  • If the error caused reason of this ticket does not match yours. You’d better share full log instead of partly of it. Because there many key info listed in logs. – Mengdi Liang Oct 04 '19 at 13:25
  • I have added the log details. Can you suggest what needs to be done? – amsDeveloper Oct 04 '19 at 19:10
  • here please try 2 solution. One is add `nuget installer task` firstly before dotnet build task. And choose version higher than 4.3.0. The another solution please refer to this [thread](https://github.com/NuGet/Home/issues/4280). In additon, the last two links seems be invalid. There's nothing listed in them. – Mengdi Liang Oct 07 '19 at 02:35
  • Thank you. Let me try second solution. I already tried nuget installer before build, but it didn't work. Also, the last 2 links do give option to download the log files. You need to wait a while for that page to load and give download option. – amsDeveloper Oct 07 '19 at 03:10
  • Aha, I saw the download option, but confused by why need I download. So I closed the page then. Sorry, will download for details~ Addition, which type your webapp is? .net core?Or asp.net. This also very important to troubleshooting:-) – Mengdi Liang Oct 07 '19 at 03:20
  • You get the log file download option below the Advertisement "download". The WebApp is in ASP.NET MVC. WebJobs is in .NET Core. And, they both reside in the same source code repository on Azure DevOps. – amsDeveloper Oct 07 '19 at 03:26

0 Answers0