mirror of
https://github.com/firstBitMarksistskaya/jenkins-lib.git
synced 2025-01-08 13:34:35 +02:00
Чтение конфига в отдельном стэйдже
This commit is contained in:
parent
6d34a97591
commit
f1bcc7bfe3
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user