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

Env variables GIT_AUTHOR_DATE and GIT_COMMITTER_DATE being ignored

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Major Major
    • git-plugin
    • None

      Hello,

      We have an issue internally that requires us to set the hash revision of a merge commit.

      We found out that if we set the env variables GIT_AUTHOR_DATE and GIT_COMMITTER_DATE it will be possible. When we do this locally, it works. But when we try to do the same on Jenkins in a Pull Request build it doesn't work.

      I've added the Jenkinsfile as attachment.
      So it seems that the git plugin is ignoring the env variables when doing the automatic commit for the PR build. We also made sure that the env variables are set by priting them Can this be improved by letting the plugin read those two variables?

      Thank you. If you need more information please let me know.

            Unassigned Unassigned
            marcodomingues99 Marco
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: