Commit 31e362c5 authored by Sagar Arora's avatar Sagar Arora

Merge branch 'mr_desc_template' into 'develop'

Add the standardized template for merge request descriptions & Condition replacement of MR Title in the CI

See merge request oai/cn5g/oai-cn5g-upf!81
parents 1291aca9 563698f6
## Related Issue(s) / Merge Request(s)
<!-- Link to the related issue(s) using GitLab references, e.g., Closes #123, or link to related merge requests. -->
## Description
<!-- Provide a clear and concise summary of the changes introduced in this MR. -->
## Tested Environment (e.g., radios, interfaces, CN)
<!-- Describe the testing environment and steps to validate the changes. -->
## Configuration Updates (e.g., files, parameters)
<!-- List any changes to configuration files, parameters, etc. -->
## Known Issues / Limitations
<!-- Mention any known issues or limitations related to this MR. -->
## Checklist
* [ ] Code follows project coding standards.
* [ ] Relevant tests have been added or updated.
* [ ] Documentation has been updated where necessary.
* [ ] Configuration changes have been validated in the target environment(s).
## Log files or packet captures (PCAPs)
<!-- Attach or reference any relevant log files or packet captures (PCAPs). -->
## Additional Notes
<!-- Provide any additional information or context that may be helpful for the reviewer. -->
...@@ -595,7 +595,9 @@ pipeline { ...@@ -595,7 +595,9 @@ pipeline {
for (htmlFile in htmlFiles) { for (htmlFile in htmlFiles) {
if ("MERGE".equals(env.gitlabActionType)) { if ("MERGE".equals(env.gitlabActionType)) {
sh "sed -i -e 's#TEMPLATE_MERGE_REQUEST_LINK#${gitlabMergeRequestLink}#g' ${htmlFile}" sh "sed -i -e 's#TEMPLATE_MERGE_REQUEST_LINK#${gitlabMergeRequestLink}#g' ${htmlFile}"
sh "sed -i -e 's#TEMPLATE_MERGE_REQUEST_TEMPLATE#${env.gitlabMergeRequestTitle}#' ${htmlFile}" def unsafePattern = /[^a-zA-Z0-9",\.\?\-_ %\+\[\]\(\)~]/
def sanitizedTitle = env.gitlabMergeRequestTitle.replaceAll(unsafePattern, '-')
sh "sed -i -e 's#TEMPLATE_MERGE_REQUEST_TEMPLATE#${sanitizedTitle}#' ${htmlFile}"
} }
sh "sed -i -e 's#TEMPLATE_TIME#${JOB_TIMESTAMP}#' ${htmlFile}" sh "sed -i -e 's#TEMPLATE_TIME#${JOB_TIMESTAMP}#' ${htmlFile}"
archiveArtifacts artifacts: htmlFile archiveArtifacts artifacts: htmlFile
......
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