// 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')

Add .Net CI job definition
Add .Net CI job definition

For a start there is only linux debug job defintions for git pushes and
pull requests. We can add more defintions as needed.
