The Jenkinsfile I wrote does it in two commands:
‘java -jar bob.jar resolve distclean’
‘java -jar bob.jar --variant debug --archive -p js-web build bundle’
You can combine it into one, I just found that the resolve one didn’t always work, but that might be fixed now.
I don’t think you will need the ‘bundle’ word, since you aren’t looking to make the bundle just yet, and therefore won’t need “-p js-web” as that just tells Bob to build a HTML5 bundle of the game. Also, you probably won’t want the “distclean’” or “clean” commands since you need the build files for what you are running.
This means I think your command would be:
‘java -jar bob.jar --variant debug --archive resolve build’. Followed by running the dmengine file that gets created within the resulting build
You need to cd to the folder that has your game.project file, I found the -i (–input) flag didn’t work, but that might have been fixed already.
If that doesn’t work go through the Bob manual (Defold project builder manual).