mirror of
https://github.com/firstBitMarksistskaya/jenkins-lib.git
synced 2024-11-24 08:52:14 +02:00
Попытка накидать возврат пайплайна
This commit is contained in:
parent
b39622efad
commit
93c10f985f
100
vars/pipeline1C.groovy
Normal file
100
vars/pipeline1C.groovy
Normal file
@ -0,0 +1,100 @@
|
||||
import ru.pulsar.jenkins.library.configuration.JobConfiguration
|
||||
|
||||
import java.util.concurrent.TimeUnit
|
||||
|
||||
void call() {
|
||||
|
||||
def config = jobConfiguration() as JobConfiguration
|
||||
def agent1C = config.v8version
|
||||
|
||||
//noinspection GroovyAssignabilityCheck
|
||||
pipeline {
|
||||
agent none
|
||||
|
||||
options {
|
||||
buildDiscarder(logRotator(numToKeepStr: '30'))
|
||||
timeout(time: 2, unit: TimeUnit.HOURS)
|
||||
timestamps()
|
||||
}
|
||||
|
||||
environment {
|
||||
STORAGE_PATH = credentials(jobConfiguration.secrets.storagePath)
|
||||
STORAGE = credentials(jobConfiguration.secrets.storage)
|
||||
}
|
||||
|
||||
stages {
|
||||
|
||||
stage('pipeline1C') {
|
||||
parallel {
|
||||
stage('SonarQube') {
|
||||
agent {
|
||||
label 'sonar'
|
||||
}
|
||||
|
||||
steps {
|
||||
log.location()
|
||||
|
||||
sonarScanner()
|
||||
}
|
||||
}
|
||||
|
||||
stage('1C') {
|
||||
agent {
|
||||
label agent1C
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Подготовка базы') {
|
||||
steps {
|
||||
log.location()
|
||||
|
||||
installLocalDependencies()
|
||||
|
||||
dir("build/out") { echo '' }
|
||||
|
||||
script {
|
||||
def storageVersion = versionParser.storage()
|
||||
|
||||
// Создание базы загрузкой конфигурации из хранилища
|
||||
cmd "oscript_modules/bin/vrunner init-dev --storage --storage-name $STORAGE_PATH --storage-user $STORAGE_USR --storage-pwd $STORAGE_PSW --storage-ver $storageVersion --ibconnection \"/F./build/ib\""
|
||||
}
|
||||
|
||||
zipInfobase()
|
||||
}
|
||||
}
|
||||
|
||||
stages {
|
||||
parallel {
|
||||
stage('Синтаксический контроль') {
|
||||
steps {
|
||||
log.location()
|
||||
|
||||
installLocalDependencies()
|
||||
|
||||
unzipInfobase()
|
||||
|
||||
// Запуск синтакс-проверки
|
||||
cmd("oscript_modules/bin/vrunner syntax-check --settings tools/vrunner.json", true)
|
||||
|
||||
junit allowEmptyResults: true, testResults: 'build/out/junitsyntax.xml'
|
||||
}
|
||||
}
|
||||
|
||||
stage('Дымовые тесты') {
|
||||
steps {
|
||||
log.location()
|
||||
|
||||
installLocalDependencies()
|
||||
|
||||
unzipInfobase()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user