Repository navigation
Expand file tree
/
Copy pathJenkinsfile.freeswitch
More file actions
26 lines (25 loc) · 1.93 KB
/
Copy pathJenkinsfile.freeswitch
File metadata and controls
26 lines (25 loc) · 1.93 KB
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
// vim: ft=groovy
properties([
buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '3', daysToKeepStr: '', numToKeepStr: '3')),
pipelineTriggers([[$class: 'PeriodicFolderTrigger', interval: '2d']])
])
node('master') {
stage('Host Debug Information') {
sh 'set -x && hostname && uname -a && free -h && df -h'
}
deleteDir()
dir('rootio-install-scripts') {
checkout scm
}
try {
stage('Prepare factory') {
sh "git clone https://github.com/liquidinvestigations/factory.git factory"
sh "cat /opt/jenkins-files/snapshots/jessie.factory.gz | zcat | ./factory/factory import jessie"
}
stage('install freeswitch') {
sh "./factory/factory --platform jessie run --share rootio-install-scripts:/mnt/scripts --commit --yes /mnt/scripts/install-freeswitch.sh"
}
} finally {
deleteDir()
}
}