mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-16 21:45:22 +02:00
Until we can resolve the resource deadlock, stop building in parallel.
This commit is contained in:
parent
5039ad39ee
commit
66761c66cb
1 changed files with 38 additions and 56 deletions
94
Jenkinsfile
vendored
94
Jenkinsfile
vendored
|
@ -1,71 +1,53 @@
|
||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent {
|
||||||
|
kubernetes {
|
||||||
|
yamlFile 'jenkins/pod-templates/cdt-full-pod-plus-eclipse-install.yaml'
|
||||||
|
}
|
||||||
|
}
|
||||||
options {
|
options {
|
||||||
timestamps()
|
timestamps()
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('Run Build') {
|
stage('Code Formatting Checks') {
|
||||||
failFast false
|
steps {
|
||||||
parallel {
|
container('cdt') {
|
||||||
stage('Code Formatting Checks') {
|
timeout(activity: true, time: 30) {
|
||||||
agent {
|
withEnv(['MAVEN_OPTS=-XX:MaxRAMPercentage=60.0']) {
|
||||||
kubernetes {
|
sh 'JAVA_HOME=$JAVA11_HOME PATH=$JAVA_HOME/bin:$PATH MVN="/usr/share/maven/bin/mvn -Dmaven.repo.local=/home/jenkins/.m2/repository \
|
||||||
yamlFile 'jenkins/pod-templates/cdt-full-pod-plus-eclipse-install.yaml'
|
--settings /home/jenkins/.m2/settings.xml" ./releng/scripts/check_code_cleanliness.sh'
|
||||||
}
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
container('cdt') {
|
|
||||||
timeout(activity: true, time: 30) {
|
|
||||||
withEnv(['MAVEN_OPTS=-XX:MaxRAMPercentage=60.0']) {
|
|
||||||
sh 'JAVA_HOME=$JAVA11_HOME PATH=$JAVA_HOME/bin:$PATH MVN="/usr/share/maven/bin/mvn -Dmaven.repo.local=/home/jenkins/.m2/repository \
|
|
||||||
--settings /home/jenkins/.m2/settings.xml" ./releng/scripts/check_code_cleanliness.sh'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
post {
|
|
||||||
always {
|
|
||||||
container('cdt') {
|
|
||||||
archiveArtifacts allowEmptyArchive: true, artifacts: '*.log,native/org.eclipse.cdt.native.serial/**,core/org.eclipse.cdt.core.*/**'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Build and verify') {
|
}
|
||||||
agent {
|
}
|
||||||
kubernetes {
|
stage('Build and verify') {
|
||||||
yamlFile 'jenkins/pod-templates/cdt-full-pod-standard.yaml'
|
steps {
|
||||||
}
|
container('cdt') {
|
||||||
}
|
timeout(activity: true, time: 20) {
|
||||||
steps {
|
withEnv(['MAVEN_OPTS=-XX:MaxRAMPercentage=60.0']) {
|
||||||
container('cdt') {
|
sh 'JAVA_HOME=$JAVA11_HOME PATH=$JAVA_HOME/bin:$PATH /usr/share/maven/bin/mvn \
|
||||||
timeout(activity: true, time: 20) {
|
clean verify -B -V \
|
||||||
withEnv(['MAVEN_OPTS=-XX:MaxRAMPercentage=60.0']) {
|
-Dmaven.test.failure.ignore=true \
|
||||||
sh 'JAVA_HOME=$JAVA11_HOME PATH=$JAVA_HOME/bin:$PATH /usr/share/maven/bin/mvn \
|
-DexcludedGroups=flakyTest,slowTest \
|
||||||
clean verify -B -V \
|
-P baseline-compare-and-replace \
|
||||||
-Dmaven.test.failure.ignore=true \
|
-Ddsf.gdb.tests.timeout.multiplier=50 \
|
||||||
-DexcludedGroups=flakyTest,slowTest \
|
-Dindexer.timeout=300 \
|
||||||
-P baseline-compare-and-replace \
|
-P production \
|
||||||
-Ddsf.gdb.tests.timeout.multiplier=50 \
|
-Dmaven.repo.local=/home/jenkins/.m2/repository \
|
||||||
-Dindexer.timeout=300 \
|
--settings /home/jenkins/.m2/settings.xml \
|
||||||
-P production \
|
'
|
||||||
-Dmaven.repo.local=/home/jenkins/.m2/repository \
|
|
||||||
--settings /home/jenkins/.m2/settings.xml \
|
|
||||||
'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
post {
|
|
||||||
always {
|
|
||||||
container('cdt') {
|
|
||||||
junit '*/*/target/surefire-reports/*.xml,terminal/plugins/org.eclipse.tm.terminal.test/target/surefire-reports/*.xml'
|
|
||||||
archiveArtifacts '*/*/target/surefire-reports/**,terminal/plugins/org.eclipse.tm.terminal.test/target/surefire-reports/**,**/target/work/data/.metadata/.log,releng/org.eclipse.cdt.repo/target/org.eclipse.cdt.repo.zip,releng/org.eclipse.cdt.repo/target/repository/**,releng/org.eclipse.cdt.testing.repo/target/org.eclipse.cdt.testing.repo.zip,releng/org.eclipse.cdt.testing.repo/target/repository/**,debug/org.eclipse.cdt.debug.application.product/target/product/*.tar.gz,debug/org.eclipse.cdt.debug.application.product/target/products/*.zip,debug/org.eclipse.cdt.debug.application.product/target/products/*.tar.gz,debug/org.eclipse.cdt.debug.application.product/target/repository/**,lsp4e-cpp/org.eclipse.lsp4e.cpp.site/target/repository/**,lsp4e-cpp/org.eclipse.lsp4e.cpp.site/target/org.eclipse.lsp4e.cpp.repo.zip'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
post {
|
||||||
|
always {
|
||||||
|
container('cdt') {
|
||||||
|
junit '*/*/target/surefire-reports/*.xml,terminal/plugins/org.eclipse.tm.terminal.test/target/surefire-reports/*.xml'
|
||||||
|
archiveArtifacts '*.log,native/org.eclipse.cdt.native.serial/**,core/org.eclipse.cdt.core.*/**,*/*/target/surefire-reports/**,terminal/plugins/org.eclipse.tm.terminal.test/target/surefire-reports/**,**/target/work/data/.metadata/.log,releng/org.eclipse.cdt.repo/target/org.eclipse.cdt.repo.zip,releng/org.eclipse.cdt.repo/target/repository/**,releng/org.eclipse.cdt.testing.repo/target/org.eclipse.cdt.testing.repo.zip,releng/org.eclipse.cdt.testing.repo/target/repository/**,debug/org.eclipse.cdt.debug.application.product/target/product/*.tar.gz,debug/org.eclipse.cdt.debug.application.product/target/products/*.zip,debug/org.eclipse.cdt.debug.application.product/target/products/*.tar.gz,debug/org.eclipse.cdt.debug.application.product/target/repository/**,lsp4e-cpp/org.eclipse.lsp4e.cpp.site/target/repository/**,lsp4e-cpp/org.eclipse.lsp4e.cpp.site/target/org.eclipse.lsp4e.cpp.repo.zip'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue