projects
/
osm
/
devops.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RO start_build incorporating GERRIT_REFSPEC and GIT_COMMIT
[osm/devops.git]
/
jenkins
/
RO
/
start_build
diff --git
a/jenkins/RO/start_build
b/jenkins/RO/start_build
index
37cdbdf
..
7ae8d24
100755
(executable)
--- a/
jenkins/RO/start_build
+++ b/
jenkins/RO/start_build
@@
-38,9
+38,8
@@
fi
if [ $# -gt 0 ]; then
INFO "Code to compile: gerrit refspec '$1', commit-id: '$2'"
if [ $# -gt 0 ]; then
INFO "Code to compile: gerrit refspec '$1', commit-id: '$2'"
- FATAL "Testing"
- #git fetch origin $1 || FATAL "git fetch origin '$1' didn't work"
- #git checkout -f $2 || FATAL "git checkout -f '$2' didn't work"
+ git fetch origin $1 || FATAL "git fetch origin '$1' didn't work"
+ git checkout -f $2 || FATAL "git checkout -f '$2' didn't work"
else
INFO "Code to compile: master"
git checkout master
else
INFO "Code to compile: master"
git checkout master
@@
-48,10
+47,6
@@
fi
INFO "starting build"
INFO "starting build"
-### for start_build
-### put your commands here to
-### build, test and produce coverage reports
-
rm *.pyc
python -m py_compile *.py
RC=$?
rm *.pyc
python -m py_compile *.py
RC=$?