Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
pipeline {
agent any
node ('cf_slave') {
checkout scm
}
stages {
stage ("Unit Tests") {
steps {
sh "./node_modules/.bin/mocha --reporter mocha-junit-reporter --reporter-options mochaFile=./testResults/results.xml"
junit allowEmptyResults: true, testResults: 'testResults/results.xml'
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.