Unable to run VisualGDB Unit Tests from Azure DevOps CI

Umair Asghar 0 Reputation points
2024-12-20T15:43:05.88+00:00

Azure DevOps Question!!!

Hi,

I'm trying to run Unit Tests from Azure DevOps using [VisualGDB + JLink debugger] on a remote target. Running unit tests from agent server's command line work successfully and I got a compiled report for unit tests.

But from CI the Unit Tests task just stuck and timeout, here you can see;
User's image Moreover, while this task is stuck the required process[VisualGDB + JLinkGDBremoteCLI.exe] got created on agent server but they don't work ... Here's the script I'm using to run unit tests

- task: PowerShell@2
  displayName: 'Run Unit Tests'
  timeoutInMinutes: 3
  continueOnError: true
  inputs:
    targetType: inline
    script: |
      cd $(System.DefaultWorkingDirectory)/source/${{parameters.sourceDir}}
      VisualGDB.exe /runtests ${{parameters.sourceDir}}.vgdbcmake /platform:Hardware /config:RelWithDebInfo /targetPath:$(System.ArtifactsDirectory)\unittest /vsoutput:${{parameters.sourceDir}}-unit-test-report.trx
      echo "##vso[task.setvariable variable=timedOut]false"

Thanks,

Umair

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
41,539 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Michael Taylor 56,346 Reputation points
    2024-12-20T16:36:11.96+00:00

    Unfortunately we do not currently provide support for Azure DevOps on this site. Please use their official support channel over on Stack Overflow as discussed here.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.