2025-07-06 01:01:25 +03:00
|
|
|
pipeline {
|
|
|
|
|
agent {
|
|
|
|
|
label 'windows'
|
|
|
|
|
}
|
|
|
|
|
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 & yarn build'
|
|
|
|
|
withCredentials([string(credentialsId: 'neocities-en', variable: 'TOKEN')]) {
|
2025-09-07 22:00:33 +03:00
|
|
|
powershell encoding: 'UTF-8', script:'oint neocities СинхронизироватьКаталоги --token $ENV:TOKEN --local "C:/ProgramData/Jenkins/.jenkins/workspace/OpiDocs/OpiDocsEn/docs/docusaurus/build"'
|
2025-07-06 01:01:25 +03:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2025-09-07 22:00:33 +03:00
|
|
|
bat encoding: 'UTF-8', script:'chcp 65001 & rmdir /s /q "C:/ProgramData/Jenkins/.jenkins/workspace/OpiDocs/OpiDocsEn/docs/docusaurus/build"'
|
|
|
|
|
bat encoding: 'UTF-8', script:'chcp 65001 & rmdir /s /q "C:/ProgramData/Jenkins/.jenkins/workspace/OpiDocs/OpiDocsEn/docs/docusaurus/node_modules"'
|
2025-07-06 01:01:25 +03:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-09-27 20:00:14 +03:00
|
|
|
}
|