I use mainly Maven, Ant, and Bash scripts for automating tasks in Jenkins. In this way, non-tech people can start complex tasks with a simple GUI, and you have a log of all activity.
Now, I've used another possibility, and it's about running Scala scripts, thanks to this plugin: jenkins-scala-plugin.
Even though it isn't in the official repository of Jenkins and you have to compile it, it works flawlessly.
Or you can simply use t
Now, I've used another possibility, and it's about running Scala scripts, thanks to this plugin: jenkins-scala-plugin.
Even though it isn't in the official repository of Jenkins and you have to compile it, it works flawlessly.
Or you can simply use t
scala path/myscalascript.scala arg1 arg2
I prefer for non-trivial scripts to use an external editor, instead of using an embedded script.