Skip to content

Commit 11bbf4e

Browse files
committed
Updates to include new error phrases that wasn't being caught.
1 parent 617b43d commit 11bbf4e

File tree

3 files changed

+18
-7
lines changed

3 files changed

+18
-7
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,13 +389,12 @@ environment before disabling. This takes into account enviornments that are dir
389389
## Change Log
390390

391391
### Version 0.78 (16 Nov 2024)
392-
- Moved to minimum Jenkins version: 2.452.1
392+
- Moved to minimum Jenkins version: 2.452.1 and Java 11
393393
- Adding in following capabilities
394394
- Extended Cobertura format output for use with [Jenkins Coverage Plugin](https://github.com/jenkinsci/coverage-plugin)
395395
- Unit Test Data format output in SonarQube format
396396
- Adding capability to generate an index.html for all .html reports
397397
- Refactored New Job code to reduce duplication
398-
- Moved to Jenkins 2.440 and Java 11
399398
- Added BETA support for RGW3
400399
- Removed VectorCAST Project Environment report
401400
- Removed extra options for Update job as the plugin doesn't support Update job

src/main/resources/scripts/baseJenkinsfile.groovy

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ VC_FailurePhrases = ["No valid edition(s) available",
2222
"Environment Creation Failed",
2323
"Error with Test Case Management Report",
2424
"FLEXlm Error",
25+
"Unable to obtain license",
2526
"INCR_BUILD_FAILED",
2627
"Environment was not successfully built",
2728
"NOT_LINKED",
@@ -36,7 +37,8 @@ VC_FailurePhrases = ["No valid edition(s) available",
3637
"Invalid Workspace. Please ensure the directory and database contain write permission",
3738
"The environment is invalid because",
3839
"Please ensure that the project has the proper permissions and that the environment is not being accessed by another process.",
39-
"Error: That command is not permitted in continuous integration mode"
40+
"Error: That command is not permitted in continuous integration mode",
41+
"has been opened by a newer version of VectorCAST. Please upgrade this version of VectorCAST to open the project"
4042
]
4143

4244
// Unstable phrases for checkLogsForErrors

src/main/resources/scripts/baselinePostBuild.groovy

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,26 @@ if (manager.logContains(".*Environment Creation Failed.*")) {
3333
buildFailed = true
3434
manager.addBadge("icon-error icon-xlg", "Environment Creation Failed")
3535
}
36-
if (manager.logContains(".*Error with Test Case Management Report.*")) {
37-
manager.createSummary("icon-error icon-xlg").appendText("Error with Test Case Management Report of at least one Environment", false, false, false, "red")
36+
if (manager.logContains(".*Environment Creation Failed.*")) {
37+
manager.createSummary("icon-error icon-xlg").appendText("Environment Creation Failed", false, false, false, "red")
3838
buildFailed = true
39-
manager.addBadge("icon-error icon-xlg", "Error with Test Case Management Report of at least one Environment")
39+
manager.addBadge("icon-error icon-xlg", "Environment Creation Failed")
4040
}
41-
if (manager.logContains(".*FLEXlm Error.*") || manager.logContains(".*ERROR: Failed to obtain a license.*")) {
41+
if (manager.logContains(".*newer version of VectorCAST*")) {
42+
manager.createSummary("icon-error icon-xlg").appendText("Error with conflicting versions of VectorCAST and VectorCAST Project", false, false, false, "red")
43+
buildFailed = true
44+
manager.addBadge("icon-error icon-xlg", "Error with conflicting versions of VectorCAST and VectorCAST Project")
45+
}
46+
if (manager.logContains(".*FLEXlm Error.*") || manager.logContains(".*ERROR: Failed to obtain a license.*"))) {
4247
manager.createSummary("icon-error icon-xlg").appendText("FLEXlm Error", false, false, false, "red")
4348
buildFailed = true
4449
manager.addBadge("icon-error icon-xlg", "FLEXlm Error")
4550
}
51+
if (manager.logContains(".*Unable to obtain license.*")) {
52+
manager.createSummary("icon-error icon-xlg").appendText("Error: Unable to obtain license", false, false, false, "red")
53+
buildFailed = true
54+
manager.addBadge("icon-error icon-xlg", "Error: Unable to obtain license")
55+
}
4656
if (manager.logContains(".*INCR_BUILD_FAILED.*")) {
4757
manager.createSummary("icon-error icon-xlg").appendText("Build Error", false, false, false, "red")
4858
buildFailed = true

0 commit comments

Comments
 (0)