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

Since 2.2.6, environment variables are not expanded in git publisher

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: git-plugin
    • Labels:
    • Environment:
      Jenkins: 1.580
      Git Plugin 2.2.6 (before update 2.2.5)
      All plugins up to date (21. September)
    • Similar Issues:

      Description

      Since 2.2.6 ssh credentials on git push seems to have a problem.
      When i revert back to 2.2.5 everything works as expected.
      I'm using jenkins credential with a ssh key.
      Don't know if that has something to say, but I'm using env var's to set the git url, and in the failing log it's not resolved. But I guess the error prints it before the resolution, because the connection itself seems to work, just not the authentication.
      I attached a log success.txt (with version 2.2.5) and a failing.txt (version 2.2.6). The only difference is that i reverted the plugin to 2.2.5 and everything worked again.
      let me know if you need more information. But maybe so find the problem due the recent changes.

        Attachments

        1. config.xml
          3 kB
        2. config.xml
          5 kB
        3. failing.txt
          5 kB
        4. success.txt
          4 kB

          Issue Links

            Activity

            spali Thomas Spalinger created issue -
            markewaite Mark Waite made changes -
            Field Original Value New Value
            Assignee Nicolas De Loof [ ndeloof ] Mark Waite [ markewaite ]
            markewaite Mark Waite made changes -
            Summary Since 2.2.6 ssh credentials on git push seems to have a problem. Since 2.2.6, environment variables are noto expanded in git publisher
            markewaite Mark Waite made changes -
            Summary Since 2.2.6, environment variables are noto expanded in git publisher Since 2.2.6, environment variables are not expanded in git publisher
            spali Thomas Spalinger made changes -
            Attachment config.xml [ 26908 ]
            langers2k Rob Langley made changes -
            Attachment config.xml [ 26909 ]
            markewaite Mark Waite made changes -
            Link This issue is duplicated by JENKINS-24879 [ JENKINS-24879 ]
            markewaite Mark Waite made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            integer Kanstantsin Shautsou made changes -
            Labels git-publisher
            markewaite Mark Waite made changes -
            Status In Progress [ 3 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 158012 ] JNJira + In-Review [ 195844 ]
            markewaite Mark Waite made changes -
            Link This issue is related to JENKINS-49834 [ JENKINS-49834 ]

              People

              • Assignee:
                markewaite Mark Waite
                Reporter:
                spali Thomas Spalinger
              • Votes:
                3 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: