forked from The-OpenROAD-Project/OpenROAD
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Jenkinsfile
85 lines (85 loc) · 2.47 KB
/
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
75
76
77
78
79
80
81
82
83
84
85
pipeline {
agent any
environment {
COMMIT_AUTHOR_EMAIL= sh (returnStdout: true, script: "git --no-pager show -s --format='%ae'").trim()
}
stages {
stage('Build and test') {
parallel {
stage('Local centos7 gcc8') {
stages {
stage('Build') {
steps {
sh './jenkins/build.sh'
}
}
stage('Test') {
steps {
script {
parallel (
'Unit tests': { sh './test/regression' },
'aes_nangate45': { sh './test/regression aes_nangate45' },
'gcd_nangate45': { sh './test/regression gcd_nangate45' },
'tinyRocket_nangate45': { sh './test/regression tinyRocket_nangate45' },
'aes_sky130': { sh './test/regression aes_sky130' },
'gcd_sky130': { sh './test/regression gcd_sky130' },
'ibex_sky130': { sh './test/regression ibex_sky130' },
)
}
}
}
}
}
stage('Docker centos7 clang7') {
stages{
stage('Build') {
steps {
sh './jenkins/docker/build.sh centos7 clang7'
}
}
stage('Test') {
steps {
sh './jenkins/docker/test.sh centos7 clang7'
}
}
}
}
stage('Docker ubuntu18 gcc8') {
stages{
stage('Build') {
steps {
sh './jenkins/docker/build.sh ubuntu18 gcc8'
}
}
stage('Test') {
steps {
sh './jenkins/docker/test.sh ubuntu18 gcc8'
}
}
}
}
}
}
}
post {
failure {
script {
if ( env.BRANCH_NAME == 'openroad' ) {
echo('Main development branch: report to stakeholders and commit author.')
EMAIL_TO="$COMMIT_AUTHOR_EMAIL, \$DEFAULT_RECIPIENTS, cherry@parallaxsw.com"
REPLY_TO="$EMAIL_TO"
} else {
echo('Feature development branch: report only to commit author.')
EMAIL_TO="$COMMIT_AUTHOR_EMAIL"
REPLY_TO='$DEFAULT_REPLYTO'
}
emailext (
to: "$EMAIL_TO",
replyTo: "$REPLY_TO",
subject: '$DEFAULT_SUBJECT',
body: '$DEFAULT_CONTENT',
)
}
}
}
}