1
0
mirror of https://github.com/firstBitMarksistskaya/jenkins-lib.git synced 2025-01-08 13:34:35 +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 import java.util.concurrent.TimeUnit
void call() { def config
def agent1C
def config = jobConfiguration() as JobConfiguration void call() {
def agent1C = config.v8version
//noinspection GroovyAssignabilityCheck //noinspection GroovyAssignabilityCheck
pipeline { pipeline {
@ -17,14 +17,19 @@ void call() {
timestamps() timestamps()
} }
stages {
stage('pre-stage') {
config = jobConfiguration() as JobConfiguration
agent1C = config.v8version
}
stage('pipeline1C') {
environment { environment {
STORAGE_PATH = credentials(jobConfiguration.secrets.storagePath) STORAGE_PATH = credentials(jobConfiguration.secrets.storagePath)
STORAGE = credentials(jobConfiguration.secrets.storage) STORAGE = credentials(jobConfiguration.secrets.storage)
} }
stages {
stage('pipeline1C') {
parallel { parallel {
stage('SonarQube') { stage('SonarQube') {
agent { agent {