1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2024-12-12 11:15:07 +02:00
OpenIntegrations/ci/main
2024-09-16 19:14:17 +03:00

43 lines
1.7 KiB
Plaintext

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"
}
}
}
}
}
}