On Tue, Feb 3, 2015 at 12:10 PM, Paul Allen <[email protected]> wrote: > How do I get a job from a run? Previously AbstractBuild had a getProject() > method.
Use getParent(). I will note this in https://github.com/jenkinsci/workflow-plugin/edit/master/scm-step/README.md > MatrixBuild/MatrixConfigurations don't seem to be updated? Not sure what the question is here. BTW feel free to ping me directly on #jenkins for exploratory questions. > Notify/Publish seem to use AbstractBuild Yes. If this aspect of SCM operation is optional, just ignore it. If it is mandatory, you will have to rethink what you are doing and why. > RunListener seems half way? You mean setUpEnvironment? This idiom cannot be used by a workflow, it does not make sense. If you are using this, you probably just need to do things differently, but I cannot say more without knowing the use case. > Do I just cast back to AbstractBuild when I can't get any further? When the code in question only makes sense for an AbstractProject/Build, you can make it conditional on an instanceof check. For example, calls to token-macro-plugin are pointless for workflows. -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr019UiUCi1Madr9-Ez5DVKC%3D3nEVBtJpn2OM_yy%2B3m72g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
