unity-azure-pipelines-tasks icon indicating copy to clipboard operation
unity-azure-pipelines-tasks copied to clipboard

azure build failure issue

Open PallabiGIT opened this issue 4 years ago • 11 comments

Hi , I am trying to use a hosted build pipeline in Azure with unity but i am getting build failure . I am getting this error "The Unity build task finished without results. Check editor logs for details." When i checked the editors logs I am not able to find any error. So i need some help to resolve this issue.

PallabiGIT avatar Apr 06 '20 13:04 PallabiGIT

Hi @PallabiGIT,

since you are using hosted agents, did you activate the unity instance before building the project?

FejZa avatar Apr 14 '20 18:04 FejZa

Hi , Still i am getting the similar issue. I tried to activate the unity instance before building the project. Could you please reply me back.

PallabiGIT avatar Apr 20 '20 13:04 PallabiGIT

Can you share the log? What does your build pipeline look like?

FejZa avatar Apr 21 '20 05:04 FejZa

azure pipeline

Hi here is the attached screen shot of build pipeline. But could you please more specific about which log you are asking about.

PallabiGIT avatar Apr 21 '20 13:04 PallabiGIT

Please try using V2 of the build task. Then check the option Specify Log File. This will generate a build log. The task has an output variable that you can use to get the path to the log file and publish it as an artifact of the pipeline.

FejZa avatar Apr 21 '20 18:04 FejZa

I will have an update ready tomorrow morning, that will help debugging this.

FejZa avatar Apr 21 '20 18:04 FejZa

Hi @PallabiGIT,

I just published a new update to the extension at (https://marketplace.visualstudio.com/items?itemName=DinomiteStudios.64e90d50-a9c0-11e8-a356-d3eab7857116&ssr=false#overview).

Usually your organization should update it by default to the latest release. Make sure you are using version 2.7.0 of the extension in your organization.

It will now provide valuable log output while building and running the tasks. This should help us identify the issue.

FejZa avatar Apr 22 '20 09:04 FejZa

Also please update your pipeline to use the windows-2019 agent.

FejZa avatar Apr 22 '20 09:04 FejZa

Hi Please see the below screenshot. azure pipeline log

PallabiGIT avatar Apr 29 '20 09:04 PallabiGIT

I can't reproduce your issue so far. It seems the activation process doesn't even start. Did the Untiy setup finish successfully?

FejZa avatar Apr 30 '20 14:04 FejZa

Hello,

I noticed the same issue as @PallabiGIT I'm trying to use UnityActivateLicenseTask but never managed to reach a successfull job:

##[error]The job running on agent Hosted Agent ran longer than the maximum time of 60 minutes. For more information, see https://go.microsoft.com/fwlink/?linkid=2077134

See the output of UnityActivateLicenseTask :

`Starting: Unity License activation ... #[debug]agent.TempDirectory=d:\a_temp ##[debug]loading inputs and endpoints ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION ##[debug] *** ##[debug] -serial ##[debug] *** ##[debug] -logfile ##[debug] d:\a\1\s\Logs\UnityActivationLog_2020-05-11-11-26-43.log "C:\Program Files\Unity\Hub\Editor\2018.4.14f1\Editor\Unity.exe" -batchmode -quit -nographics -username *** -password *** -serial *** -logfile d:\a\1\s\Logs\UnityActivationLog_2020-05-11-11-26-43.log [0511/112647:ERROR:gpu_info_collector_win.cc(103)] Can't retrieve a valid WinSAT assessment.

##[debug]Exit code 1 received from tool 'C:\Program Files\Unity\Hub\Editor\2018.4.14f1\Editor\Unity.exe' ##[debug]STDIO streams have closed for tool 'C:\Program Files\Unity\Hub\Editor\2018.4.14f1\Editor\Unity.exe' ##[debug]Re-evaluate condition on job cancellation for step: 'Unity License activation'. ##[error]The operation was canceled. ##[debug]System.OperationCanceledException: The operation was canceled. at System.Threading.CancellationToken.ThrowOperationCanceledException() at Microsoft.VisualStudio.Services.Agent.Util.ProcessInvoker.ExecuteAsync(String workingDirectory, String fileName, String arguments, IDictionary 2 environment, Boolean requireExitCodeZero, Encoding outputEncoding, Boolean killProcessOnCancel, InputQueue 1 redirectStandardIn, Boolean inheritConsoleHandler, Boolean keepStandardInOpen, Boolean highPriorityProcess, CancellationToken cancellationToken) at Microsoft.VisualStudio.Services.Agent.ProcessInvokerWrapper.ExecuteAsync(String workingDirectory, String fileName, String arguments, IDictionary 2 environment, Boolean requireExitCodeZero, Encoding outputEncoding, Boolean killProcessOnCancel, InputQueue 1 redirectStandardIn, Boolean inheritConsoleHandler, Boolean keepStandardInOpen, Boolean highPriorityProcess, CancellationToken cancellationToken) at Microsoft.VisualStudio.Services.Agent.Worker.Handlers.DefaultStepHost.ExecuteAsync(String workingDirectory, String fileName, String arguments, IDictionary 2 environment, Boolean requireExitCodeZero, Encoding outputEncoding, Boolean killProcessOnCancel, Boolean inheritConsoleHandler, CancellationToken cancellationToken) at Microsoft.VisualStudio.Services.Agent.Worker.Handlers.NodeHandler.RunAsync() at Microsoft.VisualStudio.Services.Agent.Worker.TaskRunner.RunAsync() at Microsoft.VisualStudio.Services.Agent.Worker.StepsRunner.RunStepAsync(IStep step, CancellationToken jobCancellationToken) Finishing: Unity License activation`

BinaryNumber avatar May 11 '20 13:05 BinaryNumber