-
Notifications
You must be signed in to change notification settings - Fork 36
/
Jenkinsfile
44 lines (42 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
pipeline {
agent {
label "purdue-cluster"
}
options {
disableConcurrentBuilds()
}
stages {
stage('setup-data') {
steps{
sh 'ln -sf /home/tgrogers-raid/a/common/data_dirs .'
sh 'rm -rf env-setup && git clone [email protected]:purdue-aalp/env-setup.git &&\
cd env-setup && git checkout cluster-ubuntu'
}
}
stage('11.0-simulations-build'){
steps{
sh '''#!/bin/bash
source ./env-setup/11.0_env_setup.sh &&\
source ./src/setup_environment &&\
make -C ./src clean &&\
make -C ./src all'''
}
}
}
post {
success {
emailext body: "See ${BUILD_URL}",
recipientProviders: [[$class: 'CulpritsRecipientProvider'],
[$class: 'RequesterRecipientProvider']],
subject: "[AALP Jenkins] Build #${BUILD_NUMBER} - Success!",
to: '[email protected]'
}
failure {
emailext body: "See ${BUILD_URL}",
recipientProviders: [[$class: 'CulpritsRecipientProvider'],
[$class: 'RequesterRecipientProvider']],
subject: "[AALP Jenkins] Build #${BUILD_NUMBER} - ${currentBuild.result}",
to: '[email protected]'
}
}
}