pipeline { agent any stages { stage('Prepare') { steps { bat "git branch" bat encoding: 'UTF-8', script:'chcp 65001 & opm install osparser' bat encoding: 'UTF-8', script:'chcp 65001 & opm install cmdline' bat encoding: 'UTF-8', script:'chcp 65001 & opm install asserts' bat encoding: 'UTF-8', script:'chcp 65001 & opm install osparser' bat encoding: 'UTF-8', script:'chcp 65001 & opm install coloratos' } } stage('Build') { steps { bat encoding: 'UTF-8', script:'chcp 65001 & oscript ./ci/os/main.os' bat encoding: 'UTF-8', script:'chcp 65001 & oscript ./ci/os/cli_testmaker.os' bat encoding: 'UTF-8', script:'chcp 65001 & oscript ./ci/os/cli_testmaker_en.os' bat encoding: 'UTF-8', script:'chcp 65001 & oscript ./ci/os/docs_main.os' } } stage('Update GIT') { steps { script { withCredentials([gitUsernamePassword(credentialsId: 'gitmain', gitToolName: 'Default')]) { bat "git config user.email vitaly.the.alpaca@gmail.com" bat 'git config user.name "Vitaly the Alpaca (bot)"' bat "git config --global core.ignorecase true" bat "git add ." bat 'git commit -m "Main build (Jenkins)"' bat "git push origin HEAD:main" } } } } } }