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

Some environment variables are not expanded during git polling

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • git-plugin

      When setting the git URL to include environment variables, specifically

      ${JOB_NAME}
      

      , and "Force polling using workspace" disabled, then during SCM polling the environment variables are not evaluated correctly when evaluating ref-specs and branch-specs.

      As a result, credentials are loaded to the git client using the unparsed URL, while when the git client is actually being run it uses the correct URL and fails to load the credentials.

          [JENKINS-29689] Some environment variables are not expanded during git polling

          Oded Arbel added a comment -

          I have a fix for this issue, which will be submitted shortly.

          Oded Arbel added a comment - I have a fix for this issue, which will be submitted shortly.

          Oded Arbel added a comment -

          Submitted pull request #339

          Oded Arbel added a comment - Submitted pull request #339

          Allan C added a comment -

          guss77Should we close this issue if it's already fixed?

          Allan C added a comment - guss77 Should we close this issue if it's already fixed?

          Oded Arbel added a comment -

          I haven't dealt with this specific issue in a while (the report is from 3.5 years ago), but as far as I know the problem was never fixed.

          The pull request I initially offered was deemed incomplete and was not merged. I'm unaware of any other attempts to fix this bug.

          That being said, I'm not using a relevant setup anymore, so I have no personal interest in keeping this issue opened.

          Oded Arbel added a comment - I haven't dealt with this specific issue in a while (the report is from 3.5 years ago), but as far as I know the problem was never fixed. The pull request I initially offered was deemed incomplete and was not merged. I'm unaware of any other attempts to fix this bug. That being said, I'm not using a relevant setup anymore, so I have no personal interest in keeping this issue opened.

            Unassigned Unassigned
            guss77 Oded Arbel
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: