Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions netci.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
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.addHtmlPublisher(newJob, "TestResults", "Unit Test Results", "index.html")

Utilities.addGithubPRTriggerForBranch(newJob, branch, "Windows $config")
}