Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set -Xmx4600m for Jenkins build jobs #6231

Merged
merged 1 commit into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if (env.BRANCH_NAME == 'camel-main') {
}

if (env.BRANCH_NAME == 'quarkus-main') {
MAVEN_PARAMS += ' -Poss-snapshots -Dquarkus.version=999-SNAPSHOT'
MAVEN_PARAMS += ' -Dforbiddenapis.skip=true'
}

pipeline {
Expand Down Expand Up @@ -66,6 +66,9 @@ pipeline {
}

stage('Deploy') {
environment {
MAVEN_OPTS = "-Xmx4600m"
}
steps {
sh "./mvnw ${MAVEN_PARAMS} -Dquickly clean deploy"
}
Expand Down
6 changes: 6 additions & 0 deletions Jenkinsfile.sonarcloud
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,18 @@ pipeline {

stages {
stage('Build & Install') {
environment {
MAVEN_OPTS = "-Xmx4600m"
}
steps {
sh "./mvnw ${MAVEN_PARAMS} -Dquickly clean install"
}
}

stage('Code Quality Review') {
environment {
MAVEN_OPTS = "-Xmx4600m"
}
steps {
withCredentials([string(credentialsId: 'apache-camel-core', variable: 'SONAR_TOKEN')]) {
sh "./mvnw $MAVEN_PARAMS -Dsonar.host.url=https://sonarcloud.io -Dsonar.java.experimental.batchModeSizeInKB=2048 -Dsonar.organization=apache -Dsonar.projectKey=apache_camel_quarkus -Dsonar.branch.name=$BRANCH_NAME org.sonarsource.scanner.maven:sonar-maven-plugin:sonar"
Expand Down