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

add step name to echo

This commit is contained in:
Christopher Fenner 2018-01-31 16:56:18 +01:00
parent abb8a7e985
commit 22103fadca

View File

@ -1,13 +1,15 @@
import com.cloudbees.groovy.cps.NonCPS
import com.sap.piper.Utils
def getStepName(){return 'checkResultsPublish'}
/**
* checkResultsPublish
*
* @param others document all parameters
*/
def call(Map parameters = [:]) {
handlePipelineStepErrors (stepName: 'checkResultsPublish', stepParameters: parameters) {
handlePipelineStepErrors (stepName: getStepName(), stepParameters: parameters) {
// GENERAL
def tasks = parameters.get('tasks', false)
def aggregation = parameters.get('aggregation', [:])
@ -118,7 +120,7 @@ def isMap(object){
def archiveResults(archive, pattern, allowEmpty){
if(archive){
echo "archive ${pattern}"
echo "[${getStepName()}] archive ${pattern}"
archiveArtifacts artifacts: pattern, allowEmptyArchive: allowEmpty
}
}