jenkinsci / git-changelog-plugin

Creates a changelog, or release notes, based on Git commits between 2 revisions.
https://plugins.jenkins.io/git-changelog
MIT License
57 stars 33 forks source link

Synchronise properties between freestyle and pipeline #55

Closed quasarea closed 3 years ago

quasarea commented 3 years ago

Feature Request

I.e. currently freestyle allows to generate changes file using template, but pipeline does not have such options.

https://localhost/pipeline-syntax/

tomasbjerre commented 3 years ago

Yes, no need for it.

 def changelogString = gitChangelog returnType: 'STRING',
  from: [type: 'REF', value: 'git-changelog-1.50'],
  to: [type: 'REF', value: 'master'],
  template: """
  whatever template
  """

writeFile file: "CHANGELOG.md", text: changelogString