Add note to Jenkins setup about Git plugin
[icn.git] / ci / jjb / shell / vagrant-verify.sh
1 #!/bin/bash -l
2 echo "---> vagrant-verify.sh"
3
4 # Ensure we fail the job if any steps fail
5 # Disable 'globbing'
6 set -exuf -o pipefail
7
8 function clean_vm {{
9     ./tools/vagrant/destroy.rb
10 }}
11 trap clean_vm EXIT
12
13 # TODO Improve VM performance by only using cores on the same node
14 #sed -i -e '/^\s\+libvirt.cpus/!b' -e "h;s/\S.*/libvirt.cpuset = '0-21,44-65'/;H;g" Vagrantfile
15
16 ./tools/vagrant/destroy.rb
17 vagrant up --no-parallel
18 vagrant ssh jump -c "
19 set -exuf
20 cd /icn
21 sudo su -c 'make {target}'
22 "