@@ -14,9 +14,7 @@ if ( !env.CHANGE_ID ) {
1414}
1515
1616pipeline {
17- agent {
18- label 'LongDuration'
19- }
17+ agent none
2018 tools {
2119 jdk 'OpenJDK 17 Latest'
2220 }
@@ -26,39 +24,51 @@ pipeline {
2624 skipDefaultCheckout()
2725 }
2826 stages {
29- stage('Build ') {
27+ stage('Configure ') {
3028 steps {
31- script {
32- dir('hibernate') {
33- checkout scm
34- sh "./gradlew publishToMavenLocal -PmavenMirror=nexus-load-balancer-c4cf05fd92f43ef8.elb.us-east-1.amazonaws.com --no-daemon -Dmaven.repo.local=${env.WORKSPACE}/.m2repository"
35- script {
36- env.HIBERNATE_VERSION = sh (
37- script: "grep hibernateVersion gradle/version.properties|cut -d'=' -f2",
38- returnStdout: true
39- ).trim()
40- }
41- }
42- dir('quarkus') {
43- sh "git clone -b 3.15 --single-branch https://github.com/quarkusio/quarkus.git . || git reset --hard && git clean -fx && git pull"
44- sh "sed -i 's@<hibernate-orm.version>.*</hibernate-orm.version>@<hibernate-orm.version>${env.HIBERNATE_VERSION}</hibernate-orm.version>@' bom/application/pom.xml"
45- // Need to override the default maven configuration this way, because there is no other way to do it
46- sh "sed -i 's/-Xmx5g/-Xmx2048m/' ./.mvn/jvm.config"
47- sh "echo -e '\\n-XX:MaxMetaspaceSize=1024m'>>./.mvn/jvm.config"
48- withMaven(mavenLocalRepo: env.WORKSPACE + '/.m2repository', publisherStrategy:'EXPLICIT') {
49- sh "./mvnw -pl !docs -Dquickly install"
50- // Need to kill the gradle daemons started during the Maven install run
51- sh "sudo pkill -f '.*GradleDaemon.*' || true"
52- // Need to override the default maven configuration this way, because there is no other way to do it
53- sh "sed -i 's/-Xmx2048m/-Xmx1340m/' ./.mvn/jvm.config"
54- sh "sed -i 's/MaxMetaspaceSize=1024m/MaxMetaspaceSize=512m/' ./.mvn/jvm.config"
55- def excludes = "'!integration-tests/kafka-oauth-keycloak,!integration-tests/kafka-sasl-elytron,!integration-tests/hibernate-search-orm-opensearch,!integration-tests/maven,!integration-tests/quartz,!integration-tests/reactive-messaging-kafka,!integration-tests/resteasy-reactive-kotlin/standard,!integration-tests/opentelemetry-reactive-messaging,!integration-tests/virtual-threads/kafka-virtual-threads,!integration-tests/smallrye-jwt-oidc-webapp,!docs'"
56- sh "TESTCONTAINERS_RYUK_CONTAINER_PRIVILEGED=true ./mvnw -Dinsecure.repositories=WARN -pl :quarkus-hibernate-orm -amd -pl ${excludes} verify -Dstart-containers -Dtest-containers -Dskip.gradle.build"
57- }
58- }
59- }
60- }
61- }
29+ requireApprovalForPullRequest 'hibernate'
30+ }
31+ }
32+ stage('Execute') {
33+ agent {
34+ label 'LongDuration'
35+ }
36+ stages {
37+ stage('Build') {
38+ steps {
39+ script {
40+ dir('hibernate') {
41+ checkout scm
42+ sh "./gradlew publishToMavenLocal -PmavenMirror=nexus-load-balancer-c4cf05fd92f43ef8.elb.us-east-1.amazonaws.com --no-daemon -Dmaven.repo.local=${env.WORKSPACE}/.m2repository"
43+ script {
44+ env.HIBERNATE_VERSION = sh (
45+ script: "grep hibernateVersion gradle/version.properties|cut -d'=' -f2",
46+ returnStdout: true
47+ ).trim()
48+ }
49+ }
50+ dir('quarkus') {
51+ sh "git clone -b 3.15 --single-branch https://github.com/quarkusio/quarkus.git . || git reset --hard && git clean -fx && git pull"
52+ sh "sed -i 's@<hibernate-orm.version>.*</hibernate-orm.version>@<hibernate-orm.version>${env.HIBERNATE_VERSION}</hibernate-orm.version>@' bom/application/pom.xml"
53+ // Need to override the default maven configuration this way, because there is no other way to do it
54+ sh "sed -i 's/-Xmx5g/-Xmx2048m/' ./.mvn/jvm.config"
55+ sh "echo -e '\\n-XX:MaxMetaspaceSize=1024m'>>./.mvn/jvm.config"
56+ withMaven(mavenLocalRepo: env.WORKSPACE + '/.m2repository', publisherStrategy:'EXPLICIT') {
57+ sh "./mvnw -pl !docs -Dquickly install"
58+ // Need to kill the gradle daemons started during the Maven install run
59+ sh "sudo pkill -f '.*GradleDaemon.*' || true"
60+ // Need to override the default maven configuration this way, because there is no other way to do it
61+ sh "sed -i 's/-Xmx2048m/-Xmx1340m/' ./.mvn/jvm.config"
62+ sh "sed -i 's/MaxMetaspaceSize=1024m/MaxMetaspaceSize=512m/' ./.mvn/jvm.config"
63+ def excludes = "'!integration-tests/kafka-oauth-keycloak,!integration-tests/kafka-sasl-elytron,!integration-tests/hibernate-search-orm-opensearch,!integration-tests/maven,!integration-tests/quartz,!integration-tests/reactive-messaging-kafka,!integration-tests/resteasy-reactive-kotlin/standard,!integration-tests/opentelemetry-reactive-messaging,!integration-tests/virtual-threads/kafka-virtual-threads,!integration-tests/smallrye-jwt-oidc-webapp,!docs'"
64+ sh "TESTCONTAINERS_RYUK_CONTAINER_PRIVILEGED=true ./mvnw -Dinsecure.repositories=WARN -pl :quarkus-hibernate-orm -amd -pl ${excludes} verify -Dstart-containers -Dtest-containers -Dskip.gradle.build"
65+ }
66+ }
67+ }
68+ }
69+ }
70+ }
71+ }
6272 }
6373 post {
6474 always {
0 commit comments