Skip to content

Commit

Permalink
re-enable automatic docs pushing
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredlll08 committed Jan 13, 2022
1 parent df3bd99 commit a293c81
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Jenkinsfile
Expand Up @@ -31,6 +31,7 @@ pipeline {
echo 'Cleaning Project'
sh 'chmod +x gradlew'
sh './gradlew clean'
sh "rm -rf $docsOutDir"
}
}

Expand Down Expand Up @@ -95,7 +96,7 @@ pipeline {

stage('Exporting Documentation') {
when {
branch "branchName"
branch branchName
}
steps {
echo "Cloning Repository at Branch main"
Expand All @@ -113,9 +114,7 @@ pipeline {

echo "Moving Generated Documentation to Local Clone"
sh "mkdir --parents ./$documentationDir/$exportDirInRepo"
sh "cp -r ./Common/$docsOutDir/* ./$documentationDir/$exportDirInRepo/"
sh "cp -r ./Fabric/$docsOutDir/* ./$documentationDir/$exportDirInRepo/"
sh "cp -r ./Forge/$docsOutDir/* ./$documentationDir/$exportDirInRepo/"
sh "mv ./$docsOutDir/* ./$documentationDir/$exportDirInRepo/"

echo "Committing and Pushing to the repository"
dir(documentationDir) {
Expand Down

0 comments on commit a293c81

Please sign in to comment.