-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from dsingh07/feature/load_platform
Adding parent job to call platform setup jobs
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Constants | ||
|
||
def platformManagementFolderName= "/Platform_Management" | ||
def platformManagementFolder = folder(platformManagementFolderName) { displayName('Platform Management') } | ||
|
||
// Jobs | ||
def jobRunner = workflowJob(platformManagementFolderName + "/Job_Runner") | ||
|
||
// Setup setup_cartridge | ||
jobRunner.with{ | ||
description("This job is responsible for executing all required jobs under the Platform_Management folder to setup your platform") | ||
properties { | ||
rebuild { | ||
autoRebuild(false) | ||
rebuildDisabled(false) | ||
} | ||
} | ||
definition { | ||
cps { | ||
script('''// Load the list of default cartridges | ||
build job: 'Platform_Management/Load_Cartridge_List' | ||
// Setup the Gerrit ACL | ||
build job: 'Platform_Management/Setup_Gerrit' | ||
''') | ||
sandbox() | ||
} | ||
} | ||
} |