while triggering build jenkins pipeline, one of my groovy file ( test.groovy) under Jenkins shared library throwing too much verbose. how to hide it
package com.x.y.z
class getparameter implements serializable {
def steps
getparameter(steps0 {this.steps = steps }
def getsomeparameter(x,Y) {
steps.sh ("source /etc/profile.d/env.sh && date && hostname ")
}
}
trimmed Output after execuring main Jenkins pipeline which invoking the above test.groovy
[Pipeline] sh
- source /etc/profile.d/env.sh ++ export PROXY=http://1.2.3.4/ ++ export no_proxy=http://1.2.3.4/
- date ++
- hostname ++ hostname output>
How to hide/trime the output displayed in the Jenkins console log