Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
C
citbx4gitlab
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Anthony SKORSKI
citbx4gitlab
Commits
6e4a84a7
Commit
6e4a84a7
authored
Aug 23, 2017
by
Emeric Verschuur
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix] Prevent multiple call of citbx_job_finish
parent
e68ab8e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
tools/gitlab-ci/run.sh
tools/gitlab-ci/run.sh
+5
-1
No files found.
tools/gitlab-ci/run.sh
View file @
6e4a84a7
...
@@ -122,6 +122,11 @@ citbx_local() {
...
@@ -122,6 +122,11 @@ citbx_local() {
# Job end handler
# Job end handler
citbx_job_finish
()
{
citbx_job_finish
()
{
local
CITBX_EXIT_CODE
=
$?
local
CITBX_EXIT_CODE
=
$?
if
[
"
$CITBX_JOB_FINISH_CALLED
"
!=
"true"
]
;
then
CITBX_JOB_FINISH_CALLED
=
"true"
else
return
0
fi
for
hook
in
$citbx_job_stage_after
;
do
for
hook
in
$citbx_job_stage_after
;
do
cd
$CI_PROJECT_DIR
cd
$CI_PROJECT_DIR
$hook
$CITBX_EXIT_CODE
$hook
$CITBX_EXIT_CODE
...
@@ -132,7 +137,6 @@ citbx_job_finish() {
...
@@ -132,7 +137,6 @@ citbx_job_finish() {
print_error
"CI job failure with exit code
$CITBX_EXIT_CODE
"
print_error
"CI job failure with exit code
$CITBX_EXIT_CODE
"
fi
fi
print_note
"Job execution time:
$(
date
+
"%H hour(s) %M minute(s) and %S second(s)"
-ud
@
$((
$(
date
+%s
)
-
$CITBX_JOB_START_TIME
))
)
"
print_note
"Job execution time:
$(
date
+
"%H hour(s) %M minute(s) and %S second(s)"
-ud
@
$((
$(
date
+%s
)
-
$CITBX_JOB_START_TIME
))
)
"
return
0
}
}
# If running inside the suitable runner / on gitlab runner
# If running inside the suitable runner / on gitlab runner
...
...
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