You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2026/06/11 17:11:56 UTC
(camel-website) branch main updated: Reduce deploy diff size with rsync and add CDN nudge push (#1631) (#1633)
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-website.git
The following commit(s) were added to refs/heads/main by this push:
new 8e850910 Reduce deploy diff size with rsync and add CDN nudge push (#1631) (#1633)
8e850910 is described below
commit 8e8509106173bf14b89821222a1543d640ac8cee
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Thu Jun 11 19:11:51 2026 +0200
Reduce deploy diff size with rsync and add CDN nudge push (#1631) (#1633)
---
Jenkinsfile | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 2e970e2a..f35bea73 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -93,11 +93,13 @@ pipeline {
dir('deploy/live') {
deleteDir()
sh 'git clone -b asf-site https://gitbox.apache.org/repos/asf/camel-website-pub.git .'
- sh 'git rm -q -r *'
- sh "cp -R $WORKSPACE/camel-website/public/. ."
- sh 'git add .'
+ sh "rsync -a --delete --exclude='.git' --exclude='.asf.yaml' $WORKSPACE/camel-website/public/ ."
+ sh 'git add -A'
sh "git checkout $VALID_ASF_YAML -- ./.asf.yaml" // force revert to commit containing the valid .asf.yml
- sh 'git commit -m "Website updated to $GIT_COMMIT"'
+ sh 'git diff-index --quiet HEAD || git commit -m "Website updated to $GIT_COMMIT"'
+ sh 'git push origin asf-site'
+ sh 'sleep 5'
+ sh 'git commit --allow-empty -m "CDN cache invalidation"'
sh 'git push origin asf-site'
}
}