This repository has been archived by the owner on May 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(release): tidy up pipeline code and avoid semantic-release assumi…
…ng a CD pipeline is debug
- Loading branch information
1 parent
be89458
commit b66605b
Showing
2 changed files
with
26 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,36 +4,34 @@ def utils = new io.fabric8.Utils() | |
def org = 'fabric8-ui' | ||
def repo = 'ngx-fabric8-wit' | ||
fabric8UITemplate{ | ||
clientsNode{ | ||
ws { | ||
git "https://github.com/${org}/${repo}.git" | ||
readTrusted 'release.groovy' | ||
sh "git remote set-url origin [email protected]:${org}/${repo}.git" | ||
def pipeline = load 'release.groovy' | ||
ws { | ||
git "https://github.com/${org}/${repo}.git" | ||
readTrusted 'release.groovy' | ||
sh "git remote set-url origin [email protected]:${org}/${repo}.git" | ||
def pipeline = load 'release.groovy' | ||
|
||
if (utils.isCI()){ | ||
container('ui'){ | ||
pipeline.ci() | ||
} | ||
} else if (utils.isCD()){ | ||
def branch | ||
container('clients'){ | ||
branch = utils.getBranch() | ||
} | ||
def published | ||
container('ui'){ | ||
published = pipeline.cd(branch) | ||
} | ||
if (utils.isCI()){ | ||
container('ui'){ | ||
pipeline.ci() | ||
} | ||
} else if (utils.isCD()){ | ||
def branch | ||
container('ui'){ | ||
branch = utils.getBranch() | ||
} | ||
|
||
def published | ||
container('ui'){ | ||
published = pipeline.cd(branch) | ||
} | ||
|
||
def releaseVersion | ||
container('clients'){ | ||
releaseVersion = utils.getLatestVersionFromTag() | ||
} | ||
def releaseVersion | ||
container('ui'){ | ||
releaseVersion = utils.getLatestVersionFromTag() | ||
} | ||
|
||
if (published){ | ||
pipeline.updateDownstreamProjects(releaseVersion) | ||
} | ||
if (published){ | ||
pipeline.updateDownstreamProjects(releaseVersion) | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters