Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
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
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
Main Repositories
otb
Commits
fc4f3694
Commit
fc4f3694
authored
5 years ago
by
Guillaume Pernot
Browse files
Options
Downloads
Patches
Plain Diff
Added CI_ALLOW_FAILURE for cdash_handler.py
parent
3ac6903b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
3 merge requests
!758
Release 7.2 integration into master
,
!648
Ci rcjob
,
!630
CI: Added CI_ALLOW_FAILURE for cdash_handler.py
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+3
-0
3 additions, 0 deletions
.gitlab-ci.yml
CI/cdash_handler.py
+7
-0
7 additions, 0 deletions
CI/cdash_handler.py
with
10 additions
and
0 deletions
.gitlab-ci.yml
+
3
−
0
View file @
fc4f3694
...
...
@@ -140,6 +140,9 @@ debian-build:
allow_failure
:
true
script
:
-
xvfb-run -a -n 1 -s "-screen 0 1024x768x24 -dpi 96" ctest -V -S CI/main_ci.cmake -DIMAGE_NAME:string=debian-unstable-gcc
after_script
:
-
export CI_ALLOW_FAILURE=ON
-
python3 -u CI/cdash_handler.py
dependencies
:
[]
## Ubuntu superbuild
...
...
This diff is collapsed.
Click to expand it.
CI/cdash_handler.py
+
7
−
0
View file @
fc4f3694
...
...
@@ -246,6 +246,9 @@ if __name__ == "__main__":
if
(
len
(
sys
.
argv
)
<
6
and
len
(
sys
.
argv
)
>
1
):
print
(
"
Usage :
"
+
sys
.
argv
[
0
]
+
"
commit_sha1 project_id project_directory token ref_name
"
)
sys
.
exit
(
1
)
allow_failure
=
os
.
environ
.
get
(
'
CI_ALLOW_FAILURE
'
,
False
)
if
(
len
(
sys
.
argv
)
>=
6
):
sha1
=
sys
.
argv
[
1
]
proj
=
sys
.
argv
[
2
]
...
...
@@ -286,6 +289,10 @@ if __name__ == "__main__":
sys
.
exit
(
0
)
gitlab_url
=
"
https://gitlab.orfeo-toolbox.org/api/v4/projects/
"
gitlab_url
+=
proj
+
"
/statuses/
"
+
sha1
if
allow_failure
:
state
=
'
success
'
params
=
urllib
.
parse
.
urlencode
({
'
name
'
:
'
cdash:
'
+
handler
.
site
,
'
state
'
:
state
,
\
'
target_url
'
:
cdash_url
,
'
description
'
:
error
,
'
ref
'
:
refn
})
gitlab_request
=
urllib
.
request
.
Request
(
gitlab_url
)
...
...
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