diff --git a/ci/docs_test_en b/ci/docs_test_en new file mode 100644 index 0000000000..6fa2cda4b1 --- /dev/null +++ b/ci/docs_test_en @@ -0,0 +1,21 @@ +pipeline { + agent any + stages { + stage('Deploy') { + steps { + catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') { + bat encoding: 'UTF-8', script:'chcp 65001 & xcopy "docs/en/md" "docs/docusaurus/docs" /s /e /i /y' + bat encoding: 'UTF-8', script:'chcp 65001 & cd docs/docusaurus & npm install' + bat encoding: 'UTF-8', script:'chcp 65001 & cd docs/docusaurus & "C:/Program Files (x86)/Yarn/bin/yarn" build' + withCredentials([string(credentialsId: 'neocities-test', variable: 'TOKEN')]) { + powershell encoding: 'UTF-8', script:'oint neocities СинхронизироватьКаталоги --token $ENV:TOKEN --local "C:/ProgramData/Jenkins/.jenkins/workspace/Docs deploy (Test EN)/docs/docusaurus/build"' + } + } + + bat encoding: 'UTF-8', script:'chcp 65001 & rmdir /s /q "C:/ProgramData/Jenkins/.jenkins/workspace/Docs deploy (Test EN)/docs/docusaurus/build"' + bat encoding: 'UTF-8', script:'chcp 65001 & rmdir /s /q "C:/ProgramData/Jenkins/.jenkins/workspace/Docs deploy (Test EN)/docs/docusaurus/node_modules"' + + } + } + } +} \ No newline at end of file