1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2024-12-25 02:42:28 +02:00
This commit is contained in:
Anton 2024-09-27 20:00:14 +03:00
parent 4e4f3a5ef1
commit a821eceaad
2 changed files with 43 additions and 0 deletions

22
ci/docs_en Normal file
View File

@ -0,0 +1,22 @@
pipeline {
agent any
stages {
stage('Deploy') {
steps {
catchError(buildResult: 'FAILURE', stageResult: 'FAILURE') {
bat encoding: 'UTF-8', script:'chcp 65001 & oscript ./ci/os/docs_pagetranslate.os'
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', variable: 'TOKEN')]) {
powershell encoding: 'UTF-8', script:'oint neocities СинхронизироватьКаталоги --token $ENV:TOKEN --local "C:/ProgramData/Jenkins/.jenkins/workspace/Docs deploy (EN)/docs/docusaurus/build"'
}
}
bat encoding: 'UTF-8', script:'chcp 65001 & rmdir /s /q "C:/ProgramData/Jenkins/.jenkins/workspace/Docs deploy (EN)/docs/docusaurus/build"'
bat encoding: 'UTF-8', script:'chcp 65001 & rmdir /s /q "C:/ProgramData/Jenkins/.jenkins/workspace/Docs deploy (EN)/docs/docusaurus/node_modules"'
}
}
}
}

21
ci/docs_ru Normal file
View File

@ -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/ru/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', variable: 'TOKEN')]) {
powershell encoding: 'UTF-8', script:'oint neocities СинхронизироватьКаталоги --token $ENV:TOKEN --local "C:/ProgramData/Jenkins/.jenkins/workspace/Docs deploy (RU)/docs/docusaurus/build"'
}
}
bat encoding: 'UTF-8', script:'chcp 65001 & rmdir /s /q "C:/ProgramData/Jenkins/.jenkins/workspace/Docs deploy (RU)/docs/docusaurus/build"'
bat encoding: 'UTF-8', script:'chcp 65001 & rmdir /s /q "C:/ProgramData/Jenkins/.jenkins/workspace/Docs deploy (RU)/docs/docusaurus/node_modules"'
}
}
}
}