Skip to content
This repository was archived by the owner on Dec 15, 2021. It is now read-only.

Handle no-arg steps better#31

Merged
jglick merged 2 commits intomasterfrom
noArgStep
Jan 9, 2015
Merged

Handle no-arg steps better#31
jglick merged 2 commits intomasterfrom
noArgStep

Conversation

@jglick
Copy link
Member

@jglick jglick commented Jan 8, 2015

No description provided.

jglick added 2 commits January 8, 2015 13:01
Note that trying to assert the *former* behavior via assertRoundTrip(new PwdStep(), "pwd") fails in the expected way:
groovy.lang.MissingPropertyException: No such property: pwd for class: org.jenkinsci.plugins.workflow.cps.SnippetizerTest$1
	at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50)
	at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:49)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:227)
	at Script1.run(Script1.groovy:1)
	at groovy.lang.GroovyShell.evaluate(GroovyShell.java:580)
	at groovy.lang.GroovyShell.evaluate(GroovyShell.java:618)
	at groovy.lang.GroovyShell.evaluate(GroovyShell.java:589)
	at org.jenkinsci.plugins.workflow.cps.SnippetizerTest.assertRoundTrip(SnippetizerTest.java:113)
	at org.jenkinsci.plugins.workflow.cps.SnippetizerTest.noArgStep(SnippetizerTest.java:60)
@tfennelly
Copy link
Member

@jglick Looks fine to me as far as I get what the change is about.

jglick added a commit that referenced this pull request Jan 9, 2015
@jglick jglick merged commit cfdb2e1 into master Jan 9, 2015
@jglick jglick deleted the noArgStep branch January 9, 2015 13:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants