mirror of
https://github.com/firstBitMarksistskaya/jenkins-lib.git
synced 2024-11-24 08:52:14 +02:00
Исправления обращения к SourceFormat
This commit is contained in:
parent
648d33598f
commit
ec03278f05
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,5 +2,6 @@
|
||||
.gradle/
|
||||
build/
|
||||
bin/
|
||||
lib/
|
||||
|
||||
*.iml
|
||||
|
@ -3,6 +3,7 @@ package ru.pulsar.jenkins.library.steps
|
||||
|
||||
import ru.pulsar.jenkins.library.IStepExecutor
|
||||
import ru.pulsar.jenkins.library.configuration.JobConfiguration
|
||||
import ru.pulsar.jenkins.library.configuration.SourceFormat
|
||||
import ru.pulsar.jenkins.library.ioc.ContextRegistry
|
||||
import ru.pulsar.jenkins.library.utils.Constants
|
||||
import ru.pulsar.jenkins.library.utils.Logger
|
||||
@ -25,7 +26,7 @@ class EdtToDesignerFormatTransformation implements Serializable {
|
||||
|
||||
Logger.printLocation()
|
||||
|
||||
if (!config.sourceFormat.EDT) {
|
||||
if (config.sourceFormat != SourceFormat.EDT) {
|
||||
Logger.println("SRC is not in EDT format. No transform is needed.")
|
||||
return
|
||||
}
|
||||
|
@ -111,7 +111,7 @@ void call() {
|
||||
}
|
||||
when {
|
||||
beforeAgent true
|
||||
expression { config.sourceFormat.DESIGNER && config.stageFlags.edtValidate}
|
||||
expression { config.sourceFormat == SourceFormat.DESIGNER && config.stageFlags.edtValidate}
|
||||
}
|
||||
steps {
|
||||
designerToEdtFormatTransformation config
|
||||
|
Loading…
Reference in New Issue
Block a user