The expiration time for new job artifacts in CI/CD pipelines is now 30 days (GitLab default). Previously generated artifacts in already completed jobs will not be affected by the change. The latest artifacts for all jobs in the latest successful pipelines will be kept. More information: https://gitlab.lrz.de/help/user/admin_area/settings/continuous_integration.html#default-artifacts-expiration

Commit d4322ecc authored by Christian Schulte zu Berge's avatar Christian Schulte zu Berge
Browse files

Merge branch 'issue233' of /mnt/bigone/git/repositories/berge/campvis into development

parents 0c73f0f7 f51cf570
......@@ -25,13 +25,19 @@ ENDMACRO(WRITE_PIPELINE_REGISTRATION)
MACRO(PARSE_HEADER_FOR_PIPELINE FileName)
FILE(READ ${FileName} content)
# Build a regex matching pipeline declarations and extracting their names
SET(NameRegex "[A-Za-z0-9_]+")
SET(FullyQualifiedNameRegex "(::)?(${NameRegex}::)*${NameRegex}")
SET(BaseClassListRegex "((public|private|protected)( virtual)? ${FullyQualifiedNameRegex}, )*")
SET(ClassRegex "class (${NameRegex}) ?: ${BaseClassListRegex}public ${FullyQualifiedNameRegex}Pipeline")
# Find all class definitions inheriting from a Pipeline
STRING(REGEX MATCHALL "class ([A-Za-z0-9_]+) : public [A-Za-z0-9_]+Pipeline {" matches ${content})
STRING(REGEX MATCHALL ${ClassRegex} matches ${content})
FOREACH(m ${matches})
# Extract class name and register
STRING(REGEX REPLACE "(class )([A-Za-z0-9_]+)( : public [A-Za-z0-9_]+Pipeline {)" "\\2" RESULT ${m})
STRING(REGEX REPLACE ${ClassRegex} "\\1" RESULT ${m})
ADD_PIPELINE_REGISTRATION(${FileName} ${RESULT})
ENDFOREACH()
ENDMACRO(PARSE_HEADER_FOR_PIPELINE)
......@@ -214,4 +220,4 @@ MACRO(DEFINE_SOURCE_GROUPS_FROM_SUBDIR Files BasePath RemovePathPrefixes)
# MESSAGE(STATUS "${f} -> ${f_cat}")
ENDFOREACH()
ENDMACRO(DEFINE_SOURCE_GROUPS_FROM_SUBDIR)
\ No newline at end of file
ENDMACRO(DEFINE_SOURCE_GROUPS_FROM_SUBDIR)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment