You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-10-08 22:51:57 +02:00
24 lines
1.4 KiB
Plaintext
Vendored
24 lines
1.4 KiB
Plaintext
Vendored
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 & npm run build'
|
|
withCredentials([string(credentialsId: 'neocities-en', variable: 'TOKEN')]) {
|
|
powershell encoding: 'UTF-8', script:'oint neocities СинхронизироватьКаталоги --token $ENV:TOKEN --local "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/build"'
|
|
bat encoding: 'UTF-8', script:'chcp 65001 & rmdir /s /q "C:/ProgramData/Jenkins/.jenkins/workspace/OpiDocs/OpiDocsEn/docs/docusaurus/node_modules"'
|
|
|
|
}
|
|
}
|
|
}
|
|
} |