1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-01-24 05:36:29 +02:00
OpenIntegrations/jenkinsfile

38 lines
1.4 KiB
Plaintext
Raw Normal View History

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 {
checkout scm
2024-09-16 13:51:17 +03:00
bat 'opm install osparser'
bat 'opm install cmdline'
bat 'opm install asserts'
bat 'opm install osparser'
bat '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 {
bat 'oscript ./.github/workflows/os/main.os'
}
2024-09-16 13:42:21 +03:00
}
2024-09-16 13:59:06 +03:00
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"
}
}
}
}
}
2024-09-16 13:42:21 +03:00
}
2024-09-16 13:32:49 +03:00
}