mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 06:33:55 +01:00
[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:
Vendored
+9
-14
@@ -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'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user