mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-14 11:03:09 +02:00
29 lines
935 B
Groovy
29 lines
935 B
Groovy
|
import com.sap.piper.ConfigurationLoader
|
||
|
import com.sap.piper.GenerateStageDocumentation
|
||
|
import com.sap.piper.QualityCheck
|
||
|
import com.sap.piper.ReportAggregator
|
||
|
|
||
|
import static com.sap.piper.Prerequisites.checkScript
|
||
|
|
||
|
import groovy.transform.Field
|
||
|
|
||
|
@Field String STEP_NAME = getClass().getName()
|
||
|
|
||
|
@Field Set GENERAL_CONFIG_KEYS = []
|
||
|
@Field Set STEP_CONFIG_KEYS = GENERAL_CONFIG_KEYS
|
||
|
@Field Set PARAMETER_KEYS = STEP_CONFIG_KEYS
|
||
|
|
||
|
/**
|
||
|
* Execute static code checks for Maven based projects. This stage enforces SAP Cloud SDK specific PND rulesets as well as SpotBugs include filter.
|
||
|
*
|
||
|
*/
|
||
|
@GenerateStageDocumentation(defaultStageName = 'mavenExecuteStaticCodeChecks')
|
||
|
void call(Map parameters = [:]) {
|
||
|
String stageName = 'mavenExecuteStaticCodeChecks'
|
||
|
final script = checkScript(this, parameters) ?: null
|
||
|
|
||
|
piperStageWrapper(stageName: stageName, script: script) {
|
||
|
mavenExecuteStaticCodeChecks(script: script)
|
||
|
}
|
||
|
}
|