1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-12 10:55:20 +02:00

Fix identations

This commit is contained in:
Marcus Holl 2018-11-05 09:51:28 +01:00
parent 59bf6b0545
commit 30569102da

View File

@ -105,7 +105,6 @@ class Helper {
prepareDefaultValuesStep.metaClass.libraryResource {
f -> new File("resources/${f}").text
}
prepareDefaultValuesStep.metaClass.readYaml {
m -> new Yaml().load(m.text)
}
@ -177,7 +176,6 @@ class Helper {
}
}
private static flatten(Set flat, def key, Map interim) {
if( ! interim ) flat << (key as String)
@ -188,9 +186,9 @@ class Helper {
if( v && v.size() > 0 )
flatten(flat, _key, v)
else {
else
flat << (_key as String)
}
}
}
@ -200,8 +198,7 @@ class Helper {
value = false,
docuEnd = false
def docuLines = [],
valueLines = []
def docuLines = [], valueLines = []
f.eachLine {
line ->
@ -222,8 +219,7 @@ class Helper {
throw new RuntimeException('Cannot retrieve parameter for a comment')
}
if(step.parameters[param].docu ||
step.parameters[param].value)
if(step.parameters[param].docu || step.parameters[param].value)
System.err << "[WARNING] There is already some documentation for parameter '${param}. Is this parameter documented twice?'\n"
def _docu = [], _value = []