This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch fix/1631-deploy-rsync in repository https://gitbox.apache.org/repos/asf/camel-website.git
commit 6dce6226b40aab772bb4c8f314fd7318a5dac5a9 Author: Claus Ibsen <[email protected]> AuthorDate: Thu Jun 11 10:01:28 2026 +0200 Reduce deploy diff size with rsync and add CDN nudge push (#1631) --- 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' } }
