SRE-3441 Some cleanup of groovy code #481
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The Date() method is not allowed by Jenkins Sandbox and needs to be fixed.
This also fixes some diagnostics Jenkins is logging about untyped
variables in some of the groovy methods. These untyped variables
can be updated by other threads and cause intermittent failures
in Jenkins jobs.
var/Date.groovy:
Replace the Date goovy method with an equivalent library step
that is allowed in a grooy sandbox.
This is intended as a hack to compensate for Jenkinsfiles that
currently use the Date function until they can be fixed.
vars/buildRpm.groovy:
vars/durationSeconds.groovy:
vars/provisionNodes.groovy:
vars/runTest.groovy:
vars/testRpm.groovy:
Change from Date to currentTimeMillis method.
vars/cloverReportPublish.groovy:
vars/runScriptWithStashes.groovy:
vars/sconsBuild.groovy:
vars/unitTestPost.groovy:
Change from Date to currentTimeMillis method.
Make unstash failures not always fatal.
Spelling and or minor linting fixes.
vars/daosPackagesVersion.groovy:
Standardize exception for unstash error handling.
vars/functionalTest.groovy:
vars/functionalTestPostV2.groovy:
vars/unitTest.groovy:
Change from Date to currentTimeMillis method.
Remove launchable code.
Standardize exception for unstash error handling.
vars/hwDistroTarget.groovy:
vars/hwDistroTarget2.groovy:
Fix use of global untyped variables that could cause corruption.
vars/valgrindReportPublish.groovy:
Allow disabling valgrindPublish with environment variable.
Spelling and or minor linting fixes.
Jenkinsfile:
vars/junitSimpleReport.groovy:
vars/notifyBrokenBranch.groovy:
vars/runTestFunctional.groovy:
vars/runTestFunctionalV1.groovy:
vars/runTestFunctionalV2.groovy:
vars/scmNotify.groovy:
vars/testRpm.groovy:
Minor Spelling and or linting fixes.