After upgrading to version 2.2.1, this command no longer works properly in my existing pipeline:
       
      cmdline: git merge-base origin/master HEAD
      stderr: 'fatal: Not a valid object name origin/master'

        1. Screen Shot 2017-07-19 at 21.34.16.png
          45 kB
          Stephen Connolly
        2. Screen Shot 2017-07-19 at 21.46.27.png
          269 kB
          Stephen Connolly
        3. Screen Shot 2017-07-19 at 21.46.15.png
          560 kB
          Stephen Connolly

          [JENKINS-45666] Origin/master no longer set

          You need to add an additional refspec for origin/master

          Stephen Connolly added a comment - You need to add an additional refspec for origin/master

          Here is an example of the configuration:

          And here is the successful build log showing that the additiona ref-spec is being fetched.

          Stephen Connolly added a comment - Here is an example of the configuration: And here is the successful build log showing that the additiona ref-spec is being fetched.

            Unassigned Unassigned
            chrisleck Christopher Eck
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: