Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-56116

Commit messages are broken in the CentOS 6 build details - changes

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • git-plugin
    • Jenkins 2.150.2
      Git plugin 4.0.0-rc

      We have a Jenkins job that gets triggered on git push. When clicking on a particular build number, I don't see commit messages of the git commits triggered this build. Instead I see "%B".

          [JENKINS-56116] Commit messages are broken in the CentOS 6 build details - changes

          Arseniy Tashoyan created issue -

          Mark Waite added a comment - - edited

          What version of command line git is available on the computer running the Jenkins master?

          You can list the command line git version with the command:

          $ git --version
          

          What operating system is running the Jenkins master (Windows, Linux, FreeBSD, OpenBSD, etc.)?

          Mark Waite added a comment - - edited What version of command line git is available on the computer running the Jenkins master? You can list the command line git version with the command: $ git --version What operating system is running the Jenkins master (Windows, Linux, FreeBSD, OpenBSD, etc.)?

          git --version
          git version 1.8.3.1

          cat /etc/redhat-release
          Red Hat Enterprise Linux Server release 7.5 (Maipo)

          Arseniy Tashoyan added a comment - git --version git version 1.8.3.1 cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.5 (Maipo)
          Mark Waite made changes -
          Attachment New: job-view-of-changes.png [ 46044 ]
          Mark Waite made changes -
          Attachment New: build-view-of-changes.png [ 46045 ]

          Mark Waite added a comment - - edited

          I can't duplicate the problem you've reported. Steps I took to try to duplicate the problem:

          1. Install Jenkins 2.150.2 with suggested plugins on fully patched CentOS 7.6.1810 as of February 16, 2019 using yum repo
            [jenkins]
            name=Jenkins-stable
            baseurl=http://pkg.jenkins.io/redhat-stable
            gpgcheck=1
            
          2. Create a Freestyle project that clones the master branch of https://github.com/MarkEWaite/jenkins-bugs with a custom refspec +refs/heads/master:refs/remotes/origin/master and the additional behavior Honor refspec on initial clone for fast cloning and reduced disc use, with SCM polling every minute
          3. Commit changes to the master branch, confirm that the changes are reported as expected in both the job view and the build view
          4. Install git client plugin 3.0.0-rc and git plugin 4.0.0-rc
          5. Restart the Jenkins server
          6. Commit changes to the master branch, confirm that the changes are reported as expected in both the job view and the build view
          7. Create a Pipeline job that attempts to duplicate the problem

          The job view looks like this:

          The build view looks like this:

          Please provide additional information that will allow others to duplicate the problem you're seeing.

          My system configuration information looks like this:

          [mwaite@centos7-d ~]$ lsb_release -a
          LSB Version:    :core-4.1-amd64:core-4.1-noarch
          Distributor ID: CentOS
          Description:    CentOS Linux release 7.6.1810 (Core)
          Release:        7.6.1810
          Codename:       Core
          [mwaite@centos7-d ~]$ cat /etc/redhat-release
          CentOS Linux release 7.6.1810 (Core)
          [mwaite@centos7-d ~]$ git --version
          git version 1.8.3.1
          

          The Freestyle job definition I'm using is attached as config.xml

          Some ideas of what might be different between my environment and yours:

          • I installed Jenkins with the yum repo, you might be running jenkins.war
          • I use bash as my default shell, you might be using csh or zsh or ksh
          • I patched the operating system with the latest updates, you might be running with different patches
          • I used command line git as installed in /usr/bin/git, you might be using a different installation
          • I relied on the default git tool definition in Jenkins, you might have defined a custom git tool in Jenkins which points to a different git version

          Mark Waite added a comment - - edited I can't duplicate the problem you've reported. Steps I took to try to duplicate the problem: Install Jenkins 2.150.2 with suggested plugins on fully patched CentOS 7.6.1810 as of February 16, 2019 using yum repo [jenkins] name=Jenkins-stable baseurl=http://pkg.jenkins.io/redhat-stable gpgcheck=1 Create a Freestyle project that clones the master branch of https://github.com/MarkEWaite/jenkins-bugs with a custom refspec +refs/heads/master:refs/remotes/origin/master and the additional behavior Honor refspec on initial clone for fast cloning and reduced disc use, with SCM polling every minute Commit changes to the master branch, confirm that the changes are reported as expected in both the job view and the build view Install git client plugin 3.0.0-rc and git plugin 4.0.0-rc Restart the Jenkins server Commit changes to the master branch, confirm that the changes are reported as expected in both the job view and the build view Create a Pipeline job that attempts to duplicate the problem The job view looks like this: The build view looks like this: Please provide additional information that will allow others to duplicate the problem you're seeing. My system configuration information looks like this: [mwaite@centos7-d ~]$ lsb_release -a LSB Version: :core-4.1-amd64:core-4.1-noarch Distributor ID: CentOS Description: CentOS Linux release 7.6.1810 (Core) Release: 7.6.1810 Codename: Core [mwaite@centos7-d ~]$ cat /etc/redhat-release CentOS Linux release 7.6.1810 (Core) [mwaite@centos7-d ~]$ git --version git version 1.8.3.1 The Freestyle job definition I'm using is attached as config.xml Some ideas of what might be different between my environment and yours: I installed Jenkins with the yum repo, you might be running jenkins.war I use bash as my default shell, you might be using csh or zsh or ksh I patched the operating system with the latest updates, you might be running with different patches I used command line git as installed in /usr/bin/git, you might be using a different installation I relied on the default git tool definition in Jenkins, you might have defined a custom git tool in Jenkins which points to a different git version
          Mark Waite made changes -
          Resolution New: Cannot Reproduce [ 5 ]
          Status Original: Open [ 1 ] New: Fixed but Unreleased [ 10203 ]
          Mark Waite made changes -
          Attachment New: config.xml [ 46046 ]

          I was able to narrow down the search. This problem occurs:

          • both for Maven and Freestyle jobs
          • configured to run on a specific slave

          Here is the configuration of this slave:

           cat /etc/redhat-release 
          Red Hat Enterprise Linux Server release 6.10 (Santiago)
          
           git --version
          git version 1.7.1
          

          I tried to cleanup that slave, but of no avail:

          1. disconnect the node
          2. kill processes of user jenkins
          3. remove all files and directories belonging to user jenkins
          4. connect the node back

           

           

          Arseniy Tashoyan added a comment - I was able to narrow down the search. This problem occurs: both for Maven and Freestyle jobs configured to run on a specific slave Here is the configuration of this slave:  cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.10 (Santiago)  git --version git version 1.7.1 I tried to cleanup that slave, but of no avail: disconnect the node kill processes of user jenkins remove all files and directories belonging to user jenkins connect the node back    
          Arseniy Tashoyan made changes -
          Resolution Original: Cannot Reproduce [ 5 ]
          Status Original: Fixed but Unreleased [ 10203 ] New: Reopened [ 4 ]

            Unassigned Unassigned
            tashoyan Arseniy Tashoyan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: