Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure DevOps Services Sign In during report generation #574

Closed
lKoTl opened this issue Dec 15, 2022 · 2 comments
Closed

Azure DevOps Services Sign In during report generation #574

lKoTl opened this issue Dec 15, 2022 · 2 comments

Comments

@lKoTl
Copy link

lKoTl commented Dec 15, 2022

Hi,

We started seeing next picture when the coverage is generated.

  1. When there is no branch coverage for the classes the it generates the report and ends up with HTML page to sign in into DevOps when viewing the line coverage.
    image

  2. When there is a branch coverage during report generation it hits 500 error
    image

When navigating manually to the file view as a logged in user (via browser) the file is reachable.

Is there anything that could be configured / changed to make it work?

@danielpalme
Copy link
Owner

Please have a look at my comment here:
#501 (comment)

This comment describes how you can create a "Personal access token" and pass the token to ReportGenerator.

@lKoTl
Copy link
Author

lKoTl commented Dec 15, 2022

Great, that solves it.
Went with System Access token instead Personal, didn't want to personalize the pipelines.

customSettings: 'settings:customHeadersForRemoteFiles=Authorization=Bearer $(System.AccessToken)'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants