Make CLI jobs visible in open
This commit is contained in:
parent
f67a247252
commit
969413c7f1
1 changed files with 5 additions and 8 deletions
13
netci.groovy
13
netci.groovy
|
@ -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")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue