1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2024-11-24 08:52:18 +02:00

Update jenkinsfile

This commit is contained in:
Anton Titovets 2024-09-16 14:12:25 +03:00
parent f1d73f6c5c
commit 5cd6d8ebbe

View File

@ -4,17 +4,17 @@ pipeline {
stage('Prepare') { stage('Prepare') {
steps { steps {
checkout scm checkout scm
bat 'opm install osparser' bat encoding: 'UTF-8', script:'opm install osparser'
bat 'opm install cmdline' bat encoding: 'UTF-8', script:'opm install cmdline'
bat 'opm install asserts' bat encoding: 'UTF-8', script:'opm install asserts'
bat 'opm install osparser' bat encoding: 'UTF-8', script:'opm install osparser'
bat 'opm install coloratos' bat encoding: 'UTF-8', script:'opm install coloratos'
} }
} }
stage('Build') { stage('Build') {
steps { steps {
bat 'oscript ./.github/workflows/os/main.os' bat encoding: 'UTF-8', script:'oscript ./.github/workflows/os/main.os'
} }
} }
@ -24,11 +24,12 @@ pipeline {
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
withCredentials([usernamePassword(credentialsId: 'gitmain', passwordVariable: 'GIT_PASSWORD', usernameVariable: 'GIT_USERNAME')]) { withCredentials([usernamePassword(credentialsId: 'gitmain', passwordVariable: 'GIT_PASSWORD', usernameVariable: 'GIT_USERNAME')]) {
def encodedPassword = URLEncoder.encode("$GIT_PASSWORD",'UTF-8') def encodedPassword = URLEncoder.encode("$GIT_PASSWORD",'UTF-8')
bat "git config user.email VitalyTheAlpaca@gmail.com" bat encoding: 'UTF-8', script:"git config user.email VitalyTheAlpaca@gmail.com"
bat "git config user.name VitalyTheAlpaca" bat encoding: 'UTF-8', script:"git config user.name VitalyTheAlpaca"
bat "git add ." bat encoding: 'UTF-8', script:"git config --global core.ignorecase false"
bat "git commit -m 'Основная сборка (Jenkins)'" bat encoding: 'UTF-8', script:"git add ."
bat "git push https://${GIT_USERNAME}:${encodedPassword}@github.com/${GIT_USERNAME}/openintegrations.git" bat encoding: 'UTF-8', script:"git commit -m 'Основная сборка (Jenkins)'"
bat encoding: 'UTF-8', script:"git push https://${GIT_USERNAME}:${encodedPassword}@github.com/${GIT_USERNAME}/openintegrations.git"
} }
} }
} }