-
Notifications
You must be signed in to change notification settings - Fork 49
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
Error PAth #102
Comments
@kuroboshi this usually indicates that the pipeline failed to run the tests, did you follow this guide to ensure the service principal you are using has correct perms? |
Hello, Use Workload identity federation is required ? |
No you can use with workload identity or client secret. Please share a screenshot of the permissions you have applied to the service principal. |
Ok thanks that looks fine, do you have Test Plans enabled with licensing as such for test plans? |
It's possible the path it's trying to publish to does in fact not exist
What is your folder structure in git for tests? Review the folder structure and ensure that the relative file path the test result publish step is attempting to publish to, is correct based on your git folder structure. |
Ah ha! so if you read that error message, this isn't an issue with the test path at all, as I first suspected your tests are failing to run. The error message states the variable "userName" is missing. You need to define two variables as per the docs, CLIENTSECRET and CLIENTID, please check you have those set. |
Can you share your yaml? The yaml provided in the maester docs doesn't use a variabled called username but your error seems to indicate you are referring to a variable with that name |
Hello,
|
So this yaml looks okay. Can you confirm that you have a variable named CLIENTID defined in the Variables page? The most likely cause of the error is the client id is not being passed through. You can try adding a |
if your using secret vars you will need to change the pwsh task to the full task and set the secret pipeline variable as a environment variable in the script
You can then use env vars as usual to access the secret variable. Sorry if my example isnt the best it is late! Please see Set secret variables for reference |
@kuroboshi Did you manage to get to the bottom of this? |
Hello, sorry i was in holidays.
|
@kuroboshi only the ClientSecret needs to have the secret hidden. So what you have done above is correct and has fixed the issue. |
Closing inactive thread. |
Hello, i create a Azure Pipeline with Client secret. I have request a free parallelism in Azure DevOps.
After i got it, when i run the pipeline, i have this issue:
`Starting: Publish Maester Html Report
Task : Publish Pipeline Artifacts
Description : Publish (upload) a file or directory as a named artifact for the current run
Version : 1.199.0
Author : Microsoft Corporation
Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/publish-pipeline-artifact
Artifact name input: TestResults
##[error]Path does not exist: /home/vsts/work/1/s/test-results
Finishing: Publish Maester Html Report
`
The text was updated successfully, but these errors were encountered: