1
0
mirror of https://github.com/firstBitMarksistskaya/jenkins-lib.git synced 2025-01-05 13:10:28 +02:00

Чтение конфига в отдельном стэйдже

This commit is contained in:
Nikita Gryzlov 2020-04-03 18:15:05 +03:00
parent 6d34a97591
commit f1bcc7bfe3
No known key found for this signature in database
GPG Key ID: C1EAE411FEF0BF2F

View File

@ -2,10 +2,10 @@ import ru.pulsar.jenkins.library.configuration.JobConfiguration
import java.util.concurrent.TimeUnit
void call() {
def config
def agent1C
def config = jobConfiguration() as JobConfiguration
def agent1C = config.v8version
void call() {
//noinspection GroovyAssignabilityCheck
pipeline {
@ -17,14 +17,19 @@ void call() {
timestamps()
}
environment {
STORAGE_PATH = credentials(jobConfiguration.secrets.storagePath)
STORAGE = credentials(jobConfiguration.secrets.storage)
}
stages {
stage('pre-stage') {
config = jobConfiguration() as JobConfiguration
agent1C = config.v8version
}
stage('pipeline1C') {
environment {
STORAGE_PATH = credentials(jobConfiguration.secrets.storagePath)
STORAGE = credentials(jobConfiguration.secrets.storage)
}
parallel {
stage('SonarQube') {
agent {