mirror of
https://github.com/google/nomulus
synced 2025-12-23 14:25:44 +00:00
Make cloud scheduler deployment part of gradle deploy (alpha, qa and crash only) (#1969)
This commit is contained in:
@@ -103,6 +103,7 @@ explodeWar.doLast {
|
|||||||
file("${it.explodedAppDirectory}/WEB-INF/lib/tools.jar").setWritable(true)
|
file("${it.explodedAppDirectory}/WEB-INF/lib/tools.jar").setWritable(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
appengineDeployAll.finalizedBy ':cloudSchedulerDeployer'
|
||||||
rootProject.deploy.dependsOn appengineDeployAll
|
rootProject.deploy.dependsOn appengineDeployAll
|
||||||
rootProject.stage.dependsOn appengineStage
|
rootProject.stage.dependsOn appengineStage
|
||||||
tasks['war'].dependsOn ':console-webapp:buildConsoleWebappProd'
|
tasks['war'].dependsOn ':console-webapp:buildConsoleWebappProd'
|
||||||
|
|||||||
15
build.gradle
15
build.gradle
@@ -558,6 +558,21 @@ task coreDev {
|
|||||||
|
|
||||||
javadocDependentTasks.each { tasks.javadoc.dependsOn(it) }
|
javadocDependentTasks.each { tasks.javadoc.dependsOn(it) }
|
||||||
|
|
||||||
|
// Runs the script, which deploys cloud scheduler tasks based on the config
|
||||||
|
task cloudSchedulerDeployer {
|
||||||
|
doLast {
|
||||||
|
def env = environment
|
||||||
|
if (!prodOrSandboxEnv) {
|
||||||
|
exec {
|
||||||
|
commandLine 'go', 'run',
|
||||||
|
"${rootDir}/release/builder/cloudSchedulerDeployer.go",
|
||||||
|
"${rootDir}/core/src/main/java/google/registry/env/${env}/default/WEB-INF/cloud-scheduler-tasks.xml",
|
||||||
|
"domain-registry-${env}"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// disable javadoc in subprojects, these will break because they don't have
|
// disable javadoc in subprojects, these will break because they don't have
|
||||||
// the correct classpath (see above).
|
// the correct classpath (see above).
|
||||||
gradle.taskGraph.whenReady { graph ->
|
gradle.taskGraph.whenReady { graph ->
|
||||||
|
|||||||
@@ -1028,6 +1028,7 @@ test {
|
|||||||
// TODO(weiminyu): Remove dependency on sqlIntegrationTest
|
// TODO(weiminyu): Remove dependency on sqlIntegrationTest
|
||||||
}.dependsOn(fragileTest, outcastTest, standardTest, registryToolIntegrationTest, sqlIntegrationTest)
|
}.dependsOn(fragileTest, outcastTest, standardTest, registryToolIntegrationTest, sqlIntegrationTest)
|
||||||
|
|
||||||
|
|
||||||
// When we override tests, we also break the cleanTest command.
|
// When we override tests, we also break the cleanTest command.
|
||||||
cleanTest.dependsOn(cleanFragileTest, cleanOutcastTest, cleanStandardTest,
|
cleanTest.dependsOn(cleanFragileTest, cleanOutcastTest, cleanStandardTest,
|
||||||
cleanRegistryToolIntegrationTest, cleanSqlIntegrationTest)
|
cleanRegistryToolIntegrationTest, cleanSqlIntegrationTest)
|
||||||
|
|||||||
Reference in New Issue
Block a user