Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added netci for jenkins #4

Merged
merged 5 commits into from
Aug 4, 2016
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")
}