File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed
dsl/src/main/kotlin/com/code42/jenkins/pipelinekt/dsl/step/declarative
internal/src/main/kotlin/com/code42/jenkins/pipelinekt/internal/step/declarative Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,9 @@ fun DslContext<Step>.junit(testResults: String) =
10
10
junit(testResults = testResults.strDouble(), false )
11
11
12
12
fun DslContext<Step>.junit (testResults : String , allowEmptyResults : Boolean ) =
13
- junit(testResults = testResults.strDouble())
13
+ junit(testResults = testResults.strDouble(), allowEmptyResults )
14
14
15
15
fun DslContext<Step>.junit (testResults : Var .Literal .Str ) =
16
- add(JUnit (testResults = testResults. false ))
16
+ add(JUnit (testResults = testResults, false ))
17
17
fun DslContext<Step>.junit (testResults : Var .Literal .Str , allowEmptyResults : Boolean ) =
18
- add(JUnit (testResults = testResults. allowEmptyResults = allowEmptyResults))
18
+ add(JUnit (testResults = testResults, allowEmptyResults))
Original file line number Diff line number Diff line change @@ -5,8 +5,12 @@ import com.code42.jenkins.pipelinekt.core.step.SingletonStep
5
5
import com.code42.jenkins.pipelinekt.core.vars.Var
6
6
import com.code42.jenkins.pipelinekt.core.writer.GroovyWriter
7
7
8
- data class JUnit (val testResults : Var .Literal .Str , val allowEmptyResults : Boolean = false ) : DeclarativeStep, SingletonStep {
8
+ data class JUnit (
9
+ val testResults : Var .Literal .Str ,
10
+ val allowEmptyResults : Boolean = false
11
+ ) : DeclarativeStep, SingletonStep {
9
12
override fun toGroovy (writer : GroovyWriter ) {
10
- writer.writeln(" junit ${testResults.toGroovy()} , allowEmptyResults: $allowEmptyResults " )
13
+ writer.writeln(" junit ${testResults.toGroovy()} ," +
14
+ " allowEmptyResults: $allowEmptyResults " )
11
15
}
12
16
}
Original file line number Diff line number Diff line change 1
- 0.20.0
1
+ 0.20.1
You can’t perform that action at this time.
0 commit comments