1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-01-30 05:59:39 +02:00

Merge remote-tracking branch 'github/master' into HEAD

This commit is contained in:
Marcus Holl 2019-02-05 16:37:49 +01:00
commit 34b7c24faf

View File

@ -235,7 +235,7 @@ class Helper {
mandatoryLines.clear()
}
if( line.trim() ==~ /^\/\*\*/ ) {
if( line.trim() ==~ /^\/\*\*.*/ ) {
docu = true
}
@ -243,7 +243,7 @@ class Helper {
def _line = line
_line = _line.replaceAll('^\\s*', '') // leading white spaces
if(_line.startsWith('/**')) _line = _line.replaceAll('^\\/\\*\\*', '') // start comment
if(_line.startsWith('*/')) _line = _line.replaceAll('^\\*/', '') // end comment
if(_line.startsWith('*/') || _line.trim().endsWith('*/')) _line = _line.replaceAll('^\\*/', '').replaceAll('\\*/\\s*$', '') // end comment
if(_line.startsWith('*')) _line = _line.replaceAll('^\\*', '') // continue comment
if(_line.startsWith(' ')) _line = _line.replaceAll('^\\s', '')
if(_line ==~ /.*@possibleValues.*/) {
@ -275,7 +275,7 @@ class Helper {
}
}
if(docu && line.trim() ==~ /^\*\//) {
if(docu && line.trim() ==~ /^.*\*\//) {
docu = false
value = false
mandatory = false