Make CLI jobs visible in open

This commit is contained in:
Matt Mitchell 2015-12-03 08:37:04 -08:00
parent f67a247252
commit 969413c7f1

View file

@ -4,9 +4,8 @@
// Import the utility functionality. // Import the utility functionality.
import jobs.generation.Utilities; import jobs.generation.Utilities;
import jobs.generation.InternalUtilities;
def project = 'dotnet/cli' def project = GithubProject
def osList = ['Ubuntu', 'OSX', 'Windows_NT'] def osList = ['Ubuntu', 'OSX', 'Windows_NT']
@ -38,7 +37,7 @@ def static getBuildJobName(def configuration, def os) {
} }
// Create the new job // Create the new job
def newCommitJob = job(InternalUtilities.getFullJobName(project, jobName, false)) { def newCommitJob = job(Utilities.getFullJobName(project, jobName, false)) {
// Set the label. // Set the label.
label(machineLabelMap[os]) label(machineLabelMap[os])
steps { steps {
@ -53,14 +52,13 @@ def static getBuildJobName(def configuration, def os) {
} }
} }
InternalUtilities.addPrivatePermissions(newCommitJob) Utilities.addScm(newCommitJob, project)
InternalUtilities.addPrivateScm(newCommitJob, project)
Utilities.addStandardOptions(newCommitJob) Utilities.addStandardOptions(newCommitJob)
Utilities.addStandardNonPRParameters(newCommitJob) Utilities.addStandardNonPRParameters(newCommitJob)
Utilities.addGithubPushTrigger(newCommitJob) Utilities.addGithubPushTrigger(newCommitJob)
def newPRJob = job(InternalUtilities.getFullJobName(project, jobName, true)) { def newPRJob = job(Utilities.getFullJobName(project, jobName, true)) {
// Set the label. // Set the label.
label(machineLabelMap[os]) label(machineLabelMap[os])
steps { steps {
@ -87,8 +85,7 @@ def static getBuildJobName(def configuration, def os) {
} }
InternalUtilities.addPrivatePermissions(newPRJob) Utilities.addPrivatePRTestSCM(newPRJob, project)
InternalUtilities.addPrivatePRTestSCM(newPRJob, project)
Utilities.addStandardOptions(newPRJob) Utilities.addStandardOptions(newPRJob)
Utilities.addStandardPRParameters(newPRJob, project) Utilities.addStandardPRParameters(newPRJob, project)
Utilities.addGithubPRTrigger(newPRJob, "${os} ${configuration} Build") Utilities.addGithubPRTrigger(newPRJob, "${os} ${configuration} Build")