diff --git a/jenkins/Jenkinsfile b/jenkins/Jenkinsfile index 91fd61d..6825538 100644 --- a/jenkins/Jenkinsfile +++ b/jenkins/Jenkinsfile @@ -50,7 +50,10 @@ pipeline { rm -rf \$DOCS_DIR mkdir -p \$DOCS_DIR cp -rp \$HOME/docs/build/html/* \$DOCS_DIR - git add -A \$DOCS_DIR + rm -rf .git + git init + git remote add origin git@github.com:plenoptic-org/plenoptic-workshops.git + git add . GIT_COMMITTER_EMAIL="jenkins@flatironinstitute.org" GIT_COMMITTER_NAME="Flatiron Jenkins" git commit --author='Flatiron Jenkins ' --allow-empty -m "Generated documentation for \$DOCS_DIR" -m '${env.BUILD_TAG}' """ gitPush(gitScm: scm, targetBranch: 'main', targetRepo: 'origin')