summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJessica Wagantall <jwagantall@linuxfoundation.org>2022-10-04 17:25:47 +0000
committerGerrit Code Review <gerrit@onap.org>2022-10-04 17:25:47 +0000
commitfee62ca3224108e9bc225b289f8cf6f277cc7441 (patch)
treec4c3dff28b97fde9e3d3fdb88dc8be0d0cd835b4
parentf05189249163b371fb5acb80e1a53a117c8c636a (diff)
parentd142acc5aa02dfc69c2ba3e23cb57d7f1e9a0889 (diff)
Merge "Gerrit review tool wrapper updates"
-rwxr-xr-xshell/onap-gerrit-review-wrapper.sh15
1 files changed, 11 insertions, 4 deletions
diff --git a/shell/onap-gerrit-review-wrapper.sh b/shell/onap-gerrit-review-wrapper.sh
index 0195b8092..26a8dfb83 100755
--- a/shell/onap-gerrit-review-wrapper.sh
+++ b/shell/onap-gerrit-review-wrapper.sh
@@ -16,6 +16,16 @@
# limitations under the License.
# ============LICENSE_END=========================================================
+# Note that all arguments passed to this script are passed on to
+# onap-gerrit-review (OGR) tool
+
+# You can invoke this script with the -E flag to give a non-blocking report.
+# You can also pass in arguments to turn off certain messages using the -m option, such as:
+# -m text-before-copyright -m misnamed-license-txt
+
+# These options can be included in project job templates where the wrapper script
+# is being invoked under pre-build-script hooks
+
set -eu
echo "--> onap-gerrit-review-wrapper.sh"
@@ -32,7 +42,4 @@ rm -Rf /tmp/ogr
export PATH=$PATH:/tmp/ogr/onap-gerrit-review/bin
# Execute OGR
-onap-gerrit-review -S git pull "https://gerrit.onap.org/r/$GERRIT_PROJECT" "$GERRIT_REFSPEC"
-# Use -E flag for non-blocking report
-# onap-gerrit-review -S -E git pull "https://gerrit.onap.org/r/$GERRIT_PROJECT" "$GERRIT_REFSPEC"
-
+onap-gerrit-review -S -G "$@"