-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdmnBld
19 lines (17 loc) · 927 Bytes
/
dmnBld
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
HOST="vdsm"
while getopts :t: opt; do
case $opt in
t)
HOST=$OPTARG
;;
\?)
echo "Invalid option: -$OPTARG" >&2
;;
esac
done
branchName=`git branch | sed -n '/\* /s///p'`
ssh root@$HOST "cd /root/git/ovirt-imageio/; git checkout dummy"
git push -f --all ssh://root@$HOST/root/git/ovirt-imageio/.git
echo "$branchName"
ssh root@$HOST "service httpd start; rm -rf /var/www/html/my-imageio-changes; cd /root/git/ovirt-imageio; git checkout $branchName; echo \"$branchName\"; ./automation/build-artifacts.sh; mkdir /var/www/html/my-imageio-changes; cp exported-artifacts/*.rpm /var/www/html/my-imageio-changes; createrepo /var/www/html/my-imageio-changes; yum clean all; yum --disablerepo=* --enablerepo=my-imageio-changes remove ovirt-imageio-common -y; yum --disablerepo=* --enablerepo=my-imageio-changes install ovirt-imageio-common -y; sudo -u vdsm ./daemon/ovirt-image-daemon"