[JAMES-3226] Added .asf.yaml and restrict publish only to live and staging branches
diff --git a/.asf.yaml b/.asf.yaml
new file mode 100644
index 0000000..3d32b11
--- /dev/null
+++ b/.asf.yaml
@@ -0,0 +1,24 @@
+#
+# See documentation for the options here
+# https://cwiki.apache.org/confluence/display/INFRA/git+-+.asf.yaml+features
+#
+
+# Staging and publishing profile for yourproject-website.git:
+staging:
+ profile: ~
+ whoami: asf-staging
+
+github:
+ description: "Project to build the Apache James website"
+ homepage: https://james.apache.org/
+ labels:
+ - mail
+ - server
+ - imap
+ - smtp
+ - jmap
+notifications:
+ commits: site-dev@james.apache.org
+ issues: site-dev@james.apache.org
+ pullrequests: site-dev@james.apache.org
+ jira_options: link label comment
diff --git a/Jenkinsfile b/Jenkinsfile
index 0a1a168..903cce2 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -68,6 +68,9 @@
label 'git-websites'
}
}
+ when {
+ anyOf { branch 'live'; branch 'staging' }
+ }
steps {
echo "Deploy staging James website."