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

Git/Gerrit environment Variables are not available in Maven projects

      In Maven project when the trigger is set to Poll git SCM or Gerrit trigger the Git/Gerrit parameters are not part of the maven project environment Variables as they are in freestyle projects and Multijob Projects.
      i am refering to these environment Variables:

      GERRIT_EVENT_TYPE
      GERRIT_CHANGE_URL
      GERRIT_BRANCH
      GERRIT_CHANGE_OWNER_EMAIL
      GERRIT_CHANGE_SUBJECT

      GIT_COMMIT
      GIT_URL
      GIT_BRANCH

          [JENKINS-24948] Git/Gerrit environment Variables are not available in Maven projects

          rin_ne added a comment -

          Please get log using attached pom.xml (goal: compile)

          rin_ne added a comment - Please get log using attached pom.xml (goal: compile)

          Doron Shai added a comment -

          is there a planned fix for this issue?

          Doron Shai added a comment - is there a planned fix for this issue?

          rin_ne added a comment - - edited

          Not sure this is an issue. So you should provide console log using attached pom.

          rin_ne added a comment - - edited Not sure this is an issue. So you should provide console log using attached pom.

          Doron Shai added a comment -

          for the job that use git poll to trigger build i get these results, and i am able to get the params using echo but it should be avaialbe as out of the box as it is in other job types like Multijob

          Doron Shai added a comment - for the job that use git poll to trigger build i get these results, and i am able to get the params using echo but it should be avaialbe as out of the box as it is in other job types like Multijob

          rin_ne added a comment -

          Sorry, I'm not sure your claim...

          Seems not Git/GT plugin issue.

          rin_ne added a comment - Sorry, I'm not sure your claim... Seems not Git/GT plugin issue.

          Kanstantsin Shautsou added a comment - - edited

          Please try with maven-plugin-2.7

          Kanstantsin Shautsou added a comment - - edited Please try with maven-plugin-2.7

          Doron Shai added a comment -

          it was not released yet

          Doron Shai added a comment - it was not released yet

          Kanstantsin Shautsou added a comment - Then wait or directly download https://updates.jenkins-ci.org/download/plugins/maven-plugin/

          Update center temporary broken INFRA-178 you may update it directly

          Kanstantsin Shautsou added a comment - Update center temporary broken INFRA-178 you may update it directly

            rsandell rsandell
            doronshai Doron Shai
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: