mirror of
https://github.com/SAP/jenkins-library.git
synced 2026-06-19 22:58:55 +02:00
Fix codeclimate remarks
This commit is contained in:
@@ -8,7 +8,7 @@ Executes a maven command inside a Docker container.
|
||||
|
||||
| parameter | mandatory | default | example values |
|
||||
| -------------------------------|-----------|-------------------|----------------------------|
|
||||
| `script` | yes | | |
|
||||
| `script` | yes | | |
|
||||
| `dockerImage` | no | 'maven:3.5-jdk-7' | |
|
||||
| `globalSettingsFile` | no | | 'local_folder/settings.xml'|
|
||||
| `projectSettingsFile` | no | | |
|
||||
|
||||
@@ -15,7 +15,7 @@ static checkScript(def step, Map params) {
|
||||
step.currentBuild.setResult('UNSTABLE')
|
||||
|
||||
step.echo "[WARNING][${step.STEP_NAME}] No reference to surrounding script provided with key 'script', e.g. 'script: this'. " +
|
||||
"Build status has been set to 'UNSTABLE'. In future versions of piper-lib the build will fail."
|
||||
"Build status has been set to 'UNSTABLE'. In future versions of piper-lib the build will fail."
|
||||
}
|
||||
|
||||
return script
|
||||
|
||||
@@ -57,7 +57,7 @@ void call(parameters = [:]) {
|
||||
configuration = configHelper.use()
|
||||
|
||||
new Utils().pushToSWA([step: STEP_NAME,
|
||||
stepParam1: parameters?.script == null], configuration)
|
||||
stepParam1: parameters?.script == null], configuration)
|
||||
|
||||
def transportRequestId = configuration.transportRequestId
|
||||
|
||||
|
||||
@@ -60,8 +60,8 @@ void call(parameters = [:]) {
|
||||
.withMandatoryProperty('filePath')
|
||||
|
||||
new Utils().pushToSWA([step: STEP_NAME,
|
||||
stepParam1: configuration.changeManagement.type,
|
||||
stepParam2: parameters?.script == null], configuration)
|
||||
stepParam1: configuration.changeManagement.type,
|
||||
stepParam2: parameters?.script == null], configuration)
|
||||
|
||||
def changeDocumentId = null
|
||||
|
||||
|
||||
Reference in New Issue
Block a user