Install sbt using sbt-plugin via groovy script

10 views
Skip to first unread message

alessandro cinelli

unread,
Aug 2, 2016, 9:57:24 AM8/2/16
to Jenkins Users
Hi,

I would like to install scala sbt using sbt-plugin via a groovy script, in order to automate a vm installation with ansible.
I tried several options but I can't make it work.

I was following https://github.com/glenjamin/jenkins-groovy-examples/blob/master/README.md and I was able to get the sbt plugin, but from there I'm kinda lost:

#!groovy

import jenkins.model.*

sbtVersion = "{{item}}"

def sbtPluginExtension = Jenkins.instance.getPlugin("sbt")


this is the main class for the sbt plugin: https://github.com/jenkinsci/sbt-plugin/blob/master/src/main/java/org/jvnet/hudson/plugins/SbtPluginBuilder.java

Any idea on how to accomplish this task?

thanks

cirpo
Reply all
Reply to author
Forward
0 new messages