1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2024-12-27 02:43:54 +02:00
OpenIntegrations/ci/main
Anton Titovets e6436b8676 Fastfix
2024-09-25 09:22:47 +03:00

42 lines
1.6 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/docs_main.os'
bat encoding: 'UTF-8', script:'chcp 65001 & oscript ./ci/os/cli_testmaker.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"
}
}
}
}
}
}