-
Notifications
You must be signed in to change notification settings - Fork 141
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
newman-reporter-htmlextra 'not found' when running in kubernetes cluster #433
Comments
Hey @mastafadhil: 👋 - Thanks for helping to make the reporter better by raising this ticket. I will take a look as soon as I can and get back to you. Cheers, Danny. |
Hey @mastafadhil Newman and the reporter need to be installed in the same directory. Are you able to do a |
hey Danny, Sorry for the late response. I tried to do 'which' for both newman and newman-reporter-htmlextra and apparently theyre not installed on the same directory, but even when i tried to do a 'cp' to transfer newman-reporter-htmlextra into the same directory in the script it still couldnt be found. However, i finally managed to make it work by installing it directly in the pipeline, instead of having it pre-installed in the Dockerfile, now the pipeline is able to run the postman scripts and generate reports into the correct directory declared in the script. Here's a snippet of a working pipeline script :
|
It seems like you have solved the issue. That's great. That error message doesn't come from my reporter, it's from the Newman code and happens for any reporter that's been mentioned in the command but not in the same directory. I'm going to close this issue now. Thanks for using the reporter!! ❤️ |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Is There An Existing Issue
What Are You Seeing
I am running my pipeline by using kubernetes cluster with docker image that installs :
node - v20.11.1
npm - v9.4.0
newman - v6.1.2
newman-reporter-htmlextra - v1.23.1
the issue appears that the pipeline is not able to detect newman-reporter-htmlextra after successfully installed it, thus unable to generate reports from the run. Would really appreciate if anyone could help me on this. Thank you so much in advance.
Steps To Reproduce The Issue
stage('Run Postman Tests') {
steps {
script {
try {
container('python') {
sh '''
cd Postman
Full Newman Command Or Node Script
HTMLEXTRA Version
1.23.1
Newman Version
6.1.2
Additional Context
No response
The text was updated successfully, but these errors were encountered: