<commit_before>import jobs.generation.Utilities
import jobs.generation.InternalUtilities

def project = GithubProject
def branch = GithubBranchName

// Generate a PR job for debug (test only), which just does testing.
['Debug', 'Release'].each { config ->
    def lowerCaseConfig = config.toLowerCase()

    def newJobName = InternalUtilities.getFullJobName(project, "windows_$lowerCaseConfig", true /* isPR */)

    def newJob = job(newJobName) {
        steps {
            batchFile("build.cmd -Configuration $config")
        }
    }

    // TODO: For when we actually have unit tests in this repo
    // Utilities.addXUnitDotNETResults(myJob, '**/xUnitResults/*.xml')

    Utilities.setMachineAffinity(newJob, 'Windows_NT', 'latest-or-auto-internal')
    InternalUtilities.standardJobSetup(newJob, project, true /* isPR */, "*/${branch}")

    Utilities.addGithubPRTriggerForBranch(newJob, branch, "Windows $config")
}<commit_msg>Adds xUnit test results to Jenkins PRs. Addresses #6<commit_after>import jobs.generation.Utilities
import jobs.generation.InternalUtilities

def project = GithubProject
def branch = GithubBranchName

// Generate a PR job for debug (test only), which just does testing.
['Debug', 'Release'].each { config ->
    def lowerCaseConfig = config.toLowerCase()

    def newJobName = InternalUtilities.getFullJobName(project, "windows_$lowerCaseConfig", true /* isPR */)

    def newJob = job(newJobName) {
        steps {
            batchFile("build.cmd -Configuration $config")
        }
    }

    // TODO: For when we actually have unit tests in this repo
    // Utilities.addXUnitDotNETResults(myJob, '**/xUnitResults/*.xml')

    Utilities.setMachineAffinity(newJob, 'Windows_NT', 'latest-or-auto-internal')
    InternalUtilities.standardJobSetup(newJob, project, true /* isPR */, "*/${branch}")
    Utilities.addXUnitDotNETResults(newJob, "bin/$config/Tests/TestResults.xml", false)

    Utilities.addGithubPRTriggerForBranch(newJob, branch, "Windows $config")
}
{'fraction_non_alphanumeric': 0.11917876815222835, 'fraction_numerical': 0.000500751126690035, 'mean_word_length': 4.045454545454546, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 3}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1717985', 'n_tokens_mistral': 581, 'n_tokens_neox': 584, 'n_words': 143}