summaryrefslogtreecommitdiffstats
path: root/jjb
diff options
context:
space:
mode:
authorAric Gardner <agardner@linuxfoundation.org>2018-02-08 15:18:34 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-02-08 15:18:34 +0000
commit14601e08b9147c4705a444815d9d3b142ccc9893 (patch)
treef79cbb17f4d196951e806735894ddc778760bd8d /jjb
parent6bec6e4eda96b4d938efd1d1a0702295fae2c806 (diff)
parentec681c8ad6c012491040bda7b553c32f4d6c4563 (diff)
Merge "fix sed command in macros"
Diffstat (limited to 'jjb')
-rw-r--r--jjb/global/releng-macros.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/jjb/global/releng-macros.yml b/jjb/global/releng-macros.yml
index bd9f97d3b..a7d947f81 100644
--- a/jjb/global/releng-macros.yml
+++ b/jjb/global/releng-macros.yml
@@ -320,7 +320,7 @@
if [[ -s violation.log ]]; then
echo "Reporting lint result..."
msg="Found syntax error and/or coding style violation(s) in the files modified by your patchset."
- sed -i -e '1s/^//$msg\n\n/' violation.log
+ sed -i -e "1s#^#${msg}\n\n#" violation.log
cmd="gerrit review -p $GERRIT_PROJECT -m \"$(cat violation.log)\" $GERRIT_PATCHSET_REVISION --notify NONE"
ssh -p 29418 gerrit.opnfv.org "$cmd"
@@ -348,7 +348,7 @@
builders:
- shell: |
#!/bin/bash
- # Install python package
+ # Install python package
sudo pip install "flake8==2.6.2"
echo "Checking python code..."