I would like to have the contents of the Changes section in an environment variable. The application for me is that I am uploading an iOS build to HockeyApp and want to include release notes.

          [JENKINS-12032] Include SCM changes in environment variables

          Daniel Jones added a comment -

          I concur that this would be useful to have.

          Daniel Jones added a comment - I concur that this would be useful to have.

          Laurent Mascherpa added a comment - - edited

          I was sure an environment variable $CHANGE_LOG did exist but nope. It would be super useful.

          Laurent Mascherpa added a comment - - edited I was sure an environment variable $CHANGE_LOG did exist but nope. It would be super useful.

          Oliver H added a comment -

          If you are interested in uploading your build to HockeyApp (with release notes and some other stuff)
          You may try my plugin at: https://github.com/ohoeltke/hockeyapp-plugin
          Will try to update the binary this weekend, master branch is current

          Oliver H added a comment - If you are interested in uploading your build to HockeyApp (with release notes and some other stuff) You may try my plugin at: https://github.com/ohoeltke/hockeyapp-plugin Will try to update the binary this weekend, master branch is current

          For info, there's a workaround in this StackOverflow answer:
          http://stackoverflow.com/a/11837662/234938

          Christopher Orr added a comment - For info, there's a workaround in this StackOverflow answer: http://stackoverflow.com/a/11837662/234938

          Daniel Beck added a comment -

          While I don't think this would be universally useful, it should be fairly easy to write a plugin that does this.

          I'll try to put something together in the next few weeks.

          Daniel Beck added a comment - While I don't think this would be universally useful, it should be fairly easy to write a plugin that does this. I'll try to put something together in the next few weeks.

          Oleg Nenashev added a comment -

          @Daniel
          I suppose this is a case for the SCM-API plugin instead of the core.

          Oleg Nenashev added a comment - @Daniel I suppose this is a case for the SCM-API plugin instead of the core.

          Daniel Beck added a comment -

          So… it has taken much longer than originally expected, but in the context of today' Hacksgiving community event I wrote a simple demo plugin that should do what is requested here. It has not yet been published to the Jenkins community update site, but I pushed it to GitHub:

          https://github.com/daniel-beck/changelog-environment-plugin (mvn verify should build it)

          FWIW there's also a quite flexible list-changes command for the Jenkins CLI (https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+CLI)

          Daniel Beck added a comment - So… it has taken much longer than originally expected, but in the context of today' Hacksgiving community event I wrote a simple demo plugin that should do what is requested here. It has not yet been published to the Jenkins community update site, but I pushed it to GitHub: https://github.com/daniel-beck/changelog-environment-plugin ( mvn verify should build it) FWIW there's also a quite flexible list-changes command for the Jenkins CLI ( https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+CLI )

          Daniel Beck added a comment -

          No response for over a month, so with the public release of the plugin source code I consider this issue resolved.

          Daniel Beck added a comment - No response for over a month, so with the public release of the plugin source code I consider this issue resolved.

          Hi Daniel,

          Thanks for the plugin. I am able to build and install the plugin in my server, but I don't know if there is a way to get the change log in a variable.

          I have provided '%s | %s' in File Item Format section. The build doesn't print any output. Will that be already assigned to any variable?

          Basically I need to get the list of files changed in a array/variable and want to use it in a groovy script in the build step. I have a multi-module project, based on the file modified, groovy will decide how to build the application. Could you let me know how to get the files modified?

          Hariprashadh Sellamuthu added a comment - Hi Daniel, Thanks for the plugin. I am able to build and install the plugin in my server, but I don't know if there is a way to get the change log in a variable. I have provided '%s | %s' in File Item Format section. The build doesn't print any output. Will that be already assigned to any variable? Basically I need to get the list of files changed in a array/variable and want to use it in a groovy script in the build step. I have a multi-module project, based on the file modified, groovy will decide how to build the application. Could you let me know how to get the files modified?

          Daniel Beck added a comment -

          hariprashadh Form validation should either show an error explaining what's wrong, or show a sample line of output for your format.

          If that doesn't work, file an issue in GitHub.

          Daniel Beck added a comment - hariprashadh Form validation should either show an error explaining what's wrong, or show a sample line of output for your format. If that doesn't work, file an issue in GitHub.

            danielbeck Daniel Beck
            jjennings Jacob Jennings
            Votes:
            10 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved: