Skip to content

Instantly share code, notes, and snippets.

@safebear
Created July 10, 2018 10:53
Show Gist options
  • Save safebear/86ecb82983762042fe6cb007a23b13e4 to your computer and use it in GitHub Desktop.
Save safebear/86ecb82983762042fe6cb007a23b13e4 to your computer and use it in GitHub Desktop.
Jenkins Stage for Extent reports
stage('cucumber bdd tests') {
steps {
sh 'mvn clean -Dtest=${cuke} test -Ddomain=${domain} -Dport=${test_port} -Dcontext=${context} -Dsleep="0" -Dbrowser="headless"'
}
post {
always {
publishHTML([
allowMissing : false,
alwaysLinkToLastBuild: false,
keepAll : false,
reportDir : 'target/cucumber',
reportFiles : 'extent_report.html',
reportName : 'BDD report',
reportTitles : ''
])
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment