This is an automated email from the ASF dual-hosted git repository.
lukaszlenart pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/struts-site.git
The following commit(s) were added to refs/heads/main by this push:
new f0e3cdeb8 ci: remove stale files from the staged site on each deploy
(#342)
f0e3cdeb8 is described below
commit f0e3cdeb8b584a9fd0d1179e70afbdb5354cecf9
Author: Lukasz Lenart <[email protected]>
AuthorDate: Thu Sep 24 18:28:52 2026 +0200
ci: remove stale files from the staged site on each deploy (#342)
The staging deploy copied _site over content/ without clearing it, so
files removed from the site were never removed from asf-staging. Staging
still serves downloads.html (renamed in 2017), a 2019 migration/ page
that never existed on any branch, and 3,942 Maven site files for plugins
and classes Struts 7 dropped. Replace content/ in full, as the javadocs
job already does for source/maven and as the buildbot does for asf-site.
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
---
Jenkinsfile | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 1e0e244e1..1b510fad0 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -68,11 +68,10 @@ pipeline {
git checkout asf-staging
git pull asf asf-staging
- cp -r _site/* content
- cp -r _site/.htaccess content/.htaccess
+ rm -rf content
+ cp -r _site content
- git add content/*
- git add content/.htaccess
+ git add -A content
git status
git commit -m "Updates stage by Jenkins" --allow-empty