Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
tci-gateway-module
Grpc
Commits
0ee84dc1
Commit
0ee84dc1
authored
9 years ago
by
Jan Tattermusch
Browse files
Options
Downloads
Patches
Plain Diff
only keep docker containers for tests that failed
parent
9ce1fbca
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
tools/jenkins/run_jenkins.sh
+16
-2
16 additions, 2 deletions
tools/jenkins/run_jenkins.sh
with
16 additions
and
2 deletions
tools/jenkins/run_jenkins.sh
+
16
−
2
View file @
0ee84dc1
...
...
@@ -47,15 +47,29 @@ then
FETCH_PULL_REQUEST_CMD
=
"&& git fetch
$GIT_URL
refs/pull/
$ghprbPullId
/merge refs/pull/
$ghprbPullId
/head"
fi
# Make sure the CID file is gone.
rm
-f
docker.cid
# Run tests inside docker
docker run grpc/grpc_jenkins_slave bash
-c
-l
"git clone --recursive
$GIT_URL
/var/local/git/grpc
\
docker run
--cidfile
=
docker.cid
grpc/grpc_jenkins_slave bash
-c
-l
"git clone --recursive
$GIT_URL
/var/local/git/grpc
\
&& cd /var/local/git/grpc
\
$FETCH_PULL_REQUEST_CMD
\
&& git checkout -f
$GIT_COMMIT
\
&& git submodule update
\
&& nvm use 0.12
\
&& rvm use ruby-2.1
\
&& tools/run_tests/run_tests.py -t -l
$language
"
&& tools/run_tests/run_tests.py -t -l
$language
"
||
DOCKER_FAILED
=
"true"
DOCKER_CID
=
`
cat
docker.cid
`
if
[
"
$DOCKER_FAILED
"
==
""
]
then
echo
"Docker finished successfully, deleting the container
$DOCKER_CID
"
docker
rm
$DOCKER_CID
else
echo
"Docker exited with failure, keeping container
$DOCKER_CID
."
echo
"You can SSH to the worker and use 'docker start CID' and 'docker exec -i -t CID bash' to debug the problem."
fi
elif
[
"
$platform
"
==
"windows"
]
then
echo
"building
$language
on Windows"
...
...
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