Kiril Nesenko has posted comments on this change.
Change subject: Hook to check that the Bug-Url was specified
......................................................................
Patch Set 2: (2 inline comments)
....................................................
File hooks/bz/patchset-created.bz.1.bug_url
Line 22: conf.load
Line 23:
Line 24: message=""
Line 25: ## Check if we have to manage that branch
Line 26: if ! vindex=$(tools.is_in "$branch" "${BRANCHES[@]}"); then
I think that this line will be always true because of variable assignment will
always succeed
Line 27: echo "Ignoring branch $branch"
Line 28: exit 2
Line 29: fi
Line 30: bug_ids=($(bz.get_bug_id $commit))
Line 28: exit 2
Line 29: fi
Line 30: bug_ids=($(bz.get_bug_id $commit))
Line 31: ## break the chain if no bug-url found
Line 32: if [[ "$bug_ids" == "" ]]; then
-z "${bug_ids}"
Line 33: exit 2
Line 34: fi
Line 35: bz_password="${BZ_PASS?No BZ_PASS in the config}"
Line 36: bz_user="${BZ_USER?No BZ_USER in the config}"
--
To view, visit http://gerrit.ovirt.org/15571
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: Ia127c6a3d1400fb7c1646990d844b607604d3e60
Gerrit-PatchSet: 2
Gerrit-Project: gerrit-admin
Gerrit-Branch: master
Gerrit-Owner: David Caro <[email protected]>
Gerrit-Reviewer: Eyal Edri <[email protected]>
Gerrit-Reviewer: Itamar Heim <[email protected]>
Gerrit-Reviewer: Kiril Nesenko <[email protected]>
Gerrit-Reviewer: Moran Goldboim <[email protected]>
Gerrit-Reviewer: Ohad Basan <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches