{"id":1035,"date":"2016-05-09T08:49:34","date_gmt":"2016-05-08T23:49:34","guid":{"rendered":"http:\/\/www.beeete2.com\/blog\/?p=1035"},"modified":"2018-02-21T22:39:59","modified_gmt":"2018-02-21T13:39:59","slug":"post-1035","status":"publish","type":"post","link":"https:\/\/www.beeete2.com\/blog\/?p=1035","title":{"rendered":"Jenkins2\u3067pipeline\u3092\u4f7f\u3063\u3066\u30d3\u30eb\u30c9\u3059\u308b\u3084\u308a\u304b\u305f"},"content":{"rendered":"<h2>\u6982\u8981<\/h2>\n<p>\u5148\u65e5Jenkins2\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u307e\u3057\u305f\u3002<br \/>\n\u4eca\u306f\u307e\u3060Jenkins1\u7cfb\u3092\u4f7f\u3063\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001Jenkins2\u3067\u30d3\u30eb\u30c9\u6642\u306bpipeline\u3092\u4f7f\u3048\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4e00\u90e8\u306e\u30b8\u30e7\u30d6\u3092Jenkins2\u306b\u79fb\u884c\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<h2>\u79fb\u884c\u3057\u305f\u30b8\u30e7\u30d6\u306e\u6982\u8981<\/h2>\n<p>\u79fb\u884c\u3057\u305f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306f3\u306e\u30b8\u30e7\u30d6\u304b\u3089\u69cb\u6210\u3055\u308c\u3066\u304a\u308a\u3001\u305d\u308c\u305e\u308c\u4ee5\u4e0b\u306e\u69d8\u306a\u5f79\u5272\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u51e6\u7406\u304c\uff13\u3064\u306e\u30b8\u30e7\u30d6\u306b\u5225\u308c\u308b\u305f\u3081pipeline\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>\u30b8\u30e7\u30d6\u305d\u306e\uff11\u3000\u30d3\u30eb\u30c9\uff06\u30a2\u30fc\u30ab\u30a4\u30d6<\/h3>\n<p>SpringBoot\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067Gradle\u3067\u30d3\u30eb\u30c9\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\nJUnit\u306e\u30c6\u30b9\u30c8\u7d50\u679c\u306e\u4fdd\u5b58\u3068\u3001\u4e0b\u6d41\u30b8\u30e7\u30d6\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u6e21\u3059\u305f\u3081Dockefile\u3001Docker\u64cd\u4f5c\u7528\u306epython\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u30a2\u30fc\u30ab\u30a4\u30d6\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>\u30b8\u30e7\u30d6\u305d\u306e2\u3000Docker\u30a4\u30e1\u30fc\u30b8\u306e\u30d3\u30eb\u30c9<\/h3>\n<p>\u30b8\u30e7\u30d6\u305d\u306e\uff11\u304b\u3089\u6e21\u3055\u308c\u305fDocker\u30d5\u30a1\u30a4\u30eb\u3092\u5143\u306b\u30a4\u30e1\u30fc\u30b8\u3092\u30d3\u30eb\u30c9\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>\u30b8\u30e7\u30d6\u305d\u306e3\u3000Docker\u30b3\u30f3\u30c6\u30ca\u306e\u505c\u6b62\uff06\u8d77\u52d5<\/h3>\n<p>\u30b8\u30e7\u30d6\u305d\u306e\uff11\u304b\u3089\u6e21\u3055\u308c\u305fDocker\u64cd\u4f5c\u7528\u306epython\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u7279\u306b\u96e3\u3057\u3044\u51e6\u7406\u306f\u3057\u3066\u3044\u307e\u305b\u3093\u304c\u3001\u30ef\u30fc\u30af\u30b9\u30da\u30fc\u30b9\u306e\u30a2\u30fc\u30ab\u30a4\u30d6\u30d7\u30e9\u30b0\u30a4\u30f3\u3068\u3001pipeline\u30d7\u30e9\u30b0\u30a4\u30f3\u306f\u5225\u9014\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u8a18\u61b6\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u307e\u305f\u3001pipeline\u30d7\u30e9\u30b0\u30a4\u30f3\u306fjQuery\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u5fae\u5999\u306b\u5408\u3063\u3066\u304a\u3089\u305a\u3001\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\u51e6\u7406\u304c\u52d5\u304d\u307e\u305b\u3093\u3002\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u306e\u3067\u3059\u304c\u6539\u5584\u3055\u308c\u305a\u30fb\u30fb\u30fb\u3002<\/p>\n<h2>Jenkins2\u3067\u306e\u8a2d\u5b9a<\/h2>\n<h3>Jenkins2\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>Jenkins2\u306f2.1\u306ewar\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u8d77\u52d5\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u304a\u3059\u3059\u3081\u3092\u9078\u629e\u3057\u305f\u306e\u3067\u3001\u81ea\u5206\u3067\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u884c\u3063\u3066\u3044\u307e\u305b\u3093\u3002<br \/>\n[bash]<br \/>\n#!\/bin\/sh<\/p>\n<p>export JENKINS_HOME=.\/jenkins_home<br \/>\nexport JAVA_HOME=\/usr\/java\/jdk8<br \/>\nexport PATH=$PATH:$JAVA_HOME\/bin<br \/>\njava -jar latest.war &#8211;httpPort=38080 &#8211;prefix=\/jenkins2 -Xmx512m<br \/>\n[\/bash]<br \/>\n\u3053\u3093\u306a\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u6e96\u5099\u3057\u3066\u8d77\u52d5\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u3053\u308c\u3067http:\/\/\u30db\u30b9\u30c8:38080\/jenkins2\/<br \/>\n\u3067\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u3059\u3002\u30aa\u30d5\u30a3\u30b7\u30e3\u30eb\u306eDocker\u30a4\u30e1\u30fc\u30b8\u3082\u3042\u308b\u306e\u3067\u3001\u753b\u9762\u3060\u3051\u898b\u305f\u3044\u3068\u3044\u3046\u4eba\u306f\u30a4\u30e1\u30fc\u30b8\u4f7f\u3063\u305f\u307b\u3046\u304c\u3088\u308a\u304a\u624b\u8efd\u306b\u898b\u308c\u307e\u3059\u3002<\/p>\n<h3>pipeline\u30b8\u30e7\u30d6\u306e\u4f5c\u6210<\/h3>\n<p>\u30b8\u30e7\u30d6\u3092\u4f5c\u308b\u3068\u304d\u306bpipeline\u3068\u3044\u3046\u30b8\u30e7\u30d6\u304c\u9078\u629e\u3067\u304d\u308b\u306e\u3067\u3001\u3053\u308c\u3092\u9078\u629e\u3057\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/www.beeete2.com\/blog\/wp-content\/uploads\/2016\/05\/f7b37dfc2ffabe2b0c228d04d2fdfe56.png\"><img decoding=\"async\" src=\"https:\/\/www.beeete2.com\/blog\/wp-content\/uploads\/2016\/05\/f7b37dfc2ffabe2b0c228d04d2fdfe56.png\" alt=\"\u65b0\u898f\u30b7\u3099\u30e7\u30d5\u3099\u4f5c\u6210__Jenkins_\" width=\"1427\" height=\"680\" class=\"alignnone size-full wp-image-1043\" srcset=\"https:\/\/www.beeete2.com\/blog\/wp-content\/uploads\/2016\/05\/f7b37dfc2ffabe2b0c228d04d2fdfe56.png 1427w, https:\/\/www.beeete2.com\/blog\/wp-content\/uploads\/2016\/05\/f7b37dfc2ffabe2b0c228d04d2fdfe56-300x143.png 300w, https:\/\/www.beeete2.com\/blog\/wp-content\/uploads\/2016\/05\/f7b37dfc2ffabe2b0c228d04d2fdfe56-768x366.png 768w, https:\/\/www.beeete2.com\/blog\/wp-content\/uploads\/2016\/05\/f7b37dfc2ffabe2b0c228d04d2fdfe56-1024x488.png 1024w\" sizes=\"(max-width: 1427px) 100vw, 1427px\" \/><\/a><\/p>\n<p>pipeline\u306e\u8a2d\u5b9a\u753b\u9762\u3067\u3001pipeline\u306e\u51e6\u7406\u5185\u5bb9\u3092Groovy\u3067\u8a2d\u5b9a\u3057\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/www.beeete2.com\/blog\/wp-content\/uploads\/2016\/05\/p2p-web_Config__Jenkins_.png\"><img decoding=\"async\" src=\"https:\/\/www.beeete2.com\/blog\/wp-content\/uploads\/2016\/05\/p2p-web_Config__Jenkins_.png\" alt=\"p2p-web_Config__Jenkins_\" width=\"1437\" height=\"500\" class=\"alignnone size-full wp-image-1042\" srcset=\"https:\/\/www.beeete2.com\/blog\/wp-content\/uploads\/2016\/05\/p2p-web_Config__Jenkins_.png 1437w, https:\/\/www.beeete2.com\/blog\/wp-content\/uploads\/2016\/05\/p2p-web_Config__Jenkins_-300x104.png 300w, https:\/\/www.beeete2.com\/blog\/wp-content\/uploads\/2016\/05\/p2p-web_Config__Jenkins_-768x267.png 768w, https:\/\/www.beeete2.com\/blog\/wp-content\/uploads\/2016\/05\/p2p-web_Config__Jenkins_-1024x356.png 1024w\" sizes=\"(max-width: 1437px) 100vw, 1437px\" \/><\/a><\/p>\n<p>\u81ea\u5206\u304c\u8a2d\u5b9a\u3057\u305f\u5185\u5bb9\u306f\u3053\u3093\u306a\u611f\u3058\u306b\u3057\u307e\u3057\u305f\u3002<br \/>\n[groovy]<br \/>\nnode {<br \/>\n   \/\/ Checkout\u30b9\u30c6\u30fc\u30b8\u3092\u5b9a\u7fa9<br \/>\n   stage &#8216;Checkout&#8217;<br \/>\n   \/\/<br \/>\n   git url: &#8216;\u30ec\u30dd\u30b8\u30c8\u30ea\u30a2\u30c9\u30ec\u30b9&#8217;<br \/>\n   \/\/ build.gradle\u304b\u3089\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u53d6\u5f97<br \/>\n   def applicationVersion = version()<br \/>\n   if (!applicationVersion) {<br \/>\n       error message: &#8216;version colud not be found.&#8217;<br \/>\n   }<\/p>\n<p>   \/\/ Build\u30b9\u30c6\u30fc\u30b8\u3092\u5b9a\u7fa9<br \/>\n   stage &#8216;Build&#8217;<br \/>\n   \/\/ npm instlal\u3092\u5b9f\u884c<br \/>\n   sh &quot;npm install&quot;<br \/>\n   \/\/ gradlew\u3092\u5b9f\u884c<br \/>\n   sh &quot;.\/gradlew clean build -Penv=production&quot;<br \/>\n   \/\/ JUnit\u30c6\u30b9\u30c8\u30ec\u30dd\u30fc\u30c8\u3092\u4fdd\u5b58<br \/>\n   step([$class: &#8216;JUnitResultArchiver&#8217;, testResults: &#8216;**\/build\/test-results\/*.xml&#8217;])<br \/>\n   \/\/ \u30ef\u30fc\u30af\u30b9\u30da\u30fc\u30b9\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30fc\u30ab\u30a4\u30d6<br \/>\n   step([$class: &#8216;ArtifactArchiver&#8217;, artifacts: &#8216;build\/libs\/*.jar, Dockerfile, docker.py&#8217;, onlyIfSuccessful: true, allowEmptyArchive: false])<\/p>\n<p>   \/\/ Build Docker\u30b9\u30c6\u30fc\u30b8\u3092\u5b9a\u7fa9<br \/>\n   stage &#8216;Build Docker&#8217;<br \/>\n   \/\/ input\u3092\u4f7f\u3063\u3066\u5b9f\u884c\u3059\u308b\u304b\u3092\u9078\u629e<br \/>\n   input message: &quot;Do you want to build a version[p2p-web:${applicationVersion}] of the image ?&quot;<br \/>\n   \/\/ docker build\u3092\u5b9f\u884c<br \/>\n   sh &quot;docker build -t p2p-web:${applicationVersion} .&quot;<\/p>\n<p>   \/\/ Run Docker\u30b9\u30c6\u30fc\u30b8\u3092\u5b9a\u7fa9<br \/>\n   stage &#8216;Run Docker&#8217;<br \/>\n   \/\/ input\u3092\u4f7f\u3063\u3066\u5b9f\u884c\u3059\u308b\u304b\u3092\u9078\u629e<br \/>\n   input message: &quot;Do you want to run a version[p2p-web:${applicationVersion}] of the container?&quot;<br \/>\n   \/\/ docker.py\u3092\u5b9f\u884c<br \/>\n   sh &quot;python docker.py ${applicationVersion}&quot;<br \/>\n}<br \/>\ndef version() {<br \/>\n    def matcher = readFile(&#8216;build.gradle&#8217;) =~ &quot;def applicationVersion = &#8216;(.+)&#8217;&quot;<br \/>\n    matcher ? matcher[0][1] : null<br \/>\n}<br \/>\n[\/groovy]<\/p>\n<p>pipeline\u306e\u7c21\u5358\u306a\u8aac\u660e\u3067\u3059\u3002<\/p>\n<h4>stage<\/h4>\n<p>\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u306e\u30b8\u30e7\u30d6\u307f\u305f\u3044\u306a\u611f\u3058\u3002<\/p>\n<h4>git<\/h4>\n<p>\u30ec\u30dd\u30b8\u30c8\u30ea\u304b\u3089clone\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u3067\u7279\u5b9a\u306e\u30d6\u30e9\u30f3\u30c1\u3092checkout\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n[groovy]<br \/>\ngit branch: &quot;\u30d6\u30e9\u30f3\u30c1\u540d&quot;, url: &#8216;\u30ec\u30dd\u30b8\u30c8\u30ea&#8217;<br \/>\n[\/groovy]<\/p>\n<h4>sh<\/h4>\n<p>\u540d\u306e\u3054\u3068\u304f\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3002<\/p>\n<h4>step<\/h4>\n<p>JUnit\u3084\u30a2\u30fc\u30ab\u30a4\u30d6\u306a\u3069\u306e\u51e6\u7406\u3092\u547c\u3073\u51fa\u3057\u3002<\/p>\n<h4>input<\/h4>\n<p>Yes \/ No\u306e\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u8868\u793a\u3057\u3066\u3001\u51e6\u7406\u3092\u3059\u3059\u3081\u308b\u304b\u4e2d\u65ad\uff08abort)\u3059\u308b\u304b\u9078\u629e\u3055\u305b\u308b\u3002<br \/>\n\u30d3\u30eb\u30c9\uff06\u30c6\u30b9\u30c8\u307e\u3067\u884c\u3063\u3066\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u304b\u306f\u30d7\u30ed\u30f3\u30d7\u30c8\u3067\u9078\u629e\u3055\u305b\u308b\u3068\u3044\u3046\u6642\u306b\u4f7f\u3048\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u30d7\u30ed\u30f3\u30d7\u30c8\u306f\u3053\u3093\u306a\u611f\u3058\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/www.beeete2.com\/blog\/wp-content\/uploads\/2016\/05\/p2p-web__Jenkins_.png\"><img decoding=\"async\" src=\"https:\/\/www.beeete2.com\/blog\/wp-content\/uploads\/2016\/05\/p2p-web__Jenkins_.png\" alt=\"p2p-web__Jenkins_\" width=\"832\" height=\"444\" class=\"alignnone size-full wp-image-1051\" srcset=\"https:\/\/www.beeete2.com\/blog\/wp-content\/uploads\/2016\/05\/p2p-web__Jenkins_.png 832w, https:\/\/www.beeete2.com\/blog\/wp-content\/uploads\/2016\/05\/p2p-web__Jenkins_-300x160.png 300w, https:\/\/www.beeete2.com\/blog\/wp-content\/uploads\/2016\/05\/p2p-web__Jenkins_-768x410.png 768w\" sizes=\"(max-width: 832px) 100vw, 832px\" \/><\/a><br \/>\n[Proceed]\u3092\u9078\u629e\u3059\u308b\u3068\u6b21\u306e\u51e6\u7406\u306b\u9032\u307f\u307e\u3059\u304c\u3001[Abort]\u3092\u9078\u629e\u3059\u308b\u3068\u3053\u3053\u3067\u7d42\u4e86\u3057\u307e\u3059\u3002pipeline\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u306f\u4e2d\u65ad\uff08\u7070\u8272\uff09\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u4e0a\u306e\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u3053\u3093\u306a\u611f\u3058\u306e\u753b\u9762\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/www.beeete2.com\/blog\/wp-content\/uploads\/2016\/05\/3a03579899b6342e3c19d154d8677e45.png\"><img decoding=\"async\" src=\"https:\/\/www.beeete2.com\/blog\/wp-content\/uploads\/2016\/05\/3a03579899b6342e3c19d154d8677e45.png\" alt=\"Window_\u3068_p2p-web__Jenkins_\" width=\"1769\" height=\"841\" class=\"alignnone size-full wp-image-1047\" srcset=\"https:\/\/www.beeete2.com\/blog\/wp-content\/uploads\/2016\/05\/3a03579899b6342e3c19d154d8677e45.png 1769w, https:\/\/www.beeete2.com\/blog\/wp-content\/uploads\/2016\/05\/3a03579899b6342e3c19d154d8677e45-300x143.png 300w, https:\/\/www.beeete2.com\/blog\/wp-content\/uploads\/2016\/05\/3a03579899b6342e3c19d154d8677e45-768x365.png 768w, https:\/\/www.beeete2.com\/blog\/wp-content\/uploads\/2016\/05\/3a03579899b6342e3c19d154d8677e45-1024x487.png 1024w\" sizes=\"(max-width: 1769px) 100vw, 1769px\" \/><\/a><br \/>\njenkins1\u6642\u4ee3\u306e\u30b8\u30e7\u30d6\u306e\u753b\u9762\u3068\u5927\u304d\u304f\u5909\u308f\u3063\u3066\u3044\u308b\u90e8\u5206\u3068\u3057\u3066Stage View\u304c\u8ffd\u52a0\u3055\u308c\u8a2d\u5b9a\u3057\u305fpipeline\u306e\u5185\u5bb9\u306b\u3057\u305f\u304c\u3063\u3066\u7d50\u679c\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<br \/>\n\u3069\u3053\u3067\u5931\u6557\u3057\u305f\u304b\u308f\u304b\u308b\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u307e\u305f\u3001\u4eca\u56de\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306fJenkins\u5185\u306b\u4fdd\u5b58\u3057\u307e\u3057\u305f\u304c\u3001\u30ec\u30dd\u30b8\u30c8\u30ea\u306bJenkinsfile\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u6e96\u5099\u3057\u3066\u5b9f\u884c\u3055\u305b\u308b\u3053\u3068\u3082\u3067\u304d\u308b\u307f\u305f\u3044\u3067\u3059\u3002<\/p>\n<h2>\u308f\u304b\u3089\u306a\u304b\u3063\u305f\u3053\u3068<\/h2>\n<p>\u3057\u3063\u304b\u308a\u3068\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u8aad\u3081\u3066\u306a\u3044\u306e\u3067\u3001\u3082\u3057\u304b\u3057\u305f\u3089\u89e3\u6c7a\u6cd5\u304c\u3042\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<h3>pipeline\u304b\u3089\u30b5\u30fc\u30c9\u30fc\u30d1\u30fc\u30c6\u30a3\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u547c\u3073\u51fa\u3059\u65b9\u6cd5\u304c\u308f\u304b\u3089\u306a\u304b\u3063\u305f\u3002<\/h3>\n<p>Jacoco\u3092\u4f7f\u3063\u3066\u30b3\u30fc\u30c9\u30ab\u30d0\u30ec\u30c3\u30b8\u3092\u3068\u3063\u3066\u3044\u308b\u30b8\u30e7\u30d6\u3082\u3042\u308b\u306e\u3067\u3059\u304c\u3001pipeline\u3067Jacoco\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u547c\u3073\u51fa\u3059\u65b9\u6cd5\u304c\u308f\u304b\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002<br \/>\n\u3042\u3068\u306fHipChat\u306e\u901a\u77e5\u7cfb\u3082\u547c\u3073\u51fa\u3057\u305f\u3044\u306a\u30fc\u3068\u601d\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>stage\u3092\u30b9\u30ad\u30c3\u30d7\u3059\u308b\u65b9\u6cd5<\/h3>\n<p>\u505c\u6b62\u3067\u306f\u306a\u304f\u3001\u7279\u5b9a\u6761\u4ef6\u306b\u3088\u3063\u3066\u3044stage\u3092\u30b9\u30ad\u30c3\u30d7\u3057\u3066\u6b21\u306estage\u3092\u51e6\u7406\u3055\u305b\u308b\u65b9\u6cd5\u304c\u308f\u304b\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u30b8\u30e7\u30d6\u306e\u8a2d\u5b9a\u753b\u9762\u3001Jenkins\u8a2d\u5b9a\u753b\u9762\u3068\u304b\u306f\u305d\u308c\u307b\u3069\u5927\u304d\u304f\u898b\u6804\u3048\u306f\u5909\u308f\u3063\u3066\u3044\u306a\u3044\u306e\u3067\u3001Jenkins1\u3092\u4f7f\u3063\u3066\u3044\u305f\u4eba\u306f\u30b9\u30e0\u30fc\u30ba\u306b\u89e6\u308c\u308b\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\nPipeline\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u975e\u5e38\u306b\u4fbf\u5229\u3060\u3068\u611f\u3058\u307e\u3057\u305f\u3002Jenkinsfile\u3092\u4f5c\u3063\u3066\u304a\u3044\u3066\u30ec\u30dd\u30b8\u30c8\u30ea\u306b\u4fdd\u5b58\u3059\u308c\u3070\u3001\u3042\u308b\u610f\u5473Jenkins\u306b\u72b6\u614b\u3092\u6301\u305f\u305b\u306a\u304f\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u3067\u3001\u3088\u308a\u30dd\u30fc\u30bf\u30d3\u30ea\u30c6\u30a3\u304c\u9ad8\u304f\u306a\u308b\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u3042\u3068\u306fPipeline\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u3001\u3069\u3053\u307e\u3067\u51fa\u6765\u308b\u304b\u3082\u3046\u5c11\u3057\u8abf\u3079\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981 \u5148\u65e5Jenkins2\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u307e\u3057\u305f\u3002 \u4eca\u306f\u307e\u3060Jenkins1\u7cfb\u3092\u4f7f\u3063\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001Jenkins2\u3067\u30d3\u30eb\u30c9\u6642\u306bpipeline\u3092\u4f7f\u3048\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4e00\u90e8\u306e\u30b8\u30e7\u30d6\u3092Jenkins2\u306b\u79fb\u884c &#8230; <\/p>\n","protected":false},"author":1,"featured_media":440,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[63,70],"tags":[71,3],"views":20521,"_links":{"self":[{"href":"https:\/\/www.beeete2.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1035"}],"collection":[{"href":"https:\/\/www.beeete2.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.beeete2.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.beeete2.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.beeete2.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1035"}],"version-history":[{"count":19,"href":"https:\/\/www.beeete2.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1035\/revisions"}],"predecessor-version":[{"id":1748,"href":"https:\/\/www.beeete2.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1035\/revisions\/1748"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.beeete2.com\/blog\/index.php?rest_route=\/wp\/v2\/media\/440"}],"wp:attachment":[{"href":"https:\/\/www.beeete2.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1035"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.beeete2.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1035"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.beeete2.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1035"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}