Has anyone gotten the pipeUnit sample from JenkinsPipelineUnit to work recently

24 views
Skip to first unread message

Ray Tayek

unread,
May 3, 2021, 7:22:14 PM5/3/21
to Jenkins Users
I'm getting a test failure in pipeUnit (please see below) from git bash on windows 10.

Any pointers will be appreciated.

Thank you


gobal variable job Jenkinsfile test Condition failed with Exception: testNonRegression("Jenkinsfile_should_complete_with_success") | org.junit.ComparisonFailure: [If you intended to update the callstack, use JVM parameter -Dpipeline.stack.write=true] expected:<...ithProperties({PROP_[2=VAL_2, PROP_1=VAL_1}) Jenkinsfile.echo(props = {PROP_1=VAL_1}) Jenkinsfile.stage(Two, groovy.lang.Closure) Jenkinsfile.steps(groovy.lang.Closure) Jenkinsfile.script(groovy.lang.Closure) Jenkinsfile.doWithProperties({PROP_2=VAL_2, PROP_1=VAL_1}) Jenkinsfile.echo(props = {PROP_2=VAL_2, PROP_1=VAL_1]}) "> but was:<...ithProperties({PROP_[1=VAL_1, PROP_2=VAL_2}) Jenkinsfile.echo(props = {PROP_1=VAL_1}) Jenkinsfile.stage(Two, groovy.lang.Closure) Jenkinsfile.steps(groovy.lang.Closure) Jenkinsfile.script(groovy.lang.Closure) Jenkinsfile.doWithProperties({PROP_1=VAL_1, PROP_2=VAL_2}) Jenkinsfile.echo(props = {PROP_1=VAL_1, PROP_2=VAL_2]}) "> at tests.job.exampleJobs.globalVariable.GlobalVariableJobTestSpec.gobal variable job Jenkinsfile test(GlobalVariableJobTestSpec.groovy:20) Caused by: org.junit.ComparisonFailure: [If you intended to update the callstack, use JVM parameter -Dpipeline.stack.write=true] expected:<...ithProperties({PROP_[2=VAL_2, PROP_1=VAL_1}) Jenkinsfile.echo(props = {PROP_1=VAL_1}) Jenkinsfile.stage(Two, groovy.lang.Closure) Jenkinsfile.steps(groovy.lang.Closure) Jenkinsfile.script(groovy.lang.Closure) Jenkinsfile.doWithProperties({PROP_2=VAL_2, PROP_1=VAL_1}) Jenkinsfile.echo(props = {PROP_2=VAL_2, PROP_1=VAL_1]}) "> but was:<...ithProperties({PROP_[1=VAL_1, PROP_2=VAL_2}) Jenkinsfile.echo(props = {PROP_1=VAL_1}) Jenkinsfile.stage(Two, groovy.lang.Closure) Jenkinsfile.steps(groovy.lang.Closure) Jenkinsfile.script(groovy.lang.Closure) Jenkinsfile.doWithProperties({PROP_1=VAL_1, PROP_2=VAL_2}) Jenkinsfile.echo(props = {PROP_1=VAL_1, PROP_2=VAL_2]}) "> at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:64) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at com.lesfurets.jenkins.unit.RegressionTestHelper.testNonRegression(RegressionTestHelper.groovy:35) at com.lesfurets.jenkins.unit.RegressionTest$Trait$Helper.testNonRegression(RegressionTest.groovy:19) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ... 1 more

Reply all
Reply to author
Forward
0 new messages