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
/
debug-tests-master-gdb-latest-branch.Jenkinsfile
74 lines (74 loc) · 2.93 KB
/
debug-tests-master-gdb-latest-branch.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
pipeline {
agent {
kubernetes {
yamlFile 'jenkins/pod-templates/cdt-full-pod-standard.yaml'
}
}
options {
timestamps()
disableConcurrentBuilds()
}
stages {
stage('Git Clone CDT') {
steps {
container('cdt') {
// We use "checkout" instead of "git" here so we can specify relativeTargetDir and other options
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'CloneOption', honorRefspec: true, noTags: true, reference: '', shallow: true], [$class: 'RelativeTargetDirectory', relativeTargetDir: 'eclipse-cdt']], submoduleCfg: [], userRemoteConfigs: [[refspec: '+refs/heads/master:refs/remotes/origin/master', url: 'https://git.eclipse.org/r/cdt/org.eclipse.cdt.git']]])
}
}
}
stage('Git Clone GDB') {
steps {
container('cdt') {
// We use "checkout" instead of "git" here so we can specify relativeTargetDir and other options
checkout([$class: 'GitSCM', branches: [[name: '*/gdb-10-branch']], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'CloneOption', honorRefspec: true, noTags: true, reference: '', shallow: true], [$class: 'RelativeTargetDirectory', relativeTargetDir: 'binutils-gdb']], submoduleCfg: [], userRemoteConfigs: [[refspec: '+refs/heads/gdb-10-branch:refs/remotes/origin/gdb-10-branch', url: 'https://github.com/bminor/binutils-gdb.git']]])
}
}
}
stage('Build GDB') {
steps {
container('cdt') {
timeout(activity: true, time: 20) {
sh """
mkdir gdb-build
cd gdb-build
${WORKSPACE}/binutils-gdb/configure --prefix=${WORKSPACE}/gdb-install
make -j1 V=1
make -C gdb install MAKEINFO=true
make -C gdbserver install MAKEINFO=true
"""
}
}
}
}
stage('Run build') {
steps {
container('cdt') {
timeout(activity: true, time: 20) {
withEnv(['MAVEN_OPTS=-XX:MaxRAMPercentage=60.0']) {
sh "cd ${WORKSPACE}/eclipse-cdt && /usr/share/maven/bin/mvn \
clean verify -B -V \
-Pskip-tests-except-dsf-gdb \
-Dmaven.test.failure.ignore=true \
-Dcdt.tests.dsf.gdb.versions=gdb,gdbserver \
-Ddsf.gdb.tests.gdbPath=${WORKSPACE}/gdb-install/bin \
-DskipDoc=true \
-Ddsf.gdb.tests.timeout.multiplier=50 \
-Dindexer.timeout=300 \
-Dmaven.repo.local=/home/jenkins/.m2/repository \
--settings /home/jenkins/.m2/settings.xml \
"
}
}
}
}
}
}
post {
always {
container('cdt') {
junit 'eclipse-cdt/*/*/target/surefire-reports/*.xml'
}
}
}
}