Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ovcharenko-di committed Aug 31, 2024
1 parent 49fe3ea commit 453abf4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 21 deletions.
9 changes: 3 additions & 6 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,14 @@ val junitVersion = "5.6.1"
val spockVersion = "1.3-groovy-2.4"
val groovyVersion = "2.4.19"
val slf4jVersion = "1.8.0-beta4"
var jacksonVersion = "2.9.8"
val jsonschemaVersion = "4.36.0"

dependencies {
implementation("org.codehaus.groovy", "groovy-all", groovyVersion)

// jackson
implementation("com.fasterxml.jackson.module", "jackson-module-jsonSchema", jacksonVersion)

// jsonschema-generator
implementation("com.github.victools", "jsonschema-generator", "4.36.0")
implementation("com.github.victools", "jsonschema-module-jackson", "4.36.0")
implementation("com.github.victools", "jsonschema-generator", jsonschemaVersion)
implementation("com.github.victools", "jsonschema-module-jackson", jsonschemaVersion)

// unit-tests
testImplementation("org.junit.jupiter", "junit-jupiter-api", junitVersion)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,19 +58,12 @@ class ResultsTransformer implements Serializable {
if (config.resultsTransformOptions.removeSupport) {
def supportLevel = config.resultsTransformOptions.supportLevel
steps.cmd("stebi transform --Format $genericIssuesFormat --remove_support $supportLevel --src $srcDir $genericIssueFile")
}
}

} else {

Logger.println("Конвертация результата EDT в Issues с помощью edt-ripper")

if (config.sourceFormat == SourceFormat.DESIGNER) {

steps.unstash(DesignerToEdtFormatTransformation.WORKSPACE_ZIP_STASH)
steps.unzip(DesignerToEdtFormatTransformation.WORKSPACE, DesignerToEdtFormatTransformation.WORKSPACE_ZIP)

}

srcDir = FileUtils.getFilePath("$env.WORKSPACE/$config.srcDir")

def projectName = srcDir.getName()
Expand Down
7 changes: 0 additions & 7 deletions src/ru/pulsar/jenkins/library/steps/SonarScanner.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,6 @@ class SonarScanner implements Serializable {
if (config.stageFlags.edtValidate) {
steps.unstash(ResultsTransformer.RESULT_STASH)

if (config.sourceFormat == SourceFormat.DESIGNER) {

steps.unstash(DesignerToEdtFormatTransformation.WORKSPACE_ZIP_STASH)
steps.unzip(DesignerToEdtFormatTransformation.WORKSPACE, DesignerToEdtFormatTransformation.WORKSPACE_ZIP)

}

if (config.resultsTransformOptions.transformer == ResultsTransformerType.STEBI) {
sonarCommand += " -Dsonar.externalIssuesReportPaths=" + ResultsTransformer.RESULT_FILE
} else {
Expand Down

0 comments on commit 453abf4

Please sign in to comment.