1
0
mirror of https://github.com/firstBitMarksistskaya/jenkins-lib.git synced 2025-03-04 15:51:06 +02:00
jenkins-lib/vars/pipeline1C.groovy

98 lines
2.6 KiB
Groovy
Raw Normal View History

import groovy.transform.Field
import ru.pulsar.jenkins.library.configuration.JobConfiguration
import java.util.concurrent.TimeUnit
@Field
JobConfiguration config
@Field
def agent1C
void call() {
//noinspection GroovyAssignabilityCheck
pipeline {
agent none
options {
buildDiscarder(logRotator(numToKeepStr: '30'))
timeout(time: 2, unit: TimeUnit.HOURS)
timestamps()
}
stages {
stage('pre-stage') {
agent {
label 'agent'
}
steps {
script {
config = jobConfiguration() as JobConfiguration
agent1C = config.v8version
}
}
}
stage('SonarQube') {
agent {
label 'sonar'
}
steps {
sonarScanner config
}
}
stage('1C') {
agent {
label agent1C
}
stages {
stage('Подготовка базы') {
steps {
printLocation()
installLocalDependencies()
dir("build/out") { echo '' }
2020-04-15 13:43:01 +03:00
// Создание базы загрузкой конфигурации из хранилища
2020-04-15 18:23:36 +03:00
initFromStorage config
zipInfobase()
}
}
stage('Проверка качества') {
parallel {
stage('EDT контроль') {
agent {
label 'edt'
}
steps {
edtValidate config
}
}
stage('Синтаксический контроль') {
steps {
syntaxCheck config
}
}
stage('Дымовые тесты') {
steps {
smoke config
}
}
}
}
}
}
}
}
}