Skip to content

Commit c8dceb9

Browse files
PSMDB-1874 enable concurrent builds, add slack notifications
1 parent ce63537 commit c8dceb9

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

psmdb/psmdb-regression.groovy

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,11 @@ pipeline {
2727
booleanParam(name: 'unittests',defaultValue: true, description: 'Check if list of suites contains unittests')
2828
booleanParam(name: 'integrationtests',defaultValue: false, description: 'Check if list of suites contains integration tests')
2929
booleanParam(name: 'benchmarktests',defaultValue: false, description: 'Check if list of suites contains benchmark tests')
30-
string(name: 'OS', defaultValue: 'debian:12', description: 'Base OS, can be changed to build the image for PBM tests')
30+
string(name: 'OS', defaultValue: 'ubuntu:24.04', description: 'Base OS, can be changed to build the image for PBM tests')
3131
string(name: 'resmoke_params', defaultValue: '--excludeWithAnyTags=featureFlagColumnstoreIndexes,featureFlagUpdateOneWithoutShardKey,featureFlagGlobalIndexesShardingCatalog,featureFlagGlobalIndexes,featureFlagTelemetry,featureFlagAuditConfigClusterParameter,serverless,does_not_support_config_fuzzer,featureFlagDeprioritizeLowPriorityOperations,featureFlagSbeFull,featureFlagQueryStats,featureFlagTransitionToCatalogShard,requires_latch_analyzer', description: 'Extra params passed to resmoke.py')
3232
}
3333
options {
3434
withCredentials(moleculePbmJenkinsCreds())
35-
disableConcurrentBuilds()
3635
}
3736
stages {
3837
stage('Set build name'){
@@ -87,6 +86,12 @@ pipeline {
8786
}
8887
}
8988
post {
89+
success {
90+
slackNotify("#mongodb_autofeed", "#00FF00", "[${JOB_NAME}]: PSMDB compilation for branch ${params.branch} on OS ${params.OS} finished succesfully, docker image: public.ecr.aws/e7j3v3n0/psmdb-build:${params.tag}")
91+
}
92+
failure {
93+
slackNotify("#mongodb_autofeed", "#FF0000", "[${JOB_NAME}]: PSMDB compilation for branch ${params.branch} on OS ${params.OS} failed - [${BUILD_URL}]")
94+
}
9095
always {
9196
sh 'sudo rm -rf ./*'
9297
}
@@ -455,11 +460,17 @@ pipeline {
455460
}
456461
}
457462
post {
458-
always {
463+
success {
464+
slackNotify("#mongodb_autofeed", "#00FF00", "[${JOB_NAME}]: Test resuts for branch ${params.branch} on OS ${params.OS} - [${BUILD_URL}testReport/(root)/]")
465+
}
466+
unstable {
467+
slackNotify("#mongodb_autofeed", "#F6F930", "[${JOB_NAME}]: Test resuts for branch ${params.branch} on OS ${params.OS} - [${BUILD_URL}testReport/(root)/]")
468+
}
469+
always {
459470
sh '''
460471
sudo rm -rf ./*
461472
'''
462473
deleteDir()
463-
}
474+
}
464475
}
465476
}

0 commit comments

Comments
 (0)