-
Notifications
You must be signed in to change notification settings - Fork 1
/
Jenkinsfile
25 lines (23 loc) · 1.06 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
node ('packer.clifflabs.local') {
checkout scm
stage ('Build CentOS 6.8 Puppet 4.3.2 template') {
echo "Build CentOS 6.8 Puppet 4.3.2 template"
sh "jenkins_scripts/packer_build_centos-6.8-puppet-4.3.2.sh"
sh "OVA_NAME='centos-68-puppet-432' jenkins_scripts/vcenter_deploy_ova.sh"
}
stage ('Build CentOS 6.8 Puppet Enterprise 3.8.2 template') {
echo "Build CentOS 6.8 Puppet Enterprise 3.8.2 template"
sh "jenkins_scripts/packer_build_centos-6.8-pe-puppet-3.8.2.sh"
sh "OVA_NAME='centos-68-pe-puppet-382' jenkins_scripts/vcenter_deploy_ova.sh"
}
stage ('Build CentOS 7 Puppet 4.3.2 template') {
echo "Build CentOS 7 Puppet 4.3.2 template"
sh "jenkins_scripts/packer_build_centos-7.0-puppet-4.3.2.sh"
sh "OVA_NAME='centos-70-puppet-432' jenkins_scripts/vcenter_deploy_ova.sh"
}
stage ('clean up workspace') {
echo "running 'rm -rf /home/jenkins/workspace/centos-packer-templates/*'"
sh "rm -rf /home/jenkins/workspace/centos-packer-templates/*"
}
echo "Builds completed"
}