Suppress Scripted Pipelines Output in Jenkins

Kris Reese

I'm relatively new to Jenkins and was wondering if there are any examples on suppressing scripted pipelines output in Jenkins.

I see this issue on jenkins website, but I'm not exactly sure how to implement.

I also didn't see a clear answer from a question on Stack Overflow about this issue.

I basically want to get rid of all the Pipeline stuff:

$ docker top 5f4682c000c81cbede8dc72f190b25254e049e9607ba008cbad72a78adab56a2 -eo pid,comm
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Check Style)
[Pipeline] ansiColor
[Pipeline] {
[Pipeline] sh
[ppetry_corpsite_apache_user-HHEF3S7EJLFY7ER74K63UO3KKEOJY46P57XF77IGT3LQ76I2UIJQ] Running shell script
+ lintcheck.sh




--------LINT RESULTS--------
********ALL TESTS PASSED*******


[Pipeline] }
[Pipeline] // ansiColor
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Check Syntax)
[Pipeline] ansiColor
[Pipeline] {
[Pipeline] sh
[ppetry_corpsite_apache_user-HHEF3S7EJLFY7ER74K63UO3KKEOJY46P57XF77IGT3LQ76I2UIJQ] Running shell script
+ syntaxcheck.sh




--------SYNTAX RESULTS--------
********ALL TESTS PASSED*******


[Pipeline] }
[Pipeline] // ansiColor
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Generate Puppet Auth Token)
[Pipeline] withCredentials
[Pipeline] {
[Pipeline] ansiColor
[Pipeline] {
[Pipeline] sh
[ppetry_corpsite_apache_user-HHEF3S7EJLFY7ER74K63UO3KKEOJY46P57XF77IGT3LQ76I2UIJQ] Running shell script
+ gentoken.sh
--------GENERATING PUPPET ACCESS TOKEN--------
Token generated successfully.


[Pipeline] }
[Pipeline] // ansiColor
[Pipeline] }
[Pipeline] // withCredentials
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
$ docker stop --time=1 5f4682c000c81cbede8dc72f190b25254e049e9607ba008cbad72a78adab56a2
$ docker rm -f 5f4682c000c81cbede8dc72f190b25254e049e9607ba008cbad72a78adab56a2
[Pipeline] // withDockerContainer
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline

GitHub has been notified of this commit’s build result

Finished: SUCCESS
Vitalii Vitrenko

Prerequisites:

Go to Manage Jenkins > Configure System > Theme. In Extra CSS field put the following

.pipeline-annotated {
    display: none;
}

Click save.

After that you will not see any [Pipeline] logs anymore.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Debugging Groovy scripted pipelines in Jenkins

How to use bash commands with withEnv in Jenkins Scripted Pipelines?

how to write echo output into a text file in jenkins scripted pipeline

Jenkins scripted pipeline or declarative pipeline

Jenkins scripted pipleline @NonCPS and StackOverflowError

Jenkins Scripted Pipeline: Groovy if statement

Scripted Jenkins pipeline: continue on fail

Jenkins scripted pipeline environment variable

choice equivalent in Jenkins scripted pipeline

Jenkins Scripted Pipeline use global timestamps options

Understanding Jenkins Groovy scripted pipeline code

Jenkins - export a scripted pipeline into a shared lib

Scripted Jenkins pipeline, skip parallel part of stage

Jenkins Scripted Pipeline - Is this possible to send a mail attachment

Jenkins scripted pipeline with sidecar MYSQL container for testing

How to use options in a Jenkins scripted pipeline?

Get upstream environment variables - Jenkins scripted pipeline

Jenkins scripted pipeline nested environment variable

Writing a Yaml file in Jenkins scripted pipeline

In scripted pipeline, how to get Jenkins build parameters

How to set environment variables in a Jenkins Scripted Pipeline?

Using a dockerfile with Jenkins Scripted Pipeline Syntax

Jenkins groovy scripted pipeline variables not substituting correctly

Matrix configuration with Jenkins pipelines

Isolating Secrets for Pipelines in Jenkins

Email Plugin on Jenkins Pipelines

How to suppress output in R?

Suppress output in matplotlib

make option to suppress output