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

Cannot use ENV variable for repository url in Git Publisher

XMLWordPrintable

      If you've a variable as the Repository URL, e.g. ${GIT_REPO}

      {GIT_REPO}

      doesn't get replaced in git publisher - it will do

      hudson.plugins.git.GitException: Command "git push ${GIT_REPO} 1.1.761 -f" returned status code 128:
      stdout:

        1. image-2018-07-30-09-25-09-077.png
          10 kB
          Daniel Carreira
        2. image-2018-07-30-09-27-16-812.png
          10 kB
          Daniel Carreira
        3. image-2018-07-30-09-32-20-195.png
          10 kB
          Daniel Carreira
        4. image-2018-08-17-07-02-20-124.png
          38 kB
          jlpinardon
        5. image-2018-08-17-07-20-30-640.png
          12 kB
          jlpinardon
        6. JENKINS-27508-config.xml
          7 kB
          Mark Waite

            yashj21 Yash Amrut Jain
            peterlai Peter lai
            Votes:
            6 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: