Skip to content

Commit

Permalink
Improve a few formatting things; #56
Browse files Browse the repository at this point in the history
  • Loading branch information
CloudFlo2312 committed Apr 1, 2021
1 parent 840a215 commit e7830cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/com/cloudogu/ces/cesbuildlib/GitFlow.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class GitFlow implements Serializable {
*
* @param releaseVersion the version that is going to be released
*/
void finishRelease(String releaseVersion, String productionBranch="master") {
void finishRelease(String releaseVersion, String productionBranch = "master") {
String branchName = git.getBranchName()

// Stop the build here if there is already a tag for this version on remote.
Expand Down Expand Up @@ -70,7 +70,7 @@ class GitFlow implements Serializable {
git.checkout(releaseVersion)

// Push changes and tags
git.push("origin " + productionBranch + " develop ${releaseVersion}")
git.push("origin ${productionBranch} develop ${releaseVersion}")
git.deleteOriginBranch(branchName)
}
}
4 changes: 2 additions & 2 deletions src/com/cloudogu/ces/cesbuildlib/GitHub.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class GitHub implements Serializable {
* @param releaseVersion the version for the github release
* @param changelog the changelog object to extract the release information from
*/
void createReleaseWithChangelog(String releaseVersion, Changelog changelog, String productionBranch="master") {
void createReleaseWithChangelog(String releaseVersion, Changelog changelog, String productionBranch = "master") {
try {
def changelogText = changelog.changesForVersion(releaseVersion)
script.echo "The description of github release will be: >>>${changelogText}<<<"
Expand All @@ -29,7 +29,7 @@ class GitHub implements Serializable {
/**
* Creates a release on Github and fills it with the changes provided
*/
void createRelease(String releaseVersion, String changes, String productionBranch="master") {
void createRelease(String releaseVersion, String changes, String productionBranch = "master") {
def repositoryName = git.getRepositoryName()
if (!git.credentials) {
throw new IllegalArgumentException('Unable to create Github release without credentials.')
Expand Down

0 comments on commit e7830cc

Please sign in to comment.