Permalink
Browse files

Improver update checking

  • Loading branch information...
vasichkin committed Aug 8, 2011
1 parent 4017b47 commit 49b987310646577eef81d1a292316694a0ae85a6
Showing with 23 additions and 23 deletions.
  1. +1 −2 build_helpers
  2. +12 −13 trigger-dashboard-new
  3. +1 −0 trigger-glance-new
  4. +7 −8 trigger-keystone-new
  5. +1 −0 trigger-nova-new
  6. +1 −0 trigger-swift-new
View
@@ -46,8 +46,7 @@ check_git_update() {
check_for_update() {
check_tarball_update
check_spec_update
- [[ $FireNewBuild == "1" ]] || exit 0
- [ $Debug ] && echo "There is UPDATE"
+ [[ $FireNewBuild == "1" ]] && [ $Debug ] && echo "There is UPDATE"
}
check_enviroment() {
View
@@ -23,22 +23,21 @@ case "$1" in
check_enviroment
check_spec_update
check_git_update
-# [[ $FireNewBuild == "1" ]] && {
- get_git
- update_spec
- create_srpm
- create_rpm # && commit_spec || undo_changes
- sign_rpm
- update_repo
-# }
+ get_git
+ update_spec
+ create_srpm
+ create_rpm # && commit_spec || undo_changes
+ sign_rpm
+ update_repo
exit 0
#do_mock
;;
check)
check_git_update
check_spec_update
- curl -s "http://$jenkins/job/$JobName/build"
- [ $Debug ] && echo "Fire jenkins to build $JobName"
+ [[ $FireNewBuild == "1" ]] || exit 0
+ curl -s "http://$jenkins/job/$JobName/build"
+ [ $Debug ] && echo "Fire jenkins to build $JobName"
exit 0
;;
build_ver)
@@ -48,9 +47,9 @@ case "$1" in
release_check)
check_spec_update
[[ $FireNewBuild == "1" ]] || exit 0
- curl -s "http://$jenkins/job/$JobName/build"
- [ $Debug ] && echo "Fire jenkins to build $JobName"
- exit 0
+ curl -s "http://$jenkins/job/$JobName/build"
+ [ $Debug ] && echo "Fire jenkins to build $JobName"
+ exit 0
;;
release_build)
create_rpm # && commit_spec || undo_changes
View
@@ -37,6 +37,7 @@ case "$1" in
;;
check)
check_for_update
+ [[ $FireNewBuild == "1" ]] || exit 0
curl -s "http://$jenkins/job/$JobName/build"
[ $Debug ] && echo "Fire jenkins to build $JobName"
exit 0
View
@@ -44,20 +44,19 @@ case "$1" in
check_enviroment
check_spec_update
check_git_update
-# [[ $FireNewBuild == "1" ]] && {
- get_git
- update_spec
- create_srpm
- create_rpm # && commit_spec || undo_changes
- sign_rpm
- update_repo
-# }
+ get_git
+ update_spec
+ create_srpm
+ create_rpm # && commit_spec || undo_changes
+ sign_rpm
+ update_repo
#do_mock
exit 0
;;
check)
check_git_update
check_spec_update
+ [[ $FireNewBuild == "1" ]] || exit 0
curl -s "http://$jenkins/job/$JobName/build"
[ $Debug ] && echo "Fire jenkins to build $JobName"
exit 0
View
@@ -36,6 +36,7 @@ case "$1" in
;;
check)
check_for_update
+ [[ $FireNewBuild == "1" ]] || exit 0
curl -s "http://$jenkins/job/$JobName/build"
[ $Debug ] && echo "Fire jenkins to build $JobName"
exit 0
View
@@ -43,6 +43,7 @@ case "$1" in
;;
check)
check_for_update
+ [[ $FireNewBuild == "1" ]] || exit 0
curl -s "http://$jenkins/job/$JobName/build"
[ $Debug ] && echo "Fire jenkins to build $JobName"
exit 0

0 comments on commit 49b9873

Please sign in to comment.