More Related Content
PDF
PDF
Java開発の強力な相棒として今すぐ使えるGroovy PDF
At least onceってぶっちゃけ問題の先送りだったよね #kafkajp PDF
マイクロサービスバックエンドAPIのためのRESTとgRPC PDF
劇的改善 Ci4時間から5分へ〜私がやった10のこと〜 PDF
20分くらいでわかった気分になれるC++20コルーチン PDF
PPTX
What's hot
PDF
PDF
より速く より運用しやすく 進化し続けるJVM(Java Developers Summit Online 2023 発表資料) PDF
モダン PHP テクニック 12 選 ―PsalmとPHP 8.1で今はこんなこともできる!― PDF
PDF
MySQL 5.7にやられないためにおぼえておいてほしいこと PDF
PDF
Introduction to Java 11: Support and JVM Features #jjug PDF
PDF
Spanner から GKE、Spinnaker、そして SRE まで、コロプラが今挑戦していること[Google Cloud INSIDE Games ... PDF
Micrometer/Prometheusによる大規模システムモニタリング #jsug #sf_26 PPTX
Powershell勉強会 v5 (こちらが最新です。) PDF
PPTX
押さえておきたい、PostgreSQL 13 の新機能!!(Open Source Conference 2021 Online/Hokkaido 発表資料) PDF
NTT DATA と PostgreSQL が挑んだ総力戦 PDF
3分でわかるAzureでのService Principal PPTX
どうやって決める?kubernetesでのシークレット管理方法(Cloud Native Days 2020 発表資料) PDF
Multibranch pipelineでいろいろ学んだこと KEY
PPTX
PPTX
モノリスからマイクロサービスへの移行 ~ストラングラーパターンの検証~(Spring Fest 2020講演資料) Viewers also liked
PDF
PDF
[DO02] Jenkins PipelineとBlue Oceanによる、フルスクラッチからの継続的デリバリ PDF
jenkinsのすゝめ - 継続的インテグレーションと継続的デリバリー PPTX
PPTX
20170809 start python_selenium PDF
Travis, Circle そして Jenkins 2.0 Similar to Jenkins と groovy
PPTX
PPTX
Jenkins x Kubernetesが簡単だと思ったら大変だった話 PDF
PDF
PPTX
Multibranch Pipeline with Docker 入門編 PPTX
PPT
PDF
改訂第3版 Jenkins 実践入門 what's newから見るJenkinsのUpdate PDF
ODP
PDF
Hudson using Groovy #jggug KEY
PDF
Groovy Shell Scripting 2015 PDF
PDF
PDF
PDF
PPT
PDF
PDF
More from Kohsuke Kawaguchi
PPTX
Developer summit continuous deliveryとjenkins PPTX
Jenkins+Gitによる検証済みマージ(30分版) PPTX
PPTX
Jenkins User Conference 東京 2015 PPTX
PPTX
JavaOne 2014: Next Step in Automation: Elastic Build Environment PPTX
PPTX
Large scale automation with jenkins PPTX
Workflow, container, and beyond PPTX
Jenkins State of union 2013 PPTX
Jenkins User Conference 2013: Literate, multi-branch, mobile and more PPTX
Jenkins user conference 2011 PPTX
Jenkins user conference 東京 PPTX
How we made jenkins community PPTX
PPTX
Creating a Developer Community PPTX
On sharing ideas & sharing code PPTX
Jenkins User Conference 2012 San Francisco PPTX
Jenkins User Conference 2013 Palo Alto: Keynote PPTX
プロジェクト現状報告・Rubyによるjenkinsプラグイン開発 Jenkins と groovy
- 1.
- 3.
- 4.
- 5.
実装GroovyShellを使えば簡単GroovyShell shell =new GroovyShell(cl);StringWriter out = new StringWriter();PrintWriter pw = new PrintWriter(out);shell.setVariable("out", pw);Object output = shell.evaluate(script);pw.println("Result: "+output); - 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
- 13.
- 14.
- 15.
- 16.
- 17.
- 18.
- 19.
- 20.
- 21.
Jenkins Groovy ShellGroovyshもアプリケーションに埋め込めるだからやってみたモデルは前と同じ実行はJenkinsの中I/OはクライアントJVMで対話性は便利障害対応とかスクリプトを書くための練習環境として - 22.
- 23.
<plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <version>1.5</version> <executions> <execution> <id>add-source</id> <phase>generate-sources</phase> <goals> <goal>add-source</goal> </goals> <configuration> <sources> <source>some directory</source> </sources> </configuration> </execution> </executions></plugin> - 24.
- 25.
- 26.
- 27.
- 28.
void testVariablesResolved() { defproject = createFreeStyleProject();hudson.nodeProperties.replaceBy([ new EnvironmentVariablesNodeProperty( new Entry("KEY1", "value"), new Entry("KEY2",'$KEY1'))]); def builder = new CaptureEnvironmentBuilder();project.buildersList.add(builder);buildAndAssertSuccess(project); def envVars = builder.envVars;assertEquals("value", envVars["KEY1"]);assertEquals("value", envVars["KEY2"]);} - 29.
- 30.
Jelly -> GroovyJenkinsではHTMLのレンダリングにJellyを使っている(JSTLのようなもの)<html> <head> <meta name="ROBOTS" content="INDEX,NOFOLLOW" /> <j:set var="mode" value="header" /> <j:forEach var="pd" items="${h.pageDecorators}"> <st:include it="${pd}" page="header.jelly" /> </j:forEach> ... - 31.
- 32.
- 33.
- 34.
- 35.
- 36.
- 37.
- 38.