This repository has been archived by the owner on Feb 4, 2022. It is now read-only.
forked from feup-infolab/dendro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
55 lines (54 loc) · 1.4 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
properties(
[
pipelineTriggers([cron('H 3 * * *')]),
]
)
pipeline {
agent {
label "dendro"
}
//options {
// disableConcurrentBuilds() //each branch has 1 job running at a time
//}
stages {
stage('Build') {
steps {
sh "chmod +x $WORKSPACE/conf/scripts/install.sh"
sh "$WORKSPACE/conf/scripts/install.sh"
}
}
stage('Test and calculate coverage') {
steps {
retry(3) {
sh "chmod +x $WORKSPACE/conf/scripts/calculate_coverage.sh"
sh "$WORKSPACE/conf/scripts/calculate_coverage.sh"
}
}
}
stage('Report coverage') {
steps {
sh "chmod +x $WORKSPACE/conf/scripts/report_coverage.sh"
sh "$WORKSPACE/conf/scripts/report_coverage.sh"
}
}
stage('Deploy') {
steps {
echo 'No deployments yet. Skipping.'
//sh "chmod +x $WORKSPACE/conf/scripts/deploy.sh"
}
}
stage('Cleanup') {
steps {
echo "Cleaning workspace at $WORKSPACE"
sh "rm -rf $WORKSPACE/*"
}
}
}
post
{
failure {
echo "Cleaning workspace at $WORKSPACE"
sh "rm -rf $WORKSPACE/*"
}
}
}