|
1 | 1 | pipeline {
|
2 |
| - agent any |
| 2 | + agent { |
| 3 | + kubernetes { |
| 4 | + yamlFile 'jenkins/pod-templates/cdt-full-pod-plus-eclipse-install.yaml' |
| 5 | + } |
| 6 | + } |
3 | 7 | options {
|
4 | 8 | timestamps()
|
5 | 9 | }
|
6 | 10 | stages {
|
7 |
| - stage('Run Build') { |
8 |
| - failFast false |
9 |
| - parallel { |
10 |
| - stage('Code Formatting Checks') { |
11 |
| - agent { |
12 |
| - kubernetes { |
13 |
| - yamlFile 'jenkins/pod-templates/cdt-full-pod-plus-eclipse-install.yaml' |
14 |
| - } |
15 |
| - } |
16 |
| - steps { |
17 |
| - container('cdt') { |
18 |
| - timeout(activity: true, time: 30) { |
19 |
| - withEnv(['MAVEN_OPTS=-XX:MaxRAMPercentage=60.0']) { |
20 |
| - sh 'JAVA_HOME=$JAVA11_HOME PATH=$JAVA_HOME/bin:$PATH MVN="/usr/share/maven/bin/mvn -Dmaven.repo.local=/home/jenkins/.m2/repository \ |
21 |
| - --settings /home/jenkins/.m2/settings.xml" ./releng/scripts/check_code_cleanliness.sh' |
22 |
| - } |
23 |
| - } |
24 |
| - } |
25 |
| - } |
26 |
| - post { |
27 |
| - always { |
28 |
| - container('cdt') { |
29 |
| - archiveArtifacts allowEmptyArchive: true, artifacts: '*.log,native/org.eclipse.cdt.native.serial/**,core/org.eclipse.cdt.core.*/**' |
30 |
| - } |
| 11 | + stage('Code Formatting Checks') { |
| 12 | + steps { |
| 13 | + container('cdt') { |
| 14 | + timeout(activity: true, time: 30) { |
| 15 | + withEnv(['MAVEN_OPTS=-XX:MaxRAMPercentage=60.0']) { |
| 16 | + sh 'JAVA_HOME=$JAVA11_HOME PATH=$JAVA_HOME/bin:$PATH MVN="/usr/share/maven/bin/mvn -Dmaven.repo.local=/home/jenkins/.m2/repository \ |
| 17 | + --settings /home/jenkins/.m2/settings.xml" ./releng/scripts/check_code_cleanliness.sh' |
31 | 18 | }
|
32 | 19 | }
|
33 | 20 | }
|
34 |
| - stage('Build and verify') { |
35 |
| - agent { |
36 |
| - kubernetes { |
37 |
| - yamlFile 'jenkins/pod-templates/cdt-full-pod-standard.yaml' |
38 |
| - } |
39 |
| - } |
40 |
| - steps { |
41 |
| - container('cdt') { |
42 |
| - timeout(activity: true, time: 20) { |
43 |
| - withEnv(['MAVEN_OPTS=-XX:MaxRAMPercentage=60.0']) { |
44 |
| - sh 'JAVA_HOME=$JAVA11_HOME PATH=$JAVA_HOME/bin:$PATH /usr/share/maven/bin/mvn \ |
45 |
| - clean verify -B -V \ |
46 |
| - -Dmaven.test.failure.ignore=true \ |
47 |
| - -DexcludedGroups=flakyTest,slowTest \ |
48 |
| - -P baseline-compare-and-replace \ |
49 |
| - -Ddsf.gdb.tests.timeout.multiplier=50 \ |
50 |
| - -Dindexer.timeout=300 \ |
51 |
| - -P production \ |
52 |
| - -Dmaven.repo.local=/home/jenkins/.m2/repository \ |
53 |
| - --settings /home/jenkins/.m2/settings.xml \ |
54 |
| - ' |
55 |
| - } |
56 |
| - } |
57 |
| - } |
58 |
| - } |
59 |
| - post { |
60 |
| - always { |
61 |
| - container('cdt') { |
62 |
| - junit '*/*/target/surefire-reports/*.xml,terminal/plugins/org.eclipse.tm.terminal.test/target/surefire-reports/*.xml' |
63 |
| - 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' |
64 |
| - } |
| 21 | + } |
| 22 | + } |
| 23 | + stage('Build and verify') { |
| 24 | + steps { |
| 25 | + container('cdt') { |
| 26 | + timeout(activity: true, time: 20) { |
| 27 | + withEnv(['MAVEN_OPTS=-XX:MaxRAMPercentage=60.0']) { |
| 28 | + sh 'JAVA_HOME=$JAVA11_HOME PATH=$JAVA_HOME/bin:$PATH /usr/share/maven/bin/mvn \ |
| 29 | + clean verify -B -V \ |
| 30 | + -Dmaven.test.failure.ignore=true \ |
| 31 | + -DexcludedGroups=flakyTest,slowTest \ |
| 32 | + -P baseline-compare-and-replace \ |
| 33 | + -Ddsf.gdb.tests.timeout.multiplier=50 \ |
| 34 | + -Dindexer.timeout=300 \ |
| 35 | + -P production \ |
| 36 | + -Dmaven.repo.local=/home/jenkins/.m2/repository \ |
| 37 | + --settings /home/jenkins/.m2/settings.xml \ |
| 38 | + ' |
65 | 39 | }
|
66 | 40 | }
|
67 | 41 | }
|
68 | 42 | }
|
69 | 43 | }
|
70 | 44 | }
|
| 45 | + post { |
| 46 | + always { |
| 47 | + container('cdt') { |
| 48 | + junit '*/*/target/surefire-reports/*.xml,terminal/plugins/org.eclipse.tm.terminal.test/target/surefire-reports/*.xml' |
| 49 | + 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' |
| 50 | + } |
| 51 | + } |
| 52 | + } |
71 | 53 | }
|
0 commit comments