Groups
Groups
Sign in
Groups
Groups
Jenkins Users
Conversations
About
Send feedback
Help
Install sbt using sbt-plugin via groovy script
10 views
Skip to first unread message
alessandro cinelli
unread,
Aug 2, 2016, 9:57:24 AM
8/2/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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