Switch to HANA cloud instances
This commit is contained in:
parent
16c980486f
commit
768eb6ca8a
|
@ -39,13 +39,12 @@ stage('Configure') {
|
|||
// new BuildEnvironment( dbName: 'db2' ),
|
||||
// new BuildEnvironment( dbName: 'mssql' ),
|
||||
// new BuildEnvironment( dbName: 'sybase' ),
|
||||
new BuildEnvironment( dbName: 'hana_jenkins', node: 'HANA' ),
|
||||
// Don't build with HANA by default, but only do it nightly until we receive a 3rd instance
|
||||
// new BuildEnvironment( dbName: 'hana_cloud', dbLockableResource: 'hana-cloud', dbLockResourceAsHost: true ),
|
||||
new BuildEnvironment( node: 's390x' ),
|
||||
new BuildEnvironment( dbName: 'tidb', node: 'tidb',
|
||||
additionalOptions: '-DdbHost=localhost:4000',
|
||||
notificationRecipients: 'tidb_hibernate@pingcap.com' ),
|
||||
// Disable EDB for now as the image is not available anymore
|
||||
// new BuildEnvironment( dbName: 'edb' ),
|
||||
new BuildEnvironment( testJdkVersion: '17' ),
|
||||
new BuildEnvironment( testJdkVersion: '18' ),
|
||||
// We want to enable preview features when testing early-access builds of OpenJDK:
|
||||
|
@ -59,6 +58,9 @@ stage('Configure') {
|
|||
if ( pullRequest.labels.contains( 'cockroachdb' ) ) {
|
||||
this.environments.add( new BuildEnvironment( dbName: 'cockroachdb', node: 'LongDuration', longRunning: true ) )
|
||||
}
|
||||
if ( pullRequest.labels.contains( 'hana' ) ) {
|
||||
this.environments.add( new BuildEnvironment( dbName: 'hana_cloud', dbLockableResource: 'hana-cloud', dbLockResourceAsHost: true ) )
|
||||
}
|
||||
}
|
||||
|
||||
helper.configure {
|
||||
|
@ -211,7 +213,7 @@ stage('Build') {
|
|||
}
|
||||
}
|
||||
else {
|
||||
lock(label: buildEnv.dbLockableResource, variable: 'LOCKED_RESOURCE') {
|
||||
lock(label: buildEnv.dbLockableResource, quantity: 1, variable: 'LOCKED_RESOURCE') {
|
||||
if ( buildEnv.dbLockResourceAsHost ) {
|
||||
cmd += " -DdbHost=${LOCKED_RESOURCE}"
|
||||
}
|
||||
|
|
|
@ -30,8 +30,8 @@ elif [ "$RDBMS" == "mssql" ]; then
|
|||
goal="-Pdb=mssql_ci"
|
||||
elif [ "$RDBMS" == "hana" ]; then
|
||||
goal="-Pdb=hana_ci"
|
||||
elif [ "$RDBMS" == "hana_jenkins" ]; then
|
||||
goal="-Pdb=hana_jenkins"
|
||||
elif [ "$RDBMS" == "hana_cloud" ]; then
|
||||
goal="-Pdb=hana_cloud"
|
||||
elif [ "$RDBMS" == "sybase" ]; then
|
||||
goal="-Pdb=sybase_ci"
|
||||
elif [ "$RDBMS" == "tidb" ]; then
|
||||
|
|
|
@ -271,7 +271,7 @@ ext {
|
|||
'connection.init_sql' : ''
|
||||
],
|
||||
hana_cloud : [
|
||||
'db.dialect' : 'org.hibernate.dialect.HANACloudColumnStoreDialect',
|
||||
'db.dialect' : 'org.hibernate.dialect.HANAColumnStoreDialect',
|
||||
'jdbc.driver': 'com.sap.db.jdbc.Driver',
|
||||
'jdbc.user' : 'HIBERNATE_TEST',
|
||||
'jdbc.pass' : 'H1bernate_test',
|
||||
|
|
|
@ -26,7 +26,8 @@ this.helper = new JobHelper(this)
|
|||
helper.runWithNotification {
|
||||
stage('Configure') {
|
||||
this.environments = [
|
||||
new BuildEnvironment( dbName: 'cockroachdb', node: 'cockroachdb', longRunning: true )
|
||||
new BuildEnvironment( dbName: 'cockroachdb', node: 'cockroachdb', longRunning: true ),
|
||||
new BuildEnvironment( dbName: 'hana_cloud', dbLockableResource: 'hana-cloud', dbLockResourceAsHost: true )
|
||||
];
|
||||
|
||||
helper.configure {
|
||||
|
@ -164,12 +165,7 @@ stage('Build') {
|
|||
state[buildEnv.tag]['containerName'] = "sybase"
|
||||
break;
|
||||
case "edb":
|
||||
docker.withRegistry('https://containers.enterprisedb.com', 'hibernateci.containers.enterprisedb.com') {
|
||||
// withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'hibernateci.containers.enterprisedb.com',
|
||||
// usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD']]) {
|
||||
// sh 'docker login -u "$USERNAME" -p "$PASSWORD" https://containers.enterprisedb.com'
|
||||
docker.image('containers.enterprisedb.com/edb/edb-as-lite:v11').pull()
|
||||
}
|
||||
docker.image('quay.io/enterprisedb/edb-postgres-advanced:10.22').pull()
|
||||
sh "./docker_db.sh edb"
|
||||
state[buildEnv.tag]['containerName'] = "edb"
|
||||
break;
|
||||
|
@ -185,7 +181,7 @@ stage('Build') {
|
|||
}
|
||||
}
|
||||
else {
|
||||
lock(label: buildEnv.dbLockableResource, variable: 'LOCKED_RESOURCE') {
|
||||
lock(label: buildEnv.dbLockableResource, quantity: 1, variable: 'LOCKED_RESOURCE') {
|
||||
if ( buildEnv.dbLockResourceAsHost ) {
|
||||
cmd += " -DdbHost=${LOCKED_RESOURCE}"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue