# How to hide git changelog about shared library in Jenkins multibranch pipeline

**URL:** <https://community.jenkins.io/t/how-to-hide-git-changelog-about-shared-library-in-jenkins-multibranch-pipeline/19950>\
**Category:** Using Jenkins\
**Tags:** question, git, pipeline\
**Created:** [September 22, 2024, 4:28pm UTC](https://community.jenkins.io/t/how-to-hide-git-changelog-about-shared-library-in-jenkins-multibranch-pipeline/19950 "2024-09-22T16:28:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dsaydon90](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/dsaydon90/32/2043_2.png) [@dsaydon90](https://community.jenkins.io/u/dsaydon90)\
**Post date:** [September 22, 2024, 4:28pm UTC](https://community.jenkins.io/t/how-to-hide-git-changelog-about-shared-library-in-jenkins-multibranch-pipeline/19950/1 "2024-09-22T16:28:53Z")

</div>

Hi,

I’m trying to hide git changelog/changeset about shared library within a Jenkins multibranch pipeline.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/jenkins/original/2X/1/1e8b14d88e20d78c7b81f489da7d2d9270b20e3d.png)

I’ve explored explored various options without success.  
Let’s overview what I’ve tried and please let m know if there’s something I’m missing:

Options Explored:

**option 1** : unchecked “Include @Library changes in job recent changes” from system global configurations

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/jenkins/original/2X/e/e51b38e3b50bd3e2f20fd5d3c3cf1bd5242163ea.png)

**option 2** : add “changelog: false” to pipelines

Since I’m using various pipeline types I was able to tried them all:

- example 1: `library identifier: '<my shared lib>@<shared lib branch>', changelog: false`
- example 2: `@Library(value='<my shared lib>@<shared lib branch>', changelog=false)`

**option 3** : clear ChangeSets and perform checkout

In this option we can run `currentBuild.getChangeSets().clear()` and then we chan perform git clone with `checkout scm` (or other git command).  
However, this would require manual checkout, losing the benefit of automatic default checkout scm.

None of the 3 options above worked for me, and I’m still seeing the shared library changelog in my multibranch pipelines.

Any other solutions?

It seems there’s an open ticket ([link](https://issues.jenkins.io/browse/JENKINS-41497)) related to hiding changesets, but I’m not quite sure if this ticket is also relevant for multibranch pipelines.

jenkins version: 2.462.2

---

<div class="post-metadata">

**Author:** ![dsaydon90](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/dsaydon90/32/2043_2.png) [@dsaydon90](https://community.jenkins.io/u/dsaydon90)\
**Post date:** [November 2, 2024, 1:19pm UTC](https://community.jenkins.io/t/how-to-hide-git-changelog-about-shared-library-in-jenkins-multibranch-pipeline/19950/2 "2024-11-02T13:19:30Z")

</div>

Further information can be found here:

- [https://github.com/jenkinsci/pipeline-groovy-lib-plugin/pull/100](https://github.com/jenkinsci/pipeline-groovy-lib-plugin/pull/100)
- [https://issues.jenkins.io/browse/JENKINS-65649](https://issues.jenkins.io/browse/JENKINS-65649)
- [https://github.com/jenkinsci/pipeline-groovy-lib-plugin/blob/5b556ee7c2537f1acf4ddcd74257d468fc459e63/src/main/java/org/jenkinsci/plugins/workflow/libs/LibraryStep.java#L225](https://github.com/jenkinsci/pipeline-groovy-lib-plugin/blob/5b556ee7c2537f1acf4ddcd74257d468fc459e63/src/main/java/org/jenkinsci/plugins/workflow/libs/LibraryStep.java#L225)
- [https://github.com/jenkinsci/pipeline-groovy-lib-plugin/blob/5b556ee7c2537f1acf4ddcd74257d468fc459e63/src/main/java/org/jenkinsci/plugins/workflow/libs/LibraryConfiguration.java#L134](https://github.com/jenkinsci/pipeline-groovy-lib-plugin/blob/5b556ee7c2537f1acf4ddcd74257d468fc459e63/src/main/java/org/jenkinsci/plugins/workflow/libs/LibraryConfiguration.java#L134)

---

<div class="post-metadata">

**Author:** ![hukel](https://avatars.discourse-cdn.com/v4/letter/h/f4b2a3/32.png) [@hukel](https://community.jenkins.io/u/hukel)\
**Post date:** [October 16, 2025, 10:39am UTC](https://community.jenkins.io/t/how-to-hide-git-changelog-about-shared-library-in-jenkins-multibranch-pipeline/19950/3 "2025-10-16T10:39:26Z")

</div>

Any other ideas for this? The problem applies to simple (single stage) pipelines, too. Every job’s console output is filled with these 20+ lines:

```auto
21:46:12 Started by user XYZ
21:46:12 Loading library xyz-shared@main:notifications/
21:46:12 Attempting to resolve main from remote references...
21:46:12 > git.exe --version # timeout=10
21:46:12 > git --version # 'git version 2.49.0.windows.1'
21:46:12 > git.exe ls-remote -h -- file:///c:/tools/jenkins_library # timeout=10
21:46:13 Found match: refs/heads/main revision 1aece44c1b542de9af60ea9d9427b10086a82beb
21:46:13 The recommended git tool is: NONE
21:46:13 No credentials specified
21:46:13 > git.exe rev-parse --resolve-git-dir C:\data\Jenkins\.jenkins\workspace\JOB NAME@libs\568c993389b5b6ef2f458b1b92e4a16e940df87d578c9ae18719b0b4f5e22761\.git # timeout=10
21:46:13 Fetching changes from the remote Git repository
21:46:13 > git.exe config remote.origin.url file:///c:/tools/jenkins_library # timeout=10
21:46:13 Fetching without tags
21:46:13 Fetching upstream changes from file:///c:/tools/jenkins_library
21:46:13 > git.exe --version # timeout=10
21:46:13 > git --version # 'git version 2.49.0.windows.1'
21:46:13 > git.exe fetch --no-tags --force --progress -- file:///c:/tools/jenkins_library +refs/heads/*:refs/remotes/origin/* # timeout=10
21:46:13 Checking out Revision 1aece44c1b542de9af60ea9d9427b10086a82beb (main)
21:46:13 > git.exe config core.sparsecheckout # timeout=10
21:46:13 > git.exe checkout -f 1aece44c1b542de9af60ea9d9427b10086a82beb # timeout=10
21:46:14 Commit message: "added instructions to readme"
21:46:14 > git.exe rev-list --no-walk 1aece44c1b542de9af60ea9d9427b10086a82beb # timeout=10
21:46:14 [Pipeline] Start of Pipeline

```

Our users would prefer not to see all of message unrelated to pipeline steps.

---

<div class="post-metadata">

**Author:** ![MarkEWaite](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/markewaite/32/20_2.png) [@MarkEWaite](https://community.jenkins.io/u/MarkEWaite)\
**Post date:** [October 16, 2025, 8:15pm UTC](https://community.jenkins.io/t/how-to-hide-git-changelog-about-shared-library-in-jenkins-multibranch-pipeline/19950/4 "2025-10-16T20:15:07Z")

</div>

> [@hukel](#):
>
> The problem applies to simple (single stage) pipelines, too. Every job’s console output is filled with these 20+ lines

You’re asking a different question than the original question in this topic. The original topic is related to not included the changelog from the shared library in the changelog of the job that is using the shared library. You are asking to hide a section of the console log. They are very different questions.

An [enhancement request](https://issues.jenkins.io/browse/JENKINS-24304) asks to optionally reduce the verbosity of the logging done by the git client plugin.

---

<div class="post-metadata">

**Author:** ![panicking](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/panicking/32/22039_2.png) [@panicking](https://community.jenkins.io/u/panicking)\
**Post date:** [October 17, 2025, 6:55pm UTC](https://community.jenkins.io/t/how-to-hide-git-changelog-about-shared-library-in-jenkins-multibranch-pipeline/19950/5 "2025-10-17T18:55:03Z")

</div>

I think that include the changes of the library in pipeline has no sense if the checkbox is disabled. For the console output I really don’t think that it’s a problem

---

<div class="post-metadata">

**Author:** ![hukel](https://avatars.discourse-cdn.com/v4/letter/h/f4b2a3/32.png) [@hukel](https://community.jenkins.io/u/hukel)\
**Post date:** [December 15, 2025, 12:08pm UTC](https://community.jenkins.io/t/how-to-hide-git-changelog-about-shared-library-in-jenkins-multibranch-pipeline/19950/6 "2025-12-15T12:08:03Z")

</div>

Thank you for clarifying about the difference. The latest version of the issue you mentioned is here:

> <https://github.com/jenkinsci/git-client-plugin/issues/1451>
>
> \<p\>The git plugin currently prints out the git commands that it executes.\</p\>
> 
> 
> …\<pre\>
> git rev-parse master^{commit} # timeout=10
> \</pre\>
> 
> \<p\>In some cases, these commands can be numerous and thus distract the user from other pertinent information in the build log.\</p\>
> 
> \<p\>It would be very valuable to be able to enable or disable this verbose output via a option in the job configuration.\</p\>
> 
> 
> 
> \---
> \<details\>\<summary\>\<i\>Originally reported by \<img align="left" width="20" src="https://raw.githubusercontent.com/jenkinsci/artifacts-from-jira-issues/refs/heads/main/avatars/scoheb.png" title="scoheb's avatar" /\> \<a href="https://issues.jenkins.io/secure/ViewProfile.jspa?name=scoheb"\>scoheb\</a\>, imported from: \<a class="original-jira-link" href="https://issues.jenkins.io/browse/JENKINS-24304" target="\_blank"\>Enable/Disable verbose Git command logging in Jenkins build log\</a\>\</i\>\</summary\>
> \<i\>\<ul\>
> \<li\>\<b\>status\</b\>: Open
> \<li\>\<b\>priority\</b\>: Minor
> \<li\>\<b\>component(s)\</b\>: git-client-plugin
> \<li\>\<b\>resolution\</b\>: Unresolved
> \<li\>\<b\>votes\</b\>: 13
> \<li\>\<b\>watchers\</b\>: 14
> \<li\>\<b\>imported\</b\>: 20251211-071809
> \</ul\>\</i\>
> \<details\>\<summary\>Raw content of original issue\</summary\>
> 
> \<pre\>
> \<p\>The git plugin currently prints out the git commands that it executes.\</p\>
> 
> \<div class="code panel" style="border-width: 1px;"\>\<div class="codeContent panelContent"\>
> \<pre class="code-java"\>git rev-parse master^{commit} # timeout=10
> \</pre\>
> \</div\>\</div\>
> 
> \<p\>In some cases, these commands can be numerous and thus distract the user from other pertinent information in the build log.\</p\>
> 
> \<p\>It would be very valuable to be able to enable or disable this verbose output via a option in the job configuration.\</p\>
> 
> \</pre\>
> \</details\>
> \</details\>
