mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2024-11-24 08:52:18 +02:00
51 lines
2.1 KiB
Plaintext
51 lines
2.1 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'
|
|
bat encoding: 'UTF-8', script:'chcp 65001 & oscript ./ci/os/cli_testmaker_en.os'
|
|
}
|
|
}
|
|
|
|
stage('Local update'){
|
|
steps {
|
|
powershell encoding: 'UTF-8', script:'cd ./src/ru/OInt; opm build; opm install -f oint-1.15.1.ospx; del oint-1.15.1.ospx'
|
|
powershell encoding: 'UTF-8', script:'cd ./src/ru/cli; opm build; opm install -f oint-cli-1.15.1.ospx; del oint-cli-1.15.1.ospx'
|
|
}
|
|
|
|
}
|
|
|
|
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"
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |