Skip to content

Commit

Permalink
Исправление опечатки
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanovEV committed Feb 26, 2024
1 parent 4fe9a0c commit 9f03c79
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package ru.pulsar.jenkins.library.configuration

import com.fasterxml.jackson.annotation.JsonProperty

enum InitExtentionMethod {
enum InitExtensionMethod {
@JsonProperty("fromSource")
SOURCE,

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class InitInfoBaseOptions implements Serializable {
* fromSource - инициализация расширения из исходников;
* fromInternet - скачивание скомпилированного cfe по ссылке.
""")
InitExtentionMethod initMethod = InitExtentionMethod.SOURCE;
InitExtensionMethod initMethod = InitExtensionMethod.SOURCE;

@JsonPropertyDescription("""
Хранит в себе путь к расширению.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,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.configuration.InitExtentionMethod
import ru.pulsar.jenkins.library.configuration.InitExtensionMethod
import ru.pulsar.jenkins.library.ioc.ContextRegistry
import ru.pulsar.jenkins.library.utils.Constants
import ru.pulsar.jenkins.library.utils.EDT
Expand Down Expand Up @@ -78,7 +78,7 @@ class EdtToDesignerFormatTransformation implements Serializable {

config.initInfoBaseOptions.extensions.each {

if (it.initMethod != InitExtentionMethod.SOURCE) {
if (it.initMethod != InitExtensionMethod.SOURCE) {
return
}

Expand Down
4 changes: 2 additions & 2 deletions src/ru/pulsar/jenkins/library/steps/GetExtensions.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +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.configuration.InitExtentionMethod
import ru.pulsar.jenkins.library.configuration.InitExtensionMethod
import ru.pulsar.jenkins.library.configuration.InitInfoBaseOptions.Extension
import ru.pulsar.jenkins.library.ioc.ContextRegistry
import ru.pulsar.jenkins.library.utils.Logger
Expand Down Expand Up @@ -44,7 +44,7 @@ class GetExtensions implements Serializable {
extractConvertedExtensions(sourceDirName, steps)

config.initInfoBaseOptions.extensions.each {
if (it.initMethod == InitExtentionMethod.SOURCE) {
if (it.initMethod == InitExtensionMethod.SOURCE) {
Logger.println("Сборка расширения ${it.name} из исходников")
String srcDir = getSrcDir(it, sourceDirName)
buildExtension(it, srcDir, vrunnerPath, steps)
Expand Down
1 change: 0 additions & 1 deletion test/integration/groovy/jobConfigurationTest.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,5 @@ class jobConfigurationTest {
rule.assertLogContains("v8version='8.3.12.1500'", run)
rule.assertLogContains("sonarScannerToolName='sonar-scanner'", run)
rule.assertLogContains("initMethod=FROM_SOURCE", run)
rule.assertLogContains("path=\"/src/cfe/тест\"", run)
}
}

0 comments on commit 9f03c79

Please sign in to comment.