-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathJenkinsfile
46 lines (37 loc) · 1.05 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
node {
// git url: 'https://github.com/syslogic/extjs-nvd3-charts.git'
deleteDir()
try {
stage ('Clone') {
checkout scm
}
stage ('Build') {
sh "echo 'copy framework & theme'"
sh "cp -R /home/public/extjs-nvd3-charts/ext ./ext"
sh "cp -R /home/public/extjs-nvd3-charts/resources/themes ./resources/themes"
sh "echo 'building `extjs-nvd3-charts`'"
sh "cd scripts"
sh "./compile.sh"
}
stage ('JsDuck') {
// sh "gem install jsduck"
sh "jsduck --output docs --exclude=ext --warnings=-all:ext/build ext/build/ext-all.js app"
}
stage ('Tests') {
sh "echo 'Jasmine Tests'"
}
stage('Deploy') {
when {
expression {
currentBuild.result == null || currentBuild.result == 'SUCCESS'
}
}
steps {
// sh 'make publish'
}
}
} catch (err) {
currentBuild.result = 'FAILED'
throw err
}
}