Hi Jan, I need this command to tell the script to stop, as it is part of a Jenkins build step. If I don't stop the script, the build process never ends.
My setup is the following: - we have a master branch in our Git repository, that notifies Jenkins if there are any changes. - Jenkins uses the gradle file generated by BndTools to build all jars necessary. - After the build I added a build step that executes a windows batch file with the follwing commands: cd C:\ace (change to the folder of the client.jar) java -Dace.gogo.script=script.foo -jar client.jar (execute client.jar with the script "script.foo".) - Right now the script only has the following code: echo "Hello World" exit 0 - I also tried the command "misc:shutdown 0" but that leads to multiple exceptions - As next step I would like to create artifacts, features, etc. via the script as described here: http://wrongtracks.blogspot.de/2014/05/first-steps-with-apache-ace.html As I already said: --nointeractive leads to an error when I try to execute the "exit 0" command. If I don't use --nointeractive within the Jenkins build step I get Exceptions like "Framework not running". However, when I execute the commands cd C:\ace java -Dace.gogo.script=script.foo -jar client.jar within a shell that is started via "Win+R -> cmd", then everything works fine. That seems to be strange. I hope that I merely missed some small thing, as I really would like to automate my build and deployment setup :) Best regards, Thomas 2015-03-23 20:53 GMT+01:00 Jan Willem Janssen <[email protected]> : > > > On 23 Mar 2015, at 14:45, Thomas Driessen <[email protected]> > wrote: > > > > > > when I start the client.jar without the script and type lb it displays > the > > following bundles > > > > 8|Active | 1|Apache Felix Gogo Runtime (0.12.0) > > 9|Active | 1|Apache Felix Gogo Shell (0.10.0) > > 10|Active | 1|Apache Felix Gogo Command (0.12.0) > > Ok, that looks sound. Re-reading your original message, the `exit` error > message > trigger me: not sure this is a valid command in Gogo shell (unless you’ve > created > one yourself). What is the reason to add this command? > > -- > Met vriendelijke groeten | Kind regards > > Jan Willem Janssen | Software Architect > +31 631 765 814 > > My world is revolving around INAETICS and Amdatu > > Luminis Technologies B.V. > Churchillplein 1 > 7314 BZ Apeldoorn > +31 88 586 46 00 > > http://www.luminis-technologies.com > http://www.luminis.eu > > KvK (CoC) 09 16 28 93 > BTW (VAT) NL8169.78.566.B.01 > > -- M.Sc. Thomas Driessen Software Methodologies for Distributed Systems Institute of Computer Science University of Augsburg Universitätsstr. 6a 86135 Augsburg, Germany Tel: +49 821 598-2486 email: [email protected]
