mirror of
https://github.com/corda/corda.git
synced 2025-02-06 11:09:18 +00:00
Merge pull request #5889 from corda/ramzi/43-44-merge
OS 4.3 -> OS 4.4 Merge
This commit is contained in:
commit
fa55b66c8d
2
.ci/dev/integration/Jenkinsfile
vendored
2
.ci/dev/integration/Jenkinsfile
vendored
@ -1,5 +1,5 @@
|
|||||||
import static com.r3.build.BuildControl.killAllExistingBuildsForJob
|
import static com.r3.build.BuildControl.killAllExistingBuildsForJob
|
||||||
@Library('existing-build-control')
|
@Library('corda-shared-build-pipeline-steps')
|
||||||
import static com.r3.build.BuildControl.killAllExistingBuildsForJob
|
import static com.r3.build.BuildControl.killAllExistingBuildsForJob
|
||||||
|
|
||||||
killAllExistingBuildsForJob(env.JOB_NAME, env.BUILD_NUMBER.toInteger())
|
killAllExistingBuildsForJob(env.JOB_NAME, env.BUILD_NUMBER.toInteger())
|
||||||
|
2
.ci/dev/nightly-regression/Jenkinsfile
vendored
2
.ci/dev/nightly-regression/Jenkinsfile
vendored
@ -1,4 +1,4 @@
|
|||||||
@Library('existing-build-control')
|
@Library('corda-shared-build-pipeline-steps')
|
||||||
import static com.r3.build.BuildControl.killAllExistingBuildsForJob
|
import static com.r3.build.BuildControl.killAllExistingBuildsForJob
|
||||||
|
|
||||||
killAllExistingBuildsForJob(env.JOB_NAME, env.BUILD_NUMBER.toInteger())
|
killAllExistingBuildsForJob(env.JOB_NAME, env.BUILD_NUMBER.toInteger())
|
||||||
|
6
.ci/dev/on-demand-tests/Jenkinsfile
vendored
Normal file
6
.ci/dev/on-demand-tests/Jenkinsfile
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
@Library('corda-shared-build-pipeline-steps') _
|
||||||
|
import static com.r3.build.BuildControl.killAllExistingBuildsForJob
|
||||||
|
|
||||||
|
killAllExistingBuildsForJob(env.JOB_NAME, env.BUILD_NUMBER.toInteger())
|
||||||
|
|
||||||
|
onDemandTestPipeline('k8s', '.ci/dev/on-demand-tests/commentMappings.yml')
|
4
.ci/dev/on-demand-tests/commentMappings.yml
Normal file
4
.ci/dev/on-demand-tests/commentMappings.yml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
integration: { allParallelIntegrationTest }
|
||||||
|
pr-merge: { parallelRegressionTest }
|
||||||
|
smoke: { allParallelSmokeTest }
|
||||||
|
unit: { allParallelUnitTest }
|
59
.ci/dev/regression/Jenkinsfile
vendored
59
.ci/dev/regression/Jenkinsfile
vendored
@ -1,4 +1,4 @@
|
|||||||
@Library('existing-build-control')
|
@Library('corda-shared-build-pipeline-steps')
|
||||||
import static com.r3.build.BuildControl.killAllExistingBuildsForJob
|
import static com.r3.build.BuildControl.killAllExistingBuildsForJob
|
||||||
|
|
||||||
killAllExistingBuildsForJob(env.JOB_NAME, env.BUILD_NUMBER.toInteger())
|
killAllExistingBuildsForJob(env.JOB_NAME, env.BUILD_NUMBER.toInteger())
|
||||||
@ -65,22 +65,13 @@ pipeline {
|
|||||||
* copied to avoid collisions between files where the same test
|
* copied to avoid collisions between files where the same test
|
||||||
* classes have run on multiple pods.
|
* classes have run on multiple pods.
|
||||||
*/
|
*/
|
||||||
sh label: 'Compact test results',
|
fileOperations([fileCopyOperation(
|
||||||
script:
|
includes: '**/test-results-xml/**/test-runs/test-reports/**',
|
||||||
'''#!/bin/bash
|
targetLocation: 'allure-input',
|
||||||
shopt -s globstar
|
flattenFiles: true,
|
||||||
rm -rf allure-input
|
renameFiles: true,
|
||||||
mkdir allure-input
|
sourceCaptureExpression: '.*test-results-xml/.*-([\\d]+)/.*/([^/]+)$',
|
||||||
|
targetNameExpression: '$1-$2')])
|
||||||
for i in **/test-results-xml/**/test-runs/test-reports/**
|
|
||||||
do
|
|
||||||
[ -f $i ] &&
|
|
||||||
cp $i allure-input/$(echo $i | sed -e \\
|
|
||||||
\'s/.*test-results-xml\\/.*-\\(.*\\)\\/test-runs\\/.*\\/\\(.*\\)$/\\1\\-\\2/\')
|
|
||||||
done
|
|
||||||
|
|
||||||
echo "Finished compacting JUnit results"
|
|
||||||
'''
|
|
||||||
allure includeProperties: false,
|
allure includeProperties: false,
|
||||||
jdk: '',
|
jdk: '',
|
||||||
results: [[path: '**/allure-input']]
|
results: [[path: '**/allure-input']]
|
||||||
@ -92,6 +83,40 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
script
|
||||||
|
{
|
||||||
|
// We want to send a summary email, but want to limit to once per day.
|
||||||
|
// Comparing the dates of the previous and current builds achieves this,
|
||||||
|
// i.e. we will only send an email for the first build on a given day.
|
||||||
|
def prevBuildDate = new Date(
|
||||||
|
currentBuild?.previousBuild.timeInMillis ?: 0).clearTime()
|
||||||
|
def currentBuildDate = new Date(
|
||||||
|
currentBuild.timeInMillis).clearTime()
|
||||||
|
|
||||||
|
if (prevBuildDate != currentBuildDate) {
|
||||||
|
def statusSymbol = '\u2753'
|
||||||
|
switch(currentBuild.result) {
|
||||||
|
case 'SUCCESS':
|
||||||
|
statusSymbol = '\u2705'
|
||||||
|
break;
|
||||||
|
case 'UNSTABLE':
|
||||||
|
case 'FAILURE':
|
||||||
|
statusSymbol = '\u274c'
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
echo('First build for this date, sending summary email')
|
||||||
|
emailext to: '$DEFAULT_RECIPIENTS',
|
||||||
|
subject: "$statusSymbol" + '$BRANCH_NAME regression tests - $BUILD_STATUS',
|
||||||
|
mimeType: 'text/html',
|
||||||
|
body: '${SCRIPT, template="groovy-html.template"}'
|
||||||
|
} else {
|
||||||
|
echo('Already sent summary email today, suppressing')
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
cleanup {
|
cleanup {
|
||||||
deleteDir() /* clean up our workspace */
|
deleteDir() /* clean up our workspace */
|
||||||
|
2
.ci/dev/smoke/Jenkinsfile
vendored
2
.ci/dev/smoke/Jenkinsfile
vendored
@ -1,4 +1,4 @@
|
|||||||
@Library('existing-build-control')
|
@Library('corda-shared-build-pipeline-steps')
|
||||||
import static com.r3.build.BuildControl.killAllExistingBuildsForJob
|
import static com.r3.build.BuildControl.killAllExistingBuildsForJob
|
||||||
|
|
||||||
killAllExistingBuildsForJob(env.JOB_NAME, env.BUILD_NUMBER.toInteger())
|
killAllExistingBuildsForJob(env.JOB_NAME, env.BUILD_NUMBER.toInteger())
|
||||||
|
2
.ci/dev/unit/Jenkinsfile
vendored
2
.ci/dev/unit/Jenkinsfile
vendored
@ -1,5 +1,5 @@
|
|||||||
import static com.r3.build.BuildControl.killAllExistingBuildsForJob
|
import static com.r3.build.BuildControl.killAllExistingBuildsForJob
|
||||||
@Library('existing-build-control')
|
@Library('corda-shared-build-pipeline-steps')
|
||||||
import static com.r3.build.BuildControl.killAllExistingBuildsForJob
|
import static com.r3.build.BuildControl.killAllExistingBuildsForJob
|
||||||
|
|
||||||
killAllExistingBuildsForJob(env.JOB_NAME, env.BUILD_NUMBER.toInteger())
|
killAllExistingBuildsForJob(env.JOB_NAME, env.BUILD_NUMBER.toInteger())
|
||||||
|
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@ -1,5 +1,5 @@
|
|||||||
import static com.r3.build.BuildControl.killAllExistingBuildsForJob
|
import static com.r3.build.BuildControl.killAllExistingBuildsForJob
|
||||||
@Library('existing-build-control')
|
@Library('corda-shared-build-pipeline-steps')
|
||||||
import static com.r3.build.BuildControl.killAllExistingBuildsForJob
|
import static com.r3.build.BuildControl.killAllExistingBuildsForJob
|
||||||
|
|
||||||
killAllExistingBuildsForJob(env.JOB_NAME, env.BUILD_NUMBER.toInteger())
|
killAllExistingBuildsForJob(env.JOB_NAME, env.BUILD_NUMBER.toInteger())
|
||||||
@ -71,4 +71,4 @@ pipeline {
|
|||||||
deleteDir() /* clean up our workspace */
|
deleteDir() /* clean up our workspace */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -172,7 +172,7 @@ style:
|
|||||||
ignoreNamedArgument: true
|
ignoreNamedArgument: true
|
||||||
ignoreEnums: true
|
ignoreEnums: true
|
||||||
MaxLineLength:
|
MaxLineLength:
|
||||||
active: true
|
active: false
|
||||||
excludes: "**/buildSrc/**"
|
excludes: "**/buildSrc/**"
|
||||||
maxLineLength: 140
|
maxLineLength: 140
|
||||||
excludePackageStatements: true
|
excludePackageStatements: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user