You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by se...@apache.org on 2023/04/26 18:49:52 UTC
[comdev-site] branch preview/test3 updated: Tudy up
This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch preview/test3
in repository https://gitbox.apache.org/repos/asf/comdev-site.git
The following commit(s) were added to refs/heads/preview/test3 by this push:
new 141d463 Tudy up
141d463 is described below
commit 141d463a0b10a900a42270dec2d54a7f98a2bc64
Author: Sebb <se...@apache.org>
AuthorDate: Wed Apr 26 19:49:43 2023 +0100
Tudy up
---
Jenkinsfile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 9972221..50b5163 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -70,6 +70,7 @@ pipeline {
script {
sh "${HUGO_DIR}/bin/hugo --destination ${env.OUT_DIR}"
sh "${PAGEFIND_DIR}/bin/pagefind --source ${env.OUT_DIR}"
+ sh "rm -f .hugo_build.lock"
}
}
}
@@ -87,7 +88,6 @@ pipeline {
script {
// Checkout branch with generated content, creating it if necessary
sh """
- git branch
if git checkout ${DEPLOY_BRANCH}
then
git pull origin ${DEPLOY_BRANCH}
@@ -113,6 +113,7 @@ pipeline {
env.COMMIT_MESSAGE1 = "Updated ${DEPLOY_BRANCH} from ${BRANCH_NAME} at ${env.LAST_SHA}"
env.COMMIT_MESSAGE2 = "Built from ${BUILD_URL}"
sh """
+ git status
git add -A
git commit -m "${env.COMMIT_MESSAGE1}" -m "${env.COMMIT_MESSAGE2}" | true
"""