Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
Hsin-Yu Chien
edx-platform-release
Commits
d4cdd5b4
Commit
d4cdd5b4
authored
12 years ago
by
Calen Pennington
Browse files
Options
Downloads
Patches
Plain Diff
Make jenkins talk to the github status api
parent
61c17cab
Loading
Loading
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
jenkins/base.sh
+12
-0
12 additions, 0 deletions
jenkins/base.sh
jenkins/test_edge.sh
+6
-1
6 additions, 1 deletion
jenkins/test_edge.sh
jenkins/test_lms.sh
+9
-1
9 additions, 1 deletion
jenkins/test_lms.sh
with
27 additions
and
2 deletions
jenkins/base.sh
0 → 100644
+
12
−
0
View file @
d4cdd5b4
function
github_status
{
gcli status create mitx mitx
$GIT_COMMIT
\
--params
=
$1
\
target_url:
$BUILD_URL
\
description:
"Build #
$BUILD_NUMBER
is running"
\
-f
csv
}
function
github_mark_failed_on_exit
{
trap
'[ $? == "0" ] || github_status state:failed'
EXIT
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
jenkins/test_edge.sh
+
6
−
1
View file @
d4cdd5b4
...
...
@@ -3,6 +3,9 @@
set
-e
set
-x
github_mark_failed_on_exit
github_status state:pending
# Reset the submodule, in case it changed
git submodule foreach
'git reset --hard HEAD'
...
...
@@ -26,4 +29,6 @@ rake phantomjs_jasmine_cms || true
rake coverage:xml coverage:html
[
$TESTS_FAILED
==
'0'
]
rake autodeploy_properties
\ No newline at end of file
rake autodeploy_properties
github_status state:success
This diff is collapsed.
Click to expand it.
jenkins/test_lms.sh
+
9
−
1
View file @
d4cdd5b4
...
...
@@ -3,6 +3,12 @@
set
-e
set
-x
.
base.sh
github_mark_failed_on_exit
github_status state:pending
# Reset the submodule, in case it changed
git submodule foreach
'git reset --hard HEAD'
...
...
@@ -24,4 +30,6 @@ rake phantomjs_jasmine_lms || true
rake coverage:xml coverage:html
[
$TESTS_FAILED
==
'0'
]
rake autodeploy_properties
\ No newline at end of file
rake autodeploy_properties
github_status state:success
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