I failed to pass change log string changelogString log to python script. In windows Env.
def changelogString = gitChangelog returnType: 'STRING', from: [type: 'REF', value: 'git-changelog-1.50'], to: [type: 'REF', value: 'master'], template: """ <h1> Git Changelog changelog </h1><p>Changelog of Git Changelog.</p>{{#tags}}<h2> {{name}} </h2> {{#issues}} {{#hasIssue}} {{#hasLink}}<h2> {{name}} <a href="{{link}}">{{issue}}</a> {{title}} </h2> {{/hasLink}} {{^hasLink}}<h2> {{name}} {{issue}} {{title}} </h2> {{/hasLink}} {{/hasIssue}} {{^hasIssue}}<h2> {{name}} </h2> {{/hasIssue}} {{#commits}}<a href="https://github.com/tomasbjerre/git-changelog-lib/commit/{{hash}}">{{hash}}</a> {{authorName}} <i>{{commitTime}}</i><p><h3>{{{messageTitle}}}</h3>{{#messageBodyItems}} <li> {{.}}</li> {{/messageBodyItems}}</p> {{/commits}} {{/issues}}{{/tags}} """ currentBuild.description = changelogString } def result = bat (script : 'python pythonscript "%changelogString%"', retrurnstd= true) -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/0e3fd9da-1927-48d5-bec1-72a7a92317bb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.