2024-09-16 13:32:49 +03:00
|
|
|
pipeline {
|
2024-09-16 13:48:44 +03:00
|
|
|
agent any
|
2024-09-16 13:46:04 +03:00
|
|
|
stages {
|
2024-09-16 13:51:17 +03:00
|
|
|
stage('Prepare') {
|
2024-09-16 13:46:04 +03:00
|
|
|
steps {
|
2024-09-16 15:19:43 +03:00
|
|
|
|
2024-09-16 15:23:50 +03:00
|
|
|
bat "git branch"
|
2024-09-16 17:01:27 +03:00
|
|
|
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'
|
2024-09-16 13:46:04 +03:00
|
|
|
}
|
2024-09-16 13:42:21 +03:00
|
|
|
}
|
|
|
|
|
2024-09-16 13:46:04 +03:00
|
|
|
stage('Build') {
|
|
|
|
steps {
|
2024-09-16 19:14:17 +03:00
|
|
|
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'
|
2024-09-16 13:46:04 +03:00
|
|
|
}
|
2024-09-16 13:42:21 +03:00
|
|
|
}
|
2024-09-16 13:59:06 +03:00
|
|
|
|
|
|
|
stage('Update GIT') {
|
|
|
|
steps {
|
|
|
|
script {
|
2024-09-16 14:46:53 +03:00
|
|
|
|
|
|
|
withCredentials([gitUsernamePassword(credentialsId: 'gitmain', gitToolName: 'Default')]) {
|
2024-09-16 16:34:46 +03:00
|
|
|
bat "git config user.email vitaly.the.alpaca@gmail.com"
|
2024-09-16 16:38:13 +03:00
|
|
|
bat 'git config user.name "Vitaly the Alpaca (bot)"'
|
2024-09-16 14:59:11 +03:00
|
|
|
bat "git config --global core.ignorecase true"
|
|
|
|
bat "git add ."
|
|
|
|
bat 'git commit -m "Main build (Jenkins)"'
|
2024-09-16 15:40:47 +03:00
|
|
|
bat "git push origin HEAD:main"
|
2024-09-16 13:59:06 +03:00
|
|
|
}
|
2024-09-16 14:46:53 +03:00
|
|
|
|
|
|
|
|
2024-09-16 13:59:06 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-09-16 13:42:21 +03:00
|
|
|
}
|
2024-09-16 13:32:49 +03:00
|
|
|
}
|