You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all,
I made a new small Jenkins Pipeline project. Everything works fine, but I don't know how to integrate multiple-cucumber-html-reporter into jenkinsfile.
This is the file
pipeline {
agent any
tools { nodejs "node20" }
stages {
stage('Checkout') {
steps {
git branch: "test", url: 'https://github.com/fezza74/aisacsisco'
}
}
stage('Build') {
steps {
sh 'npm i'
}
}
stage('Pre Test'){
steps {
sh 'npm run pretest'
}
}
stage('Test'){
steps {
sh 'npm run test'
}
}
}
post {
failure {
emailext(
subject: "${JOB_NAME}.${BUILD_NUMBER} FAILED",
mimeType: 'text/html',
to: "[email_address]",
body: readFile("test-results/report/index.html")
)
}
success {
emailext(
subject: "${JOB_NAME}.${BUILD_NUMBER} PASSED",
mimeType: 'text/html',
to: "[email_address]",
body: readFile("test-results/report/index.html")
)
}
}
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all,
I made a new small Jenkins Pipeline project. Everything works fine, but I don't know how to integrate multiple-cucumber-html-reporter into jenkinsfile.
This is the file
And this is the project structures
Where and how can I integrate the report?
Thank you very much
Beta Was this translation helpful? Give feedback.
All reactions