Merge pull request #37 from Sridhar-MS/ci-defintion
Add .Net CI job definition
This commit is contained in:
commit
f230c84b9f
2 changed files with 37 additions and 0 deletions
0
build.sh
Normal file → Executable file
0
build.sh
Normal file → Executable file
37
netci.groovy
Normal file
37
netci.groovy
Normal file
|
@ -0,0 +1,37 @@
|
|||
// Import the utility functionality.
|
||||
|
||||
import jobs.generation.Utilities;
|
||||
import jobs.generation.InternalUtilities;
|
||||
|
||||
def project = 'dotnet/cli'
|
||||
// Define build strings
|
||||
def debugBuildString = '''./build.sh'''
|
||||
|
||||
// Generate the builds for debug
|
||||
|
||||
def linuxDebugJob = job(InternalUtilities.getFullJobName(project, 'linux_debug', false)) {
|
||||
label('ubuntu')
|
||||
steps {
|
||||
shell(debugBuildString)
|
||||
}
|
||||
}
|
||||
|
||||
InternalUtilities.addPrivatePermissions(linuxDebugJob)
|
||||
InternalUtilities.addPrivateScm(linuxDebugJob, project)
|
||||
Utilities.addStandardOptions(linuxDebugJob)
|
||||
Utilities.addStandardNonPRParameters(linuxDebugJob)
|
||||
Utilities.addGithubPushTrigger(linuxDebugJob)
|
||||
|
||||
|
||||
def linuxDebugPRJob = job(InternalUtilities.getFullJobName(project, 'linux_debug', true)) {
|
||||
label('ubuntu')
|
||||
steps {
|
||||
shell(debugBuildString)
|
||||
}
|
||||
}
|
||||
|
||||
InternalUtilities.addPrivatePermissions(linuxDebugPRJob)
|
||||
InternalUtilities.addPrivatePRTestSCM(linuxDebugPRJob, project)
|
||||
Utilities.addStandardOptions(linuxDebugPRJob)
|
||||
Utilities.addStandardPRParameters(linuxDebugPRJob, project)
|
||||
Utilities.addGithubPRTrigger(linuxDebugPRJob, 'Linux Debug Build')
|
Loading…
Add table
Reference in a new issue