mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 09:09:36 +02:00
[monorepo] document jenkins pipelines (#27954)
* [saas-e2e] reset database when db-migration files were removed * [monorepo] document jenkins pipelines * [monorepo] trim docs for jenkins pipelines GitOrigin-RevId: 783ad94f05b36f4057e3ac6cc8b8c40f850e5d2f
This commit is contained in:
9
server-ce/test/Jenkinsfile
vendored
9
server-ce/test/Jenkinsfile
vendored
@@ -1,3 +1,7 @@
|
||||
// Initialize variables to signal that a given stage finished.
|
||||
// We use them to build a graph of interconnected steps/dependencies.
|
||||
// - Incoming edges use "waitUntil" and reference the given variables of dependencies.
|
||||
// - Outgoing edges set the given variable to true.
|
||||
def job_copybara_done = false
|
||||
def job_npm_install_done = false
|
||||
def job_prefetch_custom_done = false
|
||||
@@ -8,13 +12,17 @@ def job_server_pro_build_done = false
|
||||
pipeline {
|
||||
agent {
|
||||
node {
|
||||
// Select a VM with the given tabel.
|
||||
label 'jenkins-agent-web'
|
||||
// Use the monorepo checkout in /workspace.
|
||||
customWorkspace '/workspace'
|
||||
}
|
||||
}
|
||||
|
||||
options {
|
||||
// Print timestamp next to each log line.
|
||||
timestamps()
|
||||
// Abort build after hitting first failure.
|
||||
parallelsAlwaysFailFast()
|
||||
timeout(time: 15, unit: 'MINUTES')
|
||||
}
|
||||
@@ -220,6 +228,7 @@ pipeline {
|
||||
}
|
||||
}
|
||||
post {
|
||||
// Ensure tear down of test containers, remove CE docker images, then run general Jenkins VM cleanup.
|
||||
cleanup {
|
||||
dir('server-ce/test') {
|
||||
sh 'make clean'
|
||||
|
||||
9
services/web/Jenkinsfile
vendored
9
services/web/Jenkinsfile
vendored
@@ -1,3 +1,7 @@
|
||||
// Initialize variables to signal that a given stage finished.
|
||||
// We use them to build a graph of interconnected steps/dependencies.
|
||||
// - Incoming edges use "waitUntil" and reference the given variables of dependencies.
|
||||
// - Outgoing edges set the given variable to true.
|
||||
def action_test_frontend_ct_build = false
|
||||
def action_build_deps = false
|
||||
def action_copy_external_pages = false
|
||||
@@ -11,13 +15,17 @@ def action_build_production= false
|
||||
pipeline {
|
||||
agent {
|
||||
node {
|
||||
// Select a VM with the given tabel.
|
||||
label 'jenkins-agent-web'
|
||||
// Use the monorepo checkout in /workspace.
|
||||
customWorkspace '/workspace'
|
||||
}
|
||||
}
|
||||
|
||||
options {
|
||||
// Print timestamp next to each log line.
|
||||
timestamps()
|
||||
// Abort build after hitting first failure.
|
||||
parallelsAlwaysFailFast()
|
||||
timeout(time: 15, unit: 'MINUTES')
|
||||
}
|
||||
@@ -447,6 +455,7 @@ pipeline {
|
||||
}
|
||||
}
|
||||
post {
|
||||
// Ensure tear down of test containers, then run general Jenkins VM cleanup.
|
||||
cleanup {
|
||||
dir('services/web') {
|
||||
sh 'make clean'
|
||||
|
||||
Reference in New Issue
Block a user