Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
devops
Manage
Activity
Members
Labels
Plan
Issues
4
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
osm
devops
Commits
56ad727c
Commit
56ad727c
authored
8 years ago
by
garciadeblas
Committed by
Gerrit Code Review
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Testing RO built against gerrit event"
parents
d0f2310b
dc5ae199
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
jenkins/RO/start_build
+11
-2
11 additions, 2 deletions
jenkins/RO/start_build
with
11 additions
and
2 deletions
jenkins/RO/start_build
+
11
−
2
View file @
56ad727c
...
...
@@ -27,15 +27,23 @@ OSM_load_config
if
[
-d
$OSM_MDG
]
;
then
INFO
"reusing existing workspace"
cd
$OSM_MDG
git checkout master
#to make sure that we are in the right branch before pulling the code
git pull
# TO DO: probably it makes sense to fetch all branches, but this requires creating the branches locally
else
INFO
"cloning MDG
$OSM_MDG
from
$OSM_GIT_URL
/
$OSM_MDG
"
git clone
$OSM_GIT_URL
/
$OSM_MDG
cd
$OSM_MDG
fi
if
[
$#
-gt
0
]
;
then
git fetch
--all
||
FATAL
"git fetch didn't work"
git checkout
-f
$1
||
FATAL
"git checkout '
$1
' didn't work"
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"
else
INFO
"Code to compile: master"
git checkout master
fi
INFO
"starting build"
...
...
@@ -47,6 +55,7 @@ INFO "starting build"
rm
*
.pyc
python
-m
py_compile
*
.py
RC
=
$?
git checkout master
#Cleaning the environment. It's also done at the beginning, but it's done just in case.
INFO
"done, RC=
$RC
"
exit
$RC
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment