HHH-15528 Build related fixes for Cockroach, and tryout GH actions
This commit is contained in:
parent
771f338961
commit
886582bf46
|
@ -211,7 +211,10 @@ stage('Build') {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
lock(buildEnv.dbLockableResource) {
|
lock(label: buildEnv.dbLockableResource, variable: 'LOCKED_RESOURCE') {
|
||||||
|
if ( buildEnv.dbLockResourceAsHost ) {
|
||||||
|
cmd += " -DdbHost=${LOCKED_RESOURCE}"
|
||||||
|
}
|
||||||
timeout( [time: buildEnv.longRunning ? 240 : 120, unit: 'MINUTES'] ) {
|
timeout( [time: buildEnv.longRunning ? 240 : 120, unit: 'MINUTES'] ) {
|
||||||
sh cmd
|
sh cmd
|
||||||
}
|
}
|
||||||
|
@ -250,6 +253,7 @@ class BuildEnvironment {
|
||||||
String dbName = 'h2'
|
String dbName = 'h2'
|
||||||
String node
|
String node
|
||||||
String dbLockableResource
|
String dbLockableResource
|
||||||
|
boolean dbLockResourceAsHost
|
||||||
String additionalOptions
|
String additionalOptions
|
||||||
String notificationRecipients
|
String notificationRecipients
|
||||||
boolean longRunning
|
boolean longRunning
|
||||||
|
|
|
@ -26,7 +26,7 @@ this.helper = new JobHelper(this)
|
||||||
helper.runWithNotification {
|
helper.runWithNotification {
|
||||||
stage('Configure') {
|
stage('Configure') {
|
||||||
this.environments = [
|
this.environments = [
|
||||||
new BuildEnvironment( dbName: 'cockroachdb', node: 'LongDuration', longRunning: true ))
|
new BuildEnvironment( dbName: 'cockroachdb', node: 'cockroachdb', longRunning: true, dbLockableResource: 'cockroachdb', dbLockResourceAsHost: true )
|
||||||
];
|
];
|
||||||
|
|
||||||
helper.configure {
|
helper.configure {
|
||||||
|
@ -185,7 +185,10 @@ stage('Build') {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
lock(buildEnv.dbLockableResource) {
|
lock(label: buildEnv.dbLockableResource, variable: 'LOCKED_RESOURCE') {
|
||||||
|
if ( buildEnv.dbLockResourceAsHost ) {
|
||||||
|
cmd += " -DdbHost=${LOCKED_RESOURCE}"
|
||||||
|
}
|
||||||
timeout( [time: buildEnv.longRunning ? 240 : 120, unit: 'MINUTES'] ) {
|
timeout( [time: buildEnv.longRunning ? 240 : 120, unit: 'MINUTES'] ) {
|
||||||
sh cmd
|
sh cmd
|
||||||
}
|
}
|
||||||
|
@ -224,6 +227,7 @@ class BuildEnvironment {
|
||||||
String dbName = 'h2'
|
String dbName = 'h2'
|
||||||
String node
|
String node
|
||||||
String dbLockableResource
|
String dbLockableResource
|
||||||
|
boolean dbLockResourceAsHost
|
||||||
String additionalOptions
|
String additionalOptions
|
||||||
String notificationRecipients
|
String notificationRecipients
|
||||||
boolean longRunning
|
boolean longRunning
|
||||||
|
|
Loading…
Reference in New Issue