mirror of
https://github.com/overte-org/overte.git
synced 2025-06-07 03:01:27 +02:00
add conditional deploy of target
This commit is contained in:
parent
f6fa956144
commit
53d3eea0b1
1 changed files with 43 additions and 35 deletions
|
@ -1,24 +1,10 @@
|
|||
def targets = [
|
||||
'animation-server',
|
||||
'audio-mixer',
|
||||
'avatar-mixer',
|
||||
'domain-server',
|
||||
'eve',
|
||||
'interface',
|
||||
'pairing-server',
|
||||
'space-server',
|
||||
'voxel-server'
|
||||
]
|
||||
|
||||
def JENKINS_URL = 'https://jenkins.below92.com/'
|
||||
def GITHUB_HOOK_URL = 'https://github.com/worklist/hifi/'
|
||||
def GIT_REPO_URL = 'git@github.com:worklist/hifi.git'
|
||||
def HIPCHAT_AUTH_TOKEN = '4ad6553471db605629852ff3265408'
|
||||
def HIPCHAT_ROOM = 'High Fidelity'
|
||||
def ARTIFACT_DESTINATION = 'a-tower.below92.com'
|
||||
|
||||
targets.each {
|
||||
def targetName = it
|
||||
def hifiJob(String targetName, Boolean deploy) {
|
||||
def JENKINS_URL = 'https://jenkins.below92.com/'
|
||||
def GITHUB_HOOK_URL = 'https://github.com/worklist/hifi/'
|
||||
def GIT_REPO_URL = 'git@github.com:worklist/hifi.git'
|
||||
def HIPCHAT_AUTH_TOKEN = '4ad6553471db605629852ff3265408'
|
||||
def HIPCHAT_ROOM = 'High Fidelity'
|
||||
def ARTIFACT_DESTINATION = 'a-tower.below92.com'
|
||||
|
||||
job {
|
||||
name "hifi-${targetName}"
|
||||
|
@ -68,14 +54,18 @@ targets.each {
|
|||
}
|
||||
}
|
||||
|
||||
if (deploy) {
|
||||
publishers {
|
||||
publishScp(ARTIFACT_DESTINATION) {
|
||||
entry("**/build/${targetName}", "deploy/${targetName}")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
configure { project ->
|
||||
|
||||
project / 'publishers' << {
|
||||
if (deploy) {
|
||||
'hudson.plugins.postbuildtask.PostbuildTask' {
|
||||
'tasks' {
|
||||
'hudson.plugins.postbuildtask.TaskProperties' {
|
||||
|
@ -91,6 +81,7 @@ targets.each {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
'jenkins.plugins.hipchat.HipChatNotifier' {
|
||||
jenkinsUrl JENKINS_URL
|
||||
|
@ -101,3 +92,20 @@ targets.each {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
def deployTargets = [
|
||||
'animation-server',
|
||||
'audio-mixer',
|
||||
'avatar-mixer',
|
||||
'domain-server',
|
||||
'eve',
|
||||
'pairing-server',
|
||||
'space-server',
|
||||
'voxel-server'
|
||||
]
|
||||
|
||||
deployTargets.each {
|
||||
hifiJob(it, true)
|
||||
}
|
||||
|
||||
hifiJob('interface', false)
|
Loading…
Reference in a new issue