Skip to content
Draft
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
19 changes: 18 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,24 @@ pipeline {
steps {
cleanWs()
sh 'rm -rvf /home/jenkins/.m2/repository/org/apache/camel'
checkout scm
script {
// Use full clone for JDK 21 on ubuntu-avx (needed for Sonar analysis)
// Use shallow clone for all other combinations
if ("${PLATFORM}" == "ubuntu-avx" && "${JDK_NAME}" == "jdk_21_latest") {
echo "Using full clone for ${PLATFORM}-${JDK_NAME} (required for code coverage and Sonar)"
checkout scm
} else {
echo "Using shallow clone for ${PLATFORM}-${JDK_NAME}"
checkout([
$class: 'GitSCM',
branches: scm.branches,
extensions: [
[$class: 'CloneOption', depth: 1, noTags: true, shallow: true]
],
userRemoteConfigs: scm.userRemoteConfigs
])
}
}
}
}

Expand Down
9 changes: 8 additions & 1 deletion Jenkinsfile.jdk26
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,14 @@ pipeline {
steps {
cleanWs()
sh 'rm -rvf /home/jenkins/.m2/repository/org/apache/camel'
checkout scm
checkout([
$class: 'GitSCM',
branches: scm.branches,
extensions: [
[$class: 'CloneOption', depth: 1, noTags: true, shallow: true]
],
userRemoteConfigs: scm.userRemoteConfigs
])
}
Comment thread
apupier marked this conversation as resolved.
}

Expand Down