fix: git publish
Last build failed with `ERROR: script returned exit code 1`, my guess is
that it's caused by the `grep -v` bit added in the last commit. This
removes it and also changes the git directory from `deploy/staging` to
`deploy/live` to better reflect the usage.
diff --git a/Jenkinsfile b/Jenkinsfile
index bed37b2..98d9964 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -85,10 +85,10 @@
}
steps {
- dir('deploy/staging') {
+ dir('deploy/live') {
deleteDir()
sh 'git clone -b asf-site https://gitbox.apache.org/repos/asf/camel-website.git .'
- sh "git -c core.editor='sed -i 2,/\$(git log --skip=9 -1 --pretty=format:%h)/s/^pick/squash/' rebase -q --interactive $STOP_SQUASH_AT | grep -v 'create mode 100644'" // squash all but initial and last 9 commits
+ sh "git -c core.editor='sed -i 2,/\$(git log --skip=9 -1 --pretty=format:%h)/s/^pick/squash/' rebase -q --interactive $STOP_SQUASH_AT" // squash all but initial and last 9 commits
sh 'git rm -q -r *'
sh "cp -R $WORKSPACE/camel-website/public/. ."
sh 'git add .'