Skip to content

Instantly share code, notes, and snippets.

@Romeh
Created December 3, 2017 18:08
Show Gist options
  • Save Romeh/31d959a20e1214e27ba6f36318ee293a to your computer and use it in GitHub Desktop.
Save Romeh/31d959a20e1214e27ba6f36318ee293a to your computer and use it in GitHub Desktop.
stage('Integration tests') {
// Run the maven build
steps {
script {
def mvnHome = tool 'Maven 3.3.9'
if (isUnix()) {
// to skip unit testing execution
sh "'${mvnHome}/bin/mvn' verify -Dunit-tests.skip=true"
} else {
bat(/"${mvnHome}\bin\mvn" verify -Dunit-tests.skip=true/)
}
}
// here cucumber extension will collect the reports for you
cucumber buildStatus: null, fileIncludePattern: '**/cucumber.json', jsonReportDirectory: 'target', sortingMethod: 'ALPHABETICAL'
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment