Created
May 6, 2020 17:30
-
-
Save solvingj/b5b6d44142e8323425dae365cba0b9a2 to your computer and use it in GitHub Desktop.
Extending CpsScript Impossible?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Fails to compile with: | |
// CpsScriptMock.java:15: error: unreported exception IOException; must be caught or declared to be thrown | |
// But i'm throwing it right? | |
package demo.ci | |
import org.jenkinsci.plugins.workflow.cps.CpsScript | |
class CpsScriptMock extends CpsScript { | |
CpsScriptMock() throws IOException { | |
} | |
@Override | |
Object run() { | |
return null | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment