SVN_REVISION and SVN_URL are all well and good, but it's 2015 and access to GIT_ equivalents would be nice.

      [ERROR] Failed to execute: downstream_job_trigger.groovy, No such property: $GIT_URL for class: Script1

          [JENKINS-31907] Does not expose GIT_ variables

          Hao CHEN added a comment -

          I believe it's available.
          Try GIT_URL instead of $GIT_URL

          And make sure you have git plugin installed.

          Hao CHEN added a comment - I believe it's available. Try GIT_URL instead of $GIT_URL And make sure you have git plugin installed.

          Hao CHEN added a comment -

          I did a test, the followings are available:

          • GIT_BRANCH
          • GIT_COMMIT
          • GIT_PREVIOUS_COMMIT
          • GIT_PREVIOUS_SUCCESSFUL_COMMIT
          • GIT_URL

          Hao CHEN added a comment - I did a test, the followings are available: GIT_BRANCH GIT_COMMIT GIT_PREVIOUS_COMMIT GIT_PREVIOUS_SUCCESSFUL_COMMIT GIT_URL

            directhex Jo Shields
            directhex Jo Shields
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: