-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
44 lines (34 loc) · 1.03 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 {
environment {
CI = 'false'
}
agent any
tools {nodejs "nodejs"}
stages {
stage("build frontend"){
steps {
sh " rm -rf animatedtalkingheads.web"
sh "git clone https://github.com/workshopapps/animatedtalkingheads.web.git"
dir('animatedtalkingheads.web') {
sh "npm install"
sh "npm run build"
}
}
}
stage("Deploy frontend"){
steps {
sh "sudo cp -fr ${WORKSPACE}/animatedtalkingheads.web/build/* /home/omiebi/voxclips/frontend"
sh "sudo systemctl restart voxclips.service"
sh "sudo rm -rf *"
}
}
}
post{
failure{
emailext attachLog: true,
to: '[email protected]',
subject: '${BUILD_TAG} Build failed',
body: '${BUILD_TAG} Build Failed \nMore Info can be found here: ${BUILD_URL} or in the log file below'
}
}
}