mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 00:36:47 +02:00
fixes to order of publish steps, deploy
This commit is contained in:
parent
5945fbc32d
commit
8e94da3cc0
1 changed files with 45 additions and 24 deletions
|
@ -38,7 +38,11 @@ targets.each {
|
||||||
|
|
||||||
'jenkins.plugins.hipchat.HipChatNotifier_-HipChatJobProperty' {
|
'jenkins.plugins.hipchat.HipChatNotifier_-HipChatJobProperty' {
|
||||||
room HIPCHAT_ROOM
|
room HIPCHAT_ROOM
|
||||||
}
|
}
|
||||||
|
'hudson.plugins.buildblocker.BuildBlockerProperty' {
|
||||||
|
useBuildBlocker true
|
||||||
|
blockingJobs 'hifi-dsl-seed'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
project / 'scm' << {
|
project / 'scm' << {
|
||||||
|
@ -49,35 +53,52 @@ targets.each {
|
||||||
spec ''
|
spec ''
|
||||||
}
|
}
|
||||||
|
|
||||||
|
project / 'builders' << 'hudson.plugins.cmake.CmakeBuilder' {
|
||||||
|
sourceDir targetName
|
||||||
|
buildDir 'build'
|
||||||
|
installDir ''
|
||||||
|
buildType 'RelWithDebInfo'
|
||||||
|
generator 'Unix Makefiles'
|
||||||
|
makeCommand 'make'
|
||||||
|
installCommand 'make install'
|
||||||
|
preloadScript ''
|
||||||
|
cmakeArgs ''
|
||||||
|
projectCmakePath '/usr/bin/cmake'
|
||||||
|
cleanBuild 'false'
|
||||||
|
cleanInstallDir 'false'
|
||||||
|
builderImpl ''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
publishers {
|
||||||
|
publishScp(ARTIFACT_DESTINATION) {
|
||||||
|
entry("**/build/${targetName}", "deploy/${targetName}")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
configure { project ->
|
||||||
project / 'publishers' << {
|
project / 'publishers' << {
|
||||||
|
'hudson.plugins.postbuildtask.PostbuildTask' {
|
||||||
|
'tasks' {
|
||||||
|
'hudson.plugins.postbuildtask.TaskProperties' {
|
||||||
|
logTexts {
|
||||||
|
'hudson.plugins.postbuildtask.LogProperties' {
|
||||||
|
logText '.'
|
||||||
|
operator 'AND'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
EscalateStatus true
|
||||||
|
RunIfJobSuccessful true
|
||||||
|
script "curl -d 'action=deploy&role=highfidelity-live&revision=${targetName}' https://a-tower.below92.com"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
'jenkins.plugins.hipchat.HipChatNotifier' {
|
'jenkins.plugins.hipchat.HipChatNotifier' {
|
||||||
jenkinsUrl JENKINS_URL
|
jenkinsUrl JENKINS_URL
|
||||||
authToken HIPCHAT_AUTH_TOKEN
|
authToken HIPCHAT_AUTH_TOKEN
|
||||||
room HIPCHAT_ROOM
|
room HIPCHAT_ROOM
|
||||||
}
|
}
|
||||||
|
|
||||||
'jenkins.plugins.publish__over__ssh.BapSshPublisherPlugin' {
|
|
||||||
consolePrefix 'SSH: '
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
project / 'builders' << 'hudson.plugins.cmake.CmakeBuilder' {
|
|
||||||
sourceDir targetName
|
|
||||||
buildDir 'build'
|
|
||||||
buildType 'Release'
|
|
||||||
generator 'Unix Makefiles'
|
|
||||||
makeCommand 'make'
|
|
||||||
installCommand 'make install'
|
|
||||||
projectCmakePath '/usr/bin/cmake'
|
|
||||||
cleanBuild 'false'
|
|
||||||
cleanInstallDir 'false'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
publishers {
|
|
||||||
publishScp(ARTIFACT_DESTINATION) {
|
|
||||||
entry('**/build/$TARGET', '/deploy/$TARGET')
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue