Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Jenkinsの構成・運用パターン

 Jenkinsの構成・運用パターン

2020年1月31日開催 Game Developers Meeting Vol.40 エンジニア向け勉強会 の登壇資料です
「Jenkinsの構成・運用パターン」開発技術部/粉川 貴至

SEGADevTech

July 15, 2022
Tweet

More Decks by SEGADevTech

Other Decks in Programming

Transcript

  1. Jenkins΄䯤౮独晁አϞόЄЀ
    2020/01/31
    ̿GDM vol.40 εЀυϘίݻۣͧ䔶տ Jenkins΄䯤౮独晁አϞόЄЀ̀
    ໌ୗտᐒψιοЄϭφ
    樄咲ದ悬᮱
    ᔇ૝̴揫ᛗ

    View full-size slide

  2. 独όαϕϸώЄϭ΄ӾͽJenkinsΨ憎ͼ͚ΡՈҘ
    独愢හώЄϭ΄Jenkins厏हΨ憎ͼ͚ΡՈҘ

    View full-size slide

  3. 独JenkinsςЄϝ䯤塈̵Ϥ϶ναЀ戔ਧ̵晁አ΅Ҙ
    独㮆̸΄Ϡϸϖ戔ਧ̵晁አ΅Ҙ
    独πЀϝЄόЄ̵DCCϑЄϸ樛昧΄ᛔ㵕۸㳌ቘ΄戔ਧ̵晁አ΅Ҙ
    独ςЄϝ㯎΄㳌ቘ΄ᛔ㵕۸Ҙ
    独Α͡

    View full-size slide

  4. • ώЄϭ憒ཛྷ
    • ώЄϭ֛ګ
    !4

    View full-size slide

  5. ώЄϭ憒ཛྷ
    ̿Roles in Game Tools Development̀
    http://www.productivityengineer.com/tool-development-roles
    Victor StepanovͫΩ΄懿Ԫ
    !5
    ϑЄϸ೅୮΁ϢζЄθφͭ͵懿Ԫͽ̵ͯ͢

    Jenkins೅୮΁Θ୮ͼ΅ΗΟ΢Ρ᮱ړ͢ग़͚

    View full-size slide

  6. ώЄϭ憒ཛྷ

    Ӿ

    https://jenkins.io/
    ϮαЀϤϺν϶ϫ
    ϑЄϸεЀυϘί

    JenkinsεЀυϘί
    ϞαϤ϶αЀεЀυϘί
    αЀϢ϶ϑЄϸεЀυϘί
    DCCϑЄϸεЀυϘί
    QAεЀυϘί
    ϑЄϸQAεЀυϘί

    View full-size slide

  7. ώЄϭ֛ګ
    • Jenkins೅୮͢樛ΥΡ塅㾨΅䓈͚
    • Jenkins厏ह΄䯤塈
    • ϤϺν϶ϫੀΠ΄च๜ጱ΀ᛔ㵕۸厏ह
    • Ϡϸϖ̵ϓφϕҁ̵ϔϤϺα҂
    • ΞΠ䓈͚ᛔ㵕۸
    • ίψϐϕϔЄόҁϹϦϸϔσαЀ̵ίЄϕ̵ςγЀϖ҂΄πЀϝЄϕ̵
    ϓφϕ̵ᛔ㵕۸㳌ቘ
    • QAᛔ㵕۸
    • ϞαϤ϶αЀ΄ᛔ㵕۸ҁBTS昧൭̵ϞϐξЄυЀν҂
    !7

    View full-size slide

  8. 奺浞ֺ1
    ϮαЀϤϺν϶ϫ
    ώЄϭ憒ཛྷғੜ뺶Ӿ
    όЄοϐϕϤ϶ϐϕϢζЄϭғίЄξЄϖ
    樄咲厏हғWindows
    JenkinsςϪЄϕ
    WindowsϫφόЄ
    Win 䋚䱛
    Ϡϸϖ
    πЀϝЄϕ
    ϔϤϺα
    ϓφϕ
    Jenkins戔ਧ
    ڡ๗υϴϣ֢౮
    ϕ϶ϣϸτϲЄϓΰЀν
    ᛔ㵕۸䭥戣
    Jenkins晁አ

    View full-size slide

  9. 奺浞ֺ2
    ϮαЀϤϺν϶ϫ
    Jenkins
    ᓕቘώЄϭ
    ώЄϭ憒ཛྷғੜ뺶Ӿ
    όЄοϐϕϤ϶ϐϕϢζЄϭғϯϝαϸ
    ֵአοЄϭεЀυЀғUnity
    樄咲厏हғWindows̵Mac
    JenkinsςЄϝ厏हғLinux
    Win Mac
    ϮαЀϤϺν϶ϫ
    Win Mac
    ϮαЀϤϺν϶ϫ
    Win Mac
    αЀϢ϶೅୮
    Ϡϸϖ Ϡϸϖ Ϡϸϖ
    Jenkins戔ਧ独כਝ
    Jenkins䱛ᚆ᭄ے䌏䖕

    View full-size slide

  10. 奺浞ֺ3
    ϮαЀϤϺν϶ϫ
    ϤϺν϶ϫ
    ҁϑЄϸّձ҂
    Jenkins
    αЀϢ϶ϑЄϸ
    QAεЀυϘίϷЀν
    ҁّձ҂
    ώЄϭ憒ཛྷғӾ뺶य़
    όЄοϐϕϤ϶ϐϕϢζЄϭғπЀϊЄϸ
    樄咲厏हғWindows
    JenkinsςЄϝ厏हғLinux
    Win
    Win
    Win Win
    Win
    Win
    䋚䱛 䋚䱛
    䋚䱛 䋚䱛
    䋚䱛
    䋚䱛
    Win Win
    䯭̸΀αЀϢ϶ϑЄϸ ᛔ㵕ϓφϕ厏ह
    αЀϢ϶೅୮
    Ϡϸϖ
    πЀϝЄϕ
    ᛔ㵕㳌ቘ
    ϞϐξЄυЀν̵ϔϤϺα̵ϓφϕ
    ଏ䓈ͥ

    ṛଶ΀䌏䖕

    View full-size slide

  11. 奺浞ֺ4
    ϮαЀϤϺν϶ϫ
    ҁJenkins೅୮҂
    ϮαЀϤϺν϶ϫ
    ϑЄϸεЀυϘί

    JenkinsεЀυϘί
    ϮαЀϤϺν϶ϫ
    ҁJenkins೅୮҂
    Jenkins
    φϧτϰϷφϕ
    ཞෙςϪЄϕ
    Ϣϸφόϐμ΁ᬪ͚φκϸ
    ςϪЄϕ
    ςϪЄϕ

    View full-size slide

  12. قͼΨӞՈͽ೅͜͠;ͯΡ;…
    !12

    View full-size slide

  13. Full Stack Jenkins Administrator
    • Jenkinsᓕቘ
    • Ӟᛱጱ΀WebςЄϠφϤ϶ϐϕϢζЄϭ䯤塈独ᓕቘᎣ挷ҁLinux, Windows, Mac҂
    • Ӟᛱጱ΀WebςЄϠφ晁አᎣ挷ҁίθγЀϕ独䰱ᴴᓕቘ҂
    • ஠ᥝ΀ᛔ㵕۸㳌ቘ΄͵Η΄Jenkins䌏䖕ҁϤ϶ναЀ᭄ے̵υϴϣ戔ਧ҂
    • JenkinsӤGroovyφμϷϤϕΨֵ͹͵ṛଶ΀晁አ䌏䖕奺浞
    • Jenkins΄Ϥ϶ναЀ֢౮奺浞
    • Jenkins΄ϊЄφπЄϖ͢஠ᥝ΁䖕ͮͼ抎ΗΡ
    • Jenkinsᓕቘ̵晁አΨφϭЄχ΁ᤈ͜͵Η΄Ӟ揢௔΄͘Ρ䯤౮戔懯̵෈ᒍ۸̵

    πϬϲϘξЄτϴЀ
    !13

    View full-size slide

  14. • ϤϺυδμϕͽֵአͯΡ樄咲厏ह΄䯤塈
    • όЄοϐϕϤ϶ϐϕϢζЄϭݻͧ樄咲厏ह΄ψϐϕίϐϤᎣ挷
    • ϯϝαϸҁiOS̵Android҂ݻͧ
    • πЀϊЄϸݻͧ
    • ςЄϝ㯎
    • ͳ΄՜
    • 厏ह͢φξЄϸݢᚆ΁΀ΡΞ͜΁戔懯̵ಋ殼۸̵厏ह䯤塈΄ᛔ㵕۸
    !14
    Full Stack Jenkins Administrator

    View full-size slide

  15. • Ϡϸϖ
    • MSBuildΨֵ͹͵πϫЀϖ϶αЀϠϸϖ΄Ꭳ挷̵ε϶ЄϮϐψЄυ΄ቘᥴ̵䌏䖕奺浞
    • Unityͽ΄πϫЀϖ϶αЀϠϸϖ΄Ꭳ挷̵ε϶ЄϮϐψЄυ΄ቘᥴ̵䌏䖕奺浞
    • UE4ͽ΄πϫЀϖ϶αЀϠϸϖ΄Ꭳ挷̵ε϶ЄϮϐψЄυ΄ቘᥴ̵䌏䖕奺浞
    • xcodebuildΨֵ͹͵πϫЀϖ϶αЀϠϸϖ;ޮ旽厏ह΄Ꭳ挷̵ε϶ЄϮϐψЄυ΄ቘᥴ̵䌏䖕奺浞
    • AndroidϠϸϖ厏ह΄Ꭳ挷̵ε϶ЄϮϐψЄυ΄ቘᥴ̵䌏䖕奺浞
    • πЀϊЄϸ樄咲厏ह΁ͧ͠ΡϠϸϖϑЄϸ΄Ꭳ挷̵ε϶ЄϮϐψЄυ΄ቘᥴ̵䌏䖕奺浞
    • ҁͳ΄՜匍䁰ͽֵአͭͼ͚Ρ҂ϠϸϖϑЄϸ΄πϫЀϖ϶αЀϠϸϖ΄Ꭳ挷̵ε϶ЄϮϐψЄυ΄
    ቘᥴ̵䌏䖕奺浞
    • Ϡϸϖ΁樛ΥΡεЀυЀ̵SDK̵πЀϞα϶ᒵ΄԰䟵௔Ύ΄ቘᥴ;抠䪨ᚆێ
    !15
    Full Stack Jenkins Administrator

    View full-size slide

  16. • Ϡϸϖ뺶ᛔ㵕㳌ቘ
    • ϤϺυδμϕͽֵአͫ΢Ρݱ圵ϝЄυϴЀᓕቘϑЄϸ΁樛ͯΡᎣ挷;ᛔ㵕۸䌏䖕
    • ϤϺν϶ϫ֢͢͹͵ᛔ㵕۸φμϷϤϕ΄JenkinsΎ΄奲Ε旿Ε
    • Windowsϝϐώ̵PowerShell̵bashᒵφμϷϤϕ᥺承΄Ꭳ挷
    • ϞϐξЄυЀνᒵόЄοϐϕϤ϶ϐϕϢζЄϭ樄咲厏हͽᛔ㵕㳌ቘ΁ֵአͯΡݱ圵ϑЄϸ΄Ꭳ

    • ϤϺν϶ϫզक़ݻͧ΄ίψϐϕϔЄόᛔ㵕㳌ቘ䌏䖕̵JenkinsΎ΄奲Ε旿Ε䌏䖕
    • ᛔ㵕۸΄׏昲̵TA;΄昧൭̵೅୮ᘏ΄ᙙ౮独ςϪЄϕ̵๜搡ጱ΀㺔氂΄ᥴ䷥
    • ӧ᪃ͭͼ͚Ρᛔ㵕۸㳌ቘΨᛔΟ֢Ρ
    • ᛔ㵕۸䌏䖕΁Ӟ揢௔Ψ೮͵ͱΡ͵Η΄ၚ㵕
    !16
    Full Stack Jenkins Administrator

    View full-size slide

  17. • ϓφϕ
    • πЀϞα϶ᦄޞ΄䜷͚΄Ꭳ挷;Jenkins;΄昧൭
    • ҁ匍䁰΁㳷ͭ͵҂ϳϘϐϕϓφϕϢϹЄϭϼЄμ΄Ꭳ挷;ϓφϕ׏昲
    • ͳ΄՜෬愚΄ϓφϕϑЄϸ΄Ꭳ挷;ၚአᎣ憎̵Jenkins;΄昧൭
    • ίψϐϕϔЄό΁䌏ͯΡϓφϕΨJenkins厏हΎ奲Ε旿Ζ
    • οЄϭٖͽ䋚ᤈͯΡϓφϕ;Jenkins΄昧൭
    • ӧ᪃ͭͼ͚Ρϓφϕ䱛ᚆ独䱛䯤ΨᛔΟ֢Ρ
    • 䌏᨝΄οЄϭ΁஠ᥝ΀ϓφϕ΁䌏ͯΡଏ䓈͚Ꭳ憎;ϓφϕ䜐ኼ΄ςϪЄϕ
    !17
    Full Stack Jenkins Administrator

    View full-size slide

  18. • ݢ憙۸̵ṛ᭛۸̵ද࠺
    • ϤϺυδμϕ΄ϞαϤ϶αЀق֛΄ݢ憙۸
    • ϩϕϸϚϐμ΄咲憎;ṛ᭛۸
    • 抓氂΄͘Ρ᮱ړ΄咲憎;ද࠺
    • قͼ΄毎ऒ΁䌏ͯΡଏ䓈͚Ꭳ挷;樄咲ૡᑕقᛱ΄ςϪЄϕ
    !18
    Full Stack Jenkins Administrator

    View full-size slide

  19. • قͼΨ1ՈͽθϝЄͯΡξЄφ΅੝΀͚
    • 䌏᨝Ψᴴਧ
    • ϤϺυδμϕ䌑ં
    • Ϥ϶ϐϕϢζЄϭ̵厏हΨᴴਧ
    • 㱢ضଶΨͺͧͼ䌏䖕
    • μ϶αίЀϕ㯎ͶͧҁςЄϝ㯎΅㳨҂
    !19
    • ړ೅;昧൭
    • αЀϢ϶⁵Jenkins೅୮
    • Jenkins೅୮⁵ϮαЀϤϺν϶ϫ
    • Jenkins೅୮⁵ϑЄϸώЄϭ
    • Jenkins೅୮⁵TAώЄϭ
    ེ΄ϯώϦЄτϴЀғ䜐ኼ;䋚֢䮣Ψ஀ۆړͧͭ͵͚
    ώЄϭ憒ཛྷ̵֛ګ΁ݳΥͱ͵೅୮ٖ਻΁΀Ρ

    Jenkins೅୮΅஑఺ړᰀ̵岉ޱ塅㾨̵ፘ௔Θ᯿ᥝ

    View full-size slide