Skip to content

Commit

Permalink
Merge pull request #4 from 333fred/jenkins-setup
Browse files Browse the repository at this point in the history
Added netci for jenkins
  • Loading branch information
333fred authored Aug 4, 2016
2 parents e911e26 + 304615e commit 99cae05
Showing 1 changed file with 27 additions and 0 deletions.
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")
}

0 comments on commit 99cae05

Please sign in to comment.