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:
parent
abb8a7e985
commit
22103fadca
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user