You can use try/catch/finally constructs. Cheers
2015-03-26 17:49 GMT+01:00 Clifford Sanders <[email protected]>: > Hi, > > I'm currently migrating a Maven job to a Workflow job. > > There are UI tests so one of the first steps is to start Xvfb before > executing the Maven command and stopping it afterwards. > > sh "sudo /sbin/service xvfbd start" > sh "mvn clean verify -Dmaven.test.failure.ignore=true" > sh "sudo /sbin/service xvfbd stop" > > This works as long there are no errors (e.g. compile, syntax). > > Is there a way to force execution of the last step? > > Thanks > > Clifford > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" 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-users/a400949d-8e53-4ad9-bae3-698ac11c7ea7%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/a400949d-8e53-4ad9-bae3-698ac11c7ea7%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Baptiste <Batmat> MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor ! -- You received this message because you are subscribed to the Google Groups "Jenkins Users" 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-users/CANWgJS5Ha3e%3D6gp2s-vprhjN3_9aVKS5chq%2B5F96upPAZRu74A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
