This is an example of usage of this plugin with pipeline:
pipeline {
agent {label 'slave'}
stages {
stage ('Check out Source Code') {
steps {
git credentialsId: '5a18decf-9eb0-43fb-ae92-08bf2769d530', url: 'https://codebeamerurl.com/git/jenkins_plugin_demo'
}
}
stage('Build and Run Tests') {
steps {
sh "ant report"
xUnitUploader codebeamerUrl: 'https://codebeamerurl.com/cb', credentialsId: '5a18decf-9eb0-43fb-ae92-08bf2769d530', defaultPackagePrefix: '', disabled: false, testCaseTrackerId: 4724686, testConfigurationId: 1790652, testResultsDir: "reports/", testRunTrackerId: 4724689
}
}
}
}