1
0
mirror of https://github.com/firstBitMarksistskaya/jenkins-lib.git synced 2024-11-24 08:52:14 +02:00

Исправления обращения к SourceFormat

This commit is contained in:
Nikita Gryzlov 2021-11-02 18:05:04 +03:00
parent 648d33598f
commit ec03278f05
No known key found for this signature in database
GPG Key ID: E7AE91471C6FFE04
3 changed files with 4 additions and 2 deletions

1
.gitignore vendored
View File

@ -2,5 +2,6 @@
.gradle/
build/
bin/
lib/
*.iml

View File

@ -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
}

View File

@ -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