-
Notifications
You must be signed in to change notification settings - Fork 49
/
Jenkinsfile
55 lines (51 loc) · 1.69 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
pipeline {
agent {
label 'BLDLNX'
}
options {
disableConcurrentBuilds() // this job never build concurrently
buildDiscarder(logRotator(numToKeepStr: '15')) // log rotation setting, only keeping 15 builds
skipDefaultCheckout() // skips default checkout of this repo.
}
stages { //stages
stage('Checkout') {
steps {
echo "checking out repository" //checkout current repository
checkout scm
sh """
pwd
ls -l
source /bb/bde/documentation/sphinx_env/bin/activate
(cd docs; make html)
ls -l docs/build
"""
}
}
stage('Deploy') {
steps {
sh "mkdir deploy"
dir("deploy") {
sh """
pwd
ls
"""
}
}
}
}
post { // after the build, clean up workspace.
always {
echo 'Cleaning up the workspace after build....'
deleteDir()
}
failure {
mail bcc: '',
cc: '',
replyTo: '',
from: 'bdebuild@bde.dev.bloomberg.com',
to: 'osubbotin@bloomberg.net',
subject: 'Build status of job :'+ env.JOB_NAME,
body: env.BUILD_URL + ' Failed!'
}
}
}