This is an automated email from the ASF dual-hosted git repository. ieugen pushed a commit to branch live in repository https://gitbox.apache.org/repos/asf/james-site.git
commit 33af0f09e857080f26f0a239b1b338b5d27b6899 Author: Eugen Stan <eu...@ieugen.ro> AuthorDate: Mon Jul 20 13:06:30 2020 +0300 [JAMES-3226] Added .asf.yaml and restrict publish only to live and staging branches --- .asf.yaml | 24 ++++++++++++++++++++++++ Jenkinsfile | 3 +++ 2 files changed, 27 insertions(+) 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 @@ pipeline { label 'git-websites' } } + when { + anyOf { branch 'live'; branch 'staging' } + } steps { echo "Deploy staging James website."