Skip to content

Commit

Permalink
Use a list of commits for the GitHub release body
Browse files Browse the repository at this point in the history
  • Loading branch information
nre-ableton committed Nov 1, 2023
1 parent dc9da1f commit 6254c89
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,13 @@ devToolsProject.run(
},
publish: { data -> jupiter.publishDocs("${data['docs']}/", 'Ableton/groovylint') },
deploy: { data ->
String lastTag = sh(
returnStdout: true, script: 'git describe --tags --abbrev=0'
).trim()
String body = sh(
returnStdout: true, script: "git log --format='- %s (%h)' ${lastTag}..HEAD"
)

String versionNumber = readFile('VERSION').trim()
parallel(
docker_hub: {
Expand All @@ -125,6 +132,7 @@ devToolsProject.run(
findFiles(glob: 'run_codenarc.py')
gitHub.makeRelease(
apiToken: BUILD_API_TOKEN,
body: body,
commitish: params.JENKINS_COMMIT,
files: distFiles,
name: versionNumber,
Expand Down

0 comments on commit 6254c89

Please sign in to comment.