1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-01-10 04:18:47 +02:00
OpenIntegrations/jenkinsfile
2024-09-16 13:59:06 +03:00

38 lines
1.4 KiB
Plaintext

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