This is an automated email from the ASF dual-hosted git repository.
rlenferink pushed a commit to branch feature/gh-source-test
in repository https://gitbox.apache.org/repos/asf/celix-site.git
The following commit(s) were added to refs/heads/feature/gh-source-test by this
push:
new 4b579d9 More testing
4b579d9 is described below
commit 4b579d9ebbd92c7ae8c3a1c4eb28e6679efc01e8
Author: Roy Lenferink <[email protected]>
AuthorDate: Sun Jul 16 12:57:18 2023 +0200
More testing
---
Jenkinsfile | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 509cda3..d8c0271 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -50,6 +50,8 @@ pipeline {
env.OUT_DIR = "${env.TMP_DIR}/content"
sh "mkdir -p ${env.OUT_DIR}"
+ // Setup directory for Gitbox checkout
+ env.GITBOX_REPO = sh(script:'mktemp -d', returnStdout:
true).trim()
}
}
}
@@ -63,10 +65,13 @@ pipeline {
}
}
stage('Deploy') {
+ //when {
+ // anyOf {
+ // branch 'master'
+ // }
+ //}
steps {
script {
- env.GITBOX_REPO = sh(script:'mktemp -d', returnStdout:
true).trim()
-
// Clone the Gitbox repo because that allows deployment to
the asf-site branch
sh "git clone -b asf-site
https://gitbox.apache.org/repos/asf/celix-site.git ${env.GITBOX_REPO}"
@@ -87,12 +92,8 @@ pipeline {
"""
// Push the generated content for deployment
- sh "git remote -v"
- sh "git branch -v"
- sh "git branch -a"
- //sh "git push -u origin ${DEPLOY_BRANCH}"
+ sh "git push -u origin ${DEPLOY_BRANCH}"
}
- sh "rm -rf ${env.GITBOX_REPO}"
}
}
}
@@ -104,6 +105,7 @@ pipeline {
sh """
rm -rf ${env.HUGO_DIR}
rm -rf ${env.TMP_DIR}
+ rm -rf ${env.GITBOX_REPO}
"""
}
deleteDir() /* clean up our workspace */