Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

Commit

Permalink
Fix issue with github release tagging.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nic Patterson committed Jan 7, 2018
1 parent 354f03e commit cbe6b94
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Jenkins Workflows

## 0.1.1

### Fixed

* github.createRelease: Fix issue where generated name/tag can get multiple `v`s for a prefix.

## 0.1.0

### Added
Expand Down
5 changes: 3 additions & 2 deletions github.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -196,12 +196,13 @@ example:
*/
public createRelease(Map yml, Map args) {
String genVersion = concurGit.getVersion().split('-')[0]
genVersion = genVersion.startsWith('v') ? "$genVersion" : "v$genVersion"

Map credentials = args?.credentials ?: yml.tools?.github?.credentials
String changelogFile = args?.changelogFile ?: yml.tools?.github?.changelog?.file ?: 'CHANGELOG.md'
String versionSeperator = args?.separator ?: yml.tools?.github?.changelog?.separator ?: '##'
String releaseName = args?.name ?: "v$genVersion"
String tagName = args?.tag ?: "v$genVersion"
String releaseName = args?.name ?: genVersion
String tagName = args?.tag ?: genVersion
String releaseNotes = args?.notes

Boolean preRelease = args?.preRelease == null ? false : args?.preRelease
Expand Down

0 comments on commit cbe6b94

Please sign in to comment.