You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by bd...@apache.org on 2023/04/21 09:40:30 UTC
[comdev-site] branch main updated: Disable preview builds for now, getting infinite loops with -staging-staging-staging branches
This is an automated email from the ASF dual-hosted git repository.
bdelacretaz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/comdev-site.git
The following commit(s) were added to refs/heads/main by this push:
new 28fe92f Disable preview builds for now, getting infinite loops with -staging-staging-staging branches
28fe92f is described below
commit 28fe92f392e7fde47d38db64da380710fb080344
Author: Bertrand Delacretaz <bd...@apache.org>
AuthorDate: Fri Apr 21 11:40:21 2023 +0200
Disable preview builds for now, getting infinite loops with -staging-staging-staging branches
---
Jenkinsfile | 13 +++++++++++--
README.md | 7 +++++++
2 files changed, 18 insertions(+), 2 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index faa88e9..845352d 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -31,6 +31,12 @@ pipeline {
PAGEFIND_HASH = '3e450176562b65359f855c04894ec2c07ffd30a8d08ef4d5812f8d3469d7a58f'
}
+ // TODO_TRIGGER how to run the pipeline only for branches that match the below regexp?
+ // To avoid recursively building staging branches
+ // expression {
+ // return env.BRANCH_NAME ==~ /(main|preview\/[a-zA-Z0-9_]+$)/
+ // }
+
stages {
stage('Prepare') {
steps {
@@ -112,9 +118,12 @@ pipeline {
stage('Staging') {
// Mostly duplicated from the Deploy branch, there must be a better way...
when {
- not {
- branch 'main'
+ anyOf {
+ branch 'TODO_DISABLED_FOR_NOW_SEE_TODO_TRIGGER_above'
}
+ //not {
+ // branch 'main'
+ //}
}
steps {
script {
diff --git a/README.md b/README.md
index cb4874c..9e354a4 100644
--- a/README.md
+++ b/README.md
@@ -30,6 +30,13 @@ Changes to the `main` branch of this repository trigger the [comdev-site Jenkins
The [ASF's gitpubsub mechanism](https://blogs.apache.org/infra/entry/git_based_websites_available) then synchronizes that content to [https://community.apache.org/](https://community.apache.org/), usually within a few seconds. More details about the publication process can be found in the [ASF Documentation about Project sites](https://infra.apache.org/project-site.html). If for some reason this process fails, you can use [the self-service page from ASF Infra](https://selfserve.apache.or [...]
+## Staging content
+
+> TODO: currently disabled in the Jenkinsfile
+
+Branches named `preview/*` are staged automatically, a branch named `preview/demo0421` for example
+is staged at https://community-demo0421.staged.apache.org/
+
## Powered by Hugo!
The website uses Hugo as static website generator, see the [Hugo website](https://gohugo.io/) for more information