diff options
author | Prajwal A N <an.prajwal@samsung.com> | 2016-06-23 16:14:18 +0900 |
---|---|---|
committer | Prajwal A N <an.prajwal@samsung.com> | 2016-06-23 16:36:06 +0900 |
commit | 4dcadad3cfbd2e9a1d9e386e190df027c713bc83 (patch) | |
tree | 1439ceb61ae0512338dbc8162e4e9489525f23f2 /netci.groovy | |
parent | 0dbc3f62bd3ce5184cc27884e3239e3deae3cc9a (diff) | |
download | coreclr-4dcadad3cfbd2e9a1d9e386e190df027c713bc83.tar.gz coreclr-4dcadad3cfbd2e9a1d9e386e190df027c713bc83.tar.bz2 coreclr-4dcadad3cfbd2e9a1d9e386e190df027c713bc83.zip |
ARM-CI: Prevent creation of job for Checked configuration
Previously we checked if the configuration being built is either of Debug or Release
after the job had already been created. This resulted in a job being created for
Checked configuration with no commands to execute (for this job).
We prevent the unnecessary creation of job for the Checked configuration by
returning control at the very beginning of the <LinuxARMEmulator, arm, Checked> iteration
Signed-off-by: Prajwal A N <an.prajwal@samsung.com>
Diffstat (limited to 'netci.groovy')
-rwxr-xr-x | netci.groovy | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/netci.groovy b/netci.groovy index 6c86765526..2bd862dc15 100755 --- a/netci.groovy +++ b/netci.groovy @@ -1251,6 +1251,11 @@ combinedScenarios.each { scenario -> // The tuples (LinuxARMEmulator, other architectures) are not handled and control returns def isLinuxEmulatorBuild = false if (os == 'LinuxARMEmulator' && architecture == 'arm') { + // Cross Builds only in Debug and Release modes allowed + if ( configuration == 'Checked' ) { + return + } + isLinuxEmulatorBuild = true os = 'Ubuntu' } else if (os == 'LinuxARMEmulator') { @@ -1755,10 +1760,8 @@ combinedScenarios.each { scenario -> break } else { - // Build only for Debug or Release - if ( lowerConfiguration != 'debug' && lowerConfiguration != 'release' ) { - break - } + // Make sure the build configuration is either of debug or release + assert ( lowerConfiguration == 'debug' ) || ( lowerConfiguration == 'release' ) // Setup variables to hold emulator folder path and the rootfs mount path def armemul_path = '/opt/linux-arm-emulator' |