Mais conteúdo relacionado
Semelhante a Jenkins and Groovy (20)
Mais de Kiyotaka Oku (20)
Jenkins and Groovy
- 2. (@kiy0taka id:kiy0taka)
Grails/Groovy
Jenkins Plugin
Terminal jQuery jQuery UI
LT Hudson
http://www.ustream.tv/recorded/10801838
- 37. @Grab ( )
@Grab('org.apache.poi:poi:3.2-FINAL')
import org.apache.poi.hssf.usermodel.*
def workBook = new HSSFWorkbook(new File('./foo.xls')
workBook.newInputStream()).sheets.each { sheet ->
sheet.firstRowNum.upto(sheet.lastRowNum) {
sheet.getRow(it).with { row ->
row.firstCellNum.upto(row.lastCellNum - 1) {
println row.getCell(it).stringCellValue
}
}
}
}
- 38. @Grab ( )
@Grab('org.mortbay.jetty:jetty-embedded:6.1.25')
@Grab('com.h2database:h2:1.2.144')
@Grab('mysql:mysql-connector-java:5.1.13')
import org.mortbay.jetty.Server
import org.mortbay.jetty.servlet.Context
import org.h2.server.web.WebServlet
def server = new Server(8080)
new Context(server, "/", Context.SESSIONS)
.addServlet(WebServlet, "/*")
server.start()
- 40. http://groovy.codehaus.org/Download
$ unzip groovy-binary-1.7.8.zip -d $JENKINS_HOME/tools/
$ chmod -R +x /opt/groovy-1.7.8/
$ export GROOVY_HOME=/opt/groovy-1.7.8/
$ export PATH=$GROOVY_HOME/bin
- 48. Groovy Jenkins
http://jenkinsserver/script
- 49. Jenkins CLI (Script)
$ java -jar jenkins-cli.jar
> -s http://jenkinsserver
> groovy hoge.groovy
http://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console
http://scriptlerweb.appspot.com/
- 54. Demo
(JNLP)
(SSH)
-Dmven.test.skip=true
- 58. 2. Groovy
http://groovy.codehaus.org/Download
$ unzip groovy-binary-1.7.8.zip -d $JENKINS_HOME/tools/
$ chmod -R +x $JENKINS_HOME/tools/groovy-1.7.8/
- 63. Groovy
Grails/Groovy (JGGUG)
http://www.jggug.org
(?) G*Magazine
http://grails.jp/g_mag_jp/
Notas do Editor
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n