Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
asterisk
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
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Voice
asterisk
Commits
ba8f8a28
Commit
ba8f8a28
authored
6 years ago
by
George Joseph
Browse files
Options
Downloads
Patches
Plain Diff
CI: Update cleanup steps and permissions
Change-Id: I7ca92935979d94845af8e1caf4468cbd6209b7de
parent
ad36c4ba
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/CI/gates.jenkinsfile
+2
-0
2 additions, 0 deletions
tests/CI/gates.jenkinsfile
tests/CI/unittests.jenkinsfile
+11
-9
11 additions, 9 deletions
tests/CI/unittests.jenkinsfile
with
13 additions
and
9 deletions
tests/CI/gates.jenkinsfile
+
2
−
0
View file @
ba8f8a28
...
@@ -60,6 +60,8 @@ pipeline {
...
@@ -60,6 +60,8 @@ pipeline {
/* Here's where we switch to scripted pipeline */
/* Here's where we switch to scripted pipeline */
script
{
script
{
stage
(
"Checkout"
)
{
stage
(
"Checkout"
)
{
sh
"sudo chown -R jenkins:users ."
/*
/*
* Jenkins has already automatically checked out the base branch
* Jenkins has already automatically checked out the base branch
* for this change but we now need to check out the change itself
* for this change but we now need to check out the change itself
...
...
This diff is collapsed.
Click to expand it.
tests/CI/unittests.jenkinsfile
+
11
−
9
View file @
ba8f8a28
...
@@ -65,6 +65,7 @@ pipeline {
...
@@ -65,6 +65,7 @@ pipeline {
steps
{
steps
{
script
{
script
{
stage
(
"Checkout"
)
{
stage
(
"Checkout"
)
{
sh
"sudo chown -R jenkins:users ."
/*
/*
* Jenkins has already automatically checked out the base branch
* Jenkins has already automatically checked out the base branch
* for this change but we now need to check out the change itself
* for this change but we now need to check out the change itself
...
@@ -75,6 +76,7 @@ pipeline {
...
@@ -75,6 +76,7 @@ pipeline {
* The Gerrit Trigger provides all the URLs and refspecs to
* The Gerrit Trigger provides all the URLs and refspecs to
* check out the change.
* check out the change.
*/
*/
sh
"sudo chown -R jenkins:users ."
checkout
scm:
[
$class
:
'GitSCM'
,
checkout
scm:
[
$class
:
'GitSCM'
,
branches:
[[
name:
env
.
GERRIT_BRANCH
]],
branches:
[[
name:
env
.
GERRIT_BRANCH
]],
extensions:
[
extensions:
[
...
@@ -134,20 +136,20 @@ pipeline {
...
@@ -134,20 +136,20 @@ pipeline {
keepLongStdio:
true
keepLongStdio:
true
}
}
}
}
stage
(
'Cleanup'
)
{
sh
"sudo make distclean || : "
}
}
}
}
}
}
}
}
}
/*
* The Gerrit Trigger will automatically post the "Verified" results back
* to Gerrit but the verification publisher publishes extra stuff in the
* "Code Review" section of the review.
*/
post
{
post
{
always
{
sh
"sudo make distclean || : "
sh
"sudo rm -rf tests/CI/output || : "
}
/*
* The Gerrit Trigger will automatically post the "Verified" results back
* to Gerrit but the verification publisher publishes extra stuff in the
* "Code Review" section of the review.
*/
success
{
success
{
gerritverificationpublisher
verifyStatusValue:
1
,
verifyStatusCategory:
'Passed'
,
gerritverificationpublisher
verifyStatusValue:
1
,
verifyStatusCategory:
'Passed'
,
verifyStatusURL:
''
,
verifyStatusComment:
''
,
verifyStatusURL:
''
,
verifyStatusComment:
''
,
...
...
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