This repository has been archived by the owner on Apr 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
cdt-9.8.Jenkinsfile
48 lines (48 loc) · 1.95 KB
/
cdt-9.8.Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
pipeline {
agent {
kubernetes {
yamlFile 'jenkins/pod-templates/cdt-full-pod-standard.yaml'
}
}
options {
timestamps()
disableConcurrentBuilds()
}
stages {
stage('Git Clone') {
steps {
container('cdt') {
git branch: 'cdt_9_8', url: 'https://git.eclipse.org/r/cdt/org.eclipse.cdt.git'
}
}
}
stage('Run build') {
steps {
container('cdt') {
timeout(activity: true, time: 20) {
withEnv(['MAVEN_OPTS=-XX:MaxRAMPercentage=60.0']) {
sh 'JAVA_HOME=$JAVA8_HOME PATH=$JAVA_HOME/bin:$PATH /usr/share/maven/bin/mvn \
clean verify -B -V \
-P build-standalone-debugger-rcp \
-P baseline-compare-and-replace \
-Ddsf.gdb.tests.timeout.multiplier=50 \
-Dindexer.timeout=300 \
-P production \
-Dmaven.repo.local=/home/jenkins/.m2/repository \
--settings /home/jenkins/.m2/settings.xml \
'
}
}
}
}
}
}
post {
always {
container('cdt') {
junit '*/*/target/surefire-reports/*.xml'
archiveArtifacts '**/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'
}
}
}
}