Skip to content

Commit

Permalink
Merge pull request opendevstack#158 from opendevstack/feature/minor-m…
Browse files Browse the repository at this point in the history
…essage-improvements
  • Loading branch information
metmajer committed Mar 31, 2020
2 parents aec82f1 + 6674312 commit 9e118c5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/org/ods/usecase/LeVADocumentUseCase.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ class LeVADocumentUseCase extends DocGenUseCase {
description : testIssue.description ?: "N/A",
systemRequirement : testIssue.requirements.join(", "),
success : testIssue.isSuccess ? "Y" : "N",
remarks : testIssue.isMissing ? "Not executed" : "N/A",
remarks : testIssue.isUnexecuted ? "Not executed" : "N/A",
softwareDesignSpec: (softwareDesignSpecs.join(", "))?: "N/A",
riskLevel : riskLevels ? riskLevels.join(", ") : "N/A"
]
Expand Down
7 changes: 6 additions & 1 deletion vars/phaseInit.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,12 @@ def call() {
project.load(registry.get(GitUtil), registry.get(JiraUseCase))
def repos = project.repositories

if (project.isPromotionMode && git.localTagExists(project.targetTag)) {
// Validate that for Q and P we have a valid version
if (project.isPromotionMode && ['Q', 'P'].contains(project.buildParams.targetEnvironmentToken) && buildParams.version == "WIP") {
throw new RuntimeException("Error: trying to deploy to Q or P without having defined a correct version. ${buildParams.version} version value is not allowed for those environments. If you are using Jira, please check that all values are set in the release manager issue. Build parameters obtained: ${buildParams}")
}

if (project.isPromotionMode && git.localTagExists(project.targetTag)) {
if (project.buildParams.targetEnvironmentToken == 'Q') {
steps.echo("WARNING: Deploying tag ${project.targetTag} again!")
} else {
Expand Down

0 comments on commit 9e118c5

Please sign in to comment.