mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-01-18 05:18:24 +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.cloudbees.groovy.cps.NonCPS
|
||||||
import com.sap.piper.Utils
|
import com.sap.piper.Utils
|
||||||
|
|
||||||
|
def getStepName(){return 'checkResultsPublish'}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* checkResultsPublish
|
* checkResultsPublish
|
||||||
*
|
*
|
||||||
* @param others document all parameters
|
* @param others document all parameters
|
||||||
*/
|
*/
|
||||||
def call(Map parameters = [:]) {
|
def call(Map parameters = [:]) {
|
||||||
handlePipelineStepErrors (stepName: 'checkResultsPublish', stepParameters: parameters) {
|
handlePipelineStepErrors (stepName: getStepName(), stepParameters: parameters) {
|
||||||
// GENERAL
|
// GENERAL
|
||||||
def tasks = parameters.get('tasks', false)
|
def tasks = parameters.get('tasks', false)
|
||||||
def aggregation = parameters.get('aggregation', [:])
|
def aggregation = parameters.get('aggregation', [:])
|
||||||
@ -118,7 +120,7 @@ def isMap(object){
|
|||||||
|
|
||||||
def archiveResults(archive, pattern, allowEmpty){
|
def archiveResults(archive, pattern, allowEmpty){
|
||||||
if(archive){
|
if(archive){
|
||||||
echo "archive ${pattern}"
|
echo "[${getStepName()}] archive ${pattern}"
|
||||||
archiveArtifacts artifacts: pattern, allowEmptyArchive: allowEmpty
|
archiveArtifacts artifacts: pattern, allowEmptyArchive: allowEmpty
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user