Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
acbb8c0f
Commit
acbb8c0f
authored
Mar 09, 2017
by
winniehell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fail trigger_docs if triggering build was not successful
parent
67603d04
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
.gitlab-ci.yml
.gitlab-ci.yml
+2
-1
No files found.
.gitlab-ci.yml
View file @
acbb8c0f
...
...
@@ -389,7 +389,8 @@ trigger_docs:
cache
:
{}
artifacts
:
{}
script
:
-
"
curl
-X
POST
-F
token=${DOCS_TRIGGER_TOKEN}
-F
ref=master
-F
variables[PROJECT]=${CI_PROJECT_NAME}
https://gitlab.com/api/v3/projects/1794617/trigger/builds"
-
"
HTTP_STATUS=$(curl
-X
POST
-F
token=${DOCS_TRIGGER_TOKEN}
-F
ref=master
-F
variables[PROJECT]=${CI_PROJECT_NAME}
--silent
--output
curl.log
--write-out
'%{http_code}'
https://gitlab.com/api/v3/projects/1794617/trigger/builds)"
-
if [ "${HTTP_STATUS}" -ne "201" ]; then echo "Error ${HTTP_STATUS}"; cat curl.log; echo; exit 1; fi
only
:
-
master@gitlab-org/gitlab-ce
-
master@gitlab-org/gitlab-ee
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment