/
SubZero
/
utils
Обзор
Документация
Войти
/
SubZero
/
utils
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/io/build_CF.groovy
79 строк
2 KB
KuzinRoman
src
12 фев 2024, 19:01
12 фев 2024, 19:01
5f45105
Код
Авторство
О чём код?
@Library('1c-utils') import io.libs.v8_utils utils = new v8_utils() String jobName = System.getenv('JOB_NAME') currentBuild.displayName = branchName pipeline { agent { label "${agent_machine}"} stages{ stage('Checkout GIT, basic'){ steps{ script{ withCredentials([usernamePassword(credentialsId: 'fixed', usernameVariable: 'username', passwordVariable: 'password')]){ git branch: branchName, credentialsId: 'fixed', url: "${env.stash}" } } } } stage('Build CF'){ steps{ script{ utils.buildCF(env.WORKSPACE, uccode) } } } stage('Update DB'){ steps{ script{ utils.updatedb(uccode) } } } stage('Build CFE'){ steps{ script{ utils.buildCFE(env.WORKSPACE,uccode) } } } } post{ success{ node ("master") { script{ messageText = "Успешно. Сервер: ${env.server1c} База: ${env.database} " } telegramSend(message: "${messageText}", chatId: -1001212659133) } failure{ node ("master") { telegramSend(message: "${messageText}", chatId: -1001212659133) } } } } }