Skip to content

Commit

Permalink
Merge pull request #28 from dsingh07/feature/load_platform
Browse files Browse the repository at this point in the history
Adding parent job to call platform setup jobs
  • Loading branch information
nickdgriffin authored Feb 10, 2017
2 parents 53a2fe8 + b6e9974 commit f3c6486
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions bootstrap/Platform_Management/Job_Runner.groovy
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()
}
}
}

0 comments on commit f3c6486

Please sign in to comment.