[monorepo] refactor retries in Jenkins to step level (#29008)

* [monorepo] refactor retries in Jenkins to step level

Change the junit reports to use step specific file names. The [hash]
template option was neat in getting unique file names, but results in
duplicate test reports on retry.

* [patches] add support for .cjs config files for mocha-multi-reporters

GitOrigin-RevId: 3a749441470b5ba633e71319589606cfbe860952
This commit is contained in:
Jakob Ackermann
2025-10-13 08:06:37 +00:00
committed by Copybot
parent f0b2466f93
commit d7623b576f
14 changed files with 163 additions and 69 deletions
+9 -14
View File
@@ -7,7 +7,6 @@ pipeline {
}
options {
timestamps()
parallelsAlwaysFailFast()
timeout(time: 15, unit: 'MINUTES')
}
environment {
@@ -23,15 +22,12 @@ pipeline {
stage('Build') {
steps {
dir('services/git-bridge') {
sh 'make docker_build_base'
retry(count: 3) {
sh 'make docker_build_base'
}
}
}
}
stage('Install monorepo') {
steps {
sh 'make monorepo_setup'
}
}
}
}
stage('Stage 2') {
@@ -39,7 +35,9 @@ pipeline {
stage('Build production and push') {
steps {
dir('services/git-bridge') {
sh 'make docker_build'
retry(count: 3) {
sh 'make docker_build'
}
sh 'make push_branch'
}
}
@@ -51,15 +49,12 @@ pipeline {
}
}
}
stage('Format Jenkinsfile') {
steps {
sh 'bin/run monorepo npm run format:jenkins'
}
}
stage('Test') {
steps {
dir('services/git-bridge') {
sh 'make docker_test'
retry(count: 3) {
sh 'make docker_test'
}
}
}
}