Skip to content

Commit

Permalink
Try to add junkins build of 'net40' without VS installed (#1724)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsyme authored Nov 8, 2016
1 parent d135726 commit 4160e3f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions netci.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ import jobs.generation.JobReport;
def project = GithubProject
def branch = GithubBranchName

def osList = ['Windows_NT', 'Ubuntu14.04'] //, 'OSX', 'CentOS7.1'
def osList = ['Windows_NT', 'Ubuntu14.04' ] //, 'OSX', 'CentOS7.1'

def static getBuildJobName(def configuration, def os) {
return configuration.toLowerCase() + '_' + os.toLowerCase()
}

[true, false].each { isPullRequest ->
osList.each { os ->
def configurations = ['Debug', 'Release_ci_part1', 'Release_ci_part2'];
def configurations = ['Debug', 'Release_ci_part1', 'Release_ci_part2', 'Release_net40_no_vs', ];
if (os != 'Windows_NT') {
// Only build one configuration on Linux/... so far
configurations = ['Release'];
Expand All @@ -39,6 +39,9 @@ def static getBuildJobName(def configuration, def os) {
else if (configuration == "Release_ci_part2") {
build_args = "ci_part2"
}
else if (configuration == "Release_net40_no_vs") {
build_args = "net40"
}
else {
build_args = "ci"
}
Expand Down Expand Up @@ -68,7 +71,8 @@ def static getBuildJobName(def configuration, def os) {
// TODO: set to false after tests are fully enabled
def skipIfNoTestFiles = true

Utilities.setMachineAffinity(newJob, os, os == 'Windows_NT' ? 'latest-dev15' : 'latest-or-auto')
def affinity = configuration == 'Release_net40_no_vs' ? 'latest-or-auto' : (os == 'Windows_NT' ? 'latest-dev15' : 'latest-or-auto')
Utilities.setMachineAffinity(newJob, os, affinity)
Utilities.standardJobSetup(newJob, project, isPullRequest, "*/${branch}")
Utilities.addArchival(newJob, "tests/TestResults/*.*", "", skipIfNoTestFiles, false)
Utilities.addArchival(newJob, "${buildFlavor}/**")
Expand Down

0 comments on commit 4160e3f

Please sign in to comment.