mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-16 20:26:24 +02:00
have the DSL setup the branch deploy job
This commit is contained in:
parent
53d3eea0b1
commit
ee7246cef4
1 changed files with 26 additions and 6 deletions
|
@ -11,7 +11,9 @@ def hifiJob(String targetName, Boolean deploy) {
|
|||
logRotator(7, -1, -1, -1)
|
||||
|
||||
scm {
|
||||
git(GIT_REPO_URL)
|
||||
git(GIT_REPO_URL, 'master') { node ->
|
||||
node / includedRegions << "${targetName}/.*\nlibraries/.*"
|
||||
}
|
||||
}
|
||||
|
||||
configure { project ->
|
||||
|
@ -29,10 +31,6 @@ def hifiJob(String targetName, Boolean deploy) {
|
|||
}
|
||||
}
|
||||
|
||||
project / 'scm' << {
|
||||
includedRegions "${targetName}/.*\nlibraries/.*"
|
||||
}
|
||||
|
||||
project / 'triggers' << 'com.cloudbees.jenkins.GitHubPushTrigger' {
|
||||
spec ''
|
||||
}
|
||||
|
@ -104,8 +102,30 @@ def deployTargets = [
|
|||
'voxel-server'
|
||||
]
|
||||
|
||||
/* setup all of the deploys jobs that use the above template */
|
||||
|
||||
deployTargets.each {
|
||||
hifiJob(it, true)
|
||||
}
|
||||
|
||||
hifiJob('interface', false)
|
||||
/* setup the interface job, doesn't deploy */
|
||||
|
||||
hifiJob('interface', false)
|
||||
|
||||
/* setup the parametrized-build job for builds from jenkins */
|
||||
|
||||
parametrizedJob = hifiJob('$TARGET', true)
|
||||
parametrizedJob.with {
|
||||
name 'hifi-branch-deploy'
|
||||
parameters {
|
||||
stringParam('GITHUB_USER', '', "Specifies the name of the GitHub user that we're building from.")
|
||||
stringParam('GIT_BRANCH', '', "Specifies the specific branch to build and deploy.")
|
||||
stringParam('HOSTNAME', 'devel.highfidelity.io', "Specifies the hostname to deploy against.")
|
||||
stringParam('TARGET', '', "What server to build specifically")
|
||||
}
|
||||
scm {
|
||||
git('git@github.com:/$GITHUB_USER/hifi.git', '$GIT_BRANCH') { node ->
|
||||
node / 'wipeOutWorkspace' << true
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue